From d8415304d3ae73ddbedfd662181f102b40dc1478 Mon Sep 17 00:00:00 2001 From: Bifeldy Date: Sun, 16 Jul 2023 04:02:36 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=94=20=F0=9F=98=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/fansubid/browser/ngsw.json | 2 +- dist/fansubid/server/main.js | 2 +- .../mail-/mail-webhook.controller.ts | 76 +++++++++++-------- src/api/services/mail.service.ts | 11 ++- 4 files changed, 53 insertions(+), 38 deletions(-) diff --git a/dist/fansubid/browser/ngsw.json b/dist/fansubid/browser/ngsw.json index 710f41316..7d299587f 100644 --- a/dist/fansubid/browser/ngsw.json +++ b/dist/fansubid/browser/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1689444992789, + "timestamp": 1689447587108, "index": "/index.html", "assetGroups": [ { diff --git a/dist/fansubid/server/main.js b/dist/fansubid/server/main.js index b6782c78a..c2ff1c4fb 100644 --- a/dist/fansubid/server/main.js +++ b/dist/fansubid/server/main.js @@ -1 +1 @@ -var __defProp=Object.defineProperty,__defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__name=(target,value)=>__defProp(target,"name",{value,configurable:!0}),__publicField=(obj,key,value)=>(__defNormalProp(obj,"symbol"!=typeof key?key+"":key,value),value),__accessCheck=(obj,member,msg)=>{if(!member.has(obj))throw TypeError("Cannot "+msg)},__privateGet=(obj,member,getter)=>(__accessCheck(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj)),__privateAdd=(obj,member,value)=>{if(member.has(obj))throw TypeError("Cannot add the same private member more than once");member instanceof WeakSet?member.add(obj):member.set(obj,value)},__privateSet=(obj,member,value,setter)=>(__accessCheck(obj,member,"write to private field"),setter?setter.call(obj,value):member.set(obj,value),value);(()=>{var __webpack_modules__={44119:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var _asyncToGenerator=__webpack_require__2(48926).default;const languages=__webpack_require__2(59354),tokenGenerator=__webpack_require__2(31227),querystring=__webpack_require__2(63477),got=__webpack_require__2(72907);function translate(_x,_x2){return _translate.apply(this,arguments)}function _translate(){return(_translate=_asyncToGenerator(function*(text,options){try{let error;if("object"!=typeof options&&(options={}),text=String(text),[options.from,options.to].forEach(lang=>{lang&&!languages.isSupported(lang)&&(error=new Error,error.code=400,error.message=`The language '${lang}' is not supported.`)}),error)throw error;Object.prototype.hasOwnProperty.call(options,"from")||(options.from="auto"),Object.prototype.hasOwnProperty.call(options,"to")||(options.to="en"),options.raw=Boolean(options.raw),options.from=languages.getISOCode(options.from),options.to=languages.getISOCode(options.to);let requestOptions,token=yield tokenGenerator.generate(text),baseUrl="https://translate.google.com/translate_a/single",data={client:"gtx",sl:options.from,tl:options.to,hl:options.to,dt:["at","bd","ex","ld","md","qca","rw","rm","ss","t"],ie:"UTF-8",oe:"UTF-8",otf:1,ssel:0,tsel:0,kc:7,q:text,[token.name]:token.value},url=`${baseUrl}?${querystring.stringify(data)}`;url.length>2048?(delete data.q,requestOptions=[`${baseUrl}?${querystring.stringify(data)}`,{method:"POST",form:{q:text}}]):requestOptions=[url];let response=yield got(...requestOptions),result={text:"",from:{language:{didYouMean:!1,iso:""},text:{autoCorrected:!1,value:"",didYouMean:!1}},raw:""};options.raw&&(result.raw=response.body);let body=JSON.parse(response.body);if(body[0].forEach(obj=>{obj[0]&&(result.text+=obj[0])}),body[2]===body[8][0][0]?result.from.language.iso=body[2]:(result.from.language.didYouMean=!0,result.from.language.iso=body[8][0][0]),body[7]&&body[7][0]){let str=body[7][0];str=str.replace(//g,"["),str=str.replace(/<\/i><\/b>/g,"]"),result.from.text.value=str,!0===body[7][5]?result.from.text.autoCorrected=!0:result.from.text.didYouMean=!0}return result}catch(e){if("HTTPError"===e.name){let error=new Error;throw error.name=e.name,error.statusCode=e.statusCode,error.statusMessage=e.statusMessage,error}throw e}})).apply(this,arguments)}__name(translate,"translate"),__name(_translate,"_translate"),module2.exports=translate,module2.exports.languages=languages},59354:module2=>{const languages={auto:"Automatic",af:"Afrikaans",sq:"Albanian",am:"Amharic",ar:"Arabic",hy:"Armenian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",bg:"Bulgarian",ca:"Catalan",ceb:"Cebuano",ny:"Chichewa","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",co:"Corsican",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",eo:"Esperanto",et:"Estonian",tl:"Filipino",fi:"Finnish",fr:"French",fy:"Frisian",gl:"Galician",ka:"Georgian",de:"German",el:"Greek",gu:"Gujarati",ht:"Haitian Creole",ha:"Hausa",haw:"Hawaiian",iw:"Hebrew",hi:"Hindi",hmn:"Hmong",hu:"Hungarian",is:"Icelandic",ig:"Igbo",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese",jw:"Javanese",kn:"Kannada",kk:"Kazakh",km:"Khmer",ko:"Korean",ku:"Kurdish (Kurmanji)",ky:"Kyrgyz",lo:"Lao",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"Macedonian",mg:"Malagasy",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mn:"Mongolian",my:"Myanmar (Burmese)",ne:"Nepali",no:"Norwegian",ps:"Pashto",fa:"Persian",pl:"Polish",pt:"Portuguese",pa:"Punjabi",ro:"Romanian",ru:"Russian",sm:"Samoan",gd:"Scots Gaelic",sr:"Serbian",st:"Sesotho",sn:"Shona",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",so:"Somali",es:"Spanish",su:"Sundanese",sw:"Swahili",sv:"Swedish",tg:"Tajik",ta:"Tamil",te:"Telugu",th:"Thai",tr:"Turkish",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",cy:"Welsh",xh:"Xhosa",yi:"Yiddish",yo:"Yoruba",zu:"Zulu"};function getISOCode(language){return!!language&&((language=language.toLowerCase())in languages?language:Object.keys(languages).filter(key=>"string"==typeof languages[key]&&languages[key].toLowerCase()===language)[0]||null)}function isSupported(language){return Boolean(getISOCode(language))}__name(getISOCode,"getISOCode"),__name(isSupported,"isSupported"),module2.exports=languages,module2.exports.isSupported=isSupported,module2.exports.getISOCode=getISOCode},31227:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var _asyncToGenerator=__webpack_require__2(48926).default;const got=__webpack_require__2(72907);function zr(a){let b2;if(null!==yr)b2=yr;else{b2=wr(String.fromCharCode(84));let c2=wr(String.fromCharCode(75));b2=[b2(),b2()],b2[1]=c2(),b2=(yr=window2[b2.join(c2())]||"")||""}let d=wr(String.fromCharCode(116)),c=wr(String.fromCharCode(107));d=[d(),d()],d[1]=c(),c="&"+d.join("")+"=",d=b2.split("."),b2=Number(d[0])||0;for(var e=[],f2=0,g=0;gl?e[f2++]=l:(2048>l?e[f2++]=l>>6|192:(55296==(64512&l)&&g+1>18|240,e[f2++]=l>>12&63|128):e[f2++]=l>>12|224,e[f2++]=l>>6&63|128),e[f2++]=63&l|128)}a=b2;for(let f3=0;f3(a^=Number(d[1])||0)&&(a=2147483648+(2147483647&a)),c+((a%=1e6).toString()+".")+(a^b2)}__name(zr,"zr");let yr=null,wr=__name(function(a){return function(){return a}},"wr"),xr=__name(function(a,b2){for(let c=0;c="a"?d.charCodeAt(0)-87:Number(d),d="+"==b2.charAt(c+1)?a>>>d:a<0){const xt=code2[0].split(":")[1].replace(/'/g,"");window2.TKK=xt,config.set("TKK",xt)}}}catch(e){if("HTTPError"===e.name){let error=new Error;throw error.name=e.name,error.statusCode=e.statusCode,error.statusMessage=e.statusMessage,error}throw e}})).apply(this,arguments)}function generate(_x){return _generate.apply(this,arguments)}function _generate(){return(_generate=_asyncToGenerator(function*(text){try{yield updateTKK();let tk=zr(text);return tk=tk.replace("&tk=",""),{name:"tk",value:tk}}catch(error){return error}})).apply(this,arguments)}__name(updateTKK,"updateTKK"),__name(_updateTKK,"_updateTKK"),__name(generate,"generate"),__name(_generate,"_generate"),module2.exports.generate=generate},16508:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CACHE_TTL_METADATA=exports2.CACHE_KEY_METADATA=exports2.CACHE_MODULE_OPTIONS=exports2.CACHE_MANAGER=void 0,exports2.CACHE_MANAGER="CACHE_MANAGER",exports2.CACHE_MODULE_OPTIONS="CACHE_MODULE_OPTIONS",exports2.CACHE_KEY_METADATA="cache_module:cache_key",exports2.CACHE_TTL_METADATA="cache_module:cache_ttl"},76925:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var CacheModule_1,_asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CacheModule=void 0;const tslib_1=__webpack_require__2(99425),decorators_1=__webpack_require__2(31638),cache_constants_1=__webpack_require__2(16508),cache_providers_1=__webpack_require__2(99406);let CacheModule=CacheModule_1=__name(class{static register(options={}){return{module:CacheModule_1,global:options.isGlobal,providers:[{provide:cache_constants_1.CACHE_MODULE_OPTIONS,useValue:options}]}}static registerAsync(options){return{module:CacheModule_1,global:options.isGlobal,imports:options.imports,providers:[...this.createAsyncProviders(options),...options.extraProviders||[]]}}static createAsyncProviders(options){return options.useExisting||options.useFactory?[this.createAsyncOptionsProvider(options)]:[this.createAsyncOptionsProvider(options),{provide:options.useClass,useClass:options.useClass}]}static createAsyncOptionsProvider(options){return options.useFactory?{provide:cache_constants_1.CACHE_MODULE_OPTIONS,useFactory:options.useFactory,inject:options.inject||[]}:{provide:cache_constants_1.CACHE_MODULE_OPTIONS,useFactory:(_ref=_asyncToGenerator(function*(optionsFactory){return optionsFactory.createCacheOptions()}),__name(function(_x){return _ref.apply(this,arguments)},"useFactory")),inject:[options.useExisting||options.useClass]};var _ref}},"CacheModule");CacheModule=CacheModule_1=tslib_1.__decorate([(0,decorators_1.Module)({providers:[(0,cache_providers_1.createCacheManager)()],exports:[cache_constants_1.CACHE_MANAGER]})],CacheModule),exports2.CacheModule=CacheModule},99406:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.createCacheManager=void 0;const load_package_util_1=__webpack_require__2(53015),cache_constants_1=__webpack_require__2(16508),default_options_1=__webpack_require__2(16e3);function createCacheManager(){return{provide:cache_constants_1.CACHE_MANAGER,useFactory:options=>{const cacheManager=(0,load_package_util_1.loadPackage)("cache-manager","CacheModule",()=>__webpack_require__2(33312));return Array.isArray(options)?cacheManager.multiCaching(options.map(store=>cacheManager.caching(Object.assign(Object.assign({},default_options_1.defaultCacheOptions),store||{})))):cacheManager.caching(Object.assign(Object.assign({},default_options_1.defaultCacheOptions),options||{}))},inject:[cache_constants_1.CACHE_MODULE_OPTIONS]}}__name(createCacheManager,"createCacheManager"),exports2.createCacheManager=createCacheManager},22790:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CacheKey=void 0;const decorators_1=__webpack_require__2(31638),cache_constants_1=__webpack_require__2(16508),CacheKey=__name(key=>(0,decorators_1.SetMetadata)(cache_constants_1.CACHE_KEY_METADATA,key),"CacheKey");exports2.CacheKey=CacheKey},27764:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CacheTTL=void 0;const decorators_1=__webpack_require__2(31638),cache_constants_1=__webpack_require__2(16508),CacheTTL=__name(ttl=>(0,decorators_1.SetMetadata)(cache_constants_1.CACHE_TTL_METADATA,ttl),"CacheTTL");exports2.CacheTTL=CacheTTL},99734:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(22790),exports2),tslib_1.__exportStar(__webpack_require__2(27764),exports2)},16e3:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.defaultCacheOptions=void 0,exports2.defaultCacheOptions={ttl:5,max:100,store:"memory"}},35381:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(16508),exports2),tslib_1.__exportStar(__webpack_require__2(76925),exports2),tslib_1.__exportStar(__webpack_require__2(99734),exports2),tslib_1.__exportStar(__webpack_require__2(32013),exports2),tslib_1.__exportStar(__webpack_require__2(18658),exports2)},68462:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CacheInterceptor=void 0;const tslib_1=__webpack_require__2(99425),rxjs_1=__webpack_require__2(76477),operators_1=__webpack_require__2(83292),decorators_1=__webpack_require__2(31638),shared_utils_1=__webpack_require__2(73819),cache_constants_1=__webpack_require__2(16508);let CacheInterceptor=__name(class{constructor(cacheManager,reflector){this.cacheManager=cacheManager,this.reflector=reflector,this.allowedMethods=["GET"]}intercept(context,next){var _this=this;return _asyncToGenerator(function*(){var _a;const key=_this.trackBy(context),ttlValueOrFactory=null!==(_a=_this.reflector.get(cache_constants_1.CACHE_TTL_METADATA,context.getHandler()))&&void 0!==_a?_a:null;if(!key)return next.handle();try{const value=yield _this.cacheManager.get(key);if(!(0,shared_utils_1.isNil)(value))return(0,rxjs_1.of)(value);const ttl=(0,shared_utils_1.isFunction)(ttlValueOrFactory)?yield ttlValueOrFactory(context):ttlValueOrFactory;return next.handle().pipe((0,operators_1.tap)(response=>{const args2=(0,shared_utils_1.isNil)(ttl)?[key,response]:[key,response,{ttl}];_this.cacheManager.set(...args2)}))}catch{return next.handle()}})()}trackBy(context){const httpAdapter=this.httpAdapterHost.httpAdapter,isHttpApp=httpAdapter&&!!httpAdapter.getRequestMethod,cacheMetadata=this.reflector.get(cache_constants_1.CACHE_KEY_METADATA,context.getHandler());if(!isHttpApp||cacheMetadata)return cacheMetadata;const request=context.getArgByIndex(0);return this.isRequestCacheable(context)?httpAdapter.getRequestUrl(request):void 0}isRequestCacheable(context){const req=context.switchToHttp().getRequest();return this.allowedMethods.includes(req.method)}},"CacheInterceptor");tslib_1.__decorate([(0,decorators_1.Optional)(),(0,decorators_1.Inject)("HttpAdapterHost"),tslib_1.__metadata("design:type",Object)],CacheInterceptor.prototype,"httpAdapterHost",void 0),CacheInterceptor=tslib_1.__decorate([(0,decorators_1.Injectable)(),tslib_1.__param(0,(0,decorators_1.Inject)(cache_constants_1.CACHE_MANAGER)),tslib_1.__param(1,(0,decorators_1.Inject)("Reflector")),tslib_1.__metadata("design:paramtypes",[Object,Object])],CacheInterceptor),exports2.CacheInterceptor=CacheInterceptor},32013:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(99425).__exportStar(__webpack_require__2(68462),exports2)},26722:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},2545:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},18658:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(26722),exports2),tslib_1.__exportStar(__webpack_require__2(2545),exports2)},75441:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CATCH_WATERMARK=exports2.CONTROLLER_WATERMARK=exports2.INJECTABLE_WATERMARK=exports2.VERSION_METADATA=exports2.SSE_METADATA=exports2.RESPONSE_PASSTHROUGH_METADATA=exports2.REDIRECT_METADATA=exports2.HEADERS_METADATA=exports2.MODULE_PATH=exports2.HTTP_CODE_METADATA=exports2.INTERCEPTORS_METADATA=exports2.RENDER_METADATA=exports2.GUARDS_METADATA=exports2.PIPES_METADATA=exports2.FILTER_CATCH_EXCEPTIONS=exports2.EXCEPTION_FILTERS_METADATA=exports2.CUSTOM_ROUTE_AGRS_METADATA=exports2.ROUTE_ARGS_METADATA=exports2.METHOD_METADATA=exports2.SCOPE_OPTIONS_METADATA=exports2.OPTIONAL_PROPERTY_DEPS_METADATA=exports2.PROPERTY_DEPS_METADATA=exports2.OPTIONAL_DEPS_METADATA=exports2.SELF_DECLARED_DEPS_METADATA=exports2.PARAMTYPES_METADATA=exports2.PATH_METADATA=exports2.HOST_METADATA=exports2.GLOBAL_MODULE_METADATA=exports2.MODULE_METADATA=void 0,exports2.MODULE_METADATA={IMPORTS:"imports",PROVIDERS:"providers",CONTROLLERS:"controllers",EXPORTS:"exports"},exports2.GLOBAL_MODULE_METADATA="__module:global__",exports2.HOST_METADATA="host",exports2.PATH_METADATA="path",exports2.PARAMTYPES_METADATA="design:paramtypes",exports2.SELF_DECLARED_DEPS_METADATA="self:paramtypes",exports2.OPTIONAL_DEPS_METADATA="optional:paramtypes",exports2.PROPERTY_DEPS_METADATA="self:properties_metadata",exports2.OPTIONAL_PROPERTY_DEPS_METADATA="optional:properties_metadata",exports2.SCOPE_OPTIONS_METADATA="scope:options",exports2.METHOD_METADATA="method",exports2.ROUTE_ARGS_METADATA="__routeArguments__",exports2.CUSTOM_ROUTE_AGRS_METADATA="__customRouteArgs__",exports2.EXCEPTION_FILTERS_METADATA="__exceptionFilters__",exports2.FILTER_CATCH_EXCEPTIONS="__filterCatchExceptions__",exports2.PIPES_METADATA="__pipes__",exports2.GUARDS_METADATA="__guards__",exports2.RENDER_METADATA="__renderTemplate__",exports2.INTERCEPTORS_METADATA="__interceptors__",exports2.HTTP_CODE_METADATA="__httpCode__",exports2.MODULE_PATH="__module_path__",exports2.HEADERS_METADATA="__headers__",exports2.REDIRECT_METADATA="__redirect__",exports2.RESPONSE_PASSTHROUGH_METADATA="__responsePassthrough__",exports2.SSE_METADATA="__sse__",exports2.VERSION_METADATA="__version__",exports2.INJECTABLE_WATERMARK="__injectable__",exports2.CONTROLLER_WATERMARK="__controller__",exports2.CATCH_WATERMARK="__catch__"},73040:(__unused_webpack_module,exports2)=>{"use strict";function applyDecorators(...decorators){return(target,propertyKey,descriptor)=>{for(const decorator of decorators)target instanceof Function&&!descriptor?decorator(target):decorator(target,propertyKey,descriptor)}}Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.applyDecorators=void 0,__name(applyDecorators,"applyDecorators"),exports2.applyDecorators=applyDecorators},41148:(__unused_webpack_module,exports2)=>{"use strict";function Bind(...decorators){return(target,key,descriptor)=>(decorators.forEach((fn2,index)=>fn2(target,key,index)),descriptor)}Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Bind=void 0,__name(Bind,"Bind"),exports2.Bind=Bind},53573:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Catch=void 0;const constants_1=__webpack_require__2(75441);function Catch(...exceptions){return target=>{Reflect.defineMetadata(constants_1.CATCH_WATERMARK,!0,target),Reflect.defineMetadata(constants_1.FILTER_CATCH_EXCEPTIONS,exceptions,target)}}__name(Catch,"Catch"),exports2.Catch=Catch},19529:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Controller=void 0;const constants_1=__webpack_require__2(75441),shared_utils_1=__webpack_require__2(73819);function Controller(prefixOrOptions){const[path,host,scopeOptions,versionOptions]=(0,shared_utils_1.isUndefined)(prefixOrOptions)?["/",void 0,void 0,void 0]:(0,shared_utils_1.isString)(prefixOrOptions)||Array.isArray(prefixOrOptions)?[prefixOrOptions,void 0,void 0,void 0]:[prefixOrOptions.path||"/",prefixOrOptions.host,{scope:prefixOrOptions.scope},Array.isArray(prefixOrOptions.version)?Array.from(new Set(prefixOrOptions.version)):prefixOrOptions.version];return target=>{Reflect.defineMetadata(constants_1.CONTROLLER_WATERMARK,!0,target),Reflect.defineMetadata(constants_1.PATH_METADATA,path,target),Reflect.defineMetadata(constants_1.HOST_METADATA,host,target),Reflect.defineMetadata(constants_1.SCOPE_OPTIONS_METADATA,scopeOptions,target),Reflect.defineMetadata(constants_1.VERSION_METADATA,versionOptions,target)}}__name(Controller,"Controller"),exports2.Controller=Controller},55923:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Dependencies=exports2.flatten=void 0;const constants_1=__webpack_require__2(75441);function flatten(arr){const flat=[].concat(...arr);return flat.some(Array.isArray)?flatten(flat):flat}__name(flatten,"flatten"),exports2.flatten=flatten;const Dependencies=__name((...dependencies)=>{const flattenDeps=flatten(dependencies);return target=>{Reflect.defineMetadata(constants_1.PARAMTYPES_METADATA,flattenDeps,target)}},"Dependencies");exports2.Dependencies=Dependencies},67425:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UseFilters=void 0;const constants_1=__webpack_require__2(75441),extend_metadata_util_1=__webpack_require__2(60572),shared_utils_1=__webpack_require__2(73819),validate_each_util_1=__webpack_require__2(49922),UseFilters=__name((...filters)=>addExceptionFiltersMetadata(...filters),"UseFilters");function addExceptionFiltersMetadata(...filters){return(target,key,descriptor)=>{const isFilterValid=__name(filter=>filter&&((0,shared_utils_1.isFunction)(filter)||(0,shared_utils_1.isFunction)(filter.catch)),"isFilterValid");return descriptor?((0,validate_each_util_1.validateEach)(target.constructor,filters,isFilterValid,"@UseFilters","filter"),(0,extend_metadata_util_1.extendArrayMetadata)(constants_1.EXCEPTION_FILTERS_METADATA,filters,descriptor.value),descriptor):((0,validate_each_util_1.validateEach)(target,filters,isFilterValid,"@UseFilters","filter"),(0,extend_metadata_util_1.extendArrayMetadata)(constants_1.EXCEPTION_FILTERS_METADATA,filters,target),target)}}exports2.UseFilters=UseFilters,__name(addExceptionFiltersMetadata,"addExceptionFiltersMetadata")},33009:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(41148),exports2),tslib_1.__exportStar(__webpack_require__2(53573),exports2),tslib_1.__exportStar(__webpack_require__2(19529),exports2),tslib_1.__exportStar(__webpack_require__2(55923),exports2),tslib_1.__exportStar(__webpack_require__2(67425),exports2),tslib_1.__exportStar(__webpack_require__2(89620),exports2),tslib_1.__exportStar(__webpack_require__2(96920),exports2),tslib_1.__exportStar(__webpack_require__2(19706),exports2),tslib_1.__exportStar(__webpack_require__2(14895),exports2),tslib_1.__exportStar(__webpack_require__2(12994),exports2),tslib_1.__exportStar(__webpack_require__2(81476),exports2),tslib_1.__exportStar(__webpack_require__2(72560),exports2),tslib_1.__exportStar(__webpack_require__2(73040),exports2),tslib_1.__exportStar(__webpack_require__2(38271),exports2)},89620:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Inject=void 0;const constants_1=__webpack_require__2(75441),shared_utils_1=__webpack_require__2(73819);function Inject(token){return(target,key,index)=>{const type=token||Reflect.getMetadata("design:type",target,key);if(!(0,shared_utils_1.isUndefined)(index)){let dependencies=Reflect.getMetadata(constants_1.SELF_DECLARED_DEPS_METADATA,target)||[];return dependencies=[...dependencies,{index,param:type}],void Reflect.defineMetadata(constants_1.SELF_DECLARED_DEPS_METADATA,dependencies,target)}let properties=Reflect.getMetadata(constants_1.PROPERTY_DEPS_METADATA,target.constructor)||[];properties=[...properties,{key,type}],Reflect.defineMetadata(constants_1.PROPERTY_DEPS_METADATA,properties,target.constructor)}}__name(Inject,"Inject"),exports2.Inject=Inject},96920:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.mixin=exports2.Injectable=void 0;const uuid_1=__webpack_require__2(82697),constants_1=__webpack_require__2(75441);function Injectable(options){return target=>{Reflect.defineMetadata(constants_1.INJECTABLE_WATERMARK,!0,target),Reflect.defineMetadata(constants_1.SCOPE_OPTIONS_METADATA,options,target)}}function mixin(mixinClass){return Object.defineProperty(mixinClass,"name",{value:(0,uuid_1.v4)()}),Injectable()(mixinClass),mixinClass}__name(Injectable,"Injectable"),exports2.Injectable=Injectable,__name(mixin,"mixin"),exports2.mixin=mixin},19706:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Optional=void 0;const constants_1=__webpack_require__2(75441),shared_utils_1=__webpack_require__2(73819);function Optional(){return(target,key,index)=>{if(!(0,shared_utils_1.isUndefined)(index)){const args2=Reflect.getMetadata(constants_1.OPTIONAL_DEPS_METADATA,target)||[];return void Reflect.defineMetadata(constants_1.OPTIONAL_DEPS_METADATA,[...args2,index],target)}const properties=Reflect.getMetadata(constants_1.OPTIONAL_PROPERTY_DEPS_METADATA,target.constructor)||[];Reflect.defineMetadata(constants_1.OPTIONAL_PROPERTY_DEPS_METADATA,[...properties,key],target.constructor)}}__name(Optional,"Optional"),exports2.Optional=Optional},14895:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SetMetadata=void 0;const SetMetadata=__name((metadataKey,metadataValue)=>{const decoratorFactory=__name((target,key,descriptor)=>descriptor?(Reflect.defineMetadata(metadataKey,metadataValue,descriptor.value),descriptor):(Reflect.defineMetadata(metadataKey,metadataValue,target),target),"decoratorFactory");return decoratorFactory.KEY=metadataKey,decoratorFactory},"SetMetadata");exports2.SetMetadata=SetMetadata},12994:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UseGuards=void 0;const constants_1=__webpack_require__2(75441),extend_metadata_util_1=__webpack_require__2(60572),shared_utils_1=__webpack_require__2(73819),validate_each_util_1=__webpack_require__2(49922);function UseGuards(...guards){return(target,key,descriptor)=>{const isGuardValid=__name(guard=>guard&&((0,shared_utils_1.isFunction)(guard)||(0,shared_utils_1.isFunction)(guard.canActivate)),"isGuardValid");return descriptor?((0,validate_each_util_1.validateEach)(target.constructor,guards,isGuardValid,"@UseGuards","guard"),(0,extend_metadata_util_1.extendArrayMetadata)(constants_1.GUARDS_METADATA,guards,descriptor.value),descriptor):((0,validate_each_util_1.validateEach)(target,guards,isGuardValid,"@UseGuards","guard"),(0,extend_metadata_util_1.extendArrayMetadata)(constants_1.GUARDS_METADATA,guards,target),target)}}__name(UseGuards,"UseGuards"),exports2.UseGuards=UseGuards},81476:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UseInterceptors=void 0;const constants_1=__webpack_require__2(75441),extend_metadata_util_1=__webpack_require__2(60572),shared_utils_1=__webpack_require__2(73819),validate_each_util_1=__webpack_require__2(49922);function UseInterceptors(...interceptors){return(target,key,descriptor)=>{const isInterceptorValid=__name(interceptor=>interceptor&&((0,shared_utils_1.isFunction)(interceptor)||(0,shared_utils_1.isFunction)(interceptor.intercept)),"isInterceptorValid");return descriptor?((0,validate_each_util_1.validateEach)(target.constructor,interceptors,isInterceptorValid,"@UseInterceptors","interceptor"),(0,extend_metadata_util_1.extendArrayMetadata)(constants_1.INTERCEPTORS_METADATA,interceptors,descriptor.value),descriptor):((0,validate_each_util_1.validateEach)(target,interceptors,isInterceptorValid,"@UseInterceptors","interceptor"),(0,extend_metadata_util_1.extendArrayMetadata)(constants_1.INTERCEPTORS_METADATA,interceptors,target),target)}}__name(UseInterceptors,"UseInterceptors"),exports2.UseInterceptors=UseInterceptors},72560:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UsePipes=void 0;const constants_1=__webpack_require__2(75441),extend_metadata_util_1=__webpack_require__2(60572),shared_utils_1=__webpack_require__2(73819),validate_each_util_1=__webpack_require__2(49922);function UsePipes(...pipes){return(target,key,descriptor)=>{const isPipeValid=__name(pipe=>pipe&&((0,shared_utils_1.isFunction)(pipe)||(0,shared_utils_1.isFunction)(pipe.transform)),"isPipeValid");return descriptor?((0,extend_metadata_util_1.extendArrayMetadata)(constants_1.PIPES_METADATA,pipes,descriptor.value),descriptor):((0,validate_each_util_1.validateEach)(target,pipes,isPipeValid,"@UsePipes","pipe"),(0,extend_metadata_util_1.extendArrayMetadata)(constants_1.PIPES_METADATA,pipes,target),target)}}__name(UsePipes,"UsePipes"),exports2.UsePipes=UsePipes},38271:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Version=void 0;const constants_1=__webpack_require__2(75441);function Version(version){return Array.isArray(version)&&(version=Array.from(new Set(version))),(target,key,descriptor)=>(Reflect.defineMetadata(constants_1.VERSION_METADATA,version,descriptor.value),descriptor)}__name(Version,"Version"),exports2.Version=Version},14902:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.createParamDecorator=void 0;const uuid_1=__webpack_require__2(82697),constants_1=__webpack_require__2(75441),assign_custom_metadata_util_1=__webpack_require__2(60819),shared_utils_1=__webpack_require__2(73819);function createParamDecorator(factory,enhancers=[]){const paramtype=(0,uuid_1.v4)();return(data,...pipes)=>(target,key,index)=>{const args2=Reflect.getMetadata(constants_1.ROUTE_ARGS_METADATA,target.constructor,key)||{},isPipe=__name(pipe=>pipe&&((0,shared_utils_1.isFunction)(pipe)&&pipe.prototype&&(0,shared_utils_1.isFunction)(pipe.prototype.transform)||(0,shared_utils_1.isFunction)(pipe.transform)),"isPipe"),hasParamData=(0,shared_utils_1.isNil)(data)||!isPipe(data),paramData=hasParamData?data:void 0,paramPipes=hasParamData?pipes:[data,...pipes];Reflect.defineMetadata(constants_1.ROUTE_ARGS_METADATA,(0,assign_custom_metadata_util_1.assignCustomParameterMetadata)(args2,paramtype,index,factory,paramData,...paramPipes),target.constructor,key),enhancers.forEach(fn2=>fn2(target,key,index))}}__name(createParamDecorator,"createParamDecorator"),exports2.createParamDecorator=createParamDecorator},43011:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Header=void 0;const constants_1=__webpack_require__2(75441),extend_metadata_util_1=__webpack_require__2(60572);function Header(name,value){return(target,key,descriptor)=>((0,extend_metadata_util_1.extendArrayMetadata)(constants_1.HEADERS_METADATA,[{name,value}],descriptor.value),descriptor)}__name(Header,"Header"),exports2.Header=Header},1941:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HttpCode=void 0;const constants_1=__webpack_require__2(75441);function HttpCode(statusCode){return(target,key,descriptor)=>(Reflect.defineMetadata(constants_1.HTTP_CODE_METADATA,statusCode,descriptor.value),descriptor)}__name(HttpCode,"HttpCode"),exports2.HttpCode=HttpCode},98549:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(50885),exports2),tslib_1.__exportStar(__webpack_require__2(11160),exports2),tslib_1.__exportStar(__webpack_require__2(1941),exports2),tslib_1.__exportStar(__webpack_require__2(14902),exports2),tslib_1.__exportStar(__webpack_require__2(79288),exports2),tslib_1.__exportStar(__webpack_require__2(43011),exports2),tslib_1.__exportStar(__webpack_require__2(79593),exports2),tslib_1.__exportStar(__webpack_require__2(97319),exports2)},79593:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Redirect=void 0;const constants_1=__webpack_require__2(75441);function Redirect(url="",statusCode){return(target,key,descriptor)=>(Reflect.defineMetadata(constants_1.REDIRECT_METADATA,{statusCode,url},descriptor.value),descriptor)}__name(Redirect,"Redirect"),exports2.Redirect=Redirect},79288:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Render=void 0;const constants_1=__webpack_require__2(75441);function Render(template){return(target,key,descriptor)=>(Reflect.defineMetadata(constants_1.RENDER_METADATA,template,descriptor.value),descriptor)}__name(Render,"Render"),exports2.Render=Render},50885:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.All=exports2.Head=exports2.Options=exports2.Patch=exports2.Put=exports2.Delete=exports2.Get=exports2.Post=exports2.RequestMapping=void 0;const constants_1=__webpack_require__2(75441),request_method_enum_1=__webpack_require__2(10724),defaultMetadata={[constants_1.PATH_METADATA]:"/",[constants_1.METHOD_METADATA]:request_method_enum_1.RequestMethod.GET},RequestMapping=__name((metadata2=defaultMetadata)=>{const pathMetadata=metadata2[constants_1.PATH_METADATA],path=pathMetadata&&pathMetadata.length?pathMetadata:"/",requestMethod=metadata2[constants_1.METHOD_METADATA]||request_method_enum_1.RequestMethod.GET;return(target,key,descriptor)=>(Reflect.defineMetadata(constants_1.PATH_METADATA,path,descriptor.value),Reflect.defineMetadata(constants_1.METHOD_METADATA,requestMethod,descriptor.value),descriptor)},"RequestMapping");exports2.RequestMapping=RequestMapping;const createMappingDecorator=__name(method=>path=>(0,exports2.RequestMapping)({[constants_1.PATH_METADATA]:path,[constants_1.METHOD_METADATA]:method}),"createMappingDecorator");exports2.Post=createMappingDecorator(request_method_enum_1.RequestMethod.POST),exports2.Get=createMappingDecorator(request_method_enum_1.RequestMethod.GET),exports2.Delete=createMappingDecorator(request_method_enum_1.RequestMethod.DELETE),exports2.Put=createMappingDecorator(request_method_enum_1.RequestMethod.PUT),exports2.Patch=createMappingDecorator(request_method_enum_1.RequestMethod.PATCH),exports2.Options=createMappingDecorator(request_method_enum_1.RequestMethod.OPTIONS),exports2.Head=createMappingDecorator(request_method_enum_1.RequestMethod.HEAD),exports2.All=createMappingDecorator(request_method_enum_1.RequestMethod.ALL)},11160:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Res=exports2.Req=exports2.HostParam=exports2.Param=exports2.Body=exports2.Query=exports2.Headers=exports2.UploadedFiles=exports2.UploadedFile=exports2.Session=exports2.Ip=exports2.Next=exports2.Response=exports2.Request=exports2.assignMetadata=void 0;const constants_1=__webpack_require__2(75441),route_paramtypes_enum_1=__webpack_require__2(5114),shared_utils_1=__webpack_require__2(73819);function assignMetadata(args2,paramtype,index,data,...pipes){return Object.assign(Object.assign({},args2),{[`${paramtype}:${index}`]:{index,data,pipes}})}function createRouteParamDecorator(paramtype){return data=>(target,key,index)=>{const args2=Reflect.getMetadata(constants_1.ROUTE_ARGS_METADATA,target.constructor,key)||{};Reflect.defineMetadata(constants_1.ROUTE_ARGS_METADATA,assignMetadata(args2,paramtype,index,data),target.constructor,key)}}__name(assignMetadata,"assignMetadata"),exports2.assignMetadata=assignMetadata,__name(createRouteParamDecorator,"createRouteParamDecorator");const createPipesRouteParamDecorator=__name(paramtype=>(data,...pipes)=>(target,key,index)=>{const args2=Reflect.getMetadata(constants_1.ROUTE_ARGS_METADATA,target.constructor,key)||{},hasParamData=(0,shared_utils_1.isNil)(data)||(0,shared_utils_1.isString)(data),paramData=hasParamData?data:void 0,paramPipes=hasParamData?pipes:[data,...pipes];Reflect.defineMetadata(constants_1.ROUTE_ARGS_METADATA,assignMetadata(args2,paramtype,index,paramData,...paramPipes),target.constructor,key)},"createPipesRouteParamDecorator");exports2.Request=createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.REQUEST);const Response=__name(options=>(target,key,index)=>((null==options?void 0:options.passthrough)&&Reflect.defineMetadata(constants_1.RESPONSE_PASSTHROUGH_METADATA,null==options?void 0:options.passthrough,target.constructor,key),createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.RESPONSE)()(target,key,index)),"Response");function UploadedFile(fileKey,...pipes){return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.FILE)(fileKey,...pipes)}function UploadedFiles(...pipes){return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.FILES)(void 0,...pipes)}function Query(property,...pipes){return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.QUERY)(property,...pipes)}function Body(property,...pipes){return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.BODY)(property,...pipes)}function Param(property,...pipes){return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.PARAM)(property,...pipes)}function HostParam(property){return createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.HOST)(property)}exports2.Response=Response,exports2.Next=createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.NEXT),exports2.Ip=createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.IP),exports2.Session=createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.SESSION),__name(UploadedFile,"UploadedFile"),exports2.UploadedFile=UploadedFile,__name(UploadedFiles,"UploadedFiles"),exports2.UploadedFiles=UploadedFiles,exports2.Headers=createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.HEADERS),__name(Query,"Query"),exports2.Query=Query,__name(Body,"Body"),exports2.Body=Body,__name(Param,"Param"),exports2.Param=Param,__name(HostParam,"HostParam"),exports2.HostParam=HostParam,exports2.Req=exports2.Request,exports2.Res=exports2.Response},97319:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Sse=void 0;const constants_1=__webpack_require__2(75441),request_method_enum_1=__webpack_require__2(10724);function Sse(path){return(target,key,descriptor)=>(path=path&&path.length?path:"/",Reflect.defineMetadata(constants_1.PATH_METADATA,path,descriptor.value),Reflect.defineMetadata(constants_1.METHOD_METADATA,request_method_enum_1.RequestMethod.GET,descriptor.value),Reflect.defineMetadata(constants_1.SSE_METADATA,!0,descriptor.value),descriptor)}__name(Sse,"Sse"),exports2.Sse=Sse},31638:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(33009),exports2),tslib_1.__exportStar(__webpack_require__2(25712),exports2),tslib_1.__exportStar(__webpack_require__2(98549),exports2)},48393:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Global=void 0;const constants_1=__webpack_require__2(75441);function Global(){return target=>{Reflect.defineMetadata(constants_1.GLOBAL_MODULE_METADATA,!0,target)}}__name(Global,"Global"),exports2.Global=Global},25712:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(48393),exports2),tslib_1.__exportStar(__webpack_require__2(63709),exports2)},63709:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Module=void 0;const validate_module_keys_util_1=__webpack_require__2(65002);function Module(metadata2){const propsKeys=Object.keys(metadata2);return(0,validate_module_keys_util_1.validateModuleKeys)(propsKeys),target=>{for(const property in metadata2)metadata2.hasOwnProperty(property)&&Reflect.defineMetadata(property,metadata2[property],target)}}__name(Module,"Module"),exports2.Module=Module},10831:(__unused_webpack_module,exports2)=>{"use strict";var HttpStatus2;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HttpStatus=void 0,(HttpStatus2=exports2.HttpStatus||(exports2.HttpStatus={}))[HttpStatus2.CONTINUE=100]="CONTINUE",HttpStatus2[HttpStatus2.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",HttpStatus2[HttpStatus2.PROCESSING=102]="PROCESSING",HttpStatus2[HttpStatus2.EARLYHINTS=103]="EARLYHINTS",HttpStatus2[HttpStatus2.OK=200]="OK",HttpStatus2[HttpStatus2.CREATED=201]="CREATED",HttpStatus2[HttpStatus2.ACCEPTED=202]="ACCEPTED",HttpStatus2[HttpStatus2.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",HttpStatus2[HttpStatus2.NO_CONTENT=204]="NO_CONTENT",HttpStatus2[HttpStatus2.RESET_CONTENT=205]="RESET_CONTENT",HttpStatus2[HttpStatus2.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",HttpStatus2[HttpStatus2.AMBIGUOUS=300]="AMBIGUOUS",HttpStatus2[HttpStatus2.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",HttpStatus2[HttpStatus2.FOUND=302]="FOUND",HttpStatus2[HttpStatus2.SEE_OTHER=303]="SEE_OTHER",HttpStatus2[HttpStatus2.NOT_MODIFIED=304]="NOT_MODIFIED",HttpStatus2[HttpStatus2.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",HttpStatus2[HttpStatus2.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",HttpStatus2[HttpStatus2.BAD_REQUEST=400]="BAD_REQUEST",HttpStatus2[HttpStatus2.UNAUTHORIZED=401]="UNAUTHORIZED",HttpStatus2[HttpStatus2.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",HttpStatus2[HttpStatus2.FORBIDDEN=403]="FORBIDDEN",HttpStatus2[HttpStatus2.NOT_FOUND=404]="NOT_FOUND",HttpStatus2[HttpStatus2.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",HttpStatus2[HttpStatus2.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",HttpStatus2[HttpStatus2.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",HttpStatus2[HttpStatus2.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",HttpStatus2[HttpStatus2.CONFLICT=409]="CONFLICT",HttpStatus2[HttpStatus2.GONE=410]="GONE",HttpStatus2[HttpStatus2.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",HttpStatus2[HttpStatus2.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",HttpStatus2[HttpStatus2.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",HttpStatus2[HttpStatus2.URI_TOO_LONG=414]="URI_TOO_LONG",HttpStatus2[HttpStatus2.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",HttpStatus2[HttpStatus2.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",HttpStatus2[HttpStatus2.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",HttpStatus2[HttpStatus2.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",HttpStatus2[HttpStatus2.MISDIRECTED=421]="MISDIRECTED",HttpStatus2[HttpStatus2.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",HttpStatus2[HttpStatus2.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",HttpStatus2[HttpStatus2.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",HttpStatus2[HttpStatus2.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",HttpStatus2[HttpStatus2.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",HttpStatus2[HttpStatus2.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",HttpStatus2[HttpStatus2.BAD_GATEWAY=502]="BAD_GATEWAY",HttpStatus2[HttpStatus2.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",HttpStatus2[HttpStatus2.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",HttpStatus2[HttpStatus2.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED"},72346:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(10724),exports2),tslib_1.__exportStar(__webpack_require__2(10831),exports2),tslib_1.__exportStar(__webpack_require__2(85592),exports2),tslib_1.__exportStar(__webpack_require__2(38372),exports2)},10724:(__unused_webpack_module,exports2)=>{"use strict";var RequestMethod2;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RequestMethod=void 0,(RequestMethod2=exports2.RequestMethod||(exports2.RequestMethod={}))[RequestMethod2.GET=0]="GET",RequestMethod2[RequestMethod2.POST=1]="POST",RequestMethod2[RequestMethod2.PUT=2]="PUT",RequestMethod2[RequestMethod2.DELETE=3]="DELETE",RequestMethod2[RequestMethod2.PATCH=4]="PATCH",RequestMethod2[RequestMethod2.ALL=5]="ALL",RequestMethod2[RequestMethod2.OPTIONS=6]="OPTIONS",RequestMethod2[RequestMethod2.HEAD=7]="HEAD"},5114:(__unused_webpack_module,exports2)=>{"use strict";var RouteParamtypes2;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RouteParamtypes=void 0,(RouteParamtypes2=exports2.RouteParamtypes||(exports2.RouteParamtypes={}))[RouteParamtypes2.REQUEST=0]="REQUEST",RouteParamtypes2[RouteParamtypes2.RESPONSE=1]="RESPONSE",RouteParamtypes2[RouteParamtypes2.NEXT=2]="NEXT",RouteParamtypes2[RouteParamtypes2.BODY=3]="BODY",RouteParamtypes2[RouteParamtypes2.QUERY=4]="QUERY",RouteParamtypes2[RouteParamtypes2.PARAM=5]="PARAM",RouteParamtypes2[RouteParamtypes2.HEADERS=6]="HEADERS",RouteParamtypes2[RouteParamtypes2.SESSION=7]="SESSION",RouteParamtypes2[RouteParamtypes2.FILE=8]="FILE",RouteParamtypes2[RouteParamtypes2.FILES=9]="FILES",RouteParamtypes2[RouteParamtypes2.HOST=10]="HOST",RouteParamtypes2[RouteParamtypes2.IP=11]="IP"},85592:(__unused_webpack_module,exports2)=>{"use strict";var ShutdownSignal2;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ShutdownSignal=void 0,(ShutdownSignal2=exports2.ShutdownSignal||(exports2.ShutdownSignal={})).SIGHUP="SIGHUP",ShutdownSignal2.SIGINT="SIGINT",ShutdownSignal2.SIGQUIT="SIGQUIT",ShutdownSignal2.SIGILL="SIGILL",ShutdownSignal2.SIGTRAP="SIGTRAP",ShutdownSignal2.SIGABRT="SIGABRT",ShutdownSignal2.SIGBUS="SIGBUS",ShutdownSignal2.SIGFPE="SIGFPE",ShutdownSignal2.SIGSEGV="SIGSEGV",ShutdownSignal2.SIGUSR2="SIGUSR2",ShutdownSignal2.SIGTERM="SIGTERM"},38372:(__unused_webpack_module,exports2)=>{"use strict";var VersioningType2;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.VersioningType=void 0,(VersioningType2=exports2.VersioningType||(exports2.VersioningType={}))[VersioningType2.URI=0]="URI",VersioningType2[VersioningType2.HEADER=1]="HEADER",VersioningType2[VersioningType2.MEDIA_TYPE=2]="MEDIA_TYPE",VersioningType2[VersioningType2.CUSTOM=3]="CUSTOM"},35883:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BadGatewayException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class BadGatewayException extends http_exception_1.HttpException{constructor(objectOrError,description="Bad Gateway"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.BAD_GATEWAY),http_status_enum_1.HttpStatus.BAD_GATEWAY)}}__name(BadGatewayException,"BadGatewayException"),exports2.BadGatewayException=BadGatewayException},14945:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BadRequestException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class BadRequestException extends http_exception_1.HttpException{constructor(objectOrError,description="Bad Request"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.BAD_REQUEST),http_status_enum_1.HttpStatus.BAD_REQUEST)}}__name(BadRequestException,"BadRequestException"),exports2.BadRequestException=BadRequestException},64193:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ConflictException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class ConflictException extends http_exception_1.HttpException{constructor(objectOrError,description="Conflict"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.CONFLICT),http_status_enum_1.HttpStatus.CONFLICT)}}__name(ConflictException,"ConflictException"),exports2.ConflictException=ConflictException},88966:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ForbiddenException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class ForbiddenException extends http_exception_1.HttpException{constructor(objectOrError,description="Forbidden"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.FORBIDDEN),http_status_enum_1.HttpStatus.FORBIDDEN)}}__name(ForbiddenException,"ForbiddenException"),exports2.ForbiddenException=ForbiddenException},62770:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.GatewayTimeoutException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class GatewayTimeoutException extends http_exception_1.HttpException{constructor(objectOrError,description="Gateway Timeout"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.GATEWAY_TIMEOUT),http_status_enum_1.HttpStatus.GATEWAY_TIMEOUT)}}__name(GatewayTimeoutException,"GatewayTimeoutException"),exports2.GatewayTimeoutException=GatewayTimeoutException},96410:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.GoneException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class GoneException extends http_exception_1.HttpException{constructor(objectOrError,description="Gone"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.GONE),http_status_enum_1.HttpStatus.GONE)}}__name(GoneException,"GoneException"),exports2.GoneException=GoneException},78415:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HttpVersionNotSupportedException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class HttpVersionNotSupportedException extends http_exception_1.HttpException{constructor(objectOrError,description="HTTP Version Not Supported"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.HTTP_VERSION_NOT_SUPPORTED),http_status_enum_1.HttpStatus.HTTP_VERSION_NOT_SUPPORTED)}}__name(HttpVersionNotSupportedException,"HttpVersionNotSupportedException"),exports2.HttpVersionNotSupportedException=HttpVersionNotSupportedException},51473:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HttpException=void 0;const shared_utils_1=__webpack_require__2(73819);class HttpException extends Error{constructor(response,status){super(),this.response=response,this.status=status,this.initMessage(),this.initName()}initMessage(){(0,shared_utils_1.isString)(this.response)?this.message=this.response:(0,shared_utils_1.isObject)(this.response)&&(0,shared_utils_1.isString)(this.response.message)?this.message=this.response.message:this.constructor&&(this.message=this.constructor.name.match(/[A-Z][a-z]+|[0-9]+/g).join(" "))}initName(){this.name=this.constructor.name}getResponse(){return this.response}getStatus(){return this.status}static createBody(objectOrError,description,statusCode){return objectOrError?(0,shared_utils_1.isObject)(objectOrError)&&!Array.isArray(objectOrError)?objectOrError:{statusCode,message:objectOrError,error:description}:{statusCode,message:description}}}__name(HttpException,"HttpException"),exports2.HttpException=HttpException},96067:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ImATeapotException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class ImATeapotException extends http_exception_1.HttpException{constructor(objectOrError,description="I'm a teapot"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.I_AM_A_TEAPOT),http_status_enum_1.HttpStatus.I_AM_A_TEAPOT)}}__name(ImATeapotException,"ImATeapotException"),exports2.ImATeapotException=ImATeapotException},70547:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(14945),exports2),tslib_1.__exportStar(__webpack_require__2(51473),exports2),tslib_1.__exportStar(__webpack_require__2(6153),exports2),tslib_1.__exportStar(__webpack_require__2(40062),exports2),tslib_1.__exportStar(__webpack_require__2(80629),exports2),tslib_1.__exportStar(__webpack_require__2(88966),exports2),tslib_1.__exportStar(__webpack_require__2(17403),exports2),tslib_1.__exportStar(__webpack_require__2(12063),exports2),tslib_1.__exportStar(__webpack_require__2(64193),exports2),tslib_1.__exportStar(__webpack_require__2(96410),exports2),tslib_1.__exportStar(__webpack_require__2(994),exports2),tslib_1.__exportStar(__webpack_require__2(70887),exports2),tslib_1.__exportStar(__webpack_require__2(82905),exports2),tslib_1.__exportStar(__webpack_require__2(92923),exports2),tslib_1.__exportStar(__webpack_require__2(99887),exports2),tslib_1.__exportStar(__webpack_require__2(78415),exports2),tslib_1.__exportStar(__webpack_require__2(35883),exports2),tslib_1.__exportStar(__webpack_require__2(58589),exports2),tslib_1.__exportStar(__webpack_require__2(62770),exports2),tslib_1.__exportStar(__webpack_require__2(96067),exports2),tslib_1.__exportStar(__webpack_require__2(25232),exports2),tslib_1.__exportStar(__webpack_require__2(84300),exports2)},92923:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InternalServerErrorException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class InternalServerErrorException extends http_exception_1.HttpException{constructor(objectOrError,description="Internal Server Error"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.INTERNAL_SERVER_ERROR),http_status_enum_1.HttpStatus.INTERNAL_SERVER_ERROR)}}__name(InternalServerErrorException,"InternalServerErrorException"),exports2.InternalServerErrorException=InternalServerErrorException},40062:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MethodNotAllowedException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class MethodNotAllowedException extends http_exception_1.HttpException{constructor(objectOrError,description="Method Not Allowed"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.METHOD_NOT_ALLOWED),http_status_enum_1.HttpStatus.METHOD_NOT_ALLOWED)}}__name(MethodNotAllowedException,"MethodNotAllowedException"),exports2.MethodNotAllowedException=MethodNotAllowedException},84300:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MisdirectedException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class MisdirectedException extends http_exception_1.HttpException{constructor(objectOrError,description="Misdirected"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.MISDIRECTED),http_status_enum_1.HttpStatus.MISDIRECTED)}}__name(MisdirectedException,"MisdirectedException"),exports2.MisdirectedException=MisdirectedException},17403:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NotAcceptableException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class NotAcceptableException extends http_exception_1.HttpException{constructor(objectOrError,description="Not Acceptable"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.NOT_ACCEPTABLE),http_status_enum_1.HttpStatus.NOT_ACCEPTABLE)}}__name(NotAcceptableException,"NotAcceptableException"),exports2.NotAcceptableException=NotAcceptableException},80629:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NotFoundException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class NotFoundException extends http_exception_1.HttpException{constructor(objectOrError,description="Not Found"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.NOT_FOUND),http_status_enum_1.HttpStatus.NOT_FOUND)}}__name(NotFoundException,"NotFoundException"),exports2.NotFoundException=NotFoundException},99887:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NotImplementedException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class NotImplementedException extends http_exception_1.HttpException{constructor(objectOrError,description="Not Implemented"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.NOT_IMPLEMENTED),http_status_enum_1.HttpStatus.NOT_IMPLEMENTED)}}__name(NotImplementedException,"NotImplementedException"),exports2.NotImplementedException=NotImplementedException},994:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.PayloadTooLargeException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class PayloadTooLargeException extends http_exception_1.HttpException{constructor(objectOrError,description="Payload Too Large"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.PAYLOAD_TOO_LARGE),http_status_enum_1.HttpStatus.PAYLOAD_TOO_LARGE)}}__name(PayloadTooLargeException,"PayloadTooLargeException"),exports2.PayloadTooLargeException=PayloadTooLargeException},25232:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.PreconditionFailedException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class PreconditionFailedException extends http_exception_1.HttpException{constructor(objectOrError,description="Precondition Failed"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.PRECONDITION_FAILED),http_status_enum_1.HttpStatus.PRECONDITION_FAILED)}}__name(PreconditionFailedException,"PreconditionFailedException"),exports2.PreconditionFailedException=PreconditionFailedException},12063:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RequestTimeoutException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class RequestTimeoutException extends http_exception_1.HttpException{constructor(objectOrError,description="Request Timeout"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.REQUEST_TIMEOUT),http_status_enum_1.HttpStatus.REQUEST_TIMEOUT)}}__name(RequestTimeoutException,"RequestTimeoutException"),exports2.RequestTimeoutException=RequestTimeoutException},58589:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ServiceUnavailableException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class ServiceUnavailableException extends http_exception_1.HttpException{constructor(objectOrError,description="Service Unavailable"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.SERVICE_UNAVAILABLE),http_status_enum_1.HttpStatus.SERVICE_UNAVAILABLE)}}__name(ServiceUnavailableException,"ServiceUnavailableException"),exports2.ServiceUnavailableException=ServiceUnavailableException},6153:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UnauthorizedException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class UnauthorizedException extends http_exception_1.HttpException{constructor(objectOrError,description="Unauthorized"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.UNAUTHORIZED),http_status_enum_1.HttpStatus.UNAUTHORIZED)}}__name(UnauthorizedException,"UnauthorizedException"),exports2.UnauthorizedException=UnauthorizedException},82905:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UnprocessableEntityException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class UnprocessableEntityException extends http_exception_1.HttpException{constructor(objectOrError,description="Unprocessable Entity"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.UNPROCESSABLE_ENTITY),http_status_enum_1.HttpStatus.UNPROCESSABLE_ENTITY)}}__name(UnprocessableEntityException,"UnprocessableEntityException"),exports2.UnprocessableEntityException=UnprocessableEntityException},70887:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UnsupportedMediaTypeException=void 0;const http_status_enum_1=__webpack_require__2(10831),http_exception_1=__webpack_require__2(51473);class UnsupportedMediaTypeException extends http_exception_1.HttpException{constructor(objectOrError,description="Unsupported Media Type"){super(http_exception_1.HttpException.createBody(objectOrError,description,http_status_enum_1.HttpStatus.UNSUPPORTED_MEDIA_TYPE),http_status_enum_1.HttpStatus.UNSUPPORTED_MEDIA_TYPE)}}__name(UnsupportedMediaTypeException,"UnsupportedMediaTypeException"),exports2.UnsupportedMediaTypeException=UnsupportedMediaTypeException},5820:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(99425).__exportStar(__webpack_require__2(94197),exports2)},94197:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.StreamableFile=void 0;const stream_1=__webpack_require__2(12781),util_1=__webpack_require__2(73837),shared_utils_1=__webpack_require__2(73819);class StreamableFile{constructor(bufferOrReadStream,options={}){var _a,_b;this.options=options,util_1.types.isUint8Array(bufferOrReadStream)?(this.stream=new stream_1.Readable,this.stream.push(bufferOrReadStream),this.stream.push(null),null!==(_a=(_b=this.options).length)&&void 0!==_a||(_b.length=bufferOrReadStream.length)):bufferOrReadStream.pipe&&(0,shared_utils_1.isFunction)(bufferOrReadStream.pipe)&&(this.stream=bufferOrReadStream)}getStream(){return this.stream}getHeaders(){const{type="application/octet-stream",disposition,length}=this.options;return{type,disposition,length}}}__name(StreamableFile,"StreamableFile"),exports2.StreamableFile=StreamableFile},84778:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HTTP_MODULE_OPTIONS=exports2.HTTP_MODULE_ID=exports2.AXIOS_INSTANCE_TOKEN=void 0,exports2.AXIOS_INSTANCE_TOKEN="AXIOS_INSTANCE_TOKEN",exports2.HTTP_MODULE_ID="HTTP_MODULE_ID",exports2.HTTP_MODULE_OPTIONS="HTTP_MODULE_OPTIONS"},250:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var HttpModule_1,_asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HttpModule=void 0;const tslib_1=__webpack_require__2(99425),axios_1=__webpack_require__2(63014),module_decorator_1=__webpack_require__2(63709),random_string_generator_util_1=__webpack_require__2(80749),http_constants_1=__webpack_require__2(84778),http_service_1=__webpack_require__2(78857);let HttpModule=HttpModule_1=__name(class{static register(config){return{module:HttpModule_1,providers:[{provide:http_constants_1.AXIOS_INSTANCE_TOKEN,useValue:axios_1.default.create(config)},{provide:http_constants_1.HTTP_MODULE_ID,useValue:(0,random_string_generator_util_1.randomStringGenerator)()}]}}static registerAsync(options){return{module:HttpModule_1,imports:options.imports,providers:[...this.createAsyncProviders(options),{provide:http_constants_1.AXIOS_INSTANCE_TOKEN,useFactory:config=>axios_1.default.create(config),inject:[http_constants_1.HTTP_MODULE_OPTIONS]},{provide:http_constants_1.HTTP_MODULE_ID,useValue:(0,random_string_generator_util_1.randomStringGenerator)()},...options.extraProviders||[]]}}static createAsyncProviders(options){return options.useExisting||options.useFactory?[this.createAsyncOptionsProvider(options)]:[this.createAsyncOptionsProvider(options),{provide:options.useClass,useClass:options.useClass}]}static createAsyncOptionsProvider(options){return options.useFactory?{provide:http_constants_1.HTTP_MODULE_OPTIONS,useFactory:options.useFactory,inject:options.inject||[]}:{provide:http_constants_1.HTTP_MODULE_OPTIONS,useFactory:(_ref=_asyncToGenerator(function*(optionsFactory){return optionsFactory.createHttpOptions()}),__name(function(_x){return _ref.apply(this,arguments)},"useFactory")),inject:[options.useExisting||options.useClass]};var _ref}},"HttpModule");HttpModule=HttpModule_1=tslib_1.__decorate([(0,module_decorator_1.Module)({providers:[http_service_1.HttpService,{provide:http_constants_1.AXIOS_INSTANCE_TOKEN,useValue:axios_1.default}],exports:[http_service_1.HttpService]})],HttpModule),exports2.HttpModule=HttpModule},78857:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HttpService=void 0;const tslib_1=__webpack_require__2(99425),axios_1=__webpack_require__2(63014),rxjs_1=__webpack_require__2(76477),decorators_1=__webpack_require__2(31638),services_1=__webpack_require__2(14929),http_constants_1=__webpack_require__2(84778);let HttpService=__name(class HttpService2{constructor(instance=axios_1.default){this.instance=instance,this.logger=new services_1.Logger(HttpService2.name),this.logger.warn('DEPRECATED! "HttpModule" (from the "@nestjs/common" package) is deprecated and will be removed in the next major release. Please, use the "@nestjs/axios" package instead.')}request(config){return this.makeObservable(this.instance.request,config)}get(url,config){return this.makeObservable(this.instance.get,url,config)}delete(url,config){return this.makeObservable(this.instance.delete,url,config)}head(url,config){return this.makeObservable(this.instance.head,url,config)}post(url,data,config){return this.makeObservable(this.instance.post,url,data,config)}put(url,data,config){return this.makeObservable(this.instance.put,url,data,config)}patch(url,data,config){return this.makeObservable(this.instance.patch,url,data,config)}get axiosRef(){return this.instance}makeObservable(axios,...args2){return new rxjs_1.Observable(subscriber=>{const config=Object.assign({},args2[args2.length-1]||{});let cancelSource;return config.cancelToken||(cancelSource=axios_1.default.CancelToken.source(),config.cancelToken=cancelSource.token),axios(...args2).then(res=>{subscriber.next(res),subscriber.complete()}).catch(err=>{subscriber.error(err)}),()=>{"stream"!==config.responseType&&cancelSource&&cancelSource.cancel()}})}},"HttpService");HttpService=tslib_1.__decorate([tslib_1.__param(0,(0,decorators_1.Inject)(http_constants_1.AXIOS_INSTANCE_TOKEN)),tslib_1.__metadata("design:paramtypes",[Function])],HttpService),exports2.HttpService=HttpService},37163:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(250),exports2),tslib_1.__exportStar(__webpack_require__2(78857),exports2),tslib_1.__exportStar(__webpack_require__2(90577),exports2)},50413:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},90577:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(99425).__exportStar(__webpack_require__2(50413),exports2)},28791:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.VERSION_NEUTRAL=exports2.Scope=void 0;const tslib_1=__webpack_require__2(99425);__webpack_require__2(53037),tslib_1.__exportStar(__webpack_require__2(35381),exports2),tslib_1.__exportStar(__webpack_require__2(31638),exports2),tslib_1.__exportStar(__webpack_require__2(72346),exports2),tslib_1.__exportStar(__webpack_require__2(70547),exports2),tslib_1.__exportStar(__webpack_require__2(5820),exports2),tslib_1.__exportStar(__webpack_require__2(37163),exports2);var interfaces_1=__webpack_require__2(39270);Object.defineProperty(exports2,"Scope",{enumerable:!0,get:function(){return interfaces_1.Scope}}),Object.defineProperty(exports2,"VERSION_NEUTRAL",{enumerable:!0,get:function(){return interfaces_1.VERSION_NEUTRAL}}),tslib_1.__exportStar(__webpack_require__2(41732),exports2),tslib_1.__exportStar(__webpack_require__2(70479),exports2),tslib_1.__exportStar(__webpack_require__2(14929),exports2),tslib_1.__exportStar(__webpack_require__2(55139),exports2)},41724:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},74318:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},48580:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},67396:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},26186:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},64660:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},4629:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},88774:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},55042:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},60004:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},32491:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},78422:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},8997:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},26968:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},25704:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},7938:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},92788:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(7938),exports2),tslib_1.__exportStar(__webpack_require__2(59766),exports2),tslib_1.__exportStar(__webpack_require__2(95405),exports2),tslib_1.__exportStar(__webpack_require__2(66282),exports2),tslib_1.__exportStar(__webpack_require__2(12161),exports2)},59766:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},95405:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},66282:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},12161:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},70272:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},72943:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(70272),exports2),tslib_1.__exportStar(__webpack_require__2(93234),exports2)},93234:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},39270:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(41724),exports2),tslib_1.__exportStar(__webpack_require__2(74318),exports2),tslib_1.__exportStar(__webpack_require__2(48580),exports2),tslib_1.__exportStar(__webpack_require__2(67396),exports2),tslib_1.__exportStar(__webpack_require__2(26186),exports2),tslib_1.__exportStar(__webpack_require__2(64660),exports2),tslib_1.__exportStar(__webpack_require__2(4629),exports2),tslib_1.__exportStar(__webpack_require__2(88774),exports2),tslib_1.__exportStar(__webpack_require__2(55042),exports2),tslib_1.__exportStar(__webpack_require__2(60004),exports2),tslib_1.__exportStar(__webpack_require__2(32491),exports2),tslib_1.__exportStar(__webpack_require__2(78422),exports2),tslib_1.__exportStar(__webpack_require__2(8997),exports2),tslib_1.__exportStar(__webpack_require__2(26968),exports2),tslib_1.__exportStar(__webpack_require__2(25704),exports2),tslib_1.__exportStar(__webpack_require__2(92788),exports2),tslib_1.__exportStar(__webpack_require__2(72943),exports2),tslib_1.__exportStar(__webpack_require__2(7956),exports2),tslib_1.__exportStar(__webpack_require__2(68101),exports2),tslib_1.__exportStar(__webpack_require__2(2792),exports2),tslib_1.__exportStar(__webpack_require__2(87491),exports2),tslib_1.__exportStar(__webpack_require__2(58371),exports2),tslib_1.__exportStar(__webpack_require__2(54251),exports2),tslib_1.__exportStar(__webpack_require__2(93011),exports2),tslib_1.__exportStar(__webpack_require__2(25098),exports2),tslib_1.__exportStar(__webpack_require__2(5106),exports2),tslib_1.__exportStar(__webpack_require__2(43176),exports2),tslib_1.__exportStar(__webpack_require__2(70754),exports2),tslib_1.__exportStar(__webpack_require__2(55501),exports2)},7956:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},68101:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},2792:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(63531),exports2),tslib_1.__exportStar(__webpack_require__2(5654),exports2),tslib_1.__exportStar(__webpack_require__2(20360),exports2),tslib_1.__exportStar(__webpack_require__2(70534),exports2)},63531:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},5654:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},20360:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},70534:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},57652:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},36979:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},87491:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(57652),exports2),tslib_1.__exportStar(__webpack_require__2(36979),exports2),tslib_1.__exportStar(__webpack_require__2(9417),exports2),tslib_1.__exportStar(__webpack_require__2(43696),exports2),tslib_1.__exportStar(__webpack_require__2(78261),exports2),tslib_1.__exportStar(__webpack_require__2(98557),exports2),tslib_1.__exportStar(__webpack_require__2(31868),exports2),tslib_1.__exportStar(__webpack_require__2(81785),exports2)},9417:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},43696:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},78261:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},98557:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},31868:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},81785:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},58371:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},54251:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},93011:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},25098:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},5106:(__unused_webpack_module,exports2)=>{"use strict";var Scope2;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Scope=void 0,(Scope2=exports2.Scope||(exports2.Scope={}))[Scope2.DEFAULT=0]="DEFAULT",Scope2[Scope2.TRANSIENT=1]="TRANSIENT",Scope2[Scope2.REQUEST=2]="REQUEST"},43176:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},70754:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.VERSION_NEUTRAL=void 0,exports2.VERSION_NEUTRAL=Symbol("VERSION_NEUTRAL")},55501:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},54759:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DefaultValuePipe=void 0;const tslib_1=__webpack_require__2(99425),injectable_decorator_1=__webpack_require__2(96920),shared_utils_1=__webpack_require__2(73819);let DefaultValuePipe=__name(class{constructor(defaultValue){this.defaultValue=defaultValue}transform(value,_metadata){return(0,shared_utils_1.isNil)(value)||(0,shared_utils_1.isNumber)(value)&&isNaN(value)?this.defaultValue:value}},"DefaultValuePipe");DefaultValuePipe=tslib_1.__decorate([(0,injectable_decorator_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[Object])],DefaultValuePipe),exports2.DefaultValuePipe=DefaultValuePipe},41732:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(54759),exports2),tslib_1.__exportStar(__webpack_require__2(21762),exports2),tslib_1.__exportStar(__webpack_require__2(58017),exports2),tslib_1.__exportStar(__webpack_require__2(89456),exports2),tslib_1.__exportStar(__webpack_require__2(91049),exports2),tslib_1.__exportStar(__webpack_require__2(11301),exports2),tslib_1.__exportStar(__webpack_require__2(92791),exports2),tslib_1.__exportStar(__webpack_require__2(28200),exports2)},21762:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ParseArrayPipe=void 0;const tslib_1=__webpack_require__2(99425),injectable_decorator_1=__webpack_require__2(96920),optional_decorator_1=__webpack_require__2(19706),http_status_enum_1=__webpack_require__2(10831),http_error_by_code_util_1=__webpack_require__2(43137),shared_utils_1=__webpack_require__2(73819),validation_pipe_1=__webpack_require__2(28200);let ParseArrayPipe=__name(class{constructor(options={}){this.options=options,this.validationPipe=new validation_pipe_1.ValidationPipe(Object.assign({transform:!0,validateCustomDecorators:!0},options));const{exceptionFactory,errorHttpStatusCode=http_status_enum_1.HttpStatus.BAD_REQUEST}=options;this.exceptionFactory=exceptionFactory||(error=>new http_error_by_code_util_1.HttpErrorByCode[errorHttpStatusCode](error))}transform(value,metadata2){var _this=this;return _asyncToGenerator(function*(){if(!value&&!_this.options.optional)throw _this.exceptionFactory("Validation failed (parsable array expected)");if((0,shared_utils_1.isNil)(value)&&_this.options.optional)return value;if(!Array.isArray(value)){if(!(0,shared_utils_1.isString)(value))throw _this.exceptionFactory("Validation failed (parsable array expected)");try{value=value.trim().split(_this.options.separator||",")}catch{throw _this.exceptionFactory("Validation failed (parsable array expected)")}}if(_this.options.items){const validationMetadata={metatype:_this.options.items,type:"query"},isExpectedTypePrimitive=_this.isExpectedTypePrimitive(),toClassInstance=__name((item,index)=>{try{item=JSON.parse(item)}catch{}return isExpectedTypePrimitive?_this.validatePrimitive(item,index):_this.validationPipe.transform(item,validationMetadata)},"toClassInstance");if(!1===_this.options.stopAtFirstError){let errors=[];const targetArray=value;for(let i2=0;i2`[${i2}] ${item}`):`[${i2}] ${response.message}`}else message2=err;errors=errors.concat(message2)}if(errors.length>0)throw _this.exceptionFactory(errors);return targetArray}value=yield Promise.all(value.map(toClassInstance))}return value})()}isExpectedTypePrimitive(){return[Boolean,Number,String].includes(this.options.items)}validatePrimitive(originalValue,index){if(this.options.items===Number){const value=null!==originalValue&&""!==originalValue?+originalValue:NaN;if(isNaN(value))throw this.exceptionFactory(((0,shared_utils_1.isUndefined)(index)?"":`[${index}] `)+"item must be a number");return value}if(this.options.items===String){if(!(0,shared_utils_1.isString)(originalValue))return`${originalValue}`}else if(this.options.items===Boolean&&"boolean"!=typeof originalValue)throw this.exceptionFactory(((0,shared_utils_1.isUndefined)(index)?"":`[${index}] `)+"item must be a boolean value");return originalValue}},"ParseArrayPipe");ParseArrayPipe=tslib_1.__decorate([(0,injectable_decorator_1.Injectable)(),tslib_1.__param(0,(0,optional_decorator_1.Optional)()),tslib_1.__metadata("design:paramtypes",[Object])],ParseArrayPipe),exports2.ParseArrayPipe=ParseArrayPipe},58017:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ParseBoolPipe=void 0;const tslib_1=__webpack_require__2(99425),injectable_decorator_1=__webpack_require__2(96920),optional_decorator_1=__webpack_require__2(19706),http_status_enum_1=__webpack_require__2(10831),http_error_by_code_util_1=__webpack_require__2(43137);let ParseBoolPipe=__name(class{constructor(options){options=options||{};const{exceptionFactory,errorHttpStatusCode=http_status_enum_1.HttpStatus.BAD_REQUEST}=options;this.exceptionFactory=exceptionFactory||(error=>new http_error_by_code_util_1.HttpErrorByCode[errorHttpStatusCode](error))}transform(value,metadata2){var _this=this;return _asyncToGenerator(function*(){if(!0===value||"true"===value)return!0;if(!1===value||"false"===value)return!1;throw _this.exceptionFactory("Validation failed (boolean string is expected)")})()}},"ParseBoolPipe");ParseBoolPipe=tslib_1.__decorate([(0,injectable_decorator_1.Injectable)(),tslib_1.__param(0,(0,optional_decorator_1.Optional)()),tslib_1.__metadata("design:paramtypes",[Object])],ParseBoolPipe),exports2.ParseBoolPipe=ParseBoolPipe},11301:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ParseEnumPipe=void 0;const tslib_1=__webpack_require__2(99425),index_1=__webpack_require__2(28791),http_error_by_code_util_1=__webpack_require__2(43137);let ParseEnumPipe=__name(class{constructor(enumType,options){if(this.enumType=enumType,!enumType)throw new Error('"ParseEnumPipe" requires "enumType" argument specified (to validate input values).');options=options||{};const{exceptionFactory,errorHttpStatusCode=index_1.HttpStatus.BAD_REQUEST}=options;this.exceptionFactory=exceptionFactory||(error=>new http_error_by_code_util_1.HttpErrorByCode[errorHttpStatusCode](error))}transform(value,metadata2){var _this=this;return _asyncToGenerator(function*(){if(!_this.isEnum(value))throw _this.exceptionFactory("Validation failed (enum string is expected)");return value})()}isEnum(value){return Object.keys(this.enumType).map(item=>this.enumType[item]).includes(value)}},"ParseEnumPipe");ParseEnumPipe=tslib_1.__decorate([(0,index_1.Injectable)(),tslib_1.__param(1,(0,index_1.Optional)()),tslib_1.__metadata("design:paramtypes",[Object,Object])],ParseEnumPipe),exports2.ParseEnumPipe=ParseEnumPipe},91049:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ParseFloatPipe=void 0;const tslib_1=__webpack_require__2(99425),index_1=__webpack_require__2(28791),http_error_by_code_util_1=__webpack_require__2(43137);let ParseFloatPipe=__name(class{constructor(options){options=options||{};const{exceptionFactory,errorHttpStatusCode=index_1.HttpStatus.BAD_REQUEST}=options;this.exceptionFactory=exceptionFactory||(error=>new http_error_by_code_util_1.HttpErrorByCode[errorHttpStatusCode](error))}transform(value,metadata2){var _this=this;return _asyncToGenerator(function*(){if(!["string","number"].includes(typeof value)||isNaN(parseFloat(value))||!isFinite(value))throw _this.exceptionFactory("Validation failed (numeric string is expected)");return parseFloat(value)})()}},"ParseFloatPipe");ParseFloatPipe=tslib_1.__decorate([(0,index_1.Injectable)(),tslib_1.__param(0,(0,index_1.Optional)()),tslib_1.__metadata("design:paramtypes",[Object])],ParseFloatPipe),exports2.ParseFloatPipe=ParseFloatPipe},89456:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ParseIntPipe=void 0;const tslib_1=__webpack_require__2(99425),injectable_decorator_1=__webpack_require__2(96920),optional_decorator_1=__webpack_require__2(19706),http_status_enum_1=__webpack_require__2(10831),http_error_by_code_util_1=__webpack_require__2(43137);let ParseIntPipe=__name(class{constructor(options){options=options||{};const{exceptionFactory,errorHttpStatusCode=http_status_enum_1.HttpStatus.BAD_REQUEST}=options;this.exceptionFactory=exceptionFactory||(error=>new http_error_by_code_util_1.HttpErrorByCode[errorHttpStatusCode](error))}transform(value,metadata2){var _this=this;return _asyncToGenerator(function*(){if(!(["string","number"].includes(typeof value)&&/^-?\d+$/.test(value)&&isFinite(value)))throw _this.exceptionFactory("Validation failed (numeric string is expected)");return parseInt(value,10)})()}},"ParseIntPipe");ParseIntPipe=tslib_1.__decorate([(0,injectable_decorator_1.Injectable)(),tslib_1.__param(0,(0,optional_decorator_1.Optional)()),tslib_1.__metadata("design:paramtypes",[Object])],ParseIntPipe),exports2.ParseIntPipe=ParseIntPipe},92791:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ParseUUIDPipe=void 0;const tslib_1=__webpack_require__2(99425),injectable_decorator_1=__webpack_require__2(96920),optional_decorator_1=__webpack_require__2(19706),http_status_enum_1=__webpack_require__2(10831),http_error_by_code_util_1=__webpack_require__2(43137),is_uuid_1=__webpack_require__2(75936);let ParseUUIDPipe=__name(class{constructor(options){options=options||{};const{exceptionFactory,errorHttpStatusCode=http_status_enum_1.HttpStatus.BAD_REQUEST,version}=options;this.version=version,this.exceptionFactory=exceptionFactory||(error=>new http_error_by_code_util_1.HttpErrorByCode[errorHttpStatusCode](error))}transform(value,metadata2){var _this=this;return _asyncToGenerator(function*(){if(!(0,is_uuid_1.isUUID)(value,_this.version))throw _this.exceptionFactory(`Validation failed (uuid ${_this.version?"v"+_this.version:""} is expected)`);return value})()}},"ParseUUIDPipe");ParseUUIDPipe=tslib_1.__decorate([(0,injectable_decorator_1.Injectable)(),tslib_1.__param(0,(0,optional_decorator_1.Optional)()),tslib_1.__metadata("design:paramtypes",[Object])],ParseUUIDPipe),exports2.ParseUUIDPipe=ParseUUIDPipe},28200:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ValidationPipe=void 0;const tslib_1=__webpack_require__2(99425),iterare_1=__webpack_require__2(57698),decorators_1=__webpack_require__2(31638),core_1=__webpack_require__2(33009),http_status_enum_1=__webpack_require__2(10831),http_error_by_code_util_1=__webpack_require__2(43137),load_package_util_1=__webpack_require__2(53015),shared_utils_1=__webpack_require__2(73819);let classValidator={},classTransformer={},ValidationPipe=__name(class{constructor(options){options=options||{};const{transform,disableErrorMessages,errorHttpStatusCode,expectedType,transformOptions,validateCustomDecorators}=options,validatorOptions=tslib_1.__rest(options,["transform","disableErrorMessages","errorHttpStatusCode","expectedType","transformOptions","validateCustomDecorators"]);this.isTransformEnabled=!!transform,this.validatorOptions=validatorOptions,this.transformOptions=transformOptions,this.isDetailedOutputDisabled=disableErrorMessages,this.validateCustomDecorators=validateCustomDecorators||!1,this.errorHttpStatusCode=errorHttpStatusCode||http_status_enum_1.HttpStatus.BAD_REQUEST,this.expectedType=expectedType,this.exceptionFactory=options.exceptionFactory||this.createExceptionFactory(),classValidator=this.loadValidator(options.validatorPackage),classTransformer=this.loadTransformer(options.transformerPackage)}loadValidator(validatorPackage){return null!=validatorPackage?validatorPackage:(0,load_package_util_1.loadPackage)("class-validator","ValidationPipe",()=>__webpack_require__2(13969))}loadTransformer(transformerPackage){return null!=transformerPackage?transformerPackage:(0,load_package_util_1.loadPackage)("class-transformer","ValidationPipe",()=>__webpack_require__2(51308))}transform(value,metadata2){var _this=this;return _asyncToGenerator(function*(){_this.expectedType&&(metadata2=Object.assign(Object.assign({},metadata2),{metatype:_this.expectedType}));const metatype=metadata2.metatype;if(!metatype||!_this.toValidate(metadata2))return _this.isTransformEnabled?_this.transformPrimitive(value,metadata2):value;const originalValue=value,isNil=(value=_this.toEmptyIfNil(value))!==originalValue,isPrimitive=_this.isPrimitive(value);_this.stripProtoKeys(value);let entity=classTransformer.plainToClass(metatype,value,_this.transformOptions);const originalEntity=entity,isCtorNotEqual=entity.constructor!==metatype;isCtorNotEqual&&!isPrimitive?entity.constructor=metatype:isCtorNotEqual&&(entity={constructor:metatype});const errors=yield _this.validate(entity,_this.validatorOptions);if(errors.length>0)throw yield _this.exceptionFactory(errors);return isPrimitive&&(entity=originalEntity),_this.isTransformEnabled?entity:isNil?originalValue:Object.keys(_this.validatorOptions).length>0?classTransformer.classToPlain(entity,_this.transformOptions):value})()}createExceptionFactory(){return(validationErrors=[])=>{if(this.isDetailedOutputDisabled)return new http_error_by_code_util_1.HttpErrorByCode[this.errorHttpStatusCode];const errors=this.flattenValidationErrors(validationErrors);return new http_error_by_code_util_1.HttpErrorByCode[this.errorHttpStatusCode](errors)}}toValidate(metadata2){const{metatype,type}=metadata2;return!("custom"===type&&!this.validateCustomDecorators)&&(![String,Boolean,Number,Array,Object,Buffer].some(t=>metatype===t)&&!(0,shared_utils_1.isNil)(metatype))}transformPrimitive(value,metadata2){if(!metadata2.data)return value;const{type,metatype}=metadata2;return"param"!==type&&"query"!==type?value:metatype===Boolean?!0===value||"true"===value:metatype===Number?+value:value}toEmptyIfNil(value){return(0,shared_utils_1.isNil)(value)?{}:value}stripProtoKeys(value){delete value.__proto__;const keys=Object.keys(value);(0,iterare_1.iterate)(keys).filter(key=>(0,shared_utils_1.isObject)(value[key])&&value[key]).forEach(key=>this.stripProtoKeys(value[key]))}isPrimitive(value){return["number","boolean","string"].includes(typeof value)}validate(object,validatorOptions){return classValidator.validate(object,validatorOptions)}flattenValidationErrors(validationErrors){return(0,iterare_1.iterate)(validationErrors).map(error=>this.mapChildrenToValidationErrors(error)).flatten().filter(item=>!!item.constraints).map(item=>Object.values(item.constraints)).flatten().toArray()}mapChildrenToValidationErrors(error,parentPath){if(!error.children||!error.children.length)return[error];const validationErrors=[];parentPath=parentPath?`${parentPath}.${error.property}`:error.property;for(const item of error.children)item.children&&item.children.length&&validationErrors.push(...this.mapChildrenToValidationErrors(item,parentPath)),validationErrors.push(this.prependConstraintsWithParentProp(parentPath,item));return validationErrors}prependConstraintsWithParentProp(parentPath,error){const constraints={};for(const key in error.constraints)constraints[key]=`${parentPath}.${error.constraints[key]}`;return Object.assign(Object.assign({},error),{constraints})}},"ValidationPipe");ValidationPipe=tslib_1.__decorate([(0,core_1.Injectable)(),tslib_1.__param(0,(0,decorators_1.Optional)()),tslib_1.__metadata("design:paramtypes",[Object])],ValidationPipe),exports2.ValidationPipe=ValidationPipe},47160:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CLASS_SERIALIZER_OPTIONS=void 0,exports2.CLASS_SERIALIZER_OPTIONS="class_serializer:options"},40902:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ClassSerializerInterceptor=void 0;const tslib_1=__webpack_require__2(99425),operators_1=__webpack_require__2(83292),core_1=__webpack_require__2(33009),file_stream_1=__webpack_require__2(5820),load_package_util_1=__webpack_require__2(53015),shared_utils_1=__webpack_require__2(73819),class_serializer_constants_1=__webpack_require__2(47160);let classTransformer={};let ClassSerializerInterceptor=__name(class{constructor(reflector,defaultOptions={}){var _a;this.reflector=reflector,this.defaultOptions=defaultOptions,classTransformer=null!==(_a=null==defaultOptions?void 0:defaultOptions.transformerPackage)&&void 0!==_a?_a:(0,load_package_util_1.loadPackage)("class-transformer","ClassSerializerInterceptor",()=>__webpack_require__2(51308)),(null==defaultOptions?void 0:defaultOptions.transformerPackage)||__webpack_require__2(51308)}intercept(context,next){const contextOptions=this.getContextOptions(context),options=Object.assign(Object.assign({},this.defaultOptions),contextOptions);return next.handle().pipe((0,operators_1.map)(res=>this.serialize(res,options)))}serialize(response,options){return!(0,shared_utils_1.isObject)(response)||response instanceof file_stream_1.StreamableFile?response:Array.isArray(response)?response.map(item=>this.transformToPlain(item,options)):this.transformToPlain(response,options)}transformToPlain(plainOrClass,options){return plainOrClass&&classTransformer.classToPlain(plainOrClass,options)}getContextOptions(context){return this.reflectSerializeMetadata(context.getHandler())||this.reflectSerializeMetadata(context.getClass())}reflectSerializeMetadata(obj){return this.reflector.get(class_serializer_constants_1.CLASS_SERIALIZER_OPTIONS,obj)}},"ClassSerializerInterceptor");ClassSerializerInterceptor=tslib_1.__decorate([(0,core_1.Injectable)(),tslib_1.__param(0,(0,core_1.Inject)("Reflector")),tslib_1.__param(1,(0,core_1.Optional)()),tslib_1.__metadata("design:paramtypes",[Object,Object])],ClassSerializerInterceptor),exports2.ClassSerializerInterceptor=ClassSerializerInterceptor},87611:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(99425).__exportStar(__webpack_require__2(63487),exports2)},63487:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SerializeOptions=void 0;const decorators_1=__webpack_require__2(31638),class_serializer_constants_1=__webpack_require__2(47160),SerializeOptions=__name(options=>(0,decorators_1.SetMetadata)(class_serializer_constants_1.CLASS_SERIALIZER_OPTIONS,options),"SerializeOptions");exports2.SerializeOptions=SerializeOptions},70479:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(40902),exports2),tslib_1.__exportStar(__webpack_require__2(87611),exports2)},73644:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var ConsoleLogger_1;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ConsoleLogger=void 0;const tslib_1=__webpack_require__2(99425),injectable_decorator_1=__webpack_require__2(96920),optional_decorator_1=__webpack_require__2(19706),cli_colors_util_1=__webpack_require__2(70051),shared_utils_1=__webpack_require__2(73819),utils_1=__webpack_require__2(13393),DEFAULT_LOG_LEVELS=["log","error","warn","debug","verbose"];let ConsoleLogger=ConsoleLogger_1=__name(class{constructor(context,options={}){this.context=context,this.options=options,options.logLevels||(options.logLevels=DEFAULT_LOG_LEVELS),context&&(this.originalContext=context)}log(message2,...optionalParams){if(!this.isLevelEnabled("log"))return;const{messages,context}=this.getContextAndMessagesToPrint([message2,...optionalParams]);this.printMessages(messages,context,"log")}error(message2,...optionalParams){if(!this.isLevelEnabled("error"))return;const{messages,context,stack:stack2}=this.getContextAndStackAndMessagesToPrint([message2,...optionalParams]);this.printMessages(messages,context,"error","stderr"),this.printStackTrace(stack2)}warn(message2,...optionalParams){if(!this.isLevelEnabled("warn"))return;const{messages,context}=this.getContextAndMessagesToPrint([message2,...optionalParams]);this.printMessages(messages,context,"warn")}debug(message2,...optionalParams){if(!this.isLevelEnabled("debug"))return;const{messages,context}=this.getContextAndMessagesToPrint([message2,...optionalParams]);this.printMessages(messages,context,"debug")}verbose(message2,...optionalParams){if(!this.isLevelEnabled("verbose"))return;const{messages,context}=this.getContextAndMessagesToPrint([message2,...optionalParams]);this.printMessages(messages,context,"verbose")}setLogLevels(levels){this.options||(this.options={}),this.options.logLevels=levels}setContext(context){this.context=context}resetContext(){this.context=this.originalContext}isLevelEnabled(level){var _a;const logLevels=null===(_a=this.options)||void 0===_a?void 0:_a.logLevels;return(0,utils_1.isLogLevelEnabled)(level,logLevels)}getTimestamp(){return new Date(Date.now()).toLocaleString(void 0,{year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",day:"2-digit",month:"2-digit"})}printMessages(messages,context="",logLevel="log",writeStreamType){messages.forEach(message2=>{const pidMessage=this.formatPid(process.pid),contextMessage=context?(0,cli_colors_util_1.yellow)(`[${context}] `):"",timestampDiff=this.updateAndGetTimestampDiff(),formattedLogLevel=logLevel.toUpperCase().padStart(7," "),formatedMessage=this.formatMessage(logLevel,message2,pidMessage,formattedLogLevel,contextMessage,timestampDiff);process[null!=writeStreamType?writeStreamType:"stdout"].write(formatedMessage)})}formatPid(pid){return`[Nest] ${pid} - `}formatMessage(logLevel,message2,pidMessage,formattedLogLevel,contextMessage,timestampDiff){const output=this.stringifyMessage(message2,logLevel);return pidMessage=this.colorize(pidMessage,logLevel),formattedLogLevel=this.colorize(formattedLogLevel,logLevel),`${pidMessage}${this.getTimestamp()} ${formattedLogLevel} ${contextMessage}${output}${timestampDiff}\n`}stringifyMessage(message2,logLevel){return(0,shared_utils_1.isPlainObject)(message2)?`${this.colorize("Object:",logLevel)}\n${JSON.stringify(message2,(key,value)=>"bigint"==typeof value?value.toString():value,2)}\n`:this.colorize(message2,logLevel)}colorize(message2,logLevel){return this.getColorByLogLevel(logLevel)(message2)}printStackTrace(stack2){!stack2||process.stderr.write(`${stack2}\n`)}updateAndGetTimestampDiff(){var _a;const result=ConsoleLogger_1.lastTimestampAt&&(null===(_a=this.options)||void 0===_a?void 0:_a.timestamp)?(0,cli_colors_util_1.yellow)(` +${Date.now()-ConsoleLogger_1.lastTimestampAt}ms`):"";return ConsoleLogger_1.lastTimestampAt=Date.now(),result}getContextAndMessagesToPrint(args2){if((null==args2?void 0:args2.length)<=1)return{messages:args2,context:this.context};const lastElement=args2[args2.length-1];return(0,shared_utils_1.isString)(lastElement)?{context:lastElement,messages:args2.slice(0,args2.length-1)}:{messages:args2,context:this.context}}getContextAndStackAndMessagesToPrint(args2){const{messages,context}=this.getContextAndMessagesToPrint(args2);if((null==messages?void 0:messages.length)<=1)return{messages,context};const lastElement=messages[messages.length-1];return(0,shared_utils_1.isString)(lastElement)?{stack:lastElement,messages:messages.slice(0,messages.length-1),context}:{messages,context}}getColorByLogLevel(level){switch(level){case"debug":return cli_colors_util_1.clc.magentaBright;case"warn":return cli_colors_util_1.clc.yellow;case"error":return cli_colors_util_1.clc.red;case"verbose":return cli_colors_util_1.clc.cyanBright;default:return cli_colors_util_1.clc.green}}},"ConsoleLogger");ConsoleLogger=ConsoleLogger_1=tslib_1.__decorate([(0,injectable_decorator_1.Injectable)(),tslib_1.__param(0,(0,optional_decorator_1.Optional)()),tslib_1.__param(1,(0,optional_decorator_1.Optional)()),tslib_1.__metadata("design:paramtypes",[String,Object])],ConsoleLogger),exports2.ConsoleLogger=ConsoleLogger},14929:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(99425);tslib_1.__exportStar(__webpack_require__2(73644),exports2),tslib_1.__exportStar(__webpack_require__2(62366),exports2)},62366:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var Logger_1;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Logger=void 0;const tslib_1=__webpack_require__2(99425),injectable_decorator_1=__webpack_require__2(96920),optional_decorator_1=__webpack_require__2(19706),shared_utils_1=__webpack_require__2(73819),console_logger_service_1=__webpack_require__2(73644),utils_1=__webpack_require__2(13393),DEFAULT_LOGGER=new console_logger_service_1.ConsoleLogger;let Logger=Logger_1=__name(class{constructor(context,options={}){this.context=context,this.options=options}get localInstance(){return Logger_1.staticInstanceRef===DEFAULT_LOGGER||Logger_1.staticInstanceRef instanceof Logger_1&&Object.getPrototypeOf(Logger_1.staticInstanceRef).constructor===Logger_1?this.registerLocalInstanceRef():Logger_1.staticInstanceRef}error(message2,...optionalParams){var _a;optionalParams=this.context?optionalParams.concat(this.context):optionalParams,null===(_a=this.localInstance)||void 0===_a||_a.error(message2,...optionalParams)}log(message2,...optionalParams){var _a;optionalParams=this.context?optionalParams.concat(this.context):optionalParams,null===(_a=this.localInstance)||void 0===_a||_a.log(message2,...optionalParams)}warn(message2,...optionalParams){var _a;optionalParams=this.context?optionalParams.concat(this.context):optionalParams,null===(_a=this.localInstance)||void 0===_a||_a.warn(message2,...optionalParams)}debug(message2,...optionalParams){var _a,_b;optionalParams=this.context?optionalParams.concat(this.context):optionalParams,null===(_b=null===(_a=this.localInstance)||void 0===_a?void 0:_a.debug)||void 0===_b||_b.call(_a,message2,...optionalParams)}verbose(message2,...optionalParams){var _a,_b;optionalParams=this.context?optionalParams.concat(this.context):optionalParams,null===(_b=null===(_a=this.localInstance)||void 0===_a?void 0:_a.verbose)||void 0===_b||_b.call(_a,message2,...optionalParams)}static error(message2,...optionalParams){var _a;null===(_a=this.staticInstanceRef)||void 0===_a||_a.error(message2,...optionalParams)}static log(message2,...optionalParams){var _a;null===(_a=this.staticInstanceRef)||void 0===_a||_a.log(message2,...optionalParams)}static warn(message2,...optionalParams){var _a;null===(_a=this.staticInstanceRef)||void 0===_a||_a.warn(message2,...optionalParams)}static debug(message2,...optionalParams){var _a,_b;null===(_b=null===(_a=this.staticInstanceRef)||void 0===_a?void 0:_a.debug)||void 0===_b||_b.call(_a,message2,...optionalParams)}static verbose(message2,...optionalParams){var _a,_b;null===(_b=null===(_a=this.staticInstanceRef)||void 0===_a?void 0:_a.verbose)||void 0===_b||_b.call(_a,message2,...optionalParams)}static flush(){this.isBufferAttached=!1,this.logBuffer.forEach(item=>item.methodRef(...item.arguments)),this.logBuffer=[]}static attachBuffer(){this.isBufferAttached=!0}static detachBuffer(){this.isBufferAttached=!1}static getTimestamp(){return new Date(Date.now()).toLocaleString(void 0,{year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",day:"2-digit",month:"2-digit"})}static overrideLogger(logger){var _a;if(Array.isArray(logger))return Logger_1.logLevels=logger,null===(_a=this.staticInstanceRef)||void 0===_a?void 0:_a.setLogLevels(logger);if((0,shared_utils_1.isObject)(logger)){if(logger instanceof Logger_1&&logger.constructor!==Logger_1){const errorMessage='Using the "extends Logger" instruction is not allowed in Nest v8. Please, use "extends ConsoleLogger" instead.';throw this.staticInstanceRef.error(errorMessage),new Error(errorMessage)}this.staticInstanceRef=logger}else this.staticInstanceRef=void 0}static isLevelEnabled(level){const logLevels=Logger_1.logLevels;return(0,utils_1.isLogLevelEnabled)(level,logLevels)}registerLocalInstanceRef(){var _a;return this.localInstanceRef||(this.localInstanceRef=new console_logger_service_1.ConsoleLogger(this.context,{timestamp:null===(_a=this.options)||void 0===_a?void 0:_a.timestamp,logLevels:Logger_1.logLevels})),this.localInstanceRef}},"Logger");Logger.logBuffer=new Array,Logger.staticInstanceRef=DEFAULT_LOGGER,Logger.WrapBuffer=(target,propertyKey,descriptor)=>{const originalFn=descriptor.value;descriptor.value=function(...args2){if(!Logger_1.isBufferAttached)return originalFn.call(this,...args2);Logger_1.logBuffer.push({methodRef:originalFn.bind(this),arguments:args2})}},tslib_1.__decorate([Logger_1.WrapBuffer,tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",void 0)],Logger.prototype,"error",null),tslib_1.__decorate([Logger_1.WrapBuffer,tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",void 0)],Logger.prototype,"log",null),tslib_1.__decorate([Logger_1.WrapBuffer,tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",void 0)],Logger.prototype,"warn",null),tslib_1.__decorate([Logger_1.WrapBuffer,tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",void 0)],Logger.prototype,"debug",null),tslib_1.__decorate([Logger_1.WrapBuffer,tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",void 0)],Logger.prototype,"verbose",null),tslib_1.__decorate([Logger_1.WrapBuffer,tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",void 0)],Logger,"error",null),tslib_1.__decorate([Logger_1.WrapBuffer,tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",void 0)],Logger,"log",null),tslib_1.__decorate([Logger_1.WrapBuffer,tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",void 0)],Logger,"warn",null),tslib_1.__decorate([Logger_1.WrapBuffer,tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",void 0)],Logger,"debug",null),tslib_1.__decorate([Logger_1.WrapBuffer,tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",void 0)],Logger,"verbose",null),Logger=Logger_1=tslib_1.__decorate([(0,injectable_decorator_1.Injectable)(),tslib_1.__param(0,(0,optional_decorator_1.Optional)()),tslib_1.__param(1,(0,optional_decorator_1.Optional)()),tslib_1.__metadata("design:paramtypes",[String,Object])],Logger),exports2.Logger=Logger},13393:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(99425).__exportStar(__webpack_require__2(36685),exports2)},36685:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.isLogLevelEnabled=void 0;const LOG_LEVEL_VALUES={debug:0,verbose:1,log:2,warn:3,error:4};function isLogLevelEnabled(targetLevel,logLevels){var _a;if(!logLevels||Array.isArray(logLevels)&&0===(null==logLevels?void 0:logLevels.length))return!1;if(logLevels.includes(targetLevel))return!0;const highestLogLevelValue=null===(_a=logLevels.map(level=>LOG_LEVEL_VALUES[level]).sort((a,b2)=>b2-a))||void 0===_a?void 0:_a[0];return LOG_LEVEL_VALUES[targetLevel]>=highestLogLevelValue}__name(isLogLevelEnabled,"isLogLevelEnabled"),exports2.isLogLevelEnabled=isLogLevelEnabled},60819:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.assignCustomParameterMetadata=void 0;const constants_1=__webpack_require__2(75441);function assignCustomParameterMetadata(args2,paramtype,index,factory,data,...pipes){return Object.assign(Object.assign({},args2),{[`${paramtype}${constants_1.CUSTOM_ROUTE_AGRS_METADATA}:${index}`]:{index,factory,data,pipes}})}__name(assignCustomParameterMetadata,"assignCustomParameterMetadata"),exports2.assignCustomParameterMetadata=assignCustomParameterMetadata},70051:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.yellow=exports2.clc=void 0;const isColorAllowed=__name(()=>!process.env.NO_COLOR,"isColorAllowed"),colorIfAllowed=__name(colorFn=>text=>isColorAllowed()?colorFn(text):text,"colorIfAllowed");exports2.clc={green:colorIfAllowed(text=>`\x1b[32m${text}\x1b[39m`),yellow:colorIfAllowed(text=>`\x1b[33m${text}\x1b[39m`),red:colorIfAllowed(text=>`\x1b[31m${text}\x1b[39m`),magentaBright:colorIfAllowed(text=>`\x1b[95m${text}\x1b[39m`),cyanBright:colorIfAllowed(text=>`\x1b[96m${text}\x1b[39m`)},exports2.yellow=colorIfAllowed(text=>`\x1b[38;5;3m${text}\x1b[39m`)},60572:(__unused_webpack_module,exports2)=>{"use strict";function extendArrayMetadata(key,metadata2,target){const value=[...Reflect.getMetadata(key,target)||[],...metadata2];Reflect.defineMetadata(key,value,target)}Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.extendArrayMetadata=void 0,__name(extendArrayMetadata,"extendArrayMetadata"),exports2.extendArrayMetadata=extendArrayMetadata},90485:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.forwardRef=void 0;const forwardRef=__name(fn2=>({forwardRef:fn2}),"forwardRef");exports2.forwardRef=forwardRef},43137:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HttpErrorByCode=void 0;const enums_1=__webpack_require__2(72346),exceptions_1=__webpack_require__2(70547);exports2.HttpErrorByCode={[enums_1.HttpStatus.BAD_GATEWAY]:exceptions_1.BadGatewayException,[enums_1.HttpStatus.BAD_REQUEST]:exceptions_1.BadRequestException,[enums_1.HttpStatus.CONFLICT]:exceptions_1.ConflictException,[enums_1.HttpStatus.FORBIDDEN]:exceptions_1.ForbiddenException,[enums_1.HttpStatus.GATEWAY_TIMEOUT]:exceptions_1.GatewayTimeoutException,[enums_1.HttpStatus.GONE]:exceptions_1.GoneException,[enums_1.HttpStatus.I_AM_A_TEAPOT]:exceptions_1.ImATeapotException,[enums_1.HttpStatus.INTERNAL_SERVER_ERROR]:exceptions_1.InternalServerErrorException,[enums_1.HttpStatus.METHOD_NOT_ALLOWED]:exceptions_1.MethodNotAllowedException,[enums_1.HttpStatus.NOT_ACCEPTABLE]:exceptions_1.NotAcceptableException,[enums_1.HttpStatus.NOT_FOUND]:exceptions_1.NotFoundException,[enums_1.HttpStatus.NOT_IMPLEMENTED]:exceptions_1.NotImplementedException,[enums_1.HttpStatus.PAYLOAD_TOO_LARGE]:exceptions_1.PayloadTooLargeException,[enums_1.HttpStatus.PRECONDITION_FAILED]:exceptions_1.PreconditionFailedException,[enums_1.HttpStatus.REQUEST_TIMEOUT]:exceptions_1.RequestTimeoutException,[enums_1.HttpStatus.SERVICE_UNAVAILABLE]:exceptions_1.ServiceUnavailableException,[enums_1.HttpStatus.UNAUTHORIZED]:exceptions_1.UnauthorizedException,[enums_1.HttpStatus.UNPROCESSABLE_ENTITY]:exceptions_1.UnprocessableEntityException,[enums_1.HttpStatus.UNSUPPORTED_MEDIA_TYPE]:exceptions_1.UnsupportedMediaTypeException}},55139:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(99425).__exportStar(__webpack_require__2(90485),exports2)},75936:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.isUUID=void 0;const exceptions_1=__webpack_require__2(70547),shared_utils_1=__webpack_require__2(73819),uuid={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};function isUUID(str,version="all"){if(!(0,shared_utils_1.isString)(str))throw new exceptions_1.BadRequestException("The value passed as UUID is not a string");const pattern=uuid[version];return pattern&&pattern.test(str)}__name(isUUID,"isUUID"),exports2.isUUID=isUUID},53015:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.loadPackage=void 0;const logger_service_1=__webpack_require__2(62366),MISSING_REQUIRED_DEPENDENCY=__name((name,reason)=>`The "${name}" package is missing. Please, make sure to install this library ($ npm install ${name}) to take advantage of ${reason}.`,"MISSING_REQUIRED_DEPENDENCY"),logger=new logger_service_1.Logger("PackageLoader");function loadPackage(packageName,context,loaderFn){try{return loaderFn?loaderFn():__webpack_require__2(42366)(packageName)}catch{logger.error(MISSING_REQUIRED_DEPENDENCY(packageName,context)),logger_service_1.Logger.flush(),process.exit(1)}}__name(loadPackage,"loadPackage"),exports2.loadPackage=loadPackage},80749:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.randomStringGenerator=void 0;const uuid_1=__webpack_require__2(82697),randomStringGenerator=__name(()=>(0,uuid_1.v4)(),"randomStringGenerator");exports2.randomStringGenerator=randomStringGenerator},73819:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.isSymbol=exports2.isEmpty=exports2.isNil=exports2.isConstructor=exports2.isNumber=exports2.isString=exports2.isFunction=exports2.stripEndSlash=exports2.normalizePath=exports2.validatePath=exports2.addLeadingSlash=exports2.isPlainObject=exports2.isObject=exports2.isUndefined=void 0;const isUndefined=__name(obj=>void 0===obj,"isUndefined");exports2.isUndefined=isUndefined;const isObject=__name(fn2=>!(0,exports2.isNil)(fn2)&&"object"==typeof fn2,"isObject");exports2.isObject=isObject;const isPlainObject=__name(fn2=>{if(!(0,exports2.isObject)(fn2))return!1;const proto=Object.getPrototypeOf(fn2);if(null===proto)return!0;const ctor=Object.prototype.hasOwnProperty.call(proto,"constructor")&&proto.constructor;return"function"==typeof ctor&&ctor instanceof ctor&&Function.prototype.toString.call(ctor)===Function.prototype.toString.call(Object)},"isPlainObject");exports2.isPlainObject=isPlainObject;const addLeadingSlash=__name(path=>path&&"string"==typeof path?"/"!==path.charAt(0)?"/"+path:path:"","addLeadingSlash");exports2.addLeadingSlash=addLeadingSlash,exports2.validatePath=exports2.addLeadingSlash;const normalizePath=__name(path=>path?path.startsWith("/")?("/"+path.replace(/\/+$/,"")).replace(/\/+/g,"/"):"/"+path.replace(/\/+$/,""):"/","normalizePath");exports2.normalizePath=normalizePath;const stripEndSlash=__name(path=>"/"===path[path.length-1]?path.slice(0,path.length-1):path,"stripEndSlash");exports2.stripEndSlash=stripEndSlash;const isFunction=__name(val=>"function"==typeof val,"isFunction");exports2.isFunction=isFunction;const isString=__name(val=>"string"==typeof val,"isString");exports2.isString=isString;const isNumber=__name(val=>"number"==typeof val,"isNumber");exports2.isNumber=isNumber;const isConstructor=__name(val=>"constructor"===val,"isConstructor");exports2.isConstructor=isConstructor;const isNil=__name(val=>(0,exports2.isUndefined)(val)||null===val,"isNil");exports2.isNil=isNil;const isEmpty=__name(array=>!(array&&array.length>0),"isEmpty");exports2.isEmpty=isEmpty;const isSymbol=__name(val=>"symbol"==typeof val,"isSymbol");exports2.isSymbol=isSymbol},49922:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.validateEach=exports2.InvalidDecoratorItemException=void 0;class InvalidDecoratorItemException extends Error{constructor(decorator,item,context){const message2=`Invalid ${item} passed to ${decorator}() decorator (${context}).`;super(message2),this.msg=message2}what(){return this.msg}}function validateEach(context,arr,predicate,decorator,item){if(!context||!context.name)return!0;if(arr.some(str=>!predicate(str)))throw new InvalidDecoratorItemException(decorator,item,context.name);return!0}__name(InvalidDecoratorItemException,"InvalidDecoratorItemException"),exports2.InvalidDecoratorItemException=InvalidDecoratorItemException,__name(validateEach,"validateEach"),exports2.validateEach=validateEach},65002:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.validateModuleKeys=exports2.INVALID_MODULE_CONFIG_MESSAGE=void 0;const constants_1=__webpack_require__2(75441),INVALID_MODULE_CONFIG_MESSAGE=__name((text,property)=>`Invalid property '${property}' passed into the @Module() decorator.`,"INVALID_MODULE_CONFIG_MESSAGE");exports2.INVALID_MODULE_CONFIG_MESSAGE=INVALID_MODULE_CONFIG_MESSAGE;const metadataKeys=[constants_1.MODULE_METADATA.IMPORTS,constants_1.MODULE_METADATA.EXPORTS,constants_1.MODULE_METADATA.CONTROLLERS,constants_1.MODULE_METADATA.PROVIDERS];function validateModuleKeys(keys){const validateKey=__name(key=>{if(!metadataKeys.includes(key))throw new Error(exports2.INVALID_MODULE_CONFIG_MESSAGE`${key}`)},"validateKey");keys.forEach(validateKey)}__name(validateModuleKeys,"validateModuleKeys"),exports2.validateModuleKeys=validateModuleKeys},69907:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AbstractHttpAdapter=void 0;class AbstractHttpAdapter{constructor(instance){this.instance=instance}init(){return _asyncToGenerator(function*(){})()}use(...args2){return this.instance.use(...args2)}get(...args2){return this.instance.get(...args2)}post(...args2){return this.instance.post(...args2)}head(...args2){return this.instance.head(...args2)}delete(...args2){return this.instance.delete(...args2)}put(...args2){return this.instance.put(...args2)}patch(...args2){return this.instance.patch(...args2)}all(...args2){return this.instance.all(...args2)}options(...args2){return this.instance.options(...args2)}listen(port,hostname,callback){return this.instance.listen(port,hostname,callback)}getHttpServer(){return this.httpServer}setHttpServer(httpServer){this.httpServer=httpServer}setInstance(instance){this.instance=instance}getInstance(){return this.instance}}__name(AbstractHttpAdapter,"AbstractHttpAdapter"),exports2.AbstractHttpAdapter=AbstractHttpAdapter},68457:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(78099).__exportStar(__webpack_require__2(69907),exports2)},64112:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ApplicationConfig=void 0;class ApplicationConfig{constructor(ioAdapter=null){this.ioAdapter=ioAdapter,this.globalPrefix="",this.globalPrefixOptions={},this.globalPipes=[],this.globalFilters=[],this.globalInterceptors=[],this.globalGuards=[],this.globalRequestPipes=[],this.globalRequestFilters=[],this.globalRequestInterceptors=[],this.globalRequestGuards=[]}setGlobalPrefix(prefix){this.globalPrefix=prefix}getGlobalPrefix(){return this.globalPrefix}setGlobalPrefixOptions(options){this.globalPrefixOptions=options}getGlobalPrefixOptions(){return this.globalPrefixOptions}setIoAdapter(ioAdapter){this.ioAdapter=ioAdapter}getIoAdapter(){return this.ioAdapter}addGlobalPipe(pipe){this.globalPipes.push(pipe)}useGlobalPipes(...pipes){this.globalPipes=this.globalPipes.concat(pipes)}getGlobalFilters(){return this.globalFilters}addGlobalFilter(filter){this.globalFilters.push(filter)}useGlobalFilters(...filters){this.globalFilters=this.globalFilters.concat(filters)}getGlobalPipes(){return this.globalPipes}getGlobalInterceptors(){return this.globalInterceptors}addGlobalInterceptor(interceptor){this.globalInterceptors.push(interceptor)}useGlobalInterceptors(...interceptors){this.globalInterceptors=this.globalInterceptors.concat(interceptors)}getGlobalGuards(){return this.globalGuards}addGlobalGuard(guard){this.globalGuards.push(guard)}useGlobalGuards(...guards){this.globalGuards=this.globalGuards.concat(guards)}addGlobalRequestInterceptor(wrapper){this.globalRequestInterceptors.push(wrapper)}getGlobalRequestInterceptors(){return this.globalRequestInterceptors}addGlobalRequestPipe(wrapper){this.globalRequestPipes.push(wrapper)}getGlobalRequestPipes(){return this.globalRequestPipes}addGlobalRequestFilter(wrapper){this.globalRequestFilters.push(wrapper)}getGlobalRequestFilters(){return this.globalRequestFilters}addGlobalRequestGuard(wrapper){this.globalRequestGuards.push(wrapper)}getGlobalRequestGuards(){return this.globalRequestGuards}enableVersioning(options){Array.isArray(options.defaultVersion)&&(options.defaultVersion=Array.from(new Set(options.defaultVersion))),this.versioningOptions=options}getVersioning(){return this.versioningOptions}}__name(ApplicationConfig,"ApplicationConfig"),exports2.ApplicationConfig=ApplicationConfig},86618:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.APP_FILTER=exports2.APP_GUARD=exports2.APP_PIPE=exports2.APP_INTERCEPTOR=exports2.MESSAGES=void 0,exports2.MESSAGES={APPLICATION_START:"Starting Nest application...",APPLICATION_READY:"Nest application successfully started",MICROSERVICE_READY:"Nest microservice successfully started",UNKNOWN_EXCEPTION_MESSAGE:"Internal server error",ERROR_DURING_SHUTDOWN:"Error happened during shutdown",CALL_LISTEN_FIRST:"app.listen() needs to be called before calling app.getUrl()"},exports2.APP_INTERCEPTOR="APP_INTERCEPTOR",exports2.APP_PIPE="APP_PIPE",exports2.APP_GUARD="APP_GUARD",exports2.APP_FILTER="APP_FILTER"},18293:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DiscoveryModule=void 0;const tslib_1=__webpack_require__2(78099),common_1=__webpack_require__2(28791),metadata_scanner_1=__webpack_require__2(68499),discovery_service_1=__webpack_require__2(76872);let DiscoveryModule=__name(class{},"DiscoveryModule");DiscoveryModule=tslib_1.__decorate([(0,common_1.Module)({providers:[metadata_scanner_1.MetadataScanner,discovery_service_1.DiscoveryService],exports:[metadata_scanner_1.MetadataScanner,discovery_service_1.DiscoveryService]})],DiscoveryModule),exports2.DiscoveryModule=DiscoveryModule},76872:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DiscoveryService=void 0;const tslib_1=__webpack_require__2(78099),common_1=__webpack_require__2(28791),modules_container_1=__webpack_require__2(54284);let DiscoveryService=__name(class{constructor(modulesContainer){this.modulesContainer=modulesContainer}getProviders(options={},modules=this.getModules(options)){const providers=modules.map(item=>[...item.providers.values()]);return(0,common_1.flatten)(providers)}getControllers(options={},modules=this.getModules(options)){const controllers=modules.map(item=>[...item.controllers.values()]);return(0,common_1.flatten)(controllers)}getModules(options={}){return options.include?this.includeWhitelisted(options.include):[...this.modulesContainer.values()]}includeWhitelisted(include){return[...this.modulesContainer.values()].filter(({metatype})=>include.some(item=>item===metatype))}},"DiscoveryService");DiscoveryService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[modules_container_1.ModulesContainer])],DiscoveryService),exports2.DiscoveryService=DiscoveryService},68004:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(78099);tslib_1.__exportStar(__webpack_require__2(18293),exports2),tslib_1.__exportStar(__webpack_require__2(76872),exports2)},64545:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ExceptionHandler=void 0;const runtime_exception_1=__webpack_require__2(80782),logger_service_1=__webpack_require__2(62366);class ExceptionHandler{handle(exception){exception instanceof runtime_exception_1.RuntimeException?ExceptionHandler.logger.error(exception.what(),exception.stack):ExceptionHandler.logger.error(exception.message,exception.stack)}}__name(ExceptionHandler,"ExceptionHandler"),exports2.ExceptionHandler=ExceptionHandler,ExceptionHandler.logger=new logger_service_1.Logger(ExceptionHandler.name)},65315:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ExceptionsZone=void 0;const common_1=__webpack_require__2(28791),exception_handler_1=__webpack_require__2(64545),DEFAULT_TEARDOWN=__name(()=>process.exit(1),"DEFAULT_TEARDOWN");class ExceptionsZone{static run(callback,teardown=DEFAULT_TEARDOWN,autoFlushLogs){try{callback()}catch(e){this.exceptionHandler.handle(e),autoFlushLogs&&common_1.Logger.flush(),teardown(e)}}static asyncRun(callback,teardown=DEFAULT_TEARDOWN,autoFlushLogs){var _this=this;return _asyncToGenerator(function*(){try{yield callback()}catch(e){_this.exceptionHandler.handle(e),autoFlushLogs&&common_1.Logger.flush(),teardown(e)}})()}}__name(ExceptionsZone,"ExceptionsZone"),exports2.ExceptionsZone=ExceptionsZone,ExceptionsZone.exceptionHandler=new exception_handler_1.ExceptionHandler},50265:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CircularDependencyException=void 0;const runtime_exception_1=__webpack_require__2(80782);class CircularDependencyException extends runtime_exception_1.RuntimeException{constructor(context){super(`A circular dependency has been detected${context?` inside ${context}`:""}. Please, make sure that each side of a bidirectional relationships are decorated with "forwardRef()".`)}}__name(CircularDependencyException,"CircularDependencyException"),exports2.CircularDependencyException=CircularDependencyException},85892:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InvalidClassModuleException=void 0;const messages_1=__webpack_require__2(7334),runtime_exception_1=__webpack_require__2(80782);class InvalidClassModuleException extends runtime_exception_1.RuntimeException{constructor(metatypeUsedAsAModule,scope){super((0,messages_1.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE)(metatypeUsedAsAModule,scope))}}__name(InvalidClassModuleException,"InvalidClassModuleException"),exports2.InvalidClassModuleException=InvalidClassModuleException},24743:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InvalidClassScopeException=void 0;const shared_utils_1=__webpack_require__2(73819),messages_1=__webpack_require__2(7334),runtime_exception_1=__webpack_require__2(80782);class InvalidClassScopeException extends runtime_exception_1.RuntimeException{constructor(metatypeOrToken){let name=(0,shared_utils_1.isFunction)(metatypeOrToken)?metatypeOrToken.name:metatypeOrToken;name=name&&name.toString(),super(messages_1.INVALID_CLASS_SCOPE_MESSAGE`${name}`)}}__name(InvalidClassScopeException,"InvalidClassScopeException"),exports2.InvalidClassScopeException=InvalidClassScopeException},71984:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InvalidClassException=void 0;const messages_1=__webpack_require__2(7334),runtime_exception_1=__webpack_require__2(80782);class InvalidClassException extends runtime_exception_1.RuntimeException{constructor(value){super(messages_1.INVALID_CLASS_MESSAGE`${value}`)}}__name(InvalidClassException,"InvalidClassException"),exports2.InvalidClassException=InvalidClassException},52135:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InvalidExceptionFilterException=void 0;const runtime_exception_1=__webpack_require__2(80782),messages_1=__webpack_require__2(7334);class InvalidExceptionFilterException extends runtime_exception_1.RuntimeException{constructor(){super(messages_1.INVALID_EXCEPTION_FILTER)}}__name(InvalidExceptionFilterException,"InvalidExceptionFilterException"),exports2.InvalidExceptionFilterException=InvalidExceptionFilterException},70341:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InvalidMiddlewareException=void 0;const messages_1=__webpack_require__2(7334),runtime_exception_1=__webpack_require__2(80782);class InvalidMiddlewareException extends runtime_exception_1.RuntimeException{constructor(name){super(messages_1.INVALID_MIDDLEWARE_MESSAGE`${name}`)}}__name(InvalidMiddlewareException,"InvalidMiddlewareException"),exports2.InvalidMiddlewareException=InvalidMiddlewareException},73590:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InvalidModuleException=void 0;const messages_1=__webpack_require__2(7334),runtime_exception_1=__webpack_require__2(80782);class InvalidModuleException extends runtime_exception_1.RuntimeException{constructor(parentModule,index,scope){super((0,messages_1.INVALID_MODULE_MESSAGE)(parentModule,index,scope))}}__name(InvalidModuleException,"InvalidModuleException"),exports2.InvalidModuleException=InvalidModuleException},80782:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RuntimeException=void 0;class RuntimeException extends Error{constructor(message2=""){super(message2)}what(){return this.message}}__name(RuntimeException,"RuntimeException"),exports2.RuntimeException=RuntimeException},60789:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UndefinedDependencyException=void 0;const messages_1=__webpack_require__2(7334),runtime_exception_1=__webpack_require__2(80782);class UndefinedDependencyException extends runtime_exception_1.RuntimeException{constructor(type,undefinedDependencyContext,module2){super((0,messages_1.UNKNOWN_DEPENDENCIES_MESSAGE)(type,undefinedDependencyContext,module2))}}__name(UndefinedDependencyException,"UndefinedDependencyException"),exports2.UndefinedDependencyException=UndefinedDependencyException},23836:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UndefinedForwardRefException=void 0;const messages_1=__webpack_require__2(7334),runtime_exception_1=__webpack_require__2(80782);class UndefinedForwardRefException extends runtime_exception_1.RuntimeException{constructor(scope){super((0,messages_1.UNDEFINED_FORWARDREF_MESSAGE)(scope))}}__name(UndefinedForwardRefException,"UndefinedForwardRefException"),exports2.UndefinedForwardRefException=UndefinedForwardRefException},82112:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UndefinedModuleException=void 0;const runtime_exception_1=__webpack_require__2(80782),messages_1=__webpack_require__2(7334);class UndefinedModuleException extends runtime_exception_1.RuntimeException{constructor(parentModule,index,scope){super((0,messages_1.UNDEFINED_MODULE_MESSAGE)(parentModule,index,scope))}}__name(UndefinedModuleException,"UndefinedModuleException"),exports2.UndefinedModuleException=UndefinedModuleException},48332:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UnknownDependenciesException=void 0;const messages_1=__webpack_require__2(7334),runtime_exception_1=__webpack_require__2(80782);class UnknownDependenciesException extends runtime_exception_1.RuntimeException{constructor(type,unknownDependencyContext,module2){super((0,messages_1.UNKNOWN_DEPENDENCIES_MESSAGE)(type,unknownDependencyContext,module2))}}__name(UnknownDependenciesException,"UnknownDependenciesException"),exports2.UnknownDependenciesException=UnknownDependenciesException},35667:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UnknownElementException=void 0;const runtime_exception_1=__webpack_require__2(80782);class UnknownElementException extends runtime_exception_1.RuntimeException{constructor(name){super(`Nest could not find ${(name=name&&name.toString())||"given"} element (this provider does not exist in the current context)`)}}__name(UnknownElementException,"UnknownElementException"),exports2.UnknownElementException=UnknownElementException},44710:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UnknownExportException=void 0;const messages_1=__webpack_require__2(7334),runtime_exception_1=__webpack_require__2(80782);class UnknownExportException extends runtime_exception_1.RuntimeException{constructor(token,moduleName){super((0,messages_1.UNKNOWN_EXPORT_MESSAGE)(token,moduleName))}}__name(UnknownExportException,"UnknownExportException"),exports2.UnknownExportException=UnknownExportException},18793:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UnknownModuleException=void 0;const runtime_exception_1=__webpack_require__2(80782);class UnknownModuleException extends runtime_exception_1.RuntimeException{constructor(){super("Nest could not select the given module (it does not exist in current context)")}}__name(UnknownModuleException,"UnknownModuleException"),exports2.UnknownModuleException=UnknownModuleException},40882:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UnknownRequestMappingException=void 0;const runtime_exception_1=__webpack_require__2(80782),messages_1=__webpack_require__2(7334);class UnknownRequestMappingException extends runtime_exception_1.RuntimeException{constructor(){super(messages_1.UNKNOWN_REQUEST_MAPPING)}}__name(UnknownRequestMappingException,"UnknownRequestMappingException"),exports2.UnknownRequestMappingException=UnknownRequestMappingException},7334:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION=exports2.INVALID_EXCEPTION_FILTER=exports2.UNHANDLED_RUNTIME_EXCEPTION=exports2.UNKNOWN_REQUEST_MAPPING=exports2.INVALID_MIDDLEWARE_CONFIGURATION=exports2.INVALID_CLASS_SCOPE_MESSAGE=exports2.INVALID_CLASS_MESSAGE=exports2.UNKNOWN_EXPORT_MESSAGE=exports2.UNDEFINED_MODULE_MESSAGE=exports2.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE=exports2.INVALID_MODULE_MESSAGE=exports2.UNDEFINED_FORWARDREF_MESSAGE=exports2.INVALID_MIDDLEWARE_MESSAGE=exports2.UNKNOWN_DEPENDENCIES_MESSAGE=void 0;const shared_utils_1=__webpack_require__2(73819),getInstanceName=__name(instance=>{var _a,_b;return(null==instance?void 0:instance.forwardRef)?null===(_a=instance.forwardRef())||void 0===_a?void 0:_a.name:(null==instance?void 0:instance.module)?null===(_b=instance.module)||void 0===_b?void 0:_b.name:null==instance?void 0:instance.name},"getInstanceName"),getDependencyName=__name(dependency=>getInstanceName(dependency)||(0,shared_utils_1.isSymbol)(dependency)&&dependency.toString()||dependency||"+","getDependencyName"),getModuleName=__name(module2=>module2&&getInstanceName(module2.metatype)||"current","getModuleName"),stringifyScope=__name(scope=>(scope||[]).map(getInstanceName).join(" -> "),"stringifyScope"),UNKNOWN_DEPENDENCIES_MESSAGE=__name((type,unknownDependencyContext,module2)=>{const{index,name="dependency",dependencies,key}=unknownDependencyContext,moduleName=getModuleName(module2)||"Module",dependencyName=getDependencyName(name);let message2=`Nest can't resolve dependencies of the ${type.toString()}`;const potentialSolutions=`\n\nPotential solutions:\n- If ${dependencyName} is a provider, is it part of the current ${moduleName}?\n- If ${dependencyName} is exported from a separate @Module, is that module imported within ${moduleName}?\n @Module({\n imports: [ /* the Module containing ${dependencyName} */ ]\n })\n`;if((0,shared_utils_1.isNil)(index))return message2+=`. Please make sure that the "${key.toString()}" property is available in the current context.${potentialSolutions}`,message2;const dependenciesName=(dependencies||[]).map(getDependencyName);return dependenciesName[index]="?",message2+=" (",message2+=dependenciesName.join(", "),message2+=`). Please make sure that the argument ${dependencyName} at index [${index}] is available in the ${getModuleName(module2)} context.`,message2+=potentialSolutions,message2},"UNKNOWN_DEPENDENCIES_MESSAGE");exports2.UNKNOWN_DEPENDENCIES_MESSAGE=UNKNOWN_DEPENDENCIES_MESSAGE;const INVALID_MIDDLEWARE_MESSAGE=__name((text,name)=>`The middleware doesn't provide the 'use' method (${name})`,"INVALID_MIDDLEWARE_MESSAGE");exports2.INVALID_MIDDLEWARE_MESSAGE=INVALID_MIDDLEWARE_MESSAGE;const UNDEFINED_FORWARDREF_MESSAGE=__name(scope=>`Nest cannot create the module instance. Often, this is because of a circular dependency between modules. Use forwardRef() to avoid it.\n\n(Read more: https://docs.nestjs.com/fundamentals/circular-dependency)\nScope [${stringifyScope(scope)}]\n`,"UNDEFINED_FORWARDREF_MESSAGE");exports2.UNDEFINED_FORWARDREF_MESSAGE=UNDEFINED_FORWARDREF_MESSAGE;const INVALID_MODULE_MESSAGE=__name((parentModule,index,scope)=>{const parentModuleName=(null==parentModule?void 0:parentModule.name)||"module";return`Nest cannot create the ${parentModuleName} instance.\nReceived an unexpected value at index [${index}] of the ${parentModuleName} "imports" array.\n\nScope [${stringifyScope(scope)}]`},"INVALID_MODULE_MESSAGE");exports2.INVALID_MODULE_MESSAGE=INVALID_MODULE_MESSAGE;const USING_INVALID_CLASS_AS_A_MODULE_MESSAGE=__name((metatypeUsedAsAModule,scope)=>`In the next major version, Nest will not allow classes annotated with @Injectable(), @Catch(), and @Controller() decorators to appear in the "imports" array of a module.\nPlease remove "${getInstanceName(metatypeUsedAsAModule)||"found"}" (including forwarded occurrences, if any) from all of the "imports" arrays.\n\nScope [${stringifyScope(scope)}]\n`,"USING_INVALID_CLASS_AS_A_MODULE_MESSAGE");exports2.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE=USING_INVALID_CLASS_AS_A_MODULE_MESSAGE;const UNDEFINED_MODULE_MESSAGE=__name((parentModule,index,scope)=>{const parentModuleName=(null==parentModule?void 0:parentModule.name)||"module";return`Nest cannot create the ${parentModuleName} instance.\nThe module at index [${index}] of the ${parentModuleName} "imports" array is undefined.\n\nPotential causes:\n- A circular dependency between modules. Use forwardRef() to avoid it. Read more: https://docs.nestjs.com/fundamentals/circular-dependency\n- The module at index [${index}] is of type "undefined". Check your import statements and the type of the module.\n\nScope [${stringifyScope(scope)}]`},"UNDEFINED_MODULE_MESSAGE");exports2.UNDEFINED_MODULE_MESSAGE=UNDEFINED_MODULE_MESSAGE;const UNKNOWN_EXPORT_MESSAGE=__name((token="item",module2)=>`Nest cannot export a provider/module that is not a part of the currently processed module (${module2}). Please verify whether the exported ${token=(0,shared_utils_1.isSymbol)(token)?token.toString():token} is available in this particular context.\n\nPossible Solutions:\n- Is ${token} part of the relevant providers/imports within ${module2}?\n`,"UNKNOWN_EXPORT_MESSAGE");exports2.UNKNOWN_EXPORT_MESSAGE=UNKNOWN_EXPORT_MESSAGE;const INVALID_CLASS_MESSAGE=__name((text,value)=>`ModuleRef cannot instantiate class (${value} is not constructable).`,"INVALID_CLASS_MESSAGE");exports2.INVALID_CLASS_MESSAGE=INVALID_CLASS_MESSAGE;const INVALID_CLASS_SCOPE_MESSAGE=__name((text,name)=>`${name||"This class"} is marked as a scoped provider. Request and transient-scoped providers can't be used in combination with "get()" method. Please, use "resolve()" instead.`,"INVALID_CLASS_SCOPE_MESSAGE");exports2.INVALID_CLASS_SCOPE_MESSAGE=INVALID_CLASS_SCOPE_MESSAGE,exports2.INVALID_MIDDLEWARE_CONFIGURATION="An invalid middleware configuration has been passed inside the module 'configure()' method.",exports2.UNKNOWN_REQUEST_MAPPING="An invalid controller has been detected. Perhaps, one of your controllers is missing @Controller() decorator.",exports2.UNHANDLED_RUNTIME_EXCEPTION="Unhandled Runtime Exception.",exports2.INVALID_EXCEPTION_FILTER="Invalid exception filters (@UseFilters()).",exports2.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION="Unable to load @nestjs/microservices package. (Please make sure that it's already installed.)"},67444:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BaseExceptionFilterContext=void 0;const constants_1=__webpack_require__2(75441),shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),context_creator_1=__webpack_require__2(86632),constants_2=__webpack_require__2(74872);class BaseExceptionFilterContext extends context_creator_1.ContextCreator{constructor(container){super(),this.container=container}createConcreteContext(metadata2,contextId=constants_2.STATIC_CONTEXT,inquirerId){return(0,shared_utils_1.isEmpty)(metadata2)?[]:(0,iterare_1.iterate)(metadata2).filter(instance=>instance&&((0,shared_utils_1.isFunction)(instance.catch)||instance.name)).map(filter=>this.getFilterInstance(filter,contextId,inquirerId)).filter(item=>!!item).map(instance=>({func:instance.catch.bind(instance),exceptionMetatypes:this.reflectCatchExceptions(instance)})).toArray()}getFilterInstance(filter,contextId=constants_2.STATIC_CONTEXT,inquirerId){if(filter.catch)return filter;const instanceWrapper=this.getInstanceByMetatype(filter);if(!instanceWrapper)return null;const instanceHost=instanceWrapper.getInstanceByContextId(contextId,inquirerId);return instanceHost&&instanceHost.instance}getInstanceByMetatype(metatype){if(!this.moduleContext)return;const moduleRef=this.container.getModules().get(this.moduleContext);return moduleRef?moduleRef.injectables.get(metatype):void 0}reflectCatchExceptions(instance){const prototype=Object.getPrototypeOf(instance);return Reflect.getMetadata(constants_1.FILTER_CATCH_EXCEPTIONS,prototype.constructor)||[]}}__name(BaseExceptionFilterContext,"BaseExceptionFilterContext"),exports2.BaseExceptionFilterContext=BaseExceptionFilterContext},66336:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BaseExceptionFilter=void 0;const tslib_1=__webpack_require__2(78099),common_1=__webpack_require__2(28791),shared_utils_1=__webpack_require__2(73819),constants_1=__webpack_require__2(86618),http_adapter_host_1=__webpack_require__2(7241);class BaseExceptionFilter{constructor(applicationRef){this.applicationRef=applicationRef}catch(exception,host){const applicationRef=this.applicationRef||this.httpAdapterHost&&this.httpAdapterHost.httpAdapter;if(!(exception instanceof common_1.HttpException))return this.handleUnknownError(exception,host,applicationRef);const res=exception.getResponse(),message2=(0,shared_utils_1.isObject)(res)?res:{statusCode:exception.getStatus(),message:res};applicationRef.reply(host.getArgByIndex(1),message2,exception.getStatus())}handleUnknownError(exception,host,applicationRef){const body=this.isHttpError(exception)?{statusCode:exception.statusCode,message:exception.message}:{statusCode:common_1.HttpStatus.INTERNAL_SERVER_ERROR,message:constants_1.MESSAGES.UNKNOWN_EXCEPTION_MESSAGE};return applicationRef.reply(host.getArgByIndex(1),body,body.statusCode),this.isExceptionObject(exception)?BaseExceptionFilter.logger.error(exception.message,exception.stack):BaseExceptionFilter.logger.error(exception)}isExceptionObject(err){return(0,shared_utils_1.isObject)(err)&&!!err.message}isHttpError(err){return(null==err?void 0:err.statusCode)&&(null==err?void 0:err.message)}}__name(BaseExceptionFilter,"BaseExceptionFilter"),BaseExceptionFilter.logger=new common_1.Logger("ExceptionsHandler"),tslib_1.__decorate([(0,common_1.Optional)(),(0,common_1.Inject)(),tslib_1.__metadata("design:type",http_adapter_host_1.HttpAdapterHost)],BaseExceptionFilter.prototype,"httpAdapterHost",void 0),exports2.BaseExceptionFilter=BaseExceptionFilter},28383:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ExceptionsHandler=void 0;const shared_utils_1=__webpack_require__2(73819),invalid_exception_filter_exception_1=__webpack_require__2(52135),base_exception_filter_1=__webpack_require__2(66336);class ExceptionsHandler extends base_exception_filter_1.BaseExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(exception,ctx){this.invokeCustomFilters(exception,ctx)||super.catch(exception,ctx)}setCustomFilters(filters){if(!Array.isArray(filters))throw new invalid_exception_filter_exception_1.InvalidExceptionFilterException;this.filters=filters}invokeCustomFilters(exception,ctx){if((0,shared_utils_1.isEmpty)(this.filters))return!1;const isInstanceOf=__name(metatype=>exception instanceof metatype,"isInstanceOf"),filter=this.filters.find(({exceptionMetatypes})=>!exceptionMetatypes.length||exceptionMetatypes.some(isInstanceOf));return filter&&filter.func(exception,ctx),!!filter}}__name(ExceptionsHandler,"ExceptionsHandler"),exports2.ExceptionsHandler=ExceptionsHandler},16786:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ExternalExceptionFilterContext=void 0;const constants_1=__webpack_require__2(75441),shared_utils_1=__webpack_require__2(73819),constants_2=__webpack_require__2(74872),base_exception_filter_context_1=__webpack_require__2(67444),external_exceptions_handler_1=__webpack_require__2(73249),iterare_1=__webpack_require__2(57698);class ExternalExceptionFilterContext extends base_exception_filter_context_1.BaseExceptionFilterContext{constructor(container,config){super(container),this.config=config}create(instance,callback,module2,contextId=constants_2.STATIC_CONTEXT,inquirerId){this.moduleContext=module2;const exceptionHandler=new external_exceptions_handler_1.ExternalExceptionsHandler,filters=this.createContext(instance,callback,constants_1.EXCEPTION_FILTERS_METADATA,contextId,inquirerId);return(0,shared_utils_1.isEmpty)(filters)||exceptionHandler.setCustomFilters(filters.reverse()),exceptionHandler}getGlobalMetadata(contextId=constants_2.STATIC_CONTEXT,inquirerId){if(!this.config)return[];const globalFilters=this.config.getGlobalFilters();if(contextId===constants_2.STATIC_CONTEXT&&!inquirerId)return globalFilters;const scopedFilterWrappers=this.config.getGlobalRequestFilters(),scopedFilters=(0,iterare_1.iterate)(scopedFilterWrappers).map(wrapper=>wrapper.getInstanceByContextId(contextId,inquirerId)).filter(host=>!!host).map(host=>host.instance).toArray();return globalFilters.concat(scopedFilters)}}__name(ExternalExceptionFilterContext,"ExternalExceptionFilterContext"),exports2.ExternalExceptionFilterContext=ExternalExceptionFilterContext},41281:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ExternalExceptionFilter=void 0;const common_1=__webpack_require__2(28791);class ExternalExceptionFilter{catch(exception,host){throw exception instanceof Error&&!(exception instanceof common_1.HttpException)&&ExternalExceptionFilter.logger.error(exception.message,exception.stack),exception}}__name(ExternalExceptionFilter,"ExternalExceptionFilter"),exports2.ExternalExceptionFilter=ExternalExceptionFilter,ExternalExceptionFilter.logger=new common_1.Logger("ExceptionsHandler")},73249:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ExternalExceptionsHandler=void 0;const shared_utils_1=__webpack_require__2(73819),invalid_exception_filter_exception_1=__webpack_require__2(52135),external_exception_filter_1=__webpack_require__2(41281);class ExternalExceptionsHandler extends external_exception_filter_1.ExternalExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(exception,host){return this.invokeCustomFilters(exception,host)||super.catch(exception,host)}setCustomFilters(filters){if(!Array.isArray(filters))throw new invalid_exception_filter_exception_1.InvalidExceptionFilterException;this.filters=filters}invokeCustomFilters(exception,host){if((0,shared_utils_1.isEmpty)(this.filters))return null;const isInstanceOf=__name(metatype=>exception instanceof metatype,"isInstanceOf"),filter=this.filters.find(({exceptionMetatypes})=>!exceptionMetatypes.length||exceptionMetatypes.some(isInstanceOf));return filter?filter.func(exception,host):null}}__name(ExternalExceptionsHandler,"ExternalExceptionsHandler"),exports2.ExternalExceptionsHandler=ExternalExceptionsHandler},26351:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(78099).__exportStar(__webpack_require__2(66336),exports2)},30315:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FORBIDDEN_MESSAGE=void 0,exports2.FORBIDDEN_MESSAGE="Forbidden resource"},8506:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.GuardsConsumer=void 0;const shared_utils_1=__webpack_require__2(73819),rxjs_1=__webpack_require__2(76477),execution_context_host_1=__webpack_require__2(78170);class GuardsConsumer{tryActivate(guards,args2,instance,callback,type){var _this=this;return _asyncToGenerator(function*(){if(!guards||(0,shared_utils_1.isEmpty)(guards))return!0;const context=_this.createContext(args2,instance,callback);context.setType(type);for(const guard of guards){const result=guard.canActivate(context);if(!(yield _this.pickResult(result)))return!1}return!0})()}createContext(args2,instance,callback){return new execution_context_host_1.ExecutionContextHost(args2,instance.constructor,callback)}pickResult(result){return _asyncToGenerator(function*(){return result instanceof rxjs_1.Observable?(0,rxjs_1.lastValueFrom)(result):result})()}}__name(GuardsConsumer,"GuardsConsumer"),exports2.GuardsConsumer=GuardsConsumer},41665:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.GuardsContextCreator=void 0;const constants_1=__webpack_require__2(75441),shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),context_creator_1=__webpack_require__2(86632),constants_2=__webpack_require__2(74872);class GuardsContextCreator extends context_creator_1.ContextCreator{constructor(container,config){super(),this.container=container,this.config=config}create(instance,callback,module2,contextId=constants_2.STATIC_CONTEXT,inquirerId){return this.moduleContext=module2,this.createContext(instance,callback,constants_1.GUARDS_METADATA,contextId,inquirerId)}createConcreteContext(metadata2,contextId=constants_2.STATIC_CONTEXT,inquirerId){return(0,shared_utils_1.isEmpty)(metadata2)?[]:(0,iterare_1.iterate)(metadata2).filter(guard=>guard&&(guard.name||guard.canActivate)).map(guard=>this.getGuardInstance(guard,contextId,inquirerId)).filter(guard=>guard&&(0,shared_utils_1.isFunction)(guard.canActivate)).toArray()}getGuardInstance(metatype,contextId=constants_2.STATIC_CONTEXT,inquirerId){if(metatype.canActivate)return metatype;const instanceWrapper=this.getInstanceByMetatype(metatype);if(!instanceWrapper)return null;const instanceHost=instanceWrapper.getInstanceByContextId(contextId,inquirerId);return instanceHost&&instanceHost.instance}getInstanceByMetatype(metatype){if(!this.moduleContext)return;const moduleRef=this.container.getModules().get(this.moduleContext);return moduleRef?moduleRef.injectables.get(metatype):void 0}getGlobalMetadata(contextId=constants_2.STATIC_CONTEXT,inquirerId){if(!this.config)return[];const globalGuards=this.config.getGlobalGuards();if(contextId===constants_2.STATIC_CONTEXT&&!inquirerId)return globalGuards;const scopedGuardWrappers=this.config.getGlobalRequestGuards(),scopedGuards=(0,iterare_1.iterate)(scopedGuardWrappers).map(wrapper=>wrapper.getInstanceByContextId(contextId,inquirerId)).filter(host=>!!host).map(host=>host.instance).toArray();return globalGuards.concat(scopedGuards)}}__name(GuardsContextCreator,"GuardsContextCreator"),exports2.GuardsContextCreator=GuardsContextCreator},86632:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ContextCreator=void 0;const constants_1=__webpack_require__2(74872);class ContextCreator{createContext(instance,callback,metadataKey,contextId=constants_1.STATIC_CONTEXT,inquirerId){const globalMetadata=this.getGlobalMetadata&&this.getGlobalMetadata(contextId,inquirerId),classMetadata=this.reflectClassMetadata(instance,metadataKey),methodMetadata=this.reflectMethodMetadata(callback,metadataKey);return[...this.createConcreteContext(globalMetadata||[],contextId,inquirerId),...this.createConcreteContext(classMetadata,contextId,inquirerId),...this.createConcreteContext(methodMetadata,contextId,inquirerId)]}reflectClassMetadata(instance,metadataKey){const prototype=Object.getPrototypeOf(instance);return Reflect.getMetadata(metadataKey,prototype.constructor)}reflectMethodMetadata(callback,metadataKey){return Reflect.getMetadata(metadataKey,callback)}}__name(ContextCreator,"ContextCreator"),exports2.ContextCreator=ContextCreator},93390:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ContextIdFactory=exports2.createContextId=void 0;const request_constants_1=__webpack_require__2(53936);function createContextId(){return{id:Math.random()}}__name(createContextId,"createContextId"),exports2.createContextId=createContextId;class ContextIdFactory{static create(){return createContextId()}static getByRequest(request){return request?request[request_constants_1.REQUEST_CONTEXT_ID]?request[request_constants_1.REQUEST_CONTEXT_ID]:request.raw&&request.raw[request_constants_1.REQUEST_CONTEXT_ID]?request.raw[request_constants_1.REQUEST_CONTEXT_ID]:createContextId():createContextId()}}__name(ContextIdFactory,"ContextIdFactory"),exports2.ContextIdFactory=ContextIdFactory},46405:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ContextUtils=void 0;const constants_1=__webpack_require__2(75441),shared_utils_1=__webpack_require__2(73819),execution_context_host_1=__webpack_require__2(78170);class ContextUtils{mapParamType(key){return key.split(":")[0]}reflectCallbackParamtypes(instance,methodName){return Reflect.getMetadata(constants_1.PARAMTYPES_METADATA,instance,methodName)}reflectCallbackMetadata(instance,methodName,metadataKey){return Reflect.getMetadata(metadataKey,instance.constructor,methodName)}reflectPassthrough(instance,methodName){return Reflect.getMetadata(constants_1.RESPONSE_PASSTHROUGH_METADATA,instance.constructor,methodName)}getArgumentsLength(keys,metadata2){return keys.length?Math.max(...keys.map(key=>metadata2[key].index))+1:0}createNullArray(length){const a=new Array(length);for(let i2=0;i2Object.assign(Object.assign({},param),{metatype:paramtypes[param.index]})):paramsProperties}getCustomFactory(factory,data,contextFactory){return(0,shared_utils_1.isFunction)(factory)?(...args2)=>factory(data,contextFactory(args2)):()=>null}getContextFactory(contextType,instance,callback){return __name(args2=>{const ctx=new execution_context_host_1.ExecutionContextHost(args2,instance&&instance.constructor,callback);return ctx.setType(contextType),ctx},"contextFactory")}}__name(ContextUtils,"ContextUtils"),exports2.ContextUtils=ContextUtils},78170:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ExecutionContextHost=void 0;class ExecutionContextHost{constructor(args2,constructorRef=null,handler=null){this.args=args2,this.constructorRef=constructorRef,this.handler=handler,this.contextType="http"}setType(type){type&&(this.contextType=type)}getType(){return this.contextType}getClass(){return this.constructorRef}getHandler(){return this.handler}getArgs(){return this.args}getArgByIndex(index){return this.args[index]}switchToRpc(){return Object.assign(this,{getData:()=>this.getArgByIndex(0),getContext:()=>this.getArgByIndex(1)})}switchToHttp(){return Object.assign(this,{getRequest:()=>this.getArgByIndex(0),getResponse:()=>this.getArgByIndex(1),getNext:()=>this.getArgByIndex(2)})}switchToWs(){return Object.assign(this,{getClient:()=>this.getArgByIndex(0),getData:()=>this.getArgByIndex(1)})}}__name(ExecutionContextHost,"ExecutionContextHost"),exports2.ExecutionContextHost=ExecutionContextHost},97178:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ExternalContextCreator=void 0;const common_1=__webpack_require__2(28791),constants_1=__webpack_require__2(75441),shared_utils_1=__webpack_require__2(73819),rxjs_1=__webpack_require__2(76477),external_exception_filter_context_1=__webpack_require__2(16786),constants_2=__webpack_require__2(30315),guards_consumer_1=__webpack_require__2(8506),guards_context_creator_1=__webpack_require__2(41665),constants_3=__webpack_require__2(74872),interceptors_consumer_1=__webpack_require__2(21538),interceptors_context_creator_1=__webpack_require__2(20244),pipes_consumer_1=__webpack_require__2(77078),pipes_context_creator_1=__webpack_require__2(69007),context_utils_1=__webpack_require__2(46405),external_proxy_1=__webpack_require__2(96551),handler_metadata_storage_1=__webpack_require__2(62431);class ExternalContextCreator{constructor(guardsContextCreator,guardsConsumer,interceptorsContextCreator,interceptorsConsumer,modulesContainer,pipesContextCreator,pipesConsumer,filtersContextCreator){this.guardsContextCreator=guardsContextCreator,this.guardsConsumer=guardsConsumer,this.interceptorsContextCreator=interceptorsContextCreator,this.interceptorsConsumer=interceptorsConsumer,this.modulesContainer=modulesContainer,this.pipesContextCreator=pipesContextCreator,this.pipesConsumer=pipesConsumer,this.filtersContextCreator=filtersContextCreator,this.contextUtils=new context_utils_1.ContextUtils,this.externalErrorProxy=new external_proxy_1.ExternalErrorProxy,this.handlerMetadataStorage=new handler_metadata_storage_1.HandlerMetadataStorage}static fromContainer(container){const guardsContextCreator=new guards_context_creator_1.GuardsContextCreator(container,container.applicationConfig),guardsConsumer=new guards_consumer_1.GuardsConsumer,interceptorsContextCreator=new interceptors_context_creator_1.InterceptorsContextCreator(container,container.applicationConfig),interceptorsConsumer=new interceptors_consumer_1.InterceptorsConsumer,pipesContextCreator=new pipes_context_creator_1.PipesContextCreator(container,container.applicationConfig),pipesConsumer=new pipes_consumer_1.PipesConsumer,filtersContextCreator=new external_exception_filter_context_1.ExternalExceptionFilterContext(container,container.applicationConfig),externalContextCreator=new ExternalContextCreator(guardsContextCreator,guardsConsumer,interceptorsContextCreator,interceptorsConsumer,container.getModules(),pipesContextCreator,pipesConsumer,filtersContextCreator);return externalContextCreator.container=container,externalContextCreator}create(instance,callback,methodName,metadataKey,paramsFactory,contextId=constants_3.STATIC_CONTEXT,inquirerId,options={interceptors:!0,guards:!0,filters:!0},contextType="http"){var _this=this;const module2=this.getContextModuleKey(instance.constructor),{argsLength,paramtypes,getParamsMetadata}=this.getMetadata(instance,methodName,metadataKey,paramsFactory,contextType),pipes=this.pipesContextCreator.create(instance,callback,module2,contextId,inquirerId),guards=this.guardsContextCreator.create(instance,callback,module2,contextId,inquirerId),exceptionFilter=this.filtersContextCreator.create(instance,callback,module2,contextId,inquirerId),interceptors=options.interceptors?this.interceptorsContextCreator.create(instance,callback,module2,contextId,inquirerId):[],paramsMetadata=getParamsMetadata(module2,contextId,inquirerId),paramsOptions=paramsMetadata?this.contextUtils.mergeParamsMetatypes(paramsMetadata,paramtypes):[],fnCanActivate=options.guards?this.createGuardsFn(guards,instance,callback,contextType):null,fnApplyPipes=this.createPipesFn(pipes,paramsOptions),handler=__name((initialArgs,...args2)=>_asyncToGenerator(function*(){return fnApplyPipes?(yield fnApplyPipes(initialArgs,...args2),callback.apply(instance,initialArgs)):callback.apply(instance,args2)}),"handler"),target=function(){var _ref2=_asyncToGenerator(function*(...args2){const initialArgs=_this.contextUtils.createNullArray(argsLength);fnCanActivate&&(yield fnCanActivate(args2));const result=yield _this.interceptorsConsumer.intercept(interceptors,args2,instance,callback,handler(initialArgs,...args2),contextType);return _this.transformToResult(result)});return __name(function(){return _ref2.apply(this,arguments)},"target")}();return options.filters?this.externalErrorProxy.createProxy(target,exceptionFilter,contextType):target}getMetadata(instance,methodName,metadataKey,paramsFactory,contextType){const cacheMetadata=this.handlerMetadataStorage.get(instance,methodName);if(cacheMetadata)return cacheMetadata;const metadata2=this.contextUtils.reflectCallbackMetadata(instance,methodName,metadataKey||"")||{},keys=Object.keys(metadata2),argsLength=this.contextUtils.getArgumentsLength(keys,metadata2),paramtypes=this.contextUtils.reflectCallbackParamtypes(instance,methodName),contextFactory=this.contextUtils.getContextFactory(contextType,instance,instance[methodName]),handlerMetadata={argsLength,paramtypes,getParamsMetadata:__name((moduleKey,contextId=constants_3.STATIC_CONTEXT,inquirerId)=>paramsFactory?this.exchangeKeysForValues(keys,metadata2,moduleKey,paramsFactory,contextId,inquirerId,contextFactory):null,"getParamsMetadata")};return this.handlerMetadataStorage.set(instance,methodName,handlerMetadata),handlerMetadata}getContextModuleKey(moduleCtor){if(!moduleCtor)return"";const moduleContainerEntries=this.modulesContainer.entries();for(const[key,moduleRef]of moduleContainerEntries)if(moduleRef.hasProvider(moduleCtor))return key;return""}exchangeKeysForValues(keys,metadata2,moduleContext,paramsFactory,contextId=constants_3.STATIC_CONTEXT,inquirerId,contextFactory=this.contextUtils.getContextFactory("http")){return this.pipesContextCreator.setModuleContext(moduleContext),keys.map(key=>{const{index,data,pipes:pipesCollection}=metadata2[key],pipes=this.pipesContextCreator.createConcreteContext(pipesCollection,contextId,inquirerId),type=this.contextUtils.mapParamType(key);if(key.includes(constants_1.CUSTOM_ROUTE_AGRS_METADATA)){const{factory}=metadata2[key];return{index,extractValue:this.contextUtils.getCustomFactory(factory,data,contextFactory),type,data,pipes}}const numericType=Number(type);return{index,extractValue:__name((...args2)=>paramsFactory.exchangeKeyForValue(numericType,data,args2),"extractValue"),type:numericType,data,pipes}})}createPipesFn(pipes,paramsOptions){var _this2=this;const pipesFn=function(){var _ref3=_asyncToGenerator(function*(args2,...params){const resolveParamValue=function(){var _ref4=_asyncToGenerator(function*(param){const{index,extractValue,type,data,metatype,pipes:paramPipes}=param,value=extractValue(...params);args2[index]=yield _this2.getParamValue(value,{metatype,type,data},pipes.concat(paramPipes))});return __name(function(_x2){return _ref4.apply(this,arguments)},"resolveParamValue")}();yield Promise.all(paramsOptions.map(resolveParamValue))});return __name(function(_x){return _ref3.apply(this,arguments)},"pipesFn")}();return paramsOptions.length?pipesFn:null}getParamValue(value,{metatype,type,data},pipes){var _this3=this;return _asyncToGenerator(function*(){return(0,shared_utils_1.isEmpty)(pipes)?value:_this3.pipesConsumer.apply(value,{metatype,type,data},pipes)})()}transformToResult(resultOrDeferred){return _asyncToGenerator(function*(){return(0,rxjs_1.isObservable)(resultOrDeferred)?(0,rxjs_1.lastValueFrom)(resultOrDeferred):resultOrDeferred})()}createGuardsFn(guards,instance,callback,contextType){var _this4=this;const canActivateFn=function(){var _ref5=_asyncToGenerator(function*(args2){if(!(yield _this4.guardsConsumer.tryActivate(guards,args2,instance,callback,contextType)))throw new common_1.ForbiddenException(constants_2.FORBIDDEN_MESSAGE)});return __name(function(_x3){return _ref5.apply(this,arguments)},"canActivateFn")}();return guards.length?canActivateFn:null}registerRequestProvider(request,contextId){this.container.registerRequestProvider(request,contextId)}}__name(ExternalContextCreator,"ExternalContextCreator"),exports2.ExternalContextCreator=ExternalContextCreator},96551:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ExternalErrorProxy=void 0;const execution_context_host_1=__webpack_require__2(78170);class ExternalErrorProxy{createProxy(targetCallback,exceptionsHandler,type){return _asyncToGenerator(function*(...args2){try{return yield targetCallback(...args2)}catch(e){const host=new execution_context_host_1.ExecutionContextHost(args2);return host.setType(type),exceptionsHandler.next(e,host)}})}}__name(ExternalErrorProxy,"ExternalErrorProxy"),exports2.ExternalErrorProxy=ExternalErrorProxy},80893:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.getClassScope=void 0;const constants_1=__webpack_require__2(75441);function getClassScope(provider){const metadata2=Reflect.getMetadata(constants_1.SCOPE_OPTIONS_METADATA,provider);return metadata2&&metadata2.scope}__name(getClassScope,"getClassScope"),exports2.getClassScope=getClassScope},62431:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _a;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HandlerMetadataStorage=exports2.HANDLER_METADATA_SYMBOL=void 0;const constants_1=__webpack_require__2(74872);exports2.HANDLER_METADATA_SYMBOL=Symbol.for("handler_metadata:cache");class HandlerMetadataStorage{constructor(){this[_a]=new Map}set(controller,methodName,metadata2){const metadataKey=this.getMetadataKey(controller,methodName);this[exports2.HANDLER_METADATA_SYMBOL].set(metadataKey,metadata2)}get(controller,methodName){const metadataKey=this.getMetadataKey(controller,methodName);return this[exports2.HANDLER_METADATA_SYMBOL].get(metadataKey)}getMetadataKey(controller,methodName){const ctor=controller.constructor;return(ctor&&(ctor[constants_1.CONTROLLER_ID_KEY]||ctor.name))+methodName}}__name(HandlerMetadataStorage,"HandlerMetadataStorage"),exports2.HandlerMetadataStorage=HandlerMetadataStorage,_a=exports2.HANDLER_METADATA_SYMBOL},7241:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HttpAdapterHost=void 0;class HttpAdapterHost{set httpAdapter(httpAdapter){this._httpAdapter=httpAdapter}get httpAdapter(){return this._httpAdapter}}__name(HttpAdapterHost,"HttpAdapterHost"),exports2.HttpAdapterHost=HttpAdapterHost},2845:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(78099);tslib_1.__exportStar(__webpack_require__2(93390),exports2),tslib_1.__exportStar(__webpack_require__2(7241),exports2)},74438:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.loadAdapter=void 0;const common_1=__webpack_require__2(28791),MISSING_REQUIRED_DEPENDENCY=__name((defaultPlatform,transport)=>`No driver (${transport}) has been selected. In order to take advantage of the default driver, please, ensure to install the "${defaultPlatform}" package ($ npm install ${defaultPlatform}).`,"MISSING_REQUIRED_DEPENDENCY"),logger=new common_1.Logger("PackageLoader");function loadAdapter(defaultPlatform,transport,loaderFn){try{return loaderFn?loaderFn():__webpack_require__2(3745)(defaultPlatform)}catch{logger.error(MISSING_REQUIRED_DEPENDENCY(defaultPlatform,transport)),process.exit(1)}}__name(loadAdapter,"loadAdapter"),exports2.loadAdapter=loadAdapter},44369:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.INVALID_EXECUTION_CONTEXT=exports2.VERSIONED_CONTROLLER_MAPPING_MESSAGE=exports2.CONTROLLER_MAPPING_MESSAGE=exports2.VERSIONED_ROUTE_MAPPED_MESSAGE=exports2.ROUTE_MAPPED_MESSAGE=exports2.MODULE_INIT_MESSAGE=void 0;const request_method_enum_1=__webpack_require__2(10724),version_options_interface_1=__webpack_require__2(70754),MODULE_INIT_MESSAGE=__name((text,module2)=>`${module2} dependencies initialized`,"MODULE_INIT_MESSAGE");exports2.MODULE_INIT_MESSAGE=MODULE_INIT_MESSAGE;const ROUTE_MAPPED_MESSAGE=__name((path,method)=>`Mapped {${path}, ${request_method_enum_1.RequestMethod[method]}} route`,"ROUTE_MAPPED_MESSAGE");exports2.ROUTE_MAPPED_MESSAGE=ROUTE_MAPPED_MESSAGE;const VERSIONED_ROUTE_MAPPED_MESSAGE=__name((path,method,version)=>{const versions=(Array.isArray(version)?version:[version]).map(version2=>version2===version_options_interface_1.VERSION_NEUTRAL?"Neutral":version2).join(",");return`Mapped {${path}, ${request_method_enum_1.RequestMethod[method]}} (version: ${versions}) route`},"VERSIONED_ROUTE_MAPPED_MESSAGE");exports2.VERSIONED_ROUTE_MAPPED_MESSAGE=VERSIONED_ROUTE_MAPPED_MESSAGE;const CONTROLLER_MAPPING_MESSAGE=__name((name,path)=>`${name} {${path}}:`,"CONTROLLER_MAPPING_MESSAGE");exports2.CONTROLLER_MAPPING_MESSAGE=CONTROLLER_MAPPING_MESSAGE;const VERSIONED_CONTROLLER_MAPPING_MESSAGE=__name((name,path,version)=>`${name} {${path}} (version: ${(Array.isArray(version)?version:[version]).map(version2=>version2===version_options_interface_1.VERSION_NEUTRAL?"Neutral":version2).join(",")}):`,"VERSIONED_CONTROLLER_MAPPING_MESSAGE");exports2.VERSIONED_CONTROLLER_MAPPING_MESSAGE=VERSIONED_CONTROLLER_MAPPING_MESSAGE;const INVALID_EXECUTION_CONTEXT=__name((methodName,currentContext)=>`Calling ${methodName} is not allowed in this context. Your current execution context is "${currentContext}".`,"INVALID_EXECUTION_CONTEXT");exports2.INVALID_EXECUTION_CONTEXT=INVALID_EXECUTION_CONTEXT},9073:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";function optionalRequire(packageName,loaderFn){try{return loaderFn?loaderFn():__webpack_require__2(3745)(packageName)}catch{return{}}}Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.optionalRequire=void 0,__name(optionalRequire,"optionalRequire"),exports2.optionalRequire=optionalRequire},66225:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.rethrow=void 0;const rethrow=__name(err=>{throw err},"rethrow");exports2.rethrow=rethrow},70593:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RouterMethodFactory=void 0;const request_method_enum_1=__webpack_require__2(10724);class RouterMethodFactory{get(target,requestMethod){switch(requestMethod){case request_method_enum_1.RequestMethod.POST:return target.post;case request_method_enum_1.RequestMethod.ALL:return target.all;case request_method_enum_1.RequestMethod.DELETE:return target.delete;case request_method_enum_1.RequestMethod.PUT:return target.put;case request_method_enum_1.RequestMethod.PATCH:return target.patch;case request_method_enum_1.RequestMethod.OPTIONS:return target.options;case request_method_enum_1.RequestMethod.HEAD:return target.head;case request_method_enum_1.RequestMethod.GET:return target.get;default:return target.use}}}__name(RouterMethodFactory,"RouterMethodFactory"),exports2.RouterMethodFactory=RouterMethodFactory},762:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.callBeforeAppShutdownHook=void 0;const shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),transient_instances_1=__webpack_require__2(18545);function hasBeforeApplicationShutdownHook(instance){return(0,shared_utils_1.isFunction)(instance.beforeApplicationShutdown)}function callOperator(instances,signal){return(0,iterare_1.iterate)(instances).filter(instance=>!(0,shared_utils_1.isNil)(instance)).filter(hasBeforeApplicationShutdownHook).map(function(){var _ref=_asyncToGenerator(function*(instance){return instance.beforeApplicationShutdown(signal)});return function(_x){return _ref.apply(this,arguments)}}()).toArray()}function callBeforeAppShutdownHook(_x2,_x3){return _callBeforeAppShutdownHook.apply(this,arguments)}function _callBeforeAppShutdownHook(){return(_callBeforeAppShutdownHook=_asyncToGenerator(function*(module2,signal){const providers=module2.getNonAliasProviders(),[_,moduleClassHost]=providers.shift(),instances=[...module2.controllers,...providers,...module2.injectables,...module2.middlewares],nonTransientInstances=(0,transient_instances_1.getNonTransientInstances)(instances);yield Promise.all(callOperator(nonTransientInstances,signal));const transientInstances=(0,transient_instances_1.getTransientInstances)(instances);yield Promise.all(callOperator(transientInstances,signal));const moduleClassInstance=moduleClassHost.instance;moduleClassInstance&&hasBeforeApplicationShutdownHook(moduleClassInstance)&&moduleClassHost.isDependencyTreeStatic()&&(yield moduleClassInstance.beforeApplicationShutdown(signal))})).apply(this,arguments)}__name(hasBeforeApplicationShutdownHook,"hasBeforeApplicationShutdownHook"),__name(callOperator,"callOperator"),__name(callBeforeAppShutdownHook,"callBeforeAppShutdownHook"),__name(_callBeforeAppShutdownHook,"_callBeforeAppShutdownHook"),exports2.callBeforeAppShutdownHook=callBeforeAppShutdownHook},48053:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(78099);tslib_1.__exportStar(__webpack_require__2(10330),exports2),tslib_1.__exportStar(__webpack_require__2(95682),exports2),tslib_1.__exportStar(__webpack_require__2(18865),exports2),tslib_1.__exportStar(__webpack_require__2(71171),exports2),tslib_1.__exportStar(__webpack_require__2(762),exports2)},10330:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.callModuleBootstrapHook=void 0;const shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),transient_instances_1=__webpack_require__2(18545);function hasOnAppBootstrapHook(instance){return(0,shared_utils_1.isFunction)(instance.onApplicationBootstrap)}function callOperator(instances){return(0,iterare_1.iterate)(instances).filter(instance=>!(0,shared_utils_1.isNil)(instance)).filter(hasOnAppBootstrapHook).map(function(){var _ref=_asyncToGenerator(function*(instance){return instance.onApplicationBootstrap()});return function(_x){return _ref.apply(this,arguments)}}()).toArray()}function callModuleBootstrapHook(_x2){return _callModuleBootstrapHook.apply(this,arguments)}function _callModuleBootstrapHook(){return(_callModuleBootstrapHook=_asyncToGenerator(function*(module2){const providers=module2.getNonAliasProviders(),[_,moduleClassHost]=providers.shift(),instances=[...module2.controllers,...providers,...module2.injectables,...module2.middlewares],nonTransientInstances=(0,transient_instances_1.getNonTransientInstances)(instances);yield Promise.all(callOperator(nonTransientInstances));const transientInstances=(0,transient_instances_1.getTransientInstances)(instances);yield Promise.all(callOperator(transientInstances));const moduleClassInstance=moduleClassHost.instance;moduleClassInstance&&hasOnAppBootstrapHook(moduleClassInstance)&&moduleClassHost.isDependencyTreeStatic()&&(yield moduleClassInstance.onApplicationBootstrap())})).apply(this,arguments)}__name(hasOnAppBootstrapHook,"hasOnAppBootstrapHook"),__name(callOperator,"callOperator"),__name(callModuleBootstrapHook,"callModuleBootstrapHook"),__name(_callModuleBootstrapHook,"_callModuleBootstrapHook"),exports2.callModuleBootstrapHook=callModuleBootstrapHook},95682:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.callAppShutdownHook=void 0;const shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),transient_instances_1=__webpack_require__2(18545);function hasOnAppShutdownHook(instance){return(0,shared_utils_1.isFunction)(instance.onApplicationShutdown)}function callOperator(instances,signal){return(0,iterare_1.iterate)(instances).filter(instance=>!(0,shared_utils_1.isNil)(instance)).filter(hasOnAppShutdownHook).map(function(){var _ref=_asyncToGenerator(function*(instance){return instance.onApplicationShutdown(signal)});return function(_x){return _ref.apply(this,arguments)}}()).toArray()}function callAppShutdownHook(_x2,_x3){return _callAppShutdownHook.apply(this,arguments)}function _callAppShutdownHook(){return(_callAppShutdownHook=_asyncToGenerator(function*(module2,signal){const providers=module2.getNonAliasProviders(),[_,moduleClassHost]=providers.shift(),instances=[...module2.controllers,...providers,...module2.injectables,...module2.middlewares],nonTransientInstances=(0,transient_instances_1.getNonTransientInstances)(instances);yield Promise.all(callOperator(nonTransientInstances,signal));const transientInstances=(0,transient_instances_1.getTransientInstances)(instances);yield Promise.all(callOperator(transientInstances,signal));const moduleClassInstance=moduleClassHost.instance;moduleClassInstance&&hasOnAppShutdownHook(moduleClassInstance)&&moduleClassHost.isDependencyTreeStatic()&&(yield moduleClassInstance.onApplicationShutdown(signal))})).apply(this,arguments)}__name(hasOnAppShutdownHook,"hasOnAppShutdownHook"),__name(callOperator,"callOperator"),__name(callAppShutdownHook,"callAppShutdownHook"),__name(_callAppShutdownHook,"_callAppShutdownHook"),exports2.callAppShutdownHook=callAppShutdownHook},18865:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.callModuleDestroyHook=void 0;const shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),transient_instances_1=__webpack_require__2(18545);function hasOnModuleDestroyHook(instance){return(0,shared_utils_1.isFunction)(instance.onModuleDestroy)}function callOperator(instances){return(0,iterare_1.iterate)(instances).filter(instance=>!(0,shared_utils_1.isNil)(instance)).filter(hasOnModuleDestroyHook).map(function(){var _ref=_asyncToGenerator(function*(instance){return instance.onModuleDestroy()});return function(_x){return _ref.apply(this,arguments)}}()).toArray()}function callModuleDestroyHook(_x2){return _callModuleDestroyHook.apply(this,arguments)}function _callModuleDestroyHook(){return(_callModuleDestroyHook=_asyncToGenerator(function*(module2){const providers=module2.getNonAliasProviders(),[_,moduleClassHost]=providers.shift(),instances=[...module2.controllers,...providers,...module2.injectables,...module2.middlewares],nonTransientInstances=(0,transient_instances_1.getNonTransientInstances)(instances);yield Promise.all(callOperator(nonTransientInstances));const transientInstances=(0,transient_instances_1.getTransientInstances)(instances);yield Promise.all(callOperator(transientInstances));const moduleClassInstance=moduleClassHost.instance;moduleClassInstance&&hasOnModuleDestroyHook(moduleClassInstance)&&moduleClassHost.isDependencyTreeStatic()&&(yield moduleClassInstance.onModuleDestroy())})).apply(this,arguments)}__name(hasOnModuleDestroyHook,"hasOnModuleDestroyHook"),__name(callOperator,"callOperator"),__name(callModuleDestroyHook,"callModuleDestroyHook"),__name(_callModuleDestroyHook,"_callModuleDestroyHook"),exports2.callModuleDestroyHook=callModuleDestroyHook},71171:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.callModuleInitHook=void 0;const shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),transient_instances_1=__webpack_require__2(18545);function hasOnModuleInitHook(instance){return(0,shared_utils_1.isFunction)(instance.onModuleInit)}function callOperator(instances){return(0,iterare_1.iterate)(instances).filter(instance=>!(0,shared_utils_1.isNil)(instance)).filter(hasOnModuleInitHook).map(function(){var _ref=_asyncToGenerator(function*(instance){return instance.onModuleInit()});return function(_x){return _ref.apply(this,arguments)}}()).toArray()}function callModuleInitHook(_x2){return _callModuleInitHook.apply(this,arguments)}function _callModuleInitHook(){return(_callModuleInitHook=_asyncToGenerator(function*(module2){const providers=module2.getNonAliasProviders(),[_,moduleClassHost]=providers.shift(),instances=[...module2.controllers,...providers,...module2.injectables,...module2.middlewares],nonTransientInstances=(0,transient_instances_1.getNonTransientInstances)(instances);yield Promise.all(callOperator(nonTransientInstances));const transientInstances=(0,transient_instances_1.getTransientInstances)(instances);yield Promise.all(callOperator(transientInstances));const moduleClassInstance=moduleClassHost.instance;moduleClassInstance&&hasOnModuleInitHook(moduleClassInstance)&&moduleClassHost.isDependencyTreeStatic()&&(yield moduleClassInstance.onModuleInit())})).apply(this,arguments)}__name(hasOnModuleInitHook,"hasOnModuleInitHook"),__name(callOperator,"callOperator"),__name(callModuleInitHook,"callModuleInitHook"),__name(_callModuleInitHook,"_callModuleInitHook"),exports2.callModuleInitHook=callModuleInitHook},30163:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NestFactory=exports2.APP_PIPE=exports2.APP_INTERCEPTOR=exports2.APP_GUARD=exports2.APP_FILTER=void 0;const tslib_1=__webpack_require__2(78099);__webpack_require__2(53037),tslib_1.__exportStar(__webpack_require__2(68457),exports2),tslib_1.__exportStar(__webpack_require__2(64112),exports2);var constants_1=__webpack_require__2(86618);Object.defineProperty(exports2,"APP_FILTER",{enumerable:!0,get:function(){return constants_1.APP_FILTER}}),Object.defineProperty(exports2,"APP_GUARD",{enumerable:!0,get:function(){return constants_1.APP_GUARD}}),Object.defineProperty(exports2,"APP_INTERCEPTOR",{enumerable:!0,get:function(){return constants_1.APP_INTERCEPTOR}}),Object.defineProperty(exports2,"APP_PIPE",{enumerable:!0,get:function(){return constants_1.APP_PIPE}}),tslib_1.__exportStar(__webpack_require__2(68004),exports2),tslib_1.__exportStar(__webpack_require__2(26351),exports2),tslib_1.__exportStar(__webpack_require__2(2845),exports2),tslib_1.__exportStar(__webpack_require__2(98373),exports2),tslib_1.__exportStar(__webpack_require__2(68499),exports2),tslib_1.__exportStar(__webpack_require__2(54221),exports2),tslib_1.__exportStar(__webpack_require__2(342),exports2),tslib_1.__exportStar(__webpack_require__2(69841),exports2);var nest_factory_1=__webpack_require__2(83093);Object.defineProperty(exports2,"NestFactory",{enumerable:!0,get:function(){return nest_factory_1.NestFactory}}),tslib_1.__exportStar(__webpack_require__2(62211),exports2),tslib_1.__exportStar(__webpack_require__2(84581),exports2)},41192:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ModuleCompiler=void 0;const tslib_1=__webpack_require__2(78099),module_token_factory_1=__webpack_require__2(5974);class ModuleCompiler{constructor(moduleTokenFactory=new module_token_factory_1.ModuleTokenFactory){this.moduleTokenFactory=moduleTokenFactory}compile(metatype){var _this=this;return _asyncToGenerator(function*(){const{type,dynamicMetadata}=_this.extractMetadata(yield metatype);return{type,dynamicMetadata,token:_this.moduleTokenFactory.create(type,dynamicMetadata)}})()}extractMetadata(metatype){if(!this.isDynamicModule(metatype))return{type:metatype};const{module:type}=metatype;return{type,dynamicMetadata:tslib_1.__rest(metatype,["module"])}}isDynamicModule(module2){return!!module2.module}}__name(ModuleCompiler,"ModuleCompiler"),exports2.ModuleCompiler=ModuleCompiler},74872:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.STATIC_CONTEXT=exports2.CONTROLLER_ID_KEY=void 0,exports2.CONTROLLER_ID_KEY="CONTROLLER_ID";exports2.STATIC_CONTEXT=Object.freeze({id:1})},39055:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NestContainer=void 0;const constants_1=__webpack_require__2(75441),circular_dependency_exception_1=__webpack_require__2(50265),undefined_forwardref_exception_1=__webpack_require__2(23836),unknown_module_exception_1=__webpack_require__2(18793),request_constants_1=__webpack_require__2(53936),compiler_1=__webpack_require__2(41192),internal_core_module_1=__webpack_require__2(28416),internal_providers_storage_1=__webpack_require__2(17320),module_1=__webpack_require__2(53413),module_token_factory_1=__webpack_require__2(5974),modules_container_1=__webpack_require__2(54284);class NestContainer{constructor(_applicationConfig){this._applicationConfig=_applicationConfig,this.globalModules=new Set,this.moduleTokenFactory=new module_token_factory_1.ModuleTokenFactory,this.moduleCompiler=new compiler_1.ModuleCompiler(this.moduleTokenFactory),this.modules=new modules_container_1.ModulesContainer,this.dynamicModulesMetadata=new Map,this.internalProvidersStorage=new internal_providers_storage_1.InternalProvidersStorage}get applicationConfig(){return this._applicationConfig}setHttpAdapter(httpAdapter){if(this.internalProvidersStorage.httpAdapter=httpAdapter,!this.internalProvidersStorage.httpAdapterHost)return;this.internalProvidersStorage.httpAdapterHost.httpAdapter=httpAdapter}getHttpAdapterRef(){return this.internalProvidersStorage.httpAdapter}getHttpAdapterHostRef(){return this.internalProvidersStorage.httpAdapterHost}addModule(metatype,scope){var _this=this;return _asyncToGenerator(function*(){if(!metatype)throw new undefined_forwardref_exception_1.UndefinedForwardRefException(scope);const{type,dynamicMetadata,token}=yield _this.moduleCompiler.compile(metatype);if(_this.modules.has(token))return _this.modules.get(token);const moduleRef=new module_1.Module(type,_this);return moduleRef.token=token,_this.modules.set(token,moduleRef),yield _this.addDynamicMetadata(token,dynamicMetadata,[].concat(scope,type)),_this.isGlobalModule(type,dynamicMetadata)&&_this.addGlobalModule(moduleRef),moduleRef})()}addDynamicMetadata(token,dynamicModuleMetadata,scope){var _this2=this;return _asyncToGenerator(function*(){if(!dynamicModuleMetadata)return;_this2.dynamicModulesMetadata.set(token,dynamicModuleMetadata);const{imports}=dynamicModuleMetadata;yield _this2.addDynamicModules(imports,scope)})()}addDynamicModules(modules,scope){var _this3=this;return _asyncToGenerator(function*(){!modules||(yield Promise.all(modules.map(module2=>_this3.addModule(module2,scope))))})()}isGlobalModule(metatype,dynamicMetadata){return!(!dynamicMetadata||!dynamicMetadata.global)||!!Reflect.getMetadata(constants_1.GLOBAL_MODULE_METADATA,metatype)}addGlobalModule(module2){this.globalModules.add(module2)}getModules(){return this.modules}getModuleCompiler(){return this.moduleCompiler}getModuleByKey(moduleKey){return this.modules.get(moduleKey)}getInternalCoreModuleRef(){return this.internalCoreModule}addImport(relatedModule,token){var _this4=this;return _asyncToGenerator(function*(){if(!_this4.modules.has(token))return;const moduleRef=_this4.modules.get(token),{token:relatedModuleToken}=yield _this4.moduleCompiler.compile(relatedModule),related=_this4.modules.get(relatedModuleToken);moduleRef.addRelatedModule(related)})()}addProvider(provider,token){if(!provider)throw new circular_dependency_exception_1.CircularDependencyException;if(!this.modules.has(token))throw new unknown_module_exception_1.UnknownModuleException;return this.modules.get(token).addProvider(provider)}addInjectable(injectable,token,host){if(!this.modules.has(token))throw new unknown_module_exception_1.UnknownModuleException;this.modules.get(token).addInjectable(injectable,host)}addExportedProvider(provider,token){if(!this.modules.has(token))throw new unknown_module_exception_1.UnknownModuleException;this.modules.get(token).addExportedProvider(provider)}addController(controller,token){if(!this.modules.has(token))throw new unknown_module_exception_1.UnknownModuleException;this.modules.get(token).addController(controller)}clear(){this.modules.clear()}replace(toReplace,options){this.modules.forEach(moduleRef=>moduleRef.replace(toReplace,options))}bindGlobalScope(){this.modules.forEach(moduleRef=>this.bindGlobalsToImports(moduleRef))}bindGlobalsToImports(moduleRef){this.globalModules.forEach(globalModule=>this.bindGlobalModuleToModule(moduleRef,globalModule))}bindGlobalModuleToModule(target,globalModule){target===globalModule||target===this.internalCoreModule||target.addRelatedModule(globalModule)}getDynamicMetadataByToken(token,metadataKey){const metadata2=this.dynamicModulesMetadata.get(token);return metadata2&&metadata2[metadataKey]?metadata2[metadataKey]:[]}registerCoreModuleRef(moduleRef){this.internalCoreModule=moduleRef,this.modules[internal_core_module_1.InternalCoreModule.name]=moduleRef}getModuleTokenFactory(){return this.moduleTokenFactory}registerRequestProvider(request,contextId){this.internalCoreModule.getProviderByKey(request_constants_1.REQUEST).setInstanceByContextId(contextId,{instance:request,isResolved:!0})}}__name(NestContainer,"NestContainer"),exports2.NestContainer=NestContainer},18545:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.getNonTransientInstances=exports2.getTransientInstances=void 0;const iterare_1=__webpack_require__2(57698);function getTransientInstances(instances){return(0,iterare_1.iterate)(instances).filter(([_,wrapper])=>wrapper.isDependencyTreeStatic()).map(([_,wrapper])=>wrapper.getStaticTransientInstances()).flatten().filter(item=>!!item).map(({instance})=>instance).toArray()}function getNonTransientInstances(instances){return(0,iterare_1.iterate)(instances).filter(([key,wrapper])=>wrapper.isDependencyTreeStatic()&&!wrapper.isTransient).map(([key,{instance}])=>instance).toArray()}__name(getTransientInstances,"getTransientInstances"),exports2.getTransientInstances=getTransientInstances,__name(getNonTransientInstances,"getNonTransientInstances"),exports2.getNonTransientInstances=getNonTransientInstances},98373:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(78099);tslib_1.__exportStar(__webpack_require__2(39055),exports2),tslib_1.__exportStar(__webpack_require__2(33346),exports2),tslib_1.__exportStar(__webpack_require__2(36178),exports2),tslib_1.__exportStar(__webpack_require__2(37382),exports2),tslib_1.__exportStar(__webpack_require__2(54284),exports2)},97127:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Injector=void 0;const common_1=__webpack_require__2(28791),constants_1=__webpack_require__2(75441),cli_colors_util_1=__webpack_require__2(70051),shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),runtime_exception_1=__webpack_require__2(80782),undefined_dependency_exception_1=__webpack_require__2(60789),unknown_dependencies_exception_1=__webpack_require__2(48332),constants_2=__webpack_require__2(74872),inquirer_1=__webpack_require__2(33346),instance_wrapper_1=__webpack_require__2(43379);class Injector{constructor(){this.logger=new common_1.Logger("InjectorLogger")}loadPrototype({token},collection,contextId=constants_2.STATIC_CONTEXT){if(!collection)return;const target=collection.get(token),instance=target.createPrototype(contextId);if(instance){const wrapper=new instance_wrapper_1.InstanceWrapper(Object.assign(Object.assign({},target),{instance}));collection.set(token,wrapper)}}loadInstance(wrapper,collection,moduleRef,contextId=constants_2.STATIC_CONTEXT,inquirer){var _this=this;return _asyncToGenerator(function*(){const inquirerId=_this.getInquirerId(inquirer),instanceHost=wrapper.getInstanceByContextId(contextId,inquirerId);if(instanceHost.isPending)return instanceHost.donePromise;const done=_this.applyDoneHook(instanceHost),token=wrapper.token||wrapper.name,{inject}=wrapper,targetWrapper=collection.get(token);if((0,shared_utils_1.isUndefined)(targetWrapper))throw new runtime_exception_1.RuntimeException;if(instanceHost.isResolved)return done();const callback=function(){var _ref=_asyncToGenerator(function*(instances){const properties=yield _this.resolveProperties(wrapper,moduleRef,inject,contextId,wrapper,inquirer),instance=yield _this.instantiateClass(instances,wrapper,targetWrapper,contextId,inquirer);_this.applyProperties(instance,properties),done()});return __name(function(_x){return _ref.apply(this,arguments)},"callback")}();yield _this.resolveConstructorParams(wrapper,moduleRef,inject,callback,contextId,wrapper,inquirer)})()}loadMiddleware(wrapper,collection,moduleRef,contextId=constants_2.STATIC_CONTEXT,inquirer){var _this2=this;return _asyncToGenerator(function*(){const{metatype,token}=wrapper,targetWrapper=collection.get(token);!(0,shared_utils_1.isUndefined)(targetWrapper.instance)||(targetWrapper.instance=Object.create(metatype.prototype),yield _this2.loadInstance(wrapper,collection,moduleRef,contextId,inquirer||wrapper))})()}loadController(wrapper,moduleRef,contextId=constants_2.STATIC_CONTEXT){var _this3=this;return _asyncToGenerator(function*(){const controllers=moduleRef.controllers;yield _this3.loadInstance(wrapper,controllers,moduleRef,contextId,wrapper),yield _this3.loadEnhancersPerContext(wrapper,contextId,wrapper)})()}loadInjectable(wrapper,moduleRef,contextId=constants_2.STATIC_CONTEXT,inquirer){var _this4=this;return _asyncToGenerator(function*(){const injectables=moduleRef.injectables;yield _this4.loadInstance(wrapper,injectables,moduleRef,contextId,inquirer)})()}loadProvider(wrapper,moduleRef,contextId=constants_2.STATIC_CONTEXT,inquirer){var _this5=this;return _asyncToGenerator(function*(){const providers=moduleRef.providers;yield _this5.loadInstance(wrapper,providers,moduleRef,contextId,inquirer),yield _this5.loadEnhancersPerContext(wrapper,contextId,wrapper)})()}applyDoneHook(wrapper){let done;return wrapper.donePromise=new Promise((resolve,reject)=>{done=resolve}),wrapper.isPending=!0,done}resolveConstructorParams(wrapper,moduleRef,inject,callback,contextId=constants_2.STATIC_CONTEXT,inquirer,parentInquirer){var _this6=this;return _asyncToGenerator(function*(){let inquirerId=_this6.getInquirerId(inquirer);const metadata2=wrapper.getCtorMetadata();if(metadata2&&contextId!==constants_2.STATIC_CONTEXT){const deps=yield _this6.loadCtorMetadata(metadata2,contextId,inquirer,parentInquirer);return callback(deps)}const isFactoryProvider=!(0,shared_utils_1.isNil)(inject),[dependencies,optionalDependenciesIds]=isFactoryProvider?_this6.getFactoryProviderDependencies(wrapper):_this6.getClassDependencies(wrapper);let isResolved=!0;const resolveParam=function(){var _ref2=_asyncToGenerator(function*(param,index){try{if(_this6.isInquirer(param,parentInquirer))return parentInquirer&&parentInquirer.instance;(null==inquirer?void 0:inquirer.isTransient)&&parentInquirer&&(inquirer=parentInquirer,inquirerId=_this6.getInquirerId(parentInquirer));const paramWrapper=yield _this6.resolveSingleParam(wrapper,param,{index,dependencies},moduleRef,contextId,inquirer,index),instanceHost=paramWrapper.getInstanceByContextId(contextId,inquirerId);return!instanceHost.isResolved&&!paramWrapper.forwardRef&&(isResolved=!1),null==instanceHost?void 0:instanceHost.instance}catch(err){if(!optionalDependenciesIds.includes(index))throw err;return}});return __name(function(_x2,_x3){return _ref2.apply(this,arguments)},"resolveParam")}(),instances=yield Promise.all(dependencies.map(resolveParam));isResolved&&(yield callback(instances))})()}getClassDependencies(wrapper){const ctorRef=wrapper.metatype;return[this.reflectConstructorParams(ctorRef),this.reflectOptionalParams(ctorRef)]}getFactoryProviderDependencies(wrapper){var _a,_b;const optionalDependenciesIds=[],isOptionalFactoryDep=__name(item=>!(0,shared_utils_1.isUndefined)(item.token)&&!(0,shared_utils_1.isUndefined)(item.optional),"isOptionalFactoryDep"),mapFactoryProviderInjectArray=__name((item,index)=>"object"!=typeof item?item:isOptionalFactoryDep(item)?(item.optional&&optionalDependenciesIds.push(index),null==item?void 0:item.token):item,"mapFactoryProviderInjectArray");return[null===(_b=null===(_a=wrapper.inject)||void 0===_a?void 0:_a.map)||void 0===_b?void 0:_b.call(_a,mapFactoryProviderInjectArray),optionalDependenciesIds]}reflectConstructorParams(type){const paramtypes=Reflect.getMetadata(constants_1.PARAMTYPES_METADATA,type)||[];return this.reflectSelfParams(type).forEach(({index,param})=>paramtypes[index]=param),paramtypes}reflectOptionalParams(type){return Reflect.getMetadata(constants_1.OPTIONAL_DEPS_METADATA,type)||[]}reflectSelfParams(type){return Reflect.getMetadata(constants_1.SELF_DECLARED_DEPS_METADATA,type)||[]}resolveSingleParam(wrapper,param,dependencyContext,moduleRef,contextId=constants_2.STATIC_CONTEXT,inquirer,keyOrIndex){var _this7=this;return _asyncToGenerator(function*(){if((0,shared_utils_1.isUndefined)(param))throw _this7.logger.log("Nest encountered an undefined dependency. This may be due to a circular import or a missing dependency declaration."),new undefined_dependency_exception_1.UndefinedDependencyException(wrapper.name,dependencyContext,moduleRef);const token=_this7.resolveParamToken(wrapper,param);return _this7.resolveComponentInstance(moduleRef,token,dependencyContext,wrapper,contextId,inquirer,keyOrIndex)})()}resolveParamToken(wrapper,param){return param.forwardRef?(wrapper.forwardRef=!0,param.forwardRef()):param}resolveComponentInstance(moduleRef,token,dependencyContext,wrapper,contextId=constants_2.STATIC_CONTEXT,inquirer,keyOrIndex){var _this8=this;return _asyncToGenerator(function*(){_this8.printResolvingDependenciesLog(token,inquirer),_this8.printLookingForProviderLog(token,moduleRef);const providers=moduleRef.providers,instanceWrapper=yield _this8.lookupComponent(providers,moduleRef,Object.assign(Object.assign({},dependencyContext),{name:token}),wrapper,contextId,inquirer,keyOrIndex);return _this8.resolveComponentHost(moduleRef,instanceWrapper,contextId,inquirer)})()}resolveComponentHost(moduleRef,instanceWrapper,contextId=constants_2.STATIC_CONTEXT,inquirer){var _this9=this;return _asyncToGenerator(function*(){var _a;const inquirerId=_this9.getInquirerId(inquirer),instanceHost=instanceWrapper.getInstanceByContextId(contextId,inquirerId);if(instanceHost.isResolved||instanceWrapper.forwardRef?!instanceHost.isResolved&&instanceWrapper.forwardRef&&(contextId!==constants_2.STATIC_CONTEXT||!!inquirerId)&&instanceHost.donePromise&&instanceHost.donePromise.then(()=>_this9.loadProvider(instanceWrapper,moduleRef,contextId,inquirer)):yield _this9.loadProvider(instanceWrapper,null!==(_a=instanceWrapper.host)&&void 0!==_a?_a:moduleRef,contextId,inquirer),instanceWrapper.async){const host=instanceWrapper.getInstanceByContextId(contextId,inquirerId);host.instance=yield host.instance,instanceWrapper.setInstanceByContextId(contextId,host,inquirerId)}return instanceWrapper})()}lookupComponent(providers,moduleRef,dependencyContext,wrapper,contextId=constants_2.STATIC_CONTEXT,inquirer,keyOrIndex){var _this10=this;return _asyncToGenerator(function*(){const token=wrapper.token||wrapper.name,{name}=dependencyContext;if(wrapper&&token===name)throw new unknown_dependencies_exception_1.UnknownDependenciesException(wrapper.name,dependencyContext,moduleRef);if(providers.has(name)){const instanceWrapper=providers.get(name);return _this10.printFoundInModuleLog(name,moduleRef),_this10.addDependencyMetadata(keyOrIndex,wrapper,instanceWrapper),instanceWrapper}return _this10.lookupComponentInParentModules(dependencyContext,moduleRef,wrapper,contextId,inquirer,keyOrIndex)})()}lookupComponentInParentModules(dependencyContext,moduleRef,wrapper,contextId=constants_2.STATIC_CONTEXT,inquirer,keyOrIndex){var _this11=this;return _asyncToGenerator(function*(){const instanceWrapper=yield _this11.lookupComponentInImports(moduleRef,dependencyContext.name,wrapper,[],contextId,inquirer,keyOrIndex);if((0,shared_utils_1.isNil)(instanceWrapper))throw new unknown_dependencies_exception_1.UnknownDependenciesException(wrapper.name,dependencyContext,moduleRef);return instanceWrapper})()}lookupComponentInImports(moduleRef,name,wrapper,moduleRegistry=[],contextId=constants_2.STATIC_CONTEXT,inquirer,keyOrIndex,isTraversing){var _this12=this;return _asyncToGenerator(function*(){let instanceWrapperRef=null;const imports=moduleRef.imports||new Set,identity=__name(item=>item,"identity");let children2=[...imports.values()].filter(identity);if(isTraversing){const contextModuleExports=moduleRef.exports;children2=children2.filter(child=>contextModuleExports.has(child.metatype))}for(const relatedModule of children2){if(moduleRegistry.includes(relatedModule.id))continue;_this12.printLookingForProviderLog(name,relatedModule),moduleRegistry.push(relatedModule.id);const{providers,exports:exports3}=relatedModule;if(!exports3.has(name)||!providers.has(name)){const instanceRef=yield _this12.lookupComponentInImports(relatedModule,name,wrapper,moduleRegistry,contextId,inquirer,keyOrIndex,!0);if(instanceRef)return _this12.addDependencyMetadata(keyOrIndex,wrapper,instanceRef),instanceRef;continue}_this12.printFoundInModuleLog(name,relatedModule),instanceWrapperRef=providers.get(name),_this12.addDependencyMetadata(keyOrIndex,wrapper,instanceWrapperRef);const inquirerId=_this12.getInquirerId(inquirer);if(!instanceWrapperRef.getInstanceByContextId(contextId,inquirerId).isResolved&&!instanceWrapperRef.forwardRef){yield _this12.loadProvider(instanceWrapperRef,relatedModule,contextId,wrapper);break}}return instanceWrapperRef})()}resolveProperties(wrapper,moduleRef,inject,contextId=constants_2.STATIC_CONTEXT,inquirer,parentInquirer){var _this13=this;return _asyncToGenerator(function*(){if(!(0,shared_utils_1.isNil)(inject))return[];const metadata2=wrapper.getPropertiesMetadata();if(metadata2&&contextId!==constants_2.STATIC_CONTEXT)return _this13.loadPropertiesMetadata(metadata2,contextId,inquirer);const properties=_this13.reflectProperties(wrapper.metatype),instances=yield Promise.all(properties.map(function(){var _ref3=_asyncToGenerator(function*(item){try{const dependencyContext={key:item.key,name:item.name};if(_this13.isInquirer(item.name,parentInquirer))return parentInquirer&&parentInquirer.instance;const paramWrapper=yield _this13.resolveSingleParam(wrapper,item.name,dependencyContext,moduleRef,contextId,inquirer,item.key);if(!paramWrapper)return;const inquirerId=_this13.getInquirerId(inquirer);return paramWrapper.getInstanceByContextId(contextId,inquirerId).instance}catch(err){if(!item.isOptional)throw err;return}});return function(_x4){return _ref3.apply(this,arguments)}}()));return properties.map((item,index)=>Object.assign(Object.assign({},item),{instance:instances[index]}))})()}reflectProperties(type){const properties=Reflect.getMetadata(constants_1.PROPERTY_DEPS_METADATA,type)||[],optionalKeys=Reflect.getMetadata(constants_1.OPTIONAL_PROPERTY_DEPS_METADATA,type)||[];return properties.map(item=>Object.assign(Object.assign({},item),{name:item.type,isOptional:optionalKeys.includes(item.key)}))}applyProperties(instance,properties){!(0,shared_utils_1.isObject)(instance)||(0,iterare_1.iterate)(properties).filter(item=>!(0,shared_utils_1.isNil)(item.instance)).forEach(item=>instance[item.key]=item.instance)}instantiateClass(instances,wrapper,targetMetatype,contextId=constants_2.STATIC_CONTEXT,inquirer){var _this14=this;return _asyncToGenerator(function*(){const{metatype,inject}=wrapper,inquirerId=_this14.getInquirerId(inquirer),instanceHost=targetMetatype.getInstanceByContextId(contextId,inquirerId),isInContext=wrapper.isStatic(contextId,inquirer)||wrapper.isInRequestScope(contextId,inquirer)||wrapper.isLazyTransient(contextId,inquirer)||wrapper.isExplicitlyRequested(contextId,inquirer);if((0,shared_utils_1.isNil)(inject)&&isInContext)instanceHost.instance=wrapper.forwardRef?Object.assign(instanceHost.instance,new metatype(...instances)):new metatype(...instances);else if(isInContext){const factoryReturnValue=targetMetatype.metatype(...instances);instanceHost.instance=yield factoryReturnValue}return instanceHost.isResolved=!0,instanceHost.instance})()}loadPerContext(instance,moduleRef,collection,ctx,wrapper){var _this15=this;return _asyncToGenerator(function*(){if(!wrapper){const injectionToken=instance.constructor;wrapper=collection.get(injectionToken)}yield _this15.loadInstance(wrapper,collection,moduleRef,ctx,wrapper),yield _this15.loadEnhancersPerContext(wrapper,ctx,wrapper);const host=wrapper.getInstanceByContextId(ctx,wrapper.id);return host&&host.instance})()}loadEnhancersPerContext(wrapper,ctx,inquirer){var _this16=this;return _asyncToGenerator(function*(){const enhancers=wrapper.getEnhancersMetadata()||[],loadEnhancer=__name(item=>{const hostModule=item.host;return _this16.loadInstance(item,hostModule.injectables,hostModule,ctx,inquirer)},"loadEnhancer");yield Promise.all(enhancers.map(loadEnhancer))})()}loadCtorMetadata(metadata2,contextId,inquirer,parentInquirer){var _this17=this;return _asyncToGenerator(function*(){const hosts=yield Promise.all(metadata2.map(function(){var _ref4=_asyncToGenerator(function*(item){return _this17.resolveScopedComponentHost(item,contextId,inquirer,parentInquirer)});return function(_x5){return _ref4.apply(this,arguments)}}())),inquirerId=_this17.getInquirerId(inquirer);return hosts.map(item=>item.getInstanceByContextId(contextId,inquirerId).instance)})()}loadPropertiesMetadata(metadata2,contextId,inquirer){var _this18=this;return _asyncToGenerator(function*(){const dependenciesHosts=yield Promise.all(metadata2.map(function(){var _ref5=_asyncToGenerator(function*({wrapper:item,key}){return{key,host:yield _this18.resolveComponentHost(item.host,item,contextId,inquirer)}});return function(_x6){return _ref5.apply(this,arguments)}}())),inquirerId=_this18.getInquirerId(inquirer);return dependenciesHosts.map(({key,host})=>({key,name:key,instance:host.getInstanceByContextId(contextId,inquirerId).instance}))})()}getInquirerId(inquirer){return inquirer&&inquirer.id}resolveScopedComponentHost(item,contextId,inquirer,parentInquirer){return this.isInquirerRequest(item,parentInquirer)?parentInquirer:this.resolveComponentHost(item.host,item,contextId,inquirer)}isInquirerRequest(item,parentInquirer){return item.isTransient&&item.name===inquirer_1.INQUIRER&&parentInquirer}isInquirer(param,parentInquirer){return param===inquirer_1.INQUIRER&&parentInquirer}addDependencyMetadata(keyOrIndex,hostWrapper,instanceWrapper){(0,shared_utils_1.isString)(keyOrIndex)?hostWrapper.addPropertiesMetadata(keyOrIndex,instanceWrapper):hostWrapper.addCtorMetadata(keyOrIndex,instanceWrapper)}getTokenName(token){return(0,shared_utils_1.isFunction)(token)?token.name:token.toString()}printResolvingDependenciesLog(token,inquirer){var _a,_b,_c;if(!this.isDebugMode())return;const tokenName=this.getTokenName(token),dependentName=null!==(_c=(null==inquirer?void 0:inquirer.name)&&(null===(_b=(_a=inquirer.name).toString)||void 0===_b?void 0:_b.call(_a)))&&void 0!==_c?_c:"unknown",isAlias=dependentName===tokenName,messageToPrint=`Resolving dependency ${cli_colors_util_1.clc.cyanBright(tokenName)}${cli_colors_util_1.clc.green(" in the ")}${cli_colors_util_1.clc.yellow(dependentName)}${cli_colors_util_1.clc.green(" provider "+(isAlias?"(alias)":""))}`;this.logger.log(messageToPrint)}printLookingForProviderLog(token,moduleRef){var _a,_b;if(!this.isDebugMode())return;const tokenName=this.getTokenName(token),moduleRefName=null!==(_b=null===(_a=null==moduleRef?void 0:moduleRef.metatype)||void 0===_a?void 0:_a.name)&&void 0!==_b?_b:"unknown";this.logger.log(`Looking for ${cli_colors_util_1.clc.cyanBright(tokenName)}${cli_colors_util_1.clc.green(" in ")}${cli_colors_util_1.clc.magentaBright(moduleRefName)}`)}printFoundInModuleLog(token,moduleRef){var _a,_b;if(!this.isDebugMode())return;const tokenName=this.getTokenName(token),moduleRefName=null!==(_b=null===(_a=null==moduleRef?void 0:moduleRef.metatype)||void 0===_a?void 0:_a.name)&&void 0!==_b?_b:"unknown";this.logger.log(`Found ${cli_colors_util_1.clc.cyanBright(tokenName)}${cli_colors_util_1.clc.green(" in ")}${cli_colors_util_1.clc.magentaBright(moduleRefName)}`)}isDebugMode(){return!!process.env.NEST_DEBUG}}__name(Injector,"Injector"),exports2.Injector=Injector},33346:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(78099).__exportStar(__webpack_require__2(71668),exports2)},71668:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.INQUIRER=void 0,exports2.INQUIRER="INQUIRER"},64879:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.inquirerProvider=void 0;const common_1=__webpack_require__2(28791),inquirer_constants_1=__webpack_require__2(71668),noop=__name(()=>{},"noop");exports2.inquirerProvider={provide:inquirer_constants_1.INQUIRER,scope:common_1.Scope.TRANSIENT,useFactory:noop}},22006:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InstanceLinksHost=void 0;const shared_utils_1=__webpack_require__2(73819),unknown_element_exception_1=__webpack_require__2(35667);class InstanceLinksHost{constructor(container){this.container=container,this.instanceLinks=new Map,this.initialize()}get(token,moduleId){const modulesMap=this.instanceLinks.get(token);if(!modulesMap)throw new unknown_element_exception_1.UnknownElementException(this.getInstanceNameByToken(token));const instanceLink=moduleId?modulesMap.find(item=>item.moduleId===moduleId):modulesMap[modulesMap.length-1];if(!instanceLink)throw new unknown_element_exception_1.UnknownElementException(this.getInstanceNameByToken(token));return instanceLink}initialize(){this.container.getModules().forEach(moduleRef=>{const{providers,injectables,controllers}=moduleRef;providers.forEach((wrapper,token)=>this.addLink(wrapper,token,moduleRef,"providers")),injectables.forEach((wrapper,token)=>this.addLink(wrapper,token,moduleRef,"injectables")),controllers.forEach((wrapper,token)=>this.addLink(wrapper,token,moduleRef,"controllers"))})}addLink(wrapper,token,moduleRef,collectionName){const instanceLink={moduleId:moduleRef.id,wrapperRef:wrapper,collection:moduleRef[collectionName],token},existingLinks=this.instanceLinks.get(token);existingLinks?existingLinks.push(instanceLink):this.instanceLinks.set(token,[instanceLink])}getInstanceNameByToken(token){return(0,shared_utils_1.isFunction)(token)?null==token?void 0:token.name:token}}__name(InstanceLinksHost,"InstanceLinksHost"),exports2.InstanceLinksHost=InstanceLinksHost},51778:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InstanceLoader=void 0;const common_1=__webpack_require__2(28791),messages_1=__webpack_require__2(44369),injector_1=__webpack_require__2(97127),internal_core_module_1=__webpack_require__2(28416);class InstanceLoader{constructor(container,logger=new common_1.Logger(InstanceLoader.name,{timestamp:!0})){this.container=container,this.logger=logger,this.injector=new injector_1.Injector}createInstancesOfDependencies(modules=this.container.getModules()){var _this=this;return _asyncToGenerator(function*(){_this.createPrototypes(modules),yield _this.createInstances(modules)})()}createPrototypes(modules){modules.forEach(moduleRef=>{this.createPrototypesOfProviders(moduleRef),this.createPrototypesOfInjectables(moduleRef),this.createPrototypesOfControllers(moduleRef)})}createInstances(modules){var _this2=this;return _asyncToGenerator(function*(){yield Promise.all([...modules.values()].map(function(){var _ref=_asyncToGenerator(function*(moduleRef){yield _this2.createInstancesOfProviders(moduleRef),yield _this2.createInstancesOfInjectables(moduleRef),yield _this2.createInstancesOfControllers(moduleRef);const{name}=moduleRef.metatype;_this2.isModuleWhitelisted(name)&&_this2.logger.log(messages_1.MODULE_INIT_MESSAGE`${name}`)});return function(_x){return _ref.apply(this,arguments)}}()))})()}createPrototypesOfProviders(moduleRef){const{providers}=moduleRef;providers.forEach(wrapper=>this.injector.loadPrototype(wrapper,providers))}createInstancesOfProviders(moduleRef){var _this3=this;return _asyncToGenerator(function*(){const{providers}=moduleRef,wrappers=[...providers.values()];yield Promise.all(wrappers.map(item=>_this3.injector.loadProvider(item,moduleRef)))})()}createPrototypesOfControllers(moduleRef){const{controllers}=moduleRef;controllers.forEach(wrapper=>this.injector.loadPrototype(wrapper,controllers))}createInstancesOfControllers(moduleRef){var _this4=this;return _asyncToGenerator(function*(){const{controllers}=moduleRef,wrappers=[...controllers.values()];yield Promise.all(wrappers.map(item=>_this4.injector.loadController(item,moduleRef)))})()}createPrototypesOfInjectables(moduleRef){const{injectables}=moduleRef;injectables.forEach(wrapper=>this.injector.loadPrototype(wrapper,injectables))}createInstancesOfInjectables(moduleRef){var _this5=this;return _asyncToGenerator(function*(){const{injectables}=moduleRef,wrappers=[...injectables.values()];yield Promise.all(wrappers.map(item=>_this5.injector.loadInjectable(item,moduleRef)))})()}isModuleWhitelisted(name){return name!==internal_core_module_1.InternalCoreModule.name}}__name(InstanceLoader,"InstanceLoader"),exports2.InstanceLoader=InstanceLoader},43379:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _a;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InstanceWrapper=exports2.INSTANCE_ID_SYMBOL=exports2.INSTANCE_METADATA_SYMBOL=void 0;const tslib_1=__webpack_require__2(78099),common_1=__webpack_require__2(28791),random_string_generator_util_1=__webpack_require__2(80749),shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),constants_1=__webpack_require__2(74872);exports2.INSTANCE_METADATA_SYMBOL=Symbol.for("instance_metadata:cache"),exports2.INSTANCE_ID_SYMBOL=Symbol.for("instance_metadata:id");class InstanceWrapper{constructor(metadata2={}){this.isAlias=!1,this.scope=common_1.Scope.DEFAULT,this.values=new WeakMap,this[_a]={},this[exports2.INSTANCE_ID_SYMBOL]=(0,random_string_generator_util_1.randomStringGenerator)(),this.initialize(metadata2)}get id(){return this[exports2.INSTANCE_ID_SYMBOL]}set instance(value){this.values.set(constants_1.STATIC_CONTEXT,{instance:value})}get instance(){return this.getInstanceByContextId(constants_1.STATIC_CONTEXT).instance}get isNotMetatype(){const isFactory=this.metatype&&!(0,shared_utils_1.isNil)(this.inject);return!this.metatype||isFactory}get isTransient(){return this.scope===common_1.Scope.TRANSIENT}getInstanceByContextId(contextId,inquirerId){if(this.scope===common_1.Scope.TRANSIENT&&inquirerId)return this.getInstanceByInquirerId(contextId,inquirerId);return this.values.get(contextId)||this.cloneStaticInstance(contextId)}getInstanceByInquirerId(contextId,inquirerId){let collectionPerContext=this.transientMap.get(inquirerId);collectionPerContext||(collectionPerContext=new WeakMap,this.transientMap.set(inquirerId,collectionPerContext));return collectionPerContext.get(contextId)||this.cloneTransientInstance(contextId,inquirerId)}setInstanceByContextId(contextId,value,inquirerId){if(this.scope===common_1.Scope.TRANSIENT&&inquirerId)return this.setInstanceByInquirerId(contextId,inquirerId,value);this.values.set(contextId,value)}setInstanceByInquirerId(contextId,inquirerId,value){let collection=this.transientMap.get(inquirerId);collection||(collection=new WeakMap,this.transientMap.set(inquirerId,collection)),collection.set(contextId,value)}addCtorMetadata(index,wrapper){this[exports2.INSTANCE_METADATA_SYMBOL].dependencies||(this[exports2.INSTANCE_METADATA_SYMBOL].dependencies=[]),this[exports2.INSTANCE_METADATA_SYMBOL].dependencies[index]=wrapper}getCtorMetadata(){return this[exports2.INSTANCE_METADATA_SYMBOL].dependencies}addPropertiesMetadata(key,wrapper){this[exports2.INSTANCE_METADATA_SYMBOL].properties||(this[exports2.INSTANCE_METADATA_SYMBOL].properties=[]),this[exports2.INSTANCE_METADATA_SYMBOL].properties.push({key,wrapper})}getPropertiesMetadata(){return this[exports2.INSTANCE_METADATA_SYMBOL].properties}addEnhancerMetadata(wrapper){this[exports2.INSTANCE_METADATA_SYMBOL].enhancers||(this[exports2.INSTANCE_METADATA_SYMBOL].enhancers=[]),this[exports2.INSTANCE_METADATA_SYMBOL].enhancers.push(wrapper)}getEnhancersMetadata(){return this[exports2.INSTANCE_METADATA_SYMBOL].enhancers}isDependencyTreeStatic(lookupRegistry=[]){if(!(0,shared_utils_1.isUndefined)(this.isTreeStatic))return this.isTreeStatic;if(this.scope===common_1.Scope.REQUEST)return this.isTreeStatic=!1,this.isTreeStatic;if(lookupRegistry.includes(this[exports2.INSTANCE_ID_SYMBOL]))return!0;lookupRegistry=lookupRegistry.concat(this[exports2.INSTANCE_ID_SYMBOL]);const{dependencies,properties,enhancers}=this[exports2.INSTANCE_METADATA_SYMBOL];let isStatic=dependencies&&this.isWrapperListStatic(dependencies,lookupRegistry)||!dependencies;if(!isStatic||!properties&&!enhancers)return this.isTreeStatic=isStatic,this.isTreeStatic;const propertiesHosts=(properties||[]).map(item=>item.wrapper);return isStatic=isStatic&&this.isWrapperListStatic(propertiesHosts,lookupRegistry),isStatic&&enhancers?(this.isTreeStatic=this.isWrapperListStatic(enhancers,lookupRegistry),this.isTreeStatic):(this.isTreeStatic=isStatic,this.isTreeStatic)}cloneStaticInstance(contextId){const staticInstance=this.getInstanceByContextId(constants_1.STATIC_CONTEXT);if(this.isDependencyTreeStatic())return staticInstance;const instancePerContext=Object.assign(Object.assign({},staticInstance),{instance:void 0,isResolved:!1,isPending:!1});return this.isNewable()&&(instancePerContext.instance=Object.create(this.metatype.prototype)),this.setInstanceByContextId(contextId,instancePerContext),instancePerContext}cloneTransientInstance(contextId,inquirerId){const staticInstance=this.getInstanceByContextId(constants_1.STATIC_CONTEXT),instancePerContext=Object.assign(Object.assign({},staticInstance),{instance:void 0,isResolved:!1,isPending:!1});return this.isNewable()&&(instancePerContext.instance=Object.create(this.metatype.prototype)),this.setInstanceByInquirerId(contextId,inquirerId,instancePerContext),instancePerContext}createPrototype(contextId){const host=this.getInstanceByContextId(contextId);if(this.isNewable()&&!host.isResolved)return Object.create(this.metatype.prototype)}isInRequestScope(contextId,inquirer){return!this.isDependencyTreeStatic()&&contextId!==constants_1.STATIC_CONTEXT&&(!this.isTransient||this.isTransient&&!!inquirer)}isLazyTransient(contextId,inquirer){const isInquirerRequestScoped=inquirer&&!inquirer.isDependencyTreeStatic();return this.isDependencyTreeStatic()&&contextId!==constants_1.STATIC_CONTEXT&&this.isTransient&&isInquirerRequestScoped}isExplicitlyRequested(contextId,inquirer){const isSelfRequested=inquirer===this;return this.isDependencyTreeStatic()&&contextId!==constants_1.STATIC_CONTEXT&&(isSelfRequested||inquirer&&inquirer.scope===common_1.Scope.TRANSIENT)}isStatic(contextId,inquirer){const isInquirerRequestScoped=inquirer&&!inquirer.isDependencyTreeStatic(),isStaticTransient=this.isTransient&&!isInquirerRequestScoped;return this.isDependencyTreeStatic()&&contextId===constants_1.STATIC_CONTEXT&&(!this.isTransient||isStaticTransient&&!!inquirer&&!inquirer.isTransient)}getStaticTransientInstances(){if(!this.transientMap)return[];const instances=[...this.transientMap.values()];return(0,iterare_1.iterate)(instances).map(item=>item.get(constants_1.STATIC_CONTEXT)).filter(item=>!!item).toArray()}mergeWith(provider){(0,shared_utils_1.isUndefined)(provider.useValue)?provider.useClass?(this.inject=null,this.metatype=provider.useClass):provider.useFactory&&(this.metatype=provider.useFactory,this.inject=provider.inject||[]):(this.metatype=null,this.inject=null,this.scope=common_1.Scope.DEFAULT,this.setInstanceByContextId(constants_1.STATIC_CONTEXT,{instance:provider.useValue,isResolved:!0,isPending:!1}))}isNewable(){return(0,shared_utils_1.isNil)(this.inject)&&this.metatype&&this.metatype.prototype}isWrapperListStatic(tree,lookupRegistry){return tree.every(item=>item.isDependencyTreeStatic(lookupRegistry))}initialize(metadata2){const{instance,isResolved}=metadata2,wrapperPartial=tslib_1.__rest(metadata2,["instance","isResolved"]);Object.assign(this,wrapperPartial),this.setInstanceByContextId(constants_1.STATIC_CONTEXT,{instance,isResolved}),this.scope===common_1.Scope.TRANSIENT&&(this.transientMap=new Map)}}__name(InstanceWrapper,"InstanceWrapper"),exports2.InstanceWrapper=InstanceWrapper,_a=exports2.INSTANCE_METADATA_SYMBOL},64487:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InternalCoreModuleFactory=void 0;const common_1=__webpack_require__2(28791),external_context_creator_1=__webpack_require__2(97178),http_adapter_host_1=__webpack_require__2(7241),instance_loader_1=__webpack_require__2(51778),internal_core_module_1=__webpack_require__2(28416),lazy_module_loader_1=__webpack_require__2(36178),modules_container_1=__webpack_require__2(54284);class InternalCoreModuleFactory{static create(container,scanner,moduleCompiler,httpAdapterHost){return internal_core_module_1.InternalCoreModule.register([{provide:external_context_creator_1.ExternalContextCreator,useValue:external_context_creator_1.ExternalContextCreator.fromContainer(container)},{provide:modules_container_1.ModulesContainer,useValue:container.getModules()},{provide:http_adapter_host_1.HttpAdapterHost,useValue:httpAdapterHost},{provide:http_adapter_host_1.HttpAdapterHost.name,useExisting:http_adapter_host_1.HttpAdapterHost},{provide:lazy_module_loader_1.LazyModuleLoader,useFactory:()=>{const logger=new common_1.Logger(lazy_module_loader_1.LazyModuleLoader.name,{timestamp:!1}),instanceLoader=new instance_loader_1.InstanceLoader(container,logger);return new lazy_module_loader_1.LazyModuleLoader(scanner,instanceLoader,moduleCompiler,container.getModules())}}])}}__name(InternalCoreModuleFactory,"InternalCoreModuleFactory"),exports2.InternalCoreModuleFactory=InternalCoreModuleFactory},28416:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var InternalCoreModule_1;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InternalCoreModule=void 0;const tslib_1=__webpack_require__2(78099),common_1=__webpack_require__2(28791),request_providers_1=__webpack_require__2(7644),services_1=__webpack_require__2(84581),inquirer_providers_1=__webpack_require__2(64879),ReflectorAliasProvider={provide:services_1.Reflector.name,useExisting:services_1.Reflector};let InternalCoreModule=InternalCoreModule_1=__name(class{static register(providers){return{module:InternalCoreModule_1,providers:[...providers],exports:[...providers.map(item=>item.provide)]}}},"InternalCoreModule");InternalCoreModule=InternalCoreModule_1=tslib_1.__decorate([(0,common_1.Global)(),(0,common_1.Module)({providers:[services_1.Reflector,ReflectorAliasProvider,request_providers_1.requestProvider,inquirer_providers_1.inquirerProvider],exports:[services_1.Reflector,ReflectorAliasProvider,request_providers_1.requestProvider,inquirer_providers_1.inquirerProvider]})],InternalCoreModule),exports2.InternalCoreModule=InternalCoreModule},17320:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InternalProvidersStorage=void 0;const http_adapter_host_1=__webpack_require__2(7241);class InternalProvidersStorage{constructor(){this._httpAdapterHost=new http_adapter_host_1.HttpAdapterHost}get httpAdapterHost(){return this._httpAdapterHost}get httpAdapter(){return this._httpAdapter}set httpAdapter(httpAdapter){this._httpAdapter=httpAdapter}}__name(InternalProvidersStorage,"InternalProvidersStorage"),exports2.InternalProvidersStorage=InternalProvidersStorage},36178:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LazyModuleLoader=void 0;const module_ref_1=__webpack_require__2(37382);class LazyModuleLoader{constructor(dependenciesScanner,instanceLoader,moduleCompiler,modulesContainer){this.dependenciesScanner=dependenciesScanner,this.instanceLoader=instanceLoader,this.moduleCompiler=moduleCompiler,this.modulesContainer=modulesContainer}load(loaderFn){var _this=this;return _asyncToGenerator(function*(){const moduleClassOrDynamicDefinition=yield loaderFn(),moduleInstances=yield _this.dependenciesScanner.scanForModules(moduleClassOrDynamicDefinition);if(0===moduleInstances.length){const{token}=yield _this.moduleCompiler.compile(moduleClassOrDynamicDefinition),moduleInstance=_this.modulesContainer.get(token);return moduleInstance&&_this.getTargetModuleRef(moduleInstance)}const lazyModulesContainer=_this.createLazyModulesContainer(moduleInstances);yield _this.dependenciesScanner.scanModulesForDependencies(lazyModulesContainer),yield _this.instanceLoader.createInstancesOfDependencies(lazyModulesContainer);const[targetModule]=moduleInstances;return _this.getTargetModuleRef(targetModule)})()}createLazyModulesContainer(moduleInstances){return moduleInstances=Array.from(new Set(moduleInstances)),new Map(moduleInstances.map(ref=>[ref.token,ref]))}getTargetModuleRef(moduleInstance){return moduleInstance.getProviderByKey(module_ref_1.ModuleRef).instance}}__name(LazyModuleLoader,"LazyModuleLoader"),exports2.LazyModuleLoader=LazyModuleLoader},37382:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ModuleRef=void 0;const common_1=__webpack_require__2(28791),invalid_class_scope_exception_1=__webpack_require__2(24743),unknown_element_exception_1=__webpack_require__2(35667),get_class_scope_1=__webpack_require__2(80893),injector_1=__webpack_require__2(97127),instance_links_host_1=__webpack_require__2(22006),instance_wrapper_1=__webpack_require__2(43379);class ModuleRef{constructor(container){this.container=container,this.injector=new injector_1.Injector}get instanceLinksHost(){return this._instanceLinksHost||(this._instanceLinksHost=new instance_links_host_1.InstanceLinksHost(this.container)),this._instanceLinksHost}introspect(token){const{wrapperRef}=this.instanceLinksHost.get(token);let scope=common_1.Scope.DEFAULT;return wrapperRef.isDependencyTreeStatic()?wrapperRef.isTransient&&(scope=common_1.Scope.TRANSIENT):scope=common_1.Scope.REQUEST,{scope}}registerRequestByContextId(request,contextId){this.container.registerRequestProvider(request,contextId)}find(typeOrToken,contextModule){const moduleId=contextModule&&contextModule.id,{wrapperRef}=this.instanceLinksHost.get(typeOrToken,moduleId);if(wrapperRef.scope===common_1.Scope.REQUEST||wrapperRef.scope===common_1.Scope.TRANSIENT)throw new invalid_class_scope_exception_1.InvalidClassScopeException(typeOrToken);return wrapperRef.instance}resolvePerContext(typeOrToken,contextModule,contextId,options){var _this=this;return _asyncToGenerator(function*(){const instanceLink=options&&options.strict?_this.instanceLinksHost.get(typeOrToken,contextModule.id):_this.instanceLinksHost.get(typeOrToken),{wrapperRef,collection}=instanceLink;if(wrapperRef.isDependencyTreeStatic()&&!wrapperRef.isTransient)return _this.get(typeOrToken,options);const ctorHost=wrapperRef.instance||{constructor:typeOrToken},instance=yield _this.injector.loadPerContext(ctorHost,wrapperRef.host,collection,contextId,wrapperRef);if(!instance)throw new unknown_element_exception_1.UnknownElementException;return instance})()}instantiateClass(type,moduleRef){var _this2=this;return _asyncToGenerator(function*(){const wrapper=new instance_wrapper_1.InstanceWrapper({name:type&&type.name,metatype:type,isResolved:!1,scope:(0,get_class_scope_1.getClassScope)(type),host:moduleRef});return new Promise(function(){var _ref=_asyncToGenerator(function*(resolve,reject){try{const callback=function(){var _ref2=_asyncToGenerator(function*(instances){const properties=yield _this2.injector.resolveProperties(wrapper,moduleRef),instance=new type(...instances);_this2.injector.applyProperties(instance,properties),resolve(instance)});return __name(function(_x3){return _ref2.apply(this,arguments)},"callback")}();yield _this2.injector.resolveConstructorParams(wrapper,moduleRef,void 0,callback)}catch(err){reject(err)}});return function(_x,_x2){return _ref.apply(this,arguments)}}())})()}}__name(ModuleRef,"ModuleRef"),exports2.ModuleRef=ModuleRef},5974:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ModuleTokenFactory=void 0;const random_string_generator_util_1=__webpack_require__2(80749),shared_utils_1=__webpack_require__2(73819),fast_safe_stringify_1=__webpack_require__2(6814),hash=__webpack_require__2(67198);class ModuleTokenFactory{constructor(){this.moduleIdsCache=new WeakMap}create(metatype,dynamicModuleMetadata){const opaqueToken={id:this.getModuleId(metatype),module:this.getModuleName(metatype),dynamic:this.getDynamicMetadataToken(dynamicModuleMetadata)};return hash(opaqueToken,{ignoreUnknown:!0})}getDynamicMetadataToken(dynamicModuleMetadata){return dynamicModuleMetadata?(0,fast_safe_stringify_1.default)(dynamicModuleMetadata,this.replacer):""}getModuleId(metatype){let moduleId=this.moduleIdsCache.get(metatype);return moduleId||(moduleId=(0,random_string_generator_util_1.randomStringGenerator)(),this.moduleIdsCache.set(metatype,moduleId),moduleId)}getModuleName(metatype){return metatype.name}replacer(key,value){if((0,shared_utils_1.isFunction)(value)){const funcAsString=value.toString();return/^class\s/.test(funcAsString)?value.name:hash(funcAsString,{ignoreUnknown:!0})}return(0,shared_utils_1.isSymbol)(value)?value.toString():value}}__name(ModuleTokenFactory,"ModuleTokenFactory"),exports2.ModuleTokenFactory=ModuleTokenFactory},53413:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Module=void 0;const random_string_generator_util_1=__webpack_require__2(80749),shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),application_config_1=__webpack_require__2(64112),invalid_class_exception_1=__webpack_require__2(71984),runtime_exception_1=__webpack_require__2(80782),unknown_export_exception_1=__webpack_require__2(44710),context_id_factory_1=__webpack_require__2(93390),get_class_scope_1=__webpack_require__2(80893),constants_1=__webpack_require__2(74872),instance_wrapper_1=__webpack_require__2(43379),module_ref_1=__webpack_require__2(37382);class Module{constructor(_metatype,container){this._metatype=_metatype,this.container=container,this._imports=new Set,this._providers=new Map,this._injectables=new Map,this._middlewares=new Map,this._controllers=new Map,this._exports=new Set,this._distance=0,this.addCoreProviders(),this._id=(0,random_string_generator_util_1.randomStringGenerator)()}get id(){return this._id}get token(){return this._token}set token(token){this._token=token}get providers(){return this._providers}get middlewares(){return this._middlewares}get imports(){return this._imports}get relatedModules(){return this._imports}get components(){return this._providers}get routes(){return this._controllers}get injectables(){return this._injectables}get controllers(){return this._controllers}get exports(){return this._exports}get instance(){if(!this._providers.has(this._metatype))throw new runtime_exception_1.RuntimeException;return this._providers.get(this._metatype).instance}get metatype(){return this._metatype}get distance(){return this._distance}set distance(value){this._distance=value}addCoreProviders(){this.addModuleAsProvider(),this.addModuleRef(),this.addApplicationConfig()}addModuleRef(){const moduleRef=this.createModuleReferenceType();this._providers.set(module_ref_1.ModuleRef,new instance_wrapper_1.InstanceWrapper({token:module_ref_1.ModuleRef,name:module_ref_1.ModuleRef.name,metatype:module_ref_1.ModuleRef,isResolved:!0,instance:new moduleRef,host:this}))}addModuleAsProvider(){this._providers.set(this._metatype,new instance_wrapper_1.InstanceWrapper({token:this._metatype,name:this._metatype.name,metatype:this._metatype,isResolved:!1,instance:null,host:this}))}addApplicationConfig(){this._providers.set(application_config_1.ApplicationConfig,new instance_wrapper_1.InstanceWrapper({token:application_config_1.ApplicationConfig,name:application_config_1.ApplicationConfig.name,isResolved:!0,instance:this.container.applicationConfig,host:this}))}addInjectable(injectable,host){if(this.isCustomProvider(injectable))return this.addCustomProvider(injectable,this._injectables);let instanceWrapper=this.injectables.get(injectable);if(instanceWrapper||(instanceWrapper=new instance_wrapper_1.InstanceWrapper({token:injectable,name:injectable.name,metatype:injectable,instance:null,isResolved:!1,scope:(0,get_class_scope_1.getClassScope)(injectable),host:this}),this._injectables.set(injectable,instanceWrapper)),host){const hostWrapper=this._controllers.get(host)||this._providers.get(host);hostWrapper&&hostWrapper.addEnhancerMetadata(instanceWrapper)}}addProvider(provider){return this.isCustomProvider(provider)?this.addCustomProvider(provider,this._providers):(this._providers.set(provider,new instance_wrapper_1.InstanceWrapper({token:provider,name:provider.name,metatype:provider,instance:null,isResolved:!1,scope:(0,get_class_scope_1.getClassScope)(provider),host:this})),provider)}isCustomProvider(provider){return!(0,shared_utils_1.isNil)(provider.provide)}addCustomProvider(provider,collection){return this.isCustomClass(provider)?this.addCustomClass(provider,collection):this.isCustomValue(provider)?this.addCustomValue(provider,collection):this.isCustomFactory(provider)?this.addCustomFactory(provider,collection):this.isCustomUseExisting(provider)&&this.addCustomUseExisting(provider,collection),provider.provide}isCustomClass(provider){return!(0,shared_utils_1.isUndefined)(provider.useClass)}isCustomValue(provider){return!(0,shared_utils_1.isUndefined)(provider.useValue)}isCustomFactory(provider){return!(0,shared_utils_1.isUndefined)(provider.useFactory)}isCustomUseExisting(provider){return!(0,shared_utils_1.isUndefined)(provider.useExisting)}isDynamicModule(exported){return exported&&exported.module}addCustomClass(provider,collection){let{scope}=provider;const{useClass}=provider;(0,shared_utils_1.isUndefined)(scope)&&(scope=(0,get_class_scope_1.getClassScope)(useClass)),collection.set(provider.provide,new instance_wrapper_1.InstanceWrapper({token:provider.provide,name:(null==useClass?void 0:useClass.name)||useClass,metatype:useClass,instance:null,isResolved:!1,scope,host:this}))}addCustomValue(provider,collection){const{useValue:value,provide:providerToken}=provider;collection.set(providerToken,new instance_wrapper_1.InstanceWrapper({token:providerToken,name:(null==providerToken?void 0:providerToken.name)||providerToken,metatype:null,instance:value,isResolved:!0,async:value instanceof Promise,host:this}))}addCustomFactory(provider,collection){const{useFactory:factory,inject,scope,provide:providerToken}=provider;collection.set(providerToken,new instance_wrapper_1.InstanceWrapper({token:providerToken,name:(null==providerToken?void 0:providerToken.name)||providerToken,metatype:factory,instance:null,isResolved:!1,inject:inject||[],scope,host:this}))}addCustomUseExisting(provider,collection){const{useExisting,provide:providerToken}=provider;collection.set(providerToken,new instance_wrapper_1.InstanceWrapper({token:providerToken,name:(null==providerToken?void 0:providerToken.name)||providerToken,metatype:instance=>instance,instance:null,isResolved:!1,inject:[useExisting],host:this,isAlias:!0}))}addExportedProvider(provider){const addExportedUnit=__name(token=>this._exports.add(this.validateExportedProvider(token)),"addExportedUnit");if(this.isCustomProvider(provider))return this.addCustomExportedProvider(provider);if((0,shared_utils_1.isString)(provider)||(0,shared_utils_1.isSymbol)(provider))return addExportedUnit(provider);if(this.isDynamicModule(provider)){const{module:moduleClassRef}=provider;return addExportedUnit(moduleClassRef)}addExportedUnit(provider)}addCustomExportedProvider(provider){const provide=provider.provide;if((0,shared_utils_1.isString)(provide)||(0,shared_utils_1.isSymbol)(provide))return this._exports.add(this.validateExportedProvider(provide));this._exports.add(this.validateExportedProvider(provide))}validateExportedProvider(token){if(this._providers.has(token))return token;if(!(0,iterare_1.iterate)(this._imports.values()).filter(item=>!!item).map(({metatype})=>metatype).filter(metatype=>!!metatype).toArray().includes(token)){const{name}=this.metatype,providerName=(0,shared_utils_1.isFunction)(token)?token.name:token;throw new unknown_export_exception_1.UnknownExportException(providerName,name)}return token}addController(controller){this._controllers.set(controller,new instance_wrapper_1.InstanceWrapper({token:controller,name:controller.name,metatype:controller,instance:null,isResolved:!1,scope:(0,get_class_scope_1.getClassScope)(controller),host:this})),this.assignControllerUniqueId(controller)}assignControllerUniqueId(controller){Object.defineProperty(controller,constants_1.CONTROLLER_ID_KEY,{enumerable:!1,writable:!1,configurable:!0,value:(0,random_string_generator_util_1.randomStringGenerator)()})}addRelatedModule(module2){this._imports.add(module2)}replace(toReplace,options){return options.isProvider&&this.hasProvider(toReplace)?this._providers.get(toReplace).mergeWith(Object.assign({provide:toReplace},options)):!options.isProvider&&this.hasInjectable(toReplace)?this._injectables.get(toReplace).mergeWith(Object.assign({provide:toReplace},options)):void 0}hasProvider(token){return this._providers.has(token)}hasInjectable(token){return this._injectables.has(token)}getProviderByKey(name){return this._providers.get(name)}getNonAliasProviders(){return[...this._providers].filter(([_,wrapper])=>!wrapper.isAlias)}createModuleReferenceType(){const self2=this;return class extends module_ref_1.ModuleRef{constructor(){super(self2.container)}get(typeOrToken,options={strict:!0}){return options&&options.strict?this.find(typeOrToken,self2):this.find(typeOrToken)}resolve(typeOrToken,contextId=(0,context_id_factory_1.createContextId)(),options={strict:!0}){return this.resolvePerContext(typeOrToken,self2,contextId,options)}create(type){var _this=this;return _asyncToGenerator(function*(){if(!(type&&(0,shared_utils_1.isFunction)(type)&&type.prototype))throw new invalid_class_exception_1.InvalidClassException(type);return _this.instantiateClass(type,self2)})()}}}}__name(Module,"Module"),exports2.Module=Module},54284:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ModulesContainer=void 0;const uuid_1=__webpack_require__2(82697);class ModulesContainer extends Map{constructor(){super(...arguments),this._applicationId=(0,uuid_1.v4)()}get applicationId(){return this._applicationId}}__name(ModulesContainer,"ModulesContainer"),exports2.ModulesContainer=ModulesContainer},21538:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InterceptorsConsumer=void 0;const shared_utils_1=__webpack_require__2(73819),rxjs_1=__webpack_require__2(76477),operators_1=__webpack_require__2(83292),execution_context_host_1=__webpack_require__2(78170);class InterceptorsConsumer{intercept(interceptors,args2,instance,callback,next,type){var _this=this;return _asyncToGenerator(function*(){if((0,shared_utils_1.isEmpty)(interceptors))return next();const context=_this.createContext(args2,instance,callback);context.setType(type);const start$=(0,rxjs_1.defer)(()=>_this.transformDeferred(next)),nextFn=__name((i2=0)=>_asyncToGenerator(function*(){if(i2>=interceptors.length)return start$;const handler={handle:()=>(0,rxjs_1.from)(nextFn(i2+1)()).pipe((0,operators_1.mergeAll)())};return interceptors[i2].intercept(context,handler)}),"nextFn");return nextFn()()})()}createContext(args2,instance,callback){return new execution_context_host_1.ExecutionContextHost(args2,instance.constructor,callback)}transformDeferred(next){return(0,rxjs_1.from)(next()).pipe((0,operators_1.switchMap)(res=>res instanceof Promise||res instanceof rxjs_1.Observable?res:Promise.resolve(res)))}}__name(InterceptorsConsumer,"InterceptorsConsumer"),exports2.InterceptorsConsumer=InterceptorsConsumer},20244:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InterceptorsContextCreator=void 0;const constants_1=__webpack_require__2(75441),shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),context_creator_1=__webpack_require__2(86632),constants_2=__webpack_require__2(74872);class InterceptorsContextCreator extends context_creator_1.ContextCreator{constructor(container,config){super(),this.container=container,this.config=config}create(instance,callback,module2,contextId=constants_2.STATIC_CONTEXT,inquirerId){return this.moduleContext=module2,this.createContext(instance,callback,constants_1.INTERCEPTORS_METADATA,contextId,inquirerId)}createConcreteContext(metadata2,contextId=constants_2.STATIC_CONTEXT,inquirerId){return(0,shared_utils_1.isEmpty)(metadata2)?[]:(0,iterare_1.iterate)(metadata2).filter(interceptor=>interceptor&&(interceptor.name||interceptor.intercept)).map(interceptor=>this.getInterceptorInstance(interceptor,contextId,inquirerId)).filter(interceptor=>interceptor&&(0,shared_utils_1.isFunction)(interceptor.intercept)).toArray()}getInterceptorInstance(metatype,contextId=constants_2.STATIC_CONTEXT,inquirerId){if(metatype.intercept)return metatype;const instanceWrapper=this.getInstanceByMetatype(metatype);if(!instanceWrapper)return null;const instanceHost=instanceWrapper.getInstanceByContextId(contextId,inquirerId);return instanceHost&&instanceHost.instance}getInstanceByMetatype(metatype){if(!this.moduleContext)return;const moduleRef=this.container.getModules().get(this.moduleContext);return moduleRef?moduleRef.injectables.get(metatype):void 0}getGlobalMetadata(contextId=constants_2.STATIC_CONTEXT,inquirerId){if(!this.config)return[];const globalInterceptors=this.config.getGlobalInterceptors();if(contextId===constants_2.STATIC_CONTEXT&&!inquirerId)return globalInterceptors;const scopedInterceptorWrappers=this.config.getGlobalRequestInterceptors(),scopedInterceptors=(0,iterare_1.iterate)(scopedInterceptorWrappers).map(wrapper=>wrapper.getInstanceByContextId(contextId,inquirerId)).filter(host=>!!host).map(host=>host.instance).toArray();return globalInterceptors.concat(scopedInterceptors)}}__name(InterceptorsContextCreator,"InterceptorsContextCreator"),exports2.InterceptorsContextCreator=InterceptorsContextCreator},68499:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MetadataScanner=void 0;const shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698);class MetadataScanner{scanFromPrototype(instance,prototype,callback){const methodNames=new Set(this.getAllFilteredMethodNames(prototype));return(0,iterare_1.iterate)(methodNames).map(callback).filter(metadata2=>!(0,shared_utils_1.isNil)(metadata2)).toArray()}*getAllFilteredMethodNames(prototype){const isMethod=__name(prop=>{const descriptor=Object.getOwnPropertyDescriptor(prototype,prop);return!descriptor.set&&!descriptor.get&&(!(0,shared_utils_1.isConstructor)(prop)&&(0,shared_utils_1.isFunction)(prototype[prop]))},"isMethod");do{yield*(0,iterare_1.iterate)(Object.getOwnPropertyNames(prototype)).filter(isMethod).toArray()}while((prototype=Reflect.getPrototypeOf(prototype))&&prototype!==Object.prototype)}}__name(MetadataScanner,"MetadataScanner"),exports2.MetadataScanner=MetadataScanner},94837:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MiddlewareBuilder=void 0;const dependencies_decorator_1=__webpack_require__2(55923),iterare_1=__webpack_require__2(57698),utils_1=__webpack_require__2(19365);class MiddlewareBuilder{constructor(routesMapper,httpAdapter){this.routesMapper=routesMapper,this.httpAdapter=httpAdapter,this.middlewareCollection=new Set}apply(...middleware){return new MiddlewareBuilder.ConfigProxy(this,(0,dependencies_decorator_1.flatten)(middleware))}build(){return[...this.middlewareCollection]}getHttpAdapter(){return this.httpAdapter}}__name(MiddlewareBuilder,"MiddlewareBuilder"),exports2.MiddlewareBuilder=MiddlewareBuilder,MiddlewareBuilder.ConfigProxy=class{constructor(builder,middleware){this.builder=builder,this.middleware=middleware,this.excludedRoutes=[]}getExcludedRoutes(){return this.excludedRoutes}exclude(...routes){return this.excludedRoutes=this.getRoutesFlatList(routes),this}forRoutes(...routes){const{middlewareCollection}=this.builder,forRoutes=this.getRoutesFlatList(routes),configuration={middleware:(0,utils_1.filterMiddleware)(this.middleware,this.excludedRoutes,this.builder.getHttpAdapter()),forRoutes};return middlewareCollection.add(configuration),this.builder}getRoutesFlatList(routes){const{routesMapper}=this.builder;return(0,iterare_1.iterate)(routes).map(route=>routesMapper.mapRouteToRouteInfo(route)).flatten().toArray()}}},15457:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MiddlewareContainer=void 0;const instance_wrapper_1=__webpack_require__2(43379),get_class_scope_1=__webpack_require__2(80893);class MiddlewareContainer{constructor(container){this.container=container,this.middleware=new Map,this.configurationSets=new Map}getMiddlewareCollection(moduleKey){if(!this.middleware.has(moduleKey)){const moduleRef=this.container.getModuleByKey(moduleKey);this.middleware.set(moduleKey,moduleRef.middlewares)}return this.middleware.get(moduleKey)}getConfigurations(){return this.configurationSets}insertConfig(configList,moduleKey){const middleware=this.getMiddlewareCollection(moduleKey),targetConfig=this.getTargetConfig(moduleKey),configurations=configList||[],insertMiddleware=__name(metatype=>{const token=metatype;middleware.set(token,new instance_wrapper_1.InstanceWrapper({scope:(0,get_class_scope_1.getClassScope)(metatype),name:token,metatype,token}))},"insertMiddleware");configurations.forEach(config=>{[].concat(config.middleware).map(insertMiddleware),targetConfig.add(config)})}getTargetConfig(moduleName){return this.configurationSets.has(moduleName)||this.configurationSets.set(moduleName,new Set),this.configurationSets.get(moduleName)}}__name(MiddlewareContainer,"MiddlewareContainer"),exports2.MiddlewareContainer=MiddlewareContainer},54221:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(78099).__exportStar(__webpack_require__2(94837),exports2)},45023:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MiddlewareModule=void 0;const request_method_enum_1=__webpack_require__2(10724),shared_utils_1=__webpack_require__2(73819),invalid_middleware_exception_1=__webpack_require__2(70341),runtime_exception_1=__webpack_require__2(80782),context_id_factory_1=__webpack_require__2(93390),execution_context_host_1=__webpack_require__2(78170),constants_1=__webpack_require__2(74872),request_constants_1=__webpack_require__2(53936),router_exception_filters_1=__webpack_require__2(78074),router_proxy_1=__webpack_require__2(98942),utils_1=__webpack_require__2(29367),builder_1=__webpack_require__2(94837),resolver_1=__webpack_require__2(25324),routes_mapper_1=__webpack_require__2(89847);class MiddlewareModule{constructor(){this.routerProxy=new router_proxy_1.RouterProxy,this.exceptionFiltersCache=new WeakMap}register(middlewareContainer,container,config,injector,httpAdapter){var _this=this;return _asyncToGenerator(function*(){const appRef=container.getHttpAdapterRef();_this.routerExceptionFilter=new router_exception_filters_1.RouterExceptionFilters(container,config,appRef),_this.routesMapper=new routes_mapper_1.RoutesMapper(container),_this.resolver=new resolver_1.MiddlewareResolver(middlewareContainer),_this.config=config,_this.injector=injector,_this.container=container,_this.httpAdapter=httpAdapter;const modules=container.getModules();yield _this.resolveMiddleware(middlewareContainer,modules)})()}resolveMiddleware(middlewareContainer,modules){var _this2=this;return _asyncToGenerator(function*(){const moduleEntries=[...modules.entries()],loadMiddlewareConfiguration=function(){var _ref=_asyncToGenerator(function*([moduleName,moduleRef]){yield _this2.loadConfiguration(middlewareContainer,moduleRef,moduleName),yield _this2.resolver.resolveInstances(moduleRef,moduleName)});return __name(function(_x){return _ref.apply(this,arguments)},"loadMiddlewareConfiguration")}();yield Promise.all(moduleEntries.map(loadMiddlewareConfiguration))})()}loadConfiguration(middlewareContainer,moduleRef,moduleKey){var _this3=this;return _asyncToGenerator(function*(){const{instance}=moduleRef;if(!instance.configure)return;const middlewareBuilder=new builder_1.MiddlewareBuilder(_this3.routesMapper,_this3.httpAdapter);if(yield instance.configure(middlewareBuilder),!(middlewareBuilder instanceof builder_1.MiddlewareBuilder))return;const config=middlewareBuilder.build();middlewareContainer.insertConfig(config,moduleKey)})()}registerMiddleware(middlewareContainer,applicationRef){var _this4=this;return _asyncToGenerator(function*(){const configs=middlewareContainer.getConfigurations(),registerAllConfigs=function(){var _ref2=_asyncToGenerator(function*(moduleKey,middlewareConfig){for(const config of middlewareConfig)yield _this4.registerMiddlewareConfig(middlewareContainer,config,moduleKey,applicationRef)});return __name(function(_x2,_x3){return _ref2.apply(this,arguments)},"registerAllConfigs")}(),entriesSortedByDistance=[...configs.entries()].sort(([moduleA],[moduleB])=>_this4.container.getModuleByKey(moduleA).distance-_this4.container.getModuleByKey(moduleB).distance);for(const[moduleRef,moduleConfigurations]of entriesSortedByDistance)yield registerAllConfigs(moduleRef,[...moduleConfigurations])})()}registerMiddlewareConfig(middlewareContainer,config,moduleKey,applicationRef){var _this5=this;return _asyncToGenerator(function*(){const{forRoutes}=config;for(const routeInfo of forRoutes)yield _this5.registerRouteMiddleware(middlewareContainer,routeInfo,config,moduleKey,applicationRef)})()}registerRouteMiddleware(middlewareContainer,routeInfo,config,moduleKey,applicationRef){var _this6=this;return _asyncToGenerator(function*(){const middlewareCollection=[].concat(config.middleware),moduleRef=_this6.container.getModuleByKey(moduleKey);for(const metatype of middlewareCollection){const collection=middlewareContainer.getMiddlewareCollection(moduleKey),instanceWrapper=collection.get(metatype);if((0,shared_utils_1.isUndefined)(instanceWrapper))throw new runtime_exception_1.RuntimeException;if(instanceWrapper.isTransient)return;yield _this6.bindHandler(instanceWrapper,applicationRef,routeInfo.method,routeInfo.path,moduleRef,collection)}})()}bindHandler(wrapper,applicationRef,method,path,moduleRef,collection){var _this7=this;return _asyncToGenerator(function*(){const{instance,metatype}=wrapper;if((0,shared_utils_1.isUndefined)(null==instance?void 0:instance.use))throw new invalid_middleware_exception_1.InvalidMiddlewareException(metatype.name);if(wrapper.isDependencyTreeStatic()){const proxy=yield _this7.createProxy(instance);return _this7.registerHandler(applicationRef,method,path,proxy)}yield _this7.registerHandler(applicationRef,method,path,function(){var _ref3=_asyncToGenerator(function*(req,res,next){try{const contextId=context_id_factory_1.ContextIdFactory.getByRequest(req);req[request_constants_1.REQUEST_CONTEXT_ID]||(Object.defineProperty(req,request_constants_1.REQUEST_CONTEXT_ID,{value:contextId,enumerable:!1,writable:!1,configurable:!1}),_this7.container.registerRequestProvider(req,contextId));const contextInstance=yield _this7.injector.loadPerContext(instance,moduleRef,collection,contextId);return(yield _this7.createProxy(contextInstance,contextId))(req,res,next)}catch(err){let exceptionsHandler=_this7.exceptionFiltersCache.get(instance.use);exceptionsHandler||(exceptionsHandler=_this7.routerExceptionFilter.create(instance,instance.use,void 0),_this7.exceptionFiltersCache.set(instance.use,exceptionsHandler));const host=new execution_context_host_1.ExecutionContextHost([req,res,next]);exceptionsHandler.next(err,host)}});return function(_x4,_x5,_x6){return _ref3.apply(this,arguments)}}())})()}createProxy(instance,contextId=constants_1.STATIC_CONTEXT){var _this8=this;return _asyncToGenerator(function*(){const exceptionsHandler=_this8.routerExceptionFilter.create(instance,instance.use,void 0,contextId),middleware=instance.use.bind(instance);return _this8.routerProxy.createProxy(middleware,exceptionsHandler)})()}registerHandler(applicationRef,method,path,proxy){var _this9=this;return _asyncToGenerator(function*(){const prefix=_this9.config.getGlobalPrefix(),excludedRoutes=_this9.config.getGlobalPrefixOptions().exclude;if(Array.isArray(excludedRoutes)&&(0,utils_1.isRouteExcluded)(excludedRoutes,path,method)||["*","/*","(.*)","/(.*)"].includes(path))path=(0,shared_utils_1.addLeadingSlash)(path);else{const basePath2=(0,shared_utils_1.addLeadingSlash)(prefix);(null==basePath2?void 0:basePath2.endsWith("/"))&&(null==path?void 0:path.startsWith("/"))&&(path=null==path?void 0:path.slice(1)),path=basePath2+path}const isMethodAll=(0,utils_1.isRequestMethodAll)(method),requestMethod=request_method_enum_1.RequestMethod[method];(yield applicationRef.createMiddlewareFactory(method))(path,isMethodAll?proxy:(req,res,next)=>applicationRef.getRequestMethod(req)===requestMethod?proxy(req,res,next):next())})()}}__name(MiddlewareModule,"MiddlewareModule"),exports2.MiddlewareModule=MiddlewareModule},25324:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MiddlewareResolver=void 0;const injector_1=__webpack_require__2(97127);class MiddlewareResolver{constructor(middlewareContainer){this.middlewareContainer=middlewareContainer,this.instanceLoader=new injector_1.Injector}resolveInstances(moduleRef,moduleName){var _this=this;return _asyncToGenerator(function*(){const middleware=_this.middlewareContainer.getMiddlewareCollection(moduleName),resolveInstance=function(){var _ref=_asyncToGenerator(function*(wrapper){return _this.resolveMiddlewareInstance(wrapper,middleware,moduleRef)});return __name(function(_x){return _ref.apply(this,arguments)},"resolveInstance")}();yield Promise.all([...middleware.values()].map(resolveInstance))})()}resolveMiddlewareInstance(wrapper,middleware,moduleRef){var _this2=this;return _asyncToGenerator(function*(){yield _this2.instanceLoader.loadMiddleware(wrapper,middleware,moduleRef)})()}}__name(MiddlewareResolver,"MiddlewareResolver"),exports2.MiddlewareResolver=MiddlewareResolver},89847:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RoutesMapper=void 0;const constants_1=__webpack_require__2(75441),shared_utils_1=__webpack_require__2(73819),metadata_scanner_1=__webpack_require__2(68499),router_explorer_1=__webpack_require__2(79866),router_module_1=__webpack_require__2(94852);class RoutesMapper{constructor(container){this.container=container,this.routerExplorer=new router_explorer_1.RouterExplorer(new metadata_scanner_1.MetadataScanner,container)}mapRouteToRouteInfo(route){if((0,shared_utils_1.isString)(route))return[{path:(0,shared_utils_1.addLeadingSlash)(route),method:-1}];const routePathOrPaths=this.getRoutePath(route);if(this.isRouteInfo(routePathOrPaths,route))return[{path:(0,shared_utils_1.addLeadingSlash)(route.path),method:route.method}];const controllerPaths=this.routerExplorer.scanForPaths(Object.create(route),route.prototype),moduleRef=this.getHostModuleOfController(route),modulePath=this.getModulePath(null==moduleRef?void 0:moduleRef.metatype),concatPaths=__name((acc,currentValue)=>acc.concat(currentValue),"concatPaths");return[].concat(routePathOrPaths).map(routePath=>controllerPaths.map(item=>{var _a;return null===(_a=item.path)||void 0===_a?void 0:_a.map(p=>{let path=null!=modulePath?modulePath:"";return path+=this.normalizeGlobalPath(routePath)+(0,shared_utils_1.addLeadingSlash)(p),{path,method:item.requestMethod}})}).reduce(concatPaths,[])).reduce(concatPaths,[])}isRouteInfo(path,objectOrClass){return(0,shared_utils_1.isUndefined)(path)}normalizeGlobalPath(path){const prefix=(0,shared_utils_1.addLeadingSlash)(path);return"/"===prefix?"":prefix}getRoutePath(route){return Reflect.getMetadata(constants_1.PATH_METADATA,route)}getHostModuleOfController(metatype){if(!metatype)return;const modulesContainer=this.container.getModules(),moduleRefsSet=router_module_1.targetModulesByContainer.get(modulesContainer);return moduleRefsSet?Array.from(modulesContainer.values()).filter(moduleRef=>moduleRefsSet.has(moduleRef)).find(({routes})=>routes.has(metatype)):void 0}getModulePath(metatype){if(!metatype)return;const modulesContainer=this.container.getModules(),modulePath=Reflect.getMetadata(constants_1.MODULE_PATH+modulesContainer.applicationId,metatype);return null!=modulePath?modulePath:Reflect.getMetadata(constants_1.MODULE_PATH,metatype)}}__name(RoutesMapper,"RoutesMapper"),exports2.RoutesMapper=RoutesMapper},19365:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.isMiddlewareRouteExcluded=exports2.assignToken=exports2.isMiddlewareClass=exports2.mapToClass=exports2.filterMiddleware=exports2.mapToExcludeRoute=void 0;const common_1=__webpack_require__2(28791),shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),pathToRegexp=__webpack_require__2(87045),uuid_1=__webpack_require__2(82697),utils_1=__webpack_require__2(29367),mapToExcludeRoute=__name(routes=>routes.map(({path,method})=>({pathRegex:pathToRegexp(path),requestMethod:method})),"mapToExcludeRoute");exports2.mapToExcludeRoute=mapToExcludeRoute;const filterMiddleware=__name((middleware,routes,httpAdapter)=>{const excludedRoutes=(0,exports2.mapToExcludeRoute)(routes);return(0,iterare_1.iterate)([]).concat(middleware).filter(shared_utils_1.isFunction).map(item=>(0,exports2.mapToClass)(item,excludedRoutes,httpAdapter)).toArray()},"filterMiddleware");exports2.filterMiddleware=filterMiddleware;const mapToClass=__name((middleware,excludedRoutes,httpAdapter)=>isMiddlewareClass(middleware)?excludedRoutes.length<=0?middleware:assignToken(__name(class extends middleware{use(...params){const[req,_,next]=params;return isMiddlewareRouteExcluded(req,excludedRoutes,httpAdapter)?next():super.use(...params)}},"MiddlewareHost"),middleware.name):assignToken(class{constructor(){this.use=(...params)=>{const[req,_,next]=params;return isMiddlewareRouteExcluded(req,excludedRoutes,httpAdapter)?next():middleware(...params)}}}),"mapToClass");function isMiddlewareClass(middleware){var _a,_b;const middlewareStr=middleware.toString();if("class"===middlewareStr.substring(0,5))return!0;const middlewareArr=middlewareStr.split(" ");return"function"===middlewareArr[0]&&/[A-Z]/.test(null===(_a=middlewareArr[1])||void 0===_a?void 0:_a[0])&&(0,shared_utils_1.isFunction)(null===(_b=middleware.prototype)||void 0===_b?void 0:_b.use)}function assignToken(metatype,token=(0,uuid_1.v4)()){return Object.defineProperty(metatype,"name",{value:token}),metatype}function isMiddlewareRouteExcluded(req,excludedRoutes,httpAdapter){if(excludedRoutes.length<=0)return!1;const reqMethod=httpAdapter.getRequestMethod(req),originalUrl=httpAdapter.getRequestUrl(req),queryParamsIndex=originalUrl&&originalUrl.indexOf("?"),pathname=queryParamsIndex>=0?originalUrl.slice(0,queryParamsIndex):originalUrl;return(0,utils_1.isRouteExcluded)(excludedRoutes,pathname,common_1.RequestMethod[reqMethod])}exports2.mapToClass=mapToClass,__name(isMiddlewareClass,"isMiddlewareClass"),exports2.isMiddlewareClass=isMiddlewareClass,__name(assignToken,"assignToken"),exports2.assignToken=assignToken,__name(isMiddlewareRouteExcluded,"isMiddlewareRouteExcluded"),exports2.isMiddlewareRouteExcluded=isMiddlewareRouteExcluded},69841:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NestApplicationContext=void 0;const common_1=__webpack_require__2(28791),interfaces_1=__webpack_require__2(39270),shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),constants_1=__webpack_require__2(86618),invalid_class_scope_exception_1=__webpack_require__2(24743),unknown_element_exception_1=__webpack_require__2(35667),unknown_module_exception_1=__webpack_require__2(18793),context_id_factory_1=__webpack_require__2(93390),hooks_1=__webpack_require__2(48053),compiler_1=__webpack_require__2(41192),injector_1=__webpack_require__2(97127),instance_links_host_1=__webpack_require__2(22006);class NestApplicationContext{constructor(container,scope=new Array,contextModule=null){this.container=container,this.scope=scope,this.contextModule=contextModule,this.isInitialized=!1,this.injector=new injector_1.Injector,this.shouldFlushLogsOnOverride=!1,this.activeShutdownSignals=new Array,this.moduleCompiler=new compiler_1.ModuleCompiler}get instanceLinksHost(){return this._instanceLinksHost||(this._instanceLinksHost=new instance_links_host_1.InstanceLinksHost(this.container)),this._instanceLinksHost}selectContextModule(){const modules=this.container.getModules().values();this.contextModule=modules.next().value}select(moduleType){const modulesContainer=this.container.getModules(),contextModuleCtor=this.contextModule.metatype,scope=this.scope.concat(contextModuleCtor),moduleTokenFactory=this.container.getModuleTokenFactory(),{type,dynamicMetadata}=this.moduleCompiler.extractMetadata(moduleType),token=moduleTokenFactory.create(type,dynamicMetadata),selectedModule=modulesContainer.get(token);if(!selectedModule)throw new unknown_module_exception_1.UnknownModuleException;return new NestApplicationContext(this.container,scope,selectedModule)}get(typeOrToken,options={strict:!1}){return options&&options.strict?this.find(typeOrToken,this.contextModule):this.find(typeOrToken)}resolve(typeOrToken,contextId=(0,context_id_factory_1.createContextId)(),options={strict:!1}){return this.resolvePerContext(typeOrToken,this.contextModule,contextId,options)}registerRequestByContextId(request,contextId){this.container.registerRequestProvider(request,contextId)}init(){var _this=this;return _asyncToGenerator(function*(){return _this.isInitialized||(yield _this.callInitHook(),yield _this.callBootstrapHook(),_this.isInitialized=!0),_this})()}close(){var _this2=this;return _asyncToGenerator(function*(){yield _this2.callDestroyHook(),yield _this2.callBeforeShutdownHook(),yield _this2.dispose(),yield _this2.callShutdownHook(),_this2.unsubscribeFromProcessSignals()})()}useLogger(logger){common_1.Logger.overrideLogger(logger),this.shouldFlushLogsOnOverride&&this.flushLogs()}flushLogs(){common_1.Logger.flush()}flushLogsOnOverride(){this.shouldFlushLogsOnOverride=!0}enableShutdownHooks(signals=[]){return signals=(0,shared_utils_1.isEmpty)(signals)?Object.keys(common_1.ShutdownSignal).map(key=>common_1.ShutdownSignal[key]):Array.from(new Set(signals)),signals=(0,iterare_1.iterate)(signals).map(signal=>signal.toString().toUpperCase().trim()).filter(signal=>!this.activeShutdownSignals.includes(signal)).toArray(),this.listenToShutdownSignals(signals),this}dispose(){return _asyncToGenerator(function*(){return Promise.resolve()})()}listenToShutdownSignals(signals){var _this3=this;const cleanup=function(){var _ref=_asyncToGenerator(function*(signal){try{signals.forEach(sig=>process.removeListener(sig,cleanup)),yield _this3.callDestroyHook(),yield _this3.callBeforeShutdownHook(signal),yield _this3.dispose(),yield _this3.callShutdownHook(signal),process.kill(process.pid,signal)}catch(err){common_1.Logger.error(constants_1.MESSAGES.ERROR_DURING_SHUTDOWN,null==err?void 0:err.stack,NestApplicationContext.name),process.exit(1)}});return __name(function(_x){return _ref.apply(this,arguments)},"cleanup")}();this.shutdownCleanupRef=cleanup,signals.forEach(signal=>{this.activeShutdownSignals.push(signal),process.on(signal,cleanup)})}unsubscribeFromProcessSignals(){!this.shutdownCleanupRef||this.activeShutdownSignals.forEach(signal=>{process.removeListener(signal,this.shutdownCleanupRef)})}callInitHook(){var _this4=this;return _asyncToGenerator(function*(){const modulesSortedByDistance=_this4.getModulesSortedByDistance();for(const module2 of modulesSortedByDistance)yield(0,hooks_1.callModuleInitHook)(module2)})()}callDestroyHook(){var _this5=this;return _asyncToGenerator(function*(){const modulesSortedByDistance=_this5.getModulesSortedByDistance();for(const module2 of modulesSortedByDistance)yield(0,hooks_1.callModuleDestroyHook)(module2)})()}callBootstrapHook(){var _this6=this;return _asyncToGenerator(function*(){const modulesSortedByDistance=_this6.getModulesSortedByDistance();for(const module2 of modulesSortedByDistance)yield(0,hooks_1.callModuleBootstrapHook)(module2)})()}callShutdownHook(signal){var _this7=this;return _asyncToGenerator(function*(){const modulesSortedByDistance=_this7.getModulesSortedByDistance();for(const module2 of modulesSortedByDistance)yield(0,hooks_1.callAppShutdownHook)(module2,signal)})()}callBeforeShutdownHook(signal){var _this8=this;return _asyncToGenerator(function*(){const modulesSortedByDistance=_this8.getModulesSortedByDistance();for(const module2 of modulesSortedByDistance)yield(0,hooks_1.callBeforeAppShutdownHook)(module2,signal)})()}find(typeOrToken,contextModule){const moduleId=contextModule&&contextModule.id,{wrapperRef}=this.instanceLinksHost.get(typeOrToken,moduleId);if(wrapperRef.scope===interfaces_1.Scope.REQUEST||wrapperRef.scope===interfaces_1.Scope.TRANSIENT)throw new invalid_class_scope_exception_1.InvalidClassScopeException(typeOrToken);return wrapperRef.instance}resolvePerContext(typeOrToken,contextModule,contextId,options){var _this9=this;return _asyncToGenerator(function*(){const instanceLink=options&&options.strict?_this9.instanceLinksHost.get(typeOrToken,contextModule.id):_this9.instanceLinksHost.get(typeOrToken),{wrapperRef,collection}=instanceLink;if(wrapperRef.isDependencyTreeStatic()&&!wrapperRef.isTransient)return _this9.get(typeOrToken,options);const ctorHost=wrapperRef.instance||{constructor:typeOrToken},instance=yield _this9.injector.loadPerContext(ctorHost,wrapperRef.host,collection,contextId);if(!instance)throw new unknown_element_exception_1.UnknownElementException;return instance})()}getModulesSortedByDistance(){if(this._moduleRefsByDistance)return this._moduleRefsByDistance;const modulesContainer=this.container.getModules(),compareFn=__name((a,b2)=>b2.distance-a.distance,"compareFn");return this._moduleRefsByDistance=Array.from(modulesContainer.values()).sort(compareFn),this._moduleRefsByDistance}}__name(NestApplicationContext,"NestApplicationContext"),exports2.NestApplicationContext=NestApplicationContext},342:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NestApplication=void 0;const common_1=__webpack_require__2(28791),logger_service_1=__webpack_require__2(62366),load_package_util_1=__webpack_require__2(53015),shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),os_1=__webpack_require__2(22037),pathToRegexp=__webpack_require__2(87045),application_config_1=__webpack_require__2(64112),constants_1=__webpack_require__2(86618),optional_require_1=__webpack_require__2(9073),container_1=__webpack_require__2(15457),middleware_module_1=__webpack_require__2(45023),nest_application_context_1=__webpack_require__2(69841),routes_resolver_1=__webpack_require__2(29828),{SocketModule}=(0,optional_require_1.optionalRequire)("@nestjs/websockets/socket-module",()=>__webpack_require__2(83790)),{MicroservicesModule}=(0,optional_require_1.optionalRequire)("@nestjs/microservices/microservices-module",()=>__webpack_require__2(95865));class NestApplication extends nest_application_context_1.NestApplicationContext{constructor(container,httpAdapter,config,appOptions={}){super(container),this.httpAdapter=httpAdapter,this.config=config,this.appOptions=appOptions,this.logger=new logger_service_1.Logger(NestApplication.name,{timestamp:!0}),this.middlewareModule=new middleware_module_1.MiddlewareModule,this.middlewareContainer=new container_1.MiddlewareContainer(this.container),this.microservicesModule=MicroservicesModule&&new MicroservicesModule,this.socketModule=SocketModule&&new SocketModule,this.microservices=[],this.isListening=!1,this.selectContextModule(),this.registerHttpServer(),this.routesResolver=new routes_resolver_1.RoutesResolver(this.container,this.config,this.injector)}dispose(){var _this=this;return _asyncToGenerator(function*(){_this.socketModule&&(yield _this.socketModule.close()),_this.microservicesModule&&(yield _this.microservicesModule.close()),_this.httpAdapter&&(yield _this.httpAdapter.close()),yield Promise.all((0,iterare_1.iterate)(_this.microservices).map(function(){var _ref=_asyncToGenerator(function*(microservice){microservice.setIsTerminated(!0),yield microservice.close()});return function(_x){return _ref.apply(this,arguments)}}()))})()}getHttpAdapter(){return this.httpAdapter}registerHttpServer(){this.httpServer=this.createServer()}getUnderlyingHttpServer(){return this.httpAdapter.getHttpServer()}applyOptions(){return this.appOptions&&this.appOptions.cors?(0,shared_utils_1.isObject)(this.appOptions.cors)||(0,shared_utils_1.isFunction)(this.appOptions.cors)?this.enableCors(this.appOptions.cors):this.enableCors():void 0}createServer(){return this.httpAdapter.initHttpServer(this.appOptions),this.httpAdapter.getHttpServer()}registerModules(){var _this2=this;return _asyncToGenerator(function*(){_this2.registerWsModule(),_this2.microservicesModule&&(_this2.microservicesModule.register(_this2.container,_this2.config),_this2.microservicesModule.setupClients(_this2.container)),yield _this2.middlewareModule.register(_this2.middlewareContainer,_this2.container,_this2.config,_this2.injector,_this2.httpAdapter)})()}registerWsModule(){!this.socketModule||this.socketModule.register(this.container,this.config,this.httpServer)}init(){var _this3=this;return _asyncToGenerator(function*(){var _a;return _this3.applyOptions(),yield null===(_a=_this3.httpAdapter)||void 0===_a?void 0:_a.init(),_this3.appOptions&&!1!==_this3.appOptions.bodyParser&&_this3.registerParserMiddleware(),yield _this3.registerModules(),yield _this3.registerRouter(),yield _this3.callInitHook(),yield _this3.registerRouterHooks(),yield _this3.callBootstrapHook(),_this3.isInitialized=!0,_this3.logger.log(constants_1.MESSAGES.APPLICATION_READY),_this3})()}registerParserMiddleware(){this.httpAdapter.registerParserMiddleware()}registerRouter(){var _this4=this;return _asyncToGenerator(function*(){yield _this4.registerMiddleware(_this4.httpAdapter);const prefix=_this4.config.getGlobalPrefix(),basePath2=(0,shared_utils_1.addLeadingSlash)(prefix);_this4.routesResolver.resolve(_this4.httpAdapter,basePath2)})()}registerRouterHooks(){var _this5=this;return _asyncToGenerator(function*(){_this5.routesResolver.registerNotFoundHandler(),_this5.routesResolver.registerExceptionHandler()})()}connectMicroservice(microserviceOptions,hybridAppOptions={}){const{NestMicroservice}=(0,load_package_util_1.loadPackage)("@nestjs/microservices","NestFactory",()=>__webpack_require__2(31492)),{inheritAppConfig}=hybridAppOptions,applicationConfig=inheritAppConfig?this.config:new application_config_1.ApplicationConfig,instance=new NestMicroservice(this.container,microserviceOptions,applicationConfig);return instance.registerListeners(),instance.setIsInitialized(!0),instance.setIsInitHookCalled(!0),this.microservices.push(instance),instance}getMicroservices(){return this.microservices}getHttpServer(){return this.httpServer}startAllMicroservices(){var _this6=this;return _asyncToGenerator(function*(){return yield Promise.all(_this6.microservices.map(msvc=>msvc.listen())),_this6})()}startAllMicroservicesAsync(){return this.logger.warn('DEPRECATED! "startAllMicroservicesAsync" method is deprecated and will be removed in the next major release. Please, use "startAllMicroservices" instead.'),this.startAllMicroservices()}use(...args2){return this.httpAdapter.use(...args2),this}enableCors(options){this.httpAdapter.enableCors(options)}enableVersioning(options={type:common_1.VersioningType.URI}){return this.config.enableVersioning(options),this}listen(port,...args2){var _this7=this;return _asyncToGenerator(function*(){return!_this7.isInitialized&&(yield _this7.init()),new Promise((resolve,reject)=>{const errorHandler=__name(e=>{var _a;_this7.logger.error(null===(_a=null==e?void 0:e.toString)||void 0===_a?void 0:_a.call(e)),reject(e)},"errorHandler");_this7.httpServer.once("error",errorHandler);const isCallbackInOriginalArgs=(0,shared_utils_1.isFunction)(args2[args2.length-1]),listenFnArgs=isCallbackInOriginalArgs?args2.slice(0,args2.length-1):args2;_this7.httpAdapter.listen(port,...listenFnArgs,(...originalCallbackArgs)=>{var _a,_b;if((null===(_b=null===(_a=_this7.appOptions)||void 0===_a?void 0:_a.autoFlushLogs)||void 0===_b||_b)&&_this7.flushLogs(),originalCallbackArgs[0]instanceof Error)return reject(originalCallbackArgs[0]);_this7.httpServer.address()&&(_this7.httpServer.removeListener("error",errorHandler),_this7.isListening=!0,resolve(_this7.httpServer)),isCallbackInOriginalArgs&&args2[args2.length-1](...originalCallbackArgs)})})})()}listenAsync(port,...args2){return this.logger.warn('DEPRECATED! "listenAsync" method is deprecated and will be removed in the next major release. Please, use "listen" instead.'),this.listen(port,...args2)}getUrl(){var _this8=this;return _asyncToGenerator(function*(){return new Promise((resolve,reject)=>{_this8.isListening||(_this8.logger.error(constants_1.MESSAGES.CALL_LISTEN_FIRST),reject(constants_1.MESSAGES.CALL_LISTEN_FIRST));const address=_this8.httpServer.address();resolve(_this8.formatAddress(address))})})()}formatAddress(address){if((0,shared_utils_1.isString)(address)){if("win32"===(0,os_1.platform)())return address;const basePath2=encodeURIComponent(address);return`${this.getProtocol()}+unix://${basePath2}`}let host=this.host();return address&&"IPv6"===address.family?host="::"===host?"[::1]":`[${host}]`:"0.0.0.0"===host&&(host="127.0.0.1"),`${this.getProtocol()}://${host}:${address.port}`}setGlobalPrefix(prefix,options){if(this.config.setGlobalPrefix(prefix),options){const exclude=null==options?void 0:options.exclude.map(route=>(0,shared_utils_1.isString)(route)?{requestMethod:common_1.RequestMethod.ALL,pathRegex:pathToRegexp((0,shared_utils_1.addLeadingSlash)(route))}:{requestMethod:route.method,pathRegex:pathToRegexp((0,shared_utils_1.addLeadingSlash)(route.path))});this.config.setGlobalPrefixOptions(Object.assign(Object.assign({},options),{exclude}))}return this}useWebSocketAdapter(adapter){return this.config.setIoAdapter(adapter),this}useGlobalFilters(...filters){return this.config.useGlobalFilters(...filters),this}useGlobalPipes(...pipes){return this.config.useGlobalPipes(...pipes),this}useGlobalInterceptors(...interceptors){return this.config.useGlobalInterceptors(...interceptors),this}useGlobalGuards(...guards){return this.config.useGlobalGuards(...guards),this}useStaticAssets(pathOrOptions,options){return this.httpAdapter.useStaticAssets&&this.httpAdapter.useStaticAssets(pathOrOptions,options),this}setBaseViewsDir(path){return this.httpAdapter.setBaseViewsDir&&this.httpAdapter.setBaseViewsDir(path),this}setViewEngine(engineOrOptions){return this.httpAdapter.setViewEngine&&this.httpAdapter.setViewEngine(engineOrOptions),this}host(){const address=this.httpServer.address();if(!(0,shared_utils_1.isString)(address))return address&&address.address}getProtocol(){return this.appOptions&&this.appOptions.httpsOptions?"https":"http"}registerMiddleware(instance){var _this9=this;return _asyncToGenerator(function*(){yield _this9.middlewareModule.registerMiddleware(_this9.middlewareContainer,instance)})()}}__name(NestApplication,"NestApplication"),exports2.NestApplication=NestApplication},83093:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NestFactory=exports2.NestFactoryStatic=void 0;const logger_service_1=__webpack_require__2(62366),load_package_util_1=__webpack_require__2(53015),shared_utils_1=__webpack_require__2(73819),application_config_1=__webpack_require__2(64112),constants_1=__webpack_require__2(86618),exceptions_zone_1=__webpack_require__2(65315),load_adapter_1=__webpack_require__2(74438),rethrow_1=__webpack_require__2(66225),container_1=__webpack_require__2(39055),instance_loader_1=__webpack_require__2(51778),metadata_scanner_1=__webpack_require__2(68499),nest_application_1=__webpack_require__2(342),nest_application_context_1=__webpack_require__2(69841),scanner_1=__webpack_require__2(71386);class NestFactoryStatic{constructor(){this.logger=new logger_service_1.Logger("NestFactory",{timestamp:!0}),this.abortOnError=!0,this.autoFlushLogs=!1}create(module2,serverOrOptions,options){var _this=this;return _asyncToGenerator(function*(){const[httpServer,appOptions]=_this.isHttpServer(serverOrOptions)?[serverOrOptions,options]:[_this.createHttpAdapter(),serverOrOptions],applicationConfig=new application_config_1.ApplicationConfig,container=new container_1.NestContainer(applicationConfig);_this.setAbortOnError(serverOrOptions,options),_this.registerLoggerConfiguration(appOptions),yield _this.initialize(module2,container,applicationConfig,httpServer);const instance=new nest_application_1.NestApplication(container,httpServer,applicationConfig,appOptions),target=_this.createNestInstance(instance);return _this.createAdapterProxy(target,httpServer)})()}createMicroservice(module2,options){var _this2=this;return _asyncToGenerator(function*(){const{NestMicroservice}=(0,load_package_util_1.loadPackage)("@nestjs/microservices","NestFactory",()=>__webpack_require__2(31492)),applicationConfig=new application_config_1.ApplicationConfig,container=new container_1.NestContainer(applicationConfig);return _this2.setAbortOnError(options),_this2.registerLoggerConfiguration(options),yield _this2.initialize(module2,container,applicationConfig),_this2.createNestInstance(new NestMicroservice(container,options,applicationConfig))})()}createApplicationContext(module2,options){var _this3=this;return _asyncToGenerator(function*(){const container=new container_1.NestContainer;_this3.setAbortOnError(options),_this3.registerLoggerConfiguration(options),yield _this3.initialize(module2,container);const root=container.getModules().values().next().value,context=_this3.createNestInstance(new nest_application_context_1.NestApplicationContext(container,[],root));return _this3.autoFlushLogs&&context.flushLogsOnOverride(),context.init()})()}createNestInstance(instance){return this.createProxy(instance)}initialize(module2,container,config=new application_config_1.ApplicationConfig,httpServer=null){var _this4=this;return _asyncToGenerator(function*(){const instanceLoader=new instance_loader_1.InstanceLoader(container),metadataScanner=new metadata_scanner_1.MetadataScanner,dependenciesScanner=new scanner_1.DependenciesScanner(container,metadataScanner,config);container.setHttpAdapter(httpServer);const teardown=!1===_this4.abortOnError?rethrow_1.rethrow:void 0;yield null==httpServer?void 0:httpServer.init();try{_this4.logger.log(constants_1.MESSAGES.APPLICATION_START),yield exceptions_zone_1.ExceptionsZone.asyncRun(_asyncToGenerator(function*(){yield dependenciesScanner.scan(module2),yield instanceLoader.createInstancesOfDependencies(),dependenciesScanner.applyApplicationProviders()}),teardown,_this4.autoFlushLogs)}catch(e){_this4.handleInitializationError(e)}})()}handleInitializationError(err){this.abortOnError&&process.abort(),(0,rethrow_1.rethrow)(err)}createProxy(target){const proxy=this.createExceptionProxy();return new Proxy(target,{get:proxy,set:proxy})}createExceptionProxy(){return(receiver,prop)=>{if(prop in receiver)return(0,shared_utils_1.isFunction)(receiver[prop])?this.createExceptionZone(receiver,prop):receiver[prop]}}createExceptionZone(receiver,prop){const teardown=!1===this.abortOnError?rethrow_1.rethrow:void 0;return(...args2)=>{let result;return exceptions_zone_1.ExceptionsZone.run(()=>{result=receiver[prop](...args2)},teardown),result}}registerLoggerConfiguration(options){if(!options)return;const{logger,bufferLogs,autoFlushLogs}=options;!0!==logger&&!(0,shared_utils_1.isNil)(logger)&&logger_service_1.Logger.overrideLogger(logger),bufferLogs&&logger_service_1.Logger.attachBuffer(),this.autoFlushLogs=null==autoFlushLogs||autoFlushLogs}createHttpAdapter(httpServer){const{ExpressAdapter}=(0,load_adapter_1.loadAdapter)("@nestjs/platform-express","HTTP",()=>__webpack_require__2(22776));return new ExpressAdapter(httpServer)}isHttpServer(serverOrOptions){return!(!serverOrOptions||!serverOrOptions.patch)}setAbortOnError(serverOrOptions,options){this.abortOnError=this.isHttpServer(serverOrOptions)?!(options&&!1===options.abortOnError):!(serverOrOptions&&!1===serverOrOptions.abortOnError)}createAdapterProxy(app,adapter){const proxy=new Proxy(app,{get:(receiver,prop)=>{const mapToProxy=__name(result=>result instanceof Promise?result.then(mapToProxy):result instanceof nest_application_1.NestApplication?proxy:result,"mapToProxy");return!(prop in receiver)&&prop in adapter?(...args2)=>{const result=this.createExceptionZone(adapter,prop)(...args2);return mapToProxy(result)}:(0,shared_utils_1.isFunction)(receiver[prop])?(...args2)=>{const result=receiver[prop](...args2);return mapToProxy(result)}:receiver[prop]}});return proxy}}__name(NestFactoryStatic,"NestFactoryStatic"),exports2.NestFactoryStatic=NestFactoryStatic,exports2.NestFactory=new NestFactoryStatic},87045:module2=>{module2.exports=pathToRegexp,module2.exports.match=match,module2.exports.regexpToFunction=regexpToFunction,module2.exports.parse=parse,module2.exports.compile=compile,module2.exports.tokensToFunction=tokensToFunction,module2.exports.tokensToRegExp=tokensToRegExp;var PATH_REGEXP=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function parse(str,options){for(var res,tokens=[],key=0,index=0,path="",defaultDelimiter=options&&options.delimiter||"/",whitelist=options&&options.whitelist||void 0,pathEscaped=!1;null!==(res=PATH_REGEXP.exec(str));){var m=res[0],escaped=res[1],offset=res.index;if(path+=str.slice(index,offset),index=offset+m.length,escaped)path+=escaped[1],pathEscaped=!0;else{var prev="",name=res[2],capture=res[3],group=res[4],modifier=res[5];if(!pathEscaped&&path.length){var k=path.length-1,c=path[k];(!whitelist||whitelist.indexOf(c)>-1)&&(prev=c,path=path.slice(0,k))}path&&(tokens.push(path),path="",pathEscaped=!1);var repeat="+"===modifier||"*"===modifier,optional="?"===modifier||"*"===modifier,pattern=capture||group,delimiter=prev||defaultDelimiter;tokens.push({name:name||key++,prefix:prev,delimiter,optional,repeat,pattern:pattern?escapeGroup(pattern):"[^"+escapeString(delimiter===defaultDelimiter?delimiter:delimiter+defaultDelimiter)+"]+?"})}}return(path||index{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ParamsTokenFactory=void 0;const route_paramtypes_enum_1=__webpack_require__2(5114);class ParamsTokenFactory{exchangeEnumForString(type){switch(type){case route_paramtypes_enum_1.RouteParamtypes.BODY:return"body";case route_paramtypes_enum_1.RouteParamtypes.PARAM:return"param";case route_paramtypes_enum_1.RouteParamtypes.QUERY:return"query";default:return"custom"}}}__name(ParamsTokenFactory,"ParamsTokenFactory"),exports2.ParamsTokenFactory=ParamsTokenFactory},77078:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.PipesConsumer=void 0;const params_token_factory_1=__webpack_require__2(27971);class PipesConsumer{constructor(){this.paramsTokenFactory=new params_token_factory_1.ParamsTokenFactory}apply(value,{metatype,type,data},pipes){var _this=this;return _asyncToGenerator(function*(){const token=_this.paramsTokenFactory.exchangeEnumForString(type);return _this.applyPipes(value,{metatype,type:token,data},pipes)})()}applyPipes(value,{metatype,type,data},transforms){return _asyncToGenerator(function*(){return transforms.reduce(function(){var _ref=_asyncToGenerator(function*(deferredValue,pipe){const val=yield deferredValue;return pipe.transform(val,{metatype,type,data})});return function(_x,_x2){return _ref.apply(this,arguments)}}(),Promise.resolve(value))})()}}__name(PipesConsumer,"PipesConsumer"),exports2.PipesConsumer=PipesConsumer},69007:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.PipesContextCreator=void 0;const constants_1=__webpack_require__2(75441),shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),context_creator_1=__webpack_require__2(86632),constants_2=__webpack_require__2(74872);class PipesContextCreator extends context_creator_1.ContextCreator{constructor(container,config){super(),this.container=container,this.config=config}create(instance,callback,moduleKey,contextId=constants_2.STATIC_CONTEXT,inquirerId){return this.moduleContext=moduleKey,this.createContext(instance,callback,constants_1.PIPES_METADATA,contextId,inquirerId)}createConcreteContext(metadata2,contextId=constants_2.STATIC_CONTEXT,inquirerId){return(0,shared_utils_1.isEmpty)(metadata2)?[]:(0,iterare_1.iterate)(metadata2).filter(pipe=>pipe&&(pipe.name||pipe.transform)).map(pipe=>this.getPipeInstance(pipe,contextId,inquirerId)).filter(pipe=>pipe&&pipe.transform&&(0,shared_utils_1.isFunction)(pipe.transform)).toArray()}getPipeInstance(pipe,contextId=constants_2.STATIC_CONTEXT,inquirerId){if(pipe.transform)return pipe;const instanceWrapper=this.getInstanceByMetatype(pipe);if(!instanceWrapper)return null;const instanceHost=instanceWrapper.getInstanceByContextId(contextId,inquirerId);return instanceHost&&instanceHost.instance}getInstanceByMetatype(metatype){if(!this.moduleContext)return;const moduleRef=this.container.getModules().get(this.moduleContext);return moduleRef?moduleRef.injectables.get(metatype):void 0}getGlobalMetadata(contextId=constants_2.STATIC_CONTEXT,inquirerId){if(!this.config)return[];const globalPipes=this.config.getGlobalPipes();if(contextId===constants_2.STATIC_CONTEXT&&!inquirerId)return globalPipes;const scopedPipeWrappers=this.config.getGlobalRequestPipes(),scopedPipes=(0,iterare_1.iterate)(scopedPipeWrappers).map(wrapper=>wrapper.getInstanceByContextId(contextId,inquirerId)).filter(host=>!!host).map(host=>host.instance).toArray();return globalPipes.concat(scopedPipes)}setModuleContext(context){this.moduleContext=context}}__name(PipesContextCreator,"PipesContextCreator"),exports2.PipesContextCreator=PipesContextCreator},62211:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RouterModule=void 0;const tslib_1=__webpack_require__2(78099);tslib_1.__exportStar(__webpack_require__2(6460),exports2),tslib_1.__exportStar(__webpack_require__2(14415),exports2);var router_module_1=__webpack_require__2(94852);Object.defineProperty(exports2,"RouterModule",{enumerable:!0,get:function(){return router_module_1.RouterModule}})},6460:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(78099).__exportStar(__webpack_require__2(4164),exports2)},4164:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},14415:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.REQUEST=void 0;var request_constants_1=__webpack_require__2(53936);Object.defineProperty(exports2,"REQUEST",{enumerable:!0,get:function(){return request_constants_1.REQUEST}})},53936:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.REQUEST_CONTEXT_ID=exports2.REQUEST=void 0,exports2.REQUEST="REQUEST",exports2.REQUEST_CONTEXT_ID=Symbol("REQUEST_CONTEXT_ID")},7644:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.requestProvider=void 0;const common_1=__webpack_require__2(28791),request_constants_1=__webpack_require__2(53936),noop=__name(()=>{},"noop");exports2.requestProvider={provide:request_constants_1.REQUEST,scope:common_1.Scope.REQUEST,useFactory:noop}},85170:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RouteParamsFactory=void 0;const route_paramtypes_enum_1=__webpack_require__2(5114);class RouteParamsFactory{exchangeKeyForValue(key,data,{req,res,next}){switch(key){case route_paramtypes_enum_1.RouteParamtypes.NEXT:return next;case route_paramtypes_enum_1.RouteParamtypes.REQUEST:return req;case route_paramtypes_enum_1.RouteParamtypes.RESPONSE:return res;case route_paramtypes_enum_1.RouteParamtypes.BODY:return data&&req.body?req.body[data]:req.body;case route_paramtypes_enum_1.RouteParamtypes.PARAM:return data?req.params[data]:req.params;case route_paramtypes_enum_1.RouteParamtypes.HOST:const hosts=req.hosts||{};return data?hosts[data]:hosts;case route_paramtypes_enum_1.RouteParamtypes.QUERY:return data?req.query[data]:req.query;case route_paramtypes_enum_1.RouteParamtypes.HEADERS:return data?req.headers[data.toLowerCase()]:req.headers;case route_paramtypes_enum_1.RouteParamtypes.SESSION:return req.session;case route_paramtypes_enum_1.RouteParamtypes.FILE:return req[data||"file"];case route_paramtypes_enum_1.RouteParamtypes.FILES:return req.files;case route_paramtypes_enum_1.RouteParamtypes.IP:return req.ip;default:return null}}}__name(RouteParamsFactory,"RouteParamsFactory"),exports2.RouteParamsFactory=RouteParamsFactory},5050:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RoutePathFactory=void 0;const common_1=__webpack_require__2(28791),shared_utils_1=__webpack_require__2(73819),utils_1=__webpack_require__2(29367);class RoutePathFactory{constructor(applicationConfig){this.applicationConfig=applicationConfig}create(metadata2,requestMethod){var _a;let paths=[""];const versionOrVersions=this.getVersion(metadata2);if(versionOrVersions&&(null===(_a=metadata2.versioningOptions)||void 0===_a?void 0:_a.type)===common_1.VersioningType.URI){const versionPrefix=this.getVersionPrefix(metadata2.versioningOptions);Array.isArray(versionOrVersions)?paths=(0,common_1.flatten)(paths.map(path=>versionOrVersions.map(version=>version===common_1.VERSION_NEUTRAL?path:`${path}/${versionPrefix}${version}`))):versionOrVersions!==common_1.VERSION_NEUTRAL&&(paths=paths.map(path=>`${path}/${versionPrefix}${versionOrVersions}`))}return paths=this.appendToAllIfDefined(paths,metadata2.modulePath),paths=this.appendToAllIfDefined(paths,metadata2.ctrlPath),paths=this.appendToAllIfDefined(paths,metadata2.methodPath),metadata2.globalPrefix&&(paths=paths.map(path=>this.isExcludedFromGlobalPrefix(path,requestMethod)?path:(0,shared_utils_1.stripEndSlash)(metadata2.globalPrefix||"")+path)),paths.map(path=>(0,shared_utils_1.addLeadingSlash)(path||"/")).map(path=>"/"!==path?(0,shared_utils_1.stripEndSlash)(path):path)}getVersion(metadata2){return metadata2.methodVersion||metadata2.controllerVersion}getVersionPrefix(versioningOptions){if(versioningOptions.type===common_1.VersioningType.URI){if(!1===versioningOptions.prefix)return"";if(void 0!==versioningOptions.prefix)return versioningOptions.prefix}return"v"}appendToAllIfDefined(paths,fragmentToAppend){if(!fragmentToAppend)return paths;const concatPaths=__name((a,b2)=>(0,shared_utils_1.stripEndSlash)(a)+(0,shared_utils_1.addLeadingSlash)(b2),"concatPaths");if(Array.isArray(fragmentToAppend)){const paths2dArray=paths.map(path=>fragmentToAppend.map(fragment=>concatPaths(path,fragment)));return(0,common_1.flatten)(paths2dArray)}return paths.map(path=>concatPaths(path,fragmentToAppend))}isExcludedFromGlobalPrefix(path,requestMethod){if((0,shared_utils_1.isUndefined)(requestMethod))return!1;const excludedRoutes=this.applicationConfig.getGlobalPrefixOptions().exclude;return Array.isArray(excludedRoutes)&&(0,utils_1.isRouteExcluded)(excludedRoutes,path,requestMethod)}}__name(RoutePathFactory,"RoutePathFactory"),exports2.RoutePathFactory=RoutePathFactory},78074:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RouterExceptionFilters=void 0;const constants_1=__webpack_require__2(75441),shared_utils_1=__webpack_require__2(73819),base_exception_filter_context_1=__webpack_require__2(67444),exceptions_handler_1=__webpack_require__2(28383),constants_2=__webpack_require__2(74872),iterare_1=__webpack_require__2(57698);class RouterExceptionFilters extends base_exception_filter_context_1.BaseExceptionFilterContext{constructor(container,config,applicationRef){super(container),this.config=config,this.applicationRef=applicationRef}create(instance,callback,moduleKey,contextId=constants_2.STATIC_CONTEXT,inquirerId){this.moduleContext=moduleKey;const exceptionHandler=new exceptions_handler_1.ExceptionsHandler(this.applicationRef),filters=this.createContext(instance,callback,constants_1.EXCEPTION_FILTERS_METADATA,contextId,inquirerId);return(0,shared_utils_1.isEmpty)(filters)||exceptionHandler.setCustomFilters(filters.reverse()),exceptionHandler}getGlobalMetadata(contextId=constants_2.STATIC_CONTEXT,inquirerId){const globalFilters=this.config.getGlobalFilters();if(contextId===constants_2.STATIC_CONTEXT&&!inquirerId)return globalFilters;const scopedFilterWrappers=this.config.getGlobalRequestFilters(),scopedFilters=(0,iterare_1.iterate)(scopedFilterWrappers).map(wrapper=>wrapper.getInstanceByContextId(contextId,inquirerId)).filter(host=>!!host).map(host=>host.instance).toArray();return globalFilters.concat(scopedFilters)}}__name(RouterExceptionFilters,"RouterExceptionFilters"),exports2.RouterExceptionFilters=RouterExceptionFilters},50492:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RouterExecutionContext=void 0;const common_1=__webpack_require__2(28791),constants_1=__webpack_require__2(75441),route_paramtypes_enum_1=__webpack_require__2(5114),shared_utils_1=__webpack_require__2(73819),constants_2=__webpack_require__2(30315),context_utils_1=__webpack_require__2(46405),handler_metadata_storage_1=__webpack_require__2(62431),constants_3=__webpack_require__2(74872),router_response_controller_1=__webpack_require__2(16831);class RouterExecutionContext{constructor(paramsFactory,pipesContextCreator,pipesConsumer,guardsContextCreator,guardsConsumer,interceptorsContextCreator,interceptorsConsumer,applicationRef){this.paramsFactory=paramsFactory,this.pipesContextCreator=pipesContextCreator,this.pipesConsumer=pipesConsumer,this.guardsContextCreator=guardsContextCreator,this.guardsConsumer=guardsConsumer,this.interceptorsContextCreator=interceptorsContextCreator,this.interceptorsConsumer=interceptorsConsumer,this.applicationRef=applicationRef,this.handlerMetadataStorage=new handler_metadata_storage_1.HandlerMetadataStorage,this.contextUtils=new context_utils_1.ContextUtils,this.responseController=new router_response_controller_1.RouterResponseController(applicationRef)}create(instance,callback,methodName,moduleKey,requestMethod,contextId=constants_3.STATIC_CONTEXT,inquirerId){var _this=this;const{argsLength,fnHandleResponse,paramtypes,getParamsMetadata,httpStatusCode,responseHeaders,hasCustomHeaders}=this.getMetadata(instance,callback,methodName,moduleKey,requestMethod,"http"),paramsOptions=this.contextUtils.mergeParamsMetatypes(getParamsMetadata(moduleKey,contextId,inquirerId),paramtypes),pipes=this.pipesContextCreator.create(instance,callback,moduleKey,contextId,inquirerId),guards=this.guardsContextCreator.create(instance,callback,moduleKey,contextId,inquirerId),interceptors=this.interceptorsContextCreator.create(instance,callback,moduleKey,contextId,inquirerId),fnCanActivate=this.createGuardsFn(guards,instance,callback,"http"),fnApplyPipes=this.createPipesFn(pipes,paramsOptions),handler=__name((args2,req,res,next)=>_asyncToGenerator(function*(){return fnApplyPipes&&(yield fnApplyPipes(args2,req,res,next)),callback.apply(instance,args2)}),"handler");return function(){var _ref2=_asyncToGenerator(function*(req,res,next){const args2=_this.contextUtils.createNullArray(argsLength);fnCanActivate&&(yield fnCanActivate([req,res,next])),_this.responseController.setStatus(res,httpStatusCode),hasCustomHeaders&&_this.responseController.setHeaders(res,responseHeaders);const result=yield _this.interceptorsConsumer.intercept(interceptors,[req,res,next],instance,callback,handler(args2,req,res,next),"http");yield fnHandleResponse(result,res,req)});return function(_x,_x2,_x3){return _ref2.apply(this,arguments)}}()}getMetadata(instance,callback,methodName,moduleKey,requestMethod,contextType){const cacheMetadata=this.handlerMetadataStorage.get(instance,methodName);if(cacheMetadata)return cacheMetadata;const metadata2=this.contextUtils.reflectCallbackMetadata(instance,methodName,constants_1.ROUTE_ARGS_METADATA)||{},keys=Object.keys(metadata2),argsLength=this.contextUtils.getArgumentsLength(keys,metadata2),paramtypes=this.contextUtils.reflectCallbackParamtypes(instance,methodName),contextFactory=this.contextUtils.getContextFactory(contextType,instance,callback),getParamsMetadata=__name((moduleKey2,contextId=constants_3.STATIC_CONTEXT,inquirerId)=>this.exchangeKeysForValues(keys,metadata2,moduleKey2,contextId,inquirerId,contextFactory),"getParamsMetadata"),paramsMetadata=getParamsMetadata(moduleKey),isResponseHandled=this.isResponseHandled(instance,methodName,paramsMetadata),httpRedirectResponse=this.reflectRedirect(callback),fnHandleResponse=this.createHandleResponseFn(callback,isResponseHandled,httpRedirectResponse),httpStatusCode=this.reflectHttpStatusCode(callback)||this.responseController.getStatusByMethod(requestMethod),responseHeaders=this.reflectResponseHeaders(callback),handlerMetadata={argsLength,fnHandleResponse,paramtypes,getParamsMetadata,httpStatusCode,hasCustomHeaders:!(0,shared_utils_1.isEmpty)(responseHeaders),responseHeaders};return this.handlerMetadataStorage.set(instance,methodName,handlerMetadata),handlerMetadata}reflectRedirect(callback){return Reflect.getMetadata(constants_1.REDIRECT_METADATA,callback)}reflectHttpStatusCode(callback){return Reflect.getMetadata(constants_1.HTTP_CODE_METADATA,callback)}reflectRenderTemplate(callback){return Reflect.getMetadata(constants_1.RENDER_METADATA,callback)}reflectResponseHeaders(callback){return Reflect.getMetadata(constants_1.HEADERS_METADATA,callback)||[]}reflectSse(callback){return Reflect.getMetadata(constants_1.SSE_METADATA,callback)}exchangeKeysForValues(keys,metadata2,moduleContext,contextId=constants_3.STATIC_CONTEXT,inquirerId,contextFactory){return this.pipesContextCreator.setModuleContext(moduleContext),keys.map(key=>{const{index,data,pipes:pipesCollection}=metadata2[key],pipes=this.pipesContextCreator.createConcreteContext(pipesCollection,contextId,inquirerId),type=this.contextUtils.mapParamType(key);if(key.includes(constants_1.CUSTOM_ROUTE_AGRS_METADATA)){const{factory}=metadata2[key];return{index,extractValue:this.contextUtils.getCustomFactory(factory,data,contextFactory),type,data,pipes}}const numericType=Number(type);return{index,extractValue:__name((req,res,next)=>this.paramsFactory.exchangeKeyForValue(numericType,data,{req,res,next}),"extractValue"),type:numericType,data,pipes}})}getParamValue(value,{metatype,type,data},pipes){var _this2=this;return _asyncToGenerator(function*(){return(0,shared_utils_1.isEmpty)(pipes)?value:_this2.pipesConsumer.apply(value,{metatype,type,data},pipes)})()}isPipeable(type){return type===route_paramtypes_enum_1.RouteParamtypes.BODY||type===route_paramtypes_enum_1.RouteParamtypes.QUERY||type===route_paramtypes_enum_1.RouteParamtypes.PARAM||type===route_paramtypes_enum_1.RouteParamtypes.FILE||type===route_paramtypes_enum_1.RouteParamtypes.FILES||(0,shared_utils_1.isString)(type)}createGuardsFn(guards,instance,callback,contextType){var _this3=this;const canActivateFn=function(){var _ref3=_asyncToGenerator(function*(args2){if(!(yield _this3.guardsConsumer.tryActivate(guards,args2,instance,callback,contextType)))throw new common_1.ForbiddenException(constants_2.FORBIDDEN_MESSAGE)});return __name(function(_x4){return _ref3.apply(this,arguments)},"canActivateFn")}();return guards.length?canActivateFn:null}createPipesFn(pipes,paramsOptions){var _this4=this;const pipesFn=function(){var _ref4=_asyncToGenerator(function*(args2,req,res,next){const resolveParamValue=function(){var _ref5=_asyncToGenerator(function*(param){const{index,extractValue,type,data,metatype,pipes:paramPipes}=param,value=extractValue(req,res,next);args2[index]=_this4.isPipeable(type)?yield _this4.getParamValue(value,{metatype,type,data},pipes.concat(paramPipes)):value});return __name(function(_x9){return _ref5.apply(this,arguments)},"resolveParamValue")}();yield Promise.all(paramsOptions.map(resolveParamValue))});return __name(function(_x5,_x6,_x7,_x8){return _ref4.apply(this,arguments)},"pipesFn")}();return paramsOptions.length?pipesFn:null}createHandleResponseFn(callback,isResponseHandled,redirectResponse,httpStatusCode){var _this5=this;const renderTemplate=this.reflectRenderTemplate(callback);return renderTemplate?function(){var _ref6=_asyncToGenerator(function*(result,res){return yield _this5.responseController.render(result,res,renderTemplate)});return function(_x10,_x11){return _ref6.apply(this,arguments)}}():redirectResponse&&(0,shared_utils_1.isString)(redirectResponse.url)?function(){var _ref7=_asyncToGenerator(function*(result,res){yield _this5.responseController.redirect(result,res,redirectResponse)});return function(_x12,_x13){return _ref7.apply(this,arguments)}}():this.reflectSse(callback)?(result,res,req)=>{var _a;this.responseController.sse(result,res.raw||res,req.raw||req,{additionalHeaders:null===(_a=res.getHeaders)||void 0===_a?void 0:_a.call(res)})}:function(){var _ref8=_asyncToGenerator(function*(result,res){result=yield _this5.responseController.transformToResult(result),!isResponseHandled&&(yield _this5.responseController.apply(result,res,httpStatusCode))});return function(_x14,_x15){return _ref8.apply(this,arguments)}}()}isResponseHandled(instance,methodName,paramsMetadata){const hasResponseOrNextDecorator=paramsMetadata.some(({type})=>type===route_paramtypes_enum_1.RouteParamtypes.RESPONSE||type===route_paramtypes_enum_1.RouteParamtypes.NEXT),isPassthroughEnabled=this.contextUtils.reflectPassthrough(instance,methodName);return hasResponseOrNextDecorator&&!isPassthroughEnabled}}__name(RouterExecutionContext,"RouterExecutionContext"),exports2.RouterExecutionContext=RouterExecutionContext},79866:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RouterExplorer=void 0;const constants_1=__webpack_require__2(75441),version_type_enum_1=__webpack_require__2(38372),exceptions_1=__webpack_require__2(70547),version_options_interface_1=__webpack_require__2(70754),logger_service_1=__webpack_require__2(62366),shared_utils_1=__webpack_require__2(73819),pathToRegexp=__webpack_require__2(87045),unknown_request_mapping_exception_1=__webpack_require__2(40882),guards_consumer_1=__webpack_require__2(8506),guards_context_creator_1=__webpack_require__2(41665),context_id_factory_1=__webpack_require__2(93390),execution_context_host_1=__webpack_require__2(78170),messages_1=__webpack_require__2(44369),router_method_factory_1=__webpack_require__2(70593),constants_2=__webpack_require__2(74872),interceptors_consumer_1=__webpack_require__2(21538),interceptors_context_creator_1=__webpack_require__2(20244),pipes_consumer_1=__webpack_require__2(77078),pipes_context_creator_1=__webpack_require__2(69007),request_constants_1=__webpack_require__2(53936),route_params_factory_1=__webpack_require__2(85170),router_execution_context_1=__webpack_require__2(50492);class RouterExplorer{constructor(metadataScanner,container,injector,routerProxy,exceptionsFilter,config,routePathFactory){this.metadataScanner=metadataScanner,this.container=container,this.injector=injector,this.routerProxy=routerProxy,this.exceptionsFilter=exceptionsFilter,this.config=config,this.routePathFactory=routePathFactory,this.routerMethodFactory=new router_method_factory_1.RouterMethodFactory,this.logger=new logger_service_1.Logger(RouterExplorer.name,{timestamp:!0}),this.exceptionFiltersCache=new WeakMap;const routeParamsFactory=new route_params_factory_1.RouteParamsFactory,pipesContextCreator=new pipes_context_creator_1.PipesContextCreator(container,config),pipesConsumer=new pipes_consumer_1.PipesConsumer,guardsContextCreator=new guards_context_creator_1.GuardsContextCreator(container,config),guardsConsumer=new guards_consumer_1.GuardsConsumer,interceptorsContextCreator=new interceptors_context_creator_1.InterceptorsContextCreator(container,config),interceptorsConsumer=new interceptors_consumer_1.InterceptorsConsumer;this.executionContextCreator=new router_execution_context_1.RouterExecutionContext(routeParamsFactory,pipesContextCreator,pipesConsumer,guardsContextCreator,guardsConsumer,interceptorsContextCreator,interceptorsConsumer,container.getHttpAdapterRef())}explore(instanceWrapper,moduleKey,applicationRef,host,routePathMetadata){const{instance}=instanceWrapper,routerPaths=this.scanForPaths(instance);this.applyPathsToRouterProxy(applicationRef,routerPaths,instanceWrapper,moduleKey,routePathMetadata,host)}extractRouterPath(metatype){const path=Reflect.getMetadata(constants_1.PATH_METADATA,metatype);if((0,shared_utils_1.isUndefined)(path))throw new unknown_request_mapping_exception_1.UnknownRequestMappingException;return Array.isArray(path)?path.map(p=>(0,shared_utils_1.addLeadingSlash)(p)):[(0,shared_utils_1.addLeadingSlash)(path)]}scanForPaths(instance,prototype){const instancePrototype=(0,shared_utils_1.isUndefined)(prototype)?Object.getPrototypeOf(instance):prototype;return this.metadataScanner.scanFromPrototype(instance,instancePrototype,method=>this.exploreMethodMetadata(instance,instancePrototype,method))}exploreMethodMetadata(instance,prototype,methodName){const instanceCallback=instance[methodName],prototypeCallback=prototype[methodName],routePath=Reflect.getMetadata(constants_1.PATH_METADATA,prototypeCallback);if((0,shared_utils_1.isUndefined)(routePath))return null;const requestMethod=Reflect.getMetadata(constants_1.METHOD_METADATA,prototypeCallback),version=Reflect.getMetadata(constants_1.VERSION_METADATA,prototypeCallback);return{path:(0,shared_utils_1.isString)(routePath)?[(0,shared_utils_1.addLeadingSlash)(routePath)]:routePath.map(p=>(0,shared_utils_1.addLeadingSlash)(p)),requestMethod,targetCallback:instanceCallback,methodName,version}}applyPathsToRouterProxy(router,routeDefinitions,instanceWrapper,moduleKey,routePathMetadata,host){(routeDefinitions||[]).forEach(routeDefinition=>{const{version:methodVersion}=routeDefinition;routePathMetadata.methodVersion=methodVersion,this.applyCallbackToRouter(router,routeDefinition,instanceWrapper,moduleKey,routePathMetadata,host)})}applyCallbackToRouter(router,routeDefinition,instanceWrapper,moduleKey,routePathMetadata,host){const{path:paths,requestMethod,targetCallback,methodName}=routeDefinition,{instance}=instanceWrapper,routerMethodRef=this.routerMethodFactory.get(router,requestMethod).bind(router),proxy=instanceWrapper.isDependencyTreeStatic()?this.createCallbackProxy(instance,targetCallback,methodName,moduleKey,requestMethod):this.createRequestScopedHandler(instanceWrapper,requestMethod,this.container.getModuleByKey(moduleKey),moduleKey,methodName),isVersioned=(routePathMetadata.methodVersion||routePathMetadata.controllerVersion)&&routePathMetadata.versioningOptions;let routeHandler=this.applyHostFilter(host,proxy);paths.forEach(path=>{isVersioned&&routePathMetadata.versioningOptions.type!==version_type_enum_1.VersioningType.URI&&(routeHandler=this.applyVersionFilter(router,routePathMetadata,routeHandler)),routePathMetadata.methodPath=path,this.routePathFactory.create(routePathMetadata,requestMethod).forEach(path2=>routerMethodRef(path2,routeHandler)),this.routePathFactory.create(Object.assign(Object.assign({},routePathMetadata),{versioningOptions:void 0}),requestMethod).forEach(path2=>{if(isVersioned){const version=this.routePathFactory.getVersion(routePathMetadata);this.logger.log((0,messages_1.VERSIONED_ROUTE_MAPPED_MESSAGE)(path2,requestMethod,version))}else this.logger.log((0,messages_1.ROUTE_MAPPED_MESSAGE)(path2,requestMethod))})})}applyHostFilter(host,handler){if(!host)return handler;const httpAdapterRef=this.container.getHttpAdapterRef(),hostRegExps=(Array.isArray(host)?host:[host]).map(host2=>{const keys=[];return{regexp:pathToRegexp(host2,keys),keys}}),unsupportedFilteringErrorMessage=Array.isArray(host)?`HTTP adapter does not support filtering on hosts: ["${host.join('", "')}"]`:`HTTP adapter does not support filtering on host: "${host}"`;return(req,res,next)=>{req.hosts={};const hostname=httpAdapterRef.getRequestHostname(req)||"";for(const exp of hostRegExps){const match=hostname.match(exp.regexp);if(match)return exp.keys.forEach((key,i2)=>req.hosts[key.name]=match[i2+1]),handler(req,res,next)}if(!next)throw new exceptions_1.InternalServerErrorException(unsupportedFilteringErrorMessage);return next()}}applyVersionFilter(router,routePathMetadata,handler){const{versioningOptions}=routePathMetadata,version=this.routePathFactory.getVersion(routePathMetadata);return(null==router?void 0:router.applyVersionFilter)?router.applyVersionFilter(handler,version,versioningOptions):(req,res,next)=>{var _a,_b,_c,_d;if(version===version_options_interface_1.VERSION_NEUTRAL||versioningOptions.type===version_type_enum_1.VersioningType.URI)return handler(req,res,next);if(versioningOptions.type===version_type_enum_1.VersioningType.CUSTOM){const extractedVersion=versioningOptions.extractor(req);if(Array.isArray(version)){if(Array.isArray(extractedVersion)&&version.filter(extractedVersion.includes).length)return handler(req,res,next);if((0,shared_utils_1.isString)(extractedVersion)&&version.includes(extractedVersion))return handler(req,res,next)}else{if(Array.isArray(extractedVersion)&&extractedVersion.includes(version))return handler(req,res,next);if((0,shared_utils_1.isString)(extractedVersion)&&version===extractedVersion)return handler(req,res,next)}}if(versioningOptions.type===version_type_enum_1.VersioningType.MEDIA_TYPE){const MEDIA_TYPE_HEADER="Accept",acceptHeaderValue=(null===(_a=req.headers)||void 0===_a?void 0:_a[MEDIA_TYPE_HEADER])||(null===(_b=req.headers)||void 0===_b?void 0:_b[MEDIA_TYPE_HEADER.toLowerCase()]),acceptHeaderVersionParameter=acceptHeaderValue?acceptHeaderValue.split(";")[1]:"";if(acceptHeaderVersionParameter){const headerVersion=acceptHeaderVersionParameter.split(versioningOptions.key)[1];if(Array.isArray(version)){if(version.includes(headerVersion))return handler(req,res,next)}else if((0,shared_utils_1.isString)(version)&&version===headerVersion)return handler(req,res,next)}}else if(versioningOptions.type===version_type_enum_1.VersioningType.HEADER){const customHeaderVersionParameter=(null===(_c=req.headers)||void 0===_c?void 0:_c[versioningOptions.header])||(null===(_d=req.headers)||void 0===_d?void 0:_d[versioningOptions.header.toLowerCase()]);if(customHeaderVersionParameter)if(Array.isArray(version)){if(version.includes(customHeaderVersionParameter))return handler(req,res,next)}else if((0,shared_utils_1.isString)(version)&&version===customHeaderVersionParameter)return handler(req,res,next)}if(!next)throw new exceptions_1.InternalServerErrorException("HTTP adapter does not support filtering on version");return next()}}createCallbackProxy(instance,callback,methodName,moduleRef,requestMethod,contextId=constants_2.STATIC_CONTEXT,inquirerId){const executionContext=this.executionContextCreator.create(instance,callback,methodName,moduleRef,requestMethod,contextId,inquirerId),exceptionFilter=this.exceptionsFilter.create(instance,callback,moduleRef,contextId,inquirerId);return this.routerProxy.createProxy(executionContext,exceptionFilter)}createRequestScopedHandler(instanceWrapper,requestMethod,moduleRef,moduleKey,methodName){var _this=this;const{instance}=instanceWrapper,collection=moduleRef.controllers;return function(){var _ref=_asyncToGenerator(function*(req,res,next){try{const contextId=_this.getContextId(req),contextInstance=yield _this.injector.loadPerContext(instance,moduleRef,collection,contextId);yield _this.createCallbackProxy(contextInstance,contextInstance[methodName],methodName,moduleKey,requestMethod,contextId,instanceWrapper.id)(req,res,next)}catch(err){let exceptionFilter=_this.exceptionFiltersCache.get(instance[methodName]);exceptionFilter||(exceptionFilter=_this.exceptionsFilter.create(instance,instance[methodName],moduleKey),_this.exceptionFiltersCache.set(instance[methodName],exceptionFilter));const host=new execution_context_host_1.ExecutionContextHost([req,res,next]);exceptionFilter.next(err,host)}});return function(_x,_x2,_x3){return _ref.apply(this,arguments)}}()}getContextId(request){const contextId=context_id_factory_1.ContextIdFactory.getByRequest(request);return request[request_constants_1.REQUEST_CONTEXT_ID]||(Object.defineProperty(request,request_constants_1.REQUEST_CONTEXT_ID,{value:contextId,enumerable:!1,writable:!1,configurable:!1}),this.container.registerRequestProvider(request,contextId)),contextId}}__name(RouterExplorer,"RouterExplorer"),exports2.RouterExplorer=RouterExplorer},94852:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var RouterModule_1;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RouterModule=exports2.targetModulesByContainer=exports2.ROUTES=void 0;const tslib_1=__webpack_require__2(78099),common_1=__webpack_require__2(28791),constants_1=__webpack_require__2(75441),shared_utils_1=__webpack_require__2(73819),modules_container_1=__webpack_require__2(54284),utils_1=__webpack_require__2(29367);exports2.ROUTES=Symbol("ROUTES"),exports2.targetModulesByContainer=new WeakMap;let RouterModule=RouterModule_1=__name(class{constructor(modulesContainer,routes){this.modulesContainer=modulesContainer,this.routes=routes,this.routes=this.deepCloneRoutes(routes),this.initialize()}static register(routes){return{module:RouterModule_1,providers:[{provide:exports2.ROUTES,useValue:routes}]}}deepCloneRoutes(routes){return routes.map(routeOrType=>"function"==typeof routeOrType?routeOrType:routeOrType.children?Object.assign(Object.assign({},routeOrType),{children:this.deepCloneRoutes(routeOrType.children)}):Object.assign({},routeOrType))}initialize(){(0,utils_1.flattenRoutePaths)(this.routes).forEach(route=>{const modulePath=(0,shared_utils_1.normalizePath)(route.path);this.registerModulePathMetadata(route.module,modulePath),this.updateTargetModulesCache(route.module)})}registerModulePathMetadata(moduleCtor,modulePath){Reflect.defineMetadata(constants_1.MODULE_PATH+this.modulesContainer.applicationId,modulePath,moduleCtor)}updateTargetModulesCache(moduleCtor){let moduleClassSet;exports2.targetModulesByContainer.has(this.modulesContainer)?moduleClassSet=exports2.targetModulesByContainer.get(this.modulesContainer):(moduleClassSet=new WeakSet,exports2.targetModulesByContainer.set(this.modulesContainer,moduleClassSet));const moduleRef=Array.from(this.modulesContainer.values()).find(item=>(null==item?void 0:item.metatype)===moduleCtor);!moduleRef||moduleClassSet.add(moduleRef)}},"RouterModule");RouterModule=RouterModule_1=tslib_1.__decorate([(0,common_1.Module)({}),tslib_1.__param(1,(0,common_1.Inject)(exports2.ROUTES)),tslib_1.__metadata("design:paramtypes",[modules_container_1.ModulesContainer,Array])],RouterModule),exports2.RouterModule=RouterModule},98942:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RouterProxy=void 0;const execution_context_host_1=__webpack_require__2(78170);class RouterProxy{createProxy(targetCallback,exceptionsHandler){return function(){var _ref=_asyncToGenerator(function*(req,res,next){try{yield targetCallback(req,res,next)}catch(e){const host=new execution_context_host_1.ExecutionContextHost([req,res,next]);exceptionsHandler.next(e,host)}});return function(_x,_x2,_x3){return _ref.apply(this,arguments)}}()}createExceptionLayerProxy(targetCallback,exceptionsHandler){return function(){var _ref2=_asyncToGenerator(function*(err,req,res,next){try{yield targetCallback(err,req,res,next)}catch(e){const host=new execution_context_host_1.ExecutionContextHost([req,res,next]);exceptionsHandler.next(e,host)}});return function(_x4,_x5,_x6,_x7){return _ref2.apply(this,arguments)}}()}}__name(RouterProxy,"RouterProxy"),exports2.RouterProxy=RouterProxy},16831:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RouterResponseController=void 0;const common_1=__webpack_require__2(28791),shared_utils_1=__webpack_require__2(73819),rxjs_1=__webpack_require__2(76477),operators_1=__webpack_require__2(83292),sse_stream_1=__webpack_require__2(36169);class RouterResponseController{constructor(applicationRef){this.applicationRef=applicationRef,this.logger=new common_1.Logger(RouterResponseController.name)}apply(result,response,httpStatusCode){var _this=this;return _asyncToGenerator(function*(){return _this.applicationRef.reply(response,result,httpStatusCode)})()}redirect(resultOrDeferred,response,redirectResponse){var _this2=this;return _asyncToGenerator(function*(){const result=yield _this2.transformToResult(resultOrDeferred),statusCode=result&&result.statusCode?result.statusCode:redirectResponse.statusCode?redirectResponse.statusCode:common_1.HttpStatus.FOUND,url=result&&result.url?result.url:redirectResponse.url;_this2.applicationRef.redirect(response,statusCode,url)})()}render(resultOrDeferred,response,template){var _this3=this;return _asyncToGenerator(function*(){const result=yield _this3.transformToResult(resultOrDeferred);return _this3.applicationRef.render(response,template,result)})()}transformToResult(resultOrDeferred){return _asyncToGenerator(function*(){return resultOrDeferred&&(0,shared_utils_1.isFunction)(resultOrDeferred.subscribe)?(0,rxjs_1.lastValueFrom)(resultOrDeferred):resultOrDeferred})()}getStatusByMethod(requestMethod){return requestMethod===common_1.RequestMethod.POST?common_1.HttpStatus.CREATED:common_1.HttpStatus.OK}setHeaders(response,headers){headers.forEach(({name,value})=>this.applicationRef.setHeader(response,name,value))}setStatus(response,statusCode){this.applicationRef.status(response,statusCode)}sse(result,response,request,options){if(response.writableEnded)return;this.assertObservable(result);const stream=new sse_stream_1.SseStream(request);stream.pipe(response,options);const subscription=result.pipe((0,operators_1.map)(message2=>(0,shared_utils_1.isObject)(message2)?message2:{data:message2}),(0,operators_1.debounce)(message2=>new Promise(resolve=>stream.writeMessage(message2,()=>resolve()))),(0,operators_1.catchError)(err=>{const data=err instanceof Error?err.message:err;return stream.writeMessage({type:"error",data},writeError=>{writeError&&this.logger.error(writeError)}),rxjs_1.EMPTY})).subscribe({complete:()=>{response.end()}});request.on("close",()=>{subscription.unsubscribe()})}assertObservable(result){if(!(0,shared_utils_1.isFunction)(result.subscribe))throw new ReferenceError("You must return an Observable stream to use Server-Sent Events (SSE).")}}__name(RouterResponseController,"RouterResponseController"),exports2.RouterResponseController=RouterResponseController},29828:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RoutesResolver=void 0;const common_1=__webpack_require__2(28791),constants_1=__webpack_require__2(75441),logger_service_1=__webpack_require__2(62366),messages_1=__webpack_require__2(44369),metadata_scanner_1=__webpack_require__2(68499),route_path_factory_1=__webpack_require__2(5050),router_exception_filters_1=__webpack_require__2(78074),router_explorer_1=__webpack_require__2(79866),router_proxy_1=__webpack_require__2(98942);class RoutesResolver{constructor(container,applicationConfig,injector){this.container=container,this.applicationConfig=applicationConfig,this.injector=injector,this.logger=new logger_service_1.Logger(RoutesResolver.name,{timestamp:!0}),this.routerProxy=new router_proxy_1.RouterProxy;const httpAdapterRef=container.getHttpAdapterRef();this.routerExceptionsFilter=new router_exception_filters_1.RouterExceptionFilters(container,applicationConfig,httpAdapterRef),this.routePathFactory=new route_path_factory_1.RoutePathFactory(this.applicationConfig);const metadataScanner=new metadata_scanner_1.MetadataScanner;this.routerExplorer=new router_explorer_1.RouterExplorer(metadataScanner,this.container,this.injector,this.routerProxy,this.routerExceptionsFilter,this.applicationConfig,this.routePathFactory)}resolve(applicationRef,globalPrefix){this.container.getModules().forEach(({controllers,metatype},moduleName)=>{const modulePath=this.getModulePathMetadata(metatype);this.registerRouters(controllers,moduleName,globalPrefix,modulePath,applicationRef)})}registerRouters(routes,moduleName,globalPrefix,modulePath,applicationRef){routes.forEach(instanceWrapper=>{const{metatype}=instanceWrapper,host=this.getHostMetadata(metatype),routerPaths=this.routerExplorer.extractRouterPath(metatype),controllerVersion=this.getVersionMetadata(metatype),controllerName=metatype.name;routerPaths.forEach(path=>{const pathsToLog=this.routePathFactory.create({ctrlPath:path,modulePath,globalPrefix});controllerVersion?pathsToLog.forEach(path2=>{const logMessage=(0,messages_1.VERSIONED_CONTROLLER_MAPPING_MESSAGE)(controllerName,path2,controllerVersion);this.logger.log(logMessage)}):pathsToLog.forEach(path2=>{const logMessage=(0,messages_1.CONTROLLER_MAPPING_MESSAGE)(controllerName,path2);this.logger.log(logMessage)});const versioningOptions=this.applicationConfig.getVersioning(),routePathMetadata={ctrlPath:path,modulePath,globalPrefix,controllerVersion,versioningOptions};this.routerExplorer.explore(instanceWrapper,moduleName,applicationRef,host,routePathMetadata)})})}registerNotFoundHandler(){const applicationRef=this.container.getHttpAdapterRef(),callback=__name((req,res)=>{const method=applicationRef.getRequestMethod(req),url=applicationRef.getRequestUrl(req);throw new common_1.NotFoundException(`Cannot ${method} ${url}`)},"callback"),handler=this.routerExceptionsFilter.create({},callback,void 0),proxy=this.routerProxy.createProxy(callback,handler);applicationRef.setNotFoundHandler&&applicationRef.setNotFoundHandler(proxy,this.applicationConfig.getGlobalPrefix())}registerExceptionHandler(){const callback=__name((err,req,res,next)=>{throw this.mapExternalException(err)},"callback"),handler=this.routerExceptionsFilter.create({},callback,void 0),proxy=this.routerProxy.createExceptionLayerProxy(callback,handler),applicationRef=this.container.getHttpAdapterRef();applicationRef.setErrorHandler&&applicationRef.setErrorHandler(proxy,this.applicationConfig.getGlobalPrefix())}mapExternalException(err){return!0==(err instanceof SyntaxError||err instanceof URIError)?new common_1.BadRequestException(err.message):err}getModulePathMetadata(metatype){const modulesContainer=this.container.getModules(),modulePath=Reflect.getMetadata(constants_1.MODULE_PATH+modulesContainer.applicationId,metatype);return null!=modulePath?modulePath:Reflect.getMetadata(constants_1.MODULE_PATH,metatype)}getHostMetadata(metatype){return Reflect.getMetadata(constants_1.HOST_METADATA,metatype)}getVersionMetadata(metatype){var _a;const versioningConfig=this.applicationConfig.getVersioning();if(versioningConfig)return null!==(_a=Reflect.getMetadata(constants_1.VERSION_METADATA,metatype))&&void 0!==_a?_a:versioningConfig.defaultVersion}}__name(RoutesResolver,"RoutesResolver"),exports2.RoutesResolver=RoutesResolver},36169:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SseStream=void 0;const shared_utils_1=__webpack_require__2(73819),stream_1=__webpack_require__2(12781);function toDataString(data){return(0,shared_utils_1.isObject)(data)?toDataString(JSON.stringify(data)):data.split(/\r\n|\r|\n/).map(line=>`data: ${line}\n`).join("")}__name(toDataString,"toDataString");class SseStream extends stream_1.Transform{constructor(req){super({objectMode:!0}),this.lastEventId=null,req&&req.socket&&(req.socket.setKeepAlive(!0),req.socket.setNoDelay(!0),req.socket.setTimeout(0))}pipe(destination,options){return destination.writeHead&&(destination.writeHead(200,Object.assign(Object.assign({},null==options?void 0:options.additionalHeaders),{"Content-Type":"text/event-stream",Connection:"keep-alive","Cache-Control":"private, no-cache, no-store, must-revalidate, max-age=0, no-transform",Pragma:"no-cache",Expire:"0","X-Accel-Buffering":"no"})),destination.flushHeaders()),destination.write("\n"),super.pipe(destination,options)}_transform(message2,encoding,callback){let data=message2.type?`event: ${message2.type}\n`:"";data+=message2.id?`id: ${message2.id}\n`:"",data+=message2.retry?`retry: ${message2.retry}\n`:"",data+=message2.data?toDataString(message2.data):"",data+="\n",this.push(data),callback()}writeMessage(message2,cb){message2.id||(this.lastEventId++,message2.id=this.lastEventId.toString()),this.write(message2,"utf-8",cb)?process.nextTick(cb):this.once("drain",cb)}}__name(SseStream,"SseStream"),exports2.SseStream=SseStream},6450:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.isRouteExcluded=exports2.isRequestMethodAll=void 0;const common_1=__webpack_require__2(28791),isRequestMethodAll=__name(method=>common_1.RequestMethod.ALL===method||-1===method,"isRequestMethodAll");function isRouteExcluded(excludedRoutes,path,requestMethod){return excludedRoutes.some(route=>!(!(0,exports2.isRequestMethodAll)(route.requestMethod)&&route.requestMethod!==requestMethod)&&route.pathRegex.exec(path))}exports2.isRequestMethodAll=isRequestMethodAll,__name(isRouteExcluded,"isRouteExcluded"),exports2.isRouteExcluded=isRouteExcluded},61637:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.flattenRoutePaths=void 0;const shared_utils_1=__webpack_require__2(73819);function flattenRoutePaths(routes){const result=[];return routes.forEach(item=>{if(item.module&&item.path&&result.push({module:item.module,path:item.path}),item.children){const childrenRef=item.children;childrenRef.forEach(child=>{!(0,shared_utils_1.isString)(child)&&child.path?child.path=(0,shared_utils_1.normalizePath)((0,shared_utils_1.normalizePath)(item.path)+(0,shared_utils_1.normalizePath)(child.path)):result.push({path:item.path,module:child})}),result.push(...flattenRoutePaths(childrenRef))}}),result}__name(flattenRoutePaths,"flattenRoutePaths"),exports2.flattenRoutePaths=flattenRoutePaths},29367:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(78099);tslib_1.__exportStar(__webpack_require__2(6450),exports2),tslib_1.__exportStar(__webpack_require__2(61637),exports2)},71386:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DependenciesScanner=void 0;const common_1=__webpack_require__2(28791),constants_1=__webpack_require__2(75441),interfaces_1=__webpack_require__2(39270),random_string_generator_util_1=__webpack_require__2(80749),shared_utils_1=__webpack_require__2(73819),iterare_1=__webpack_require__2(57698),application_config_1=__webpack_require__2(64112),constants_2=__webpack_require__2(86618),circular_dependency_exception_1=__webpack_require__2(50265),invalid_class_module_exception_1=__webpack_require__2(85892),invalid_module_exception_1=__webpack_require__2(73590),undefined_module_exception_1=__webpack_require__2(82112),get_class_scope_1=__webpack_require__2(80893),internal_core_module_factory_1=__webpack_require__2(64487);class DependenciesScanner{constructor(container,metadataScanner,applicationConfig=new application_config_1.ApplicationConfig){this.container=container,this.metadataScanner=metadataScanner,this.applicationConfig=applicationConfig,this.logger=new common_1.Logger(DependenciesScanner.name),this.applicationProvidersApplyMap=[]}scan(module2){var _this=this;return _asyncToGenerator(function*(){yield _this.registerCoreModule(),yield _this.scanForModules(module2),yield _this.scanModulesForDependencies(),_this.calculateModulesDistance(),_this.addScopedEnhancersMetadata(),_this.container.bindGlobalScope()})()}scanForModules(moduleDefinition,scope=[],ctxRegistry=[]){var _this2=this;return _asyncToGenerator(function*(){const moduleInstance=yield _this2.insertModule(moduleDefinition,scope);moduleDefinition=moduleDefinition instanceof Promise?yield moduleDefinition:moduleDefinition,ctxRegistry.push(moduleDefinition),_this2.isForwardReference(moduleDefinition)&&(moduleDefinition=moduleDefinition.forwardRef());const modules=_this2.isDynamicModule(moduleDefinition)?[..._this2.reflectMetadata(moduleDefinition.module,constants_1.MODULE_METADATA.IMPORTS),...moduleDefinition.imports||[]]:_this2.reflectMetadata(moduleDefinition,constants_1.MODULE_METADATA.IMPORTS);let registeredModuleRefs=[];for(const[index,innerModule]of modules.entries()){if(void 0===innerModule)throw new undefined_module_exception_1.UndefinedModuleException(moduleDefinition,index,scope);if(!innerModule)throw new invalid_module_exception_1.InvalidModuleException(moduleDefinition,index,scope);if(ctxRegistry.includes(innerModule))continue;const moduleRefs=yield _this2.scanForModules(innerModule,[].concat(scope,moduleDefinition),ctxRegistry);registeredModuleRefs=registeredModuleRefs.concat(moduleRefs)}return moduleInstance?[moduleInstance].concat(registeredModuleRefs):registeredModuleRefs})()}insertModule(moduleDefinition,scope){var _this3=this;return _asyncToGenerator(function*(){const moduleToAdd=_this3.isForwardReference(moduleDefinition)?moduleDefinition.forwardRef():moduleDefinition;return(_this3.isInjectable(moduleToAdd)||_this3.isController(moduleToAdd)||_this3.isExceptionFilter(moduleToAdd))&&_this3.logger.warn(new invalid_class_module_exception_1.InvalidClassModuleException(moduleDefinition,scope).message),_this3.container.addModule(moduleToAdd,scope)})()}scanModulesForDependencies(modules=this.container.getModules()){var _this4=this;return _asyncToGenerator(function*(){for(const[token,{metatype}]of modules)yield _this4.reflectImports(metatype,token,metatype.name),_this4.reflectProviders(metatype,token),_this4.reflectControllers(metatype,token),_this4.reflectExports(metatype,token)})()}reflectImports(module2,token,context){var _this5=this;return _asyncToGenerator(function*(){const modules=[..._this5.reflectMetadata(module2,constants_1.MODULE_METADATA.IMPORTS),..._this5.container.getDynamicMetadataByToken(token,constants_1.MODULE_METADATA.IMPORTS)];for(const related of modules)yield _this5.insertImport(related,token,context)})()}reflectProviders(module2,token){[...this.reflectMetadata(module2,constants_1.MODULE_METADATA.PROVIDERS),...this.container.getDynamicMetadataByToken(token,constants_1.MODULE_METADATA.PROVIDERS)].forEach(provider=>{this.insertProvider(provider,token),this.reflectDynamicMetadata(provider,token)})}reflectControllers(module2,token){[...this.reflectMetadata(module2,constants_1.MODULE_METADATA.CONTROLLERS),...this.container.getDynamicMetadataByToken(token,constants_1.MODULE_METADATA.CONTROLLERS)].forEach(item=>{this.insertController(item,token),this.reflectDynamicMetadata(item,token)})}reflectDynamicMetadata(obj,token){!obj||!obj.prototype||(this.reflectInjectables(obj,token,constants_1.GUARDS_METADATA),this.reflectInjectables(obj,token,constants_1.INTERCEPTORS_METADATA),this.reflectInjectables(obj,token,constants_1.EXCEPTION_FILTERS_METADATA),this.reflectInjectables(obj,token,constants_1.PIPES_METADATA),this.reflectParamInjectables(obj,token,constants_1.ROUTE_ARGS_METADATA))}reflectExports(module2,token){[...this.reflectMetadata(module2,constants_1.MODULE_METADATA.EXPORTS),...this.container.getDynamicMetadataByToken(token,constants_1.MODULE_METADATA.EXPORTS)].forEach(exportedProvider=>this.insertExportedProvider(exportedProvider,token))}reflectInjectables(component,token,metadataKey){const controllerInjectables=this.reflectMetadata(component,metadataKey),methodsInjectables=this.metadataScanner.scanFromPrototype(null,component.prototype,this.reflectKeyMetadata.bind(this,component,metadataKey)),combinedInjectables=[...controllerInjectables,...this.flatten(methodsInjectables)].filter(shared_utils_1.isFunction);Array.from(new Set(combinedInjectables)).forEach(injectable=>this.insertInjectable(injectable,token,component))}reflectParamInjectables(component,token,metadataKey){const paramsMetadata=this.metadataScanner.scanFromPrototype(null,component.prototype,method=>Reflect.getMetadata(metadataKey,component,method)),paramsInjectables=this.flatten(paramsMetadata).map(param=>(0,common_1.flatten)(Object.keys(param).map(k=>param[k].pipes)).filter(shared_utils_1.isFunction));(0,common_1.flatten)(paramsInjectables).forEach(injectable=>this.insertInjectable(injectable,token,component))}reflectKeyMetadata(component,key,method){let prototype=component.prototype;do{const descriptor=Reflect.getOwnPropertyDescriptor(prototype,method);if(descriptor)return Reflect.getMetadata(key,descriptor.value)}while((prototype=Reflect.getPrototypeOf(prototype))&&prototype!==Object.prototype&&prototype)}calculateModulesDistance(){var _this6=this;return _asyncToGenerator(function*(){const modulesGenerator=_this6.container.getModules().values();modulesGenerator.next();const modulesStack=[],calculateDistance=__name((moduleRef,distance=1)=>{modulesStack.includes(moduleRef)||(modulesStack.push(moduleRef),moduleRef.imports.forEach(importedModuleRef=>{importedModuleRef&&(importedModuleRef.distance=distance,calculateDistance(importedModuleRef,distance+1))}))},"calculateDistance"),rootModule=modulesGenerator.next().value;calculateDistance(rootModule)})()}insertImport(related,token,context){var _this7=this;return _asyncToGenerator(function*(){if((0,shared_utils_1.isUndefined)(related))throw new circular_dependency_exception_1.CircularDependencyException(context);if(_this7.isForwardReference(related))return _this7.container.addImport(related.forwardRef(),token);yield _this7.container.addImport(related,token)})()}isCustomProvider(provider){return provider&&!(0,shared_utils_1.isNil)(provider.provide)}insertProvider(provider,token){if(!this.isCustomProvider(provider))return this.container.addProvider(provider,token);const applyProvidersMap=this.getApplyProvidersMap(),providersKeys=Object.keys(applyProvidersMap),type=provider.provide;if(!providersKeys.includes(type))return this.container.addProvider(provider,token);const providerToken=`${type} (UUID: ${(0,random_string_generator_util_1.randomStringGenerator)()})`;let scope=provider.scope;(0,shared_utils_1.isNil)(scope)&&provider.useClass&&(scope=(0,get_class_scope_1.getClassScope)(provider.useClass)),this.applicationProvidersApplyMap.push({type,moduleKey:token,providerKey:providerToken,scope});const newProvider=Object.assign(Object.assign({},provider),{provide:providerToken,scope}),factoryOrClassProvider=newProvider;if(this.isRequestOrTransient(factoryOrClassProvider.scope))return this.container.addInjectable(newProvider,token);this.container.addProvider(newProvider,token)}insertInjectable(injectable,token,host){this.container.addInjectable(injectable,token,host)}insertExportedProvider(exportedProvider,token){this.container.addExportedProvider(exportedProvider,token)}insertController(controller,token){this.container.addController(controller,token)}reflectMetadata(metatype,metadataKey){return Reflect.getMetadata(metadataKey,metatype)||[]}registerCoreModule(){var _this8=this;return _asyncToGenerator(function*(){const moduleDefinition=internal_core_module_factory_1.InternalCoreModuleFactory.create(_this8.container,_this8,_this8.container.getModuleCompiler(),_this8.container.getHttpAdapterHostRef()),[instance]=yield _this8.scanForModules(moduleDefinition);_this8.container.registerCoreModuleRef(instance)})()}addScopedEnhancersMetadata(){(0,iterare_1.iterate)(this.applicationProvidersApplyMap).filter(wrapper=>this.isRequestOrTransient(wrapper.scope)).forEach(({moduleKey,providerKey})=>{const modulesContainer=this.container.getModules(),{injectables}=modulesContainer.get(moduleKey),instanceWrapper=injectables.get(providerKey);(0,iterare_1.iterate)(modulesContainer.values()).map(module2=>module2.controllers.values()).flatten().forEach(controller=>controller.addEnhancerMetadata(instanceWrapper))})}applyApplicationProviders(){const applyProvidersMap=this.getApplyProvidersMap(),applyRequestProvidersMap=this.getApplyRequestProvidersMap(),getInstanceWrapper=__name((moduleKey,providerKey,collectionKey)=>this.container.getModules().get(moduleKey)[collectionKey].get(providerKey),"getInstanceWrapper");this.applicationProvidersApplyMap.forEach(({moduleKey,providerKey,type,scope})=>{let instanceWrapper;if(this.isRequestOrTransient(scope))return instanceWrapper=getInstanceWrapper(moduleKey,providerKey,"injectables"),applyRequestProvidersMap[type](instanceWrapper);instanceWrapper=getInstanceWrapper(moduleKey,providerKey,"providers"),applyProvidersMap[type](instanceWrapper.instance)})}getApplyProvidersMap(){return{[constants_2.APP_INTERCEPTOR]:interceptor=>this.applicationConfig.addGlobalInterceptor(interceptor),[constants_2.APP_PIPE]:pipe=>this.applicationConfig.addGlobalPipe(pipe),[constants_2.APP_GUARD]:guard=>this.applicationConfig.addGlobalGuard(guard),[constants_2.APP_FILTER]:filter=>this.applicationConfig.addGlobalFilter(filter)}}getApplyRequestProvidersMap(){return{[constants_2.APP_INTERCEPTOR]:interceptor=>this.applicationConfig.addGlobalRequestInterceptor(interceptor),[constants_2.APP_PIPE]:pipe=>this.applicationConfig.addGlobalRequestPipe(pipe),[constants_2.APP_GUARD]:guard=>this.applicationConfig.addGlobalRequestGuard(guard),[constants_2.APP_FILTER]:filter=>this.applicationConfig.addGlobalRequestFilter(filter)}}isDynamicModule(module2){return module2&&!!module2.module}isInjectable(metatype){return!!Reflect.getMetadata(constants_1.INJECTABLE_WATERMARK,metatype)}isController(metatype){return!!Reflect.getMetadata(constants_1.CONTROLLER_WATERMARK,metatype)}isExceptionFilter(metatype){return!!Reflect.getMetadata(constants_1.CATCH_WATERMARK,metatype)}isForwardReference(module2){return module2&&!!module2.forwardRef}flatten(arr){return arr.reduce((a,b2)=>a.concat(b2),[])}isRequestOrTransient(scope){return scope===interfaces_1.Scope.REQUEST||scope===interfaces_1.Scope.TRANSIENT}}__name(DependenciesScanner,"DependenciesScanner"),exports2.DependenciesScanner=DependenciesScanner},84581:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(78099).__exportStar(__webpack_require__2(54166),exports2)},54166:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Reflector=void 0;const shared_utils_1=__webpack_require__2(73819);class Reflector{get(metadataKey,target){return Reflect.getMetadata(metadataKey,target)}getAll(metadataKey,targets){return(targets||[]).map(target=>Reflect.getMetadata(metadataKey,target))}getAllAndMerge(metadataKey,targets){const metadataCollection=this.getAll(metadataKey,targets).filter(item=>void 0!==item);return(0,shared_utils_1.isEmpty)(metadataCollection)?metadataCollection:metadataCollection.reduce((a,b2)=>Array.isArray(a)?a.concat(b2):(0,shared_utils_1.isObject)(a)&&(0,shared_utils_1.isObject)(b2)?Object.assign(Object.assign({},a),b2):[a,b2])}getAllAndOverride(metadataKey,targets){return this.getAll(metadataKey,targets).filter(item=>void 0!==item)[0]}}__name(Reflector,"Reflector"),exports2.Reflector=Reflector},17885:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ANGULAR_UNIVERSAL_OPTIONS=void 0,exports2.ANGULAR_UNIVERSAL_OPTIONS="ANGULAR_UNIVERSAL_OPTIONS"},57986:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var AngularUniversalModule_1,__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i2=decorators.length-1;i2>=0;i2--)(d=decorators[i2])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(k,v)},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},__awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return __name(adopt,"adopt"),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){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}__name(fulfilled,"fulfilled"),__name(rejected,"rejected"),__name(step,"step"),step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AngularUniversalModule=void 0;const common_1=__webpack_require__2(69808),common_2=__webpack_require__2(28791),core_1=__webpack_require__2(30163),fs_1=__webpack_require__2(57147),path_1=__webpack_require__2(71017);__webpack_require__2(53037);const angular_universal_constants_1=__webpack_require__2(17885),angular_universal_providers_1=__webpack_require__2(93402);let AngularUniversalModule=AngularUniversalModule_1=__name(class{constructor(ngOptions,httpAdapterHost){this.ngOptions=ngOptions,this.httpAdapterHost=httpAdapterHost}static forRoot(options){const indexHtml=(0,fs_1.existsSync)((0,path_1.join)(options.viewsPath,"index.original.html"))?"index.original.html":"index";return options=Object.assign({templatePath:indexHtml,rootStaticPath:"*.*",renderPath:"*"},options),{module:AngularUniversalModule_1,providers:[{provide:angular_universal_constants_1.ANGULAR_UNIVERSAL_OPTIONS,useValue:options}]}}onModuleInit(){return __awaiter(this,void 0,void 0,function*(){if(!this.httpAdapterHost)return;const httpAdapter=this.httpAdapterHost.httpAdapter;httpAdapter&&httpAdapter.getInstance().get(this.ngOptions.renderPath,(req,res)=>res.render(this.ngOptions.templatePath,{req,res,providers:[{provide:common_1.APP_BASE_HREF,useValue:req.baseUrl}]}))})}},"AngularUniversalModule");AngularUniversalModule=AngularUniversalModule_1=__decorate([(0,common_2.Module)({providers:[...angular_universal_providers_1.angularUniversalProviders]}),__param(0,(0,common_2.Inject)(angular_universal_constants_1.ANGULAR_UNIVERSAL_OPTIONS)),__metadata("design:paramtypes",[Object,core_1.HttpAdapterHost])],AngularUniversalModule),exports2.AngularUniversalModule=AngularUniversalModule},93402:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.angularUniversalProviders=void 0;const core_1=__webpack_require__2(30163),angular_universal_constants_1=__webpack_require__2(17885),setup_universal_utils_1=__webpack_require__2(34201);exports2.angularUniversalProviders=[{provide:"UNIVERSAL_INITIALIZER",useFactory:(host,options)=>host&&host.httpAdapter&&(0,setup_universal_utils_1.setupUniversal)(host.httpAdapter.getInstance(),options),inject:[core_1.HttpAdapterHost,angular_universal_constants_1.ANGULAR_UNIVERSAL_OPTIONS]}]},1870:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CacheKeyByOriginalUrlGenerator=void 0;class CacheKeyByOriginalUrlGenerator{generateCacheKey(request){return request.originalUrl}}__name(CacheKeyByOriginalUrlGenerator,"CacheKeyByOriginalUrlGenerator"),exports2.CacheKeyByOriginalUrlGenerator=CacheKeyByOriginalUrlGenerator},51012:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InMemoryCacheStorage=void 0;const cache=__webpack_require__2(7327);class InMemoryCacheStorage{set(key,value,expiresIn){cache.put(key,value,expiresIn)}get(key){return cache.get(key)}}__name(InMemoryCacheStorage,"InMemoryCacheStorage"),exports2.InMemoryCacheStorage=InMemoryCacheStorage},88050:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports3){for(var p in m)"default"!==p&&!Object.prototype.hasOwnProperty.call(exports3,p)&&__createBinding(exports3,m,p)};Object.defineProperty(exports2,"__esModule",{value:!0}),__exportStar(__webpack_require__2(57986),exports2),__exportStar(__webpack_require__2(1870),exports2),__exportStar(__webpack_require__2(51012),exports2),__exportStar(__webpack_require__2(28639),exports2),__exportStar(__webpack_require__2(86808),exports2),__exportStar(__webpack_require__2(42796),exports2),__exportStar(__webpack_require__2(502),exports2)},28639:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},86808:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},42796:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},502:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.createTransformOptions=exports2.applyDomino=void 0;const fs_1=__webpack_require__2(57147),domino2=__webpack_require__2(52410);function applyDomino(global2,templatePath){const template=(0,fs_1.readFileSync)(templatePath).toString(),win=domino2.createWindow(template);global2.window=win,Object.defineProperty(win.document.body.style,"transform",createTransformOptions()),global2.document=win.document,global2.navigator=win.navigator,global2.CSS=null,global2.Prism=null}function createTransformOptions(){return{value:__name(()=>({enumerable:!0,configurable:!0}),"value")}}__name(applyDomino,"applyDomino"),exports2.applyDomino=applyDomino,__name(createTransformOptions,"createTransformOptions"),exports2.createTransformOptions=createTransformOptions},34201:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.getCacheOptions=exports2.setupUniversal=void 0;const express_engine_1=__webpack_require__2(59291),express=__webpack_require__2(91538),cache_key_by_original_url_generator_1=__webpack_require__2(1870),in_memory_cache_storage_1=__webpack_require__2(51012);function setupUniversal(app,ngOptions){const cacheOptions=getCacheOptions(ngOptions);app.engine("html",(_,options,callback)=>{let cacheKey;if(cacheOptions.isEnabled){cacheKey=cacheOptions.keyGenerator.generateCacheKey(options.req);const cacheHtml=cacheOptions.storage.get(cacheKey);if(cacheHtml)return callback(null,cacheHtml)}(0,express_engine_1.ngExpressEngine)({bootstrap:ngOptions.bootstrap,inlineCriticalCss:ngOptions.inlineCriticalCss,providers:[{provide:"serverUrl",useValue:`${options.req.protocol}://${options.req.get("host")}`},...ngOptions.extraProviders||[]]})(_,options,(err,html)=>err&&ngOptions.errorHandler?ngOptions.errorHandler({err,html,renderCallback:callback}):err?(console.error(err),callback(err)):(cacheOptions.isEnabled&&cacheKey&&cacheOptions.storage.set(cacheKey,html,cacheOptions.expiresIn),void callback(null,html)))}),app.set("view engine","html"),app.set("views",ngOptions.viewsPath),app.get(ngOptions.rootStaticPath,express.static(ngOptions.viewsPath,{maxAge:600}))}function getCacheOptions(ngOptions){return ngOptions.cache?"object"!=typeof ngOptions.cache?{isEnabled:!0,storage:new in_memory_cache_storage_1.InMemoryCacheStorage,expiresIn:6e4,keyGenerator:new cache_key_by_original_url_generator_1.CacheKeyByOriginalUrlGenerator}:{isEnabled:!0,storage:ngOptions.cache.storage||new in_memory_cache_storage_1.InMemoryCacheStorage,expiresIn:ngOptions.cache.expiresIn||6e4,keyGenerator:ngOptions.cache.keyGenerator||new cache_key_by_original_url_generator_1.CacheKeyByOriginalUrlGenerator}:{isEnabled:!1}}__name(setupUniversal,"setupUniversal"),exports2.setupUniversal=setupUniversal,__name(getCacheOptions,"getCacheOptions"),exports2.getCacheOptions=getCacheOptions},25674:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";function __export(m){for(var p in m)exports2.hasOwnProperty(p)||(exports2[p]=m[p])}__name(__export,"__export"),exports2.__esModule=!0,__export(__webpack_require__2(88050))},39731:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ExpressAdapter=void 0;const common_1=__webpack_require__2(28791),interfaces_1=__webpack_require__2(39270),shared_utils_1=__webpack_require__2(73819),http_adapter_1=__webpack_require__2(69907),router_method_factory_1=__webpack_require__2(70593),body_parser_1=__webpack_require__2(28786),cors=__webpack_require__2(5630),express=__webpack_require__2(91538),http=__webpack_require__2(13685),https=__webpack_require__2(95687);class ExpressAdapter extends http_adapter_1.AbstractHttpAdapter{constructor(instance){super(instance||express()),this.routerMethodFactory=new router_method_factory_1.RouterMethodFactory}reply(response,body,statusCode){if(statusCode&&response.status(statusCode),(0,shared_utils_1.isNil)(body))return response.send();if(body instanceof common_1.StreamableFile){const streamHeaders=body.getHeaders();return void 0===response.getHeader("Content-Type")&&void 0!==streamHeaders.type&&response.setHeader("Content-Type",streamHeaders.type),void 0===response.getHeader("Content-Disposition")&&void 0!==streamHeaders.disposition&&response.setHeader("Content-Disposition",streamHeaders.disposition),void 0===response.getHeader("Content-Length")&&void 0!==streamHeaders.length&&response.setHeader("Content-Length",streamHeaders.length),body.getStream().pipe(response)}return(0,shared_utils_1.isObject)(body)?response.json(body):response.send(String(body))}status(response,statusCode){return response.status(statusCode)}render(response,view,options){return response.render(view,options)}redirect(response,statusCode,url){return response.redirect(statusCode,url)}setErrorHandler(handler,prefix){return this.use(handler)}setNotFoundHandler(handler,prefix){return this.use(handler)}setHeader(response,name,value){return response.set(name,value)}listen(port,...args2){return this.httpServer.listen(port,...args2)}close(){if(this.httpServer)return new Promise(resolve=>this.httpServer.close(resolve))}set(...args2){return this.instance.set(...args2)}enable(...args2){return this.instance.enable(...args2)}disable(...args2){return this.instance.disable(...args2)}engine(...args2){return this.instance.engine(...args2)}useStaticAssets(path,options){return options&&options.prefix?this.use(options.prefix,express.static(path,options)):this.use(express.static(path,options))}setBaseViewsDir(path){return this.set("views",path)}setViewEngine(engine){return this.set("view engine",engine)}getRequestHostname(request){return request.hostname}getRequestMethod(request){return request.method}getRequestUrl(request){return request.originalUrl}enableCors(options){return this.use(cors(options))}createMiddlewareFactory(requestMethod){return this.routerMethodFactory.get(this.instance,requestMethod).bind(this.instance)}initHttpServer(options){options&&options.httpsOptions?this.httpServer=https.createServer(options.httpsOptions,this.getInstance()):this.httpServer=http.createServer(this.getInstance())}registerParserMiddleware(){const parserMiddleware={jsonParser:(0,body_parser_1.json)(),urlencodedParser:(0,body_parser_1.urlencoded)({extended:!0})};Object.keys(parserMiddleware).filter(parser=>!this.isMiddlewareApplied(parser)).forEach(parserKey=>this.use(parserMiddleware[parserKey]))}setLocal(key,value){return this.instance.locals[key]=value,this}getType(){return"express"}applyVersionFilter(handler,version,versioningOptions){return(req,res,next)=>{var _a,_b,_c,_d;if(version===interfaces_1.VERSION_NEUTRAL||versioningOptions.type===common_1.VersioningType.URI)return handler(req,res,next);if(versioningOptions.type===common_1.VersioningType.CUSTOM){const extractedVersion=versioningOptions.extractor(req);if(Array.isArray(version)){if(Array.isArray(extractedVersion)&&version.filter(v=>extractedVersion.includes(v)).length)return handler(req,res,next);if((0,shared_utils_1.isString)(extractedVersion)&&version.includes(extractedVersion))return handler(req,res,next)}else if((0,shared_utils_1.isString)(version)){if(Array.isArray(extractedVersion)&&extractedVersion.includes(version))return handler(req,res,next);if((0,shared_utils_1.isString)(extractedVersion)&&version===extractedVersion)return handler(req,res,next)}}if(versioningOptions.type===common_1.VersioningType.MEDIA_TYPE){const MEDIA_TYPE_HEADER="Accept",acceptHeaderValue=(null===(_a=req.headers)||void 0===_a?void 0:_a[MEDIA_TYPE_HEADER])||(null===(_b=req.headers)||void 0===_b?void 0:_b[MEDIA_TYPE_HEADER.toLowerCase()]),acceptHeaderVersionParameter=acceptHeaderValue?acceptHeaderValue.split(";")[1]:"";if(acceptHeaderVersionParameter){const headerVersion=acceptHeaderVersionParameter.split(versioningOptions.key)[1];if(Array.isArray(version)){if(version.includes(headerVersion))return handler(req,res,next)}else if((0,shared_utils_1.isString)(version)&&version===headerVersion)return handler(req,res,next)}}else if(versioningOptions.type===common_1.VersioningType.HEADER){const customHeaderVersionParameter=(null===(_c=req.headers)||void 0===_c?void 0:_c[versioningOptions.header])||(null===(_d=req.headers)||void 0===_d?void 0:_d[versioningOptions.header.toLowerCase()]);if(customHeaderVersionParameter)if(Array.isArray(version)){if(version.includes(customHeaderVersionParameter))return handler(req,res,next)}else if((0,shared_utils_1.isString)(version)&&version===customHeaderVersionParameter)return handler(req,res,next)}if(!next)throw new common_1.InternalServerErrorException("HTTP adapter does not support filtering on version");return next()}}isMiddlewareApplied(name){const app=this.getInstance();return!!app._router&&!!app._router.stack&&(0,shared_utils_1.isFunction)(app._router.stack.filter)&&app._router.stack.some(layer=>layer&&layer.handle&&layer.handle.name===name)}}__name(ExpressAdapter,"ExpressAdapter"),exports2.ExpressAdapter=ExpressAdapter},69478:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(32657).__exportStar(__webpack_require__2(39731),exports2)},22776:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(32657);tslib_1.__exportStar(__webpack_require__2(69478),exports2),tslib_1.__exportStar(__webpack_require__2(36636),exports2),tslib_1.__exportStar(__webpack_require__2(1582),exports2)},36636:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(32657).__exportStar(__webpack_require__2(27536),exports2)},27536:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},66233:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MULTER_MODULE_OPTIONS=void 0,exports2.MULTER_MODULE_OPTIONS="MULTER_MODULE_OPTIONS"},1582:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(32657);tslib_1.__exportStar(__webpack_require__2(81493),exports2),tslib_1.__exportStar(__webpack_require__2(66880),exports2),tslib_1.__exportStar(__webpack_require__2(80255),exports2)},53128:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AnyFilesInterceptor=void 0;const tslib_1=__webpack_require__2(32657),common_1=__webpack_require__2(28791),multer=__webpack_require__2(36831),files_constants_1=__webpack_require__2(66233),multer_utils_1=__webpack_require__2(81040);function AnyFilesInterceptor(localOptions){let MixinInterceptor=__name(class{constructor(options={}){this.multer=multer(Object.assign(Object.assign({},options),localOptions))}intercept(context,next){var _this=this;return _asyncToGenerator(function*(){const ctx=context.switchToHttp();return yield new Promise((resolve,reject)=>_this.multer.any()(ctx.getRequest(),ctx.getResponse(),err=>{if(err){const error=(0,multer_utils_1.transformException)(err);return reject(error)}resolve()})),next.handle()})()}},"MixinInterceptor");return MixinInterceptor=tslib_1.__decorate([tslib_1.__param(0,(0,common_1.Optional)()),tslib_1.__param(0,(0,common_1.Inject)(files_constants_1.MULTER_MODULE_OPTIONS)),tslib_1.__metadata("design:paramtypes",[Object])],MixinInterceptor),(0,common_1.mixin)(MixinInterceptor)}__name(AnyFilesInterceptor,"AnyFilesInterceptor"),exports2.AnyFilesInterceptor=AnyFilesInterceptor},31283:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FileFieldsInterceptor=void 0;const tslib_1=__webpack_require__2(32657),common_1=__webpack_require__2(28791),multer=__webpack_require__2(36831),files_constants_1=__webpack_require__2(66233),multer_utils_1=__webpack_require__2(81040);function FileFieldsInterceptor(uploadFields,localOptions){let MixinInterceptor=__name(class{constructor(options={}){this.multer=multer(Object.assign(Object.assign({},options),localOptions))}intercept(context,next){var _this=this;return _asyncToGenerator(function*(){const ctx=context.switchToHttp();return yield new Promise((resolve,reject)=>_this.multer.fields(uploadFields)(ctx.getRequest(),ctx.getResponse(),err=>{if(err){const error=(0,multer_utils_1.transformException)(err);return reject(error)}resolve()})),next.handle()})()}},"MixinInterceptor");return MixinInterceptor=tslib_1.__decorate([tslib_1.__param(0,(0,common_1.Optional)()),tslib_1.__param(0,(0,common_1.Inject)(files_constants_1.MULTER_MODULE_OPTIONS)),tslib_1.__metadata("design:paramtypes",[Object])],MixinInterceptor),(0,common_1.mixin)(MixinInterceptor)}__name(FileFieldsInterceptor,"FileFieldsInterceptor"),exports2.FileFieldsInterceptor=FileFieldsInterceptor},84287:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FileInterceptor=void 0;const tslib_1=__webpack_require__2(32657),common_1=__webpack_require__2(28791),multer=__webpack_require__2(36831),files_constants_1=__webpack_require__2(66233),multer_utils_1=__webpack_require__2(81040);function FileInterceptor(fieldName,localOptions){let MixinInterceptor=__name(class{constructor(options={}){this.multer=multer(Object.assign(Object.assign({},options),localOptions))}intercept(context,next){var _this=this;return _asyncToGenerator(function*(){const ctx=context.switchToHttp();return yield new Promise((resolve,reject)=>_this.multer.single(fieldName)(ctx.getRequest(),ctx.getResponse(),err=>{if(err){const error=(0,multer_utils_1.transformException)(err);return reject(error)}resolve()})),next.handle()})()}},"MixinInterceptor");return MixinInterceptor=tslib_1.__decorate([tslib_1.__param(0,(0,common_1.Optional)()),tslib_1.__param(0,(0,common_1.Inject)(files_constants_1.MULTER_MODULE_OPTIONS)),tslib_1.__metadata("design:paramtypes",[Object])],MixinInterceptor),(0,common_1.mixin)(MixinInterceptor)}__name(FileInterceptor,"FileInterceptor"),exports2.FileInterceptor=FileInterceptor},88074:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FilesInterceptor=void 0;const tslib_1=__webpack_require__2(32657),common_1=__webpack_require__2(28791),multer=__webpack_require__2(36831),files_constants_1=__webpack_require__2(66233),multer_utils_1=__webpack_require__2(81040);function FilesInterceptor(fieldName,maxCount,localOptions){let MixinInterceptor=__name(class{constructor(options={}){this.multer=multer(Object.assign(Object.assign({},options),localOptions))}intercept(context,next){var _this=this;return _asyncToGenerator(function*(){const ctx=context.switchToHttp();return yield new Promise((resolve,reject)=>_this.multer.array(fieldName,maxCount)(ctx.getRequest(),ctx.getResponse(),err=>{if(err){const error=(0,multer_utils_1.transformException)(err);return reject(error)}resolve()})),next.handle()})()}},"MixinInterceptor");return MixinInterceptor=tslib_1.__decorate([tslib_1.__param(0,(0,common_1.Optional)()),tslib_1.__param(0,(0,common_1.Inject)(files_constants_1.MULTER_MODULE_OPTIONS)),tslib_1.__metadata("design:paramtypes",[Object])],MixinInterceptor),(0,common_1.mixin)(MixinInterceptor)}__name(FilesInterceptor,"FilesInterceptor"),exports2.FilesInterceptor=FilesInterceptor},81493:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(32657);tslib_1.__exportStar(__webpack_require__2(53128),exports2),tslib_1.__exportStar(__webpack_require__2(31283),exports2),tslib_1.__exportStar(__webpack_require__2(84287),exports2),tslib_1.__exportStar(__webpack_require__2(88074),exports2)},67688:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},66880:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(32657).__exportStar(__webpack_require__2(67688),exports2)},66487:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MULTER_MODULE_ID=void 0,exports2.MULTER_MODULE_ID="MULTER_MODULE_ID"},80255:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var MulterModule_1,_asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MulterModule=void 0;const tslib_1=__webpack_require__2(32657),common_1=__webpack_require__2(28791),random_string_generator_util_1=__webpack_require__2(80749),files_constants_1=__webpack_require__2(66233),multer_constants_1=__webpack_require__2(66487);let MulterModule=MulterModule_1=__name(class{static register(options={}){return{module:MulterModule_1,providers:[{provide:files_constants_1.MULTER_MODULE_OPTIONS,useValue:options},{provide:multer_constants_1.MULTER_MODULE_ID,useValue:(0,random_string_generator_util_1.randomStringGenerator)()}],exports:[files_constants_1.MULTER_MODULE_OPTIONS]}}static registerAsync(options){return{module:MulterModule_1,imports:options.imports,providers:[...this.createAsyncProviders(options),{provide:multer_constants_1.MULTER_MODULE_ID,useValue:(0,random_string_generator_util_1.randomStringGenerator)()}],exports:[files_constants_1.MULTER_MODULE_OPTIONS]}}static createAsyncProviders(options){return options.useExisting||options.useFactory?[this.createAsyncOptionsProvider(options)]:[this.createAsyncOptionsProvider(options),{provide:options.useClass,useClass:options.useClass}]}static createAsyncOptionsProvider(options){return options.useFactory?{provide:files_constants_1.MULTER_MODULE_OPTIONS,useFactory:options.useFactory,inject:options.inject||[]}:{provide:files_constants_1.MULTER_MODULE_OPTIONS,useFactory:(_ref=_asyncToGenerator(function*(optionsFactory){return optionsFactory.createMulterOptions()}),__name(function(_x){return _ref.apply(this,arguments)},"useFactory")),inject:[options.useExisting||options.useClass]};var _ref}},"MulterModule");MulterModule=MulterModule_1=tslib_1.__decorate([(0,common_1.Module)({})],MulterModule),exports2.MulterModule=MulterModule},3351:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.multerExceptions=void 0,exports2.multerExceptions={LIMIT_PART_COUNT:"Too many parts",LIMIT_FILE_SIZE:"File too large",LIMIT_FILE_COUNT:"Too many files",LIMIT_FIELD_KEY:"Field name too long",LIMIT_FIELD_VALUE:"Field value too long",LIMIT_FIELD_COUNT:"Too many fields",LIMIT_UNEXPECTED_FILE:"Unexpected field"}},81040:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.transformException=void 0;const common_1=__webpack_require__2(28791),multer_constants_1=__webpack_require__2(3351);function transformException(error){if(!error||error instanceof common_1.HttpException)return error;switch(error.message){case multer_constants_1.multerExceptions.LIMIT_FILE_SIZE:return new common_1.PayloadTooLargeException(error.message);case multer_constants_1.multerExceptions.LIMIT_FILE_COUNT:case multer_constants_1.multerExceptions.LIMIT_FIELD_KEY:case multer_constants_1.multerExceptions.LIMIT_FIELD_VALUE:case multer_constants_1.multerExceptions.LIMIT_FIELD_COUNT:case multer_constants_1.multerExceptions.LIMIT_UNEXPECTED_FILE:case multer_constants_1.multerExceptions.LIMIT_PART_COUNT:return new common_1.BadRequestException(error.message)}return error}__name(transformException,"transformException"),exports2.transformException=transformException},47628:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(82426).__exportStar(__webpack_require__2(69130),exports2)},69130:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.IoAdapter=void 0;const tslib_1=__webpack_require__2(82426),shared_utils_1=__webpack_require__2(73819),websockets_1=__webpack_require__2(6279),constants_1=__webpack_require__2(65794),rxjs_1=__webpack_require__2(76477),operators_1=__webpack_require__2(83292),socket_io_1=__webpack_require__2(30989);class IoAdapter extends websockets_1.AbstractWsAdapter{create(port,options){if(!options)return this.createIOServer(port);const{namespace,server}=options,opt=tslib_1.__rest(options,["namespace","server"]);return server&&(0,shared_utils_1.isFunction)(server.of)?server.of(namespace):namespace?this.createIOServer(port,opt).of(namespace):this.createIOServer(port,opt)}createIOServer(port,options){return this.httpServer&&0===port?new socket_io_1.Server(this.httpServer,options):new socket_io_1.Server(port,options)}bindMessageHandlers(socket,handlers,transform){const disconnect$=(0,rxjs_1.fromEvent)(socket,constants_1.DISCONNECT_EVENT).pipe((0,operators_1.share)(),(0,operators_1.first)());handlers.forEach(({message:message2,callback})=>{(0,rxjs_1.fromEvent)(socket,message2).pipe((0,operators_1.mergeMap)(payload=>{const{data,ack}=this.mapPayload(payload);return transform(callback(data,ack)).pipe((0,operators_1.filter)(response=>!(0,shared_utils_1.isNil)(response)),(0,operators_1.map)(response=>[response,ack]))}),(0,operators_1.takeUntil)(disconnect$)).subscribe(([response,ack])=>{if(response.event)return socket.emit(response.event,response.data);(0,shared_utils_1.isFunction)(ack)&&ack(response)})})}mapPayload(payload){if(!Array.isArray(payload))return(0,shared_utils_1.isFunction)(payload)?{data:void 0,ack:payload}:{data:payload};const lastElement=payload[payload.length-1];if((0,shared_utils_1.isFunction)(lastElement)){const size=payload.length-1;return{data:1===size?payload[0]:payload.slice(0,size),ack:lastElement}}return{data:payload}}}__name(IoAdapter,"IoAdapter"),exports2.IoAdapter=IoAdapter},2312:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),__webpack_require__2(82426).__exportStar(__webpack_require__2(47628),exports2)},13039:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Cron=void 0;const common_1=__webpack_require__2(28791),scheduler_type_enum_1=__webpack_require__2(38783),schedule_constants_1=__webpack_require__2(35343);function Cron(cronTime,options={}){const name=options&&options.name;return(0,common_1.applyDecorators)((0,common_1.SetMetadata)(schedule_constants_1.SCHEDULE_CRON_OPTIONS,Object.assign(Object.assign({},options),{cronTime})),(0,common_1.SetMetadata)(schedule_constants_1.SCHEDULER_NAME,name),(0,common_1.SetMetadata)(schedule_constants_1.SCHEDULER_TYPE,scheduler_type_enum_1.SchedulerType.CRON))}__name(Cron,"Cron"),exports2.Cron=Cron},23509:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports3){for(var p in m)"default"!==p&&!Object.prototype.hasOwnProperty.call(exports3,p)&&__createBinding(exports3,m,p)};Object.defineProperty(exports2,"__esModule",{value:!0}),__exportStar(__webpack_require__2(13039),exports2),__exportStar(__webpack_require__2(70627),exports2),__exportStar(__webpack_require__2(55077),exports2)},70627:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Interval=void 0;const common_1=__webpack_require__2(28791),util_1=__webpack_require__2(73837),scheduler_type_enum_1=__webpack_require__2(38783),schedule_constants_1=__webpack_require__2(35343);function Interval(nameOrTimeout,timeout){const[name,intervalTimeout]=(0,util_1.isString)(nameOrTimeout)?[nameOrTimeout,timeout]:[void 0,nameOrTimeout];return(0,common_1.applyDecorators)((0,common_1.SetMetadata)(schedule_constants_1.SCHEDULE_INTERVAL_OPTIONS,{timeout:intervalTimeout}),(0,common_1.SetMetadata)(schedule_constants_1.SCHEDULER_NAME,name),(0,common_1.SetMetadata)(schedule_constants_1.SCHEDULER_TYPE,scheduler_type_enum_1.SchedulerType.INTERVAL))}__name(Interval,"Interval"),exports2.Interval=Interval},55077:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Timeout=void 0;const common_1=__webpack_require__2(28791),util_1=__webpack_require__2(73837),scheduler_type_enum_1=__webpack_require__2(38783),schedule_constants_1=__webpack_require__2(35343);function Timeout(nameOrTimeout,timeout){const[name,timeoutValue]=(0,util_1.isString)(nameOrTimeout)?[nameOrTimeout,timeout]:[void 0,nameOrTimeout];return(0,common_1.applyDecorators)((0,common_1.SetMetadata)(schedule_constants_1.SCHEDULE_TIMEOUT_OPTIONS,{timeout:timeoutValue}),(0,common_1.SetMetadata)(schedule_constants_1.SCHEDULER_NAME,name),(0,common_1.SetMetadata)(schedule_constants_1.SCHEDULER_TYPE,scheduler_type_enum_1.SchedulerType.TIMEOUT))}__name(Timeout,"Timeout"),exports2.Timeout=Timeout},57385:(__unused_webpack_module,exports2)=>{"use strict";var CronExpression2;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CronExpression=void 0,(CronExpression2=exports2.CronExpression||(exports2.CronExpression={})).EVERY_SECOND="* * * * * *",CronExpression2.EVERY_5_SECONDS="*/5 * * * * *",CronExpression2.EVERY_10_SECONDS="*/10 * * * * *",CronExpression2.EVERY_30_SECONDS="*/30 * * * * *",CronExpression2.EVERY_MINUTE="*/1 * * * *",CronExpression2.EVERY_5_MINUTES="0 */5 * * * *",CronExpression2.EVERY_10_MINUTES="0 */10 * * * *",CronExpression2.EVERY_30_MINUTES="0 */30 * * * *",CronExpression2.EVERY_HOUR="0 0-23/1 * * *",CronExpression2.EVERY_2_HOURS="0 0-23/2 * * *",CronExpression2.EVERY_3_HOURS="0 0-23/3 * * *",CronExpression2.EVERY_4_HOURS="0 0-23/4 * * *",CronExpression2.EVERY_5_HOURS="0 0-23/5 * * *",CronExpression2.EVERY_6_HOURS="0 0-23/6 * * *",CronExpression2.EVERY_7_HOURS="0 0-23/7 * * *",CronExpression2.EVERY_8_HOURS="0 0-23/8 * * *",CronExpression2.EVERY_9_HOURS="0 0-23/9 * * *",CronExpression2.EVERY_10_HOURS="0 0-23/10 * * *",CronExpression2.EVERY_11_HOURS="0 0-23/11 * * *",CronExpression2.EVERY_12_HOURS="0 0-23/12 * * *",CronExpression2.EVERY_DAY_AT_1AM="0 01 * * *",CronExpression2.EVERY_DAY_AT_2AM="0 02 * * *",CronExpression2.EVERY_DAY_AT_3AM="0 03 * * *",CronExpression2.EVERY_DAY_AT_4AM="0 04 * * *",CronExpression2.EVERY_DAY_AT_5AM="0 05 * * *",CronExpression2.EVERY_DAY_AT_6AM="0 06 * * *",CronExpression2.EVERY_DAY_AT_7AM="0 07 * * *",CronExpression2.EVERY_DAY_AT_8AM="0 08 * * *",CronExpression2.EVERY_DAY_AT_9AM="0 09 * * *",CronExpression2.EVERY_DAY_AT_10AM="0 10 * * *",CronExpression2.EVERY_DAY_AT_11AM="0 11 * * *",CronExpression2.EVERY_DAY_AT_NOON="0 12 * * *",CronExpression2.EVERY_DAY_AT_1PM="0 13 * * *",CronExpression2.EVERY_DAY_AT_2PM="0 14 * * *",CronExpression2.EVERY_DAY_AT_3PM="0 15 * * *",CronExpression2.EVERY_DAY_AT_4PM="0 16 * * *",CronExpression2.EVERY_DAY_AT_5PM="0 17 * * *",CronExpression2.EVERY_DAY_AT_6PM="0 18 * * *",CronExpression2.EVERY_DAY_AT_7PM="0 19 * * *",CronExpression2.EVERY_DAY_AT_8PM="0 20 * * *",CronExpression2.EVERY_DAY_AT_9PM="0 21 * * *",CronExpression2.EVERY_DAY_AT_10PM="0 22 * * *",CronExpression2.EVERY_DAY_AT_11PM="0 23 * * *",CronExpression2.EVERY_DAY_AT_MIDNIGHT="0 0 * * *",CronExpression2.EVERY_WEEK="0 0 * * 0",CronExpression2.EVERY_WEEKDAY="0 0 * * 1-5",CronExpression2.EVERY_WEEKEND="0 0 * * 6,0",CronExpression2.EVERY_1ST_DAY_OF_MONTH_AT_MIDNIGHT="0 0 1 * *",CronExpression2.EVERY_1ST_DAY_OF_MONTH_AT_NOON="0 12 1 * *",CronExpression2.EVERY_2ND_HOUR="0 */2 * * *",CronExpression2.EVERY_2ND_HOUR_FROM_1AM_THROUGH_11PM="0 1-23/2 * * *",CronExpression2.EVERY_2ND_MONTH="0 0 1 */2 *",CronExpression2.EVERY_QUARTER="0 0 1 */3 *",CronExpression2.EVERY_6_MONTHS="0 0 1 */6 *",CronExpression2.EVERY_YEAR="0 0 1 1 *",CronExpression2.EVERY_30_MINUTES_BETWEEN_9AM_AND_5PM="0 */30 9-17 * * *",CronExpression2.EVERY_30_MINUTES_BETWEEN_9AM_AND_6PM="0 */30 9-18 * * *",CronExpression2.EVERY_30_MINUTES_BETWEEN_10AM_AND_7PM="0 */30 10-19 * * *",CronExpression2.MONDAY_TO_FRIDAY_AT_1AM="0 0 01 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_2AM="0 0 02 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_3AM="0 0 03 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_4AM="0 0 04 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_5AM="0 0 05 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_6AM="0 0 06 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_7AM="0 0 07 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_8AM="0 0 08 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_9AM="0 0 09 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_09_30AM="0 30 09 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_10AM="0 0 10 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_11AM="0 0 11 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_11_30AM="0 30 11 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_12PM="0 0 12 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_1PM="0 0 13 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_2PM="0 0 14 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_3PM="0 0 15 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_4PM="0 0 16 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_5PM="0 0 17 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_6PM="0 0 18 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_7PM="0 0 19 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_8PM="0 0 20 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_9PM="0 0 21 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_10PM="0 0 22 * * 1-5",CronExpression2.MONDAY_TO_FRIDAY_AT_11PM="0 0 23 * * 1-5"},95074:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CronExpression=void 0;var cron_expression_enum_1=__webpack_require__2(57385);Object.defineProperty(exports2,"CronExpression",{enumerable:!0,get:function(){return cron_expression_enum_1.CronExpression}})},38783:(__unused_webpack_module,exports2)=>{"use strict";var SchedulerType2;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SchedulerType=void 0,(SchedulerType2=exports2.SchedulerType||(exports2.SchedulerType={}))[SchedulerType2.CRON=1]="CRON",SchedulerType2[SchedulerType2.TIMEOUT=2]="TIMEOUT",SchedulerType2[SchedulerType2.INTERVAL=3]="INTERVAL"},11221:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports3){for(var p in m)"default"!==p&&!Object.prototype.hasOwnProperty.call(exports3,p)&&__createBinding(exports3,m,p)};Object.defineProperty(exports2,"__esModule",{value:!0}),__exportStar(__webpack_require__2(95074),exports2),__exportStar(__webpack_require__2(23509),exports2),__exportStar(__webpack_require__2(87499),exports2),__exportStar(__webpack_require__2(94665),exports2)},15946:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i2=decorators.length-1;i2>=0;i2--)(d=decorators[i2])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(k,v)};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SchedulerMetadataAccessor=void 0;const common_1=__webpack_require__2(28791),core_1=__webpack_require__2(30163),schedule_constants_1=__webpack_require__2(35343);let SchedulerMetadataAccessor=__name(class{constructor(reflector){this.reflector=reflector}getSchedulerType(target){return this.reflector.get(schedule_constants_1.SCHEDULER_TYPE,target)}getSchedulerName(target){return this.reflector.get(schedule_constants_1.SCHEDULER_NAME,target)}getTimeoutMetadata(target){return this.reflector.get(schedule_constants_1.SCHEDULE_TIMEOUT_OPTIONS,target)}getIntervalMetadata(target){return this.reflector.get(schedule_constants_1.SCHEDULE_INTERVAL_OPTIONS,target)}getCronMetadata(target){return this.reflector.get(schedule_constants_1.SCHEDULE_CRON_OPTIONS,target)}},"SchedulerMetadataAccessor");SchedulerMetadataAccessor=__decorate([(0,common_1.Injectable)(),__metadata("design:paramtypes",[core_1.Reflector])],SchedulerMetadataAccessor),exports2.SchedulerMetadataAccessor=SchedulerMetadataAccessor},35343:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SCHEDULE_TIMEOUT_OPTIONS=exports2.SCHEDULE_INTERVAL_OPTIONS=exports2.SCHEDULE_CRON_OPTIONS=exports2.SCHEDULER_TYPE=exports2.SCHEDULER_NAME=void 0,exports2.SCHEDULER_NAME="SCHEDULER_NAME",exports2.SCHEDULER_TYPE="SCHEDULER_TYPE",exports2.SCHEDULE_CRON_OPTIONS="SCHEDULE_CRON_OPTIONS",exports2.SCHEDULE_INTERVAL_OPTIONS="SCHEDULE_INTERVAL_OPTIONS",exports2.SCHEDULE_TIMEOUT_OPTIONS="SCHEDULE_TIMEOUT_OPTIONS"},63470:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i2=decorators.length-1;i2>=0;i2--)(d=decorators[i2])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(k,v)},__awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return __name(adopt,"adopt"),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){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}__name(fulfilled,"fulfilled"),__name(rejected,"rejected"),__name(step,"step"),step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ScheduleExplorer=void 0;const common_1=__webpack_require__2(28791),core_1=__webpack_require__2(30163),scheduler_type_enum_1=__webpack_require__2(38783),schedule_metadata_accessor_1=__webpack_require__2(15946),scheduler_orchestrator_1=__webpack_require__2(1429);let ScheduleExplorer=__name(class{constructor(schedulerOrchestrator,discoveryService,metadataAccessor,metadataScanner){this.schedulerOrchestrator=schedulerOrchestrator,this.discoveryService=discoveryService,this.metadataAccessor=metadataAccessor,this.metadataScanner=metadataScanner,this.logger=new common_1.Logger("Scheduler")}onModuleInit(){this.explore()}explore(){[...this.discoveryService.getControllers(),...this.discoveryService.getProviders()].forEach(wrapper=>{const{instance}=wrapper;!instance||!Object.getPrototypeOf(instance)||this.metadataScanner.scanFromPrototype(instance,Object.getPrototypeOf(instance),key=>wrapper.isDependencyTreeStatic()?this.lookupSchedulers(instance,key):this.warnForNonStaticProviders(wrapper,instance,key))})}lookupSchedulers(instance,key){const methodRef=instance[key];switch(this.metadataAccessor.getSchedulerType(methodRef)){case scheduler_type_enum_1.SchedulerType.CRON:{const cronMetadata=this.metadataAccessor.getCronMetadata(methodRef),cronFn=this.wrapFunctionInTryCatchBlocks(methodRef,instance);return this.schedulerOrchestrator.addCron(cronFn,cronMetadata)}case scheduler_type_enum_1.SchedulerType.TIMEOUT:{const timeoutMetadata=this.metadataAccessor.getTimeoutMetadata(methodRef),name=this.metadataAccessor.getSchedulerName(methodRef),timeoutFn=this.wrapFunctionInTryCatchBlocks(methodRef,instance);return this.schedulerOrchestrator.addTimeout(timeoutFn,timeoutMetadata.timeout,name)}case scheduler_type_enum_1.SchedulerType.INTERVAL:{const intervalMetadata=this.metadataAccessor.getIntervalMetadata(methodRef),name=this.metadataAccessor.getSchedulerName(methodRef),intervalFn=this.wrapFunctionInTryCatchBlocks(methodRef,instance);return this.schedulerOrchestrator.addInterval(intervalFn,intervalMetadata.timeout,name)}}}warnForNonStaticProviders(wrapper,instance,key){const methodRef=instance[key];switch(this.metadataAccessor.getSchedulerType(methodRef)){case scheduler_type_enum_1.SchedulerType.CRON:this.logger.warn(`Cannot register cron job "${wrapper.name}@${key}" because it is defined in a non static provider.`);break;case scheduler_type_enum_1.SchedulerType.TIMEOUT:this.logger.warn(`Cannot register timeout "${wrapper.name}@${key}" because it is defined in a non static provider.`);break;case scheduler_type_enum_1.SchedulerType.INTERVAL:this.logger.warn(`Cannot register interval "${wrapper.name}@${key}" because it is defined in a non static provider.`)}}wrapFunctionInTryCatchBlocks(methodRef,instance){return(...args2)=>__awaiter(this,void 0,void 0,function*(){try{yield methodRef.call(instance,...args2)}catch(error){this.logger.error(error)}})}},"ScheduleExplorer");ScheduleExplorer=__decorate([(0,common_1.Injectable)(),__metadata("design:paramtypes",[scheduler_orchestrator_1.SchedulerOrchestrator,core_1.DiscoveryService,schedule_metadata_accessor_1.SchedulerMetadataAccessor,core_1.MetadataScanner])],ScheduleExplorer),exports2.ScheduleExplorer=ScheduleExplorer},94998:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DUPLICATE_SCHEDULER=exports2.NO_SCHEDULER_FOUND=void 0;const NO_SCHEDULER_FOUND=__name((schedulerName,name)=>name?`No ${schedulerName} was found with the given name (${name}). Check that you created one with a decorator or with the create API.`:`No ${schedulerName} was found. Check your configuration.`,"NO_SCHEDULER_FOUND");exports2.NO_SCHEDULER_FOUND=NO_SCHEDULER_FOUND;const DUPLICATE_SCHEDULER=__name((schedulerName,name)=>`${schedulerName} with the given name (${name}) already exists. Ignored.`,"DUPLICATE_SCHEDULER");exports2.DUPLICATE_SCHEDULER=DUPLICATE_SCHEDULER},87499:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var ScheduleModule_1,__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i2=decorators.length-1;i2>=0;i2--)(d=decorators[i2])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ScheduleModule=void 0;const common_1=__webpack_require__2(28791),core_1=__webpack_require__2(30163),schedule_metadata_accessor_1=__webpack_require__2(15946),schedule_explorer_1=__webpack_require__2(63470),scheduler_orchestrator_1=__webpack_require__2(1429),scheduler_registry_1=__webpack_require__2(94665);let ScheduleModule=ScheduleModule_1=__name(class{static forRoot(){return{global:!0,module:ScheduleModule_1,providers:[schedule_explorer_1.ScheduleExplorer,scheduler_registry_1.SchedulerRegistry],exports:[scheduler_registry_1.SchedulerRegistry]}}},"ScheduleModule");ScheduleModule=ScheduleModule_1=__decorate([(0,common_1.Module)({imports:[core_1.DiscoveryModule],providers:[schedule_metadata_accessor_1.SchedulerMetadataAccessor,scheduler_orchestrator_1.SchedulerOrchestrator]})],ScheduleModule),exports2.ScheduleModule=ScheduleModule},1429:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i2=decorators.length-1;i2>=0;i2--)(d=decorators[i2])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(k,v)};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SchedulerOrchestrator=void 0;const common_1=__webpack_require__2(28791),cron_1=__webpack_require__2(13137),uuid_1=__webpack_require__2(82697),scheduler_registry_1=__webpack_require__2(94665);let SchedulerOrchestrator=__name(class{constructor(schedulerRegistry){this.schedulerRegistry=schedulerRegistry,this.cronJobs={},this.timeouts={},this.intervals={}}onApplicationBootstrap(){this.mountTimeouts(),this.mountIntervals(),this.mountCron()}onApplicationShutdown(){this.clearTimeouts(),this.clearIntervals(),this.closeCronJobs()}mountIntervals(){Object.keys(this.intervals).forEach(key=>{const options=this.intervals[key],intervalRef=setInterval(options.target,options.timeout);options.ref=intervalRef,this.schedulerRegistry.addInterval(key,intervalRef)})}mountTimeouts(){Object.keys(this.timeouts).forEach(key=>{const options=this.timeouts[key],timeoutRef=setTimeout(options.target,options.timeout);options.ref=timeoutRef,this.schedulerRegistry.addTimeout(key,timeoutRef)})}mountCron(){Object.keys(this.cronJobs).forEach(key=>{const{options,target}=this.cronJobs[key],cronJob=new cron_1.CronJob(options.cronTime,target,void 0,!1,options.timeZone,void 0,!1,options.utcOffset,options.unrefTimeout);cronJob.start(),this.cronJobs[key].ref=cronJob,this.schedulerRegistry.addCronJob(key,cronJob)})}clearTimeouts(){this.schedulerRegistry.getTimeouts().forEach(key=>this.schedulerRegistry.deleteTimeout(key))}clearIntervals(){this.schedulerRegistry.getIntervals().forEach(key=>this.schedulerRegistry.deleteInterval(key))}closeCronJobs(){Array.from(this.schedulerRegistry.getCronJobs().keys()).forEach(key=>this.schedulerRegistry.deleteCronJob(key))}addTimeout(methodRef,timeout,name=(0,uuid_1.v4)()){this.timeouts[name]={target:methodRef,timeout}}addInterval(methodRef,timeout,name=(0,uuid_1.v4)()){this.intervals[name]={target:methodRef,timeout}}addCron(methodRef,options){const name=options.name||(0,uuid_1.v4)();this.cronJobs[name]={target:methodRef,options}}},"SchedulerOrchestrator");SchedulerOrchestrator=__decorate([(0,common_1.Injectable)(),__metadata("design:paramtypes",[scheduler_registry_1.SchedulerRegistry])],SchedulerOrchestrator),exports2.SchedulerOrchestrator=SchedulerOrchestrator},94665:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i2=decorators.length-1;i2>=0;i2--)(d=decorators[i2])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SchedulerRegistry=void 0;const common_1=__webpack_require__2(28791),schedule_messages_1=__webpack_require__2(94998);let SchedulerRegistry=__name(class{constructor(){this.cronJobs=new Map,this.timeouts=new Map,this.intervals=new Map,this.doesExists=this.doesExist}doesExist(type,name){switch(type){case"cron":return this.cronJobs.has(name);case"interval":return this.intervals.has(name);case"timeout":return this.timeouts.has(name);default:return!1}}getCronJob(name){const ref=this.cronJobs.get(name);if(!ref)throw new Error((0,schedule_messages_1.NO_SCHEDULER_FOUND)("Cron Job",name));return ref}getInterval(name){const ref=this.intervals.get(name);if(void 0===ref)throw new Error((0,schedule_messages_1.NO_SCHEDULER_FOUND)("Interval",name));return ref}getTimeout(name){const ref=this.timeouts.get(name);if(void 0===ref)throw new Error((0,schedule_messages_1.NO_SCHEDULER_FOUND)("Timeout",name));return ref}addCronJob(name,job){if(this.cronJobs.get(name))throw new Error((0,schedule_messages_1.DUPLICATE_SCHEDULER)("Cron Job",name));this.cronJobs.set(name,job)}addInterval(name,intervalId){if(this.intervals.get(name))throw new Error((0,schedule_messages_1.DUPLICATE_SCHEDULER)("Interval",name));this.intervals.set(name,intervalId)}addTimeout(name,timeoutId){if(this.timeouts.get(name))throw new Error((0,schedule_messages_1.DUPLICATE_SCHEDULER)("Timeout",name));this.timeouts.set(name,timeoutId)}getCronJobs(){return this.cronJobs}deleteCronJob(name){this.getCronJob(name).stop(),this.cronJobs.delete(name)}getIntervals(){return[...this.intervals.keys()]}deleteInterval(name){const interval=this.getInterval(name);clearInterval(interval),this.intervals.delete(name)}getTimeouts(){return[...this.timeouts.keys()]}deleteTimeout(name){const timeout=this.getTimeout(name);clearTimeout(timeout),this.timeouts.delete(name)}},"SchedulerRegistry");SchedulerRegistry=__decorate([(0,common_1.Injectable)()],SchedulerRegistry),exports2.SchedulerRegistry=SchedulerRegistry},31143:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";function __export(m){for(var p in m)exports2.hasOwnProperty(p)||(exports2[p]=m[p])}__name(__export,"__export"),exports2.__esModule=!0,__export(__webpack_require__2(11221))},44962:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports3){for(var p in m)"default"!==p&&!Object.prototype.hasOwnProperty.call(exports3,p)&&__createBinding(exports3,m,p)};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.getStorageToken=exports2.getOptionsToken=void 0,__exportStar(__webpack_require__2(95412),exports2),__exportStar(__webpack_require__2(49051),exports2),__exportStar(__webpack_require__2(17575),exports2),__exportStar(__webpack_require__2(37336),exports2),__exportStar(__webpack_require__2(13235),exports2),__exportStar(__webpack_require__2(77747),exports2);var throttler_providers_1=__webpack_require__2(16206);Object.defineProperty(exports2,"getOptionsToken",{enumerable:!0,get:function(){return throttler_providers_1.getOptionsToken}}),Object.defineProperty(exports2,"getStorageToken",{enumerable:!0,get:function(){return throttler_providers_1.getStorageToken}}),__exportStar(__webpack_require__2(86044),exports2)},95412:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},49051:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ThrottlerStorage=void 0,exports2.ThrottlerStorage=Symbol("ThrottlerStorage")},82749:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.THROTTLER_SKIP=exports2.THROTTLER_OPTIONS=exports2.THROTTLER_TTL=exports2.THROTTLER_LIMIT=void 0,exports2.THROTTLER_LIMIT="THROTTLER:LIMIT",exports2.THROTTLER_TTL="THROTTLER:TTL",exports2.THROTTLER_OPTIONS="THROTTLER:MODULE_OPTIONS",exports2.THROTTLER_SKIP="THROTTLER:SKIP"},17575:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InjectThrottlerStorage=exports2.InjectThrottlerOptions=exports2.SkipThrottle=exports2.Throttle=void 0;const common_1=__webpack_require__2(28791),throttler_constants_1=__webpack_require__2(82749),throttler_providers_1=__webpack_require__2(16206);function setThrottlerMetadata(target,limit,ttl){Reflect.defineMetadata(throttler_constants_1.THROTTLER_TTL,ttl,target),Reflect.defineMetadata(throttler_constants_1.THROTTLER_LIMIT,limit,target)}__name(setThrottlerMetadata,"setThrottlerMetadata");const Throttle=__name((limit=20,ttl=60)=>(target,propertyKey,descriptor)=>descriptor?(setThrottlerMetadata(descriptor.value,limit,ttl),descriptor):(setThrottlerMetadata(target,limit,ttl),target),"Throttle");exports2.Throttle=Throttle;const SkipThrottle=__name((skip=!0)=>(target,propertyKey,descriptor)=>descriptor?(Reflect.defineMetadata(throttler_constants_1.THROTTLER_SKIP,skip,descriptor.value),descriptor):(Reflect.defineMetadata(throttler_constants_1.THROTTLER_SKIP,skip,target),target),"SkipThrottle");exports2.SkipThrottle=SkipThrottle;const InjectThrottlerOptions=__name(()=>(0,common_1.Inject)((0,throttler_providers_1.getOptionsToken)()),"InjectThrottlerOptions");exports2.InjectThrottlerOptions=InjectThrottlerOptions;const InjectThrottlerStorage=__name(()=>(0,common_1.Inject)((0,throttler_providers_1.getStorageToken)()),"InjectThrottlerStorage");exports2.InjectThrottlerStorage=InjectThrottlerStorage},37336:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ThrottlerException=exports2.throttlerMessage=void 0;const common_1=__webpack_require__2(28791);exports2.throttlerMessage="ThrottlerException: Too Many Requests";class ThrottlerException extends common_1.HttpException{constructor(message2){super(`${message2||exports2.throttlerMessage}`,common_1.HttpStatus.TOO_MANY_REQUESTS)}}__name(ThrottlerException,"ThrottlerException"),exports2.ThrottlerException=ThrottlerException},13235:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var _asyncToGenerator=__webpack_require__2(48926).default,__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i2=decorators.length-1;i2>=0;i2--)(d=decorators[i2])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(k,v)},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ThrottlerGuard=void 0;const common_1=__webpack_require__2(28791),core_1=__webpack_require__2(30163),md5=__webpack_require__2(49769),throttler_constants_1=(__webpack_require__2(49051),__webpack_require__2(82749)),throttler_decorator_1=__webpack_require__2(17575),throttler_exception_1=__webpack_require__2(37336);let ThrottlerGuard=__name(class{constructor(options,storageService,reflector){this.options=options,this.storageService=storageService,this.reflector=reflector,this.headerPrefix="X-RateLimit",this.errorMessage=throttler_exception_1.throttlerMessage}canActivate(context){var _this=this;return _asyncToGenerator(function*(){const handler=context.getHandler(),classRef=context.getClass();if(_this.reflector.getAllAndOverride(throttler_constants_1.THROTTLER_SKIP,[handler,classRef]))return!0;const routeOrClassLimit=_this.reflector.getAllAndOverride(throttler_constants_1.THROTTLER_LIMIT,[handler,classRef]),routeOrClassTtl=_this.reflector.getAllAndOverride(throttler_constants_1.THROTTLER_TTL,[handler,classRef]),limit=routeOrClassLimit||_this.options.limit,ttl=routeOrClassTtl||_this.options.ttl;return _this.handleRequest(context,limit,ttl)})()}handleRequest(context,limit,ttl){var _this2=this;return _asyncToGenerator(function*(){const{req,res}=_this2.getRequestResponse(context);if(Array.isArray(_this2.options.ignoreUserAgents))for(const pattern of _this2.options.ignoreUserAgents)if(pattern.test(req.headers["user-agent"]))return!0;const tracker=_this2.getTracker(req),key=_this2.generateKey(context,tracker),ttls=yield _this2.storageService.getRecord(key),nearestExpiryTime=ttls.length>0?Math.ceil((ttls[0]-Date.now())/1e3):0;return ttls.length>=limit&&(res.header("Retry-After",nearestExpiryTime),_this2.throwThrottlingException(context)),res.header(`${_this2.headerPrefix}-Limit`,limit),res.header(`${_this2.headerPrefix}-Remaining`,Math.max(0,limit-(ttls.length+1))),res.header(`${_this2.headerPrefix}-Reset`,nearestExpiryTime),yield _this2.storageService.addRecord(key,ttl),!0})()}getTracker(req){return req.ip}getRequestResponse(context){const http=context.switchToHttp();return{req:http.getRequest(),res:http.getResponse()}}generateKey(context,suffix){const prefix=`${context.getClass().name}-${context.getHandler().name}`;return md5(`${prefix}-${suffix}`)}throwThrottlingException(context){throw new throttler_exception_1.ThrottlerException(this.errorMessage)}},"ThrottlerGuard");ThrottlerGuard=__decorate([(0,common_1.Injectable)(),__param(0,(0,throttler_decorator_1.InjectThrottlerOptions)()),__param(1,(0,throttler_decorator_1.InjectThrottlerStorage)()),__metadata("design:paramtypes",[Object,Object,core_1.Reflector])],ThrottlerGuard),exports2.ThrottlerGuard=ThrottlerGuard},77747:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var ThrottlerModule_1,_asyncToGenerator=__webpack_require__2(48926).default,__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i2=decorators.length-1;i2>=0;i2--)(d=decorators[i2])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ThrottlerModule=void 0;const common_1=__webpack_require__2(28791),throttler_constants_1=__webpack_require__2(82749),throttler_providers_1=__webpack_require__2(16206);let ThrottlerModule=ThrottlerModule_1=__name(class{static forRoot(options={}){const providers=[...(0,throttler_providers_1.createThrottlerProviders)(options),throttler_providers_1.ThrottlerStorageProvider];return{module:ThrottlerModule_1,providers,exports:providers}}static forRootAsync(options){const providers=[...this.createAsyncProviders(options),throttler_providers_1.ThrottlerStorageProvider];return{module:ThrottlerModule_1,imports:options.imports||[],providers,exports:providers}}static createAsyncProviders(options){return options.useExisting||options.useFactory?[this.createAsyncOptionsProvider(options)]:[this.createAsyncOptionsProvider(options),{provide:options.useClass,useClass:options.useClass}]}static createAsyncOptionsProvider(options){return options.useFactory?{provide:throttler_constants_1.THROTTLER_OPTIONS,useFactory:options.useFactory,inject:options.inject||[]}:{provide:throttler_constants_1.THROTTLER_OPTIONS,useFactory:(_ref=_asyncToGenerator(function*(optionsFactory){return yield optionsFactory.createThrottlerOptions()}),__name(function(_x){return _ref.apply(this,arguments)},"useFactory")),inject:[options.useExisting||options.useClass]};var _ref}},"ThrottlerModule");ThrottlerModule=ThrottlerModule_1=__decorate([(0,common_1.Global)(),(0,common_1.Module)({})],ThrottlerModule),exports2.ThrottlerModule=ThrottlerModule},16206:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.getStorageToken=exports2.getOptionsToken=exports2.ThrottlerStorageProvider=exports2.createThrottlerProviders=void 0;const throttler_storage_interface_1=__webpack_require__2(49051),throttler_constants_1=__webpack_require__2(82749),throttler_service_1=__webpack_require__2(86044);function createThrottlerProviders(options){return[{provide:throttler_constants_1.THROTTLER_OPTIONS,useValue:options}]}__name(createThrottlerProviders,"createThrottlerProviders"),exports2.createThrottlerProviders=createThrottlerProviders,exports2.ThrottlerStorageProvider={provide:throttler_storage_interface_1.ThrottlerStorage,useFactory:options=>options.storage?options.storage:new throttler_service_1.ThrottlerStorageService,inject:[throttler_constants_1.THROTTLER_OPTIONS]};const getOptionsToken=__name(()=>throttler_constants_1.THROTTLER_OPTIONS,"getOptionsToken");exports2.getOptionsToken=getOptionsToken;const getStorageToken=__name(()=>throttler_storage_interface_1.ThrottlerStorage,"getStorageToken");exports2.getStorageToken=getStorageToken},86044:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var _asyncToGenerator=__webpack_require__2(48926).default,__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i2=decorators.length-1;i2>=0;i2--)(d=decorators[i2])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ThrottlerStorageService=void 0;const common_1=__webpack_require__2(28791);let ThrottlerStorageService=__name(class{constructor(){this._storage={},this.timeoutIds=[]}get storage(){return this._storage}getRecord(key){var _this=this;return _asyncToGenerator(function*(){return _this.storage[key]||[]})()}addRecord(key,ttl){var _this2=this;return _asyncToGenerator(function*(){const ttlMilliseconds=1e3*ttl;_this2.storage[key]||(_this2.storage[key]=[]),_this2.storage[key].push(Date.now()+ttlMilliseconds);const timeoutId=setTimeout(()=>{_this2.storage[key].shift(),clearTimeout(timeoutId),_this2.timeoutIds=_this2.timeoutIds.filter(id=>id!=timeoutId)},ttlMilliseconds);_this2.timeoutIds.push(timeoutId)})()}onApplicationShutdown(){this.timeoutIds.forEach(clearTimeout)}},"ThrottlerStorageService");ThrottlerStorageService=__decorate([(0,common_1.Injectable)()],ThrottlerStorageService),exports2.ThrottlerStorageService=ThrottlerStorageService},35099:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports3){for(var p in m)"default"!==p&&!Object.prototype.hasOwnProperty.call(exports3,p)&&__createBinding(exports3,m,p)};Object.defineProperty(exports2,"__esModule",{value:!0}),__exportStar(__webpack_require__2(48742),exports2),__exportStar(__webpack_require__2(41789),exports2)},48742:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InjectEntityManager=exports2.InjectConnection=exports2.InjectRepository=void 0;const common_1=__webpack_require__2(28791),typeorm_constants_1=__webpack_require__2(73694),typeorm_utils_1=__webpack_require__2(41789),InjectRepository=__name((entity,connection=typeorm_constants_1.DEFAULT_CONNECTION_NAME)=>(0,common_1.Inject)((0,typeorm_utils_1.getRepositoryToken)(entity,connection)),"InjectRepository");exports2.InjectRepository=InjectRepository;const InjectConnection=__name(connection=>(0,common_1.Inject)((0,typeorm_utils_1.getConnectionToken)(connection)),"InjectConnection");exports2.InjectConnection=InjectConnection;const InjectEntityManager=__name(connection=>(0,common_1.Inject)((0,typeorm_utils_1.getEntityManagerToken)(connection)),"InjectEntityManager");exports2.InjectEntityManager=InjectEntityManager},41789:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.generateString=exports2.getConnectionName=exports2.handleRetry=exports2.getEntityManagerToken=exports2.getConnectionPrefix=exports2.getConnectionToken=exports2.getCustomRepositoryToken=exports2.getRepositoryToken=void 0;const common_1=__webpack_require__2(28791),operators_1=__webpack_require__2(83292),typeorm_1=__webpack_require__2(92274),uuid_1=__webpack_require__2(82697),circular_dependency_exception_1=__webpack_require__2(85480),typeorm_constants_1=__webpack_require__2(73694),logger=new common_1.Logger("TypeOrmModule");function getRepositoryToken(entity,connection=typeorm_constants_1.DEFAULT_CONNECTION_NAME){if(null==entity)throw new circular_dependency_exception_1.CircularDependencyException("@InjectRepository()");const connectionPrefix=getConnectionPrefix(connection);return entity instanceof Function&&(entity.prototype instanceof typeorm_1.Repository||entity.prototype instanceof typeorm_1.AbstractRepository)?connectionPrefix?`${connectionPrefix}${getCustomRepositoryToken(entity)}`:entity:entity instanceof typeorm_1.EntitySchema?`${connectionPrefix}${entity.options.target?entity.options.target.name:entity.options.name}Repository`:`${connectionPrefix}${entity.name}Repository`}function getCustomRepositoryToken(repository){if(null==repository)throw new circular_dependency_exception_1.CircularDependencyException("@InjectRepository()");return repository.name}function getConnectionToken(connection=typeorm_constants_1.DEFAULT_CONNECTION_NAME){return typeorm_constants_1.DEFAULT_CONNECTION_NAME===connection?typeorm_1.Connection:"string"==typeof connection?`${connection}Connection`:typeorm_constants_1.DEFAULT_CONNECTION_NAME!==connection.name&&connection.name?`${connection.name}Connection`:typeorm_1.Connection}function getConnectionPrefix(connection=typeorm_constants_1.DEFAULT_CONNECTION_NAME){return connection===typeorm_constants_1.DEFAULT_CONNECTION_NAME?"":"string"==typeof connection?connection+"_":connection.name!==typeorm_constants_1.DEFAULT_CONNECTION_NAME&&connection.name?connection.name+"_":""}function getEntityManagerToken(connection=typeorm_constants_1.DEFAULT_CONNECTION_NAME){return typeorm_constants_1.DEFAULT_CONNECTION_NAME===connection?typeorm_1.EntityManager:"string"==typeof connection?`${connection}EntityManager`:typeorm_constants_1.DEFAULT_CONNECTION_NAME!==connection.name&&connection.name?`${connection.name}EntityManager`:typeorm_1.EntityManager}function handleRetry(retryAttempts=9,retryDelay=3e3,connectionName=typeorm_constants_1.DEFAULT_CONNECTION_NAME,verboseRetryLog=!1,toRetry){return source=>source.pipe((0,operators_1.retryWhen)(e=>e.pipe((0,operators_1.scan)((errorCount,error)=>{if(toRetry&&!toRetry(error))throw error;const connectionInfo=connectionName===typeorm_constants_1.DEFAULT_CONNECTION_NAME?"":` (${connectionName})`,verboseMessage=verboseRetryLog?` Message: ${error.message}.`:"";if(logger.error(`Unable to connect to the database${connectionInfo}.${verboseMessage} Retrying (${errorCount+1})...`,error.stack),errorCount+1>=retryAttempts)throw error;return errorCount+1},0),(0,operators_1.delay)(retryDelay))))}function getConnectionName(options){return options&&options.name?options.name:typeorm_constants_1.DEFAULT_CONNECTION_NAME}__name(getRepositoryToken,"getRepositoryToken"),exports2.getRepositoryToken=getRepositoryToken,__name(getCustomRepositoryToken,"getCustomRepositoryToken"),exports2.getCustomRepositoryToken=getCustomRepositoryToken,__name(getConnectionToken,"getConnectionToken"),exports2.getConnectionToken=getConnectionToken,__name(getConnectionPrefix,"getConnectionPrefix"),exports2.getConnectionPrefix=getConnectionPrefix,__name(getEntityManagerToken,"getEntityManagerToken"),exports2.getEntityManagerToken=getEntityManagerToken,__name(handleRetry,"handleRetry"),exports2.handleRetry=handleRetry,__name(getConnectionName,"getConnectionName"),exports2.getConnectionName=getConnectionName;const generateString=__name(()=>(0,uuid_1.v4)(),"generateString");exports2.generateString=generateString},16371:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.EntitiesMetadataStorage=void 0;class EntitiesMetadataStorage{static addEntitiesByConnection(connection,entities){const connectionToken="string"==typeof connection?connection:connection.name;if(!connectionToken)return;let collection=this.storage.get(connectionToken);collection||(collection=[],this.storage.set(connectionToken,collection)),entities.forEach(entity=>{collection.includes(entity)||collection.push(entity)})}static getEntitiesByConnection(connection){const connectionToken="string"==typeof connection?connection:connection.name;return connectionToken&&this.storage.get(connectionToken)||[]}}__name(EntitiesMetadataStorage,"EntitiesMetadataStorage"),exports2.EntitiesMetadataStorage=EntitiesMetadataStorage,EntitiesMetadataStorage.storage=new Map},85480:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CircularDependencyException=void 0;class CircularDependencyException extends Error{constructor(context){super(`A circular dependency has been detected${context?` inside ${context}`:""}. Please, make sure that each side of a bidirectional relationships are decorated with "forwardRef()". Also, try to eliminate barrel files because they can lead to an unexpected behavior too.`)}}__name(CircularDependencyException,"CircularDependencyException"),exports2.CircularDependencyException=CircularDependencyException},21996:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.getCustomRepositoryEntity=void 0;const typeorm_1=__webpack_require__2(92274);function getCustomRepositoryEntity(entities){const customRepositoryEntities=new Array,typeormEntityRepositories=(0,typeorm_1.getMetadataArgsStorage)().entityRepositories;for(const entity of entities)if(entity instanceof Function&&(entity.prototype instanceof typeorm_1.Repository||entity.prototype instanceof typeorm_1.AbstractRepository)){const entityRepositoryMetadataArgs=typeormEntityRepositories.find(repository=>{var _a;return repository.target===(entity instanceof Function?entity:null===(_a=entity)||void 0===_a?void 0:_a.constructor)});if(entityRepositoryMetadataArgs){const targetEntity=entityRepositoryMetadataArgs.entity;-1!==entities.indexOf(targetEntity)||customRepositoryEntities.push(targetEntity)}}return customRepositoryEntities}__name(getCustomRepositoryEntity,"getCustomRepositoryEntity"),exports2.getCustomRepositoryEntity=getCustomRepositoryEntity},9175:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports3){for(var p in m)"default"!==p&&!Object.prototype.hasOwnProperty.call(exports3,p)&&__createBinding(exports3,m,p)};Object.defineProperty(exports2,"__esModule",{value:!0}),__exportStar(__webpack_require__2(35099),exports2),__exportStar(__webpack_require__2(66369),exports2),__exportStar(__webpack_require__2(97605),exports2)},66369:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports3){for(var p in m)"default"!==p&&!Object.prototype.hasOwnProperty.call(exports3,p)&&__createBinding(exports3,m,p)};Object.defineProperty(exports2,"__esModule",{value:!0}),__exportStar(__webpack_require__2(49931),exports2)},49931:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},23634:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var TypeOrmCoreModule_1,__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i2=decorators.length-1;i2>=0;i2--)(d=decorators[i2])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(k,v)},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},__awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return __name(adopt,"adopt"),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){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}__name(fulfilled,"fulfilled"),__name(rejected,"rejected"),__name(step,"step"),step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.TypeOrmCoreModule=void 0;const common_1=__webpack_require__2(28791),core_1=__webpack_require__2(30163),rxjs_1=__webpack_require__2(76477),typeorm_1=__webpack_require__2(92274),typeorm_utils_1=__webpack_require__2(41789),entities_metadata_storage_1=__webpack_require__2(16371),typeorm_constants_1=__webpack_require__2(73694);let TypeOrmCoreModule=TypeOrmCoreModule_1=__name(class{constructor(options,moduleRef){this.options=options,this.moduleRef=moduleRef,this.logger=new common_1.Logger("TypeOrmModule")}static forRoot(options={}){const typeOrmModuleOptions={provide:typeorm_constants_1.TYPEORM_MODULE_OPTIONS,useValue:options},connectionProvider={provide:(0,typeorm_utils_1.getConnectionToken)(options),useFactory:()=>__awaiter(this,void 0,void 0,function*(){return yield this.createConnectionFactory(options)})},entityManagerProvider=this.createEntityManagerProvider(options);return{module:TypeOrmCoreModule_1,providers:[entityManagerProvider,connectionProvider,typeOrmModuleOptions],exports:[entityManagerProvider,connectionProvider]}}static forRootAsync(options){const connectionProvider={provide:(0,typeorm_utils_1.getConnectionToken)(options),useFactory:typeOrmOptions=>__awaiter(this,void 0,void 0,function*(){return options.name?yield this.createConnectionFactory(Object.assign(Object.assign({},typeOrmOptions),{name:options.name}),options.connectionFactory):yield this.createConnectionFactory(typeOrmOptions,options.connectionFactory)}),inject:[typeorm_constants_1.TYPEORM_MODULE_OPTIONS]},entityManagerProvider={provide:(0,typeorm_utils_1.getEntityManagerToken)(options),useFactory:connection=>connection.manager,inject:[(0,typeorm_utils_1.getConnectionToken)(options)]},asyncProviders=this.createAsyncProviders(options);return{module:TypeOrmCoreModule_1,imports:options.imports,providers:[...asyncProviders,entityManagerProvider,connectionProvider,{provide:typeorm_constants_1.TYPEORM_MODULE_ID,useValue:(0,typeorm_utils_1.generateString)()}],exports:[entityManagerProvider,connectionProvider]}}onApplicationShutdown(){return __awaiter(this,void 0,void 0,function*(){if(this.options.keepConnectionAlive)return;const connection=this.moduleRef.get((0,typeorm_utils_1.getConnectionToken)(this.options));try{connection&&(yield connection.close())}catch(e){this.logger.error(null==e?void 0:e.message)}})}static createAsyncProviders(options){if(options.useExisting||options.useFactory)return[this.createAsyncOptionsProvider(options)];const useClass=options.useClass;return[this.createAsyncOptionsProvider(options),{provide:useClass,useClass}]}static createAsyncOptionsProvider(options){if(options.useFactory)return{provide:typeorm_constants_1.TYPEORM_MODULE_OPTIONS,useFactory:options.useFactory,inject:options.inject||[]};const inject=[options.useClass||options.useExisting];return{provide:typeorm_constants_1.TYPEORM_MODULE_OPTIONS,useFactory:optionsFactory=>__awaiter(this,void 0,void 0,function*(){return yield optionsFactory.createTypeOrmOptions(options.name)}),inject}}static createEntityManagerProvider(options){return{provide:(0,typeorm_utils_1.getEntityManagerToken)(options),useFactory:connection=>connection.manager,inject:[(0,typeorm_utils_1.getConnectionToken)(options)]}}static createConnectionFactory(options,connectionFactory){return __awaiter(this,void 0,void 0,function*(){const connectionToken=(0,typeorm_utils_1.getConnectionName)(options),createTypeormConnection=null!=connectionFactory?connectionFactory:typeorm_1.createConnection;return yield(0,rxjs_1.lastValueFrom)((0,rxjs_1.defer)(()=>{try{if(options.keepConnectionAlive){const connectionName=(0,typeorm_utils_1.getConnectionName)(options),manager=(0,typeorm_1.getConnectionManager)();if(manager.has(connectionName)){const connection=manager.get(connectionName);if(connection.isConnected)return(0,rxjs_1.of)(connection)}}}catch{}if(!options.type)return createTypeormConnection();if(!options.autoLoadEntities)return createTypeormConnection(options);let entities=options.entities;return entities=entities?entities.concat(entities_metadata_storage_1.EntitiesMetadataStorage.getEntitiesByConnection(connectionToken)):entities_metadata_storage_1.EntitiesMetadataStorage.getEntitiesByConnection(connectionToken),createTypeormConnection(Object.assign(Object.assign({},options),{entities}))}).pipe((0,typeorm_utils_1.handleRetry)(options.retryAttempts,options.retryDelay,connectionToken,options.verboseRetryLog,options.toRetry)))})}},"TypeOrmCoreModule");TypeOrmCoreModule=TypeOrmCoreModule_1=__decorate([(0,common_1.Global)(),(0,common_1.Module)({}),__param(0,(0,common_1.Inject)(typeorm_constants_1.TYPEORM_MODULE_OPTIONS)),__metadata("design:paramtypes",[Object,core_1.ModuleRef])],TypeOrmCoreModule),exports2.TypeOrmCoreModule=TypeOrmCoreModule},73694:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DEFAULT_CONNECTION_NAME=exports2.TYPEORM_MODULE_ID=exports2.TYPEORM_MODULE_OPTIONS=void 0,exports2.TYPEORM_MODULE_OPTIONS="TypeOrmModuleOptions",exports2.TYPEORM_MODULE_ID="TypeOrmModuleId",exports2.DEFAULT_CONNECTION_NAME="default"},97605:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var TypeOrmModule_1,__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i2=decorators.length-1;i2>=0;i2--)(d=decorators[i2])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.TypeOrmModule=void 0;const common_1=__webpack_require__2(28791),entities_metadata_storage_1=__webpack_require__2(16371),get_custom_repository_entity_1=__webpack_require__2(21996),typeorm_core_module_1=__webpack_require__2(23634),typeorm_constants_1=__webpack_require__2(73694),typeorm_providers_1=__webpack_require__2(4024);let TypeOrmModule=TypeOrmModule_1=__name(class{static forRoot(options){return{module:TypeOrmModule_1,imports:[typeorm_core_module_1.TypeOrmCoreModule.forRoot(options)]}}static forFeature(entities=[],connection=typeorm_constants_1.DEFAULT_CONNECTION_NAME){const providers=(0,typeorm_providers_1.createTypeOrmProviders)(entities,connection),customRepositoryEntities=(0,get_custom_repository_entity_1.getCustomRepositoryEntity)(entities);return entities_metadata_storage_1.EntitiesMetadataStorage.addEntitiesByConnection(connection,[...entities,...customRepositoryEntities]),{module:TypeOrmModule_1,providers,exports:providers}}static forRootAsync(options){return{module:TypeOrmModule_1,imports:[typeorm_core_module_1.TypeOrmCoreModule.forRootAsync(options)]}}},"TypeOrmModule");TypeOrmModule=TypeOrmModule_1=__decorate([(0,common_1.Module)({})],TypeOrmModule),exports2.TypeOrmModule=TypeOrmModule},4024:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.createTypeOrmProviders=void 0;const typeorm_1=__webpack_require__2(92274),typeorm_utils_1=__webpack_require__2(41789);function createTypeOrmProviders(entities,connection){return(entities||[]).map(entity=>({provide:(0,typeorm_utils_1.getRepositoryToken)(entity,connection),useFactory:connection2=>entity instanceof Function&&(entity.prototype instanceof typeorm_1.Repository||entity.prototype instanceof typeorm_1.AbstractRepository)?connection2.getCustomRepository(entity):"mongodb"===connection2.options.type?connection2.getMongoRepository(entity):connection2.getRepository(entity),inject:[(0,typeorm_utils_1.getConnectionToken)(connection)],targetEntitySchema:(0,typeorm_1.getMetadataArgsStorage)().tables.find(item=>item.target===entity)}))}__name(createTypeOrmProviders,"createTypeOrmProviders"),exports2.createTypeOrmProviders=createTypeOrmProviders},13791:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";function __export(m){for(var p in m)exports2.hasOwnProperty(p)||(exports2[p]=m[p])}__name(__export,"__export"),exports2.__esModule=!0,__export(__webpack_require__2(9175))},65794:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ERROR_EVENT=exports2.CLOSE_EVENT=exports2.DISCONNECT_EVENT=exports2.CONNECTION_EVENT=exports2.PARAM_ARGS_METADATA=exports2.GATEWAY_OPTIONS=exports2.PORT_METADATA=exports2.NAMESPACE_METADATA=exports2.GATEWAY_METADATA=exports2.GATEWAY_SERVER_METADATA=exports2.MESSAGE_METADATA=exports2.MESSAGE_MAPPING_METADATA=void 0;const constants_1=__webpack_require__2(75441);exports2.MESSAGE_MAPPING_METADATA="websockets:message_mapping",exports2.MESSAGE_METADATA="message",exports2.GATEWAY_SERVER_METADATA="websockets:is_socket",exports2.GATEWAY_METADATA="websockets:is_gateway",exports2.NAMESPACE_METADATA="namespace",exports2.PORT_METADATA="port",exports2.GATEWAY_OPTIONS="websockets:gateway_options",exports2.PARAM_ARGS_METADATA=constants_1.ROUTE_ARGS_METADATA,exports2.CONNECTION_EVENT="connection",exports2.DISCONNECT_EVENT="disconnect",exports2.CLOSE_EVENT="close",exports2.ERROR_EVENT="error"},23038:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const tslib_1=__webpack_require__2(70655);__webpack_require__2(58836),__webpack_require__2(55466),tslib_1.__exportStar(__webpack_require__2(81789),exports2)},79309:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SocketIoAdapter=void 0;const platform_socket_io_1=__webpack_require__2(2312),typeorm_1=__webpack_require__2(92274),api_key_service_1=__webpack_require__2(87044),config_service_1=__webpack_require__2(94315),global_service_1=__webpack_require__2(40735);class SocketIoAdapter extends platform_socket_io_1.IoAdapter{constructor(app){super(app.getHttpServer()),this.app=app,this.aks=this.app.get(api_key_service_1.ApiKeyService),this.cfg=this.app.get(config_service_1.ConfigService),this.gs=this.app.get(global_service_1.GlobalService)}createIOServer(port,options){var _this=this;return options.allowEIO3=!0,options.cors=this.aks.getCorsOptions(),options.allowRequest=function(){var _ref=_asyncToGenerator(function*(req,callback){const clientOriginIpCc=_this.aks.getOriginIpCc(req),key=new URLSearchParams(req.url.substring(req.url.indexOf("?"))).get("key")||"";if(_this.gs.log("[SOCKET_IO_ADAPTER-UPGRADE_ORIGIN_KEY] \u{1f4cf}",`${key} @ ${clientOriginIpCc.origin_ip}`),_this.cfg.domainIpBypass.includes(clientOriginIpCc.origin_ip))return callback(null,!0);try{return(yield _this.aks.count({where:[{ip_domain:(0,typeorm_1.ILike)(`%${clientOriginIpCc.origin_ip}%`),api_key:(0,typeorm_1.Equal)(key)}]}))>0?callback(null,!0):callback(null,!1)}catch(error){return _this.gs.log("[SOCKET_IO_ADAPTER-UPGRADE_ERROR] \u{1f4cf}",error,"error"),callback(error,!1)}});return function(_x,_x2){return _ref.apply(this,arguments)}}(),super.createIOServer(port,options)}}__name(SocketIoAdapter,"SocketIoAdapter"),exports2.SocketIoAdapter=SocketIoAdapter},14741:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AppController=void 0;const tslib_1=__webpack_require__2(70655),node_fs_1=__webpack_require__2(35404),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),environment_1=__webpack_require__2(17482),filter_api_key_access_decorator_1=__webpack_require__2(18834),global_service_1=__webpack_require__2(40735);let AppController=__name(class{constructor(gs){this.gs=gs}discordVerify(){return _asyncToGenerator(function*(){return{url:`\n https://discord.com/api/oauth2/authorize\n ?redirect_uri=${encodeURIComponent(`${environment_1.environment.baseUrl}/verify?app=discord`)}\n &client_id=${environment_1.environment.discord.client_id}\n &response_type=code\n &scope=${encodeURIComponent("identify email guilds.join")}\n `.replace(/\s+/g,"").trim(),statusCode:301}})()}googleVerify(){return _asyncToGenerator(function*(){return{url:`\n ${environment_1.environment.gCloudPlatform.app.auth_uri}\n ?redirect_uri=${encodeURIComponent(`${environment_1.environment.baseUrl}/verify?app=google`)}\n &client_id=${environment_1.environment.gCloudPlatform.app.client_id}\n &prompt=consent&response_type=code\n &scope=${encodeURIComponent(environment_1.environment.gCloudPlatform.app.scopes.join(" "))}\n &access_type=offline\n &service=lso\n &o2v=2\n &flowName=GeneralOAuthFlow\n `.replace(/\s+/g,"").trim(),statusCode:301}})()}resetPassword(req,res){var _this=this;return _asyncToGenerator(function*(){const currDate=new Date,season=_this.gs.seasonal.find(sB=>sB.id===Math.ceil((currDate.getMonth()+1)/3)).name,files=(0,node_fs_1.readdirSync)(`${environment_1.environment.viewFolder}/assets/img/backdrop/`,{withFileTypes:!0}),fIdx=files.findIndex(f2=>f2.name.includes(`${season}`));return res.download(`${environment_1.environment.viewFolder}/assets/img/backdrop/${files[fIdx].name}`,files[fIdx].name,function(){var _ref=_asyncToGenerator(function*(e){e&&_this.gs.log("[RES_DOWNLOAD_IMAGE_BACKDROP-ERROR] \u{1f53b}",e,"error")});return function(_x){return _ref.apply(this,arguments)}}())})()}},"AppController");tslib_1.__decorate([(0,common_1.Get)("/discord-verifikasi"),(0,common_1.HttpCode)(301),(0,common_1.Redirect)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[]),tslib_1.__metadata("design:returntype",Promise)],AppController.prototype,"discordVerify",null),tslib_1.__decorate([(0,common_1.Get)("/google-verifikasi"),(0,common_1.HttpCode)(301),(0,common_1.Redirect)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[]),tslib_1.__metadata("design:returntype",Promise)],AppController.prototype,"googleVerify",null),tslib_1.__decorate([(0,common_1.Get)("/img-seasonal-backdrop"),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)()),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],AppController.prototype,"resetPassword",null),AppController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/"),tslib_1.__metadata("design:paramtypes",[global_service_1.GlobalService])],AppController),exports2.AppController=AppController},50841:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AppModule=void 0;const tslib_1=__webpack_require__2(70655),chalk_1=__webpack_require__2(88930),express_throttle_bandwidth_1=tslib_1.__importDefault(__webpack_require__2(83504)),node_path_1=__webpack_require__2(38791),common_1=__webpack_require__2(28791),ng_universal_1=__webpack_require__2(25674),typeorm_1=__webpack_require__2(13791),core_1=__webpack_require__2(30163),nest_morgan_1=__webpack_require__2(89723),throttler_1=__webpack_require__2(44962),schedule_1=__webpack_require__2(31143),core_2=__webpack_require__2(20664),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),main_server_1=__webpack_require__2(81789),app_controller_1=__webpack_require__2(14741),aktivasi_controller_1=__webpack_require__2(608),anime_controller_1=__webpack_require__2(85310),anime_berkas_controller_1=__webpack_require__2(85536),anime_fansub_controller_1=__webpack_require__2(99488),anime_seasonal_controller_1=__webpack_require__2(98568),api_key_controller_1=__webpack_require__2(39298),attachment_controller_1=__webpack_require__2(97558),banned_controller_1=__webpack_require__2(77685),berkas_controller_1=__webpack_require__2(35348),comment_controller_1=__webpack_require__2(56209),crawl_controller_1=__webpack_require__2(94685),ddl_file_controller_1=__webpack_require__2(66490),dorama_controller_1=__webpack_require__2(7491),dorama_berkas_controller_1=__webpack_require__2(55100),dorama_fansub_controller_1=__webpack_require__2(3902),dorama_seasonal_controller_1=__webpack_require__2(84306),fansub_controller_1=__webpack_require__2(59554),fansub_all_controller_1=__webpack_require__2(58864),fansub_anime_controller_1=__webpack_require__2(3275),fansub_berkas_controller_1=__webpack_require__2(89672),fansub_dns_controller_1=__webpack_require__2(99298),fansub_dorama_controller_1=__webpack_require__2(36355),fansub_member_controller_1=__webpack_require__2(3238),fansub_rss_feed_active_controller_1=__webpack_require__2(39938),fansub_rss_feed_all_controller_1=__webpack_require__2(85834),fansub_slug_controller_1=__webpack_require__2(22780),image_controller_1=__webpack_require__2(62641),information_controller_1=__webpack_require__2(71806),likedislike_controller_1=__webpack_require__2(4515),login_controller_1=__webpack_require__2(61406),logout_controller_1=__webpack_require__2(76414),lost_account_find_controller_1=__webpack_require__2(73004),lost_account_reset_controller_1=__webpack_require__2(75583),mail_controller_1=__webpack_require__2(33989),mail_inbox_controller_1=__webpack_require__2(12902),mail_outbox_controller_1=__webpack_require__2(7450),mail_webhook_controller_1=__webpack_require__2(65104),news_controller_1=__webpack_require__2(64554),nihongo_controller_1=__webpack_require__2(57820),nihongo_edict_controller_1=__webpack_require__2(61401),nihongo_hirakata_controller_1=__webpack_require__2(36981),nihongo_hirakata_all_controller_1=__webpack_require__2(40870),nihongo_kanji_controller_1=__webpack_require__2(26744),nihongo_kanjivg_controller_1=__webpack_require__2(82845),nihongo_tatoeba_controller_1=__webpack_require__2(22349),notification_controller_1=__webpack_require__2(64023),project_type_controller_1=__webpack_require__2(61029),promote_controller_1=__webpack_require__2(29528),quiz_leaderboard_controller_1=__webpack_require__2(65663),register_controller_1=__webpack_require__2(37936),task_cron_job_controller_1=__webpack_require__2(64287),torrent_controller_1=__webpack_require__2(72204),user_controller_1=__webpack_require__2(59289),verify_controller_1=__webpack_require__2(70177),verify_ktp_controller_1=__webpack_require__2(34023),verify_nik_controller_1=__webpack_require__2(39392),verify_sosmed_controller_1=__webpack_require__2(37221),url_xml_middleware_1=__webpack_require__2(52062),api_key_middleware_1=__webpack_require__2(99238),banned_middleware_1=__webpack_require__2(35767),login_middleware_1=__webpack_require__2(26508),register_middleware_1=__webpack_require__2(96443),logout_middleware_1=__webpack_require__2(24097),cache_middleware_1=__webpack_require__2(13254),http_exception_filter_1=__webpack_require__2(15401),rate_limit_guard_1=__webpack_require__2(45627),filter_api_key_access_guard_1=__webpack_require__2(76399),verified_only_guard_1=__webpack_require__2(25143),roles_guard_1=__webpack_require__2(46429),exclude_field_interceptor_1=__webpack_require__2(88627),req_res_interceptor_1=__webpack_require__2(72892),socket_io_gateway_1=__webpack_require__2(99234),api_service_1=__webpack_require__2(99527),auth_service_1=__webpack_require__2(99985),cloudflare_service_1=__webpack_require__2(94358),config_service_1=__webpack_require__2(94315),crypto_service_1=__webpack_require__2(4030),discord_service_1=__webpack_require__2(92453),gdrive_service_1=__webpack_require__2(48888),global_service_1=__webpack_require__2(40735),idcloudhost_service_1=__webpack_require__2(53864),mail_service_1=__webpack_require__2(50899),mkv_extract_service_1=__webpack_require__2(63211),quiz_service_1=__webpack_require__2(48902),socket_io_service_1=__webpack_require__2(98095),rss_feed_tasks_service_1=__webpack_require__2(36339),sitemap_tasks_service_1=__webpack_require__2(84277),tracker_statistics_tasks_service_1=__webpack_require__2(13266),anime_service_1=__webpack_require__2(88122),api_key_service_1=__webpack_require__2(87044),attachment_service_1=__webpack_require__2(37470),banned_service_1=__webpack_require__2(51201),berkas_service_1=__webpack_require__2(17319),ddl_file_1=__webpack_require__2(34885),dorama_service_1=__webpack_require__2(81475),edict_service_1=__webpack_require__2(46662),fansub_service_1=__webpack_require__2(51467),fansub_member_service_1=__webpack_require__2(85434),hirakata_service_1=__webpack_require__2(77650),information_service_1=__webpack_require__2(26927),kanji_service_1=__webpack_require__2(77495),kanjivg_service_1=__webpack_require__2(35412),kartu_tanda_penduduk_service_1=__webpack_require__2(77378),komentar_service_1=__webpack_require__2(83114),likedislike_service_1=__webpack_require__2(59062),mailbox_service_1=__webpack_require__2(53866),news_service_1=__webpack_require__2(48519),nihongo_service_1=__webpack_require__2(31242),notification_service_1=__webpack_require__2(97233),profile_service_1=__webpack_require__2(38854),project_type_service_1=__webpack_require__2(60264),registration_service_1=__webpack_require__2(60968),social_media_service_1=__webpack_require__2(42471),tatoeba_service_1=__webpack_require__2(86069),temp_attachment_service_1=__webpack_require__2(88767),track_service_1=__webpack_require__2(65896),user_service_1=__webpack_require__2(50675);let AppModule=__name(class{configure(mc){mc.apply(url_xml_middleware_1.UrlXmlMiddleware).forRoutes({path:"*",method:common_1.RequestMethod.ALL}),mc.apply(api_key_middleware_1.ApiKeyMiddleware).exclude({path:"/api/discord-verifikasi",method:common_1.RequestMethod.GET},{path:"/api/google-verifikasi",method:common_1.RequestMethod.GET},{path:"/api/aktivasi",method:common_1.RequestMethod.GET},{path:"/api/verify-sosmed",method:common_1.RequestMethod.GET}).forRoutes({path:"*",method:common_1.RequestMethod.ALL}),mc.apply(banned_middleware_1.BannedMiddleware).exclude({path:"/api/aktivasi",method:common_1.RequestMethod.GET},{path:"/api/verify-sosmed",method:common_1.RequestMethod.GET},{path:"/api/login",method:common_1.RequestMethod.POST},{path:"/api/register",method:common_1.RequestMethod.POST},{path:"/api/lost-account-*",method:common_1.RequestMethod.POST}).forRoutes({path:"*",method:common_1.RequestMethod.ALL}),mc.apply(login_middleware_1.LoginMiddleware).forRoutes({path:"/login",method:common_1.RequestMethod.POST}),mc.apply(register_middleware_1.RegisterMiddleware).forRoutes({path:"/register",method:common_1.RequestMethod.POST}),mc.apply(logout_middleware_1.LogoutMiddleware).forRoutes({path:"/logout",method:common_1.RequestMethod.DELETE}),mc.apply(cache_middleware_1.CacheMiddleware).forRoutes({path:"*",method:common_1.RequestMethod.GET}),mc.apply((0,express_throttle_bandwidth_1.default)(constants_1.CONSTANTS.attachmentSpeedLimiterBps)).forRoutes({path:"/attachment",method:common_1.RequestMethod.GET},{path:"/ddl-part",method:common_1.RequestMethod.GET},{path:"/ddl-seek",method:common_1.RequestMethod.GET}),mc.apply(core_2.uploadx.upload({path:"/attachment",allowMIME:constants_1.CONSTANTS.fileTypeAttachmentAllowed,directory:environment_1.environment.uploadFolder,maxUploadSize:constants_1.CONSTANTS.fileSizeAttachmentTotalLimit,useRelativeLocation:!0,expiration:{maxAge:"3d",purgeInterval:"20min",rolling:!0},metaStorageConfig:{directory:environment_1.environment.tempFolder},logLevel:environment_1.environment.production?"error":"debug"})).forRoutes({path:"/attachment",method:common_1.RequestMethod.POST},{path:"/attachment",method:common_1.RequestMethod.PUT})}},"AppModule");AppModule=tslib_1.__decorate([(0,common_1.Module)({imports:[ng_universal_1.AngularUniversalModule.forRoot({bootstrap:main_server_1.AppServerModule,viewsPath:(0,node_path_1.join)(process.cwd(),environment_1.environment.viewFolder)}),typeorm_1.TypeOrmModule.forRoot(environment_1.environment.typeorm),typeorm_1.TypeOrmModule.forFeature(environment_1.environment.typeorm.entities),throttler_1.ThrottlerModule.forRoot({ttl:60,limit:15}),nest_morgan_1.MorganModule,common_1.CacheModule.register(),schedule_1.ScheduleModule.forRoot()],controllers:[app_controller_1.AppController,aktivasi_controller_1.AktivasiController,anime_controller_1.AnimeController,anime_berkas_controller_1.AnimeBerkasController,anime_fansub_controller_1.AnimeFansubController,anime_seasonal_controller_1.AnimeSeasonalController,api_key_controller_1.ApiKeyController,attachment_controller_1.AttachmentController,banned_controller_1.BannedController,berkas_controller_1.BerkasController,comment_controller_1.CommentController,crawl_controller_1.CrawlController,ddl_file_controller_1.DdlPartController,ddl_file_controller_1.DdlSeekController,dorama_controller_1.DoramaController,dorama_berkas_controller_1.DoramaBerkasController,dorama_fansub_controller_1.DoramaFansubController,dorama_seasonal_controller_1.DoramaSeasonalController,fansub_controller_1.FansubController,fansub_all_controller_1.FansubAllController,fansub_anime_controller_1.FansubAnimeController,fansub_berkas_controller_1.FansubBerkasController,fansub_dns_controller_1.FansubDnsController,fansub_dorama_controller_1.FansubDoramaController,fansub_member_controller_1.FansubMemberController,fansub_rss_feed_active_controller_1.FansubRssFeedActiveController,fansub_rss_feed_all_controller_1.FansubRssFeedAllController,fansub_slug_controller_1.FansubSlugController,image_controller_1.ImageController,information_controller_1.InformationController,likedislike_controller_1.LikedislikeController,login_controller_1.LoginController,logout_controller_1.LogoutController,lost_account_find_controller_1.LostAccountFindController,lost_account_reset_controller_1.LostAccountResetController,mail_controller_1.MailController,mail_inbox_controller_1.MailInboxController,mail_outbox_controller_1.MailOutboxController,mail_webhook_controller_1.MailWebhookController,news_controller_1.NewsController,nihongo_controller_1.NihongoController,nihongo_edict_controller_1.NihongoEdictController,nihongo_hirakata_controller_1.NihongoHirakataController,nihongo_hirakata_all_controller_1.NihongoHirakataAllController,nihongo_kanji_controller_1.NihongoKanjiController,nihongo_kanjivg_controller_1.NihongoKanjivgController,nihongo_tatoeba_controller_1.NihongoTatoebaController,notification_controller_1.NotificationController,project_type_controller_1.ProjectTypeController,promote_controller_1.PromoteController,quiz_leaderboard_controller_1.QuizLeaderboardController,register_controller_1.RegisterController,task_cron_job_controller_1.TaskCronJobController,torrent_controller_1.TorrentController,user_controller_1.UserController,verify_controller_1.VerifyController,verify_ktp_controller_1.VerifyKtpController,verify_nik_controller_1.VerifyNikController,verify_sosmed_controller_1.VerifySosmedController],providers:[{provide:core_1.APP_FILTER,useClass:http_exception_filter_1.HttpExceptionFilter},{provide:core_1.APP_GUARD,useClass:rate_limit_guard_1.RateLimitGuard},{provide:core_1.APP_GUARD,useClass:filter_api_key_access_guard_1.FilterApiKeyAccessGuard},{provide:core_1.APP_GUARD,useClass:verified_only_guard_1.VerifiedOnlyGuard},{provide:core_1.APP_GUARD,useClass:roles_guard_1.RolesGuard},{provide:core_1.APP_INTERCEPTOR,useClass:exclude_field_interceptor_1.ExcludeFieldInterceptor},{provide:core_1.APP_INTERCEPTOR,useClass:req_res_interceptor_1.ReqResInterceptor},{provide:core_1.APP_INTERCEPTOR,useClass:(0,nest_morgan_1.MorganInterceptor)((tokens,req,res)=>{const chlk=new chalk_1.Chalk({level:3});return[chlk.yellow(tokens["remote-addr"](req,res)),chlk.cyan(new Date(tokens.date(req,res)).toString()),chlk.greenBright(tokens.method(req,res)),chlk.redBright(tokens.status(req,res)),chlk.white(tokens.url(req,res)),chlk.yellowBright(tokens["response-time"](req,res)+" ms")].join(" ~ ")})},socket_io_gateway_1.SocketIoGateway,api_service_1.ApiService,auth_service_1.AuthService,cloudflare_service_1.CloudflareService,config_service_1.ConfigService,crypto_service_1.CryptoService,discord_service_1.DiscordService,gdrive_service_1.GdriveService,global_service_1.GlobalService,idcloudhost_service_1.IdCloudHostService,mkv_extract_service_1.MkvExtractService,mail_service_1.MailService,quiz_service_1.QuizService,socket_io_service_1.SocketIoService,rss_feed_tasks_service_1.RssFeedTasksService,sitemap_tasks_service_1.SitemapService,tracker_statistics_tasks_service_1.TrackerStatisticsService,anime_service_1.AnimeService,api_key_service_1.ApiKeyService,attachment_service_1.AttachmentService,banned_service_1.BannedService,berkas_service_1.BerkasService,ddl_file_1.DdlFileService,dorama_service_1.DoramaService,edict_service_1.EdictService,fansub_service_1.FansubService,fansub_member_service_1.FansubMemberService,hirakata_service_1.HirakataService,information_service_1.InformationService,kanji_service_1.KanjiService,kanjivg_service_1.KanjivgService,kartu_tanda_penduduk_service_1.KartuTandaPendudukService,komentar_service_1.KomentarService,likedislike_service_1.LikedislikeService,mailbox_service_1.MailboxService,news_service_1.NewsService,nihongo_service_1.NihongoService,notification_service_1.NotificationService,profile_service_1.ProfileService,project_type_service_1.ProjectTypeService,registration_service_1.RegistrationService,social_media_service_1.SocialMediaService,tatoeba_service_1.TatoebaService,temp_attachment_service_1.TempAttachmentService,track_service_1.TrackService,user_service_1.UserService]})],AppModule),exports2.AppModule=AppModule},608:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AktivasiController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),environment_1=__webpack_require__2(17482),filter_api_key_access_decorator_1=__webpack_require__2(18834),auth_service_1=__webpack_require__2(99985),crypto_service_1=__webpack_require__2(4030),discord_service_1=__webpack_require__2(92453),mail_service_1=__webpack_require__2(50899);let AktivasiController=__name(class{constructor(as,cs,ds,ms){this.as=as,this.cs=cs,this.ds=ds,this.ms=ms}activateAccount(req,res){var _this=this;return _asyncToGenerator(function*(){const token=req.query.token||"";let userActivated=null;return token&&(userActivated=yield _this.as.activateAccount(token),userActivated&&(res.cookie(environment_1.environment.tokenName,userActivated.session_token,{httpOnly:!0,secure:environment_1.environment.production,sameSite:"strict",expires:new Date(1e3*_this.cs.jwtView(userActivated.session_token).exp),domain:environment_1.environment.domain}),_this.ds.sendNews(_this.ds.createEmbedMessage("#0099ff",userActivated.kartu_tanda_penduduk_.nama,`${environment_1.environment.baseUrl}/user/${userActivated.username}`,{name:`${environment_1.environment.siteName} - Pendaftaran Pengguna Baru`,iconURL:`${environment_1.environment.baseUrl}/assets/img/favicon.png`,url:environment_1.environment.baseUrl},userActivated.profile_.description,userActivated.image_url,userActivated.updated_at,{text:userActivated.username,iconURL:userActivated.image_url})))),{url:userActivated?"/login":"/register",statusCode:301}})()}reSendActivation(req,res){var _this2=this;return _asyncToGenerator(function*(){const registration=yield _this2.as.reSendActivation(req.body);if(registration)return _this2.ms.sendRegisterActivationMail(registration),{info:"\u{1f61a} 201 - Register API :: Berhasil Kirim Ulang Aktivasi \u{1f929}",result:{id:registration.id,title:"Pengiriman Ulang Aktivasi",message:`\n Silahkan Periksa Email Lagi.
\n '${registration.email}'
\n `}};throw new common_1.HttpException({info:"\u{1f914} 406 - Register API :: Data Pendaftaran Tidak Ada \u{1f637}",result:{message:"Silahkan Coba Daftar Kembali!"}},common_1.HttpStatus.NOT_ACCEPTABLE)})()}},"AktivasiController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(301),(0,common_1.Redirect)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],AktivasiController.prototype,"activateAccount",null),tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],AktivasiController.prototype,"reSendActivation",null),AktivasiController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/aktivasi"),tslib_1.__metadata("design:paramtypes",[auth_service_1.AuthService,crypto_service_1.CryptoService,discord_service_1.DiscordService,mail_service_1.MailService])],AktivasiController),exports2.AktivasiController=AktivasiController},85536:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AnimeBerkasController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),berkas_service_1=__webpack_require__2(17319),global_service_1=__webpack_require__2(40735);let AnimeBerkasController=__name(class{constructor(berkasRepo,gs){this.berkasRepo=berkasRepo,this.gs=gs}berkasAnime(req,res){var _this=this;return _asyncToGenerator(function*(){try{const user=res.locals.user,queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),animeId=req.query.id?req.query.id.split(",").map(Number):req.body.id;if(Array.isArray(animeId)&&animeId.length>0){const sqlWhere=[{...(null==user?void 0:user.verified)?{}:{private:!1},name:(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`),anime_:{id:(0,typeorm_1.In)(animeId)},user_:{private:!1}}],userFilesCriteria={};user&&(userFilesCriteria.name=(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`),userFilesCriteria.anime_={id:(0,typeorm_1.In)(animeId)},user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR||user.role===req_res_model_1.RoleModel.FANSUBBER||_this.gs.isFreeTime()||(userFilesCriteria.user_={id:user.id}),sqlWhere.push(userFilesCriteria));const[files,count]=yield _this.berkasRepo.findAndCount({where:sqlWhere,order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",name:"ASC"}},relations:["project_type_","fansub_","user_","anime_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10}),results={};for(const i2 of animeId)results[i2]=[];for(const f2 of files){if(delete f2.download_url,delete f2.description,"project_type_"in f2&&f2.project_type_&&(delete f2.project_type_.created_at,delete f2.project_type_.updated_at),"fansub_"in f2&&f2.fansub_)for(const fansub of f2.fansub_)delete fansub.description,delete fansub.urls,delete fansub.tags,delete fansub.created_at,delete fansub.updated_at;"anime_"in f2&&f2.anime_&&(delete f2.anime_.created_at,delete f2.anime_.updated_at),"user_"in f2&&f2.user_&&(delete f2.user_.created_at,delete f2.user_.updated_at),results[f2.anime_.id].push(f2)}return{info:"\u{1f605} 202 - Anime API :: Berkas \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 400 - Anime API :: Gagal Mencari Berkas ${req.query.id} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"AnimeBerkasController");tslib_1.__decorate([(0,common_1.Patch)("/"),(0,common_1.HttpCode)(202),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],AnimeBerkasController.prototype,"berkasAnime",null),AnimeBerkasController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/anime-berkas"),tslib_1.__metadata("design:paramtypes",[berkas_service_1.BerkasService,global_service_1.GlobalService])],AnimeBerkasController),exports2.AnimeBerkasController=AnimeBerkasController},99488:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AnimeFansubController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),filter_api_key_access_decorator_1=__webpack_require__2(18834),berkas_service_1=__webpack_require__2(17319);let AnimeFansubController=__name(class{constructor(berkasRepo){this.berkasRepo=berkasRepo}fansubAnime(req,res){var _this=this;return _asyncToGenerator(function*(){try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),animeId=req.query.id?req.query.id.split(",").map(Number):req.body.id;if(Array.isArray(animeId)&&animeId.length>0){const files=yield _this.berkasRepo.instance().createQueryBuilder("berkas").leftJoinAndSelect("berkas.anime_","anime_").leftJoinAndSelect("berkas.fansub_","fansub_").where("anime_.id IN (:...id)",{id:animeId}).orderBy("fansub_.name","ASC").addOrderBy("anime_.id","ASC").select(["anime_","fansub_"]).groupBy("anime_.id").addGroupBy("fansub_.id").getRawMany(),results={};for(const i2 of animeId)results[i2]=[];for(const f2 of files)results[f2.anime__id].push({id:f2.fansub__id,name:f2.fansub__name,slug:f2.fansub__slug,active:f2.fansub__active,image_url:f2.fansub__image_url,cover_url:f2.fansub__cover_url});let count=0;for(const i2 of animeId)if(count+=results[i2].length,1===animeId.length){const start=queryPage?(queryPage-1)*(queryRow||10):0,end=(queryPage?(queryPage-1)*(queryRow||10):0)+(queryRow||10);results[i2]=results[i2].slice(start,end)}return{info:"\u{1f605} 202 - Anime API :: Fansub \u{1f923}",count,pages:animeId.length>1?1:Math.ceil(count/(queryRow||10)),results}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 400 - Anime API :: Gagal Mencari Fansub ${req.query.id} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"AnimeFansubController");tslib_1.__decorate([(0,common_1.Patch)("/"),(0,common_1.HttpCode)(202),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],AnimeFansubController.prototype,"fansubAnime",null),AnimeFansubController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/anime-fansub"),tslib_1.__metadata("design:paramtypes",[berkas_service_1.BerkasService])],AnimeFansubController),exports2.AnimeFansubController=AnimeFansubController},98568:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AnimeSeasonalController=void 0;const tslib_1=__webpack_require__2(70655),node_url_1=__webpack_require__2(46024),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),api_service_1=__webpack_require__2(99527),global_service_1=__webpack_require__2(40735);let AnimeSeasonalController=__name(class{constructor(cm,api,gs){this.cm=cm,this.api=api,this.gs=gs,this.header={...environment_1.environment.nodeJsXhrHeader,"X-MAL-CLIENT-ID":environment_1.environment.malClientId}}seasonalAnime(req,res){var _this=this;return _asyncToGenerator(function*(){var _a,_b,_c,_d,_e,_f;const currDate=new Date,year=req.query.year||currDate.getFullYear(),season=req.query.season||_this.gs.seasonal.find(sB=>sB.id===Math.ceil((currDate.getMonth()+1)/3)).name,data=[];let status=200;try{const url1=new node_url_1.URL(`${environment_1.environment.externalApiAnime}/anime/season/${year}/${season}?nsfw=true&limit=500&fields=rank,mean,media_type,num_episodes`),res_raw1=yield _this.api.getData(url1,_this.header);if(!res_raw1.ok)throw new Error("Gagal Tarik Data Anime");{const res_json1=yield res_raw1.json();_this.gs.log(`[apiAnime] \u{1f525} ${res_raw1.status}`,res_json1);let data1=res_json1.data;for(let i2=0;i20&&_this.cm.set(req.originalUrl,{status,body:responseBody},{ttl:environment_1.environment.externalApiCacheTime}),responseBody}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Anime API :: Gagal Menarik Data \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"AnimeSeasonalController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagAnime),(0,swagger_1.ApiQuery)({name:"year",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"season",required:!1,type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],AnimeSeasonalController.prototype,"seasonalAnime",null),AnimeSeasonalController=tslib_1.__decorate([(0,common_1.Controller)("/anime-seasonal"),tslib_1.__param(0,(0,common_1.Inject)(common_1.CACHE_MANAGER)),tslib_1.__metadata("design:paramtypes",[Object,api_service_1.ApiService,global_service_1.GlobalService])],AnimeSeasonalController),exports2.AnimeSeasonalController=AnimeSeasonalController},85310:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AnimeController=void 0;const tslib_1=__webpack_require__2(70655),google_translate_1=tslib_1.__importDefault(__webpack_require__2(44119)),node_url_1=__webpack_require__2(46024),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),req_res_model_1=__webpack_require__2(14249),api_service_1=__webpack_require__2(99527),global_service_1=__webpack_require__2(40735),anime_service_1=__webpack_require__2(88122);let AnimeController=__name(class{constructor(cm,api,gs,animeRepo){this.cm=cm,this.api=api,this.gs=gs,this.animeRepo=animeRepo,this.header={...environment_1.environment.nodeJsXhrHeader,"X-MAL-CLIENT-ID":environment_1.environment.malClientId}}searchAnime(req,res){var _this=this;return _asyncToGenerator(function*(){var _a,_b;const searchQuery=req.query.q||"";try{if(searchQuery.length<3)throw new common_1.HttpException({info:"\u{1f644} 400 - Anime API :: Gagal Mencari Anime \u{1f62a}",result:{message:"Minimal 3 Huruf Untuk Pencarian!"}},common_1.HttpStatus.BAD_REQUEST);const url=new node_url_1.URL(`${environment_1.environment.externalApiAnime}/anime?nsfw=true&fields=media_type,num_episodes`);url.searchParams.append("q",searchQuery);const res_raw=yield _this.api.getData(url,_this.header),data=[];if(res_raw.ok){const res_json=yield res_raw.json();_this.gs.log(`[apiAnime] \u{1f525} ${res_raw.status}`,res_json);const data1=res_json.data;for(let i2=0;i20&&_this.cm.set(req.originalUrl,{status:res_raw.status,body:responseBody},{ttl:environment_1.environment.externalApiCacheTime}),responseBody}throw new Error("Gagal Tarik Data Anime")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Anime API :: Gagal Menarik Data \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}updateAnime(req,res){var _this2=this;return _asyncToGenerator(function*(){try{if("id"in req.body&&"name"in req.body&&"image_url"in req.body){const animes=yield _this2.animeRepo.find({where:[{id:(0,typeorm_1.Equal)(req.body.id)}]});if(0===animes.length){const anime=_this2.animeRepo.new();anime.id=req.body.id,anime.name=req.body.name,anime.image_url=req.body.image_url,anime.type=req.body.type;return{info:"\u{1f605} 202 - Anime API :: Tambah Baru \u{1f923}",result:yield _this2.animeRepo.save(anime)}}if(1===animes.length){const anime=animes[0];"id"in req.body&&(anime.id=req.body.id),"name"in req.body&&(anime.name=req.body.name),"image_url"in req.body&&(anime.image_url=req.body.image_url),"type"in req.body&&(anime.type=req.body.type);return{info:"\u{1f605} 202 - Anime API :: Data Anime Diperbaharui \u{1f923}",result:yield _this2.animeRepo.save(anime)}}return{info:"\u{1f60d} 202 - Anime API :: Data Anime Multi Duplikat \u{1f970}",result:animes}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Anime API :: Gagal Menambah Anime \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getDetailAnime(req,res){var _this3=this;return _asyncToGenerator(function*(){var _a,_b;const malId=req.params.malSlug.split("-")[0];try{const url=new node_url_1.URL(`${environment_1.environment.externalApiAnime}/anime/${malId}?nsfw=true&sort=anime_score&limit=2&offset=1&fields=alternative_titles,synopsis,mean,media_type,genres,start_date,end_date,num_episodes,rank,popularity,status`),res_raw=yield _this3.api.getData(url,_this3.header);if(res_raw.ok){const res_json=yield res_raw.json();_this3.gs.log(`[apiAnime] \u{1f525} ${res_raw.status}`,res_json);let httpStatusCode=res_raw.status;const animeDetail=res_json;animeDetail.image_url=(null===(_a=animeDetail.main_picture)||void 0===_a?void 0:_a.medium)||(null===(_b=animeDetail.main_picture)||void 0===_b?void 0:_b.large);try{if("synopsis"in animeDetail&&animeDetail.synopsis){const translatedAnimeSynopsis=yield(0,google_translate_1.default)(animeDetail.synopsis,{to:"id"});animeDetail.synopsis=translatedAnimeSynopsis.text}}catch{httpStatusCode=202,animeDetail.message="Penerjemah / Alih Bahasa Gagal!"}const responseBody={info:`\u{1f605} ${httpStatusCode} - Anime API :: Detail ${malId} \u{1f923}`,result:animeDetail};return animeDetail&&_this3.cm.set(req.originalUrl,{status:httpStatusCode,body:responseBody},{ttl:environment_1.environment.externalApiCacheTime}),responseBody}throw new Error("Gagal Tarik Data Anime")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 404 - Anime API :: Gagal Menarik Data \u{1f62a}",result:{message:"Anime Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"AnimeController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagAnime),(0,swagger_1.ApiQuery)({name:"q",required:!0,type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],AnimeController.prototype,"searchAnime",null),tslib_1.__decorate([(0,common_1.Patch)("/"),(0,common_1.HttpCode)(202),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],AnimeController.prototype,"updateAnime",null),tslib_1.__decorate([(0,common_1.Get)("/:malSlug"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagAnime),(0,swagger_1.ApiParam)({name:"malSlug",type:"number"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],AnimeController.prototype,"getDetailAnime",null),AnimeController=tslib_1.__decorate([(0,common_1.Controller)("/anime"),tslib_1.__param(0,(0,common_1.Inject)(common_1.CACHE_MANAGER)),tslib_1.__metadata("design:paramtypes",[Object,api_service_1.ApiService,global_service_1.GlobalService,anime_service_1.AnimeService])],AnimeController),exports2.AnimeController=AnimeController},39298:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ApiKeyController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),req_res_model_1=__webpack_require__2(14249),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),api_key_service_1=__webpack_require__2(87044);let ApiKeyController=__name(class{constructor(apiKeyRepo){this.apiKeyRepo=apiKeyRepo}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){const searchQuery=req.query.q||"";try{const user=res.locals.user,queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),queryUserName=req.query.username;if(queryUserName){const username=queryUserName.split(",");if(Array.isArray(username)&&1===username.length){const[corss,count]=yield _this.apiKeyRepo.findAndCount({where:[{user_:{username:(0,typeorm_1.In)(username)}}],relations:["user_"]}),results={};for(const u of username)results[u]=[];for(const c of corss)"user_"in c&&c.user_&&(delete c.user_.created_at,delete c.user_.updated_at,results[c.user_.username].push(c));return{info:"\u{1f605} 200 - ApiKey API :: User \u{1f923}",count,pages:1,results}}throw new Error("Data Tidak Lengkap!")}if(user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR){const[corss,count]=yield _this.apiKeyRepo.findAndCount({where:[{name:(0,typeorm_1.ILike)(`%${searchQuery}%`)},{ip_domain:(0,typeorm_1.ILike)(`%${searchQuery}%`)},{api_key:(0,typeorm_1.Raw)(tblCol=>`${tblCol.split(".").map(tc=>tc.startsWith('"')&&tc.endsWith('"')?tc:`"${tc}"`).join(".")}::TEXT ILIKE :ak`,{ak:`%${searchQuery}%`})}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",id:"ASC"}},relations:["user_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const c of corss)"user_"in c&&c.user_&&(delete c.user_.created_at,delete c.user_.updated_at);return{info:"\u{1f605} 200 - ApiKey API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:corss}}throw new common_1.HttpException({info:"\u{1f644} 403 - Banned API :: Authorisasi Pengguna Gagal \u{1f62a}",result:{message:"Khusus Admin / Moderator!"}},common_1.HttpStatus.FORBIDDEN)}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - ApiKey API :: Gagal Mendapatkan All Cors \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}addNew(req,res){var _this2=this;return _asyncToGenerator(function*(){try{if("name"in req.body&&"ip_domain"in req.body){const user=res.locals.user;if((yield _this2.apiKeyRepo.find({where:[{user_:{id:(0,typeorm_1.Equal)(user.id)}}],relations:["user_"]})).length>=1&&user.role!==req_res_model_1.RoleModel.ADMIN&&user.role!==req_res_model_1.RoleModel.MODERATOR)throw new common_1.HttpException({info:"\u{1f644} 403 - ApiKey API :: Gagal Menambah Cors Baru \u{1f62a}",result:{message:"Fansubber Hanya Bisa Memiliki 1 Api Key!"}},common_1.HttpStatus.FORBIDDEN);{const cors=_this2.apiKeyRepo.new();cors.name=req.body.name,cors.ip_domain=req.body.ip_domain,cors.user_=user;const resCorsSave=yield _this2.apiKeyRepo.save(cors);return"user_"in resCorsSave&&resCorsSave.user_&&(delete resCorsSave.user_.created_at,delete resCorsSave.user_.updated_at),{info:"\u{1f605} 201 - ApiKey API :: Tambah Baru \u{1f923}",result:resCorsSave}}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - ApiKey API :: Gagal Menambah Cors Baru \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}updateById(req,res){var _this3=this;return _asyncToGenerator(function*(){try{if("name"in req.body||"ip_domain"in req.body){const user=res.locals.user,cors=yield _this3.apiKeyRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}],relations:["user_"]});if(user.id===cors.user_.id||user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR){"name"in req.body&&(cors.name=req.body.name),"ip_domain"in req.body&&(cors.ip_domain=req.body.ip_domain);const resCorsSave=yield _this3.apiKeyRepo.save(cors);return"user_"in resCorsSave&&resCorsSave.user_&&(delete resCorsSave.user_.created_at,delete resCorsSave.user_.updated_at),{info:`\u{1f605} 201 - ApiKey API :: Ubah ${req.params.id} \u{1f923}`,result:resCorsSave}}throw new common_1.HttpException({info:"\u{1f644} 403 - ApiKey API :: Authorisasi Kepemilikan Gagal \u{1f62a}",result:{message:"ApiKey Milik Orang Lain!"}},common_1.HttpStatus.FORBIDDEN)}throw new common_1.HttpException({info:`\u{1f644} 400 - ApiKey API :: Gagal Mengubah Cors ${req.params.id} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.FORBIDDEN)}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - ApiKey API :: Gagal Mencari Cors ${req.params.id} \u{1f62a}`,result:{message:"ApiKey Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}deleteById(req,res){var _this4=this;return _asyncToGenerator(function*(){try{const user=res.locals.user,cors=yield _this4.apiKeyRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}],relations:["user_"]});if(cors.user_.id===user.id||user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR){const revokedApiKey=yield _this4.apiKeyRepo.remove(cors);return"user_"in revokedApiKey&&revokedApiKey.user_&&(delete revokedApiKey.user_.created_at,delete revokedApiKey.user_.updated_at),{info:`\u{1f605} 202 - ApiKey API :: Berhasil Revoke ${req.params.id} \u{1f923}`,result:revokedApiKey}}throw new common_1.HttpException({info:"\u{1f644} 403 - ApiKey API :: Authorisasi Kepemilikan Gagal \u{1f62a}",result:{message:"ApiKey Milik Orang Lain!"}},common_1.HttpStatus.FORBIDDEN)}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - ApiKey API :: Gagal Mencari Cors ${req.params.id} \u{1f62a}`,result:{message:"ApiKey Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"ApiKeyController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagApiKey),(0,swagger_1.ApiQuery)({name:"q",required:!1,type:"string"}),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"username",type:"string"}),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],ApiKeyController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagApiKey),(0,swagger_1.ApiBody)({schema:{properties:{name:{type:"string"},ip_domain:{type:"string"}},required:["name","ip_domain"]}}),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],ApiKeyController.prototype,"addNew",null),tslib_1.__decorate([(0,common_1.Put)("/:id"),(0,common_1.HttpCode)(201),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagApiKey),(0,swagger_1.ApiParam)({name:"id",type:"number"}),(0,swagger_1.ApiBody)({schema:{properties:{name:{type:"string"},ip_domain:{type:"string"}}}}),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],ApiKeyController.prototype,"updateById",null),tslib_1.__decorate([(0,common_1.Delete)("/:id"),(0,common_1.HttpCode)(202),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagApiKey),(0,swagger_1.ApiParam)({name:"id",type:"number"}),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],ApiKeyController.prototype,"deleteById",null),ApiKeyController=tslib_1.__decorate([(0,common_1.Controller)("/api-key"),tslib_1.__metadata("design:paramtypes",[api_key_service_1.ApiKeyService])],ApiKeyController),exports2.ApiKeyController=ApiKeyController},97558:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AttachmentController=void 0;const tslib_1=__webpack_require__2(70655),node_fs_1=__webpack_require__2(35404),common_1=__webpack_require__2(28791),schedule_1=__webpack_require__2(31143),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),attachment_service_1=__webpack_require__2(37470),temp_attachment_service_1=__webpack_require__2(88767),ddl_file_1=__webpack_require__2(34885),gdrive_service_1=__webpack_require__2(48888),global_service_1=__webpack_require__2(40735),discord_service_1=__webpack_require__2(92453);let AttachmentController=__name(class{constructor(sr,attachmentRepo,gdrive,gs,ddlFileRepo,ds,tempAttachmentRepo){this.sr=sr,this.attachmentRepo=attachmentRepo,this.gdrive=gdrive,this.gs=gs,this.ddlFileRepo=ddlFileRepo,this.ds=ds,this.tempAttachmentRepo=tempAttachmentRepo}searchLampiranPending(req,res){var _this=this;return _asyncToGenerator(function*(){try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[attachments,count]=yield _this.attachmentRepo.findAndCount({where:[{name:(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`)}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",name:"ASC"}},relations:["user_","parent_attachment_","parent_attachment_.user_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const a of attachments)"user_"in a&&a.user_&&(delete a.user_.created_at,delete a.user_.updated_at),"parent_attachment_"in a&&a.parent_attachment_&&(delete a.parent_attachment_.created_at,delete a.parent_attachment_.updated_at);return{info:"\u{1f605} 200 - Attachment API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:attachments}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Attachment API :: Gagal Mendapatkan All Lampiran \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}uploadLampiran(req,res){var _this2=this;return _asyncToGenerator(function*(){const file2=req.body;try{if(file2){const user=res.locals.user,tempAttachment=_this2.tempAttachmentRepo.new();tempAttachment.name=file2.id,tempAttachment.ext=file2.originalName.split(".").pop().toLowerCase(),tempAttachment.size=file2.size,tempAttachment.mime=file2.metadata.mimeType,tempAttachment.user_=user;const resAttachmentSave=yield _this2.tempAttachmentRepo.save(tempAttachment);return"user_"in resAttachmentSave&&resAttachmentSave.user_&&(delete resAttachmentSave.user_.created_at,delete resAttachmentSave.user_.updated_at),_this2.sr.addTimeout(`${constants_1.CONSTANTS.timeoutDeleteTempAttachmentKey}@${resAttachmentSave.id}`,setTimeout(_asyncToGenerator(function*(){try{const attachmentToBeDeleted=yield _this2.tempAttachmentRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(resAttachmentSave.id)}]});_this2.gs.deleteAttachment(attachmentToBeDeleted.name),yield _this2.tempAttachmentRepo.remove(attachmentToBeDeleted)}catch(e){_this2.gs.log("[TEMP_ATTACHMENT_DELETE-ERROR] \u{1f6ae}",e,"error")}}),constants_1.CONSTANTS.timeoutDeleteTempAttachmentTime)),{info:`\u{1f605} 201 - Temp Attachment API :: Harap Lengkapi Data Berkas Dalam ${constants_1.CONSTANTS.timeoutDeleteTempAttachmentTime/60/1e3} Menit \u{1f923}`,result:resAttachmentSave}}throw new Error("Data Tidak Lengkap!")}catch(error){throw _this2.gs.deleteAttachment(file2.id),error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Attachment API :: Gagal Mengunggah Lampiran \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getById(req,res){var _this3=this;return _asyncToGenerator(function*(){try{const attachment=yield _this3.attachmentRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.params.id)}]});if(attachment.discord){const[ddlFiles,count]=yield _this3.ddlFileRepo.findAndCount({where:[{msg_id:(0,typeorm_1.Equal)(attachment.discord)}],order:{chunk_idx:"ASC"},relations:["user_"]});for(const ddlFile of ddlFiles)"user_"in ddlFile&&ddlFile.user_&&(delete ddlFile.user_.created_at,delete ddlFile.user_.updated_at);const body={info:"\u{1f605} 200 - Attachment API :: DDL List \u{1f923}",results:ddlFiles,count,pages:1};res.status(common_1.HttpStatus.OK),res.locals.xml?(res.set("Content-Type","application/xml"),res.send(_this3.gs.OBJ2XML(body))):res.json(body)}else{if(!attachment.google_drive){const files=(0,node_fs_1.readdirSync)(`${environment_1.environment.uploadFolder}`,{withFileTypes:!0}),fIdx=files.findIndex(f2=>f2.name===attachment.name||f2.name===`${attachment.name}.${attachment.ext}`);if(fIdx>=0)return res.setHeader("content-type",attachment.mime),res.download(`${environment_1.environment.uploadFolder}/${files[fIdx].name}`,`${attachment.name}.${attachment.ext}`,function(){var _ref3=_asyncToGenerator(function*(e){e?_this3.gs.log("[RES_DOWNLOAD_ATTACHMENT-ERROR] \u{1f53b}",e,"error"):(attachment.download_count++,yield _this3.attachmentRepo.save(attachment))});return function(_x){return _ref3.apply(this,arguments)}}());throw new Error("Lampiran Tidak Ditemukan!")}{const dfile=yield(yield _this3.gdrive.gDrive()).files.get({fileId:attachment.google_drive,alt:"media"},{responseType:"stream",headers:{Range:req.headers.range||"bytes=0-",...environment_1.environment.nodeJsXhrHeader},signal:res.locals["abort-controller"].signal}),dfile_header=dfile.headers;dfile_header["content-type"]=attachment.mime,res.writeHead(dfile.status,dfile_header),dfile.data.on("error",e=>{_this3.gs.log("[DRIVE-ERROR] \u{1f4a6}",e,"error")}).on("end",_asyncToGenerator(function*(){attachment.download_count++,yield _this3.attachmentRepo.save(attachment)})).pipe(res)}}}catch{const body={info:`\u{1f644} 404 - Attachment API :: Gagal Mencari Lampiran ${req.params.id} \u{1f62a}`,result:{message:"Lampiran Tidak Ditemukan!"}};res.status(common_1.HttpStatus.NOT_FOUND),res.locals.xml?(res.set("Content-Type","application/xml"),res.send(_this3.gs.OBJ2XML(body))):res.json(body)}})()}reUploadAttachment(req,res){var _this4=this;return _asyncToGenerator(function*(){try{if("id"in req.body){const user=res.locals.user,attachment=yield _this4.attachmentRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.body.id),discord:(0,typeorm_1.IsNull)(),google_drive:(0,typeorm_1.IsNull)(),pending:!1}],relations:["user_"]}),files=(0,node_fs_1.readdirSync)(`${environment_1.environment.uploadFolder}`,{withFileTypes:!0}),fIdx=files.findIndex(f2=>f2.name===attachment.name||f2.name===`${attachment.name}.${attachment.ext}`);if(fIdx>=0){const responseBody={info:`\u{1f605} 201 - Attachment API :: ReUpload ${req.body.id} \u{1f923}`,results:attachment};if(environment_1.environment.production){attachment.pending=!0;const resAttachmentSave=yield _this4.attachmentRepo.save(attachment);if(responseBody.results=resAttachmentSave,constants_1.CONSTANTS.fileTypeAttachmentAllowed.includes(resAttachmentSave.mime)){let permanent_storage=!1;"permanent_storage"in req.body&&(permanent_storage=!0===req.body.permanent_storage),permanent_storage?_this4.gdrive.gDrive(!0).then(function(){var _ref4=_asyncToGenerator(function*(gdrive){const dfile=yield gdrive.files.create({requestBody:{name:`${resAttachmentSave.name}.${resAttachmentSave.ext}`,parents:[environment_1.environment.gCloudPlatform.gDrive.folder_id],mimeType:resAttachmentSave.mime},media:{mimeType:resAttachmentSave.mime,body:(0,node_fs_1.createReadStream)(`${environment_1.environment.uploadFolder}/${files[fIdx].name}`)},fields:"id"},{signal:null});resAttachmentSave.google_drive=dfile.data.id,resAttachmentSave.pending=!1,yield _this4.attachmentRepo.save(resAttachmentSave),_this4.gs.deleteAttachment(files[fIdx].name)});return function(_x2){return _ref4.apply(this,arguments)}}()).catch(function(){var _ref5=_asyncToGenerator(function*(e){_this4.gs.log("[GDRIVE-ERROR] \u{1f4bd}",e,"error"),resAttachmentSave.pending=!1,yield _this4.attachmentRepo.save(resAttachmentSave)});return function(_x3){return _ref5.apply(this,arguments)}}()):_this4.ds.sendAttachment(resAttachmentSave,resAttachmentSave.user_||user).then(function(){var _ref6=_asyncToGenerator(function*(chunkParent){resAttachmentSave.discord=chunkParent,resAttachmentSave.pending=!1,yield _this4.attachmentRepo.save(resAttachmentSave),_this4.gs.deleteAttachment(files[fIdx].name)});return function(_x4){return _ref6.apply(this,arguments)}}()).catch(function(){var _ref7=_asyncToGenerator(function*(e){_this4.gs.log("[DISCORD-ERROR] \u{1f4bd}",e,"error"),resAttachmentSave.pending=!1,yield _this4.attachmentRepo.save(resAttachmentSave)});return function(_x5){return _ref7.apply(this,arguments)}}())}else{let otherAttachment=yield _this4.attachmentRepo.find({where:[{name:(0,typeorm_1.Equal)(resAttachmentSave.name),ext:(0,typeorm_1.Equal)(resAttachmentSave.ext),size:(0,typeorm_1.Equal)(resAttachmentSave.size),google_drive:(0,typeorm_1.IsNull)()}]});if(otherAttachment.length>0){for(const oa of otherAttachment)oa.pending=!0;otherAttachment=yield _this4.attachmentRepo.save(otherAttachment)}_this4.gdrive.gDrive(!0).then(function(){var _ref8=_asyncToGenerator(function*(gdrive){const dfile=yield gdrive.files.create({requestBody:{name:`${resAttachmentSave.name}.${resAttachmentSave.ext}`,parents:[environment_1.environment.gCloudPlatform.gDrive.folder_id],mimeType:resAttachmentSave.mime},media:{mimeType:resAttachmentSave.mime,body:(0,node_fs_1.createReadStream)(`${environment_1.environment.uploadFolder}/${files[fIdx].name}`)},fields:"id"},{signal:null});if(otherAttachment.length>0){for(const oa of otherAttachment)oa.google_drive=dfile.data.id,oa.pending=!1;yield _this4.attachmentRepo.save(otherAttachment)}_this4.gs.deleteAttachment(files[fIdx].name)});return function(_x6){return _ref8.apply(this,arguments)}}()).catch(function(){var _ref9=_asyncToGenerator(function*(e5){if(_this4.gs.log("[GDRIVE-ERROR] \u{1f4bd}",e5,"error"),resAttachmentSave.pending=!1,yield _this4.attachmentRepo.save(resAttachmentSave),otherAttachment.length>0){for(const oa of otherAttachment)oa.pending=!1;yield _this4.attachmentRepo.save(otherAttachment)}});return function(_x7){return _ref9.apply(this,arguments)}}())}}return responseBody}throw new common_1.HttpException({info:`\u{1f644} 404 - Berkas API :: Gagal Mencari Lampiran ${req.body.id} \u{1f62a}`,result:{message:"Lampiran Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Attachment API :: Gagal Reupload Lampiran \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}deleteById(req,res){var _this5=this;return _asyncToGenerator(function*(){try{const attachment=yield _this5.attachmentRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.params.id)}]});_this5.gs.deleteAttachment(attachment.name);const deletedAttachment=yield _this5.attachmentRepo.remove(attachment);return"user_"in deletedAttachment&&deletedAttachment.user_&&(delete deletedAttachment.user_.created_at,delete deletedAttachment.user_.updated_at),{info:`\u{1f605} 202 - Attachment API :: Berhasil Menghapus Lampiran ${req.params.id} \u{1f923}`,result:deletedAttachment}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Attachment API :: Gagal Mencari Lampiran ${req.params.id} \u{1f62a}`,result:{message:"Lampiran Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"AttachmentController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],AttachmentController.prototype,"searchLampiranPending",null),tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],AttachmentController.prototype,"uploadLampiran",null),tslib_1.__decorate([(0,common_1.Get)("/:id"),(0,common_1.HttpCode)(206),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagAttachment),(0,swagger_1.ApiParam)({name:"id",type:"string"}),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)()),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],AttachmentController.prototype,"getById",null),tslib_1.__decorate([(0,common_1.Patch)("/"),(0,common_1.HttpCode)(202),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],AttachmentController.prototype,"reUploadAttachment",null),tslib_1.__decorate([(0,common_1.Delete)("/:id"),(0,common_1.HttpCode)(202),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],AttachmentController.prototype,"deleteById",null),AttachmentController=tslib_1.__decorate([(0,common_1.Controller)("/attachment"),tslib_1.__metadata("design:paramtypes",[schedule_1.SchedulerRegistry,attachment_service_1.AttachmentService,gdrive_service_1.GdriveService,global_service_1.GlobalService,ddl_file_1.DdlFileService,discord_service_1.DiscordService,temp_attachment_service_1.TempAttachmentService])],AttachmentController),exports2.AttachmentController=AttachmentController},77685:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BannedController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),discord_service_1=__webpack_require__2(92453),banned_service_1=__webpack_require__2(51201),user_service_1=__webpack_require__2(50675);let BannedController=__name(class{constructor(bannedRepo,ds,userRepo){this.bannedRepo=bannedRepo,this.ds=ds,this.userRepo=userRepo}searchBan(req,res){var _this=this;return _asyncToGenerator(function*(){try{const user=res.locals.user,queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),queryUserName=req.query.username;if(queryUserName){const username=queryUserName.split(",");if(Array.isArray(username)&&1===username.length){const[banneds,count]=yield _this.bannedRepo.findAndCount({where:[{user_:{username:(0,typeorm_1.In)(username)}}],relations:["user_"]}),results={};for(const i2 of username)results[i2]={};for(const b2 of banneds)"user_"in b2&&b2.user_&&(delete b2.user_.created_at,delete b2.user_.updated_at,results[b2.user_.username]=b2);return{info:"\u{1f605} 200 - Banned API :: User \u{1f923}",count,pages:1,results}}throw new Error("Data Tidak Lengkap!")}if(user){if(user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR){const[banneds,count]=yield _this.bannedRepo.findAndCount({where:[{reason:(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`)}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",reason:"ASC"}},relations:["user_","banned_by_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const b2 of banneds)"user_"in b2&&b2.user_&&(delete b2.user_.created_at,delete b2.user_.updated_at),"banned_by_"in b2&&b2.banned_by_&&(delete b2.banned_by_.created_at,delete b2.banned_by_.updated_at);return{info:"\u{1f605} 200 - Banned API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:banneds}}throw new common_1.HttpException({info:"\u{1f644} 403 - Banned API :: Authorisasi Pengguna Gagal \u{1f62a}",result:{message:"Khusus Admin / Moderator!"}},common_1.HttpStatus.FORBIDDEN)}throw new common_1.HttpException({info:"\u{1f644} 401 - Banned API :: Authorisasi Pengguna Gagal \u{1f62a}",result:{message:"Harap Login Terlebih Dahulu!"}},common_1.HttpStatus.UNAUTHORIZED)}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 400 - Banned API :: Gagal Mencari Banned ${req.query.id} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}addNew(req,res){var _this2=this;return _asyncToGenerator(function*(){try{const adminMod=res.locals.user;if("reason"in req.body&&("id"in req.body||"username"in req.body||"email"in req.body)){let excludedRole=[];excludedRole=adminMod.role===req_res_model_1.RoleModel.ADMIN?[req_res_model_1.RoleModel.ADMIN]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR];const user=yield _this2.userRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.body.id)},{username:(0,typeorm_1.ILike)(req.body.username)},{email:(0,typeorm_1.ILike)(req.body.email)}]});if(excludedRole.includes(user.role))throw new common_1.HttpException({info:"\u{1f644} 400 - Banned API :: Gagal BAN User \u{1f62a}",result:{message:"Membutuhkan Role Yang Lebih Tinggi"}},common_1.HttpStatus.FORBIDDEN);const banned=_this2.bannedRepo.new();banned.reason=req.body.reason,banned.user_=user,banned.banned_by_=adminMod;const bannedUser=yield _this2.bannedRepo.save(banned);return"user_"in bannedUser&&bannedUser.user_&&(delete bannedUser.user_.created_at,delete bannedUser.user_.updated_at),"banned_by_"in bannedUser&&bannedUser.banned_by_&&(delete bannedUser.banned_by_.created_at,delete bannedUser.banned_by_.updated_at),_this2.ds.sendNews({embeds:[_this2.ds.createEmbedMessageEmptyRawTemplate().setColor("#c5e510").setTitle(banned.user_.username).setURL(`${environment_1.environment.baseUrl}/user/${banned.user_.username}`).setAuthor({name:`${environment_1.environment.siteName} - Akun BANNED`,iconURL:`${environment_1.environment.baseUrl}/assets/img/favicon.png`,url:environment_1.environment.baseUrl}).addField("Alasan",banned.reason,!1).setThumbnail(banned.user_.image_url.startsWith("/")?environment_1.environment.baseUrl+banned.user_.image_url:banned.user_.image_url).setTimestamp(banned.updated_at).setFooter({text:banned.banned_by_?banned.banned_by_.username:"AUTO_BANNED",iconURL:banned.banned_by_?banned.banned_by_.image_url.startsWith("/")?environment_1.environment.baseUrl+banned.banned_by_.image_url:banned.banned_by_.image_url:`${environment_1.environment.baseUrl}/assets/img/favicon.png`})]}),{info:"\u{1f605} 201 - Banned API :: Berhasil BAN User \u{1f923}",results:bannedUser}}throw new common_1.HttpException({info:"\u{1f644} 400 - Banned API :: Gagal BAN User \u{1f62a}",result:{message:"Data Tidak Lengkap"}},common_1.HttpStatus.BAD_REQUEST)}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Banned API :: Gagal Mencari User ${req.body.id||req.body.username||req.body.email} \u{1f62a}`,result:{message:"User Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}getAll(req,res){var _this3=this;return _asyncToGenerator(function*(){try{if("username"in req.body&&Array.isArray(req.body.username)&&req.body.username.length>0){const[banneds,count]=yield _this3.bannedRepo.findAndCount({where:[{user_:{username:(0,typeorm_1.In)(req.body.username)}}],relations:["user_"]}),results={};for(const i2 of req.body.username)results[i2]={};for(const b2 of banneds)"user_"in b2&&b2.user_&&(delete b2.user_.created_at,delete b2.user_.updated_at,results[b2.user_.username]=b2);return{info:"\u{1f605} 200 - Banned API :: User \u{1f923}",count,pages:1,results}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Banned API :: Gagal Mencari Banned \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}deleteById(req,res){var _this4=this;return _asyncToGenerator(function*(){try{const adminMod=res.locals.user,banned=yield _this4.bannedRepo.findOneOrFail({where:[{id:req.params.id}],relations:["user_","banned_by_"]});let excludedRole=[];excludedRole=adminMod.role===req_res_model_1.RoleModel.ADMIN?[req_res_model_1.RoleModel.ADMIN]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR];const user=yield _this4.userRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(banned.user_.id)}]});if(excludedRole.includes(user.role))throw new common_1.HttpException({info:"\u{1f644} 400 - Banned API :: Gagal UnBAN User \u{1f62a}",result:{message:"Membutuhkan Role Yang Lebih Tinggi"}},common_1.HttpStatus.FORBIDDEN);const unBannedUser=yield _this4.bannedRepo.remove(banned);return"user_"in unBannedUser&&unBannedUser.user_&&(delete unBannedUser.user_.created_at,delete unBannedUser.user_.updated_at),"banned_by_"in unBannedUser&&unBannedUser.banned_by_&&(delete unBannedUser.banned_by_.created_at,delete unBannedUser.banned_by_.updated_at),{info:`\u{1f605} 202 - Banned API :: Berhasil UnBAN User ${req.params.id} \u{1f923}`,result:unBannedUser}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Banned API :: Gagal Mencari User ${req.params.id} \u{1f62a}`,result:{message:"User Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"BannedController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagBanned),(0,swagger_1.ApiQuery)({name:"username",type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],BannedController.prototype,"searchBan",null),tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],BannedController.prototype,"addNew",null),tslib_1.__decorate([(0,common_1.Patch)(),(0,common_1.HttpCode)(202),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],BannedController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Delete)("/:id"),(0,common_1.HttpCode)(202),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],BannedController.prototype,"deleteById",null),BannedController=tslib_1.__decorate([(0,common_1.Controller)("/banned"),tslib_1.__metadata("design:paramtypes",[banned_service_1.BannedService,discord_service_1.DiscordService,user_service_1.UserService])],BannedController),exports2.BannedController=BannedController},35348:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BerkasController=void 0;const tslib_1=__webpack_require__2(70655),node_fs_1=__webpack_require__2(35404),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),schedule_1=__webpack_require__2(31143),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),req_res_model_1=__webpack_require__2(14249),environment_1=__webpack_require__2(17482),anime_service_1=__webpack_require__2(88122),attachment_service_1=__webpack_require__2(37470),berkas_service_1=__webpack_require__2(17319),dorama_service_1=__webpack_require__2(81475),fansub_service_1=__webpack_require__2(51467),project_type_service_1=__webpack_require__2(60264),temp_attachment_service_1=__webpack_require__2(88767),discord_service_1=__webpack_require__2(92453),gdrive_service_1=__webpack_require__2(48888),global_service_1=__webpack_require__2(40735),mkv_extract_service_1=__webpack_require__2(63211),socket_io_service_1=__webpack_require__2(98095);let BerkasController=__name(class{constructor(sr,animeRepo,attachmentRepo,berkasRepo,doramaRepo,ds,fansubRepo,gdrive,gs,mkv,projectTypeRepo,sis,tempAttachmentRepo){this.sr=sr,this.animeRepo=animeRepo,this.attachmentRepo=attachmentRepo,this.berkasRepo=berkasRepo,this.doramaRepo=doramaRepo,this.ds=ds,this.fansubRepo=fansubRepo,this.gdrive=gdrive,this.gs=gs,this.mkv=mkv,this.projectTypeRepo=projectTypeRepo,this.sis=sis,this.tempAttachmentRepo=tempAttachmentRepo}searchBerkas(req,res){var _this=this;return _asyncToGenerator(function*(){try{const user=res.locals.user,queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),sqlWhere=[{...(null==user?void 0:user.verified)?{}:{private:!1},name:(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`),user_:{private:!1}}],userFilesCriteria={};user&&(userFilesCriteria.name=(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`),user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR||user.role===req_res_model_1.RoleModel.FANSUBBER||_this.gs.isFreeTime()||(userFilesCriteria.user_={id:user.id}),sqlWhere.push(userFilesCriteria));const[files,count]=yield _this.berkasRepo.findAndCount({where:sqlWhere,order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",name:"ASC"}},relations:["project_type_","fansub_","user_","dorama_","anime_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const f2 of files){if(delete f2.download_url,delete f2.description,"project_type_"in f2&&f2.project_type_&&(delete f2.project_type_.created_at,delete f2.project_type_.updated_at),"fansub_"in f2&&f2.fansub_)for(const fansub of f2.fansub_)delete fansub.description,delete fansub.urls,delete fansub.tags,delete fansub.created_at,delete fansub.updated_at;"anime_"in f2&&f2.anime_&&(delete f2.anime_.created_at,delete f2.anime_.updated_at),"dorama_"in f2&&f2.dorama_&&(delete f2.dorama_.created_at,delete f2.dorama_.updated_at),"user_"in f2&&f2.user_&&(delete f2.user_.created_at,delete f2.user_.updated_at)}return{info:"\u{1f605} 200 - Berkas API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:files}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Berkas API :: Gagal Mendapatkan All Berkas \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}addNew(req,res){var _this2=this;return _asyncToGenerator(function*(){try{if("name"in req.body&&"projectType_id"in req.body&&("anime_id"in req.body||"dorama_id"in req.body)&&"fansub_id"in req.body&&Array.isArray(req.body.fansub_id)&&req.body.fansub_id.length>0){const user=res.locals.user,berkas=_this2.berkasRepo.new(),filteredUrls=[];if("download_url"in req.body&&Array.isArray(req.body.download_url)&&req.body.download_url.length>0)for(const u of req.body.download_url)"url"in u&&"name"in u&&u.url&&u.name&&filteredUrls.push({url:u.url,name:u.name});if(user.verified){if(filteredUrls.length<=0&&!req.body.attachment_id)throw new common_1.HttpException({info:"\u{1f644} 400 - Berkas API :: Gagal Menambahkan Berkas \u{1f62a}",result:{message:"Wajib Mengisi Min 1 URL Eksternal / Upload 1 DDL Stream!"}},common_1.HttpStatus.BAD_REQUEST)}else if(filteredUrls.length<=0)throw new common_1.HttpException({info:"\u{1f644} 400 - Berkas API :: Gagal Menambahkan Berkas \u{1f62a}",result:{message:"Wajib Mengisi Min 1 URL Eksternal!"}},common_1.HttpStatus.BAD_REQUEST);if(berkas.download_url=JSON.stringify(filteredUrls),berkas.name=req.body.name,"description"in req.body&&(berkas.description=req.body.description),"private"in req.body&&(berkas.private=!0===req.body.private),"image"in req.body&&(berkas.image_url=req.body.image),"anime_id"in req.body){const anime=yield _this2.animeRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.body.anime_id)}]});berkas.anime_=anime,berkas.dorama_=null}if("dorama_id"in req.body){const dorama=yield _this2.doramaRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.body.dorama_id)}]});berkas.anime_=null,berkas.dorama_=dorama}const fansub=yield _this2.fansubRepo.find({where:[{id:(0,typeorm_1.In)(req.body.fansub_id)}]});berkas.fansub_=fansub;const project=yield _this2.projectTypeRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.body.projectType_id)}]});if(berkas.project_type_=project,berkas.user_=user,"attachment_id"in req.body){_this2.sr.deleteTimeout(`${constants_1.CONSTANTS.timeoutDeleteTempAttachmentKey}@${req.body.attachment_id}`);const tempAttachment=yield _this2.tempAttachmentRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.body.attachment_id),user_:{id:(0,typeorm_1.Equal)(user.id)}}],relations:["user_"]}),attachment=_this2.attachmentRepo.new();attachment.name=tempAttachment.name,attachment.size=tempAttachment.size,attachment.ext=tempAttachment.ext,attachment.mime=tempAttachment.mime,attachment.user_=user;const resAttachmentSave=yield _this2.attachmentRepo.save(attachment);yield _this2.tempAttachmentRepo.remove(tempAttachment);const files=(0,node_fs_1.readdirSync)(`${environment_1.environment.uploadFolder}`,{withFileTypes:!0}),fIdx=files.findIndex(f2=>f2.name===attachment.name||f2.name===`${attachment.name}.${attachment.ext}`);if(!(fIdx>=0))throw yield _this2.attachmentRepo.remove(resAttachmentSave),new common_1.HttpException({info:"\u{1f644} 404 - Berkas API :: Gagal Mencari Lampiran \u{1f62a}",result:{message:"Lampiran Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND);{berkas.attachment_=resAttachmentSave;let videoExtractCompleted=!1,videoUploadCompleted=!1;if("mkv"===resAttachmentSave.ext?_this2.mkv.mkvExtract(resAttachmentSave.name,`${environment_1.environment.uploadFolder}/${files[fIdx].name}`,function(){var _ref=_asyncToGenerator(function*(e1,extractedFiles){if(e1)_this2.gs.log("[MKV_EXTRACT-ERROR] \u{1f4c2}",e1,"error");else for(const ef of extractedFiles){const fileNameExt=ef.name.split("."),fileExt=fileNameExt.pop().toLowerCase(),fileName=fileNameExt.join(".").toLowerCase();try{const mkvAttachment=_this2.attachmentRepo.new();mkvAttachment.name=fileName,mkvAttachment.ext=fileExt,mkvAttachment.size=ef.size,mkvAttachment.pending=environment_1.environment.production,mkvAttachment.user_=user,mkvAttachment.parent_attachment_=resAttachmentSave,constants_1.CONSTANTS.extSubs.includes(fileExt)?mkvAttachment.mime="text/plain":constants_1.CONSTANTS.extFonts.includes(fileExt)?mkvAttachment.mime=`font/${fileExt}`:mkvAttachment.mime="application/octet-stream";let mkvAttachmentDuplicate=null;const otherAttachment1=yield _this2.attachmentRepo.find({where:[{name:(0,typeorm_1.Equal)(fileName),ext:(0,typeorm_1.Equal)(fileExt),size:(0,typeorm_1.Equal)(ef.size)}]});if(otherAttachment1.length>0)for(const oa of otherAttachment1)if(mkvAttachmentDuplicate=oa,oa.google_drive)break;const fileExist=(0,node_fs_1.existsSync)(`${environment_1.environment.uploadFolder}/${fileName}.${fileExt}`);mkvAttachmentDuplicate?(mkvAttachment.name=mkvAttachmentDuplicate.name,mkvAttachment.ext=mkvAttachmentDuplicate.ext,mkvAttachment.size=mkvAttachmentDuplicate.size,mkvAttachment.mime=mkvAttachmentDuplicate.mime,mkvAttachment.pending=!1,mkvAttachmentDuplicate.google_drive?(mkvAttachment.google_drive=mkvAttachmentDuplicate.google_drive,_this2.gs.deleteAttachment(`${fileName}.${fileExt}`)):fileExist||(0,node_fs_1.writeFileSync)(`${environment_1.environment.uploadFolder}/${fileName}.${fileExt}`,ef.data)):fileExist||(0,node_fs_1.writeFileSync)(`${environment_1.environment.uploadFolder}/${fileName}.${fileExt}`,ef.data);const resMkvAttachmentSave=yield _this2.attachmentRepo.save(mkvAttachment);resMkvAttachmentSave.pending&&_this2.gdrive.gDrive(!0).then(function(){var _ref2=_asyncToGenerator(function*(gdrive){const dfile=yield gdrive.files.create({requestBody:{name:`${resMkvAttachmentSave.name}.${resMkvAttachmentSave.ext}`,parents:[environment_1.environment.gCloudPlatform.gDrive.folder_id],mimeType:resMkvAttachmentSave.mime},media:{mimeType:resMkvAttachmentSave.mime,body:(0,node_fs_1.createReadStream)(`${environment_1.environment.uploadFolder}/${fileName}.${fileExt}`)},fields:"id"},{signal:null}),otherAttachment2=yield _this2.attachmentRepo.find({where:[{name:(0,typeorm_1.Equal)(resMkvAttachmentSave.name),ext:(0,typeorm_1.Equal)(resMkvAttachmentSave.ext),size:(0,typeorm_1.Equal)(resMkvAttachmentSave.size),google_drive:(0,typeorm_1.IsNull)()}]});for(const oa of otherAttachment2)oa.google_drive=dfile.data.id,oa.pending=!1;yield _this2.attachmentRepo.save(otherAttachment2),_this2.gs.deleteAttachment(`${fileName}.${fileExt}`)});return function(_x3){return _ref2.apply(this,arguments)}}()).catch(function(){var _ref3=_asyncToGenerator(function*(e3){_this2.gs.log("[GDRIVE-ERROR] \u{1f4bd}",e3,"error"),resMkvAttachmentSave.pending=!1,yield _this2.attachmentRepo.save(resMkvAttachmentSave)});return function(_x4){return _ref3.apply(this,arguments)}}())}catch(e2){_this2.gs.log("[FILE_ATTACHMENT-ERROR] \u{1f3bc}",e2,"error")}}videoExtractCompleted=!0,videoUploadCompleted&&_this2.gs.deleteAttachment(files[fIdx].name)});return function(_x,_x2){return _ref.apply(this,arguments)}}()):videoExtractCompleted=!0,environment_1.environment.production){let permanent_storage=!1;"permanent_storage"in req.body&&(permanent_storage=(user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR)&&!0===req.body.permanent_storage),permanent_storage?_this2.gdrive.gDrive(!0).then(function(){var _ref4=_asyncToGenerator(function*(gdrive){const dfile=yield gdrive.files.create({requestBody:{name:`${resAttachmentSave.name}.${resAttachmentSave.ext}`,parents:[environment_1.environment.gCloudPlatform.gDrive.folder_id],mimeType:resAttachmentSave.mime},media:{mimeType:resAttachmentSave.mime,body:(0,node_fs_1.createReadStream)(`${environment_1.environment.uploadFolder}/${files[fIdx].name}`)},fields:"id"},{signal:null});resAttachmentSave.google_drive=dfile.data.id,resAttachmentSave.pending=!1,yield _this2.attachmentRepo.save(resAttachmentSave),videoUploadCompleted=!0,videoExtractCompleted&&_this2.gs.deleteAttachment(files[fIdx].name)});return function(_x5){return _ref4.apply(this,arguments)}}()).catch(function(){var _ref5=_asyncToGenerator(function*(e){_this2.gs.log("[GDRIVE-ERROR] \u{1f4bd}",e,"error"),resAttachmentSave.pending=!1,yield _this2.attachmentRepo.save(resAttachmentSave)});return function(_x6){return _ref5.apply(this,arguments)}}()):_this2.ds.sendAttachment(resAttachmentSave,user).then(function(){var _ref6=_asyncToGenerator(function*(chunkParent){resAttachmentSave.discord=chunkParent,resAttachmentSave.pending=!1,yield _this2.attachmentRepo.save(resAttachmentSave),videoUploadCompleted=!0,videoExtractCompleted&&_this2.gs.deleteAttachment(files[fIdx].name)});return function(_x7){return _ref6.apply(this,arguments)}}()).catch(function(){var _ref7=_asyncToGenerator(function*(e){_this2.gs.log("[DISCORD-ERROR] \u{1f4bd}",e,"error"),resAttachmentSave.pending=!1,yield _this2.attachmentRepo.save(resAttachmentSave)});return function(_x8){return _ref7.apply(this,arguments)}}())}else resAttachmentSave.pending=!1,yield _this2.attachmentRepo.save(resAttachmentSave)}}const resFileSave=yield _this2.berkasRepo.save(berkas);resFileSave.download_url=JSON.parse(resFileSave.download_url);const fansubEmbedData=[];if("fansub_"in resFileSave&&resFileSave.fansub_)for(const f2 of resFileSave.fansub_)f2.tags=JSON.parse(f2.tags),f2.urls=JSON.parse(f2.urls),delete f2.created_at,delete f2.updated_at,fansubEmbedData.push(f2.name);return"attachment_"in resFileSave&&resFileSave.attachment_&&(delete resFileSave.attachment_.user_,delete resFileSave.attachment_.created_at,delete resFileSave.attachment_.updated_at),"anime_"in resFileSave&&resFileSave.anime_&&(delete resFileSave.anime_.created_at,delete resFileSave.anime_.updated_at),"project_type_"in resFileSave&&resFileSave.project_type_&&(delete resFileSave.project_type_.created_at,delete resFileSave.project_type_.updated_at),"user_"in resFileSave&&resFileSave.user_&&(delete resFileSave.user_.created_at,delete resFileSave.user_.updated_at),_this2.ds.sendNews({embeds:[_this2.ds.createEmbedMessageEmptyRawTemplate().setColor("#0099ff").setTitle(resFileSave.name).setURL(`${environment_1.environment.baseUrl}/berkas/${resFileSave.id}`).setAuthor({name:`${environment_1.environment.siteName} - Penambahan Berkas Baru`,iconURL:`${environment_1.environment.baseUrl}/assets/img/favicon.png`,url:environment_1.environment.baseUrl}).setDescription(_this2.gs.htmlToText(resFileSave.description)).addField(resFileSave.anime_?"Anime":"Dorama",resFileSave.anime_?resFileSave.anime_.name:resFileSave.dorama_.name,!1).addField("Fansub",fansubEmbedData.join(", "),!1).addFields({name:"Jenis",value:resFileSave.project_type_.name.split("_")[1],inline:!0},{name:"Ddl",value:resFileSave.attachment_?"Ya":"Tidak",inline:!0},{name:"Tersembunyi",value:resFileSave.private?"Ya":"Tidak",inline:!0}).setImage(resFileSave.image_url.startsWith("/")?environment_1.environment.baseUrl+resFileSave.image_url:resFileSave.image_url).setTimestamp(resFileSave.updated_at).setFooter({text:resFileSave.user_.username,iconURL:resFileSave.user_.image_url.startsWith("/")?environment_1.environment.baseUrl+resFileSave.user_.image_url:resFileSave.user_.image_url})]}),resFileSave.private||_this2.sis.emitToBroadcast("new-berkas",resFileSave),{info:"\u{1f605} 201 - Berkas API :: Tambah Baru \u{1f923}",result:resFileSave}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Berkas API :: Gagal Menambah Berkas Baru \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getById(req,res){var _this3=this;return _asyncToGenerator(function*(){try{const user=res.locals.user,file2=yield _this3.berkasRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.params.id)}],relations:["project_type_","fansub_","user_","anime_","dorama_","attachment_"]});if("project_type_"in file2&&file2.project_type_&&(delete file2.project_type_.created_at,delete file2.project_type_.updated_at),"fansub_"in file2&&file2.fansub_)for(const f2 of file2.fansub_)delete f2.description,delete f2.urls,delete f2.tags,delete f2.created_at,delete f2.updated_at;if("anime_"in file2&&file2.anime_&&(delete file2.anime_.created_at,delete file2.anime_.updated_at),"dorama_"in file2&&file2.dorama_&&(delete file2.dorama_.created_at,delete file2.dorama_.updated_at),"user_"in file2&&file2.user_&&(delete file2.user_.created_at,delete file2.user_.updated_at),user)if(file2.download_url=JSON.parse(file2.download_url),user.verified){if("attachment_"in file2&&file2.attachment_){delete file2.attachment_.created_at,delete file2.attachment_.updated_at;const subtitles=yield _this3.attachmentRepo.find({where:[{ext:(0,typeorm_1.In)(constants_1.CONSTANTS.extSubs),parent_attachment_:{id:(0,typeorm_1.Equal)(file2.attachment_.id)}}],relations:["parent_attachment_"]});for(const s of subtitles)delete s.created_at,delete s.updated_at,delete s.parent_attachment_;file2.attachment_.subtitles_=subtitles;const fonts=yield _this3.attachmentRepo.find({where:[{ext:(0,typeorm_1.In)(constants_1.CONSTANTS.extFonts),parent_attachment_:{id:(0,typeorm_1.Equal)(file2.attachment_.id)}}],relations:["parent_attachment_"]});for(const f2 of fonts)delete f2.created_at,delete f2.updated_at,delete f2.parent_attachment_;file2.attachment_.fonts_=fonts}}else file2.attachment_&&(file2.attachment_="Harap Verifikasi Akun!");else file2.download_url=null,file2.attachment_=null;return{info:`\u{1f605} 200 - Berkas API :: Detail ${req.params.id} \u{1f923}`,result:file2}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Berkas API :: Gagal Mencari Berkas ${req.params.id} \u{1f62a}`,result:{message:"Berkas Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}updateById(req,res){var _this4=this;return _asyncToGenerator(function*(){var _a;try{if("name"in req.body||"description"in req.body||"private"in req.body||"image"in req.body||"anime_id"in req.body||"dorama_id"in req.body||"projectType_id"in req.body||"download_url"in req.body&&Array.isArray(req.body.download_url)&&req.body.download_url.length>0||"fansub_id"in req.body&&Array.isArray(req.body.fansub_id)&&req.body.fansub_id.length>0){const user=res.locals.user,file2=yield _this4.berkasRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.params.id)}],relations:["user_","attachment_","anime_","dorama_","project_type_","fansub_"]});if(user.id===file2.user_.id){if("download_url"in req.body){const filteredUrls=[];for(const u of req.body.download_url)"url"in u&&"name"in u&&u.url&&u.name&&filteredUrls.push({url:u.url,name:u.name});if(user.verified){if(filteredUrls.length<=0&&!(null===(_a=file2.attachment_)||void 0===_a?void 0:_a.id))throw new common_1.HttpException({info:"\u{1f644} 400 - Berkas API :: Gagal Menambahkan Berkas \u{1f62a}",result:{message:"Wajib Mengisi Min 1 URL Eksternal / Upload 1 DDL Stream!"}},common_1.HttpStatus.BAD_REQUEST)}else if(filteredUrls.length<=0)throw new common_1.HttpException({info:"\u{1f644} 400 - Berkas API :: Gagal Menambahkan Berkas \u{1f62a}",result:{message:"Wajib Mengisi Min 1 URL Eksternal!"}},common_1.HttpStatus.BAD_REQUEST);file2.download_url=JSON.stringify(filteredUrls)}if("name"in req.body&&(file2.name=req.body.name),"description"in req.body&&(file2.description=req.body.description),"image"in req.body&&(file2.image_url=req.body.image),"private"in req.body&&(file2.private=!0===req.body.private),"anime_id"in req.body){const anime=yield _this4.animeRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.body.anime_id)}]});file2.anime_=anime,file2.dorama_=null}if("dorama_id"in req.body){const dorama=yield _this4.doramaRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.body.dorama_id)}]});file2.anime_=null,file2.dorama_=dorama}if("fansub_id"in req.body){const fansub=yield _this4.fansubRepo.find({where:[{id:(0,typeorm_1.In)(req.body.fansub_id)}]});file2.fansub_=fansub}if("projectType_id"in req.body){const project=yield _this4.projectTypeRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.body.projectType_id)}]});file2.project_type_=project}const resFileSave=yield _this4.berkasRepo.save(file2);resFileSave.download_url=JSON.parse(resFileSave.download_url);const fansubEmbedData=[];if("fansub_"in resFileSave&&resFileSave.fansub_)for(const f2 of resFileSave.fansub_)f2.tags=JSON.parse(f2.tags),f2.urls=JSON.parse(f2.urls),delete f2.created_at,delete f2.updated_at,fansubEmbedData.push(f2.name);return"attachment_"in resFileSave&&resFileSave.attachment_&&(delete resFileSave.attachment_.user_,delete resFileSave.attachment_.created_at,delete resFileSave.attachment_.updated_at),"anime_"in resFileSave&&resFileSave.anime_&&(delete resFileSave.anime_.created_at,delete resFileSave.anime_.updated_at),"dorama_"in resFileSave&&resFileSave.dorama_&&(delete resFileSave.dorama_.created_at,delete resFileSave.dorama_.updated_at),"project_type_"in resFileSave&&resFileSave.project_type_&&(delete resFileSave.project_type_.created_at,delete resFileSave.project_type_.updated_at),"user_"in resFileSave&&resFileSave.user_&&(delete resFileSave.user_.created_at,delete resFileSave.user_.updated_at),_this4.ds.sendNews({embeds:[_this4.ds.createEmbedMessageEmptyRawTemplate().setColor("#ff4081").setTitle(resFileSave.name).setURL(`${environment_1.environment.baseUrl}/berkas/${resFileSave.id}`).setAuthor({name:`${environment_1.environment.siteName} - Pembaharuan Data Berkas`,iconURL:`${environment_1.environment.baseUrl}/assets/img/favicon.png`,url:environment_1.environment.baseUrl}).setDescription(_this4.gs.htmlToText(resFileSave.description)).addField(resFileSave.anime_?"Anime":"Dorama",resFileSave.anime_?resFileSave.anime_.name:resFileSave.dorama_.name,!1).addField("Fansub",fansubEmbedData.join(", "),!1).addFields({name:"Jenis",value:resFileSave.project_type_.name.split("_")[1],inline:!0},{name:"Ddl",value:resFileSave.attachment_?"Ya":"Tidak",inline:!0},{name:"Tersembunyi",value:resFileSave.private?"Ya":"Tidak",inline:!0}).setImage(resFileSave.image_url.startsWith("/")?environment_1.environment.baseUrl+resFileSave.image_url:resFileSave.image_url).setTimestamp(resFileSave.updated_at).setFooter({text:resFileSave.user_.username,iconURL:resFileSave.user_.image_url.startsWith("/")?environment_1.environment.baseUrl+resFileSave.user_.image_url:resFileSave.user_.image_url})]}),{info:`\u{1f605} 200 - Berkas API :: Ubah ${req.params.id} \u{1f923}`,result:resFileSave}}throw new common_1.HttpException({info:"\u{1f644} 403 - Berkas API :: Authorisasi Kepemilikan Gagal \u{1f62a}",result:{message:"Berkas Milik Orang Lain!"}},common_1.HttpStatus.FORBIDDEN)}throw new common_1.HttpException({info:`\u{1f644} 400 - Berkas API :: Gagal Mengubah Berkas ${req.params.id} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Berkas API :: Gagal Mencari Berkas ${req.params.id} \u{1f62a}`,result:{message:"Berkas Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}deleteById(req,res){var _this5=this;return _asyncToGenerator(function*(){try{const berkas=yield _this5.berkasRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.params.id)}]}),deletedBerkas=yield _this5.berkasRepo.remove(berkas);return"user_"in deletedBerkas&&deletedBerkas.user_&&(delete deletedBerkas.user_.created_at,delete deletedBerkas.user_.updated_at),{info:`\u{1f605} 200 - Berkas API :: Berhasil Menghapus Berkas ${req.params.id} \u{1f923}`,result:deletedBerkas}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Berkas API :: Gagal Mencari Berkas ${req.params.id} \u{1f62a}`,result:{message:"Berkas Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"BerkasController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagBerkas),(0,swagger_1.ApiQuery)({name:"q",required:!1,type:"string"}),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],BerkasController.prototype,"searchBerkas",null),tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],BerkasController.prototype,"addNew",null),tslib_1.__decorate([(0,common_1.Get)("/:id"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagBerkas),(0,swagger_1.ApiParam)({name:"id",type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],BerkasController.prototype,"getById",null),tslib_1.__decorate([(0,common_1.Put)("/:id"),(0,common_1.HttpCode)(201),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],BerkasController.prototype,"updateById",null),tslib_1.__decorate([(0,common_1.Delete)("/:id"),(0,common_1.HttpCode)(202),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],BerkasController.prototype,"deleteById",null),BerkasController=tslib_1.__decorate([(0,common_1.Controller)("/berkas"),tslib_1.__metadata("design:paramtypes",[schedule_1.SchedulerRegistry,anime_service_1.AnimeService,attachment_service_1.AttachmentService,berkas_service_1.BerkasService,dorama_service_1.DoramaService,discord_service_1.DiscordService,fansub_service_1.FansubService,gdrive_service_1.GdriveService,global_service_1.GlobalService,mkv_extract_service_1.MkvExtractService,project_type_service_1.ProjectTypeService,socket_io_service_1.SocketIoService,temp_attachment_service_1.TempAttachmentService])],BerkasController),exports2.BerkasController=BerkasController},56209:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CommentController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),req_res_model_1=__webpack_require__2(14249),roles_decorator_1=__webpack_require__2(46141),komentar_service_1=__webpack_require__2(83114);let CommentController=__name(class{constructor(komentarRepo){this.komentarRepo=komentarRepo}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){try{const queryPath=req.query.path,queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[komens,count]=yield _this.komentarRepo.findAndCount({where:[{...queryPath?{path:(0,typeorm_1.Equal)(queryPath)}:{},parent_komentar_:(0,typeorm_1.IsNull)(),comment:(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`)}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",id:"DESC"}},relations:["parent_komentar_","user_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10,withDeleted:!!queryPath});for(const k of komens)k.deleted_at&&(k.comment='Komentar Telah Di Hapus ...'),"user_"in k&&k.user_&&(delete k.user_.created_at,delete k.user_.updated_at),k.reply_count=yield _this.komentarRepo.count({where:[{parent_komentar_:{id:(0,typeorm_1.Equal)(k.id)}}],relations:["parent_komentar_"]});return{info:"\u{1f605} 200 - Komentar API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:komens}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Komentar API :: Gagal Mendapatkan All Komentar \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}addNew(req,res){var _this2=this;return _asyncToGenerator(function*(){try{if("path"in req.body&&"comment"in req.body){const user=res.locals.user,komen=_this2.komentarRepo.new();if(komen.path=req.body.path.split("?")[0],komen.comment=req.body.comment,"parent"in req.body){const comment=yield _this2.komentarRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.body.parent)}]});komen.parent_komentar_=comment}komen.user_=user;const resKomenSave=yield _this2.komentarRepo.save(komen);return"user_"in resKomenSave&&resKomenSave.user_&&(delete resKomenSave.user_.created_at,delete resKomenSave.user_.updated_at),{info:"\u{1f605} 201 - Komentar API :: Tambah Baru \u{1f923}",result:resKomenSave}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Komentar API :: Gagal Menambah Komentar Baru \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getReplyByParentId(req,res){var _this3=this;return _asyncToGenerator(function*(){try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[komens,count]=yield _this3.komentarRepo.findAndCount({where:[{parent_komentar_:(0,typeorm_1.Equal)(req.params.id),comment:(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`)}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",id:"DESC"}},relations:["user_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10,withDeleted:!0});for(const k of komens)k.deleted_at&&(k.comment='Komentar Telah Di Hapus ...'),"user_"in k&&k.user_&&(delete k.user_.created_at,delete k.user_.updated_at),k.reply_count=yield _this3.komentarRepo.count({where:[{parent_komentar_:{id:(0,typeorm_1.Equal)(k.id)}}],relations:["parent_komentar_"]});return{info:"\u{1f605} 200 - Komentar API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:komens}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 404 - Komentar API :: Gagal Mendapatkan All Komentar \u{1f62a}",result:{message:"Komentar Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}getHighlight(req,res){var _this4=this;return _asyncToGenerator(function*(){try{if("id"in req.body&&"path"in req.body){const komen=yield _this4.komentarRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.body.id),path:(0,typeorm_1.ILike)(req.body.path.split("?")[0])}],relations:["parent_komentar_","user_"],withDeleted:!0});return komen.deleted_at&&(komen.comment='Komentar Telah Di Hapus ...'),"user_"in komen&&komen.user_&&(delete komen.user_.created_at,delete komen.user_.updated_at),komen.reply_count=yield _this4.komentarRepo.count({where:[{parent_komentar_:{id:(0,typeorm_1.Equal)(komen.id)}}],relations:["parent_komentar_"]}),{info:`\u{1f605} 200 - Komentar API :: Detail ${req.body.id} \u{1f923}`,result:komen}}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 400 - Komentar API :: Gagal Mendapatkan Komentar ${req.body.id} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}deleteById(req,res){var _this5=this;return _asyncToGenerator(function*(){try{const user=res.locals.user,komen=yield _this5.komentarRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}],relations:["user_"]});if(komen.user_.id===user.id||user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR){const deletedKomen=yield _this5.komentarRepo.remove(komen);return"user_"in deletedKomen&&deletedKomen.user_&&(delete deletedKomen.user_.created_at,delete deletedKomen.user_.updated_at),{info:`\u{1f605} 202 - Komentar API :: Berhasil Menghapus Komentar ${req.params.id} \u{1f923}`,result:deletedKomen}}throw new common_1.HttpException({info:"\u{1f644} 403 - Komentar API :: Authorisasi Kepemilikan Gagal \u{1f62a}",result:{message:"Komentar Milik Orang Lain!"}},common_1.HttpStatus.FORBIDDEN)}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Komentar API :: Gagal Mencari Komentar ${req.params.id} \u{1f62a}`,result:{message:"Komentar Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"CommentController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],CommentController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],CommentController.prototype,"addNew",null),tslib_1.__decorate([(0,common_1.Get)("/:id"),(0,common_1.HttpCode)(200),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],CommentController.prototype,"getReplyByParentId",null),tslib_1.__decorate([(0,common_1.Patch)("/"),(0,common_1.HttpCode)(202),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],CommentController.prototype,"getHighlight",null),tslib_1.__decorate([(0,common_1.Delete)("/:id"),(0,common_1.HttpCode)(202),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],CommentController.prototype,"deleteById",null),CommentController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/comment"),tslib_1.__metadata("design:paramtypes",[komentar_service_1.KomentarService])],CommentController),exports2.CommentController=CommentController},94685:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CrawlController=void 0;const tslib_1=__webpack_require__2(70655),puppeteer_extra_1=tslib_1.__importDefault(__webpack_require__2(19828)),puppeteer_extra_plugin_stealth_1=tslib_1.__importDefault(__webpack_require__2(43199)),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),filter_api_key_access_decorator_1=__webpack_require__2(18834),global_service_1=__webpack_require__2(40735);let CrawlController=__name(class{constructor(gs){this.gs=gs,this.prohibitedHeaders=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","date","dnt","expect","feature-policy","host","keep-alive","origin","proxy-*","sec-*","referer","te","trailer","transfer-encoding","upgrade","via"],this.requestHeadersToRemove=["host","user-agent","accept","accept-encoding","content-length","forwarded","x-forwarded-proto","x-forwarded-for","x-cloud-trace-context"],this.responseHeadersToRemove=["accept-ranges","content-length","keep-alive","connection","content-encoding","set-cookie"],this.options={headless:!0,args:["--no-sandbox","--disable-setuid-sandbox"]},this.browser=null,puppeteer_extra_1.default.use((0,puppeteer_extra_plugin_stealth_1.default)()),this.initialize()}initialize(){var _this=this;return _asyncToGenerator(function*(){_this.browser=yield puppeteer_extra_1.default.launch(_this.options)})()}crawl(req,res){var _this2=this;return _asyncToGenerator(function*(){let url=req.query.url,page=null,responseBody=null,responseData=null,responseHeaders={},tryCount=0;try{if(!url)throw new Error("Data Tidak Lengkap!");{!url.startsWith("http://")&&!url.startsWith("https://")&&(url="http://"+url),page=yield _this2.browser.newPage();const requestHeaders={...req.headers};for(const header of[..._this2.requestHeadersToRemove,..._this2.prohibitedHeaders])delete requestHeaders[header];yield page.setExtraHTTPHeaders(requestHeaders);let response=yield page.goto(url,{timeout:3e4,waitUntil:"domcontentloaded"});for(responseBody=yield response.text(),responseData=yield response.buffer();responseBody.includes("cf-browser-verification")&&tryCount<=10;){const newResponse=yield page.waitForNavigation({timeout:3e4,waitUntil:"domcontentloaded"});newResponse&&(response=newResponse),responseBody=yield response.text(),responseData=yield response.buffer(),tryCount++}responseHeaders=response.headers();for(const header of[..._this2.responseHeadersToRemove,..._this2.prohibitedHeaders])delete responseHeaders[header];for(const header in responseHeaders)res.set(header,responseHeaders[header].replace(/(\r\n|\n|\r)/gm,", "));const cookies=yield page.cookies();if(cookies)for(const cookie of cookies){const{name,value,secure,expires,domain,...options}=cookie;res.cookie(cookie.name,cookie.value,options)}yield page.close(),res.send(responseData)}}catch{page&&(yield page.close());const body={info:"\u{1f644} 400 - Crawl API :: URL Tidak Valid \u{1f62a}",result:{message:"Data Tidak Lengkap!"}};res.status(common_1.HttpStatus.BAD_REQUEST),res.locals.xml?(res.set("Content-Type","application/xml"),res.send(_this2.gs.OBJ2XML(body))):res.json(body)}})()}},"CrawlController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)()),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],CrawlController.prototype,"crawl",null),CrawlController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/crawl"),tslib_1.__metadata("design:paramtypes",[global_service_1.GlobalService])],CrawlController),exports2.CrawlController=CrawlController},66490:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DdlSeekController=exports2.DdlPartController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),attachment_service_1=__webpack_require__2(37470),ddl_file_1=__webpack_require__2(34885),api_service_1=__webpack_require__2(99527),global_service_1=__webpack_require__2(40735);let DdlPartController=__name(class{constructor(api,attachmentRepo,gs,ddlFileRepo){this.api=api,this.attachmentRepo=attachmentRepo,this.gs=gs,this.ddlFileRepo=ddlFileRepo}downloadChunk(req,res){var _this=this;return _asyncToGenerator(function*(){try{const ddlFile=yield _this.ddlFileRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.params.id)}]}),res_raw=yield _this.api.getData(new URL(ddlFile.url),{Range:req.headers.range||"bytes=0-",...environment_1.environment.nodeJsXhrHeader},res.locals["abort-controller"].signal);res.writeHead(res_raw.status,res_raw.headers.raw()),res_raw.body.on("error",e=>{_this.gs.log("[DISCORD-ERROR] \u{1f4a6}",e,"error")}).on("end",_asyncToGenerator(function*(){ddlFile.download_count++,yield _this.ddlFileRepo.save(ddlFile),yield _this.attachmentRepo.query("\n UPDATE attachment\n SET download_count = (\n SELECT SUM(ddl_file.download_count)\n FROM ddl_file\n WHERE ddl_file.msg_id = $1\n )\n WHERE discord = $2\n ",[ddlFile.msg_id,ddlFile.msg_id])})).pipe(res)}catch{const body={info:`\u{1f644} 404 - DDL File API :: Gagal Mencari Lampiran ${req.params.id} \u{1f62a}`,result:{message:"Lampiran Tidak Ditemukan!"}};res.status(common_1.HttpStatus.NOT_FOUND),res.locals.xml?(res.set("Content-Type","application/xml"),res.send(_this.gs.OBJ2XML(body))):res.json(body)}})()}},"DdlPartController");tslib_1.__decorate([(0,common_1.Get)("/:id"),(0,common_1.HttpCode)(206),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagDdlFile),(0,swagger_1.ApiParam)({name:"id",type:"string"}),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)()),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],DdlPartController.prototype,"downloadChunk",null),DdlPartController=tslib_1.__decorate([(0,common_1.Controller)("/ddl-part"),tslib_1.__metadata("design:paramtypes",[api_service_1.ApiService,attachment_service_1.AttachmentService,global_service_1.GlobalService,ddl_file_1.DdlFileService])],DdlPartController),exports2.DdlPartController=DdlPartController;let DdlSeekController=__name(class{constructor(api,attachmentRepo,gs,ddlFileRepo){this.api=api,this.attachmentRepo=attachmentRepo,this.gs=gs,this.ddlFileRepo=ddlFileRepo}streamFull(req,res){var _this2=this;return _asyncToGenerator(function*(){try{let headerRangeFull=req.headers.range||"bytes=0-";headerRangeFull.startsWith("bytes=")&&(headerRangeFull=headerRangeFull.slice(6));const headerRangeStartEnd=headerRangeFull.split("-"),attachment=yield _this2.attachmentRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.params.id)}]}),chunkIdx=Math.floor((parseInt(headerRangeStartEnd[0],10)||0)/constants_1.CONSTANTS.fileSizeAttachmentChunkDiscordLimit),ddlFile=yield _this2.ddlFileRepo.findOneOrFail({where:[{msg_id:(0,typeorm_1.Equal)(attachment.discord),chunk_idx:(0,typeorm_1.Equal)(chunkIdx)}]}),skippedChunkSize=ddlFile.chunk_idx*constants_1.CONSTANTS.fileSizeAttachmentChunkDiscordLimit;headerRangeFull="bytes=";let headerRangeStart="0";headerRangeStartEnd.length>0&&headerRangeStartEnd[0]&&(headerRangeStart=""+(parseInt(headerRangeStartEnd[0],10)-skippedChunkSize)),headerRangeFull+=headerRangeStart;let headerRangeEnd="";headerRangeStartEnd.length>1&&headerRangeStartEnd[1]&&(headerRangeEnd=""+(parseInt(headerRangeStartEnd[1],10)-skippedChunkSize)),headerRangeFull+=`-${headerRangeEnd}`;const res_raw=yield _this2.api.getData(new URL(ddlFile.url),{Range:headerRangeFull,...environment_1.environment.nodeJsXhrHeader},res.locals["abort-controller"].signal),res_raw_headers=res_raw.headers,res_raw_header_range_start=`${skippedChunkSize+parseInt(headerRangeStart,10)}`,res_raw_headers_content_length_minus_1=""+(parseInt(res_raw_header_range_start,10)+parseInt(res_raw_headers.get("Content-Length"),10)-1);res_raw_headers.delete("Content-Range"),res_raw_headers.set("Content-Range",`bytes ${res_raw_header_range_start}-${res_raw_headers_content_length_minus_1}/${attachment.size}`),res_raw_headers.delete("Content-Disposition"),res_raw_headers.set("Content-Disposition",`attachment; filename="${attachment.name}.${attachment.ext}"`),res_raw_headers.delete("Content-Type"),res_raw_headers.set("Content-Type",attachment.mime),res.writeHead(res_raw.status,res_raw_headers.raw()),res_raw.body.on("error",e=>{_this2.gs.log("[DISCORD-ERROR] \u{1f4a6}",e,"error")}).on("end",_asyncToGenerator(function*(){ddlFile.download_count++,yield _this2.ddlFileRepo.save(ddlFile),yield _this2.attachmentRepo.query("\n UPDATE attachment\n SET download_count = (\n SELECT SUM(download_count)\n FROM ddl_file\n WHERE msg_id = $1\n )\n WHERE discord = $2\n ",[ddlFile.msg_id,ddlFile.msg_id])})).pipe(res)}catch{const body={info:`\u{1f644} 404 - DDL File API :: Gagal Mencari Lampiran ${req.params.id} \u{1f62a}`,result:{message:"Lampiran Tidak Ditemukan!"}};res.status(common_1.HttpStatus.NOT_FOUND),res.locals.xml?(res.set("Content-Type","application/xml"),res.send(_this2.gs.OBJ2XML(body))):res.json(body)}})()}},"DdlSeekController");tslib_1.__decorate([(0,common_1.Get)("/:id"),(0,common_1.HttpCode)(206),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagDdlFile),(0,swagger_1.ApiParam)({name:"id",type:"string"}),(0,swagger_1.ApiHeader)({name:"range",required:!0}),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)()),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],DdlSeekController.prototype,"streamFull",null),DdlSeekController=tslib_1.__decorate([(0,common_1.Controller)("/ddl-seek"),tslib_1.__metadata("design:paramtypes",[api_service_1.ApiService,attachment_service_1.AttachmentService,global_service_1.GlobalService,ddl_file_1.DdlFileService])],DdlSeekController),exports2.DdlSeekController=DdlSeekController},55100:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DoramaBerkasController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),berkas_service_1=__webpack_require__2(17319),global_service_1=__webpack_require__2(40735);let DoramaBerkasController=__name(class{constructor(berkasRepo,gs){this.berkasRepo=berkasRepo,this.gs=gs}berkasDorama(req,res){var _this=this;return _asyncToGenerator(function*(){try{const user=res.locals.user,queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),doramaId=req.query.id?req.query.id.split(","):req.body.id;if(Array.isArray(doramaId)&&doramaId.length>0){const sqlWhere=[{...(null==user?void 0:user.verified)?{}:{private:!1},name:(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`),dorama_:{id:(0,typeorm_1.In)(doramaId)},user_:{private:!1}}],userFilesCriteria={};user&&(userFilesCriteria.name=(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`),userFilesCriteria.dorama_={id:(0,typeorm_1.In)(doramaId)},user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR||user.role===req_res_model_1.RoleModel.FANSUBBER||_this.gs.isFreeTime()||(userFilesCriteria.user_={id:user.id}),sqlWhere.push(userFilesCriteria));const[files,count]=yield _this.berkasRepo.findAndCount({where:sqlWhere,order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",name:"ASC"}},relations:["project_type_","fansub_","user_","dorama_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10}),results={};for(const i2 of doramaId)results[i2]=[];for(const f2 of files){if(delete f2.download_url,delete f2.description,"project_type_"in f2&&f2.project_type_&&(delete f2.project_type_.created_at,delete f2.project_type_.updated_at),"fansub_"in f2&&f2.fansub_)for(const fansub of f2.fansub_)delete fansub.description,delete fansub.urls,delete fansub.tags,delete fansub.created_at,delete fansub.updated_at;"dorama_"in f2&&f2.dorama_&&(delete f2.dorama_.created_at,delete f2.dorama_.updated_at),"user_"in f2&&f2.user_&&(delete f2.user_.created_at,delete f2.user_.updated_at),results[f2.dorama_.id].push(f2)}return{info:"\u{1f605} 202 - Dorama API :: Berkas \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 400 - Dorama API :: Gagal Mencari Berkas ${req.query.id} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"DoramaBerkasController");tslib_1.__decorate([(0,common_1.Patch)("/"),(0,common_1.HttpCode)(202),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],DoramaBerkasController.prototype,"berkasDorama",null),DoramaBerkasController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/dorama-berkas"),tslib_1.__metadata("design:paramtypes",[berkas_service_1.BerkasService,global_service_1.GlobalService])],DoramaBerkasController),exports2.DoramaBerkasController=DoramaBerkasController},3902:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DoramaFansubController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),filter_api_key_access_decorator_1=__webpack_require__2(18834),berkas_service_1=__webpack_require__2(17319);let DoramaFansubController=__name(class{constructor(berkasRepo){this.berkasRepo=berkasRepo}fansubDorama(req,res){var _this=this;return _asyncToGenerator(function*(){try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),doramaId=req.query.id?req.query.id.split(","):req.body.id;if(Array.isArray(doramaId)&&doramaId.length>0){const files=yield _this.berkasRepo.instance().createQueryBuilder("berkas").leftJoinAndSelect("berkas.dorama_","dorama_").leftJoinAndSelect("berkas.fansub_","fansub_").where("dorama_.id IN (:...id)",{id:doramaId}).orderBy("fansub_.name","ASC").addOrderBy("dorama_.id","ASC").select(["dorama_","fansub_"]).groupBy("dorama_.id").addGroupBy("fansub_.id").getRawMany(),results={};for(const i2 of doramaId)results[i2]=[];for(const f2 of files)results[f2.dorama__id].push({id:f2.fansub__id,name:f2.fansub__name,slug:f2.fansub__slug,active:f2.fansub__active,image_url:f2.fansub__image_url,cover_url:f2.fansub__cover_url});let count=0;for(const i2 of doramaId)if(count+=results[i2].length,1===doramaId.length){const start=queryPage?(queryPage-1)*(queryRow||10):0,end=(queryPage?(queryPage-1)*(queryRow||10):0)+(queryRow||10);results[i2]=results[i2].slice(start,end)}return{info:"\u{1f605} 202 - Dorama API :: Fansub \u{1f923}",count,pages:doramaId.length>1?1:Math.ceil(count/(queryRow||10)),results}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 400 - Dorama API :: Gagal Mencari Fansub ${req.query.id} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"DoramaFansubController");tslib_1.__decorate([(0,common_1.Patch)("/"),(0,common_1.HttpCode)(202),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],DoramaFansubController.prototype,"fansubDorama",null),DoramaFansubController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/dorama-fansub"),tslib_1.__metadata("design:paramtypes",[berkas_service_1.BerkasService])],DoramaFansubController),exports2.DoramaFansubController=DoramaFansubController},84306:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DoramaSeasonalController=void 0;const tslib_1=__webpack_require__2(70655),node_url_1=__webpack_require__2(46024),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),api_service_1=__webpack_require__2(99527),global_service_1=__webpack_require__2(40735);let DoramaSeasonalController=__name(class{constructor(cm,api,gs){this.cm=cm,this.api=api,this.gs=gs}seasonalDorama(req,res){var _this=this;return _asyncToGenerator(function*(){const currDate=new Date,year=req.query.year||currDate.getFullYear(),season=req.query.season||_this.gs.seasonal.find(sB=>sB.id===Math.ceil((currDate.getMonth()+1)/3)).name,quarter=_this.gs.seasonal.find(sB=>sB.name===season).id||Math.ceil((currDate.getMonth()+1)/3);try{const url=new node_url_1.URL(`${environment_1.environment.externalApiDorama}/seasonal/${year}/${quarter}`),res_raw=yield _this.api.getData(url,environment_1.environment.nodeJsXhrHeader);if(res_raw.ok){const res_json=yield res_raw.json();_this.gs.log(`[apiDorama] \u{1f525} ${res_raw.status}`,res_json);const responseBody={info:`\u{1f605} ${res_raw.status} - Dorama API :: Seasonal ${season} ${year} \u{1f923}`,results:res_json};return res_json.length>0&&_this.cm.set(req.originalUrl,{status:res_raw.status,body:responseBody},{ttl:environment_1.environment.externalApiCacheTime}),responseBody}throw new Error("Gagal Tarik Data Dorama")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Dorama API :: Gagal Menarik Data \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"DoramaSeasonalController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagDorama),(0,swagger_1.ApiQuery)({name:"year",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"season",required:!1,type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],DoramaSeasonalController.prototype,"seasonalDorama",null),DoramaSeasonalController=tslib_1.__decorate([(0,common_1.Controller)("/dorama-seasonal"),tslib_1.__param(0,(0,common_1.Inject)(common_1.CACHE_MANAGER)),tslib_1.__metadata("design:paramtypes",[Object,api_service_1.ApiService,global_service_1.GlobalService])],DoramaSeasonalController),exports2.DoramaSeasonalController=DoramaSeasonalController},7491:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DoramaController=void 0;const tslib_1=__webpack_require__2(70655),google_translate_1=tslib_1.__importDefault(__webpack_require__2(44119)),node_url_1=__webpack_require__2(46024),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),req_res_model_1=__webpack_require__2(14249),api_service_1=__webpack_require__2(99527),global_service_1=__webpack_require__2(40735),dorama_service_1=__webpack_require__2(81475);let DoramaController=__name(class{constructor(cm,api,gs,doramaRepo){this.cm=cm,this.api=api,this.gs=gs,this.doramaRepo=doramaRepo}searchDorama(req,res){var _this=this;return _asyncToGenerator(function*(){const searchQuery=req.query.q||"",searchType=req.query.type||"";try{if(searchQuery.length<3)throw new common_1.HttpException({info:"\u{1f644} 400 - Dorama API :: Gagal Mencari Dorama \u{1f62a}",result:{message:"Minimal 3 Huruf Untuk Pencarian!"}},common_1.HttpStatus.BAD_REQUEST);const url=new node_url_1.URL(`${environment_1.environment.externalApiDorama}/search/q/${searchQuery}`),res_raw=yield _this.api.getData(url,environment_1.environment.nodeJsXhrHeader);if(res_raw.ok){const res_json=yield res_raw.json();_this.gs.log(`[apiDorama] \u{1f525} ${res_raw.status}`,res_json);let data=res_json.results.dramas.filter(x=>x.type.toLowerCase().includes(searchType));const responseBody={info:`\u{1f605} ${res_raw.status} - Dorama API :: Search ${searchQuery} \u{1f923}`,results:data};return data.length>0&&_this.cm.set(req.originalUrl,{status:res_raw.status,body:responseBody},{ttl:environment_1.environment.externalApiCacheTime}),responseBody}throw new Error("Gagal Tarik Data Dorama")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Dorama API :: Gagal Menarik Data \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}updateDorama(req,res){var _this2=this;return _asyncToGenerator(function*(){try{if("id"in req.body&&"name"in req.body&&"image_url"in req.body){const doramas=yield _this2.doramaRepo.find({where:[{id:(0,typeorm_1.Equal)(req.body.id)}]});if(0===doramas.length){const dorama=_this2.doramaRepo.new();dorama.id=req.body.id,dorama.slug=req.body.slug,dorama.name=req.body.name,dorama.image_url=req.body.image_url,dorama.type=req.body.type;return{info:"\u{1f605} 202 - Dorama API :: Tambah Baru \u{1f923}",result:yield _this2.doramaRepo.save(dorama)}}if(1===doramas.length){const dorama=doramas[0];"id"in req.body&&(dorama.id=req.body.id),"slug"in req.body&&(dorama.slug=req.body.slug),"name"in req.body&&(dorama.name=req.body.name),"image_url"in req.body&&(dorama.image_url=req.body.image_url),"type"in req.body&&(dorama.type=req.body.type);return{info:"\u{1f605} 202 - Dorama API :: Data Dorama Diperbaharui \u{1f923}",result:yield _this2.doramaRepo.save(dorama)}}return{info:"\u{1f60d} 202 - Dorama API :: Data Dorama Multi Duplikat \u{1f970}",result:doramas}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Dorama API :: Gagal Menambah Dorama \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getDetailDorama(req,res){var _this3=this;return _asyncToGenerator(function*(){const mdlId=req.params.mdlSlug.split("-")[0];try{const url=new node_url_1.URL(`${environment_1.environment.externalApiDorama}/id/${req.params.mdlSlug}`),res_raw=yield _this3.api.getData(url,environment_1.environment.nodeJsXhrHeader);if(res_raw.ok){const res_json=yield res_raw.json();_this3.gs.log(`[apiDorama] \u{1f525} ${res_raw.status}`,res_json);let httpStatusCode=res_raw.status;const dramaDetail=res_json.data;try{if("synopsis"in dramaDetail&&dramaDetail.synopsis){const translatedDoramaSynopsis=yield(0,google_translate_1.default)(dramaDetail.synopsis,{to:"id"});dramaDetail.synopsis=translatedDoramaSynopsis.text}}catch{httpStatusCode=202,dramaDetail.message="Penerjemah / Alih Bahasa Gagal!"}const responseBody={info:`\u{1f605} ${httpStatusCode} - Dorama API :: Detail ${mdlId} \u{1f923}`,result:dramaDetail};return dramaDetail&&_this3.cm.set(req.originalUrl,{status:httpStatusCode,body:responseBody},{ttl:environment_1.environment.externalApiCacheTime}),responseBody}throw new Error("Gagal Tarik Data Dorama")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 404 - Dorama API :: Gagal Menarik Data \u{1f62a}",result:{message:"Dorama Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"DoramaController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagDorama),(0,swagger_1.ApiQuery)({name:"q",required:!0,type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],DoramaController.prototype,"searchDorama",null),tslib_1.__decorate([(0,common_1.Patch)("/"),(0,common_1.HttpCode)(202),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],DoramaController.prototype,"updateDorama",null),tslib_1.__decorate([(0,common_1.Get)("/:mdlSlug"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagDorama),(0,swagger_1.ApiParam)({name:"mdlSlug",type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],DoramaController.prototype,"getDetailDorama",null),DoramaController=tslib_1.__decorate([(0,common_1.Controller)("/dorama"),tslib_1.__param(0,(0,common_1.Inject)(common_1.CACHE_MANAGER)),tslib_1.__metadata("design:paramtypes",[Object,api_service_1.ApiService,global_service_1.GlobalService,dorama_service_1.DoramaService])],DoramaController),exports2.DoramaController=DoramaController},58864:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubAllController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),filter_api_key_access_decorator_1=__webpack_require__2(18834),fansub_service_1=__webpack_require__2(51467);let FansubAllController=__name(class{constructor(fansubRepo){this.fansubRepo=fansubRepo}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){try{const[fansubs,count]=yield _this.fansubRepo.findAndCount({order:{name:"ASC",active:"DESC"}});for(const f2 of fansubs)delete f2.description,f2.urls=JSON.parse(f2.urls),f2.tags=JSON.parse(f2.tags);return{info:"\u{1f605} 200 - Fansub API :: List All \u{1f923}",count,pages:1,results:fansubs}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Fansub API :: Gagal Mendapatkan All Fansub \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"FansubAllController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubAllController.prototype,"getAll",null),FansubAllController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/fansub-all"),tslib_1.__metadata("design:paramtypes",[fansub_service_1.FansubService])],FansubAllController),exports2.FansubAllController=FansubAllController},3275:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubAnimeController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),filter_api_key_access_decorator_1=__webpack_require__2(18834),berkas_service_1=__webpack_require__2(17319);let FansubAnimeController=__name(class{constructor(berkasRepo){this.berkasRepo=berkasRepo}animeFansub(req,res){var _this=this;return _asyncToGenerator(function*(){try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),fansubId=req.query.id?req.query.id.split(",").map(Number):req.body.id;if(Array.isArray(fansubId)&&fansubId.length>0){const files=yield _this.berkasRepo.instance().createQueryBuilder("berkas").leftJoinAndSelect("berkas.anime_","anime_").leftJoinAndSelect("berkas.fansub_","fansub_").where("fansub_.id IN (:...id)",{id:fansubId}).andWhere("berkas.anime_ IS NOT NULL").orderBy("anime_.name","ASC").addOrderBy("fansub_.id","ASC").select(["anime_","fansub_"]).groupBy("anime_.id").addGroupBy("fansub_.id").getRawMany(),results={};for(const i2 of fansubId)results[i2]=[];for(const f2 of files)results[f2.fansub__id].push({id:f2.anime__id,name:f2.anime__name,type:f2.anime__type,image_url:f2.anime__image_url});let count=0;for(const i2 of fansubId)if(count+=results[i2].length,1===fansubId.length){const start=queryPage?(queryPage-1)*(queryRow||10):0,end=(queryPage?(queryPage-1)*(queryRow||10):0)+(queryRow||10);results[i2]=results[i2].slice(start,end)}else results[i2]=results[i2].length;return{info:"\u{1f605} 202 - Fansub API :: Anime \u{1f923}",count,pages:fansubId.length>1?1:Math.ceil(count/(queryRow||10)),results}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 400 - Fansub API :: Gagal Mencari Anime ${req.query.id} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"FansubAnimeController");tslib_1.__decorate([(0,common_1.Patch)("/"),(0,common_1.HttpCode)(202),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubAnimeController.prototype,"animeFansub",null),FansubAnimeController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/fansub-anime"),tslib_1.__metadata("design:paramtypes",[berkas_service_1.BerkasService])],FansubAnimeController),exports2.FansubAnimeController=FansubAnimeController},89672:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubBerkasController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),berkas_service_1=__webpack_require__2(17319),global_service_1=__webpack_require__2(40735);let FansubBerkasController=__name(class{constructor(berkasRepo,gs){this.berkasRepo=berkasRepo,this.gs=gs}berkasFansub(req,res){var _this=this;return _asyncToGenerator(function*(){try{const user=res.locals.user,queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),fansubId=req.query.id?req.query.id.split(",").map(Number):req.body.id;if(Array.isArray(fansubId)&&fansubId.length>0){let fileRepoQuery=_this.berkasRepo.instance().createQueryBuilder("berkas").leftJoinAndSelect("berkas.project_type_","project_type_").leftJoinAndSelect("berkas.anime_","anime_").leftJoinAndSelect("berkas.dorama_","dorama_").leftJoinAndSelect("berkas.user_","user_").leftJoinAndSelect("berkas.fansub_","fansub_").where("berkas.name ILIKE :query",{query:`%${req.query.q?req.query.q:""}%`}).andWhere("fansub_.id IN (:...id)",{id:fansubId}).andWhere("user_.private = :isPrivate",{isPrivate:!1});(null==user?void 0:user.verified)||(fileRepoQuery=fileRepoQuery.andWhere("berkas.private = :isPrivate",{isPrivate:!1})),user&&(fileRepoQuery=fileRepoQuery.orWhere("berkas.name ILIKE :query",{query:`%${req.query.q?req.query.q:""}%`}).andWhere("fansub_.id IN (:...id)",{id:fansubId}),user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR||user.role===req_res_model_1.RoleModel.FANSUBBER||_this.gs.isFreeTime()||(fileRepoQuery=fileRepoQuery.andWhere("user_.id = :userId",{userId:user.id}))),fileRepoQuery=req.query.sort&&req.query.order?fileRepoQuery.orderBy(`berkas.${req.query.sort}`,req.query.order.toUpperCase()):fileRepoQuery.orderBy("berkas.created_at","DESC").addOrderBy("berkas.name","ASC");const[files,count]=yield fileRepoQuery.skip(queryPage>0?queryPage*queryRow-queryRow:0).take(queryRow>0&&queryRow<=500?queryRow:10).getManyAndCount(),results={};for(const i2 of fansubId)results[i2]=[];for(const f2 of files)if(delete f2.download_url,delete f2.description,"project_type_"in f2&&f2.project_type_&&(delete f2.project_type_.created_at,delete f2.project_type_.updated_at),"anime_"in f2&&f2.anime_&&(delete f2.anime_.created_at,delete f2.anime_.updated_at),"dorama_"in f2&&f2.dorama_&&(delete f2.dorama_.created_at,delete f2.dorama_.updated_at),"user_"in f2&&f2.user_&&(delete f2.user_.created_at,delete f2.user_.updated_at),"fansub_"in f2&&f2.fansub_)for(const fansub of f2.fansub_)delete fansub.description,delete fansub.urls,delete fansub.tags,delete fansub.created_at,delete fansub.updated_at,fansubId.includes(fansub.id)&&results[fansub.id].push(f2);return{info:"\u{1f605} 202 - Fansub API :: Berkas \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 400 - Fansub API :: Gagal Mencari Berkas ${req.query.id} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"FansubBerkasController");tslib_1.__decorate([(0,common_1.Patch)("/"),(0,common_1.HttpCode)(202),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubBerkasController.prototype,"berkasFansub",null),FansubBerkasController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/fansub-berkas"),tslib_1.__metadata("design:paramtypes",[berkas_service_1.BerkasService,global_service_1.GlobalService])],FansubBerkasController),exports2.FansubBerkasController=FansubBerkasController},99298:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubDnsController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),environment_1=__webpack_require__2(17482),constants_1=__webpack_require__2(26271),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),fansub_service_1=__webpack_require__2(51467),fansub_member_service_1=__webpack_require__2(85434),cloudflare_service_1=__webpack_require__2(94358),global_service_1=__webpack_require__2(40735);let FansubDnsController=__name(class{constructor(cm,gs,cfs,fansubRepo,fansubMemberRepo){this.cm=cm,this.gs=gs,this.cfs=cfs,this.fansubRepo=fansubRepo,this.fansubMemberRepo=fansubMemberRepo}createNewOrUpdateDns(obj){var _this=this;return _asyncToGenerator(function*(){const req=obj.req,user=obj.user;let fansub=obj.fansub;const result={dns_id:null,dns_id_alt:null};let serverTarget=_this.gs.cleanUpUrlStringRecord(req.body.server_target),recordType="CNAME";if(serverTarget.match(constants_1.CONSTANTS.regexIpAddress)&&(recordType="A"),"A"===recordType&&fansub.dns_id_alt){const dns_id_alt_delete=yield _this.cfs.deleteDns(fansub.dns_id_alt);if(!(dns_id_alt_delete&&dns_id_alt_delete.status>=200&&dns_id_alt_delete.status<400))throw new common_1.HttpException({info:`\u{1f4a9} ${(null==dns_id_alt_delete?void 0:dns_id_alt_delete.status)||500} - Cloudflare API :: Gagal Menambah / Memperbaharui Data \u{1f92c}`,result:{message:"Gagal Terhubung Dengan DNS Server!"}},(null==dns_id_alt_delete?void 0:dns_id_alt_delete.status)||common_1.HttpStatus.INTERNAL_SERVER_ERROR);fansub.dns_id_alt=null,fansub=yield _this.fansubRepo.save(fansub)}let isUpdateMode=!1;if(fansub.dns_id){const dns_id_detail=yield _this.cfs.detailDns(fansub.dns_id);if(!(dns_id_detail&&dns_id_detail.status>=200&&dns_id_detail.status<400))throw new common_1.HttpException({info:`\u{1f4a9} ${(null==dns_id_detail?void 0:dns_id_detail.status)||500} - Cloudflare API :: Gagal Mengambil Data \u{1f92c}`,result:{message:"Gagal Terhubung Dengan DNS Server!"}},(null==dns_id_detail?void 0:dns_id_detail.status)||common_1.HttpStatus.INTERNAL_SERVER_ERROR);if(dns_id_detail.result.type===recordType)isUpdateMode=!0;else{const dns_id_delete=yield _this.cfs.deleteDns(fansub.dns_id);if(!(dns_id_delete&&dns_id_delete.status>=200&&dns_id_delete.status<400))throw new common_1.HttpException({info:`\u{1f4a9} ${(null==dns_id_delete?void 0:dns_id_delete.status)||500} - Cloudflare API :: Gagal Menambah / Memperbaharui Data \u{1f92c}`,result:{message:"Gagal Terhubung Dengan DNS Server!"}},(null==dns_id_delete?void 0:dns_id_delete.status)||common_1.HttpStatus.INTERNAL_SERVER_ERROR);fansub.dns_id=null,fansub=yield _this.fansubRepo.save(fansub)}}let dns_id=null;if(dns_id=isUpdateMode?yield _this.cfs.updateDns(fansub.dns_id,fansub.slug,serverTarget,recordType,environment_1.environment.cloudflare.comment):yield _this.cfs.createDns(fansub.slug,serverTarget,recordType,environment_1.environment.cloudflare.comment),dns_id&&dns_id.status>=200&&dns_id.status<400){fansub.dns_id=dns_id.result.id;const fansubUrls=JSON.parse(fansub.urls);if(fansubUrls&&Array.isArray(fansubUrls)){const idx=fansubUrls.findIndex(u=>"web"===u.name);idx>=0?fansubUrls[idx].url=`https://${dns_id.result.name}`:fansubUrls.push({name:"web",url:`https://${dns_id.result.name}`})}fansub.urls=JSON.stringify(fansubUrls),fansub.user_=user,fansub=yield _this.fansubRepo.save(fansub),result.dns_id={id:dns_id.result.id,name:dns_id.result.name,content:dns_id.result.content,proxied:dns_id.result.proxied,ttl:dns_id.result.ttl,type:dns_id.result.type,created_at:dns_id.result.created_on,updated_at:dns_id.result.modified_on}}if("verification_name"in req.body&&"verification_target"in req.body){let verification_name=_this.gs.cleanUpUrlStringRecord(req.body.verification_name),verification_target=_this.gs.cleanUpUrlStringRecord(req.body.verification_target);if(verification_name&&verification_target&&constants_1.CONSTANTS.verificationDomain.includes(serverTarget)){let dns_id_alt=null;dns_id_alt=fansub.dns_id_alt?yield _this.cfs.updateDns(fansub.dns_id_alt,verification_name,verification_target,"CNAME",fansub.slug):yield _this.cfs.createDns(verification_name,verification_target,"CNAME",fansub.slug),dns_id_alt&&dns_id_alt.status>=200&&dns_id_alt.status<400&&(fansub.dns_id_alt=dns_id_alt.result.id,fansub=yield _this.fansubRepo.save(fansub),result.dns_id_alt={id:dns_id_alt.result.id,name:dns_id_alt.result.name,content:dns_id_alt.result.content,proxied:dns_id_alt.result.proxied,ttl:dns_id_alt.result.ttl,type:dns_id_alt.result.type,created_at:dns_id_alt.result.created_on,updated_at:dns_id_alt.result.modified_on})}}return delete fansub.urls,delete fansub.tags,delete fansub.view_count,delete fansub.like_count,delete fansub.description,delete fansub.rss_feed,delete fansub.created_at,delete fansub.updated_at,delete fansub.user_,{result,fansub}})()}getAll(req,res){var _this2=this;return _asyncToGenerator(function*(){try{const queryName=`${req.query.q?req.query.q:""}`,queryPage=parseInt(req.query.page)||1,queryRow=parseInt(req.query.row)||10,querySort=`${req.query.sort?req.query.sort:"name"}`,queryOrder=`${req.query.order?req.query.order:"asc"}`,user=res.locals.user,dnss=yield _this2.cfs.getDnss(queryName,queryPage,queryRow,querySort,queryOrder);if(dnss&&dnss.status>=200&&dnss.status<400){const records=[];for(const rec of dnss.results){const fansubSlug=rec.name.split(`.${environment_1.environment.cloudflare.domain}`)[0].toLowerCase();if(constants_1.CONSTANTS.blacklistedWords.includes(fansubSlug))continue;try{let fansub=yield _this2.fansubRepo.findOneOrFail({where:[{slug:(0,typeorm_1.ILike)(fansubSlug)}]}),isFansubDnsChanged=!1;fansub.dns_id!==rec.id&&(fansub.dns_id=rec.id,isFansubDnsChanged=!0);let isFansubUrlChanged=!1;const fansubUrls=JSON.parse(fansub.urls);if(fansubUrls&&Array.isArray(fansubUrls)){const idx=fansubUrls.findIndex(u=>"web"===u.name);idx>=0?fansubUrls[idx].url!==rec.name&&(fansubUrls[idx].url=`https://${rec.name}`,isFansubUrlChanged=!0):(fansubUrls.push({name:"web",url:`https://${rec.name}`}),isFansubUrlChanged=!0)}(isFansubDnsChanged||isFansubUrlChanged)&&(isFansubUrlChanged&&(fansub.urls=JSON.stringify(fansubUrls)),fansub=yield _this2.fansubRepo.save(fansub)),delete fansub.urls,delete fansub.tags,delete fansub.view_count,delete fansub.like_count,delete fansub.description,delete fansub.rss_feed,delete fansub.created_at,delete fansub.updated_at,delete fansub.user_,rec.fansub_=fansub}catch{rec.fansub_=null}let domainIp="***.***.***.***";user&&(user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR)&&(domainIp=rec.content),records.push({id:rec.id,name:rec.name,content:domainIp,proxied:rec.proxied,ttl:rec.ttl,type:rec.type,created_at:rec.created_on,updated_at:rec.modified_on,fansub_:rec.fansub_})}const responseBody={info:`\u{1f605} ${dnss.status} - Cloudflare API :: List All DNS \u{1f923}`,count:dnss.count,pages:dnss.pages,results:records};return records.length>0&&_this2.cm.set(req.originalUrl,{status:dnss.status,body:responseBody},{ttl:environment_1.environment.externalApiCacheTime}),responseBody}throw new Error("Gagal Tarik Data DNS Zone")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Cloudflare API :: Gagal Menarik Data \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}createNew(req,res){var _this3=this;return _asyncToGenerator(function*(){try{if("slug"in req.body&&"server_target"in req.body){let user=res.locals.user,fansub=yield _this3.fansubRepo.findOneOrFail({where:[{slug:(0,typeorm_1.ILike)(req.body.slug)}]});if(user.role!==req_res_model_1.RoleModel.ADMIN&&user.role!==req_res_model_1.RoleModel.MODERATOR)try{user=(yield _this3.fansubMemberRepo.findOneOrFail({where:[{fansub_:{id:fansub.id},user_:{id:user.id}}],relations:["fansub_","user_"]})).user_}catch{throw new common_1.HttpException({info:"\u{1f605} 403 - Cloudflare API :: Pendaftaran Sub-Domain Ditolak \u{1f923}",result:{message:"Harus Menjadi Anggota Untuk Klaim Sub-Domain!"}},common_1.HttpStatus.FORBIDDEN)}const r=yield _this3.createNewOrUpdateDns({req,user,fansub});fansub=r.fansub;const result=r.result;if(result.dns_id)return{info:"\u{1f605} 200 - Cloudflare API :: Pengubahan Sub-Domain Berhasil \u{1f970}",result,fansub}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 404 - Cloudflare API :: Gagal Mencari Fansub \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.NOT_FOUND)}})()}getBySlug(req,res){var _this4=this;return _asyncToGenerator(function*(){try{const user=res.locals.user,group=yield _this4.fansubMemberRepo.findOneOrFail({where:[{approved:!0,fansub_:{slug:(0,typeorm_1.ILike)(req.params.slug)},user_:{id:(0,typeorm_1.Equal)(user.id)}}],order:{keterangan:"ASC",created_at:"DESC"},relations:["fansub_","user_"]}),result={dns_id:null,dns_id_alt:null},dns_id=yield _this4.cfs.detailDns(group.fansub_.dns_id);if(!(dns_id&&dns_id.status>=200&&dns_id.status<400))throw new common_1.HttpException({info:`\u{1f4a9} ${(null==dns_id?void 0:dns_id.status)||404} - Cloudflare API :: Gagal Mengambil Data \u{1f92c}`,result:{message:"Gagal Terhubung Dengan DNS Server!"}},(null==dns_id?void 0:dns_id.status)||common_1.HttpStatus.NOT_FOUND);if(result.dns_id={id:dns_id.result.id,name:dns_id.result.name,content:dns_id.result.content,proxied:dns_id.result.proxied,ttl:dns_id.result.ttl,type:dns_id.result.type,created_at:dns_id.result.created_on,updated_at:dns_id.result.modified_on},group.fansub_.dns_id_alt){const dns_id_alt=yield _this4.cfs.detailDns(group.fansub_.dns_id_alt);dns_id_alt&&dns_id_alt.status>=200&&dns_id_alt.status<400&&(result.dns_id_alt={id:dns_id_alt.result.id,name:dns_id_alt.result.name,content:dns_id_alt.result.content,proxied:dns_id_alt.result.proxied,ttl:dns_id_alt.result.ttl,type:dns_id_alt.result.type,created_at:dns_id_alt.result.created_on,updated_at:dns_id_alt.result.modified_on})}return{info:`\u{1f605} 200 - Cloudflare API :: DNS ${req.params.slug} \u{1f923}`,result}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Cloudflare API :: Gagal Mencari DNS ${req.params.slug} \u{1f62a}`,result:{message:"DNS Fansub Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}updateBySlug(req,res){var _this5=this;return _asyncToGenerator(function*(){try{if("server_target"in req.body){const user=res.locals.user,group=yield _this5.fansubMemberRepo.findOneOrFail({where:[{approved:!0,fansub_:{slug:(0,typeorm_1.ILike)(req.params.slug)},user_:{id:(0,typeorm_1.Equal)(user.id)}}],order:{keterangan:"ASC",created_at:"DESC"},relations:["fansub_","user_"]}),fansub=yield _this5.fansubRepo.findOneOrFail({where:[{slug:(0,typeorm_1.ILike)(group.fansub_.slug)}]}),r=yield _this5.createNewOrUpdateDns({req,user,fansub});return{info:"\u{1f605} 200 - Cloudflare API :: Pengubahan Sub-Domain Berhasil \u{1f970}",result:r.result,fansub:r.fansub}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Cloudflare API :: Gagal Mengubah DNS ${req.params.slug} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"FansubDnsController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubDnsController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubDnsController.prototype,"createNew",null),tslib_1.__decorate([(0,common_1.Get)("/:slug"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubDnsController.prototype,"getBySlug",null),tslib_1.__decorate([(0,common_1.Put)("/:slug"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubDnsController.prototype,"updateBySlug",null),FansubDnsController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/fansub-dns"),tslib_1.__param(0,(0,common_1.Inject)(common_1.CACHE_MANAGER)),tslib_1.__metadata("design:paramtypes",[Object,global_service_1.GlobalService,cloudflare_service_1.CloudflareService,fansub_service_1.FansubService,fansub_member_service_1.FansubMemberService])],FansubDnsController),exports2.FansubDnsController=FansubDnsController},36355:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubDoramaController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),filter_api_key_access_decorator_1=__webpack_require__2(18834),berkas_service_1=__webpack_require__2(17319);let FansubDoramaController=__name(class{constructor(berkasRepo){this.berkasRepo=berkasRepo}doramaFansub(req,res){var _this=this;return _asyncToGenerator(function*(){try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),fansubId=req.query.id?req.query.id.split(",").map(Number):req.body.id;if(Array.isArray(fansubId)&&fansubId.length>0){const files=yield _this.berkasRepo.instance().createQueryBuilder("berkas").leftJoinAndSelect("berkas.dorama_","dorama_").leftJoinAndSelect("berkas.fansub_","fansub_").where("fansub_.id IN (:...id)",{id:fansubId}).andWhere("berkas.dorama_ IS NOT NULL").orderBy("dorama_.name","ASC").addOrderBy("fansub_.id","ASC").select(["dorama_","fansub_"]).groupBy("dorama_.id").addGroupBy("fansub_.id").getRawMany(),results={};for(const i2 of fansubId)results[i2]=[];for(const f2 of files)results[f2.fansub__id].push({id:f2.dorama__id,slug:f2.dorama__slug,name:f2.dorama__name,type:f2.dorama__type,image_url:f2.dorama__image_url});let count=0;for(const i2 of fansubId)if(count+=results[i2].length,1===fansubId.length){const start=queryPage?(queryPage-1)*(queryRow||10):0,end=(queryPage?(queryPage-1)*(queryRow||10):0)+(queryRow||10);results[i2]=results[i2].slice(start,end)}else results[i2]=results[i2].length;return{info:"\u{1f605} 202 - Fansub API :: Dorama \u{1f923}",count,pages:fansubId.length>1?1:Math.ceil(count/(queryRow||10)),results}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Fansub API :: Gagal Mencari Dorama \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"FansubDoramaController");tslib_1.__decorate([(0,common_1.Patch)("/"),(0,common_1.HttpCode)(202),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubDoramaController.prototype,"doramaFansub",null),FansubDoramaController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/fansub-dorama"),tslib_1.__metadata("design:paramtypes",[berkas_service_1.BerkasService])],FansubDoramaController),exports2.FansubDoramaController=FansubDoramaController},3238:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubMemberController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),fansub_service_1=__webpack_require__2(51467),fansub_member_service_1=__webpack_require__2(85434),user_service_1=__webpack_require__2(50675),discord_service_1=__webpack_require__2(92453);let FansubMemberController=__name(class{constructor(ds,fansubRepo,fansubMemberRepo,userRepo){this.ds=ds,this.fansubRepo=fansubRepo,this.fansubMemberRepo=fansubMemberRepo,this.userRepo=userRepo}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){const searchQuery=req.query.q||"";try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[members,count]=yield _this.fansubMemberRepo.findAndCount({where:[{fansub_:{slug:(0,typeorm_1.ILike)(`%${searchQuery}%`)}},{user_:{username:(0,typeorm_1.ILike)(`%${searchQuery}%`)}}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{fansub_:"DESC",created_at:"DESC"}},skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10,relations:["fansub_","user_","approved_by_"]});for(const member of members)"fansub_"in member&&member.fansub_&&(delete member.fansub_.urls,delete member.fansub_.tags,delete member.fansub_.view_count,delete member.fansub_.like_count,delete member.fansub_.description,delete member.fansub_.rss_feed,delete member.fansub_.created_at,delete member.fansub_.updated_at,delete member.fansub_.user_),"user_"in member&&member.user_&&(delete member.user_.created_at,delete member.user_.updated_at),"approved_by_"in member&&member.approved_by_&&(delete member.approved_by_.created_at,delete member.approved_by_.updated_at);return{info:"\u{1f605} 200 - Fansub API :: All Members \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:members}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Fansub API :: Gagal Mendapatkan All Members \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}requestJoinFansubMember(req,res){var _this2=this;return _asyncToGenerator(function*(){try{if("slug"in req.body){const user=res.locals.user,fansub=yield _this2.fansubRepo.findOneOrFail({where:[{slug:(0,typeorm_1.ILike)(req.body.slug)}]}),members=yield _this2.fansubMemberRepo.find({where:[{fansub_:{slug:(0,typeorm_1.ILike)(req.body.slug)},user_:{id:(0,typeorm_1.Equal)(user.id)}}],relations:["fansub_","user_"]});if(0===members.length){const member=_this2.fansubMemberRepo.new();member.user_=user,member.fansub_=fansub;const resMemberSave=yield _this2.fansubMemberRepo.save(member);return"fansub_"in resMemberSave&&resMemberSave.fansub_&&(delete resMemberSave.fansub_.urls,delete resMemberSave.fansub_.tags,delete resMemberSave.fansub_.view_count,delete resMemberSave.fansub_.like_count,delete resMemberSave.fansub_.description,delete resMemberSave.fansub_.rss_feed,delete resMemberSave.fansub_.created_at,delete resMemberSave.fansub_.updated_at,delete resMemberSave.fansub_.user_),"user_"in resMemberSave&&resMemberSave.user_&&(delete resMemberSave.user_.created_at,delete resMemberSave.user_.updated_at),"approved_by_"in resMemberSave&&resMemberSave.approved_by_&&(delete resMemberSave.approved_by_.created_at,delete resMemberSave.approved_by_.updated_at),_this2.ds.sendNews({embeds:[_this2.ds.createEmbedMessageEmptyRawTemplate().setColor("#ffc107").setTitle(resMemberSave.fansub_.name).setURL(`${environment_1.environment.baseUrl}/fansub/${resMemberSave.fansub_.slug}`).setAuthor({name:`${environment_1.environment.siteName} - Keanggotaan Grup`,iconURL:`${environment_1.environment.baseUrl}/assets/img/favicon.png`,url:environment_1.environment.baseUrl}).setDescription("Mengajukan Diri Bergabung Sebagai Anggota Fansub").setThumbnail(resMemberSave.fansub_.image_url.startsWith("/")?environment_1.environment.baseUrl+resMemberSave.fansub_.image_url:resMemberSave.fansub_.image_url).setTimestamp(resMemberSave.updated_at).setFooter({text:resMemberSave.user_.username,iconURL:resMemberSave.user_.image_url.startsWith("/")?environment_1.environment.baseUrl+resMemberSave.user_.image_url:resMemberSave.user_.image_url})]}),{info:"\u{1f605} 201 - Fansub API :: Permintaan Bergabung Berhasil \u{1f923}",result:resMemberSave}}{let message2=null;throw message2=members[0].approved?"Sudah Menjadi Anggota!":"Sudah Membuat Permintaan Untuk Bergabung!",new common_1.HttpException({info:"\u{1f605} 406 - Fansub API :: Permintaan Bergabung Gagal \u{1f923}",result:{message:message2}},common_1.HttpStatus.NOT_ACCEPTABLE)}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Fansub API :: Gagal Bergabung Keanggotaan \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}approveJoinOrRejectFansubMember(req,res){var _this3=this;return _asyncToGenerator(function*(){try{if("approved"in req.body){let otherMember=res.locals.user;const member=yield _this3.fansubMemberRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.params.id)}],relations:["fansub_","user_","approved_by_"]}),approvedMember=yield _this3.fansubMemberRepo.find({where:[{approved:!0,fansub_:{slug:(0,typeorm_1.ILike)(member.fansub_.slug)},user_:{id:(0,typeorm_1.Equal)(otherMember.id)}}],relations:["fansub_","user_","approved_by_"]}),targetUser=yield _this3.userRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(member.user_.id)}]});if(1===approvedMember.length||otherMember.role===req_res_model_1.RoleModel.ADMIN||otherMember.role===req_res_model_1.RoleModel.MODERATOR){let approver=null;if(approver=1===approvedMember.length?approvedMember[0]:otherMember,member.approved)throw new common_1.HttpException({info:"\u{1f644} 406 - Fansub API :: Gagal Menyetujui Keanggotaan \u{1f62a}",result:{message:"Pengguna Sudah Terdaftar Sebagai Anggota!"}},common_1.HttpStatus.NOT_ACCEPTABLE);let resMember=null,resInfo=null;return req.body.approved?(req.body.keterangan&&(member.keterangan=req.body.keterangan.substring(0,10)),member.approved=!0,member.approved_by_=approver.user_,resInfo="\u{1f605} 201 - Fansub API :: Berhasil Menyetujui Keanggotaan \u{1f923}",resMember=yield _this3.fansubMemberRepo.save(member),targetUser.role===req_res_model_1.RoleModel.USER&&(targetUser.role=req_res_model_1.RoleModel.FANSUBBER,yield _this3.userRepo.save(targetUser)),_this3.ds.sendNews({embeds:[_this3.ds.createEmbedMessageEmptyRawTemplate().setColor("#69f0ae").setTitle(resMember.fansub_.name).setURL(`${environment_1.environment.baseUrl}/fansub/${resMember.fansub_.slug}`).setAuthor({name:`${environment_1.environment.siteName} - Keanggotaan Grup`,iconURL:`${environment_1.environment.baseUrl}/assets/img/favicon.png`,url:environment_1.environment.baseUrl}).setDescription(`Anggota Disetujui Dengan Keterangan '${resMember.keterangan}'`).setThumbnail(resMember.fansub_.image_url.startsWith("/")?environment_1.environment.baseUrl+resMember.fansub_.image_url:resMember.fansub_.image_url).setTimestamp(resMember.updated_at).setFooter({text:resMember.user_.username,iconURL:resMember.user_.image_url.startsWith("/")?environment_1.environment.baseUrl+resMember.user_.image_url:resMember.user_.image_url})]})):(resInfo="\u{1f605} 201 - Fansub API :: Berhasil Menolak Keanggotaan \u{1f923}",resMember=yield _this3.fansubMemberRepo.remove(member)),"fansub_"in resMember&&resMember.fansub_&&(delete resMember.fansub_.urls,delete resMember.fansub_.tags,delete resMember.fansub_.view_count,delete resMember.fansub_.like_count,delete resMember.fansub_.description,delete resMember.fansub_.rss_feed,delete resMember.fansub_.created_at,delete resMember.fansub_.updated_at,delete resMember.fansub_.user_),"user_"in resMember&&resMember.user_&&(delete resMember.user_.created_at,delete resMember.user_.updated_at),"approved_by_"in resMember&&resMember.approved_by_&&(delete resMember.approved_by_.created_at,delete resMember.approved_by_.updated_at),{info:resInfo,result:resMember}}throw new common_1.HttpException({info:"\u{1f644} 403 - Fansub API :: Gagal Menyetujui Keanggotaan \u{1f62a}",result:{message:"Hanya Bisa Dilakukan Oleh Sesama Member!"}},common_1.HttpStatus.FORBIDDEN)}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Fansub API :: Gagal Mencari Keanggotaan ${req.params.id} \u{1f62a}`,result:{message:"Member Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}leaveFansubMember(req,res){var _this4=this;return _asyncToGenerator(function*(){try{const user=res.locals.user,member=yield _this4.fansubMemberRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.params.id)}],relations:["fansub_","user_","approved_by_"]});if(user.id===member.user_.id||user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR){const resMemberLeave=yield _this4.fansubMemberRepo.remove(member);return"fansub_"in resMemberLeave&&resMemberLeave.fansub_&&(delete resMemberLeave.fansub_.urls,delete resMemberLeave.fansub_.tags,delete resMemberLeave.fansub_.view_count,delete resMemberLeave.fansub_.like_count,delete resMemberLeave.fansub_.description,delete resMemberLeave.fansub_.rss_feed,delete resMemberLeave.fansub_.created_at,delete resMemberLeave.fansub_.updated_at,delete resMemberLeave.fansub_.user_),"user_"in resMemberLeave&&resMemberLeave.user_&&(delete resMemberLeave.user_.created_at,delete resMemberLeave.user_.updated_at),"approved_by_"in resMemberLeave&&resMemberLeave.approved_by_&&(delete resMemberLeave.approved_by_.created_at,delete resMemberLeave.approved_by_.updated_at),{info:"\u{1f605} 202 - Fansub API :: Berhasil Mengeluarkan Keanggotaan \u{1f923}",result:resMemberLeave}}throw new common_1.HttpException({info:"\u{1f644} 403 - Fansub API :: Authorisasi Kepemilikan Gagal \u{1f62a}",result:{message:"Hanya Bisa Mengeluarkan Diri Sendiri!"}},common_1.HttpStatus.FORBIDDEN)}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Fansub API :: Gagal Mencari Keanggotaan ${req.params.id} \u{1f62a}`,result:{message:"Member Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"FansubMemberController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubMemberController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubMemberController.prototype,"requestJoinFansubMember",null),tslib_1.__decorate([(0,common_1.Put)("/:id"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubMemberController.prototype,"approveJoinOrRejectFansubMember",null),tslib_1.__decorate([(0,common_1.Delete)("/:id"),(0,common_1.HttpCode)(202),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubMemberController.prototype,"leaveFansubMember",null),FansubMemberController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/fansub-member"),tslib_1.__metadata("design:paramtypes",[discord_service_1.DiscordService,fansub_service_1.FansubService,fansub_member_service_1.FansubMemberService,user_service_1.UserService])],FansubMemberController),exports2.FansubMemberController=FansubMemberController},39938:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubRssFeedActiveController=void 0;const tslib_1=__webpack_require__2(70655),node_fs_1=__webpack_require__2(35404),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),environment_1=__webpack_require__2(17482),filter_api_key_access_decorator_1=__webpack_require__2(18834),global_service_1=__webpack_require__2(40735);let FansubRssFeedActiveController=__name(class{constructor(cm,gs){this.cm=cm,this.gs=gs}getFansubFeed(req,res){var _this=this;return _asyncToGenerator(function*(){try{let reqUrl=req.originalUrl.split("?")[0];reqUrl.startsWith("/api")&&(reqUrl=reqUrl.substring(4)),reqUrl.startsWith("/")&&(reqUrl=reqUrl.substring(1));const responseBody={info:"\u{1f605} 200 - Fansub API :: RSS Feed All Active Fansubs \u{1f923}",count:0,pages:1,results:[]},cacheData=yield _this.cm.get(`/api/${reqUrl}`);if(cacheData)return cacheData.body;try{const jsonFile=(0,node_fs_1.readFileSync)(`${environment_1.environment.jsonCacheFolder}/${reqUrl}.old.json`,"utf8"),jsonData=JSON.parse(jsonFile);responseBody.count=jsonData.count,responseBody.results=jsonData.results}catch(e){_this.gs.log("[NODE_FS_READ_FILE_SYNC-ERROR] \u{1f4d6}",e,"error")}return responseBody}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Fansub API :: Gagal Menarik Data \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"FansubRssFeedActiveController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubRssFeedActiveController.prototype,"getFansubFeed",null),FansubRssFeedActiveController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/fansub-rss-feed-active"),tslib_1.__param(0,(0,common_1.Inject)(common_1.CACHE_MANAGER)),tslib_1.__metadata("design:paramtypes",[Object,global_service_1.GlobalService])],FansubRssFeedActiveController),exports2.FansubRssFeedActiveController=FansubRssFeedActiveController},85834:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubRssFeedAllController=void 0;const tslib_1=__webpack_require__2(70655),node_fs_1=__webpack_require__2(35404),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),environment_1=__webpack_require__2(17482),filter_api_key_access_decorator_1=__webpack_require__2(18834),global_service_1=__webpack_require__2(40735);let FansubRssFeedAllController=__name(class{constructor(cm,gs){this.cm=cm,this.gs=gs}getFansubFeed(req,res){var _this=this;return _asyncToGenerator(function*(){try{let reqUrl=req.originalUrl.split("?")[0];reqUrl.startsWith("/api")&&(reqUrl=reqUrl.substring(4)),reqUrl.startsWith("/")&&(reqUrl=reqUrl.substring(1));const responseBody={info:"\u{1f605} 200 - Fansub API :: RSS Feed All Full Fansubs \u{1f923}",count:0,pages:1,results:[]},cacheData=yield _this.cm.get(`/api/${reqUrl}`);if(cacheData)return cacheData.body;try{const jsonFile=(0,node_fs_1.readFileSync)(`${environment_1.environment.jsonCacheFolder}/${reqUrl}.old.json`,"utf8"),jsonData=JSON.parse(jsonFile);responseBody.count=jsonData.count,responseBody.results=jsonData.results}catch(e){_this.gs.log("[NODE_FS_READ_FILE_SYNC-ERROR] \u{1f4d6}",e,"error")}return responseBody}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Fansub API :: Gagal Menarik Data \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"FansubRssFeedAllController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubRssFeedAllController.prototype,"getFansubFeed",null),FansubRssFeedAllController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/fansub-rss-feed-all"),tslib_1.__param(0,(0,common_1.Inject)(common_1.CACHE_MANAGER)),tslib_1.__metadata("design:paramtypes",[Object,global_service_1.GlobalService])],FansubRssFeedAllController),exports2.FansubRssFeedAllController=FansubRssFeedAllController},22780:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubSlugController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),filter_api_key_access_decorator_1=__webpack_require__2(18834),fansub_service_1=__webpack_require__2(51467);let FansubSlugController=__name(class{constructor(fansubRepo){this.fansubRepo=fansubRepo}checkSlug(req,res){var _this=this;return _asyncToGenerator(function*(){try{if("slug"in req.body&&req.body.slug){const slug=req.body.slug.replace(/[^0-9a-zA-Z-]/g,"").toLowerCase();return constants_1.CONSTANTS.blacklistedWords.includes(slug)?{info:"\u{1f605} 202 - Fansub API :: Cek Fansub Slug Gagal \u{1f970}",result:{message:`'${slug}' Tidak Dapat Digunakan`}}:0===(yield _this.fansubRepo.find({where:[{slug:(0,typeorm_1.ILike)(slug)}]})).length?{info:"\u{1f605} 202 - Fansub API :: Cek Slug Berhasil \u{1f923}",result:{message:`'${slug}' Dapat Digunakan`}}:{info:"\u{1f605} 202 - Fansub API :: Cek Fansub Slug Gagal \u{1f970}",result:{message:`'${slug}' Sudah Terpakai`}}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Fansub API :: Gagal Mengecek Fansub Slug \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"FansubSlugController");tslib_1.__decorate([(0,common_1.Patch)("/"),(0,common_1.HttpCode)(202),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubSlugController.prototype,"checkSlug",null),FansubSlugController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/fansub-slug"),tslib_1.__metadata("design:paramtypes",[fansub_service_1.FansubService])],FansubSlugController),exports2.FansubSlugController=FansubSlugController},59554:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubController=void 0;const tslib_1=__webpack_require__2(70655),rss_to_json_1=__webpack_require__2(96213),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),discord_service_1=__webpack_require__2(92453),socket_io_service_1=__webpack_require__2(98095),fansub_service_1=__webpack_require__2(51467),fansub_member_service_1=__webpack_require__2(85434),global_service_1=__webpack_require__2(40735);let FansubController=__name(class{constructor(ds,fansubRepo,fansubMemberRepo,gs,sis){this.ds=ds,this.fansubRepo=fansubRepo,this.fansubMemberRepo=fansubMemberRepo,this.gs=gs,this.sis=sis}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){const searchQuery=req.query.q||"";try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[fansubs,count]=yield _this.fansubRepo.findAndCount({where:[{slug:(0,typeorm_1.ILike)(`%${searchQuery}%`)},{name:(0,typeorm_1.ILike)(`%${searchQuery}%`)}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{name:"ASC",active:"DESC"}},skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const f2 of fansubs)delete f2.description,f2.urls=JSON.parse(f2.urls),f2.tags=JSON.parse(f2.tags);return{info:"\u{1f605} 200 - Fansub API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:fansubs}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Fansub API :: Gagal Mendapatkan All Fansub \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}addNew(req,res){var _this2=this;return _asyncToGenerator(function*(){try{if("name"in req.body&&"born"in req.body&&"slug"in req.body&&"urls"in req.body&&Array.isArray(req.body.urls)&&req.body.urls.length>0){const user=res.locals.user,slug=req.body.slug.replace(/[^0-9a-zA-Z-]/g,"").toLowerCase();if(constants_1.CONSTANTS.blacklistedWords.includes(slug))throw new common_1.HttpException({info:"\u{1f644} 400 - Fansub API :: Gagal Menambah Fansub Baru \u{1f62a}",result:{message:`'${slug}' Tidak Dapat Digunakan`}},common_1.HttpStatus.BAD_REQUEST);if(0===(yield _this2.fansubRepo.find({where:[{slug:(0,typeorm_1.ILike)(slug)}]})).length){const fansub=_this2.fansubRepo.new();fansub.user_=user,fansub.name=req.body.name,fansub.born=new Date(req.body.born),fansub.slug=slug;const filteredUrls=[];for(const u of req.body.urls)"url"in u&&"name"in u&&u.url&&u.name&&filteredUrls.push({url:u.url,name:u.name});if(fansub.urls=JSON.stringify(filteredUrls),"rss_feed"in req.body){const rssFeed=req.body.rss_feed;rssFeed.match(constants_1.CONSTANTS.regexUrl)&&(fansub.rss_feed=rssFeed)}if("image"in req.body&&(fansub.image_url=req.body.image),"cover"in req.body&&(fansub.cover_url=req.body.cover),"tags"in req.body&&Array.isArray(req.body.tags)&&req.body.tags.length>0){const filteredTagsUnique=[...new Set(req.body.tags)];fansub.tags=JSON.stringify(filteredTagsUnique)}"description"in req.body&&(fansub.description=req.body.description),"active"in req.body&&(fansub.active=req.body.active);const resFansubSave=yield _this2.fansubRepo.save(fansub);return"user_"in resFansubSave&&resFansubSave.user_&&(delete resFansubSave.user_.created_at,delete resFansubSave.user_.updated_at),_this2.ds.sendNews(_this2.ds.createEmbedMessage("#0099ff",resFansubSave.name,`${environment_1.environment.baseUrl}/fansub/${resFansubSave.slug}`,{name:`${environment_1.environment.siteName} - Penambahan Fansub Baru`,iconURL:`${environment_1.environment.baseUrl}/assets/img/favicon.png`,url:environment_1.environment.baseUrl},resFansubSave.description,resFansubSave.image_url,resFansubSave.updated_at,{text:resFansubSave.user_.username,iconURL:resFansubSave.user_.image_url})),_this2.sis.emitToBroadcast("new-fansub",resFansubSave),{info:"\u{1f605} 201 - Fansub API :: Tambah Baru \u{1f923}",result:resFansubSave}}throw new common_1.HttpException({info:"\u{1f644} 400 - Fansub API :: Gagal Menambah Fansub Baru \u{1f62a}",result:{message:`'${slug}' Sudah Terpakai`}},common_1.HttpStatus.BAD_REQUEST)}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Fansub API :: Gagal Menambah Fansub Baru \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getBySlug(req,res){var _this3=this;return _asyncToGenerator(function*(){try{const fansub=yield _this3.fansubRepo.findOneOrFail({where:[{slug:(0,typeorm_1.ILike)(req.params.slug)}],relations:["user_"]});return fansub.urls=JSON.parse(fansub.urls),fansub.tags=JSON.parse(fansub.tags),"user_"in fansub&&fansub.user_&&(delete fansub.user_.created_at,delete fansub.user_.updated_at),{info:`\u{1f605} 200 - Fansub API :: Detail ${req.params.slug} \u{1f923}`,result:fansub}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Fansub API :: Gagal Mencari Fansub ${req.params.slug} \u{1f62a}`,result:{message:"Fansub Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}updateBySlug(req,res){var _this4=this;return _asyncToGenerator(function*(){try{if("name"in req.body||"born"in req.body||"description"in req.body||"slug"in req.body||"active"in req.body||"image"in req.body||"tags"in req.body&&Array.isArray(req.body.tags)&&req.body.tags.length>0||"urls"in req.body&&Array.isArray(req.body.urls)&&req.body.urls.length>0){let user=res.locals.user;const fansub=yield _this4.fansubRepo.findOneOrFail({where:[{slug:(0,typeorm_1.ILike)(req.params.slug),editable:!0}],relations:["user_"]});if(user.role!==req_res_model_1.RoleModel.ADMIN&&user.role!==req_res_model_1.RoleModel.MODERATOR&&fansub.user_.id!==user.id)try{user=(yield _this4.fansubMemberRepo.findOneOrFail({where:[{fansub_:{id:fansub.id},user_:{id:user.id}}],relations:["fansub_","user_"]})).user_}catch{throw new common_1.HttpException({info:`\u{1f644} 403 - Fansub API :: Gagal Mengubah Fansub ${req.params.slug} \u{1f62a}`,result:{message:"Harus Menjadi Anggota Untuk Mengubah Data!"}},common_1.HttpStatus.FORBIDDEN)}if("slug"in req.body){const newSlug=req.body.slug.replace(/[^0-9a-zA-Z-]/g,"").toLowerCase();if(constants_1.CONSTANTS.blacklistedWords.includes(newSlug))throw new common_1.HttpException({info:`\u{1f644} 400 - Fansub API :: Gagal Mengubah Fansub ${req.params.slug} \u{1f62a}`,result:{message:`'${newSlug}' Tidak Dapat Digunakan`}},common_1.HttpStatus.BAD_REQUEST);if(0!==(yield _this4.fansubRepo.find({where:[{slug:(0,typeorm_1.ILike)(newSlug)}]})).length||fansub.dns_id)throw new common_1.HttpException({info:`\u{1f644} 400 - Fansub API :: Gagal Mengubah Fansub ${req.params.slug} \u{1f62a}`,result:{message:`'${newSlug}' Sudah Terpakai / Terikat Domain`}},common_1.HttpStatus.BAD_REQUEST);fansub.slug=newSlug}if("name"in req.body&&(fansub.name=req.body.name),"born"in req.body&&(fansub.born=req.body.born),"description"in req.body&&(fansub.description=req.body.description),"active"in req.body&&(fansub.active=req.body.active),"image"in req.body&&(fansub.image_url=req.body.image),"cover"in req.body&&(fansub.cover_url=req.body.cover),"rss_feed"in req.body){const rssFeed=req.body.rss_feed;rssFeed.match(constants_1.CONSTANTS.regexUrl)&&(fansub.rss_feed=rssFeed)}if("tags"in req.body&&Array.isArray(req.body.tags)&&req.body.tags.length>0){const filteredTagsUnique=[...new Set(req.body.tags)];fansub.tags=JSON.stringify(filteredTagsUnique)}if("urls"in req.body){const filteredUrls=[];for(const u of req.body.urls)"url"in u&&"name"in u&&u.url&&u.name&&filteredUrls.push({url:u.url,name:u.name});fansub.urls=JSON.stringify(filteredUrls)}fansub.user_=user;const resFansubSave=yield _this4.fansubRepo.save(fansub);return"user_"in resFansubSave&&resFansubSave.user_&&(delete resFansubSave.user_.created_at,delete resFansubSave.user_.updated_at),_this4.ds.sendNews(_this4.ds.createEmbedMessage("#ff4081",resFansubSave.name,`${environment_1.environment.baseUrl}/fansub/${resFansubSave.slug}`,{name:`${environment_1.environment.siteName} - Pembaharuan Data Fansub`,iconURL:`${environment_1.environment.baseUrl}/assets/img/favicon.png`,url:environment_1.environment.baseUrl},resFansubSave.description,resFansubSave.image_url,resFansubSave.updated_at,{text:resFansubSave.user_.username,iconURL:resFansubSave.user_.image_url})),{info:`\u{1f605} 201 - Fansub API :: Ubah ${req.params.slug} \u{1f923}`,result:resFansubSave}}throw new common_1.HttpException({info:`\u{1f644} 400 - Fansub API :: Gagal Mengubah Fansub ${req.params.slug} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Fansub API :: Gagal Mencari Fansub ${req.params.slug} \u{1f62a}`,result:{message:"Fansub Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}deleteBySlug(req,res){var _this5=this;return _asyncToGenerator(function*(){try{const fansub=yield _this5.fansubRepo.findOneOrFail({where:[{slug:(0,typeorm_1.ILike)(req.params.slug)}]}),deletedFansub=yield _this5.fansubRepo.remove(fansub);return"user_"in deletedFansub&&deletedFansub.user_&&(delete deletedFansub.user_.created_at,delete deletedFansub.user_.updated_at),{info:`\u{1f605} 202 - Fansub API :: Berhasil Menghapus Fansub ${req.params.slug} \u{1f923}`,result:deletedFansub}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Fansub API :: Gagal Mencari Fansub ${req.params.slug} \u{1f62a}`,result:{message:"Fansub Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}getFansubMembers(req,res){var _this6=this;return _asyncToGenerator(function*(){try{const[members,count]=yield _this6.fansubMemberRepo.findAndCount({where:[{fansub_:{slug:(0,typeorm_1.ILike)(req.params.slug)}}],order:{keterangan:"ASC",created_at:"DESC"},relations:["fansub_","user_","approved_by_"]});for(const member of members)"fansub_"in member&&member.fansub_&&(delete member.fansub_.urls,delete member.fansub_.tags,delete member.fansub_.view_count,delete member.fansub_.like_count,delete member.fansub_.description,delete member.fansub_.rss_feed,delete member.fansub_.created_at,delete member.fansub_.updated_at,delete member.fansub_.user_),"user_"in member&&member.user_&&(delete member.user_.created_at,delete member.user_.updated_at),"approved_by_"in member&&member.approved_by_&&(delete member.approved_by_.created_at,delete member.approved_by_.updated_at);return{info:`\u{1f605} 200 - Fansub API :: ${req.params.slug} Members \u{1f923}`,count,pages:1,results:members}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Fansub API :: Gagal Mendapatkan All Members \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getFansubFeedBySlug(req,res){var _this7=this;return _asyncToGenerator(function*(){try{const rssFeed={},fansub=yield _this7.fansubRepo.findOneOrFail({where:[{slug:(0,typeorm_1.ILike)(req.params.slug)}],order:{updated_at:"DESC"}}),rgx=new RegExp(constants_1.CONSTANTS.regexUrl);if(fansub.rss_feed&&fansub.rss_feed.match(rgx))try{let rssUrl=fansub.rss_feed;rssUrl.includes("?")||(rssUrl+="?"),"?"!==rssUrl[rssUrl.length-1]&&(rssUrl+="&"),rssUrl.includes("alt=rss")||(rssUrl+="alt=rss");const feed=yield(0,rss_to_json_1.parse)(`${environment_1.environment.baseUrl}/api/crawl?url=${rssUrl}`,null);rssFeed.slug=fansub.slug,rssFeed.title=feed.title,rssFeed.link=feed.link,rssFeed.items=[];for(const f2 of feed.items)rssFeed.items.push({title:f2.title,link:f2.link,published:f2.published,created:f2.created,author:f2.author})}catch(e){_this7.gs.log("[FANSUB_RSS_FEED] \u{1f43e}",e,"error")}else rssFeed.slug=fansub.slug,rssFeed.items=[];return{info:"\u{1f605} 200 - Fansub API :: RSS Feed \u{1f923}",count:rssFeed.items.length,pages:1,result:rssFeed}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Fansub API :: Gagal Menarik Data \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"FansubController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagFansub),(0,swagger_1.ApiQuery)({name:"q",required:!1,type:"string"}),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubController.prototype,"addNew",null),tslib_1.__decorate([(0,common_1.Get)("/:slug"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagFansub),(0,swagger_1.ApiParam)({name:"slug",type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubController.prototype,"getBySlug",null),tslib_1.__decorate([(0,common_1.Put)("/:slug"),(0,common_1.HttpCode)(201),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubController.prototype,"updateBySlug",null),tslib_1.__decorate([(0,common_1.Delete)("/:slug"),(0,common_1.HttpCode)(202),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubController.prototype,"deleteBySlug",null),tslib_1.__decorate([(0,common_1.Get)("/:slug/member"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagFansub),(0,swagger_1.ApiParam)({name:"slug",type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubController.prototype,"getFansubMembers",null),tslib_1.__decorate([(0,common_1.Get)("/:slug/rss"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagFansub),(0,swagger_1.ApiParam)({name:"slug",type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],FansubController.prototype,"getFansubFeedBySlug",null),FansubController=tslib_1.__decorate([(0,common_1.Controller)("/fansub"),tslib_1.__metadata("design:paramtypes",[discord_service_1.DiscordService,fansub_service_1.FansubService,fansub_member_service_1.FansubMemberService,global_service_1.GlobalService,socket_io_service_1.SocketIoService])],FansubController),exports2.FansubController=FansubController},62641:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ImageController=void 0;const tslib_1=__webpack_require__2(70655),multer_1=tslib_1.__importDefault(__webpack_require__2(36831)),node_fetch_1=__webpack_require__2(22651),node_url_1=__webpack_require__2(46024),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),platform_express_1=__webpack_require__2(22776),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),api_service_1=__webpack_require__2(99527),crypto_service_1=__webpack_require__2(4030),global_service_1=__webpack_require__2(40735);let ImageController=__name(class{constructor(api,cs,gs){this.api=api,this.cs=cs,this.gs=gs}imgBb(req,res){var _this=this;return _asyncToGenerator(function*(){try{const dateTime=(new Date).getTime().toString(),imgB64=_this.cs.convertToBase64(req.file.buffer),url=new node_url_1.URL(environment_1.environment.externalApiImage),form=new node_fetch_1.FormData;form.append("key",environment_1.environment.imgbbKey),form.append("name",dateTime),form.append("image",imgB64);const res_raw=yield _this.api.postData(url,form,environment_1.environment.nodeJsXhrHeader);if(res_raw.ok){const res_json=yield res_raw.json();return _this.gs.log(`[imgBB] \u{1f5bc} ${res_raw.status}`,res_json),{info:"\u{1f605} 201 - ImgBB API :: Upload Image \u{1f923}",result:{id:res_json.data.id,title:res_json.data.title,url:res_json.data.image.url,mime:res_json.data.image.mime,extension:res_json.data.image.extension,size:res_json.data.size,time:res_json.data.time,expiration:res_json.data.expiration},imageUrl:res_json.data.image.url}}throw new common_1.HttpException({info:`\u{1f644} ${res_raw.status||400} - ImgBB API :: Upload Image Gagal \u{1f62a}`,result:{message:"Data Tidak Lengkap / ImgBB API Down!"}},res_raw.status||common_1.HttpStatus.BAD_REQUEST)}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - ImgBB API :: Upload Image Gagal \u{1f62a}",result:{message:"Data Tidak Lengkap"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"ImageController");tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),(0,common_1.UseInterceptors)((0,platform_express_1.FileInterceptor)("file",{fileFilter:(req,file2,cb)=>{if(file2){const typeArray=file2.mimetype.split("/"),fileType=typeArray[0],fileExt=typeArray[1];if("image"===fileType&&("jpeg"===fileExt||"jpg"===fileExt||"gif"===fileExt||"png"===fileExt))return cb(null,!0)}return cb(null,!1)},storage:multer_1.default.memoryStorage(),limits:{fileSize:constants_1.CONSTANTS.fileSizeImageLimit}})),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],ImageController.prototype,"imgBb",null),ImageController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/image"),tslib_1.__metadata("design:paramtypes",[api_service_1.ApiService,crypto_service_1.CryptoService,global_service_1.GlobalService])],ImageController),exports2.ImageController=ImageController},71806:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InformationController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),information_service_1=__webpack_require__2(26927),socket_io_service_1=__webpack_require__2(98095);let InformationController=__name(class{constructor(informationRepo,sis){this.informationRepo=informationRepo,this.sis=sis}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){const searchQuery=req.query.q||"";try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[informations,count]=yield _this.informationRepo.findAndCount({where:[{title:(0,typeorm_1.ILike)(`%${searchQuery}%`)},{content:(0,typeorm_1.ILike)(`%${searchQuery}%`)}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",title:"ASC"}},relations:["user_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const i2 of informations)"user_"in i2&&i2.user_&&(delete i2.user_.created_at,delete i2.user_.updated_at);return{info:"\u{1f605} 200 - Information API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:informations}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Information API :: Gagal Mendapatkan All Informasi \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}addNew(req,res){var _this2=this;return _asyncToGenerator(function*(){try{if("id"in req.body&&"title"in req.body&&"content"in req.body&&"confirm"in req.body&&"close"in req.body){const user=res.locals.user;let infoTemplate={id:req.body.id,title:req.body.title,content:req.body.content,confirm:req.body.confirm,cancel:req.body.cancel,close:req.body.close,user_:{username:user.username}};const informations=yield _this2.informationRepo.find({where:[{id:(0,typeorm_1.ILike)(`%${infoTemplate.id}%`)}],relations:["user_"]});let infoCreateOrUpdate=null;if(0===informations.length)infoCreateOrUpdate=_this2.informationRepo.new(),infoCreateOrUpdate.id=infoTemplate.id;else{if(1!==informations.length)throw new Error("Data Duplikat");infoCreateOrUpdate=informations[0]}return"title"in req.body&&(infoCreateOrUpdate.title=infoTemplate.title),"content"in req.body&&(infoCreateOrUpdate.content=infoTemplate.content),"confirm"in req.body&&(infoCreateOrUpdate.confirm=infoTemplate.confirm),"cancel"in req.body&&(infoCreateOrUpdate.cancel=infoTemplate.cancel),"close"in req.body&&(infoCreateOrUpdate.close=infoTemplate.close),infoCreateOrUpdate.user_=user,!0===req.body.broadcast?(_this2.sis.emitToBroadcast("new-information",{infoCreator:infoCreateOrUpdate.user_.username,infoData:{id:infoCreateOrUpdate.id,title:infoCreateOrUpdate.title,content:infoCreateOrUpdate.content,confirm:infoCreateOrUpdate.confirm,cancel:infoCreateOrUpdate.cancel,close:infoCreateOrUpdate.close}}),infoTemplate=infoCreateOrUpdate):infoTemplate=yield _this2.informationRepo.save(infoCreateOrUpdate),{info:"\u{1f61a} 201 - Information API :: Berhasil Membuat / Mengirim Informasi \u{1f929}",result:infoTemplate}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Information API :: Gagal Membuat Informasi \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getById(req,res){var _this3=this;return _asyncToGenerator(function*(){try{const information=yield _this3.informationRepo.findOneOrFail({where:[{id:(0,typeorm_1.ILike)(`%${req.params.id}%`)}],relations:["user_"]});return"user_"in information&&information.user_&&(delete information.user_.created_at,delete information.user_.updated_at),{info:`\u{1f605} 200 - Informasi API :: Detail ${req.params.id} \u{1f923}`,result:information}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Information API :: Gagal Mencari Informasi ${req.params.id} \u{1f62a}`,result:{message:"Informasi Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}deleteById(req,res){var _this4=this;return _asyncToGenerator(function*(){try{const information=yield _this4.informationRepo.findOneOrFail({where:[{id:(0,typeorm_1.ILike)(`%${req.params.id}%`)}],relations:["user_"]}),deletedInformasi=yield _this4.informationRepo.remove(information);return"user_"in deletedInformasi&&deletedInformasi.user_&&(delete deletedInformasi.user_.created_at,delete deletedInformasi.user_.updated_at),{info:`\u{1f605} 202 - Information API :: Berhasil Hapus Informasi ${req.params.id} \u{1f923}`,result:deletedInformasi}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Information API :: Gagal Mencari Informasi ${req.params.id} \u{1f62a}`,result:{message:"Informasi Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"InformationController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],InformationController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],InformationController.prototype,"addNew",null),tslib_1.__decorate([(0,common_1.Get)("/:id"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],InformationController.prototype,"getById",null),tslib_1.__decorate([(0,common_1.Delete)("/:id"),(0,common_1.HttpCode)(202),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],InformationController.prototype,"deleteById",null),InformationController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/information"),tslib_1.__metadata("design:paramtypes",[information_service_1.InformationService,socket_io_service_1.SocketIoService])],InformationController),exports2.InformationController=InformationController},4515:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LikedislikeController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),berkas_service_1=__webpack_require__2(17319),fansub_service_1=__webpack_require__2(51467),likedislike_service_1=__webpack_require__2(59062),news_service_1=__webpack_require__2(48519),profile_service_1=__webpack_require__2(38854),user_service_1=__webpack_require__2(50675);let LikedislikeController=__name(class{constructor(berkasRepo,fansubRepo,likedislikeRepo,newsRepo,profileRepo,userRepo){this.berkasRepo=berkasRepo,this.fansubRepo=fansubRepo,this.likedislikeRepo=likedislikeRepo,this.newsRepo=newsRepo,this.profileRepo=profileRepo,this.userRepo=userRepo}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[likedislike,count]=yield _this.likedislikeRepo.findAndCount({where:[{...req.query.type&&req.query.id?{[`${req.query.type}_`]:{id:(0,typeorm_1.Equal)(req.query.id)}}:{}}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC"}},relations:["news_","berkas_","fansub_","user_","report_by_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const l of likedislike)"news_"in l&&l.news_&&(delete l.news_.content,delete l.news_.tags,delete l.news_.created_at,delete l.news_.updated_at),"berkas_"in l&&l.berkas_&&(delete l.berkas_.description,delete l.berkas_.download_url,delete l.berkas_.created_at,delete l.berkas_.updated_at),"fansub_"in l&&l.fansub_&&(delete l.fansub_.description,delete l.fansub_.urls,delete l.fansub_.tags,delete l.fansub_.created_at,delete l.fansub_.updated_at),"user_"in l&&l.user_&&(delete l.user_.created_at,delete l.user_.updated_at),"report_by_"in l&&l.report_by_&&(delete l.report_by_.created_at,delete l.report_by_.updated_at);return{info:"\u{1f605} 200 - Like Dislike API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:likedislike}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Like Dislike API :: Gagal Mendapatkan All Like Dislike \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}deleteById(req,res){var _this2=this;return _asyncToGenerator(function*(){try{const likedislike=yield _this2.likedislikeRepo.findOneOrFail({where:[{id:req.params.id}],relations:["berkas_","fansub_","user_","report_by_"]}),deletedLikedislike=yield _this2.likedislikeRepo.remove(likedislike);return"berkas_"in deletedLikedislike&&deletedLikedislike.berkas_&&(delete deletedLikedislike.berkas_.description,delete deletedLikedislike.berkas_.download_url,delete deletedLikedislike.berkas_.created_at,delete deletedLikedislike.berkas_.updated_at),"fansub_"in deletedLikedislike&&deletedLikedislike.fansub_&&(delete deletedLikedislike.fansub_.description,delete deletedLikedislike.fansub_.urls,delete deletedLikedislike.fansub_.tags,delete deletedLikedislike.fansub_.created_at,delete deletedLikedislike.fansub_.updated_at),"user_"in deletedLikedislike&&deletedLikedislike.user_&&(delete deletedLikedislike.user_.created_at,delete deletedLikedislike.user_.updated_at),"report_by_"in deletedLikedislike&&deletedLikedislike.report_by_&&(delete deletedLikedislike.report_by_.created_at,delete deletedLikedislike.report_by_.updated_at),{info:`\u{1f605} 202 - Like Dislike API :: Berhasil Menghapus Like Dislike ${req.params.id} \u{1f923}`,result:deletedLikedislike}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Like Dislike API :: Gagal Mencari Like Dislike ${req.params.id} \u{1f62a}`,result:{message:"Like Dislike Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}addNew(req,res){var _this3=this;return _asyncToGenerator(function*(){try{const user=res.locals.user;let selectedRepo=null,selected=null;if("berkas"===req.params.type)selectedRepo=_this3.berkasRepo,selected=yield _this3.berkasRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.params.idSlugUsername)}]});else if("news"===req.params.type)selectedRepo=_this3.newsRepo,selected=yield _this3.newsRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.idSlugUsername))}]});else if("fansub"===req.params.type)selectedRepo=_this3.fansubRepo,selected=yield _this3.fansubRepo.findOneOrFail({where:[{slug:(0,typeorm_1.ILike)(req.params.idSlugUsername)}]});else{if("user"!==req.params.type)throw new Error("Data Tidak Lengkap!");selectedRepo=_this3.userRepo,selected=yield _this3.userRepo.findOneOrFail({where:[{username:(0,typeorm_1.ILike)(req.params.idSlugUsername)}],relations:["profile_"]})}const likedislike=yield _this3.likedislikeRepo.find({where:[{[`${req.params.type}_`]:{id:(0,typeorm_1.Equal)(selected.id)},report_by_:{id:(0,typeorm_1.Equal)(user.id)}}],relations:["news_","berkas_","fansub_","user_","report_by_"]});let result=null;if(0===likedislike.length){const ldl=_this3.likedislikeRepo.new();ldl[`${req.params.type}_`]=selected,ldl.type=req.body.likedislike,ldl.report_by_=user;const resLdlSave=yield _this3.likedislikeRepo.save(ldl);"news_"in resLdlSave&&resLdlSave.news_&&(delete resLdlSave.news_.content,delete resLdlSave.news_.tags,delete resLdlSave.news_.created_at,delete resLdlSave.news_.updated_at),"berkas_"in resLdlSave&&resLdlSave.berkas_&&(delete resLdlSave.berkas_.description,delete resLdlSave.berkas_.download_url,delete resLdlSave.berkas_.created_at,delete resLdlSave.berkas_.updated_at),"fansub_"in resLdlSave&&resLdlSave.fansub_&&(delete resLdlSave.fansub_.description,delete resLdlSave.fansub_.urls,delete resLdlSave.fansub_.tags,delete resLdlSave.fansub_.created_at,delete resLdlSave.fansub_.updated_at),"user_"in resLdlSave&&resLdlSave.user_&&(delete resLdlSave.user_.created_at,delete resLdlSave.user_.updated_at),"report_by_"in resLdlSave&&resLdlSave.report_by_&&(delete resLdlSave.report_by_.created_at,delete resLdlSave.report_by_.updated_at),result=resLdlSave}else{if(1!==likedislike.length)throw new Error("Data Duplikat");{let auditedLikedislike=null;req.body.likedislike?(likedislike[0].type=req.body.likedislike,auditedLikedislike=yield _this3.likedislikeRepo.save(likedislike[0])):auditedLikedislike=yield _this3.likedislikeRepo.remove(likedislike[0]),"news_"in auditedLikedislike&&auditedLikedislike.news_&&(delete auditedLikedislike.news_.content,delete auditedLikedislike.news_.tags,delete auditedLikedislike.news_.created_at,delete auditedLikedislike.news_.updated_at),"berkas_"in auditedLikedislike&&auditedLikedislike.berkas_&&(delete auditedLikedislike.berkas_.description,delete auditedLikedislike.berkas_.download_url,delete auditedLikedislike.berkas_.created_at,delete auditedLikedislike.berkas_.updated_at),"fansub_"in auditedLikedislike&&auditedLikedislike.fansub_&&(delete auditedLikedislike.fansub_.description,delete auditedLikedislike.fansub_.urls,delete auditedLikedislike.fansub_.tags,delete auditedLikedislike.fansub_.created_at,delete auditedLikedislike.fansub_.updated_at),"user_"in auditedLikedislike&&auditedLikedislike.user_&&(delete auditedLikedislike.user_.created_at,delete auditedLikedislike.user_.updated_at),"report_by_"in auditedLikedislike&&auditedLikedislike.report_by_&&(delete auditedLikedislike.report_by_.created_at,delete auditedLikedislike.report_by_.updated_at),result=auditedLikedislike}}"user"===req.params.type&&(selectedRepo=_this3.profileRepo,selected=yield _this3.profileRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(selected.profile_.id)}]}));const updatedLikeCount=yield _this3.likedislikeRepo.count({where:[{[`${req.params.type}_`]:{id:(0,typeorm_1.Equal)(selected.id)},type:(0,typeorm_1.Equal)(req_res_model_1.LikeAndDislikeModel.LIKE)}]});return selected.like_count=updatedLikeCount,yield selectedRepo.save(selected),{info:"\u{1f605} 201 - Like Dislike API :: Berhasil Tambah / Update Report \u{1f923}",result}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Like Dislike API :: Gagal Mencari Like Dislike ${req.params.id} \u{1f62a}`,result:{message:"Like Dislike Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}getByIdSlugUsername(req,res){var _this4=this;return _asyncToGenerator(function*(){try{const user=res.locals.user;let selected=null;if("berkas"===req.params.type)selected=yield _this4.berkasRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.params.idSlugUsername)}]});else if("news"===req.params.type)selected=yield _this4.newsRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.idSlugUsername))}]});else if("fansub"===req.params.type)selected=yield _this4.fansubRepo.findOneOrFail({where:[{slug:(0,typeorm_1.ILike)(req.params.idSlugUsername)}]});else{if("user"!==req.params.type)throw new Error("Data Tidak Lengkap!");selected=yield _this4.userRepo.findOneOrFail({where:[{username:(0,typeorm_1.ILike)(req.params.idSlugUsername)}]})}const likedislike=yield _this4.likedislikeRepo.query(`\n SELECT\n type,\n COUNT(*) count\n FROM\n like_dislike\n WHERE\n ${req.params.type}_id = $1\n GROUP BY\n type\n ORDER BY\n type ASC\n `,[selected.id]);if(user){const myReport=yield _this4.likedislikeRepo.find({where:[{[`${req.params.type}_`]:{id:(0,typeorm_1.Equal)(selected.id)},report_by_:{id:(0,typeorm_1.Equal)(user.id)}}],relations:["news_","berkas_","fansub_","user_","report_by_"]});if(0===myReport.length)return{info:"\u{1f605} 200 - Like Dislike API :: Statistik Report \u{1f923}",result:{statistics:likedislike,myReport:null}};if(1===myReport.length)return"news_"in myReport[0]&&myReport[0].news_&&(delete myReport[0].news_.content,delete myReport[0].news_.tags,delete myReport[0].news_.created_at,delete myReport[0].news_.updated_at),"berkas_"in myReport[0]&&myReport[0].berkas_&&(delete myReport[0].berkas_.description,delete myReport[0].berkas_.download_url,delete myReport[0].berkas_.created_at,delete myReport[0].berkas_.updated_at),"fansub_"in myReport[0]&&myReport[0].fansub_&&(delete myReport[0].fansub_.description,delete myReport[0].fansub_.urls,delete myReport[0].fansub_.tags,delete myReport[0].fansub_.created_at,delete myReport[0].fansub_.updated_at),"user_"in myReport[0]&&myReport[0].user_&&(delete myReport[0].user_.created_at,delete myReport[0].user_.updated_at),"report_by_"in myReport[0]&&myReport[0].report_by_&&(delete myReport[0].report_by_.created_at,delete myReport[0].report_by_.updated_at),{info:"\u{1f605} 200 - Like Dislike API :: Statistik Report \u{1f923}",result:{statistics:likedislike,myReport:myReport[0]}};throw new Error("Data Duplikat")}return{info:"\u{1f605} 200 - Like Dislike API :: Statistik Report \u{1f923}",result:{statistics:likedislike,myReport:null}}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Like Dislike API :: Gagal Mencari Like Dislike ${req.params.type} - ${req.params.idSlugUsername} \u{1f62a}`,result:{message:"Like Dislike Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"LikedislikeController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],LikedislikeController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Delete)("/:id"),(0,common_1.HttpCode)(202),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],LikedislikeController.prototype,"deleteById",null),tslib_1.__decorate([(0,common_1.Post)("/:type/:idSlugUsername"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],LikedislikeController.prototype,"addNew",null),tslib_1.__decorate([(0,common_1.Get)("/:type/:idSlugUsername"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],LikedislikeController.prototype,"getByIdSlugUsername",null),LikedislikeController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/likedislike"),tslib_1.__metadata("design:paramtypes",[berkas_service_1.BerkasService,fansub_service_1.FansubService,likedislike_service_1.LikedislikeService,news_service_1.NewsService,profile_service_1.ProfileService,user_service_1.UserService])],LikedislikeController),exports2.LikedislikeController=LikedislikeController},61406:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LoginController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),filter_api_key_access_decorator_1=__webpack_require__2(18834);let LoginController=__name(class{constructor(){}login(req,res){return{info:"\u{1f61a} 201 - Login API :: Berhasil Masuk Yeay \u{1f929}",result:{token:res.locals.user.session_token}}}},"LoginController");tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Object)],LoginController.prototype,"login",null),LoginController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/login"),tslib_1.__metadata("design:paramtypes",[])],LoginController),exports2.LoginController=LoginController},76414:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LogoutController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141);let LogoutController=__name(class{constructor(){}logout(res){return{info:"\u{1f60d} 202 - Logout API :: Berhasil Keluar UwUu \u{1f970}",result:{message:`Sampai Jumpa ${res.locals.user.username}! (\uff61>\ufe4f<\uff61)`}}}},"LogoutController");tslib_1.__decorate([(0,common_1.Delete)("/"),(0,common_1.HttpCode)(202),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object]),tslib_1.__metadata("design:returntype",Object)],LogoutController.prototype,"logout",null),LogoutController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/logout"),tslib_1.__metadata("design:paramtypes",[])],LogoutController),exports2.LogoutController=LogoutController},73004:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LostAccountFindController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),filter_api_key_access_decorator_1=__webpack_require__2(18834),api_key_service_1=__webpack_require__2(87044),user_service_1=__webpack_require__2(50675),mail_service_1=__webpack_require__2(50899),global_service_1=__webpack_require__2(40735),api_service_1=__webpack_require__2(99527),crypto_service_1=__webpack_require__2(4030);let LostAccountFindController=__name(class{constructor(cs,aks,api,gs,ms,userRepo){this.cs=cs,this.aks=aks,this.api=api,this.gs=gs,this.ms=ms,this.userRepo=userRepo}find(req,res){var _this=this;return _asyncToGenerator(function*(){try{if("userNameOrEmail"in req.body&&"g-recaptcha-response"in req.body){const url=new URL(environment_1.environment.reCaptcha.api_url);url.searchParams.append("secret",environment_1.environment.reCaptcha.secret_key),url.searchParams.append("response",req.body["g-recaptcha-response"]),url.searchParams.append("remoteip",_this.aks.getOriginIpCc(req,!0).origin_ip);const res_raw=yield _this.api.getData(url,environment_1.environment.nodeJsXhrHeader);if(res_raw.ok){const res_json=yield res_raw.json();_this.gs.log(`[gCaptcha] \u{1f3b2} ${res_raw.status}`,res_json);const selectedUser=yield _this.userRepo.findOneOrFail({where:[{username:(0,typeorm_1.ILike)(req.body.userNameOrEmail)},{email:(0,typeorm_1.ILike)(req.body.userNameOrEmail)}],relations:["kartu_tanda_penduduk_"]}),{password,session_token,session_origin,...noPwdSes}=selectedUser;"kartu_tanda_penduduk_"in noPwdSes&&noPwdSes.kartu_tanda_penduduk_&&(delete noPwdSes.kartu_tanda_penduduk_.created_at,delete noPwdSes.kartu_tanda_penduduk_.updated_at);const resetToken=_this.cs.credentialEncode({user:noPwdSes},null,constants_1.CONSTANTS.timeResetAccount);return _this.ms.sendResetAccountMail(selectedUser,resetToken),{info:"\u{1f605} 201 - Lost Account API :: Akun Tersedia \u{1f923}",result:{title:`Reset Akun :: ${selectedUser.username}`,message:`\n Silahkan Periksa Email Untuk Mengatur Ulang Akun.
\n Informasi Sudah Dikirimkan Ke '${selectedUser.email}'.
\n Gunakan Data Tersebut Untuk Melengkapi Formulir Pengubahan Kata Sandi.
\n Informasi Tersebut Hanya berlaku selama ${constants_1.CONSTANTS.timeResetAccount/60} menit.\n `}}}throw new common_1.HttpException({info:`\u{1f644} ${res_raw.status||400} - Google API :: Captcha Bermasalah \u{1f62a}`,result:{message:"Captcha Salah / Expired / Google API Down!"}},res_raw.status||common_1.HttpStatus.BAD_REQUEST)}throw new Error("Akun Tidak Ditemukan!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Lost Account API :: Pencarian Gagal \u{1f62a}",result:{message:"Akun Tidak Ditemukan!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"LostAccountFindController");tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],LostAccountFindController.prototype,"find",null),LostAccountFindController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/lost-account-find"),tslib_1.__metadata("design:paramtypes",[crypto_service_1.CryptoService,api_key_service_1.ApiKeyService,api_service_1.ApiService,global_service_1.GlobalService,mail_service_1.MailService,user_service_1.UserService])],LostAccountFindController),exports2.LostAccountFindController=LostAccountFindController},75583:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LostAccountResetController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),filter_api_key_access_decorator_1=__webpack_require__2(18834),api_key_service_1=__webpack_require__2(87044),user_service_1=__webpack_require__2(50675),crypto_service_1=__webpack_require__2(4030);let LostAccountResetController=__name(class{constructor(cs,aks,userRepo){this.cs=cs,this.aks=aks,this.userRepo=userRepo}reset(req,res){var _this=this;return _asyncToGenerator(function*(){try{if("token"in req.body&&"password"in req.body){const decoded=_this.cs.jwtDecode(req.body.token),selectedUser=yield _this.userRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(decoded.user.id)}]});selectedUser.password=_this.cs.hashPassword(req.body.password);let resUserSave=yield _this.userRepo.save(selectedUser);const{password,session_token,session_origin,...noPwdSes}=resUserSave,clientOriginIpCc=_this.aks.getOriginIpCc(req,!0);return resUserSave.session_origin=clientOriginIpCc.origin_ip,resUserSave.session_token=_this.cs.credentialEncode({user:noPwdSes}),resUserSave=yield _this.userRepo.save(resUserSave),{info:"\u{1f61a} 201 - Lost Account API :: Berhasil Reset Akun \u{1f929}",result:{token:resUserSave.session_token}}}throw new Error("Token Expired!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Lost Account API :: Pencarian Gagal \u{1f62a}",result:{message:"Token Expired!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"LostAccountResetController");tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],LostAccountResetController.prototype,"reset",null),LostAccountResetController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/lost-account-reset"),tslib_1.__metadata("design:paramtypes",[crypto_service_1.CryptoService,api_key_service_1.ApiKeyService,user_service_1.UserService])],LostAccountResetController),exports2.LostAccountResetController=LostAccountResetController},12902:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MailInboxController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),mailbox_service_1=__webpack_require__2(53866);let MailInboxController=__name(class{constructor(mailboxRepo){this.mailboxRepo=mailboxRepo}mailInbox(req,res){var _this=this;return _asyncToGenerator(function*(){var _a;const searchQuery=req.query.q||"";try{const user=res.locals.user,queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[mailboxs,count]=yield _this.mailboxRepo.findAndCount({where:[{subject:(0,typeorm_1.ILike)(`%${searchQuery}%`),to:(0,typeorm_1.ILike)(`%${user.username}@${environment_1.environment.mailTrap.domain}%`)},{subject:(0,typeorm_1.ILike)(`%${searchQuery}%`),cc:(0,typeorm_1.ILike)(`%${user.username}@${environment_1.environment.mailTrap.domain}%`)},{subject:(0,typeorm_1.ILike)(`%${searchQuery}%`),bcc:(0,typeorm_1.ILike)(`%${user.username}@${environment_1.environment.mailTrap.domain}%`)}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{date:"DESC"}},relations:["attachment_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const m of mailboxs)user.role!==req_res_model_1.RoleModel.ADMIN&&user.role!==req_res_model_1.RoleModel.MODERATOR&&(null===(_a=m.bcc)||void 0===_a?void 0:_a.includes(`${user.username}@${environment_1.environment.mailTrap.domain}`))&&(m.bcc=`${user.username}@${environment_1.environment.mailTrap.domain}`),delete m.html,delete m.text,"attachment_"in m&&m.attachment_?m.attachment_count=m.attachment_.length:m.attachment_count=0,delete m.attachment_;return{info:"\u{1f60d} 200 - Mail Inbox API :: Inbox Email \u{1f970}",count,pages:Math.ceil(count/(queryRow||10)),results:mailboxs}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Mail Inbox API :: Gagal Mendapatkan Inbox Email \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"MailInboxController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagMail),(0,swagger_1.ApiQuery)({name:"q",required:!1,type:"string"}),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],MailInboxController.prototype,"mailInbox",null),MailInboxController=tslib_1.__decorate([(0,common_1.Controller)("/mail-inbox"),tslib_1.__metadata("design:paramtypes",[mailbox_service_1.MailboxService])],MailInboxController),exports2.MailInboxController=MailInboxController},7450:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MailOutboxController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),mailbox_service_1=__webpack_require__2(53866);let MailOutboxController=__name(class{constructor(mailboxRepo){this.mailboxRepo=mailboxRepo}mailOutbox(req,res){var _this=this;return _asyncToGenerator(function*(){try{const user=res.locals.user,queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[mailboxs,count]=yield _this.mailboxRepo.findAndCount({where:[{subject:(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`),from:(0,typeorm_1.ILike)(`%${user.username}@${environment_1.environment.mailTrap.domain}%`)}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{date:"DESC"}},relations:["attachment_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const m of mailboxs)delete m.html,delete m.text,"attachment_"in m&&m.attachment_?m.attachment_count=m.attachment_.length:m.attachment_count=0,delete m.attachment_;return{info:"\u{1f60d} 200 - Mail Outbox API :: Outbox Email \u{1f970}",count,pages:Math.ceil(count/(queryRow||10)),results:mailboxs}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Mail Outbox API :: Gagal Mendapatkan Outbox Email \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"MailOutboxController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagMail),(0,swagger_1.ApiQuery)({name:"q",required:!1,type:"string"}),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],MailOutboxController.prototype,"mailOutbox",null),MailOutboxController=tslib_1.__decorate([(0,common_1.Controller)("/mail-outbox"),tslib_1.__metadata("design:paramtypes",[mailbox_service_1.MailboxService])],MailOutboxController),exports2.MailOutboxController=MailOutboxController},65104:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MailWebhookController=void 0;const tslib_1=__webpack_require__2(70655),node_fs_1=__webpack_require__2(35404),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),platform_express_1=__webpack_require__2(22776),schedule_1=__webpack_require__2(31143),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),filter_api_key_access_decorator_1=__webpack_require__2(18834),attachment_service_1=__webpack_require__2(37470),mailbox_service_1=__webpack_require__2(53866),user_service_1=__webpack_require__2(50675),gdrive_service_1=__webpack_require__2(48888),global_service_1=__webpack_require__2(40735),mail_service_1=__webpack_require__2(50899);let MailWebhookController=__name(class{constructor(sr,gdrive,gs,attachmentRepo,mailboxRepo,userRepo,ms){this.sr=sr,this.gdrive=gdrive,this.gs=gs,this.attachmentRepo=attachmentRepo,this.mailboxRepo=mailboxRepo,this.userRepo=userRepo,this.ms=ms}mailHook(req,res){var _this=this;return _asyncToGenerator(function*(){var _a,_b;try{if("From"in req.body){let addressTo=[];req.body.To&&(addressTo=req.body.To.split(",").map(v=>{let email=v.trim();return email.includes("<")&&email.includes(">")&&(email=email.split("<")[1].split(">")[0]),email}));let addressCc=[];req.body.Cc&&(addressCc=req.body.Cc.split(",").map(v=>{let email=v.trim();return email.includes("<")&&email.includes(">")&&(email=email.split("<")[1].split(">")[0]),email}));let addressBcc=[];req.body.Bcc&&(addressBcc=req.body.Bcc.split(",").map(v=>{let email=v.trim();return email.includes("<")&&email.includes(">")&&(email=email.split("<")[1].split(">")[0]),email}));const userTarget=[];for(const address of[...addressTo,...addressCc,...addressBcc])address.includes(`@${environment_1.environment.mailTrap.domain}`)&&userTarget.push(address.split("@")[0]);if(0===(yield _this.userRepo.find({where:[{username:(0,typeorm_1.In)(userTarget)}]})).length)throw new common_1.HttpException({info:"\u{1f644} 404 - Mail Webhook API :: Gagal Menyimpan Email \u{1f62a}",result:{message:"Tidak Ada Pengguna Yang Terdaftar!"}},common_1.HttpStatus.NOT_FOUND);let mailboxSave=null;for(;!mailboxSave;)try{const mailboxs=yield _this.mailboxRepo.find({where:[{mail:(0,typeorm_1.Equal)(req.body["Message-Id"])}]});if(0===mailboxs.length){let mailbox=_this.mailboxRepo.new();if(mailbox.mail=req.body["Message-Id"],mailbox.from=req.body.From,addressTo.length>0&&(mailbox.to=addressTo.join(", ")),addressCc.length>0&&(mailbox.cc=addressCc.join(", ")),addressBcc.length>0&&(mailbox.bcc=addressBcc.join(", ")),mailbox.subject=req.body.Subject,mailbox.html=req.body["body-html"],mailbox.text=req.body["body-plain"],mailbox.date=new Date(req.body.Date),mailboxSave=yield _this.mailboxRepo.insert(mailbox),(null===(_a=req.files)||void 0===_a?void 0:_a.length)>0){let attachments=[];for(const file2 of req.files){const fileExt=file2.originalname.split(".").pop().toLowerCase(),files=(0,node_fs_1.readdirSync)(`${environment_1.environment.uploadFolder}`,{withFileTypes:!0}),fIdx=files.findIndex(f2=>f2.name===file2.filename||f2.name===`${file2.filename}.${fileExt}`);if(fIdx>=0){const attachment=_this.attachmentRepo.new();attachment.pending=!0,attachment.name=file2.filename,attachment.ext=fileExt,attachment.size=file2.size,attachment.mime=file2.mimetype;const resAttachmentSave=yield _this.attachmentRepo.save(attachment);attachments.push(resAttachmentSave),environment_1.environment.production&&_this.gdrive.gDrive(!0).then(function(){var _ref=_asyncToGenerator(function*(gdrive){const dfile=yield gdrive.files.create({requestBody:{name:`${resAttachmentSave.name}.${resAttachmentSave.ext}`,parents:[environment_1.environment.gCloudPlatform.gDrive.folder_id],mimeType:resAttachmentSave.mime},media:{mimeType:resAttachmentSave.mime,body:(0,node_fs_1.createReadStream)(`${environment_1.environment.uploadFolder}/${files[fIdx].name}`)},fields:"id"},{signal:null});resAttachmentSave.google_drive=dfile.data.id,resAttachmentSave.pending=!1,yield _this.attachmentRepo.save(resAttachmentSave),_this.gs.deleteAttachment(files[fIdx].name)});return function(_x){return _ref.apply(this,arguments)}}()).catch(function(){var _ref2=_asyncToGenerator(function*(e){_this.gs.log("[GDRIVE-ERROR] \u{1f4bd}",e,"error"),resAttachmentSave.pending=!1,yield _this.attachmentRepo.save(resAttachmentSave)});return function(_x2){return _ref2.apply(this,arguments)}}())}}yield _this.mailboxRepo.update({mail:(0,typeorm_1.Equal)(req.body["Message-Id"])},{attachment_:attachments})}}else{if(mailboxSave=mailboxs[0],addressBcc.length>0){_this.ms.webhook[mailboxSave.mail]||(_this.ms.webhook[mailboxSave.mail]={}),_this.ms.webhook[mailboxSave.mail].bcc||(_this.ms.webhook[mailboxSave.mail].bcc=""),mailboxSave.bcc&&(_this.ms.webhook[mailboxSave.mail].bcc+=mailboxSave.bcc+", "),_this.ms.webhook[mailboxSave.mail].bcc+=addressBcc.join(", ");const bccUniq=[...new Set(_this.ms.webhook[mailboxSave.mail].bcc)];_this.ms.webhook[mailboxSave.mail].bcc=bccUniq,_this.ms.webhook[mailboxSave.mail].timeout&&_this.sr.deleteTimeout(mailboxSave.mail),_this.ms.webhook[mailboxSave.mail].timeout=!0,_this.sr.addTimeout(mailboxSave.mail,setTimeout(_asyncToGenerator(function*(){try{yield _this.mailboxRepo.update({mail:(0,typeorm_1.Equal)(req.body["Message-Id"])},{bcc:_this.ms.webhook[mailboxSave.mail].bcc}),delete _this.ms.webhook[mailboxSave.mail]}catch(err){_this.gs.log("[MAIL_WEBHOOK_TIMEOUT-ERROR] \u{1f4e7}",err,"error")}}),constants_1.CONSTANTS.timeoutMailWebhookTime))}if((null===(_b=req.files)||void 0===_b?void 0:_b.length)>0)for(const file2 of req.files){const fileExt=file2.originalname.split(".").pop().toLowerCase(),files=(0,node_fs_1.readdirSync)(`${environment_1.environment.uploadFolder}`,{withFileTypes:!0}),fIdx=files.findIndex(f2=>f2.name===file2.filename||f2.name===`${file2.filename}.${fileExt}`);fIdx>=0&&_this.gs.deleteAttachment(files[fIdx].name)}}}catch(e){_this.gs.log("[MAIL_WEBHOOK_INSERT-ERROR] \u{1f4e7}",e,"error")}return{info:"\u{1f60d} 201 - Mail Webhook API :: Receive New Email \u{1f970}",header:req.headers,body:req.body,result:mailboxSave}}throw"Data Tidak Lengkap!"}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Mail Webhook API :: Gagal Mencatat Email \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"MailWebhookController");tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,common_1.UseInterceptors)((0,platform_express_1.AnyFilesInterceptor)({dest:environment_1.environment.uploadFolder,limits:{fileSize:constants_1.CONSTANTS.fileSizeAttachmentChunkCloudflareLimit}})),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],MailWebhookController.prototype,"mailHook",null),MailWebhookController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/mail-webhook"),tslib_1.__metadata("design:paramtypes",[schedule_1.SchedulerRegistry,gdrive_service_1.GdriveService,global_service_1.GlobalService,attachment_service_1.AttachmentService,mailbox_service_1.MailboxService,user_service_1.UserService,mail_service_1.MailService])],MailWebhookController),exports2.MailWebhookController=MailWebhookController},33989:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MailController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),throttler_1=__webpack_require__2(44962),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),mailbox_service_1=__webpack_require__2(53866),global_service_1=__webpack_require__2(40735),mail_service_1=__webpack_require__2(50899),constants_1=__webpack_require__2(26271);let MailController=__name(class{constructor(gs,ms,mailboxRepo){this.gs=gs,this.ms=ms,this.mailboxRepo=mailboxRepo}mailInbox(req,res){var _this=this;return _asyncToGenerator(function*(){try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[mailboxs,count]=yield _this.mailboxRepo.findAndCount({where:[{from:(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`)},{to:(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`)},{subject:(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`)}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{date:"DESC"}},relations:["attachment_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const m of mailboxs)delete m.html,delete m.text,"attachment_"in m&&m.attachment_?m.attachment_count=m.attachment_.length:m.attachment_count=0,delete m.attachment_;return{info:"\u{1f60d} 200 - Mail API :: All Email \u{1f970}",count,pages:Math.ceil(count/(queryRow||10)),results:mailboxs}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Mail API :: Gagal Mendapatkan All Email \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}sendNewMail(req,res){var _this2=this;return _asyncToGenerator(function*(){try{if("to"in req.body&&Array.isArray(req.body.to)&&req.body.to.length>0&&"subject"in req.body&&"message"in req.body){const user=res.locals.user,mailbox=_this2.mailboxRepo.new();if(mailbox.from=`${user.kartu_tanda_penduduk_.nama} <${user.username}@${environment_1.environment.mailTrap.domain}>`,mailbox.to=[...new Set(req.body.to)].join(", "),!mailbox.to.match(constants_1.CONSTANTS.regexEmailMulti))throw new Error("Alamat Tidak Valid!");mailbox.subject=req.body.subject,mailbox.html=req.body.message,mailbox.text=_this2.gs.htmlToText(req.body.message);const mailBody={from:{name:user.kartu_tanda_penduduk_.nama,email:`${user.username}@${environment_1.environment.mailTrap.domain}`},to:[...new Set(req.body.to)].map(to=>{if(!to.match(constants_1.CONSTANTS.regexEmail))throw new Error("Alamat Tidak Valid!");return{email:to}}),category:"User Mail",subject:mailbox.subject,html:mailbox.html,text:mailbox.text};if("cc"in req.body&&req.body.cc&&Array.isArray(req.body.cc)&&req.body.cc.length>0){const ccs=[...new Set(req.body.cc)];mailbox.cc=ccs.join(", "),mailBody.cc=ccs.map(cc=>{if(!cc.match(constants_1.CONSTANTS.regexEmail))throw new Error("Alamat Tidak Valid!");return{email:cc}})}if("bcc"in req.body&&req.body.bcc&&Array.isArray(req.body.bcc)&&req.body.bcc.length>0){const bccs=[...new Set(req.body.bcc)];mailbox.bcc=bccs.join(", "),mailBody.bcc=bccs.map(bcc=>{if(!bcc.match(constants_1.CONSTANTS.regexEmail))throw new Error("Alamat Tidak Valid!");return{email:bcc}})}if("no_reply"in req.body&&!0===req.body.no_reply&&(user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR)){const sndr=mailBody.from.email;mailbox.bcc||(mailbox.bcc=""),mailbox.bcc.includes(sndr)||(""!==mailbox.bcc&&(mailbox.bcc+=", "),mailbox.bcc+=sndr),mailBody.bcc||(mailBody.bcc=[]),mailBody.bcc.find(e=>e.email===sndr)||mailBody.bcc.push({email:sndr}),mailbox.from=`${environment_1.environment.mailTrap.fullName} <${environment_1.environment.mailTrap.clientOptions.username}@${environment_1.environment.mailTrap.domain}>`,mailBody.from={name:environment_1.environment.mailTrap.fullName,email:`${environment_1.environment.mailTrap.clientOptions.username}@${environment_1.environment.mailTrap.domain}`};const sbjct=`${environment_1.environment.siteName} | Informasi`;mailbox.subject=sbjct,mailBody.subject=sbjct,mailBody.category="Informasi"}if(`${mailbox.to} ${mailbox.cc} ${mailbox.bcc}`.includes(mailBody.from.email))throw new common_1.HttpException({info:"\u{1f644} 400 - Mail API :: Gagal Mengirim Email \u{1f62a}",result:{message:"Tidak Boleh Mengirim Email Ke Diri Sendiri!"}},common_1.HttpStatus.BAD_REQUEST);const mailSend=yield _this2.ms.mailTrapSend(mailBody);if(mailSend){mailbox.mail=mailSend.message_ids[0],mailbox.date=new Date;const mailboxSave=yield _this2.mailboxRepo.save(mailbox);if("attachment_"in mailboxSave&&mailboxSave.attachment_)for(const a of mailboxSave.attachment_)delete a.created_at,delete a.updated_at;return{info:"\u{1f642} 201 - Mail API :: Email Terkirim! \u{1f970}",result:mailboxSave}}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Mail API :: Gagal Mengirim Email \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getById(req,res){var _this3=this;return _asyncToGenerator(function*(){var _a,_b,_c;try{const user=res.locals.user,mailbox=yield _this3.mailboxRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.params.id)}],relations:["attachment_"]});if(!(mailbox.from.includes(`${user.username}@${environment_1.environment.mailTrap.domain}`)||mailbox.to.includes(`${user.username}@${environment_1.environment.mailTrap.domain}`)||(null===(_a=mailbox.cc)||void 0===_a?void 0:_a.includes(`${user.username}@${environment_1.environment.mailTrap.domain}`))||(null===(_b=mailbox.bcc)||void 0===_b?void 0:_b.includes(`${user.username}@${environment_1.environment.mailTrap.domain}`))||user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR))throw new common_1.HttpException({info:"\u{1f644} 400 - Mail API :: Gagal Mendapatkan Email \u{1f62a}",result:{message:"Email Milik Orang Lain!"}},common_1.HttpStatus.FORBIDDEN);if(user.role!==req_res_model_1.RoleModel.ADMIN&&user.role!==req_res_model_1.RoleModel.MODERATOR&&(null===(_c=mailbox.bcc)||void 0===_c?void 0:_c.includes(`${user.username}@${environment_1.environment.mailTrap.domain}`))&&(mailbox.bcc=`${user.username}@${environment_1.environment.mailTrap.domain}`),"attachment_"in mailbox&&mailbox.attachment_)for(const a of mailbox.attachment_)delete a.created_at,delete a.updated_at;return{info:`\u{1f605} 200 - Mail API :: Detail ${req.params.id} \u{1f923}`,result:mailbox}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Mail API :: Gagal Mencari Email ${req.params.id} \u{1f62a}`,result:{message:"Email Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"MailController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],MailController.prototype,"mailInbox",null),tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagMail),(0,swagger_1.ApiBody)({schema:{properties:{to:{type:"array",items:{type:"string"}},cc:{type:"array",items:{type:"string"}},bcc:{type:"array",items:{type:"string"}},subject:{type:"string"},message:{type:"string"}},required:["to","subject","message"]}}),(0,throttler_1.Throttle)(25,3600),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],MailController.prototype,"sendNewMail",null),tslib_1.__decorate([(0,common_1.Get)("/:id"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagMail),(0,swagger_1.ApiParam)({name:"id",type:"string"}),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],MailController.prototype,"getById",null),MailController=tslib_1.__decorate([(0,common_1.Controller)("/mail"),tslib_1.__metadata("design:paramtypes",[global_service_1.GlobalService,mail_service_1.MailService,mailbox_service_1.MailboxService])],MailController),exports2.MailController=MailController},64554:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NewsController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),news_service_1=__webpack_require__2(48519),discord_service_1=__webpack_require__2(92453),socket_io_service_1=__webpack_require__2(98095);let NewsController=__name(class{constructor(ds,newsRepo,sis){this.ds=ds,this.newsRepo=newsRepo,this.sis=sis}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[news,count]=yield _this.newsRepo.findAndCount({where:[{title:(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`)}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",title:"ASC"}},relations:["user_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const n of news)delete n.content,n.tags=JSON.parse(n.tags),"user_"in n&&n.user_&&(delete n.user_.created_at,delete n.user_.updated_at);return{info:"\u{1f605} 200 - News API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:news}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - News API :: Gagal Mendapatkan All News \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}addNew(req,res){var _this2=this;return _asyncToGenerator(function*(){try{if("title"in req.body&&"content"in req.body){const user=res.locals.user,news=_this2.newsRepo.new();if(news.title=req.body.title,news.content=req.body.content,"image"in req.body&&(news.image_url=req.body.image),"tags"in req.body&&Array.isArray(req.body.tags)&&req.body.tags.length>0){const filteredTagsUnique=[...new Set(req.body.tags)];news.tags=JSON.stringify(filteredTagsUnique)}news.user_=user;const resNewsSave=yield _this2.newsRepo.save(news);return"user_"in resNewsSave&&resNewsSave.user_&&(delete resNewsSave.user_.created_at,delete resNewsSave.user_.updated_at),_this2.ds.sendNews(_this2.ds.createEmbedMessage("#0099ff",resNewsSave.title,`${environment_1.environment.baseUrl}/news/${resNewsSave.id}`,{name:`${environment_1.environment.siteName} - Penambahan Berita Baru`,iconURL:`${environment_1.environment.baseUrl}/assets/img/favicon.png`,url:environment_1.environment.baseUrl},resNewsSave.content,resNewsSave.image_url,resNewsSave.updated_at,{text:resNewsSave.user_.username,iconURL:resNewsSave.user_.image_url})),_this2.sis.emitToBroadcast("new-news",resNewsSave),{info:"\u{1f605} 201 - News API :: Tambah Baru \u{1f923}",result:resNewsSave}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - News API :: Gagal Menambah News Baru \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getById(req,res){var _this3=this;return _asyncToGenerator(function*(){try{const news=yield _this3.newsRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}],relations:["user_"]});return news.tags=JSON.parse(news.tags),"user_"in news&&news.user_&&(delete news.user_.created_at,delete news.user_.updated_at),{info:`\u{1f605} 200 - News API :: Detail ${req.params.id} \u{1f923}`,result:news}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - News API :: Gagal Mencari News ${req.params.id} \u{1f62a}`,result:{message:"News Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}updateById(req,res){var _this4=this;return _asyncToGenerator(function*(){try{if("title"in req.body||"content"in req.body||"image"in req.body||"tags"in req.body&&Array.isArray(req.body.tags)&&req.body.tags.length>0){const user=res.locals.user,news=yield _this4.newsRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}],relations:["user_"]});if(user.id===news.user_.id){if("title"in req.body&&(news.title=req.body.title),"content"in req.body&&(news.content=req.body.content),"image"in req.body&&(news.image_url=req.body.image),"tags"in req.body&&Array.isArray(req.body.tags)&&req.body.tags.length>0){const filteredTagsUnique=[...new Set(req.body.tags)];news.tags=JSON.stringify(filteredTagsUnique)}const resNewsSave=yield _this4.newsRepo.save(news);return"user_"in resNewsSave&&resNewsSave.user_&&(delete resNewsSave.user_.created_at,delete resNewsSave.user_.updated_at),_this4.ds.sendNews(_this4.ds.createEmbedMessage("#ff4081",resNewsSave.title,`${environment_1.environment.baseUrl}/news/${resNewsSave.id}`,{name:`${environment_1.environment.siteName} - Pembaharuan Data Berita`,iconURL:`${environment_1.environment.baseUrl}/assets/img/favicon.png`,url:environment_1.environment.baseUrl},resNewsSave.content,resNewsSave.image_url,resNewsSave.updated_at,{text:resNewsSave.user_.username,iconURL:resNewsSave.user_.image_url})),{info:`\u{1f605} 201 - News API :: Ubah ${req.params.id} \u{1f923}`,result:resNewsSave}}throw new common_1.HttpException({info:"\u{1f644} 403 - News API :: Authorisasi Kepemilikan Gagal \u{1f62a}",result:{message:"Berita Milik Orang Lain!"}},common_1.HttpStatus.FORBIDDEN)}throw new common_1.HttpException({info:`\u{1f644} 400 - News API :: Gagal Mengubah News ${req.params.id} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - News API :: Gagal Mencari News ${req.params.id} \u{1f62a}`,result:{message:"News Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}deleteById(req,res){var _this5=this;return _asyncToGenerator(function*(){try{const news=yield _this5.newsRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}]}),deletedNews=yield _this5.newsRepo.remove(news);return"user_"in deletedNews&&deletedNews.user_&&(delete deletedNews.user_.created_at,delete deletedNews.user_.updated_at),{info:`\u{1f605} 202 - News API :: Berhasil Menghapus News ${req.params.id} \u{1f923}`,result:deletedNews}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - News API :: Gagal Mencari News ${req.params.id} \u{1f62a}`,result:{message:"News Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"NewsController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagNews),(0,swagger_1.ApiQuery)({name:"q",required:!1,type:"string"}),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NewsController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NewsController.prototype,"addNew",null),tslib_1.__decorate([(0,common_1.Get)("/:id"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagNews),(0,swagger_1.ApiParam)({name:"id",type:"number"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NewsController.prototype,"getById",null),tslib_1.__decorate([(0,common_1.Put)("/:id"),(0,common_1.HttpCode)(201),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NewsController.prototype,"updateById",null),tslib_1.__decorate([(0,common_1.Delete)("/:id"),(0,common_1.HttpCode)(202),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NewsController.prototype,"deleteById",null),NewsController=tslib_1.__decorate([(0,common_1.Controller)("/news"),tslib_1.__metadata("design:paramtypes",[discord_service_1.DiscordService,news_service_1.NewsService,socket_io_service_1.SocketIoService])],NewsController),exports2.NewsController=NewsController},61401:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NihongoEdictController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),edict_service_1=__webpack_require__2(46662);let NihongoEdictController=__name(class{constructor(edictRepo){this.edictRepo=edictRepo}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[edicts,count]=yield _this.edictRepo.findAndCount({where:[{kanji:(0,typeorm_1.Raw)(column=>"\n (kanji ILIKE :query OR reading ILIKE :query OR meaning ILIKE :query)\n AND jlpt::varchar(255) ILIKE :jlpt\n ",{query:`%${req.query.q?req.query.q:""}%`,jlpt:`%${req.query.jlpt?req.query.jlpt:""}%`})}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",id:"ASC"}},skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});return{info:"\u{1f605} 200 - Edict API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:edicts}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Edict API :: Gagal Mendapatkan All Edicts \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getById(req,res){var _this2=this;return _asyncToGenerator(function*(){try{const edict=yield _this2.edictRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}]});return{info:`\u{1f605} 200 - Edict API :: Detail ${req.params.id} \u{1f923}`,result:edict}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Edict API :: Gagal Mencari Edict ${req.params.id} \u{1f62a}`,result:{message:"Edict Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"NihongoEdictController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagNihongo),(0,swagger_1.ApiQuery)({name:"q",required:!1,type:"string"}),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoEdictController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Get)("/:id"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagNihongo),(0,swagger_1.ApiParam)({name:"id",type:"number"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoEdictController.prototype,"getById",null),NihongoEdictController=tslib_1.__decorate([(0,common_1.Controller)("/nihongo-edict"),tslib_1.__metadata("design:paramtypes",[edict_service_1.EdictService])],NihongoEdictController),exports2.NihongoEdictController=NihongoEdictController},40870:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NihongoHirakataAllController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),filter_api_key_access_decorator_1=__webpack_require__2(18834),hirakata_service_1=__webpack_require__2(77650);let NihongoHirakataAllController=__name(class{constructor(hirakataRepo){this.hirakataRepo=hirakataRepo}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){try{const[hirakatas,count]=yield _this.hirakataRepo.findAndCount({order:{segment:"ASC",category:"ASC",romaji:"ASC"}});return{info:"\u{1f605} 200 - Hirakata API :: List All \u{1f923}",count,pages:1,results:hirakatas}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Hirakata API :: Gagal Mendapatkan All Hirakata \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"NihongoHirakataAllController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoHirakataAllController.prototype,"getAll",null),NihongoHirakataAllController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/nihongo-hirakata-all"),tslib_1.__metadata("design:paramtypes",[hirakata_service_1.HirakataService])],NihongoHirakataAllController),exports2.NihongoHirakataAllController=NihongoHirakataAllController},36981:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NihongoHirakataController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),hirakata_service_1=__webpack_require__2(77650);let NihongoHirakataController=__name(class{constructor(hirakataRepo){this.hirakataRepo=hirakataRepo}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){const searchQuery=req.query.q||"";try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[hirakatas,count]=yield _this.hirakataRepo.findAndCount({where:[{romaji:(0,typeorm_1.ILike)(`%${searchQuery}%`)},{katakana:(0,typeorm_1.ILike)(`%${searchQuery}%`)},{hiragana:(0,typeorm_1.ILike)(`%${searchQuery}%`)}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{segment:"ASC",category:"ASC",romaji:"ASC"}},skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});return{info:"\u{1f605} 200 - Hirakata API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:hirakatas}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Hirakata API :: Gagal Mendapatkan All Hirakatas \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getById(req,res){var _this2=this;return _asyncToGenerator(function*(){try{const hirakata=yield _this2.hirakataRepo.findOneOrFail({where:[{romaji:(0,typeorm_1.ILike)(req.params.romaji)}]});return{info:`\u{1f605} 200 - Hirakata API :: Detail ${req.params.romaji} \u{1f923}`,result:hirakata}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Hirakata API :: Gagal Mencari Hirakata ${req.params.romaji} \u{1f62a}`,result:{message:"Hirakata Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"NihongoHirakataController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagNihongo),(0,swagger_1.ApiQuery)({name:"q",required:!1,type:"string"}),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoHirakataController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Get)("/:romaji"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagNihongo),(0,swagger_1.ApiParam)({name:"romaji",type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoHirakataController.prototype,"getById",null),NihongoHirakataController=tslib_1.__decorate([(0,common_1.Controller)("/nihongo-hirakata"),tslib_1.__metadata("design:paramtypes",[hirakata_service_1.HirakataService])],NihongoHirakataController),exports2.NihongoHirakataController=NihongoHirakataController},26744:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NihongoKanjiController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),kanji_service_1=__webpack_require__2(77495);let NihongoKanjiController=__name(class{constructor(kanjiRepo){this.kanjiRepo=kanjiRepo}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[kanjis,count]=yield _this.kanjiRepo.findAndCount({where:[{character:(0,typeorm_1.Raw)(column=>"\n (character ILIKE :query OR v_onyomi ILIKE :query OR v_kunyomi ILIKE :query OR translate ILIKE :query)\n AND jlpt::varchar(255) ILIKE :jlpt AND school::varchar(255) ILIKE :school\n ",{query:`%${req.query.q?req.query.q:""}%`,jlpt:`%${req.query.jlpt?req.query.jlpt:""}%`,school:`%${req.query.school?req.query.school:""}%`})}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",character:"ASC"}},skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});return{info:"\u{1f605} 200 - Kanji API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:kanjis}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Kanji API :: Gagal Mendapatkan All Kanjis \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getById(req,res){var _this2=this;return _asyncToGenerator(function*(){try{const kanji=yield _this2.kanjiRepo.findOneOrFail({where:[{character:(0,typeorm_1.ILike)(req.params.character)}]});return{info:`\u{1f605} 200 - Kanji API :: Detail ${req.params.character} \u{1f923}`,result:kanji}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Kanji API :: Gagal Mencari Kanji ${req.params.character} \u{1f62a}`,result:{message:"Kanji Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"NihongoKanjiController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagNihongo),(0,swagger_1.ApiQuery)({name:"q",required:!1,type:"string"}),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoKanjiController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Get)("/:character"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagNihongo),(0,swagger_1.ApiParam)({name:"character",type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoKanjiController.prototype,"getById",null),NihongoKanjiController=tslib_1.__decorate([(0,common_1.Controller)("/nihongo-kanji"),tslib_1.__metadata("design:paramtypes",[kanji_service_1.KanjiService])],NihongoKanjiController),exports2.NihongoKanjiController=NihongoKanjiController},82845:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NihongoKanjivgController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),kanjivg_service_1=__webpack_require__2(35412);let NihongoKanjivgController=__name(class{constructor(kanjivgRepo){this.kanjivgRepo=kanjivgRepo}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){const searchQuery=req.query.q||"";try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[kanjivgs,count]=yield _this.kanjivgRepo.findAndCount({where:[{kanji:(0,typeorm_1.ILike)(`%${searchQuery}%`)},{level:(0,typeorm_1.ILike)(`%${searchQuery}%`)}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",id:"ASC"}},skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});return{info:"\u{1f605} 200 - Kanjivg API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:kanjivgs}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Kanjivg API :: Gagal Mendapatkan All Kanjivgs \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getById(req,res){var _this2=this;return _asyncToGenerator(function*(){try{const kanjivg=yield _this2.kanjivgRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}]});return{info:`\u{1f605} 200 - Kanjivg API :: Detail ${req.params.id} \u{1f923}`,result:kanjivg}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Kanjivg API :: Gagal Mencari Kanjivg ${req.params.id} \u{1f62a}`,result:{message:"Kanjivg Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"NihongoKanjivgController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagNihongo),(0,swagger_1.ApiQuery)({name:"q",required:!1,type:"string"}),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoKanjivgController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Get)("/:id"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagNihongo),(0,swagger_1.ApiParam)({name:"id",type:"number"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoKanjivgController.prototype,"getById",null),NihongoKanjivgController=tslib_1.__decorate([(0,common_1.Controller)("/nihongo-kanjivg"),tslib_1.__metadata("design:paramtypes",[kanjivg_service_1.KanjivgService])],NihongoKanjivgController),exports2.NihongoKanjivgController=NihongoKanjivgController},22349:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NihongoTatoebaController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),tatoeba_service_1=__webpack_require__2(86069);let NihongoTatoebaController=__name(class{constructor(tatoebaRepo){this.tatoebaRepo=tatoebaRepo}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){const searchQuery=req.query.q||"";try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[tatoebas,count]=yield _this.tatoebaRepo.findAndCount({where:[{phrase:(0,typeorm_1.ILike)(`%${searchQuery}%`)},{kanji:(0,typeorm_1.ILike)(`%${searchQuery}%`)},{translate:(0,typeorm_1.ILike)(`%${searchQuery}%`)}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",id:"ASC"}},skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});return{info:"\u{1f605} 200 - Tatoeba API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:tatoebas}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Tatoeba API :: Gagal Mendapatkan All Tatoebas \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getById(req,res){var _this2=this;return _asyncToGenerator(function*(){try{const tatoeba=yield _this2.tatoebaRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}]});return{info:`\u{1f605} 200 - Tatoeba API :: Detail ${req.params.id} \u{1f923}`,result:tatoeba}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Tatoeba API :: Gagal Mencari Tatoeba ${req.params.id} \u{1f62a}`,result:{message:"Tatoeba Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"NihongoTatoebaController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagNihongo),(0,swagger_1.ApiQuery)({name:"q",required:!1,type:"string"}),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoTatoebaController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Get)("/:id"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagNihongo),(0,swagger_1.ApiParam)({name:"id",type:"number"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoTatoebaController.prototype,"getById",null),NihongoTatoebaController=tslib_1.__decorate([(0,common_1.Controller)("/nihongo-tatoeba"),tslib_1.__metadata("design:paramtypes",[tatoeba_service_1.TatoebaService])],NihongoTatoebaController),exports2.NihongoTatoebaController=NihongoTatoebaController},57820:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NihongoController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),nihongo_service_1=__webpack_require__2(31242);let NihongoController=__name(class{constructor(nihongoRepo){this.nihongoRepo=nihongoRepo}getCategories(req,res){var _this=this;return _asyncToGenerator(function*(){try{const categories=yield _this.nihongoRepo.query("\n SELECT\n category AS id,\n INITCAP(category) AS name,\n count(category) AS jumlah\n FROM\n nihongo\n GROUP BY\n category\n ORDER BY\n id ASC\n ");return{info:`\u{1f605} 200 - Nihongo Kana API :: List Kategori '${req.query.category?req.query.category:""}' \u{1f923}`,count:categories.length,pages:1,results:categories}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Nihongo Kana API :: Gagal Mendapatkan Kategori \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getAll(req,res){var _this2=this;return _asyncToGenerator(function*(){const searchQuery=req.query.q||"",searchCategory=req.query.category||"";try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[kanas,count]=yield _this2.nihongoRepo.findAndCount({where:[{romaji:(0,typeorm_1.ILike)(`%${searchQuery}%`),category:(0,typeorm_1.ILike)(`%${searchCategory}%`)},{kana:(0,typeorm_1.ILike)(`%${searchQuery}%`),category:(0,typeorm_1.ILike)(`%${searchCategory}%`)},{meaning:(0,typeorm_1.ILike)(`%${searchQuery}%`),category:(0,typeorm_1.ILike)(`%${searchCategory}%`)}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",romaji:"ASC"}},relations:["user_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const k of kanas)"user_"in k&&k.user_&&(delete k.user_.created_at,delete k.user_.updated_at);return{info:`\u{1f605} 200 - Nihongo Kana API :: List All '${req.query.category?req.query.category:""}' \u{1f923}`,count,pages:Math.ceil(count/(queryRow||10)),results:kanas}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Nihongo Kana API :: Gagal Mendapatkan All Kanas \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}addNew(req,res){var _this3=this;return _asyncToGenerator(function*(){try{if("romaji"in req.body&&"kana"in req.body&&"meaning"in req.body&&"category"in req.body&&"image"in req.body){const user=res.locals.user,kana=_this3.nihongoRepo.new();kana.romaji=req.body.romaji,kana.kana=req.body.kana,kana.meaning=req.body.meaning,kana.category=req.body.category.toLowerCase(),kana.image_url=req.body.image,"audio"in req.body&&(kana.audio=req.body.audio),kana.user_=user;const resKanaSave=yield _this3.nihongoRepo.save(kana);return"user_"in resKanaSave&&resKanaSave.user_&&(delete resKanaSave.user_.created_at,delete resKanaSave.user_.updated_at),{info:"\u{1f605} 201 - Nihongo Kana API :: Tambah Baru \u{1f923}",result:resKanaSave}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Nihongo Kana API :: Gagal Menambah Kana Baru \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getById(req,res){var _this4=this;return _asyncToGenerator(function*(){try{const kana=yield _this4.nihongoRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}],relations:["user_"]});return"user_"in kana&&kana.user_&&(delete kana.user_.created_at,delete kana.user_.updated_at),{info:`\u{1f605} 200 - Nihongo Kana API :: Detail ${req.params.id} \u{1f923}`,result:kana}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Nihongo Kana API :: Gagal Mencari Nihongo Kana ${req.params.id} \u{1f62a}`,result:{message:"Nihongo Kana Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}updateById(req,res){var _this5=this;return _asyncToGenerator(function*(){try{if("romaji"in req.body||"kana"in req.body||"meaning"in req.body||"category"in req.body||"image"in req.body){const user=res.locals.user,kana=yield _this5.nihongoRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}],relations:["user_"]});"romaji"in req.body&&(kana.romaji=req.body.romaji),"kana"in req.body&&(kana.kana=req.body.kana),"meaning"in req.body&&(kana.meaning=req.body.meaning),"category"in req.body&&(kana.category=req.body.category),"image"in req.body&&(kana.image_url=req.body.image),"audio"in req.body&&(kana.audio=req.body.audio),kana.user_=user;const resKanaSave=yield _this5.nihongoRepo.save(kana);return"user_"in resKanaSave&&resKanaSave.user_&&(delete resKanaSave.user_.created_at,delete resKanaSave.user_.updated_at),{info:`\u{1f605} 201 - Nihongo Kana API :: Ubah ${req.params.id} \u{1f923}`,result:resKanaSave}}throw new common_1.HttpException({info:`\u{1f644} 400 - Nihongo Kana API :: Gagal Mengubah Kana ${req.params.id} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Nihongo Kana API :: Gagal Mencari Nihongo Kana ${req.params.id} \u{1f62a}`,result:{message:"Nihongo Kana Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}deleteById(req,res){var _this6=this;return _asyncToGenerator(function*(){try{const kana=yield _this6.nihongoRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}]}),deletedKana=yield _this6.nihongoRepo.remove(kana);return"user_"in deletedKana&&deletedKana.user_&&(delete deletedKana.user_.created_at,delete deletedKana.user_.updated_at),{info:`\u{1f605} 202 - Nihongo Kana API :: Berhasil Menghapus Kana ${req.params.id} \u{1f923}`,result:deletedKana}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Nihongo Kana API :: Gagal Mencari Nihongo Kana ${req.params.id} \u{1f62a}`,result:{message:"Nihongo Kana Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"NihongoController");tslib_1.__decorate([(0,common_1.Patch)("/"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoController.prototype,"getCategories",null),tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoController.prototype,"addNew",null),tslib_1.__decorate([(0,common_1.Get)("/:id"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoController.prototype,"getById",null),tslib_1.__decorate([(0,common_1.Put)("/:id"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoController.prototype,"updateById",null),tslib_1.__decorate([(0,common_1.Delete)("/:id"),(0,common_1.HttpCode)(202),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NihongoController.prototype,"deleteById",null),NihongoController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/nihongo"),tslib_1.__metadata("design:paramtypes",[nihongo_service_1.NihongoService])],NihongoController),exports2.NihongoController=NihongoController},64023:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NotificationController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),notification_service_1=__webpack_require__2(97233),socket_io_service_1=__webpack_require__2(98095);let NotificationController=__name(class{constructor(notificationRepo,sis){this.notificationRepo=notificationRepo,this.sis=sis}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){const searchQuery=req.query.q||"";try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),[notifications,count]=yield _this.notificationRepo.findAndCount({where:[{title:(0,typeorm_1.ILike)(`%${searchQuery}%`)},{content:(0,typeorm_1.ILike)(`%${searchQuery}%`)}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",title:"ASC"}},relations:["user_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const n of notifications)"user_"in n&&n.user_&&(delete n.user_.created_at,delete n.user_.updated_at);return{info:"\u{1f605} 200 - Notification API :: List All \u{1f923}",count,pages:Math.ceil(count/(queryRow||10)),results:notifications}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Notification API :: Gagal Mendapatkan All Notifikasi \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}addNew(req,res){var _this2=this;return _asyncToGenerator(function*(){try{if("type"in req.body&&"title"in req.body&&"content"in req.body&&"dismissible"in req.body){const user=res.locals.user;let notifTemplate={id:(new Date).getTime(),type:req.body.type,title:req.body.title,content:req.body.content,dismissible:!0===req.body.dismissible,user_:{username:user.username}};if("deadline"in req.body){const notif=_this2.notificationRepo.new();notif.type=notifTemplate.type,notif.title=notifTemplate.title,notif.content=notifTemplate.content,notif.dismissible=notifTemplate.dismissible,notif.deadline=req.body.deadline,notif.user_=user,notifTemplate=yield _this2.notificationRepo.save(notif)}return _this2.sis.emitToBroadcast("new-notification",{notifCreator:notifTemplate.user_.username,notifData:{id:notifTemplate.id,type:notifTemplate.type,title:notifTemplate.title,content:notifTemplate.content,dismissible:notifTemplate.dismissible}}),{info:"\u{1f61a} 201 - Notification API :: Berhasil Membuat Notifikasi \u{1f929}",result:{message:"Notifikasi Telah Dikirim!"}}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Notification API :: Gagal Membuat Notifikasi \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}deleteById(req,res){var _this3=this;return _asyncToGenerator(function*(){try{const notification=yield _this3.notificationRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}],relations:["user_"]}),deletedNotification=yield _this3.notificationRepo.remove(notification);return"user_"in deletedNotification&&deletedNotification.user_&&(delete deletedNotification.user_.created_at,delete deletedNotification.user_.updated_at),{info:`\u{1f605} 202 - Notification API :: Berhasil Hapus Notifikasi ${req.params.id} \u{1f923}`,result:deletedNotification}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Notification API :: Gagal Mencari Notifikasi ${req.params.id} \u{1f62a}`,result:{message:"Notifikasi Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"NotificationController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NotificationController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NotificationController.prototype,"addNew",null),tslib_1.__decorate([(0,common_1.Delete)("/:id"),(0,common_1.HttpCode)(202),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],NotificationController.prototype,"deleteById",null),NotificationController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/notification"),tslib_1.__metadata("design:paramtypes",[notification_service_1.NotificationService,socket_io_service_1.SocketIoService])],NotificationController),exports2.NotificationController=NotificationController},61029:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ProjectTypeController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),berkas_service_1=__webpack_require__2(17319),project_type_service_1=__webpack_require__2(60264);let ProjectTypeController=__name(class{constructor(berkasRepo,projectTypeRepo){this.berkasRepo=berkasRepo,this.projectTypeRepo=projectTypeRepo}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){const projects=yield _this.projectTypeRepo.query('\n SELECT\n SUM(total_berkas) total_berkas,\n x.id,\n x.name,\n x.description,\n x.image_url,\n x.created_at,\n x.updated_at\n FROM\n (\n SELECT\n 0 total_berkas,\n p.*\n FROM\n project_types p\n UNION\n SELECT\n COUNT(b.id) total_berkas,\n p.*\n FROM\n berkas b,\n project_types p\n WHERE\n b."projectType_id" = p.id\n GROUP BY\n p.id\n ) x\n GROUP BY\n x.id,\n x.name,\n x.description,\n x.image_url,\n x.created_at,\n x.updated_at\n ORDER BY\n x.name ASC\n ');return{info:"\u{1f605} 200 - Project API :: List All \u{1f923}",count:projects.length,pages:1,results:projects}})()}addNew(req,res){var _this2=this;return _asyncToGenerator(function*(){try{if("name"in req.body){const project=_this2.projectTypeRepo.new();project.name=req.body.name,"image"in req.body&&(project.image_url=req.body.image),"description"in req.body&&(project.description=req.body.description);return{info:"\u{1f605} 201 - Project API :: Tambah Baru \u{1f923}",result:yield _this2.projectTypeRepo.save(project)}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Project API :: Gagal Menambah Jenis Project Baru \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getById(req,res){var _this3=this;return _asyncToGenerator(function*(){try{const projectType=yield _this3.projectTypeRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}]}),berkasCount=yield _this3.berkasRepo.count({where:[{project_type_:(0,typeorm_1.Equal)(projectType.id)}]});return{info:`\u{1f605} 200 - Project API :: Detail ${req.params.id} \u{1f923}`,result:{...projectType,total_berkas:berkasCount}}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Project API :: Gagal Mencari Jenis Project ${req.params.id} \u{1f62a}`,result:{message:"Jenis Project Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}updateById(req,res){var _this4=this;return _asyncToGenerator(function*(){try{if("name"in req.body||"description"in req.body||"image"in req.body){const projectType=yield _this4.projectTypeRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}]});"name"in req.body&&(projectType.name=req.body.neam),"description"in req.body&&(projectType.description=req.body.description),"image"in req.body&&(projectType.image_url=req.body.image);const resProjectTypeSave=yield _this4.projectTypeRepo.save(projectType);return{info:`\u{1f605} 201 - Project API :: Ubah ${req.params.id} \u{1f923}`,result:resProjectTypeSave}}throw new common_1.HttpException({info:`\u{1f644} 400 - Fansub API :: Gagal Mengubah Jenis Project ${req.params.id} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Project API :: Gagal Mencari Jenis Project ${req.params.id} \u{1f62a}`,result:{message:"Jenis Project Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}deleteById(req,res){var _this5=this;return _asyncToGenerator(function*(){try{const projectType=yield _this5.projectTypeRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(req.params.id))}]});if(0===(yield _this5.berkasRepo.count({where:[{project_type_:(0,typeorm_1.Equal)(projectType.id)}]}))){const deletedProject=yield _this5.projectTypeRepo.remove(projectType);return{info:`\u{1f605} 202 - Project API :: Berhasil Menghapus Project ${req.params.id} \u{1f923}`,result:deletedProject}}throw new common_1.HttpException({info:`\u{1f644} 403 - Project API :: Gagal Menghapus Project ${req.params.id} \u{1f62a}`,result:{message:"Ada Berkas Yang Terkait Dengan Kategori Ini!"}},common_1.HttpStatus.FORBIDDEN)}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Project API :: Gagal Mencari Jenis Project ${req.params.id} \u{1f62a}`,result:{message:"Jenis Project Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"ProjectTypeController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],ProjectTypeController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],ProjectTypeController.prototype,"addNew",null),tslib_1.__decorate([(0,common_1.Get)("/:id"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],ProjectTypeController.prototype,"getById",null),tslib_1.__decorate([(0,common_1.Put)("/:id"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],ProjectTypeController.prototype,"updateById",null),tslib_1.__decorate([(0,common_1.Delete)("/:id"),(0,common_1.HttpCode)(202),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],ProjectTypeController.prototype,"deleteById",null),ProjectTypeController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/project-type"),tslib_1.__metadata("design:paramtypes",[berkas_service_1.BerkasService,project_type_service_1.ProjectTypeService])],ProjectTypeController),exports2.ProjectTypeController=ProjectTypeController},29528:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.PromoteController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),environment_1=__webpack_require__2(17482),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),req_res_model_1=__webpack_require__2(14249),discord_service_1=__webpack_require__2(92453),user_service_1=__webpack_require__2(50675);let PromoteController=__name(class{constructor(ds,userRepo){this.ds=ds,this.userRepo=userRepo}promote(req,res){var _this=this;return _asyncToGenerator(function*(){try{if("role"in req.body&&("id"in req.body||"username"in req.body||"email"in req.body)){const adminMod=res.locals.user;let excludedRole=[];if(excludedRole=adminMod.role===req_res_model_1.RoleModel.ADMIN?[]:adminMod.role===req_res_model_1.RoleModel.MODERATOR?[req_res_model_1.RoleModel.ADMIN]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR],excludedRole.includes(req.body.role))throw new common_1.HttpException({info:"\u{1f644} 403 - Promote API :: Authorisasi Pengguna Gagal \u{1f62a}",result:{message:"Membutuhkan Role Yang Lebih Tinggi"}},common_1.HttpStatus.FORBIDDEN);const user=yield _this.userRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(req.body.id)},{username:(0,typeorm_1.ILike)(req.body.username)},{email:(0,typeorm_1.ILike)(req.body.email)}],relations:["kartu_tanda_penduduk_","profile_"]});if(user.verified){user.role=req.body.role;const resUserSave=yield _this.userRepo.save(user);return _this.ds.sendNews(_this.ds.createEmbedMessage("#69f0ae",resUserSave.kartu_tanda_penduduk_.nama,`${environment_1.environment.baseUrl}/user/${resUserSave.username}`,{name:`${environment_1.environment.siteName} - Promosi Menjadi ${resUserSave.role}`,iconURL:`${environment_1.environment.baseUrl}/assets/img/favicon.png`,url:environment_1.environment.baseUrl},resUserSave.profile_.description,resUserSave.image_url,resUserSave.updated_at,{text:`Diangkat promosi oleh :: ${adminMod.username}`,iconURL:adminMod.image_url})),delete resUserSave.kartu_tanda_penduduk_,delete resUserSave.profile_,{info:"\u{1f605} 201 - Promote API :: Berhasil Mempromosikan User \u{1f923}",result:resUserSave}}throw new common_1.HttpException({info:"\u{1f644} 400 - Promote API :: Gagal Mempromosikan User \u{1f62a}",result:{message:"Akun Pengguna Belum Diverifikasi!"}},common_1.HttpStatus.BAD_REQUEST)}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Promote API :: Gagal Mempromosikan User \u{1f62a}",result:{message:"Data Tidak Lengkap"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"PromoteController");tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],PromoteController.prototype,"promote",null),PromoteController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/promote"),tslib_1.__metadata("design:paramtypes",[discord_service_1.DiscordService,user_service_1.UserService])],PromoteController),exports2.PromoteController=PromoteController},65663:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.QuizLeaderboardController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),constants_1=__webpack_require__2(26271),user_service_1=__webpack_require__2(50675);let QuizLeaderboardController=__name(class{constructor(userRepo){this.userRepo=userRepo}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){try{const maxPage=parseInt(req.query.page)||0,maxRow=parseInt(req.query.row)||10,leaderboards=yield _this.userRepo.query("\n SELECT\n a.*,\n b.*\n FROM\n (\n SELECT\n count(*)\n FROM\n users u,\n profile p\n WHERE\n u.profile_id = p.id\n ) a,\n (\n SELECT\n row_number() over(ORDER BY p.points DESC, u.updated_at DESC) rank,\n u.username,\n u.image_url,\n p.points,\n p.created_at,\n p.updated_at\n FROM\n users u,\n profile p\n WHERE\n u.profile_id = p.id\n LIMIT\n $1\n OFFSET\n $2\n ) b\n ",[maxRow>0&&maxRow<=500?maxRow:10,maxPage>0?maxPage*maxRow-maxRow:0]);let count=leaderboards.length;for(const l of leaderboards)"count"in l&&(l.count>count&&(count=l.count),delete l.count);return{info:"\u{1f605} 200 - Leaderboard API :: List Rank \u{1f923}",count,pages:Math.ceil(count/(maxRow||10)),results:leaderboards}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Leaderboard API :: Gagal Mendapatkan All Rank \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"QuizLeaderboardController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagQuiz),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],QuizLeaderboardController.prototype,"getAll",null),QuizLeaderboardController=tslib_1.__decorate([(0,common_1.Controller)("/quiz-leaderboard"),tslib_1.__metadata("design:paramtypes",[user_service_1.UserService])],QuizLeaderboardController),exports2.QuizLeaderboardController=QuizLeaderboardController},37936:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RegisterController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),constants_1=__webpack_require__2(26271),filter_api_key_access_decorator_1=__webpack_require__2(18834),mail_service_1=__webpack_require__2(50899);let RegisterController=__name(class{constructor(ms){this.ms=ms}register(req,res){var _this=this;return _asyncToGenerator(function*(){const registration=res.locals.registration;return _this.ms.sendRegisterActivationMail(registration),{info:"\u{1f61a} 201 - Register API :: Berhasil Mendaftar Yeay \u{1f929}",result:{id:registration.id,title:"Aktivasi Akun",message:`\n Silahkan Periksa Email Untuk Menyelesaikan Pendaftaran.
\n Petunjuk Sudah Dikirimkan Ke '${registration.email}'.
\n Hanya berlaku selama ${constants_1.CONSTANTS.timeoutCancelRegisterTime/60/1e3} menit.
\n Jika masih belum diaktifkan, siapapun dapat mendaftar ulang sebagai '${registration.username}'.\n `}}})()}},"RegisterController");tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],RegisterController.prototype,"register",null),RegisterController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/register"),tslib_1.__metadata("design:paramtypes",[mail_service_1.MailService])],RegisterController),exports2.RegisterController=RegisterController},64287:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.TaskCronJobController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),schedule_1=__webpack_require__2(31143),swagger_1=__webpack_require__2(52519),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130);let TaskCronJobController=__name(class{constructor(sr){this.sr=sr}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){const cronJobs=_this.sr.getCronJobs(),jobs=[];for(const[key,value]of cronJobs)jobs.push({id:key,last_date:value.lastDate(),next_date:value.nextDate().toJSDate(),running:value.running});return{info:"\u{1f605} 200 - Task API :: List All \u{1f923}",count:jobs.length,pages:1,results:jobs}})()}updateById(req,res){var _this2=this;return _asyncToGenerator(function*(){try{const cronJob=_this2.sr.getCronJob(req.params.id);if(cronJob)return cronJob.running?cronJob.stop():cronJob.start(),{info:`\u{1f605} 201 - Task API :: Reload ${req.params.id} \u{1f923}`,result:{id:req.params.id,last_date:cronJob.lastDate(),next_date:cronJob.nextDate(),running:cronJob.running}};throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - Task API :: Gagal Mencari Cron Scheduler ${req.params.id} \u{1f62a}`,result:{message:"Cron Scheduler Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}},"TaskCronJobController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],TaskCronJobController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Put)("/:id"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],TaskCronJobController.prototype,"updateById",null),TaskCronJobController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/task-cron-job"),tslib_1.__metadata("design:paramtypes",[schedule_1.SchedulerRegistry])],TaskCronJobController),exports2.TaskCronJobController=TaskCronJobController},72204:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.TorrentController=void 0;const tslib_1=__webpack_require__2(70655),webtorrent_health_1=tslib_1.__importDefault(__webpack_require__2(87133)),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),environment_1=__webpack_require__2(17482),filter_api_key_access_decorator_1=__webpack_require__2(18834),global_service_1=__webpack_require__2(40735);let TorrentController=__name(class{constructor(gs){this.gs=gs}addNew(req,res){var _this=this;return _asyncToGenerator(function*(){try{if(!("magnetHash"in req.body))throw new Error("Data Tidak Lengkap!");(0,webtorrent_health_1.default)(req.body.magnetHash,{trackers:environment_1.environment.torrent.trackerAnnounce,timeout:req.body.trackTimeout||1234},(err,data)=>{if(err){const body={info:"\u{1f644} 400 - Torrent Tracker API :: Gagal Mendapatkan Torrent \u{1f62a}",result:{message:err.message}};res.status(common_1.HttpStatus.BAD_REQUEST),res.locals.xml?(res.set("Content-Type","application/xml"),res.send(_this.gs.OBJ2XML(body))):res.json(body)}else res.status(common_1.HttpStatus.CREATED).json({info:`\u{1f605} 200 - Torrent Tracker API :: Berhasil Mendapatkan ${req.body.magnetHash} \u{1f923}`,result:data})})}catch{const body={info:"\u{1f644} 400 - Torrent Tracker API :: Gagal Mendapatkan Torrent \u{1f62a}",result:{message:"Data Tidak Lengkap!"}};res.status(common_1.HttpStatus.BAD_REQUEST),res.locals.xml?(res.set("Content-Type","application/xml"),res.send(_this.gs.OBJ2XML(body))):res.json(body)}})()}},"TorrentController");tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)()),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],TorrentController.prototype,"addNew",null),TorrentController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/torrent"),tslib_1.__metadata("design:paramtypes",[global_service_1.GlobalService])],TorrentController),exports2.TorrentController=TorrentController},59289:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UserController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),verified_only_decorator_1=__webpack_require__2(42130),api_key_service_1=__webpack_require__2(87044),berkas_service_1=__webpack_require__2(17319),fansub_member_service_1=__webpack_require__2(85434),kartu_tanda_penduduk_service_1=__webpack_require__2(77378),komentar_service_1=__webpack_require__2(83114),likedislike_service_1=__webpack_require__2(59062),profile_service_1=__webpack_require__2(38854),track_service_1=__webpack_require__2(65896),user_service_1=__webpack_require__2(50675),crypto_service_1=__webpack_require__2(4030),discord_service_1=__webpack_require__2(92453),global_service_1=__webpack_require__2(40735);let UserController=__name(class{constructor(aks,berkasRepo,cs,gs,ds,fansubMemberRepo,ktpRepo,komentarRepo,likeDislikeRepo,profileRepo,trackRepo,userRepo){this.aks=aks,this.berkasRepo=berkasRepo,this.cs=cs,this.gs=gs,this.ds=ds,this.fansubMemberRepo=fansubMemberRepo,this.ktpRepo=ktpRepo,this.komentarRepo=komentarRepo,this.likeDislikeRepo=likeDislikeRepo,this.profileRepo=profileRepo,this.trackRepo=trackRepo,this.userRepo=userRepo}getAll(req,res){var _this=this;return _asyncToGenerator(function*(){const searchQuery=req.query.q||"";try{const adminMod=res.locals.user;let maxPage=0,maxRow=10,allowSearch0q=!1;if(adminMod&&(adminMod.role===req_res_model_1.RoleModel.ADMIN||adminMod.role===req_res_model_1.RoleModel.MODERATOR)&&(maxPage=parseInt(req.query.page)||0,maxRow=parseInt(req.query.row)||10,allowSearch0q=!0),(!searchQuery||searchQuery.length<3)&&!allowSearch0q)throw new common_1.HttpException({info:"\u{1f644} 400 - Dorama API :: Gagal Mencari User \u{1f62a}",result:{message:"Minimal 3 Huruf Untuk Pencarian!"}},common_1.HttpStatus.BAD_REQUEST);const[user,count]=yield _this.userRepo.findAndCount({where:[{username:(0,typeorm_1.ILike)(`%${searchQuery}%`)},{email:(0,typeorm_1.ILike)(`%${searchQuery}%`)},{kartu_tanda_penduduk_:{nama:(0,typeorm_1.ILike)(`%${searchQuery}%`)}}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{id:"DESC"}},relations:["kartu_tanda_penduduk_","profile_"],skip:maxPage>0?maxPage*maxRow-maxRow:0,take:maxRow>0&&maxRow<=500?maxRow:10});for(const u of user)adminMod&&(adminMod.role===req_res_model_1.RoleModel.ADMIN||adminMod.role===req_res_model_1.RoleModel.MODERATOR)&&(u._email=u.email,u._session_origin=u.session_origin),"kartu_tanda_penduduk_"in u&&u.kartu_tanda_penduduk_&&(delete u.kartu_tanda_penduduk_.created_at,delete u.kartu_tanda_penduduk_.updated_at),"profile_"in u&&u.profile_&&(delete u.profile_.created_at,delete u.profile_.updated_at);return{info:"\u{1f605} 200 - User API :: List All \u{1f923}",count,pages:Math.ceil(count/(maxRow||10)),results:user}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - User API :: Gagal Mendapatkan All User \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}getByUsername(req,res){var _this2=this;return _asyncToGenerator(function*(){try{const selectedUser=yield _this2.userRepo.findOneOrFail({where:[{username:(0,typeorm_1.ILike)(req.params.username)}],relations:["kartu_tanda_penduduk_","profile_"]});return"kartu_tanda_penduduk_"in selectedUser&&selectedUser.kartu_tanda_penduduk_&&(delete selectedUser.kartu_tanda_penduduk_.created_at,delete selectedUser.kartu_tanda_penduduk_.updated_at),"profile_"in selectedUser&&selectedUser.profile_&&(delete selectedUser.profile_.created_at,delete selectedUser.profile_.updated_at),{info:`\u{1f605} 200 - User API :: Detail ${req.params.username} \u{1f923}`,result:selectedUser}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - User API :: Gagal Mencari User ${req.params.username} \u{1f62a}`,result:{message:"User Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}updateByUsername(req,res){var _this3=this;return _asyncToGenerator(function*(){try{if("old_password"in req.body&&("nama"in req.body||"description"in req.body||"new_password"in req.body||"image_photo"in req.body||"image_cover"in req.body||"private"in req.body)){const user=res.locals.user,old_password=_this3.cs.hashPassword(req.body.old_password),selectedUser=yield _this3.userRepo.findOneOrFail({where:[{username:(0,typeorm_1.ILike)(req.params.username),password:(0,typeorm_1.Equal)(old_password)}],relations:["kartu_tanda_penduduk_","profile_"]});if(user.id===selectedUser.id){"image_photo"in req.body&&(selectedUser.image_url=req.body.image_photo),"new_password"in req.body&&(selectedUser.password=_this3.cs.hashPassword(req.body.new_password)),"private"in req.body&&(selectedUser.private=req.body.private);const selectedKtp=yield _this3.ktpRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(selectedUser.kartu_tanda_penduduk_.id)}]});"nama"in req.body&&(selectedKtp.nama=req.body.nama);const selectedProfile=yield _this3.profileRepo.findOneOrFail({where:[{id:selectedUser.profile_.id}]});"image_cover"in req.body&&(selectedProfile.cover_url=req.body.image_cover),"description"in req.body&&(selectedProfile.description=req.body.description);const resKtpSave=yield _this3.ktpRepo.save(selectedKtp);selectedUser.kartu_tanda_penduduk_=resKtpSave;const resProfileSave=yield _this3.profileRepo.save(selectedProfile);selectedUser.profile_=resProfileSave;let resUserSave=yield _this3.userRepo.save(selectedUser);_this3.ds.sendNews(_this3.ds.createEmbedMessage("#ff4081",resUserSave.kartu_tanda_penduduk_.nama,`${environment_1.environment.baseUrl}/user/${resUserSave.username}`,{name:`${environment_1.environment.siteName} - Pembaharuan Data Pengguna`,iconURL:`${environment_1.environment.baseUrl}/assets/img/favicon.png`,url:environment_1.environment.baseUrl},resUserSave.profile_.description,resUserSave.image_url,resUserSave.updated_at,{text:resUserSave.username,iconURL:resUserSave.image_url})),resUserSave._email=resUserSave.email,resUserSave._session_origin=resUserSave.session_origin;const{password,session_token,session_origin,...noPwdSes}=resUserSave;delete noPwdSes.kartu_tanda_penduduk_,delete noPwdSes.profile_;const clientOriginIpCc=_this3.aks.getOriginIpCc(req,!0);return resUserSave.session_origin=clientOriginIpCc.origin_ip,resUserSave.session_token=_this3.cs.credentialEncode({user:noPwdSes}),resUserSave=yield _this3.userRepo.save(resUserSave),res.cookie(environment_1.environment.tokenName,resUserSave.session_token,{httpOnly:!0,secure:environment_1.environment.production,sameSite:"strict",expires:new Date(1e3*_this3.cs.jwtView(resUserSave.session_token).exp),domain:environment_1.environment.domain}),{info:`\u{1f605} 201 - User API :: Ubah ${req.params.username} \u{1f923}`,result:{token:resUserSave.session_token}}}throw new common_1.HttpException({info:"\u{1f644} 401 - User API :: Authorisasi Kepemilikan Gagal \u{1f62a}",result:{message:"Profil Milik Orang Lain!"}},common_1.HttpStatus.FORBIDDEN)}throw new common_1.HttpException({info:`\u{1f644} 400 - User API :: Gagal Mengubah Profile ${req.params.username} \u{1f62a}`,result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 400 - User API :: Gagal Mencari User ${req.params.username} \u{1f62a}`,result:{message:"Kredensial tidak tepat!"}},common_1.HttpStatus.BAD_REQUEST)}})()}deleteById(req,res){var _this4=this;return _asyncToGenerator(function*(){try{const user=yield _this4.userRepo.findOneOrFail({where:[{username:(0,typeorm_1.ILike)(req.params.username)}],relations:["profile_"]}),ktp=yield _this4.ktpRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(user.id)}]}),profile=yield _this4.profileRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(user.profile_.id)}]}),deletedUser=yield _this4.userRepo.remove(user),deletedKtp=yield _this4.ktpRepo.remove(ktp),deletedProfile=yield _this4.profileRepo.remove(profile);return{info:`\u{1f605} 202 - User API :: Berhasil Menghapus User ${req.params.username} \u{1f923}`,result:{user:deletedUser,ktp:deletedKtp,profile:deletedProfile}}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - User API :: Gagal Mencari User ${req.params.username} \u{1f62a}`,result:{message:"User Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}getFeedBerkasByUsername(req,res){var _this5=this;return _asyncToGenerator(function*(){try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),user=res.locals.user,[files,count]=yield _this5.berkasRepo.findAndCount({where:[{name:(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`),user_:{username:(0,typeorm_1.ILike)(req.params.username),...(null==user?void 0:user.role)===req_res_model_1.RoleModel.ADMIN||(null==user?void 0:user.role)===req_res_model_1.RoleModel.MODERATOR||(null==user?void 0:user.role)===req_res_model_1.RoleModel.FANSUBBER||(null==user?void 0:user.username)===req.params.username||user&&_this5.gs.isFreeTime()?{}:{private:!1}}}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",name:"ASC"}},relations:["project_type_","fansub_","user_","anime_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const f2 of files){if(delete f2.download_url,delete f2.description,"project_type_"in f2&&f2.project_type_&&(delete f2.project_type_.created_at,delete f2.project_type_.updated_at),"fansub_"in f2&&f2.fansub_)for(const fansub of f2.fansub_)delete fansub.description,delete fansub.urls,delete fansub.tags,delete fansub.created_at,delete fansub.updated_at;"anime_"in f2&&f2.anime_&&(delete f2.anime_.created_at,delete f2.anime_.updated_at),"user_"in f2&&f2.user_&&(delete f2.user_.created_at,delete f2.user_.updated_at)}return{info:`\u{1f605} 200 - User API :: Berkas ${req.params.username} \u{1f923}`,count,pages:Math.ceil(count/(queryRow||10)),results:files}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - User API :: Gagal Mencari User ${req.params.username} \u{1f62a}`,result:{message:"Berkas User Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}getFeedCommentByUsername(req,res){var _this6=this;return _asyncToGenerator(function*(){try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),user=res.locals.user,[komens,count]=yield _this6.komentarRepo.findAndCount({where:[{comment:(0,typeorm_1.ILike)(`%${req.query.q?req.query.q:""}%`),user_:{username:(0,typeorm_1.ILike)(req.params.username),...user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR||user.role===req_res_model_1.RoleModel.FANSUBBER||user.username===req.params.username||_this6.gs.isFreeTime()?{}:{private:!1}}}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",comment:"ASC"}},relations:["user_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const k of komens)"user_"in k&&k.user_&&(delete k.user_.created_at,delete k.user_.updated_at);return{info:`\u{1f605} 200 - User API :: Feed Komentar ${req.params.username} \u{1f923}`,count,pages:Math.ceil(count/(queryRow||10)),results:komens}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - User API :: Gagal Mencari User ${req.params.username} \u{1f62a}`,result:{message:"Komentar User Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}getFeedLikeDislikeByUsername(req,res){var _this7=this;return _asyncToGenerator(function*(){const searchQuery=req.query.q||"";try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),user=res.locals.user,[likedislikes,count]=yield _this7.likeDislikeRepo.findAndCount({where:[{news_:{title:(0,typeorm_1.ILike)(`%${searchQuery}%`)},report_by_:{username:(0,typeorm_1.ILike)(req.params.username),...user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR||user.role===req_res_model_1.RoleModel.FANSUBBER||user.username===req.params.username||_this7.gs.isFreeTime()?{}:{private:!1}}},{berkas_:{name:(0,typeorm_1.ILike)(`%${searchQuery}%`)},report_by_:{username:(0,typeorm_1.ILike)(req.params.username),...user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR||user.role===req_res_model_1.RoleModel.FANSUBBER||user.username===req.params.username||_this7.gs.isFreeTime()?{}:{private:!1}}},{fansub_:{name:(0,typeorm_1.ILike)(`%${searchQuery}%`)},report_by_:{username:(0,typeorm_1.ILike)(req.params.username),...user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR||user.role===req_res_model_1.RoleModel.FANSUBBER||user.username===req.params.username||_this7.gs.isFreeTime()?{}:{private:!1}}},{user_:{kartu_tanda_penduduk_:{nama:(0,typeorm_1.ILike)(`%${searchQuery}%`)}},report_by_:{username:(0,typeorm_1.ILike)(req.params.username),...user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR||user.role===req_res_model_1.RoleModel.FANSUBBER||user.username===req.params.username||_this7.gs.isFreeTime()?{}:{private:!1}}}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",berkas_:"ASC",fansub_:"ASC",user_:"ASC"}},relations:["news_","berkas_","fansub_","user_","report_by_","user_.kartu_tanda_penduduk_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const ldl of likedislikes)"news_"in ldl&&ldl.news_&&(delete ldl.news_.content,delete ldl.news_.tags,delete ldl.news_.created_at,delete ldl.news_.updated_at),"berkas_"in ldl&&ldl.berkas_&&(delete ldl.berkas_.download_url,delete ldl.berkas_.description,delete ldl.berkas_.created_at,delete ldl.berkas_.updated_at),"fansub_"in ldl&&ldl.fansub_&&(delete ldl.fansub_.description,delete ldl.fansub_.urls,delete ldl.fansub_.tags,delete ldl.fansub_.created_at,delete ldl.fansub_.updated_at),"user_"in ldl&&ldl.user_&&(delete ldl.user_.created_at,delete ldl.user_.updated_at,"kartu_tanda_penduduk_"in ldl.user_&&ldl.user_.kartu_tanda_penduduk_&&(delete ldl.user_.kartu_tanda_penduduk_.created_at,delete ldl.user_.kartu_tanda_penduduk_.updated_at)),"report_by_"in ldl&&ldl.report_by_&&(delete ldl.report_by_.created_at,delete ldl.report_by_.updated_at);return{info:`\u{1f605} 200 - User API :: Feed Like Dislike ${req.params.username} \u{1f923}`,count,pages:Math.ceil(count/(queryRow||10)),results:likedislikes}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - User API :: Gagal Mencari User ${req.params.username} \u{1f62a}`,result:{message:"Like Dislike User Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}getFeedVisitByUsername(req,res){var _this8=this;return _asyncToGenerator(function*(){const searchQuery=req.query.q||"";try{const queryPage=parseInt(req.query.page),queryRow=parseInt(req.query.row),user=res.locals.user,selectedUser=yield _this8.userRepo.findOneOrFail({where:[{username:(0,typeorm_1.ILike)(req.params.username),...user.role===req_res_model_1.RoleModel.ADMIN||user.role===req_res_model_1.RoleModel.MODERATOR||user.role===req_res_model_1.RoleModel.FANSUBBER||user.username===req.params.username||_this8.gs.isFreeTime()?{}:{private:!1}}]}),[tracks,count]=yield _this8.trackRepo.findAndCount({where:[{news_:{title:(0,typeorm_1.ILike)(`%${searchQuery}%`)},track_by_:{id:(0,typeorm_1.Equal)(selectedUser.id)}},{berkas_:{name:(0,typeorm_1.ILike)(`%${searchQuery}%`)},track_by_:{id:(0,typeorm_1.Equal)(selectedUser.id)}},{fansub_:{name:(0,typeorm_1.ILike)(`%${searchQuery}%`)},track_by_:{id:(0,typeorm_1.Equal)(selectedUser.id)}},{user_:{kartu_tanda_penduduk_:{nama:(0,typeorm_1.ILike)(`%${searchQuery}%`)}},track_by_:{id:(0,typeorm_1.Equal)(selectedUser.id)}}],order:{...req.query.sort&&req.query.order?{[req.query.sort]:req.query.order.toUpperCase()}:{created_at:"DESC",berkas_:"ASC",fansub_:"ASC",user_:"ASC"}},relations:["news_","berkas_","fansub_","user_","track_by_","user_.kartu_tanda_penduduk_"],skip:queryPage>0?queryPage*queryRow-queryRow:0,take:queryRow>0&&queryRow<=500?queryRow:10});for(const t of tracks)user.username!==selectedUser.username&&user.role!==req_res_model_1.RoleModel.ADMIN&&user.role!==req_res_model_1.RoleModel.MODERATOR&&delete t.ip,"news_"in t&&t.news_&&(delete t.news_.content,delete t.news_.tags,delete t.news_.created_at,delete t.news_.updated_at),"berkas_"in t&&t.berkas_&&(delete t.berkas_.download_url,delete t.berkas_.description,delete t.berkas_.created_at,delete t.berkas_.updated_at),"fansub_"in t&&t.fansub_&&(delete t.fansub_.description,delete t.fansub_.urls,delete t.fansub_.tags,delete t.fansub_.created_at,delete t.fansub_.updated_at),"user_"in t&&t.user_&&(delete t.user_.created_at,delete t.user_.updated_at,"kartu_tanda_penduduk_"in t.user_&&t.user_.kartu_tanda_penduduk_&&(delete t.user_.kartu_tanda_penduduk_.created_at,delete t.user_.kartu_tanda_penduduk_.updated_at)),"track_by_"in t&&t.track_by_&&(delete t.track_by_.created_at,delete t.track_by_.updated_at);return{info:`\u{1f605} 200 - User API :: Feed Kunjungan ${req.params.username} \u{1f923}`,count,pages:Math.ceil(count/(queryRow||10)),results:tracks}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:`\u{1f644} 404 - User API :: Gagal Mencari User ${req.params.username} \u{1f62a}`,result:{message:"Jejak User Tidak Ditemukan!"}},common_1.HttpStatus.NOT_FOUND)}})()}getFansubMembers(req,res){var _this9=this;return _asyncToGenerator(function*(){try{const[groups,count]=yield _this9.fansubMemberRepo.findAndCount({where:[{approved:!0,user_:{username:(0,typeorm_1.ILike)(req.params.username)}}],order:{keterangan:"ASC",created_at:"DESC"},relations:["fansub_","user_","approved_by_"]});for(const group of groups)"fansub_"in group&&group.fansub_&&(delete group.fansub_.urls,delete group.fansub_.tags,delete group.fansub_.view_count,delete group.fansub_.like_count,delete group.fansub_.description,delete group.fansub_.rss_feed,delete group.fansub_.created_at,delete group.fansub_.updated_at,delete group.fansub_.user_),"user_"in group&&group.user_&&(delete group.user_.created_at,delete group.user_.updated_at),"approved_by_"in group&&group.approved_by_&&(delete group.approved_by_.created_at,delete group.approved_by_.updated_at);return{info:`\u{1f605} 200 - User API :: ${req.params.username} Groups \u{1f923}`,count,pages:1,results:groups}}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - User API :: Gagal Mendapatkan All Groups \u{1f62a}",result:{message:"Grup Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"UserController");tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagUser),(0,swagger_1.ApiQuery)({name:"q",required:!0,type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],UserController.prototype,"getAll",null),tslib_1.__decorate([(0,common_1.Get)("/:username"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagUser),(0,swagger_1.ApiParam)({name:"username",type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],UserController.prototype,"getByUsername",null),tslib_1.__decorate([(0,common_1.Put)("/:username"),(0,common_1.HttpCode)(201),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],UserController.prototype,"updateByUsername",null),tslib_1.__decorate([(0,common_1.Delete)("/:username"),(0,common_1.HttpCode)(202),(0,swagger_1.ApiExcludeEndpoint)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,verified_only_decorator_1.VerifiedOnly)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],UserController.prototype,"deleteById",null),tslib_1.__decorate([(0,common_1.Get)("/:username/feed-berkas"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagUser),(0,swagger_1.ApiQuery)({name:"q",required:!1,type:"string"}),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),(0,swagger_1.ApiParam)({name:"username",type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],UserController.prototype,"getFeedBerkasByUsername",null),tslib_1.__decorate([(0,common_1.Get)("/:username/feed-comment"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagUser),(0,swagger_1.ApiQuery)({name:"q",required:!1,type:"string"}),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),(0,swagger_1.ApiParam)({name:"username",type:"string"}),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],UserController.prototype,"getFeedCommentByUsername",null),tslib_1.__decorate([(0,common_1.Get)("/:username/feed-likedislike"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagUser),(0,swagger_1.ApiQuery)({name:"q",required:!1,type:"string"}),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),(0,swagger_1.ApiParam)({name:"username",type:"string"}),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],UserController.prototype,"getFeedLikeDislikeByUsername",null),tslib_1.__decorate([(0,common_1.Get)("/:username/feed-visit"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagUser),(0,swagger_1.ApiQuery)({name:"q",required:!1,type:"string"}),(0,swagger_1.ApiQuery)({name:"row",required:!1,type:"number"}),(0,swagger_1.ApiQuery)({name:"page",required:!1,type:"number"}),(0,swagger_1.ApiParam)({name:"username",type:"string"}),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],UserController.prototype,"getFeedVisitByUsername",null),tslib_1.__decorate([(0,common_1.Get)("/:username/group"),(0,common_1.HttpCode)(200),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagUser),(0,swagger_1.ApiParam)({name:"username",type:"string"}),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],UserController.prototype,"getFansubMembers",null),UserController=tslib_1.__decorate([(0,common_1.Controller)("/user"),tslib_1.__metadata("design:paramtypes",[api_key_service_1.ApiKeyService,berkas_service_1.BerkasService,crypto_service_1.CryptoService,global_service_1.GlobalService,discord_service_1.DiscordService,fansub_member_service_1.FansubMemberService,kartu_tanda_penduduk_service_1.KartuTandaPendudukService,komentar_service_1.KomentarService,likedislike_service_1.LikedislikeService,profile_service_1.ProfileService,track_service_1.TrackService,user_service_1.UserService])],UserController),exports2.UserController=UserController},34023:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.VerifyKtpController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),kartu_tanda_penduduk_service_1=__webpack_require__2(77378),user_service_1=__webpack_require__2(50675),crypto_service_1=__webpack_require__2(4030);let VerifyKtpController=__name(class{constructor(cs,ktpRepo,userRepo){this.cs=cs,this.ktpRepo=ktpRepo,this.userRepo=userRepo}verifyKtp(req,res){var _this=this;return _asyncToGenerator(function*(){try{const user=res.locals.user;if(user.verified)return{info:"\u{1f605} 201 - Verifikasi API :: User Telah Diverifikasi \u{1f923}",result:{message:"User Telah Diverifikasi!"}};if("nik"in req.body&&"nama"in req.body&&"tempat_lahir"in req.body&&"jenis_kelamin"in req.body&&"kecamatan"in req.body&&"kelurahan_desa"in req.body){if((yield _this.ktpRepo.find({where:[{nik:(0,typeorm_1.In)([req.body.nik])}]})).length>0)throw new common_1.HttpException({info:"\u{1f644} 400 - Verifikasi API :: Verifikasi Gagal \u{1f62a}",result:{message:"NIK Telah Digunakan!"}},common_1.HttpStatus.BAD_REQUEST);{const ktp=yield _this.ktpRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(user.kartu_tanda_penduduk_.id)}]});ktp.nik=req.body.nik,ktp.nama=req.body.nama,ktp.tempat_lahir=req.body.tempat_lahir,ktp.jenis_kelamin=req.body.jenis_kelamin,ktp.kecamatan=req.body.kecamatan,ktp.kelurahan_desa=req.body.kelurahan_desa;const resKtpSave=yield _this.ktpRepo.save(ktp);user.kartu_tanda_penduduk_=resKtpSave,user.verified=!0;let resUserSave=yield _this.userRepo.save(user);const{password,session_token,session_origin,...noPwdSes}=resUserSave;return delete noPwdSes.kartu_tanda_penduduk_,delete noPwdSes.profile_,resUserSave.session_token=_this.cs.credentialEncode({user:noPwdSes}),resUserSave=yield _this.userRepo.save(resUserSave),res.cookie(environment_1.environment.tokenName,resUserSave.session_token,{httpOnly:!0,secure:environment_1.environment.production,sameSite:"strict",expires:new Date(1e3*_this.cs.jwtView(resUserSave.session_token).exp),domain:environment_1.environment.domain}),{info:"\u{1f60d} 201 - Verifikasi API :: Verifikasi Berhasil \u{1f970}",result:{token:resUserSave.session_token}}}}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Verifikasi API :: Verifikasi Gagal! \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"VerifyKtpController");tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],VerifyKtpController.prototype,"verifyKtp",null),VerifyKtpController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/verify-ktp"),tslib_1.__metadata("design:paramtypes",[crypto_service_1.CryptoService,kartu_tanda_penduduk_service_1.KartuTandaPendudukService,user_service_1.UserService])],VerifyKtpController),exports2.VerifyKtpController=VerifyKtpController},39392:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.VerifyNikController=void 0;const tslib_1=__webpack_require__2(70655),node_url_1=__webpack_require__2(46024),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),api_key_service_1=__webpack_require__2(87044),api_service_1=__webpack_require__2(99527),global_service_1=__webpack_require__2(40735);let VerifyNikController=__name(class{constructor(aks,api,gs){this.aks=aks,this.api=api,this.gs=gs}verifyNik(req,res){var _this=this;return _asyncToGenerator(function*(){try{if("nik"in req.body&&"nama"in req.body&&"g-recaptcha-response"in req.body){const url=new node_url_1.URL(environment_1.environment.reCaptcha.api_url);url.searchParams.append("secret",environment_1.environment.reCaptcha.secret_key),url.searchParams.append("response",req.body["g-recaptcha-response"]),url.searchParams.append("remoteip",_this.aks.getOriginIpCc(req,!0).origin_ip);const res_raw1=yield _this.api.getData(url,environment_1.environment.nodeJsXhrHeader);if(res_raw1.ok){const res_json1=yield res_raw1.json();_this.gs.log(`[gCaptcha] \u{1f3b2} ${res_raw1.status}`,res_json1);const url2=new node_url_1.URL(environment_1.environment.apiPemerintahKTPUrl),form=new node_url_1.URLSearchParams;form.append("nik",req.body.nik),form.append("nama",req.body.nama),form.append("ck_kpu",environment_1.environment.apiPemerintahKTPSecretKey);const res_raw2=yield _this.api.postData(url2,form,environment_1.environment.nodeJsXhrHeader);if(res_raw2.ok){const res_json2=yield res_raw2.json();return _this.gs.log(`[apiKTP] \u{1f194} ${res_raw2.status}`,res_json2),"data"in res_json2&&res_json2.data&&delete res_json2.data.tps,{info:"\u{1f60d} 201 - KTP API :: Data Kartu Tanda Penduduk \u{1f970}",result:res_json2}}throw new common_1.HttpException({info:`\u{1f644} ${res_raw2.status||500} - KTP API :: API Pemerintah Error \u{1f62a}`,result:{message:"Kayaknya Sudah Di Fix Deh Kebocoran Datanya?"}},res_raw2.status||common_1.HttpStatus.INTERNAL_SERVER_ERROR)}throw new common_1.HttpException({info:`\u{1f644} ${res_raw1.status||400} - Google API :: Captcha Bermasalah \u{1f62a}`,result:{message:"Captcha Salah / Expired / Google API Down!"}},res_raw1.status||common_1.HttpStatus.BAD_REQUEST)}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - KTP API :: Cek NIK Gagal \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"VerifyNikController");tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],VerifyNikController.prototype,"verifyNik",null),VerifyNikController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/verify-nik"),tslib_1.__metadata("design:paramtypes",[api_key_service_1.ApiKeyService,api_service_1.ApiService,global_service_1.GlobalService])],VerifyNikController),exports2.VerifyNikController=VerifyNikController},37221:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.VerifySosmedController=void 0;const tslib_1=__webpack_require__2(70655),googleapis_1=__webpack_require__2(19993),node_url_1=__webpack_require__2(46024),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),filter_api_key_access_decorator_1=__webpack_require__2(18834),roles_decorator_1=__webpack_require__2(46141),social_media_service_1=__webpack_require__2(42471),api_service_1=__webpack_require__2(99527),crypto_service_1=__webpack_require__2(4030),global_service_1=__webpack_require__2(40735),mail_service_1=__webpack_require__2(50899),auth_service_1=__webpack_require__2(99985),discord_service_1=__webpack_require__2(92453);let VerifySosmedController=__name(class{constructor(api,as,cs,gs,sosmedRepo,ms,ds){this.api=api,this.as=as,this.cs=cs,this.gs=gs,this.sosmedRepo=sosmedRepo,this.ms=ms,this.ds=ds}insertOrUpdate(sosMedModel,user,sosmedId,refreshToken){var _this=this;return _asyncToGenerator(function*(){try{if((yield _this.sosmedRepo.count({where:[{id:(0,typeorm_1.Equal)(sosmedId),type:sosMedModel,user_:{id:(0,typeorm_1.Not)((0,typeorm_1.Equal)(user.id))}}],relations:["user_"]}))>0)throw"Akun Telah Digunakan!";const sosmeds=yield _this.sosmedRepo.find({where:[{type:sosMedModel,user_:{id:(0,typeorm_1.Equal)(user.id)}}],relations:["user_"]});if(0===sosmeds.length){const sosmed=_this.sosmedRepo.new();sosmed.id=sosmedId,sosmed.refresh_token=refreshToken,sosmed.type=sosMedModel,sosmed.user_=user,yield _this.sosmedRepo.insert(sosmed)}else{if(1!==sosmeds.length)throw"Akun Telah Digunakan!";yield _this.sosmedRepo.update({type:sosMedModel,user_:{id:(0,typeorm_1.Equal)(user.id)}},{id:sosmedId,refresh_token:refreshToken})}}catch{throw new common_1.HttpException({info:"\u{1f644} 400 - Social Media :: Verifikasi Gagal! \u{1f62a}",result:{title:"Akun Telah Digunakan!",message:"Silahkan Ulangi Langkah Sebelumnya Atau Coba Dengan Akun Yang Lain!"}},common_1.HttpStatus.BAD_REQUEST)}})()}discordApp(req,user){var _this2=this;return _asyncToGenerator(function*(){const url1=new node_url_1.URL(`${environment_1.environment.discord.api_uri}/oauth2/token`),form=new node_url_1.URLSearchParams;form.append("client_id",environment_1.environment.discord.client_id),form.append("client_secret",environment_1.environment.discord.client_secret),form.append("grant_type","authorization_code"),form.append("code",req.body.code),form.append("redirect_uri",`${environment_1.environment.baseUrl}/verify?app=discord`);const res_raw1=yield _this2.api.postData(url1,form,environment_1.environment.nodeJsXhrHeader);if(res_raw1.ok){const res_json1=yield res_raw1.json();_this2.gs.log(`[oAuthDiscord] \u{1f5dd} ${res_raw1.status}`,res_json1);const url2=new node_url_1.URL(`${environment_1.environment.discord.api_uri}/users/@me`),res_raw2=yield _this2.api.getData(url2,{Authorization:`Bearer ${res_json1.access_token}`,...environment_1.environment.nodeJsXhrHeader});if(res_raw2.ok){const res_json2=yield res_raw2.json();if(_this2.gs.log(`[apiDiscord] \u{1f5dd} ${res_raw2.status}`,res_json2),!res_json2.verified)throw new common_1.HttpException({info:"\u{1f644} 400 - Discord API :: Gagal Verify \u{1f62a}",result:{title:"Akun Discord Belum Terverifikasi!",message:"Silahkan Verifikasi Akun Discord Terlebih Dahulu!"}},common_1.HttpStatus.BAD_REQUEST);const url3=new node_url_1.URL(`${environment_1.environment.discord.api_uri}/guilds/${environment_1.environment.discord.guild_id}/members/${res_json2.id}`),res_raw3=yield _this2.api.putData(url3,JSON.stringify({access_token:`${res_json1.token_type} ${res_json1.access_token}`}),{Authorization:`Bot ${environment_1.environment.discord.loginToken}`,...environment_1.environment.nodeJsXhrHeader});if(res_raw3.ok){const res_json3=yield res_raw3.json();_this2.gs.log(`[apiDiscord] \u{1f5dd} ${res_raw3.status}`,res_json3)}else{const res_text3=yield res_raw3.text();_this2.gs.log(`[apiDiscord] \u{1f5dd} ${res_raw3.status}`,res_text3,"error")}return yield _this2.insertOrUpdate(req_res_model_1.SosMedModel.DISCORD,user,res_json2.id,res_json1.refresh_token),{info:"\u{1f605} 201 - Discord API :: Masuk & Verify \u{1f923}",result:{title:`Kirim Token Ke ${environment_1.environment.siteName} Discord BOT Dalam ${constants_1.CONSTANTS.timeJwtEncryption/60} Menit! #\u{1f6ae}-bot-spam`,message:"~verify DISCORD "+_this2.cs.credentialEncode({discord:{id:res_json2.id,email:res_json2.email,verified:res_json2.verified},user:{id:user.id,username:user.username,verified:user.verified}},!1,constants_1.CONSTANTS.timeJwtEncryption)+" DELETE_CHAT"}}}throw new common_1.HttpException({info:`\u{1f644} ${res_raw2.status||400} - Discord API :: Gagal Verify \u{1f62a}`,result:{message:"Kode oAuth Salah / Expired!"}},res_raw2.status||common_1.HttpStatus.BAD_REQUEST)}throw new common_1.HttpException({info:`\u{1f644} ${res_raw1.status||400} - Discord API :: Gagal Masuk \u{1f62a}`,result:{message:"Kode Token Salah / Tidak Valid!"}},res_raw1.status||common_1.HttpStatus.BAD_REQUEST)})()}googleApp(req,user){var _this3=this;return _asyncToGenerator(function*(){const oauth2Client=new googleapis_1.google.auth.OAuth2({clientId:environment_1.environment.gCloudPlatform.app.client_id,clientSecret:environment_1.environment.gCloudPlatform.app.client_secret,redirectUri:`${environment_1.environment.baseUrl}/verify?app=google`}),{tokens}=yield oauth2Client.getToken(req.body.code),url=new node_url_1.URL(environment_1.environment.gCloudPlatform.app.profile_uri);url.searchParams.append("alt","json"),url.searchParams.append("access_token",tokens.access_token);const res_raw=yield _this3.api.getData(url,environment_1.environment.nodeJsXhrHeader);if(res_raw.ok){const res_json=yield res_raw.json();if(_this3.gs.log(`[oAuthGoogle] \u{1f5dd} ${res_raw.status}`,res_json),!res_json.verified_email)throw new common_1.HttpException({info:"\u{1f644} 400 - Google API :: Gagal Verify \u{1f62a}",result:{title:"Akun Google Belum Terverifikasi!",message:"Silahkan Verifikasi Akun Google Terlebih Dahulu!"}},common_1.HttpStatus.BAD_REQUEST);return yield _this3.insertOrUpdate(req_res_model_1.SosMedModel.GOOGLE,user,res_json.id,tokens.refresh_token),_this3.ms.sendVerifikasiMail({nama:user.kartu_tanda_penduduk_.nama,email:res_json.email,username:user.username},_this3.cs.credentialEncode({google:{id:res_json.id,email:res_json.email,verified:res_json.verified_email},user:{id:user.id,username:user.username,verified:user.verified}},!1,constants_1.CONSTANTS.timeJwtEncryption)),{info:"\u{1f605} 201 - Google API :: Masuk & Verify \u{1f923}",result:{title:"Verifikasi Akun",message:`\n Silahkan Periksa Email Untuk Menyelesaikan Verifikasi.
\n Petunjuk Sudah Dikirimkan Ke '${res_json.email}'.
\n Hanya berlaku selama ${constants_1.CONSTANTS.timeJwtEncryption/60} menit.\n `}}}throw new common_1.HttpException({info:`\u{1f644} ${res_raw.status||400} - Google API :: Gagal Masuk \u{1f62a}`,result:{message:"Kode Token Salah / Tidak Valid!"}},res_raw.status||common_1.HttpStatus.BAD_REQUEST)})()}verifySosmed(req,res){var _this4=this;return _asyncToGenerator(function*(){try{const user=res.locals.user;if(user.verified)return{info:"\u{1f605} 201 - Verifikasi API :: User Telah Diverifikasi \u{1f923}",result:{title:"Akun Telah Diverifikasi!",message:"Whoops! Yeay~"}};if("app"in req.body&&"code"in req.body){if(req.body.app===req_res_model_1.SosMedModel.DISCORD)return _this4.discordApp(req,user);if(req.body.app===req_res_model_1.SosMedModel.GOOGLE)return _this4.googleApp(req,user)}throw new Error("Data Tidak Lengkap!")}catch(error){throw error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Social Media :: Verifikasi Gagal! \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}verifyAccount(req,res){var _this5=this;return _asyncToGenerator(function*(){const token=req.query.token||"";if(token){const userVerified=yield _this5.as.verifySosmedAccount(token,req_res_model_1.SosMedModel.GOOGLE);userVerified&&(res.cookie(environment_1.environment.tokenName,userVerified.session_token,{httpOnly:!0,secure:environment_1.environment.production,sameSite:"strict",expires:new Date(1e3*_this5.cs.jwtView(userVerified.session_token).exp),domain:environment_1.environment.domain}),_this5.ds.sendNews(_this5.ds.createEmbedMessage("#69f0ae",userVerified.kartu_tanda_penduduk_.nama,`${environment_1.environment.baseUrl}/user/${userVerified.username}`,{name:`${environment_1.environment.siteName} - Verifikasi Pengguna`,iconURL:`${environment_1.environment.baseUrl}/assets/img/favicon.png`,url:environment_1.environment.baseUrl},userVerified.profile_.description,userVerified.image_url,userVerified.updated_at,{text:userVerified.username,iconURL:userVerified.image_url})))}return{url:"/verify",statusCode:301}})()}},"VerifySosmedController");tslib_1.__decorate([(0,common_1.Post)("/"),(0,common_1.HttpCode)(201),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),(0,roles_decorator_1.Roles)(req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],VerifySosmedController.prototype,"verifySosmed",null),tslib_1.__decorate([(0,common_1.Get)("/"),(0,common_1.HttpCode)(301),(0,common_1.Redirect)(),(0,filter_api_key_access_decorator_1.FilterApiKeyAccess)(),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Promise)],VerifySosmedController.prototype,"verifyAccount",null),VerifySosmedController=tslib_1.__decorate([(0,swagger_1.ApiExcludeController)(),(0,common_1.Controller)("/verify-sosmed"),tslib_1.__metadata("design:paramtypes",[api_service_1.ApiService,auth_service_1.AuthService,crypto_service_1.CryptoService,global_service_1.GlobalService,social_media_service_1.SocialMediaService,mail_service_1.MailService,discord_service_1.DiscordService])],VerifySosmedController),exports2.VerifySosmedController=VerifySosmedController},70177:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.VerifyController=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),swagger_1=__webpack_require__2(52519),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),crypto_service_1=__webpack_require__2(4030);let VerifyController=__name(class{constructor(cs){this.cs=cs}verify(req,res){const user=res.locals.user,token=res.locals.token,key=res.locals.key;if(user)return token&&res.cookie(environment_1.environment.tokenName,token,{httpOnly:!0,secure:environment_1.environment.production,sameSite:"strict",expires:new Date(1e3*this.cs.jwtView(token).exp),domain:environment_1.environment.domain}),user._email=user.email,user._session_origin=user.session_origin,"kartu_tanda_penduduk_"in user&&user.kartu_tanda_penduduk_&&(delete user.kartu_tanda_penduduk_.created_at,delete user.kartu_tanda_penduduk_.updated_at),"profile_"in user&&user.profile_&&(delete user.profile_.created_at,delete user.profile_.updated_at),{info:"\u{1f60d} 202 - Verifikasi API :: Token Selesai Di Verifikasi UwUu \u{1f970}",result:user,token,key};throw new common_1.HttpException({info:"\u{1f927} 400 - Verifikasi API :: JWT / Key Tidak Ada \u{1f637}",result:{message:"Silahkan Login Terlebih Dahulu!"}},common_1.HttpStatus.BAD_REQUEST)}},"VerifyController");tslib_1.__decorate([(0,common_1.Patch)("/"),(0,common_1.HttpCode)(202),(0,swagger_1.ApiTags)(constants_1.CONSTANTS.apiTagSession),tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object]),tslib_1.__metadata("design:returntype",Object)],VerifyController.prototype,"verify",null),VerifyController=tslib_1.__decorate([(0,common_1.Controller)("/verify"),tslib_1.__metadata("design:paramtypes",[crypto_service_1.CryptoService])],VerifyController),exports2.VerifyController=VerifyController},18834:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FilterApiKeyAccess=void 0;const common_1=__webpack_require__2(28791),constants_1=__webpack_require__2(26271),FilterApiKeyAccess=__name((filterApiKeyAccess=!0)=>(0,common_1.SetMetadata)(constants_1.CONSTANTS.decoratorFilterApiKeyAccess,filterApiKeyAccess),"FilterApiKeyAccess");exports2.FilterApiKeyAccess=FilterApiKeyAccess},46141:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Roles=void 0;const common_1=__webpack_require__2(28791),constants_1=__webpack_require__2(26271),Roles=__name((...roles)=>(0,common_1.SetMetadata)(constants_1.CONSTANTS.decoratorRoles,roles),"Roles");exports2.Roles=Roles},42130:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.VerifiedOnly=void 0;const common_1=__webpack_require__2(28791),constants_1=__webpack_require__2(26271),VerifiedOnly=__name((isVerifiedRequired=!0)=>(0,common_1.SetMetadata)(constants_1.CONSTANTS.decoratorVerifiedOnly,isVerifiedRequired),"VerifiedOnly");exports2.VerifiedOnly=VerifiedOnly},50363:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Anime=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274);let Anime=__name(class{},"Anime");tslib_1.__decorate([(0,typeorm_1.PrimaryColumn)({type:"int"}),tslib_1.__metadata("design:type",Number)],Anime.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Anime.prototype,"name",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Anime.prototype,"type",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"/assets/img/favicon.png"}),tslib_1.__metadata("design:type",String)],Anime.prototype,"image_url",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Anime.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Anime.prototype,"updated_at",void 0),Anime=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"anime"})],Anime),exports2.Anime=Anime},54472:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ApiKey=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274),User_1=__webpack_require__2(20945);let ApiKey=__name(class{},"ApiKey");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],ApiKey.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],ApiKey.prototype,"name",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"*"}),tslib_1.__metadata("design:type",String)],ApiKey.prototype,"ip_domain",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({generated:"uuid",nullable:!0,unique:!0}),tslib_1.__metadata("design:type",String)],ApiKey.prototype,"api_key",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],ApiKey.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],ApiKey.prototype,"updated_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],ApiKey.prototype,"user_",void 0),ApiKey=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"api_key"})],ApiKey),exports2.ApiKey=ApiKey},93595:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var Attachment_1;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Attachment=void 0;const tslib_1=__webpack_require__2(70655),class_transformer_1=__webpack_require__2(51308),typeorm_1=__webpack_require__2(92274),User_1=__webpack_require__2(20945);let Attachment=Attachment_1=__name(class{},"Attachment");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("uuid"),tslib_1.__metadata("design:type",String)],Attachment.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Attachment.prototype,"name",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Attachment.prototype,"ext",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int"}),tslib_1.__metadata("design:type",Number)],Attachment.prototype,"size",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Attachment.prototype,"mime",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Attachment.prototype,"download_count",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Attachment.prototype,"google_drive",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Attachment.prototype,"discord",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"boolean",default:!0}),tslib_1.__metadata("design:type",Boolean)],Attachment.prototype,"pending",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Attachment.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Attachment.prototype,"updated_at",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.DeleteDateColumn)({type:"timestamp with time zone"}),tslib_1.__metadata("design:type",Object)],Attachment.prototype,"deleted_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],Attachment.prototype,"user_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>Attachment_1),tslib_1.__metadata("design:type",Object)],Attachment.prototype,"parent_attachment_",void 0),Attachment=Attachment_1=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"attachment"})],Attachment),exports2.Attachment=Attachment},94756:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Banned=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274),User_1=__webpack_require__2(20945);let Banned=__name(class{},"Banned");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("uuid"),tslib_1.__metadata("design:type",String)],Banned.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Banned.prototype,"reason",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Banned.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Banned.prototype,"updated_at",void 0),tslib_1.__decorate([(0,typeorm_1.OneToOne)(type=>User_1.User),(0,typeorm_1.JoinColumn)(),tslib_1.__metadata("design:type",Object)],Banned.prototype,"user_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],Banned.prototype,"banned_by_",void 0),Banned=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"banned"})],Banned),exports2.Banned=Banned},56115:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Berkas=void 0;const tslib_1=__webpack_require__2(70655),class_transformer_1=__webpack_require__2(51308),typeorm_1=__webpack_require__2(92274),Anime_1=__webpack_require__2(50363),Attachment_1=__webpack_require__2(93595),Dorama_1=__webpack_require__2(26138),Fansub_1=__webpack_require__2(7460),ProjectType_1=__webpack_require__2(98778),User_1=__webpack_require__2(20945);let Berkas=__name(class{},"Berkas");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("uuid"),tslib_1.__metadata("design:type",String)],Berkas.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Berkas.prototype,"name",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Berkas.prototype,"description",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"boolean",default:!1}),tslib_1.__metadata("design:type",Boolean)],Berkas.prototype,"private",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Berkas.prototype,"download_url",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"/assets/img/favicon.png"}),tslib_1.__metadata("design:type",String)],Berkas.prototype,"image_url",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Berkas.prototype,"view_count",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Berkas.prototype,"like_count",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Berkas.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Berkas.prototype,"updated_at",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.DeleteDateColumn)({type:"timestamp with time zone"}),tslib_1.__metadata("design:type",Object)],Berkas.prototype,"deleted_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>ProjectType_1.ProjectType),tslib_1.__metadata("design:type",Object)],Berkas.prototype,"project_type_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>Anime_1.Anime),tslib_1.__metadata("design:type",Object)],Berkas.prototype,"anime_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>Dorama_1.Dorama),tslib_1.__metadata("design:type",Object)],Berkas.prototype,"dorama_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToMany)(type=>Fansub_1.Fansub),(0,typeorm_1.JoinTable)(),tslib_1.__metadata("design:type",Array)],Berkas.prototype,"fansub_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],Berkas.prototype,"user_",void 0),tslib_1.__decorate([(0,typeorm_1.OneToOne)(type=>Attachment_1.Attachment),(0,typeorm_1.JoinColumn)(),tslib_1.__metadata("design:type",Object)],Berkas.prototype,"attachment_",void 0),Berkas=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"berkas"})],Berkas),exports2.Berkas=Berkas},54875:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DdlFile=void 0;const tslib_1=__webpack_require__2(70655),class_transformer_1=__webpack_require__2(51308),typeorm_1=__webpack_require__2(92274),User_1=__webpack_require__2(20945);let DdlFile=__name(class{},"DdlFile");tslib_1.__decorate([(0,typeorm_1.PrimaryColumn)("text"),tslib_1.__metadata("design:type",String)],DdlFile.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],DdlFile.prototype,"name",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],DdlFile.prototype,"url",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int"}),tslib_1.__metadata("design:type",Number)],DdlFile.prototype,"size",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],DdlFile.prototype,"mime",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],DdlFile.prototype,"download_count",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],DdlFile.prototype,"msg_id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int"}),tslib_1.__metadata("design:type",Number)],DdlFile.prototype,"chunk_idx",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],DdlFile.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],DdlFile.prototype,"updated_at",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.DeleteDateColumn)({type:"timestamp with time zone"}),tslib_1.__metadata("design:type",Object)],DdlFile.prototype,"deleted_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],DdlFile.prototype,"user_",void 0),DdlFile=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"ddl_file"})],DdlFile),exports2.DdlFile=DdlFile},26138:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Dorama=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274);let Dorama=__name(class{},"Dorama");tslib_1.__decorate([(0,typeorm_1.PrimaryColumn)({type:"int"}),tslib_1.__metadata("design:type",Number)],Dorama.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Dorama.prototype,"slug",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Dorama.prototype,"name",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Dorama.prototype,"type",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"/assets/img/favicon.png"}),tslib_1.__metadata("design:type",String)],Dorama.prototype,"image_url",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Dorama.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Dorama.prototype,"updated_at",void 0),Dorama=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"dorama"})],Dorama),exports2.Dorama=Dorama},98335:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Edict=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274);let Edict=__name(class{},"Edict");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],Edict.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Edict.prototype,"kanji",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Edict.prototype,"reading",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Edict.prototype,"meaning",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Edict.prototype,"flags",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Edict.prototype,"jlpt",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Edict.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Edict.prototype,"updated_at",void 0),Edict=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"edict"})],Edict),exports2.Edict=Edict},7460:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Fansub=void 0;const tslib_1=__webpack_require__2(70655),class_transformer_1=__webpack_require__2(51308),typeorm_1=__webpack_require__2(92274),User_1=__webpack_require__2(20945);let Fansub=__name(class{},"Fansub");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],Fansub.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Fansub.prototype,"name",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"// No Description"}),tslib_1.__metadata("design:type",String)],Fansub.prototype,"description",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",unique:!0}),tslib_1.__metadata("design:type",String)],Fansub.prototype,"slug",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"date"}),tslib_1.__metadata("design:type",Date)],Fansub.prototype,"born",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"boolean",default:!0}),tslib_1.__metadata("design:type",Boolean)],Fansub.prototype,"active",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Fansub.prototype,"urls",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Fansub.prototype,"rss_feed",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"[]"}),tslib_1.__metadata("design:type",String)],Fansub.prototype,"tags",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"/assets/img/favicon.png"}),tslib_1.__metadata("design:type",String)],Fansub.prototype,"image_url",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"/assets/img/favicon.png"}),tslib_1.__metadata("design:type",String)],Fansub.prototype,"cover_url",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Fansub.prototype,"view_count",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Fansub.prototype,"like_count",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Fansub.prototype,"dns_id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Fansub.prototype,"dns_id_alt",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"boolean",default:!0}),tslib_1.__metadata("design:type",Boolean)],Fansub.prototype,"editable",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Fansub.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Fansub.prototype,"updated_at",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.DeleteDateColumn)({type:"timestamp with time zone"}),tslib_1.__metadata("design:type",Object)],Fansub.prototype,"deleted_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],Fansub.prototype,"user_",void 0),Fansub=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"fansub"})],Fansub),exports2.Fansub=Fansub},71469:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubMember=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274),Fansub_1=__webpack_require__2(7460),User_1=__webpack_require__2(20945);let FansubMember=__name(class{},"FansubMember");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("uuid"),tslib_1.__metadata("design:type",String)],FansubMember.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],FansubMember.prototype,"keterangan",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"boolean",default:!1}),tslib_1.__metadata("design:type",Boolean)],FansubMember.prototype,"approved",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],FansubMember.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],FansubMember.prototype,"updated_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>Fansub_1.Fansub,{primary:!0}),tslib_1.__metadata("design:type",Object)],FansubMember.prototype,"fansub_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User,{primary:!0}),tslib_1.__metadata("design:type",Object)],FansubMember.prototype,"user_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],FansubMember.prototype,"approved_by_",void 0),FansubMember=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"fansub_member"})],FansubMember),exports2.FansubMember=FansubMember},66098:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Hirakata=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274);let Hirakata=__name(class{},"Hirakata");tslib_1.__decorate([(0,typeorm_1.PrimaryColumn)({type:"text"}),tslib_1.__metadata("design:type",String)],Hirakata.prototype,"romaji",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Hirakata.prototype,"hiragana",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Hirakata.prototype,"katakana",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Hirakata.prototype,"category",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Hirakata.prototype,"segment",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Hirakata.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Hirakata.prototype,"updated_at",void 0),Hirakata=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"hirakata"})],Hirakata),exports2.Hirakata=Hirakata},31542:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HirakataStats=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274),Hirakata_1=__webpack_require__2(66098),User_1=__webpack_require__2(20945);let HirakataStats=__name(class{},"HirakataStats");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],HirakataStats.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],HirakataStats.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],HirakataStats.prototype,"updated_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>Hirakata_1.Hirakata),tslib_1.__metadata("design:type",Object)],HirakataStats.prototype,"question_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>Hirakata_1.Hirakata),tslib_1.__metadata("design:type",Object)],HirakataStats.prototype,"answer_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],HirakataStats.prototype,"user_",void 0),HirakataStats=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"hirakatastats"})],HirakataStats),exports2.HirakataStats=HirakataStats},42014:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Information=void 0;const tslib_1=__webpack_require__2(70655),class_transformer_1=__webpack_require__2(51308),typeorm_1=__webpack_require__2(92274),User_1=__webpack_require__2(20945);let Information=__name(class{},"Information");tslib_1.__decorate([(0,typeorm_1.PrimaryColumn)({type:"text"}),tslib_1.__metadata("design:type",String)],Information.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Information.prototype,"title",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Information.prototype,"content",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"Ya"}),tslib_1.__metadata("design:type",String)],Information.prototype,"confirm",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Information.prototype,"cancel",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"boolean",default:!1}),tslib_1.__metadata("design:type",Boolean)],Information.prototype,"close",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Information.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Information.prototype,"updated_at",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.DeleteDateColumn)({type:"timestamp with time zone"}),tslib_1.__metadata("design:type",Object)],Information.prototype,"deleted_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),(0,typeorm_1.JoinColumn)(),tslib_1.__metadata("design:type",Object)],Information.prototype,"user_",void 0),Information=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"information"})],Information),exports2.Information=Information},75092:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Kanji=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274);let Kanji=__name(class{},"Kanji");tslib_1.__decorate([(0,typeorm_1.PrimaryColumn)({type:"text"}),tslib_1.__metadata("design:type",String)],Kanji.prototype,"character",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Kanji.prototype,"jlpt",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Kanji.prototype,"school",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Kanji.prototype,"stroke",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Kanji.prototype,"freq",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Kanji.prototype,"skip",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Kanji.prototype,"nelson_n",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Kanji.prototype,"nelson_c",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Kanji.prototype,"context",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Kanji.prototype,"harlpern_njecd",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Kanji.prototype,"harlpern_kkld",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Kanji.prototype,"gakken",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Kanji.prototype,"remember",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Kanji.prototype,"maniette",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Kanji.prototype,"v_onyomi",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Kanji.prototype,"v_kunyomi",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Kanji.prototype,"translate",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Kanji.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Kanji.prototype,"updated_at",void 0),Kanji=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"kanji"})],Kanji),exports2.Kanji=Kanji},85490:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.KanjiStats=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274),Kanji_1=__webpack_require__2(75092),User_1=__webpack_require__2(20945);let KanjiStats=__name(class{},"KanjiStats");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],KanjiStats.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],KanjiStats.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],KanjiStats.prototype,"updated_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>Kanji_1.Kanji),tslib_1.__metadata("design:type",Object)],KanjiStats.prototype,"question_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>Kanji_1.Kanji),tslib_1.__metadata("design:type",Object)],KanjiStats.prototype,"answer_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],KanjiStats.prototype,"user_",void 0),KanjiStats=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"kanjistats"})],KanjiStats),exports2.KanjiStats=KanjiStats},70185:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Kanjivg=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274);let Kanjivg=__name(class{},"Kanjivg");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],Kanjivg.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Kanjivg.prototype,"kanji",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Kanjivg.prototype,"level",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Kanjivg.prototype,"path",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Kanjivg.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Kanjivg.prototype,"updated_at",void 0),Kanjivg=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"kanjivg"})],Kanjivg),exports2.Kanjivg=Kanjivg},32175:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.KartuTandaPenduduk=void 0;const tslib_1=__webpack_require__2(70655),class_transformer_1=__webpack_require__2(51308),typeorm_1=__webpack_require__2(92274),req_res_model_1=__webpack_require__2(14249);let KartuTandaPenduduk=__name(class{},"KartuTandaPenduduk");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],KartuTandaPenduduk.prototype,"id",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"bigint",nullable:!0}),tslib_1.__metadata("design:type",Number)],KartuTandaPenduduk.prototype,"nik",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],KartuTandaPenduduk.prototype,"nama",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],KartuTandaPenduduk.prototype,"tempat_lahir",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"date",nullable:!0}),tslib_1.__metadata("design:type",Date)],KartuTandaPenduduk.prototype,"tanggal_lahir",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"enum",enum:req_res_model_1.JenisKelaminModel,nullable:!0}),tslib_1.__metadata("design:type",String)],KartuTandaPenduduk.prototype,"jenis_kelamin",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"enum",enum:req_res_model_1.GolonganDarahModel,nullable:!0}),tslib_1.__metadata("design:type",String)],KartuTandaPenduduk.prototype,"golongan_darah",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],KartuTandaPenduduk.prototype,"alamat",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"smallint",nullable:!0}),tslib_1.__metadata("design:type",Number)],KartuTandaPenduduk.prototype,"rt",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"smallint",nullable:!0}),tslib_1.__metadata("design:type",Number)],KartuTandaPenduduk.prototype,"rw",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],KartuTandaPenduduk.prototype,"kelurahan_desa",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],KartuTandaPenduduk.prototype,"kecamatan",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"enum",enum:req_res_model_1.AgamaModel,nullable:!0}),tslib_1.__metadata("design:type",String)],KartuTandaPenduduk.prototype,"agama",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],KartuTandaPenduduk.prototype,"status_perkawinan",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],KartuTandaPenduduk.prototype,"pekerjaan",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"enum",enum:req_res_model_1.WargaNegaraModel,nullable:!0}),tslib_1.__metadata("design:type",String)],KartuTandaPenduduk.prototype,"kewarganegaraan",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],KartuTandaPenduduk.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],KartuTandaPenduduk.prototype,"updated_at",void 0),KartuTandaPenduduk=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"kartu_tanda_penduduk"})],KartuTandaPenduduk),exports2.KartuTandaPenduduk=KartuTandaPenduduk},12214:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var Komentar_1;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Komentar=void 0;const tslib_1=__webpack_require__2(70655),class_transformer_1=__webpack_require__2(51308),typeorm_1=__webpack_require__2(92274),User_1=__webpack_require__2(20945);let Komentar=Komentar_1=__name(class{},"Komentar");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],Komentar.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Komentar.prototype,"comment",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Komentar.prototype,"path",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Komentar.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Komentar.prototype,"updated_at",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.DeleteDateColumn)({type:"timestamp with time zone"}),tslib_1.__metadata("design:type",Object)],Komentar.prototype,"deleted_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>Komentar_1),tslib_1.__metadata("design:type",Object)],Komentar.prototype,"parent_komentar_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],Komentar.prototype,"user_",void 0),Komentar=Komentar_1=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"komentar"})],Komentar),exports2.Komentar=Komentar},3692:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LikeDislike=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274),req_res_model_1=__webpack_require__2(14249),Berkas_1=__webpack_require__2(56115),Fansub_1=__webpack_require__2(7460),News_1=__webpack_require__2(1224),User_1=__webpack_require__2(20945);let LikeDislike=__name(class{},"LikeDislike");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("uuid"),tslib_1.__metadata("design:type",String)],LikeDislike.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"enum",enum:req_res_model_1.LikeAndDislikeModel}),tslib_1.__metadata("design:type",String)],LikeDislike.prototype,"type",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],LikeDislike.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],LikeDislike.prototype,"updated_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>News_1.News),tslib_1.__metadata("design:type",Object)],LikeDislike.prototype,"news_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>Berkas_1.Berkas),tslib_1.__metadata("design:type",Object)],LikeDislike.prototype,"berkas_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>Fansub_1.Fansub),tslib_1.__metadata("design:type",Object)],LikeDislike.prototype,"fansub_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],LikeDislike.prototype,"user_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],LikeDislike.prototype,"report_by_",void 0),LikeDislike=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"like_dislike"})],LikeDislike),exports2.LikeDislike=LikeDislike},45139:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Mailbox=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274),Attachment_1=__webpack_require__2(93595);let Mailbox=__name(class{},"Mailbox");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("uuid"),tslib_1.__metadata("design:type",String)],Mailbox.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",unique:!0}),tslib_1.__metadata("design:type",String)],Mailbox.prototype,"mail",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Mailbox.prototype,"from",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Mailbox.prototype,"to",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Mailbox.prototype,"cc",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Mailbox.prototype,"bcc",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Mailbox.prototype,"subject",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Mailbox.prototype,"html",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Mailbox.prototype,"text",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Mailbox.prototype,"date",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToMany)(type=>Attachment_1.Attachment),(0,typeorm_1.JoinTable)(),tslib_1.__metadata("design:type",Array)],Mailbox.prototype,"attachment_",void 0),Mailbox=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"mailbox"})],Mailbox),exports2.Mailbox=Mailbox},1224:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.News=void 0;const tslib_1=__webpack_require__2(70655),class_transformer_1=__webpack_require__2(51308),typeorm_1=__webpack_require__2(92274),User_1=__webpack_require__2(20945);let News=__name(class{},"News");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],News.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],News.prototype,"title",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],News.prototype,"content",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"/assets/img/favicon.png"}),tslib_1.__metadata("design:type",String)],News.prototype,"image_url",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"[]"}),tslib_1.__metadata("design:type",String)],News.prototype,"tags",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],News.prototype,"view_count",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],News.prototype,"like_count",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],News.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],News.prototype,"updated_at",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.DeleteDateColumn)({type:"timestamp with time zone"}),tslib_1.__metadata("design:type",Object)],News.prototype,"deleted_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],News.prototype,"user_",void 0),News=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"news"})],News),exports2.News=News},90053:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Nihongo=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274),User_1=__webpack_require__2(20945);let Nihongo=__name(class{},"Nihongo");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],Nihongo.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Nihongo.prototype,"romaji",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Nihongo.prototype,"kana",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Nihongo.prototype,"meaning",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Nihongo.prototype,"category",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Nihongo.prototype,"audio",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"/assets/img/favicon.png"}),tslib_1.__metadata("design:type",String)],Nihongo.prototype,"image_url",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Nihongo.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Nihongo.prototype,"updated_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],Nihongo.prototype,"user_",void 0),Nihongo=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"nihongo"})],Nihongo),exports2.Nihongo=Nihongo},60115:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Notification=void 0;const tslib_1=__webpack_require__2(70655),class_transformer_1=__webpack_require__2(51308),typeorm_1=__webpack_require__2(92274),User_1=__webpack_require__2(20945);let Notification=__name(class{},"Notification");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],Notification.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Notification.prototype,"type",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Notification.prototype,"title",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Notification.prototype,"content",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"boolean"}),tslib_1.__metadata("design:type",Boolean)],Notification.prototype,"dismissible",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"timestamp"}),tslib_1.__metadata("design:type",Date)],Notification.prototype,"deadline",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Notification.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Notification.prototype,"updated_at",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.DeleteDateColumn)({type:"timestamp with time zone"}),tslib_1.__metadata("design:type",Object)],Notification.prototype,"deleted_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),(0,typeorm_1.JoinColumn)(),tslib_1.__metadata("design:type",Object)],Notification.prototype,"user_",void 0),Notification=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"notification"})],Notification),exports2.Notification=Notification},86836:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Profile=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274);let Profile=__name(class{},"Profile");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],Profile.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"// No Description"}),tslib_1.__metadata("design:type",String)],Profile.prototype,"description",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"/assets/img/favicon.png"}),tslib_1.__metadata("design:type",String)],Profile.prototype,"cover_url",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Profile.prototype,"view_count",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Profile.prototype,"like_count",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int",default:0}),tslib_1.__metadata("design:type",Number)],Profile.prototype,"points",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Profile.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Profile.prototype,"updated_at",void 0),Profile=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"profile"})],Profile),exports2.Profile=Profile},98778:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ProjectType=void 0;const tslib_1=__webpack_require__2(70655),class_transformer_1=__webpack_require__2(51308),typeorm_1=__webpack_require__2(92274);let ProjectType=__name(class{},"ProjectType");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],ProjectType.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],ProjectType.prototype,"name",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"// No Description"}),tslib_1.__metadata("design:type",String)],ProjectType.prototype,"description",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"/assets/img/favicon.png"}),tslib_1.__metadata("design:type",String)],ProjectType.prototype,"image_url",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],ProjectType.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],ProjectType.prototype,"updated_at",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.DeleteDateColumn)({type:"timestamp with time zone"}),tslib_1.__metadata("design:type",Object)],ProjectType.prototype,"deleted_at",void 0),ProjectType=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"project_types"})],ProjectType),exports2.ProjectType=ProjectType},18143:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Registration=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274);let Registration=__name(class{},"Registration");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("uuid"),tslib_1.__metadata("design:type",String)],Registration.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",unique:!0}),tslib_1.__metadata("design:type",String)],Registration.prototype,"username",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",unique:!0}),tslib_1.__metadata("design:type",String)],Registration.prototype,"email",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Registration.prototype,"password",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Registration.prototype,"nama",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Registration.prototype,"activation_token",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Registration.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Registration.prototype,"updated_at",void 0),Registration=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"registration"})],Registration),exports2.Registration=Registration},48234:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SocialMedia=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274),req_res_model_1=__webpack_require__2(14249),User_1=__webpack_require__2(20945);let SocialMedia=__name(class{},"SocialMedia");tslib_1.__decorate([(0,typeorm_1.PrimaryColumn)({type:"text"}),tslib_1.__metadata("design:type",String)],SocialMedia.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],SocialMedia.prototype,"refresh_token",void 0),tslib_1.__decorate([(0,typeorm_1.PrimaryColumn)({type:"enum",enum:req_res_model_1.SosMedModel}),tslib_1.__metadata("design:type",String)],SocialMedia.prototype,"type",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],SocialMedia.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],SocialMedia.prototype,"updated_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],SocialMedia.prototype,"user_",void 0),SocialMedia=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"social_media"})],SocialMedia),exports2.SocialMedia=SocialMedia},82535:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Tatoeba=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274);let Tatoeba=__name(class{},"Tatoeba");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],Tatoeba.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Tatoeba.prototype,"phrase",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Tatoeba.prototype,"kanji",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Tatoeba.prototype,"flags",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],Tatoeba.prototype,"translate",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Tatoeba.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Tatoeba.prototype,"updated_at",void 0),Tatoeba=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"tatoeba"})],Tatoeba),exports2.Tatoeba=Tatoeba},88808:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.TempAttachment=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274),User_1=__webpack_require__2(20945);let TempAttachment=__name(class{},"TempAttachment");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("uuid"),tslib_1.__metadata("design:type",String)],TempAttachment.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],TempAttachment.prototype,"name",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],TempAttachment.prototype,"ext",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"int"}),tslib_1.__metadata("design:type",Number)],TempAttachment.prototype,"size",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],TempAttachment.prototype,"mime",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],TempAttachment.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],TempAttachment.prototype,"updated_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],TempAttachment.prototype,"user_",void 0),TempAttachment=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"temp_attachment"})],TempAttachment),exports2.TempAttachment=TempAttachment},75337:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Track=void 0;const tslib_1=__webpack_require__2(70655),typeorm_1=__webpack_require__2(92274),Berkas_1=__webpack_require__2(56115),Fansub_1=__webpack_require__2(7460),News_1=__webpack_require__2(1224),User_1=__webpack_require__2(20945);let Track=__name(class{},"Track");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],Track.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],Track.prototype,"ip",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Track.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],Track.prototype,"updated_at",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>News_1.News),tslib_1.__metadata("design:type",Object)],Track.prototype,"news_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>Berkas_1.Berkas),tslib_1.__metadata("design:type",Object)],Track.prototype,"berkas_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>Fansub_1.Fansub),tslib_1.__metadata("design:type",Object)],Track.prototype,"fansub_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],Track.prototype,"user_",void 0),tslib_1.__decorate([(0,typeorm_1.ManyToOne)(type=>User_1.User),tslib_1.__metadata("design:type",Object)],Track.prototype,"track_by_",void 0),Track=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"track"})],Track),exports2.Track=Track},20945:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.User=void 0;const tslib_1=__webpack_require__2(70655),class_transformer_1=__webpack_require__2(51308),typeorm_1=__webpack_require__2(92274),req_res_model_1=__webpack_require__2(14249),KartuTandaPenduduk_1=__webpack_require__2(32175),Profile_1=__webpack_require__2(86836);let User=__name(class{},"User");tslib_1.__decorate([(0,typeorm_1.PrimaryGeneratedColumn)("increment"),tslib_1.__metadata("design:type",Number)],User.prototype,"id",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",unique:!0}),tslib_1.__metadata("design:type",String)],User.prototype,"username",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"text",unique:!0}),tslib_1.__metadata("design:type",String)],User.prototype,"email",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"text",default:"/assets/img/favicon.png"}),tslib_1.__metadata("design:type",String)],User.prototype,"image_url",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"enum",enum:req_res_model_1.RoleModel,default:req_res_model_1.RoleModel.USER}),tslib_1.__metadata("design:type",String)],User.prototype,"role",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"text"}),tslib_1.__metadata("design:type",String)],User.prototype,"password",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"boolean",default:!1}),tslib_1.__metadata("design:type",Boolean)],User.prototype,"verified",void 0),tslib_1.__decorate([(0,typeorm_1.Column)({type:"boolean",default:!1}),tslib_1.__metadata("design:type",Boolean)],User.prototype,"private",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],User.prototype,"session_token",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.Column)({type:"text",nullable:!0}),tslib_1.__metadata("design:type",String)],User.prototype,"session_origin",void 0),tslib_1.__decorate([(0,typeorm_1.CreateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],User.prototype,"created_at",void 0),tslib_1.__decorate([(0,typeorm_1.UpdateDateColumn)({type:"timestamp with time zone",default:()=>"CURRENT_TIMESTAMP"}),tslib_1.__metadata("design:type",Object)],User.prototype,"updated_at",void 0),tslib_1.__decorate([(0,class_transformer_1.Exclude)(),(0,typeorm_1.DeleteDateColumn)({type:"timestamp with time zone"}),tslib_1.__metadata("design:type",Object)],User.prototype,"deleted_at",void 0),tslib_1.__decorate([(0,typeorm_1.OneToOne)(type=>KartuTandaPenduduk_1.KartuTandaPenduduk,{cascade:!0}),(0,typeorm_1.JoinColumn)(),tslib_1.__metadata("design:type",Object)],User.prototype,"kartu_tanda_penduduk_",void 0),tslib_1.__decorate([(0,typeorm_1.OneToOne)(type=>Profile_1.Profile,{cascade:!0}),(0,typeorm_1.JoinColumn)(),tslib_1.__metadata("design:type",Object)],User.prototype,"profile_",void 0),User=tslib_1.__decorate([(0,typeorm_1.Entity)({name:"users"})],User),exports2.User=User},15401:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HttpExceptionFilter=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),environment_1=__webpack_require__2(17482),global_service_1=__webpack_require__2(40735),socket_io_service_1=__webpack_require__2(98095);let HttpExceptionFilter=__name(class{constructor(gs,sis){this.gs=gs,this.sis=sis}catch(exception,host){const ctx=host.switchToHttp(),req=ctx.getRequest(),res=ctx.getResponse(),statusCode=exception.getStatus();let body=exception.getResponse();if(statusCode===common_1.HttpStatus.UNAUTHORIZED){const socketId=(req.headers["x-socket-id"]||"").toString();if(socketId){const socket=this.sis.getClientSocket(socketId);socket&&this.sis.disconnectRoom(socket)}res.cookie(environment_1.environment.tokenName,"TOKEN_EXPIRED",{httpOnly:!0,secure:environment_1.environment.production,sameSite:"strict",maxAge:0,domain:environment_1.environment.domain})}this.gs.log(`[HTTP_EXCEPTION-RESPONSE_HEADER_${statusCode}] \u{1f3f9}`,res.getHeaders()),res.locals.xml&&(this.gs.log("[HTTP_EXCEPTION-RESPONSE_BODY_JSON_2_XML] \u{1f3f9}",body),res.set("Content-Type","application/xml"),body=this.gs.OBJ2XML(body)),this.gs.log(`[HTTP_EXCEPTION-RESPONSE_BODY_${statusCode}] \u{1f3f9}`,body),res.status(statusCode).send(body)}},"HttpExceptionFilter");HttpExceptionFilter=tslib_1.__decorate([(0,common_1.Catch)(common_1.HttpException),tslib_1.__metadata("design:paramtypes",[global_service_1.GlobalService,socket_io_service_1.SocketIoService])],HttpExceptionFilter),exports2.HttpExceptionFilter=HttpExceptionFilter},99234:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SocketIoGateway=void 0;const tslib_1=__webpack_require__2(70655),websockets_1=__webpack_require__2(6279),socket_io_1=__webpack_require__2(30989),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),req_res_model_1=__webpack_require__2(14249),config_service_1=__webpack_require__2(94315),global_service_1=__webpack_require__2(40735),quiz_service_1=__webpack_require__2(48902),socket_io_service_1=__webpack_require__2(98095),tracker_statistics_tasks_service_1=__webpack_require__2(13266),berkas_service_1=__webpack_require__2(17319),fansub_service_1=__webpack_require__2(51467),news_service_1=__webpack_require__2(48519),profile_service_1=__webpack_require__2(38854),track_service_1=__webpack_require__2(65896),user_service_1=__webpack_require__2(50675);let SocketIoGateway=__name(class{constructor(cfg,berkasRepo,fansubRepo,gs,newsRepo,profileRepo,qs,sis,trackRepo,userRepo,ts){this.cfg=cfg,this.berkasRepo=berkasRepo,this.fansubRepo=fansubRepo,this.gs=gs,this.newsRepo=newsRepo,this.profileRepo=profileRepo,this.qs=qs,this.sis=sis,this.trackRepo=trackRepo,this.userRepo=userRepo,this.ts=ts}afterInit(server){this.sis.setSocketIoServer(server)}handleConnection(client,...args2){var _a;this.gs.log("[SOCKET_IO_GATEWAY-CLIENT_CONNECTED] \u{1f31f}",client.id),this.sis.emitToBroadcast("visitors",(null===(_a=this.sis.getAllClientsSocket())||void 0===_a?void 0:_a.size)||0),this.sis.checkNewNotification(client),this.ts.updateVisitor()}handleDisconnect(client,...args2){var _a;this.gs.log("[SOCKET_IO_GATEWAY-CLIENT_DISCONNECTED] \u{1f31f}",client.id),this.sis.emitToBroadcast("visitors",(null===(_a=this.sis.getAllClientsSocket())||void 0===_a?void 0:_a.size)||0),this.sis.disconnectRoom(client),this.ts.updateVisitor()}pingPong(client,payload){return{github:this.cfg.github,server:this.cfg.serverGet()}}statsServer(client,payload){return this.cfg.statsServer}serverSet(client,payload){var _this=this;return _asyncToGenerator(function*(){try{yield _this.sis.checkUserLogin(client,payload),payload.user&&(payload.user.role===req_res_model_1.RoleModel.ADMIN||payload.user.role===req_res_model_1.RoleModel.MODERATOR)&&(_this.cfg.serverSet(payload),_this.sis.emitToBroadcast("server-config",_this.cfg.serverGet()))}catch(error){_this.gs.log("[SOCKET_IO_SERVER_SET-ERROR] \u{1f31f}",error,"error")}})()}trackGet(client,payload){var _this2=this;return _asyncToGenerator(function*(){try{let selected=null;const idSlugUsername=payload.idSlugUsername.split("?")[0];if("berkas"===payload.trackType)selected=yield _this2.berkasRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(idSlugUsername)}]});else if("fansub"===payload.trackType)selected=yield _this2.fansubRepo.findOneOrFail({where:[{slug:(0,typeorm_1.ILike)(idSlugUsername)}]});else if("user"===payload.trackType)selected=yield _this2.userRepo.findOneOrFail({where:[{username:(0,typeorm_1.ILike)(idSlugUsername)}]});else{if("news"!==payload.trackType)throw new Error("Data Tidak Lengkap!");selected=yield _this2.newsRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(idSlugUsername))}]})}let tracks=null;const result={};tracks=yield _this2.trackRepo.find({where:[{[`${payload.trackType}_`]:{id:(0,typeorm_1.Equal)(selected.id)}}],relations:["news_","berkas_","fansub_","user_","track_by_"]}),result.unique_ip=[...new Set(tracks.map(t=>t.ip))].length,result.unique_user=[...new Set(tracks.map(t=>{var _a;return null===(_a=t.track_by_)||void 0===_a?void 0:_a.id}))].length,result.verified_user=[...new Set(tracks.map(t=>{var _a;return!0===(null===(_a=t.track_by_)||void 0===_a?void 0:_a.verified)}))].length,result.un_verified_user=[...new Set(tracks.map(t=>{var _a;return!1===(null===(_a=t.track_by_)||void 0===_a?void 0:_a.verified)}))].length;const trackColumnName=_this2.trackRepo.getMetaData().columns.find(column=>column.propertyName.startsWith(`${payload.trackType}_`)).propertyName;return tracks=yield _this2.trackRepo.query(`\n SELECT *\n FROM\n (\n SELECT\n visitor_date::DATE\n FROM generate_series(\n NOW() - INTERVAL '7 DAY',\n NOW(),\n INTERVAL '1 DAY'\n ) visitor_date\n ) d\n LEFT JOIN (\n SELECT\n DATE_TRUNC('DAY', created_at)::DATE visitor_date,\n COUNT(*) visitor_count\n FROM\n track\n WHERE\n created_at >= NOW() - INTERVAL '7 DAY'\n AND ${trackColumnName}id = $1\n GROUP BY 1\n ) t USING (visitor_date)\n ORDER BY\n visitor_date ASC\n `,[selected.id]),result.visitor=tracks,result}catch(error){return _this2.gs.log("[SOCKET_IO_TRACK_GET-ERROR] \u{1f31f}",error,"error"),{unique_ip:0,unique_user:0,verified_user:0,un_verified_user:0,visitor:[{visitor_date:new Date,visitor_count:0}]}}})()}trackSet(client,payload){var _this3=this;return _asyncToGenerator(function*(){if(payload.pathUrl.startsWith("/berkas/")||payload.pathUrl.startsWith("/fansub/")||payload.pathUrl.startsWith("/news/")||payload.pathUrl.startsWith("/user/"))try{yield _this3.sis.checkUserLogin(client,payload);const trackType=payload.pathUrl.split("?")[0].split("/")[1],idSlugUsername=payload.pathUrl.split("?")[0].split("/")[2];let selectedRepo=null,selected=null;if("berkas"===trackType)selectedRepo=_this3.berkasRepo,selected=yield _this3.berkasRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(idSlugUsername)}]});else if("fansub"===trackType)selectedRepo=_this3.fansubRepo,selected=yield _this3.fansubRepo.findOneOrFail({where:[{slug:(0,typeorm_1.ILike)(idSlugUsername)}]});else if("user"===trackType)selectedRepo=_this3.userRepo,selected=yield _this3.userRepo.findOneOrFail({where:[{username:(0,typeorm_1.ILike)(idSlugUsername)}],relations:["profile_"]});else{if("news"!==trackType)throw new Error("Data Tidak Lengkap!");selectedRepo=_this3.newsRepo,selected=yield _this3.newsRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(parseInt(idSlugUsername))}]})}if((yield _this3.trackRepo.find({where:[{...payload.user&&payload.user.id?{ip:(0,typeorm_1.Equal)(payload.ip),[`${trackType}_`]:{id:(0,typeorm_1.Equal)(selected.id)},track_by_:{id:(0,typeorm_1.Equal)(payload.user.id)}}:{ip:(0,typeorm_1.Equal)(payload.ip),[`${trackType}_`]:{id:(0,typeorm_1.Equal)(selected.id)},track_by_:(0,typeorm_1.IsNull)()}}],relations:["news_","berkas_","fansub_","user_","track_by_"]})).length<=0){const track=_this3.trackRepo.new();track.ip=payload.ip,track[`${trackType}_`]=selected,payload.user&&(track.track_by_=payload.user),yield _this3.trackRepo.save(track),"user"===trackType&&(selectedRepo=_this3.profileRepo,selected=yield _this3.profileRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(selected.profile_.id)}]}));const visitorCount=yield _this3.trackRepo.count({where:[{[`${trackType}_`]:{id:(0,typeorm_1.Equal)(selected.id)}}],relations:["news_","berkas_","fansub_","user_"]});selected.view_count=visitorCount,yield selectedRepo.save(selected)}}catch(error){_this3.gs.log("[SOCKET_IO_TRACK_SET-ERROR] \u{1f31f}",error,"error")}})()}leaveJoinRoom(client,payload){var _this4=this;return _asyncToGenerator(function*(){try{yield _this4.sis.checkUserLogin(client,payload),yield _this4.sis.leaveRoom(client,payload),yield _this4.sis.joinOrUpdateRoom(client,payload),yield _this4.sis.joinOrUpdateRoom(client,{user:payload.user,newRoom:constants_1.CONSTANTS.socketRoomNameGlobalPublic}),_this4.sis.checkMultipleConnection(client,payload),payload.user&&(payload.user.role===req_res_model_1.RoleModel.ADMIN||payload.user.role===req_res_model_1.RoleModel.MODERATOR||payload.user.role===req_res_model_1.RoleModel.FANSUBBER)&&((payload.user.role===req_res_model_1.RoleModel.ADMIN||payload.user.role===req_res_model_1.RoleModel.MODERATOR)&&(yield _this4.sis.joinOrUpdateRoom(client,{user:payload.user,newRoom:constants_1.CONSTANTS.socketRoomNameServerLogs})),yield _this4.sis.joinOrUpdateRoom(client,{user:payload.user,newRoom:constants_1.CONSTANTS.socketRoomNameGlobalFansub}))}catch(error){_this4.gs.log("[SOCKET_IO_LEAVE_JOIN_ROOM-ERROR] \u{1f31f}",error,"error")}})()}roomInfo(client,payload){if(payload.roomId)return this.sis.getRoomInfo(payload.roomId)}forceLogout(client,payload){var _this5=this;return _asyncToGenerator(function*(){try{if(yield _this5.sis.checkUserLogin(client,payload),payload.user&&(payload.user.role===req_res_model_1.RoleModel.ADMIN||payload.user.role===req_res_model_1.RoleModel.MODERATOR)){const multipleSocketId=[];for(const socketId of Object.keys(_this5.sis.rooms[constants_1.CONSTANTS.socketRoomNameGlobalPublic]))socketId!==client.id&&_this5.sis.rooms[constants_1.CONSTANTS.socketRoomNameGlobalPublic][socketId]&&_this5.sis.rooms[constants_1.CONSTANTS.socketRoomNameGlobalPublic][socketId].username===payload.username&&multipleSocketId.push(socketId);for(const id of multipleSocketId)_this5.sis.emitToRoomOrId(id,"force-logout",payload.reason)}}catch(error){_this5.gs.log("[SOCKET_IO_FORCE_LOGOUT-ERROR] \u{1f31f}",error,"error")}})()}sendChat(client,payload){var _this6=this;return _asyncToGenerator(function*(){try{if(yield _this6.sis.checkUserLogin(client,payload),payload.user){const chatData={room_id:payload.roomId,sender:payload.user,message:payload.message};payload.roomId===constants_1.CONSTANTS.socketRoomNameGlobalPublic?_this6.sis.emitToRoomOrId(constants_1.CONSTANTS.socketRoomNameGlobalPublic,"receive-chat",chatData):payload.roomId===constants_1.CONSTANTS.socketRoomNameGlobalFansub?(payload.user.role===req_res_model_1.RoleModel.ADMIN||payload.user.role===req_res_model_1.RoleModel.MODERATOR||payload.user.role===req_res_model_1.RoleModel.FANSUBBER)&&_this6.sis.emitToRoomOrId(constants_1.CONSTANTS.socketRoomNameGlobalFansub,"receive-chat",chatData):_this6.sis.emitToRoomOrId(payload.roomId,"receive-chat",chatData)}}catch(error){_this6.gs.log("[SOCKET_IO_SEND_CHAT-ERROR] \u{1f31f}",error,"error")}})()}quizAnswer(client,payload){var _this7=this;return _asyncToGenerator(function*(){try{if(yield _this7.sis.checkUserLogin(client,payload),payload.user&&_this7.qs.quiz[payload.roomId]&&_this7.qs.quiz[payload.roomId].randomInteger===payload.randomInteger&&!_this7.qs.quiz[payload.roomId].isAnswering){_this7.qs.quiz[payload.roomId].isAnswering=!0;let answer=0;answer=Object.entries(_this7.qs.quiz[payload.roomId].question).toString()===Object.entries(payload.answer).toString()?yield _this7.sis.increasePlayerPoint(client,payload):yield _this7.sis.decreasePlayerPoint(client,payload);try{yield _this7.qs.getNewQuestion(payload.roomId)}catch(err){throw _this7.sis.emitToRoomOrId(payload.roomId,"force-redirect",{title:"Terjadi Kesalahan",message:"Kuis Tidak Tersedia",url:"/nihongo"}),err}_this7.sis.emitToRoomOrId(payload.roomId,"receive-chat",{room_id:payload.roomId,sender:{username:"[\u{1f4e2}-LOG]"},message:`'${payload.user.username}' Menjawab ${answer>0?"Benar ":"Salah "} (${answer})`}),_this7.sis.emitToRoomOrId(payload.roomId,"quiz-question",{room_id:payload.roomId,..._this7.qs.quiz[payload.roomId]}),_this7.sis.emitToRoomOrId(payload.roomId,"room-info",_this7.sis.getRoomInfo(payload.roomId))}}catch(error){_this7.gs.log("[SOCKET_IO_QUIZ_ANSWER-ERROR] \u{1f31f}",error,"error")}})()}},"SocketIoGateway");tslib_1.__decorate([(0,websockets_1.SubscribeMessage)("ping-pong"),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[socket_io_1.Socket,Object]),tslib_1.__metadata("design:returntype",Object)],SocketIoGateway.prototype,"pingPong",null),tslib_1.__decorate([(0,websockets_1.SubscribeMessage)("stats-server"),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[socket_io_1.Socket,Object]),tslib_1.__metadata("design:returntype",Object)],SocketIoGateway.prototype,"statsServer",null),tslib_1.__decorate([(0,websockets_1.SubscribeMessage)("server-set"),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[socket_io_1.Socket,Object]),tslib_1.__metadata("design:returntype",Promise)],SocketIoGateway.prototype,"serverSet",null),tslib_1.__decorate([(0,websockets_1.SubscribeMessage)("track-get"),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[socket_io_1.Socket,Object]),tslib_1.__metadata("design:returntype",Promise)],SocketIoGateway.prototype,"trackGet",null),tslib_1.__decorate([(0,websockets_1.SubscribeMessage)("track-set"),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[socket_io_1.Socket,Object]),tslib_1.__metadata("design:returntype",Promise)],SocketIoGateway.prototype,"trackSet",null),tslib_1.__decorate([(0,websockets_1.SubscribeMessage)("leave-join-room"),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[socket_io_1.Socket,Object]),tslib_1.__metadata("design:returntype",Promise)],SocketIoGateway.prototype,"leaveJoinRoom",null),tslib_1.__decorate([(0,websockets_1.SubscribeMessage)("room-info"),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[socket_io_1.Socket,Object]),tslib_1.__metadata("design:returntype",Object)],SocketIoGateway.prototype,"roomInfo",null),tslib_1.__decorate([(0,websockets_1.SubscribeMessage)("force-logout"),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[socket_io_1.Socket,Object]),tslib_1.__metadata("design:returntype",Promise)],SocketIoGateway.prototype,"forceLogout",null),tslib_1.__decorate([(0,websockets_1.SubscribeMessage)("send-chat"),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[socket_io_1.Socket,Object]),tslib_1.__metadata("design:returntype",Promise)],SocketIoGateway.prototype,"sendChat",null),tslib_1.__decorate([(0,websockets_1.SubscribeMessage)("quiz-answer"),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[socket_io_1.Socket,Object]),tslib_1.__metadata("design:returntype",Promise)],SocketIoGateway.prototype,"quizAnswer",null),SocketIoGateway=tslib_1.__decorate([(0,websockets_1.WebSocketGateway)(),tslib_1.__metadata("design:paramtypes",[config_service_1.ConfigService,berkas_service_1.BerkasService,fansub_service_1.FansubService,global_service_1.GlobalService,news_service_1.NewsService,profile_service_1.ProfileService,quiz_service_1.QuizService,socket_io_service_1.SocketIoService,track_service_1.TrackService,user_service_1.UserService,tracker_statistics_tasks_service_1.TrackerStatisticsService])],SocketIoGateway),exports2.SocketIoGateway=SocketIoGateway},76399:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FilterApiKeyAccessGuard=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),core_1=__webpack_require__2(30163),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),req_res_model_1=__webpack_require__2(14249),api_key_service_1=__webpack_require__2(87044),global_service_1=__webpack_require__2(40735);let FilterApiKeyAccessGuard=__name(class{constructor(reflector,gs,aks){this.reflector=reflector,this.gs=gs,this.aks=aks}canActivate(context){var _this=this;return _asyncToGenerator(function*(){if(_this.reflector.get(constants_1.CONSTANTS.decoratorFilterApiKeyAccess,context.getHandler())){const apiKey=context.switchToHttp().getResponse().locals.key;if(apiKey){_this.gs.log("[FILTER_API_KEY_ACCESS_GUARD-API_KEY] \u2705",apiKey);try{if((yield _this.aks.count({where:[{api_key:(0,typeorm_1.Equal)(apiKey),user_:(0,typeorm_1.IsNull)()},{api_key:(0,typeorm_1.Equal)(apiKey),user_:{role:(0,typeorm_1.In)([req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR])}}],relations:["user_"]}))<=0)throw"API-Key Tidak Memiliki Hak Akses!"}catch{throw new common_1.HttpException({info:"\u{1f621} 418 - Cek Kunci :: Whoops, Akses Ditolak \u{1f624}",result:{message:"API-Key Tidak Memiliki Hak Akses!"}},common_1.HttpStatus.I_AM_A_TEAPOT)}}}return!0})()}},"FilterApiKeyAccessGuard");FilterApiKeyAccessGuard=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[core_1.Reflector,global_service_1.GlobalService,api_key_service_1.ApiKeyService])],FilterApiKeyAccessGuard),exports2.FilterApiKeyAccessGuard=FilterApiKeyAccessGuard},45627:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RateLimitGuard=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),throttler_1=__webpack_require__2(44962),api_key_service_1=__webpack_require__2(87044),config_service_1=__webpack_require__2(94315),global_service_1=__webpack_require__2(40735);let RateLimitGuard=__name(class extends throttler_1.ThrottlerGuard{getTracker(req){return this.aks.getOriginIpCc(req,!0).origin_ip}handleRequest(context,limit,ttl){var _this=this;return _asyncToGenerator(function*(){const http=context.switchToHttp(),req=http.getRequest(),clientOriginIpCc=_this.aks.getOriginIpCc(req);if(_this.cfg.domainIpBypass.includes(clientOriginIpCc.origin_ip))return!0;const key=http.getResponse().locals.key||_this.generateKey(context,clientOriginIpCc.origin_ip),ttls=yield _this.storageService.getRecord(key);if(_this.gs.log("[RATE_LIMIT_GUARD-SESSION] \u231b",ttls),ttls.length>limit)throw new common_1.HttpException({info:"\u{1f4a9} 429 - Rate Limit :: Kebanjiran Permintaan \u{1f92c}",result:{message:"Sabar Wheiy, Jangan Nge-SPAM",limit,ttl}},common_1.HttpStatus.TOO_MANY_REQUESTS);return yield _this.storageService.addRecord(key,ttl),!0})()}},"RateLimitGuard");tslib_1.__decorate([(0,common_1.Inject)(api_key_service_1.ApiKeyService),tslib_1.__metadata("design:type",api_key_service_1.ApiKeyService)],RateLimitGuard.prototype,"aks",void 0),tslib_1.__decorate([(0,common_1.Inject)(config_service_1.ConfigService),tslib_1.__metadata("design:type",config_service_1.ConfigService)],RateLimitGuard.prototype,"cfg",void 0),tslib_1.__decorate([(0,common_1.Inject)(global_service_1.GlobalService),tslib_1.__metadata("design:type",global_service_1.GlobalService)],RateLimitGuard.prototype,"gs",void 0),RateLimitGuard=tslib_1.__decorate([(0,common_1.Injectable)()],RateLimitGuard),exports2.RateLimitGuard=RateLimitGuard},46429:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RolesGuard=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),core_1=__webpack_require__2(30163),constants_1=__webpack_require__2(26271),global_service_1=__webpack_require__2(40735);let RolesGuard=__name(class{constructor(reflector,gs){this.reflector=reflector,this.gs=gs}canActivate(context){const requiredRoles=this.reflector.getAllAndOverride(constants_1.CONSTANTS.decoratorRoles,[context.getHandler(),context.getClass()]);if(!requiredRoles)return!0;const user=context.switchToHttp().getResponse().locals.user;if(user){if(this.gs.log("[ROLES_GUARD-USER] \u{1f9e8}",user),requiredRoles.includes(user.role))return!0;throw new common_1.HttpException({info:"\u{1f621} 403 - Authorization :: Whoops, Akses Ditolak \u{1f624}",result:{message:`Membutuhkan Hak ${requiredRoles.join(", ")}`}},common_1.HttpStatus.FORBIDDEN)}throw new common_1.HttpException({info:"\u{1f621} 401 - Authorization :: Whoops, Akses Ditolak \u{1f624}",result:{message:"Silahkan Login Terlebih Dahulu!"}},common_1.HttpStatus.UNAUTHORIZED)}},"RolesGuard");RolesGuard=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[core_1.Reflector,global_service_1.GlobalService])],RolesGuard),exports2.RolesGuard=RolesGuard},25143:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.VerifiedOnlyGuard=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),core_1=__webpack_require__2(30163),constants_1=__webpack_require__2(26271),global_service_1=__webpack_require__2(40735);let VerifiedOnlyGuard=__name(class{constructor(reflector,gs){this.reflector=reflector,this.gs=gs}canActivate(context){if(!this.reflector.get(constants_1.CONSTANTS.decoratorVerifiedOnly,context.getHandler()))return!0;const user=context.switchToHttp().getResponse().locals.user;if(user){if(this.gs.log("[VERIFIED_GUARD-USER] \u2705",user),user.verified)return!0;throw new common_1.HttpException({info:"\u{1f621} 418 - Authorization :: Whoops, Akses Ditolak \u{1f624}",result:{message:"Khusus Pengguna Terverifikasi!"}},common_1.HttpStatus.I_AM_A_TEAPOT)}throw new common_1.HttpException({info:"\u{1f621} 401 - Authorization :: Whoops, Akses Ditolak \u{1f624}",result:{message:"Silahkan Login Terlebih Dahulu!"}},common_1.HttpStatus.UNAUTHORIZED)}},"VerifiedOnlyGuard");VerifiedOnlyGuard=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[core_1.Reflector,global_service_1.GlobalService])],VerifiedOnlyGuard),exports2.VerifiedOnlyGuard=VerifiedOnlyGuard},88627:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ExcludeFieldInterceptor=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),rxjs_1=__webpack_require__2(76477),class_transformer_1=__webpack_require__2(51308),global_service_1=__webpack_require__2(40735);let ExcludeFieldInterceptor=__name(class{constructor(gs){this.gs=gs}intercept(context,next){return next.handle().pipe((0,rxjs_1.map)(data=>(this.gs.log("[TRANSFORM_INTERCEPTOR] \u{1f4a5}",data),(0,class_transformer_1.instanceToPlain)(data))))}},"ExcludeFieldInterceptor");ExcludeFieldInterceptor=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[global_service_1.GlobalService])],ExcludeFieldInterceptor),exports2.ExcludeFieldInterceptor=ExcludeFieldInterceptor},72892:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ReqResInterceptor=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),rxjs_1=__webpack_require__2(76477),config_service_1=__webpack_require__2(94315),global_service_1=__webpack_require__2(40735);let ReqResInterceptor=__name(class{constructor(cfg,gs){this.cfg=cfg,this.gs=gs}intercept(context,next){const http=context.switchToHttp(),req=http.getRequest(),res=http.getResponse();for(const propName in req.body)(""===req.body[propName]||void 0===req.body[propName]||null===req.body[propName])&&delete req.body[propName];switch(this.gs.log(`[REQ_RES_INTERCEPTOR-REQUEST_HEADER_${req.method}] \u{1f3f9}`,req.headers),this.gs.log(`[REQ_RES_INTERCEPTOR-REQUEST_BODY_${req.method}] \u{1f3f9}`,req.body),req.method){case"POST":case"PUT":if(this.cfg.serverGetMaintenance())throw new common_1.HttpException({info:"\u{1f927} 503 - Settings API :: Server Maintenance \u{1f637}",result:{message:"Server Sedang Dalam Tahap Perawatan!"}},common_1.HttpStatus.SERVICE_UNAVAILABLE)}return next.handle().pipe((0,rxjs_1.map)(body=>(this.gs.log(`[REQ_RES_INTERCEPTOR-RESPONSE_HEADER_${res.statusCode}] \u{1f3f9}`,res.getHeaders()),res.locals.xml&&(this.gs.log("[REQ_RES_INTERCEPTOR-RESPONSE_BODY_JSON_2_XML] \u{1f3f9}",req.body),res.set("Content-Type","application/xml"),body=this.gs.OBJ2XML(body)),this.gs.log(`[REQ_RES_INTERCEPTOR-RESPONSE_BODY_${res.statusCode}] \u{1f3f9}`,body),body)))}},"ReqResInterceptor");ReqResInterceptor=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[config_service_1.ConfigService,global_service_1.GlobalService])],ReqResInterceptor),exports2.ReqResInterceptor=ReqResInterceptor},55466:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.app=void 0;const tslib_1=__webpack_require__2(70655),compression_1=tslib_1.__importDefault(__webpack_require__2(27787)),cookie_parser_1=tslib_1.__importDefault(__webpack_require__2(82500)),helmet_1=tslib_1.__importDefault(__webpack_require__2(74945)),abort_controller_1=__webpack_require__2(12590),environment_1=__webpack_require__2(17482),swagger_1=__webpack_require__2(52519),core_1=__webpack_require__2(30163),express_1=__webpack_require__2(91538),socket_io_adapter_1=__webpack_require__2(79309),app_module_1=__webpack_require__2(50841),constants_1=__webpack_require__2(26271),api_key_service_1=__webpack_require__2(87044),global_service_1=__webpack_require__2(40735),socket_io_service_1=__webpack_require__2(98095);let gs=null,aks=null,sis=null;function reqResEvent(req,res,next){const timeStart=new Date;return res.locals["abort-controller"]=new abort_controller_1.AbortController,req.on("close",()=>{res.locals["abort-controller"].abort()}),res.on("close",()=>{const clientOriginIpCc=aks.getOriginIpCc(req,!0),timeEnd=(new Date).getTime()-timeStart.getTime(),reqResInfo=`${clientOriginIpCc.origin_ip} ~ ${timeStart.toString()} ~ ${req.method} ~ ${res.statusCode} ~ ${req.originalUrl} ~ ${timeEnd} ms`;sis.emitToRoomOrId(constants_1.CONSTANTS.socketRoomNameServerLogs,"console-log",reqResInfo)}),next()}function app(){return _app.apply(this,arguments)}function _app(){return(_app=_asyncToGenerator(function*(){const nestApp=yield core_1.NestFactory.create(app_module_1.AppModule);gs=nestApp.select(app_module_1.AppModule).get(global_service_1.GlobalService),aks=nestApp.select(app_module_1.AppModule).get(api_key_service_1.ApiKeyService),sis=nestApp.select(app_module_1.AppModule).get(socket_io_service_1.SocketIoService),nestApp.setGlobalPrefix("api"),nestApp.getHttpAdapter().getInstance().set("trust proxy",!0),nestApp.use((0,helmet_1.default)({contentSecurityPolicy:!1,crossOriginEmbedderPolicy:!1,noSniff:!1,referrerPolicy:!1})),nestApp.use((0,compression_1.default)()),nestApp.use((0,cookie_parser_1.default)()),nestApp.use((0,express_1.json)({limit:"128mb"})),nestApp.use((0,express_1.urlencoded)({extended:!1,limit:"128mb"})),nestApp.enableCors(aks.getCorsOptions()),nestApp.useWebSocketAdapter(new socket_io_adapter_1.SocketIoAdapter(nestApp)),nestApp.use(reqResEvent);const swaggerCfg=(new swagger_1.DocumentBuilder).setTitle(environment_1.environment.siteName).setDescription(environment_1.environment.siteDescription).setContact(environment_1.environment.siteName,environment_1.environment.baseUrl,`noreply@${environment_1.environment.domain}`).addSecurity("apiKey",{type:"apiKey",in:"query",name:"key"}).addSecurityRequirements("apiKey").build(),swaggerDoc=swagger_1.SwaggerModule.createDocument(nestApp,swaggerCfg,{operationIdFactory:(controllerKey,methodKey)=>methodKey});return swagger_1.SwaggerModule.setup("api",nestApp,swaggerDoc),nestApp})).apply(this,arguments)}__name(reqResEvent,"reqResEvent"),__name(app,"app"),__name(_app,"_app"),exports2.app=app;const mainModule=require.main,moduleFilename=mainModule&&mainModule.filename||"";(moduleFilename===__filename||moduleFilename.includes("iisnode"))&&app().then(nestApp=>{nestApp.listen(process.env.PORT||4200,_asyncToGenerator(function*(){gs.log(`[APP_SERVER] \u{1f4bb} Running on => ${process.cwd()} \u{1f498}`,yield nestApp.getUrl())}))}).catch(err=>gs.log("[APP-BOOTSTRAP] \u{1f4a2}",err,"error"))},99238:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ApiKeyMiddleware=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(92274),environment_1=__webpack_require__2(17482),api_key_service_1=__webpack_require__2(87044),user_service_1=__webpack_require__2(50675),global_service_1=__webpack_require__2(40735);let ApiKeyMiddleware=__name(class{constructor(aks,gs,userRepo){this.aks=aks,this.gs=gs,this.userRepo=userRepo}use(req,res,next){var _this=this;return _asyncToGenerator(function*(){const key=(req.cookies[environment_1.environment.apiKeyName]||req.headers["x-api-key"]||req.body.key||req.query.key||"").toString(),clientOriginIpCc=_this.aks.getOriginIpCc(req);if(_this.gs.log("[API_KEY_MIDDLEWARE-ORIGIN_KEY] \u{1f338}",`${key} @ ${clientOriginIpCc.origin_ip}`),!req.originalUrl.includes("/api"))return res.locals.user=null,next();res.locals.key=key;const check=yield _this.aks.checkKey(clientOriginIpCc.origin_ip,key);if(check.allowed){let user=check.user;if(user)try{user=yield _this.userRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(user.id)}],relations:["kartu_tanda_penduduk_","profile_"]})}catch{user=null}return res.locals.user=user,next()}throw new common_1.HttpException({info:"\u{1f644} 401 - API Key :: Kunci Tidak Dapat Digunakan \u{1f62a}",result:{key,origin:clientOriginIpCc.origin_ip,country:clientOriginIpCc.country_code,message:"Api Key Salah / Tidak Terdaftar!"}},common_1.HttpStatus.UNAUTHORIZED)})()}},"ApiKeyMiddleware");tslib_1.__decorate([tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__param(2,(0,common_1.Next)()),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object,Function]),tslib_1.__metadata("design:returntype",Promise)],ApiKeyMiddleware.prototype,"use",null),ApiKeyMiddleware=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[api_key_service_1.ApiKeyService,global_service_1.GlobalService,user_service_1.UserService])],ApiKeyMiddleware),exports2.ApiKeyMiddleware=ApiKeyMiddleware},35767:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BannedMiddleware=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),environment_1=__webpack_require__2(17482),api_key_service_1=__webpack_require__2(87044),auth_service_1=__webpack_require__2(99985),crypto_service_1=__webpack_require__2(4030),global_service_1=__webpack_require__2(40735);let BannedMiddleware=__name(class{constructor(aks,as,cs,gs){this.aks=aks,this.as=as,this.cs=cs,this.gs=gs}use(req,res,next){var _this=this;return _asyncToGenerator(function*(){let user=res.locals.user;const key=res.locals.key,token=(req.cookies[environment_1.environment.tokenName]||req.headers.authorization||req.headers["x-access-token"]||req.body.token||req.query.token||"").toString();try{if(!key){const decoded=_this.cs.credentialDecode(token);if(user=yield _this.as.getUserRequestJwt(decoded.user.id,token),user){const clientOriginIpCc=_this.aks.getOriginIpCc(req,!0);if(user.session_origin!==clientOriginIpCc.origin_ip)return res.cookie(environment_1.environment.tokenName,"TOKEN_EXPIRED",{httpOnly:!0,secure:environment_1.environment.production,sameSite:"strict",maxAge:0,domain:environment_1.environment.domain}),res.redirect(301,environment_1.environment.baseUrl)}}if(_this.gs.log("[BANNED_MIDDLEWARE-USER] \u{1f9e8}",user),!user)throw new Error("User Not Login!");const banned=yield _this.as.isAccountBanned(user.id);if(banned)throw new common_1.HttpException({info:"\u{1f644} 403 - Banned :: Akun Dikunci \u{1f62a}",result:{message:`Akun Tidak Dapat Digunakan :: ${banned.reason}`}},common_1.HttpStatus.FORBIDDEN)}catch(error){if(error instanceof common_1.HttpException)throw error;res.locals.error=error}return res.locals.user=user,res.locals.token=token,next()})()}},"BannedMiddleware");tslib_1.__decorate([tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__param(2,(0,common_1.Next)()),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object,Function]),tslib_1.__metadata("design:returntype",Promise)],BannedMiddleware.prototype,"use",null),BannedMiddleware=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[api_key_service_1.ApiKeyService,auth_service_1.AuthService,crypto_service_1.CryptoService,global_service_1.GlobalService])],BannedMiddleware),exports2.BannedMiddleware=BannedMiddleware},13254:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CacheMiddleware=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),global_service_1=__webpack_require__2(40735);let CacheMiddleware=__name(class{constructor(cm,gs){this.cm=cm,this.gs=gs}use(req,res,next){var _this=this;return _asyncToGenerator(function*(){const cacheData=yield _this.cm.get(req.originalUrl);if(!cacheData)return next();{_this.gs.log(`[CACHE_MIDDLEWARE-${req.originalUrl}] \u2728`,cacheData);let body=cacheData.body;res.locals.xml&&(res.set("Content-Type","application/xml"),body=_this.gs.OBJ2XML(cacheData.body)),res.status(cacheData.status).send(body)}})()}},"CacheMiddleware");tslib_1.__decorate([tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__param(2,(0,common_1.Next)()),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object,Function]),tslib_1.__metadata("design:returntype",Promise)],CacheMiddleware.prototype,"use",null),CacheMiddleware=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,common_1.Inject)(common_1.CACHE_MANAGER)),tslib_1.__metadata("design:paramtypes",[Object,global_service_1.GlobalService])],CacheMiddleware),exports2.CacheMiddleware=CacheMiddleware},26508:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LoginMiddleware=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(92274),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),api_service_1=__webpack_require__2(99527),crypto_service_1=__webpack_require__2(4030),global_service_1=__webpack_require__2(40735),auth_service_1=__webpack_require__2(99985),api_key_service_1=__webpack_require__2(87044),user_service_1=__webpack_require__2(50675),social_media_service_1=__webpack_require__2(42471);let LoginMiddleware=__name(class{constructor(api,aks,as,cs,gs,userRepo,sosmedRepo){this.api=api,this.aks=aks,this.as=as,this.cs=cs,this.gs=gs,this.userRepo=userRepo,this.sosmedRepo=sosmedRepo}use(req,res,next){var _this=this;return _asyncToGenerator(function*(){try{if("userNameOrEmail"in req.body&&"password"in req.body){const reqBodyPassword=_this.cs.hashPassword(req.body.password);let selectedUser=yield _this.userRepo.findOneOrFail({where:[{username:(0,typeorm_1.ILike)(req.body.userNameOrEmail),password:(0,typeorm_1.Equal)(reqBodyPassword)},{email:(0,typeorm_1.ILike)(req.body.userNameOrEmail),password:(0,typeorm_1.Equal)(reqBodyPassword)}]});const banned=yield _this.as.isAccountBanned(selectedUser.id);if(banned)throw new common_1.HttpException({info:"\u{1f644} 403 - Banned :: Akun Dikunci \u{1f62a}",result:{message:`Akun Tidak Dapat Digunakan :: ${banned.reason}`}},common_1.HttpStatus.FORBIDDEN);if(selectedUser.verified){const sosmeds=yield _this.sosmedRepo.find({where:[{user_:{id:(0,typeorm_1.Equal)(selectedUser.id)}}],relations:["user_"]});let sosmedAllOk=sosmeds.length<=0;for(const s of sosmeds){let sosmedSelectedOk=!1;const form=new URLSearchParams;if(form.append("grant_type","refresh_token"),form.append("refresh_token",s.refresh_token),s.type===req_res_model_1.SosMedModel.DISCORD){const url=new URL(`${environment_1.environment.discord.api_uri}/oauth2/token`);form.append("client_id",environment_1.environment.discord.client_id),form.append("client_secret",environment_1.environment.discord.client_secret);const res_raw=yield _this.api.postData(url,form,environment_1.environment.nodeJsXhrHeader);if(res_raw.ok){const res_json=yield res_raw.json();s.refresh_token=res_json.refresh_token,yield _this.sosmedRepo.save(s),sosmedSelectedOk=!0}}else if(s.type===req_res_model_1.SosMedModel.GOOGLE){const url=new URL(environment_1.environment.gCloudPlatform.token_uri);form.append("client_id",environment_1.environment.gCloudPlatform.app.client_id),form.append("client_secret",environment_1.environment.gCloudPlatform.app.client_secret),(yield _this.api.postData(url,form,environment_1.environment.nodeJsXhrHeader)).ok&&(sosmedSelectedOk=!0)}sosmedSelectedOk||(yield _this.sosmedRepo.remove(s)),sosmedAllOk=sosmedAllOk||sosmedSelectedOk}sosmedAllOk||(selectedUser.verified=!1,selectedUser=yield _this.userRepo.save(selectedUser))}const{password,session_token,session_origin,...noPwdSes}=selectedUser,rememberMe="rememberMe"in req.body&&!0===req.body.rememberMe,clientOriginIpCc=_this.aks.getOriginIpCc(req,!0);selectedUser.session_origin=clientOriginIpCc.origin_ip,selectedUser.session_token=_this.cs.credentialEncode({user:noPwdSes},rememberMe);const resUserSave=yield _this.userRepo.save(selectedUser);return res.locals.user=resUserSave,res.cookie(environment_1.environment.tokenName,resUserSave.session_token,{httpOnly:!0,secure:environment_1.environment.production,sameSite:"strict",expires:new Date(1e3*_this.cs.jwtView(resUserSave.session_token).exp),domain:environment_1.environment.domain}),next()}throw new Error("Username, Email, atau Password tidak tepat!")}catch(error){throw _this.gs.log("[LOGIN_MIDDLEWARE-ERROR] \u{1f383}",error,"error"),error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Authentication API :: Login Gagal! \u{1f62a}",result:{message:"Username, Email, atau Password tidak tepat!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"LoginMiddleware");tslib_1.__decorate([tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__param(2,(0,common_1.Next)()),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object,Function]),tslib_1.__metadata("design:returntype",Promise)],LoginMiddleware.prototype,"use",null),LoginMiddleware=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[api_service_1.ApiService,api_key_service_1.ApiKeyService,auth_service_1.AuthService,crypto_service_1.CryptoService,global_service_1.GlobalService,user_service_1.UserService,social_media_service_1.SocialMediaService])],LoginMiddleware),exports2.LoginMiddleware=LoginMiddleware},24097:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LogoutMiddleware=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),environment_1=__webpack_require__2(17482),global_service_1=__webpack_require__2(40735),socket_io_service_1=__webpack_require__2(98095),user_service_1=__webpack_require__2(50675);let LogoutMiddleware=__name(class{constructor(gs,sis,userRepo){this.gs=gs,this.sis=sis,this.userRepo=userRepo}use(req,res,next){var _this=this;return _asyncToGenerator(function*(){try{const user=res.locals.user;user.session_token=null,yield _this.userRepo.save(user);const socketId=(req.headers["x-socket-id"]||"").toString();if(socketId){const socket=_this.sis.getClientSocket(socketId);socket&&_this.sis.disconnectRoom(socket)}return res.cookie(environment_1.environment.tokenName,"TOKEN_EXPIRED",{httpOnly:!0,secure:environment_1.environment.production,sameSite:"strict",maxAge:0,domain:environment_1.environment.domain}),next()}catch(error){throw _this.gs.log("[LOGOUT_MIDDLEWARE-ERROR] \u{1f52a}",error,"error"),error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 401 - Authentication API :: Logout Gagal \u{1f62a}",result:{message:"Sesi Tidak Ditemukan!"}},common_1.HttpStatus.UNAUTHORIZED)}})()}},"LogoutMiddleware");tslib_1.__decorate([tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__param(2,(0,common_1.Next)()),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object,Function]),tslib_1.__metadata("design:returntype",Promise)],LogoutMiddleware.prototype,"use",null),LogoutMiddleware=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[global_service_1.GlobalService,socket_io_service_1.SocketIoService,user_service_1.UserService])],LogoutMiddleware),exports2.LogoutMiddleware=LogoutMiddleware},96443:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RegisterMiddleware=void 0;const tslib_1=__webpack_require__2(70655),node_url_1=__webpack_require__2(46024),common_1=__webpack_require__2(28791),schedule_1=__webpack_require__2(31143),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),api_key_service_1=__webpack_require__2(87044),api_service_1=__webpack_require__2(99527),config_service_1=__webpack_require__2(94315),crypto_service_1=__webpack_require__2(4030),global_service_1=__webpack_require__2(40735),user_service_1=__webpack_require__2(50675),registration_service_1=__webpack_require__2(60968);let RegisterMiddleware=__name(class{constructor(sr,aks,api,cfg,cs,gs,registrationRepo,userRepo){this.sr=sr,this.aks=aks,this.api=api,this.cfg=cfg,this.cs=cs,this.gs=gs,this.registrationRepo=registrationRepo,this.userRepo=userRepo}use(req,res,next){var _this=this;return _asyncToGenerator(function*(){try{if(!_this.cfg.serverGetOpenForRegister())throw new common_1.HttpException({info:"\u{1f62b} 403 - Register API :: Tidak Ada Layanan \u{1f4a9}",result:{message:"Pendaftaran Sedang Ditutup!"}},common_1.HttpStatus.FORBIDDEN);if("username"in req.body&&"name"in req.body&&"email"in req.body&&"password"in req.body&&"agree_tatib"in req.body&&!0===req.body.agree_tatib&&"agree_pp"in req.body&&!0===req.body.agree_pp&&"g-recaptcha-response"in req.body){const url=new node_url_1.URL(environment_1.environment.reCaptcha.api_url);url.searchParams.append("secret",environment_1.environment.reCaptcha.secret_key),url.searchParams.append("response",req.body["g-recaptcha-response"]),url.searchParams.append("remoteip",_this.aks.getOriginIpCc(req,!0).origin_ip);const res_raw=yield _this.api.getData(url,environment_1.environment.nodeJsXhrHeader);if(res_raw.ok){const res_json=yield res_raw.json();_this.gs.log(`[gCaptcha] \u{1f3b2} ${res_raw.status}`,res_json);const usrName=req.body.username.replace(/\s/g,"").replace(/[^a-z0-9]/g,"").toLowerCase(),selectedRegistration=yield _this.registrationRepo.find({where:[{username:(0,typeorm_1.ILike)(usrName)},{email:(0,typeorm_1.ILike)(req.body.email)}]}),selectedUser=yield _this.userRepo.find({where:[{username:(0,typeorm_1.ILike)(usrName)},{email:(0,typeorm_1.ILike)(req.body.email)}]}),userNotAvailable=[...selectedRegistration,...selectedUser];if(0===userNotAvailable.length){if(constants_1.CONSTANTS.blacklistedWords.includes(usrName))throw new common_1.HttpException({info:"\u{1f644} 400 - Authentication API :: Pendaftaran Gagal \u{1f62a}",result:{message:`'${usrName}' Tidak Dapat Digunakan`}},common_1.HttpStatus.BAD_REQUEST);const result={};if(usrName.length<8&&(result.username="Nama Pengguna Minimal 8 Huruf"),req.body.email.match(/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$/)||(result.email="Email Tidak Valid"),Object.keys(result).length>0)throw result.message="Akun Tidak Dapat Digunakan!",new common_1.HttpException({info:"\u{1f644} 400 - Authentication API :: Pendaftaran Gagal \u{1f62a}",result},common_1.HttpStatus.BAD_REQUEST);const pengguna=_this.registrationRepo.new();pengguna.username=usrName,pengguna.email=req.body.email,pengguna.password=_this.cs.hashPassword(req.body.password),pengguna.nama=req.body.name;let penggunaSave=yield _this.registrationRepo.save(pengguna);const{password,activation_token,...noPwdAcToken}=penggunaSave;return penggunaSave.activation_token=_this.cs.credentialEncode({user:noPwdAcToken},!1,constants_1.CONSTANTS.timeoutCancelRegisterTime),penggunaSave=yield _this.registrationRepo.save(penggunaSave),res.locals.registration=penggunaSave,_this.sr.addTimeout(`${constants_1.CONSTANTS.timeoutCancelRegisterKey}-${(new Date).getTime()}`,setTimeout(_asyncToGenerator(function*(){try{const registrationToBeDeleted=yield _this.registrationRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(penggunaSave.id),activation_token:(0,typeorm_1.Equal)(penggunaSave.activation_token)}]});yield _this.registrationRepo.remove(registrationToBeDeleted)}catch(err){_this.gs.log("[REGISTER_MIDDLEWARE-ERROR] \u{1f383}",err,"error")}}),constants_1.CONSTANTS.timeoutCancelRegisterTime)),next()}{const result={};for(const user of userNotAvailable)user.username===usrName&&(result.username=`${user.username} Sudah Terpakai`),user.email===req.body.email&&(result.email=`${user.email} Sudah Terpakai`);throw new common_1.HttpException({info:"\u{1f644} 400 - Authentication API :: Pendaftaran Gagal \u{1f62a}",result},common_1.HttpStatus.BAD_REQUEST)}}throw new common_1.HttpException({info:`\u{1f644} ${res_raw.status||400} - Google API :: Captcha Bermasalah \u{1f62a}`,result:{message:"Captcha Salah / Expired / Google API Down!"}},res_raw.status||common_1.HttpStatus.BAD_REQUEST)}throw new Error("Data Tidak Lengkap!")}catch(error){throw _this.gs.log("[REGISTER_MIDDLEWARE-ERROR] \u{1f383}",error,"error"),error instanceof common_1.HttpException?error:new common_1.HttpException({info:"\u{1f644} 400 - Authentication API :: Pendaftaran Gagal \u{1f62a}",result:{message:"Data Tidak Lengkap!"}},common_1.HttpStatus.BAD_REQUEST)}})()}},"RegisterMiddleware");tslib_1.__decorate([tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__param(2,(0,common_1.Next)()),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object,Function]),tslib_1.__metadata("design:returntype",Promise)],RegisterMiddleware.prototype,"use",null),RegisterMiddleware=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[schedule_1.SchedulerRegistry,api_key_service_1.ApiKeyService,api_service_1.ApiService,config_service_1.ConfigService,crypto_service_1.CryptoService,global_service_1.GlobalService,registration_service_1.RegistrationService,user_service_1.UserService])],RegisterMiddleware),exports2.RegisterMiddleware=RegisterMiddleware},52062:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UrlXmlMiddleware=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),global_service_1=__webpack_require__2(40735);let UrlXmlMiddleware=__name(class{constructor(gs){this.gs=gs}use(req,res,next){var _this=this;return _asyncToGenerator(function*(){const urlPath=req.originalUrl.split("?");if(1===urlPath.length)req.originalUrl=urlPath[0];else{let urlQuery=urlPath[1].split("&").sort();"true"===req.query.xml&&(res.locals.xml=!0,delete req.query.xml,urlQuery=urlQuery.filter(x=>!x.includes("xml=true"))),req.originalUrl=urlPath[0]+"?"+urlQuery.join("&")}return _this.gs.log(`[XML_MIDDLEWARE-${req.query.xml}] \u26a1`,req.originalUrl),next()})()}},"UrlXmlMiddleware");tslib_1.__decorate([tslib_1.__param(0,(0,common_1.Req)()),tslib_1.__param(1,(0,common_1.Res)({passthrough:!0})),tslib_1.__param(2,(0,common_1.Next)()),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[Object,Object,Function]),tslib_1.__metadata("design:returntype",Promise)],UrlXmlMiddleware.prototype,"use",null),UrlXmlMiddleware=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[global_service_1.GlobalService])],UrlXmlMiddleware),exports2.UrlXmlMiddleware=UrlXmlMiddleware},88122:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AnimeService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Anime_1=__webpack_require__2(50363),global_service_1=__webpack_require__2(40735);let AnimeService=__name(class{constructor(animeRepo,gs){this.animeRepo=animeRepo,this.gs=gs}new(){return new Anime_1.Anime}instance(){return this.animeRepo}getMetaData(){return this.animeRepo.metadata}find(options){return this.gs.log("[ANIME_SERVICE-FIND_ALL] \u{1f431}\u200d\u{1f464}",options),this.animeRepo.find(options)}findAndCount(options){return this.gs.log("[ANIME_SERVICE-FIND_AND_COUNT] \u{1f431}\u200d\u{1f464}",options),this.animeRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[ANIME_SERVICE-GET_BY] \u{1f431}\u200d\u{1f464}",options),this.animeRepo.findOneOrFail(options)}save(anime){return this.gs.log("[ANIME_SERVICE-SAVE] \u{1f431}\u200d\u{1f464}",anime),this.animeRepo.save(anime)}count(options){return this.gs.log("[ANIME_SERVICE-COUNT] \u{1f431}\u200d\u{1f464}",options),this.animeRepo.count(options)}remove(anime){return this.gs.log("[ANIME_SERVICE-REMOVE] \u{1f431}\u200d\u{1f464}",anime),this.animeRepo.remove(anime)}query(query,parameters=[]){return this.gs.log("[ANIME_SERVICE-QUERY] \u{1f431}\u200d\u{1f464}",query),this.animeRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[ANIME_SERVICE-UPDATE] \u{1f431}\u200d\u{1f464}",criteria),this.animeRepo.update(criteria,partialEntity)}insert(anime){return this.gs.log("[ANIME_SERVICE-INSERT] \u{1f431}\u200d\u{1f464}",anime),this.animeRepo.insert(anime)}},"AnimeService");AnimeService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Anime_1.Anime)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],AnimeService),exports2.AnimeService=AnimeService},87044:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ApiKeyService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),ApiKey_1=__webpack_require__2(54472),config_service_1=__webpack_require__2(94315),global_service_1=__webpack_require__2(40735);let ApiKeyService=__name(class{constructor(apiKeyRepo,cfg,gs){this.apiKeyRepo=apiKeyRepo,this.cfg=cfg,this.gs=gs}new(){return new ApiKey_1.ApiKey}instance(){return this.apiKeyRepo}getMetaData(){return this.apiKeyRepo.metadata}find(options){return this.gs.log("[API_KEY_SERVICE-FIND_ALL] \u{1f3d3}",options),this.apiKeyRepo.find(options)}findAndCount(options){return this.gs.log("[API_KEY_SERVICE-FIND_AND_COUNT] \u{1f3d3}",options),this.apiKeyRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[API_KEY_SERVICE-GET_BY] \u{1f3d3}",options),this.apiKeyRepo.findOneOrFail(options)}save(apiKey){return this.gs.log("[API_KEY_SERVICE-SAVE] \u{1f3d3}",apiKey),this.apiKeyRepo.save(apiKey)}count(options){return this.gs.log("[API_KEY_SERVICE-COUNT] \u{1f3d3}",options),this.apiKeyRepo.count(options)}remove(apiKey){return this.gs.log("[API_KEY_SERVICE-REMOVE] \u{1f3d3}",apiKey),this.apiKeyRepo.remove(apiKey)}query(query,parameters=[]){return this.gs.log("[API_KEY_SERVICE-QUERY] \u{1f3d3}",query),this.apiKeyRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[API_KEY_SERVICE-UPDATE] \u{1f3d3}",criteria),this.apiKeyRepo.update(criteria,partialEntity)}insert(apiKey){return this.gs.log("[API_KEY_SERVICE-INSERT] \u{1f3d3}",apiKey),this.apiKeyRepo.insert(apiKey)}getOriginIpCc(req,ipOnly=!1){let originIp="";ipOnly||(originIp=originIp||req.headers.origin||req.headers.referer||""),originIp=(originIp||req.headers["cf-connecting-ip"]||req.ip||"").toString(),originIp=this.gs.cleanIpOrigin(originIp);return{origin_ip:originIp,country_code:(req.headers["cf-ipcountry"]||"").toString()}}getCorsOptions(){var _ref,_this=this;return{origin:(_ref=_asyncToGenerator(function*(org,callback){const o=_this.gs.cleanIpOrigin(org);return _this.gs.log("[API_KEY_SERVICE-ORIGIN] \u{1f3d3}",o),callback(null,!0)}),__name(function(_x,_x2){return _ref.apply(this,arguments)},"origin")),credentials:!0}}checkKey(origin,key){var _this2=this;return _asyncToGenerator(function*(){if(_this2.cfg.domainIpBypass.includes(origin)&&!key)return{allowed:!0,user:null};try{if(!key)throw"Tidak Ada API Key";const apiKey=yield _this2.findOneOrFail({where:[{ip_domain:(0,typeorm_2.ILike)(`%${origin}%`),api_key:(0,typeorm_2.Equal)(key)},{ip_domain:(0,typeorm_2.Equal)("*"),api_key:(0,typeorm_2.Equal)(key)}],relations:["user_"]});return _this2.gs.log("[API_KEY_SERVICE-CHECK_KEY_SUCCESS] \u{1f3d3}",apiKey),{allowed:!0,user:apiKey.user_}}catch(error){return _this2.gs.log("[API_KEY_SERVICE-CHECK_KEY_ERROR] \u{1f3d3}",error,"error"),{allowed:!1,user:null}}})()}},"ApiKeyService");ApiKeyService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(ApiKey_1.ApiKey)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,config_service_1.ConfigService,global_service_1.GlobalService])],ApiKeyService),exports2.ApiKeyService=ApiKeyService},37470:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AttachmentService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Attachment_1=__webpack_require__2(93595),global_service_1=__webpack_require__2(40735);let AttachmentService=__name(class{constructor(attachmentRepo,gs){this.attachmentRepo=attachmentRepo,this.gs=gs}new(){return new Attachment_1.Attachment}instance(){return this.attachmentRepo}getMetaData(){return this.attachmentRepo.metadata}find(options){return this.gs.log("[ATTACHMENT_SERVICE-FIND_ALL] \u{1f4be}",options),this.attachmentRepo.find(options)}findAndCount(options){return this.gs.log("[ATTACHMENT_SERVICE-FIND_AND_COUNT] \u{1f4be}",options),this.attachmentRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[ATTACHMENT_SERVICE-GET_BY] \u{1f4be}",options),this.attachmentRepo.findOneOrFail(options)}save(attachment){return this.gs.log("[ATTACHMENT_SERVICE-SAVE] \u{1f4be}",attachment),this.attachmentRepo.save(attachment)}count(options){return this.gs.log("[ATTACHMENT_SERVICE-COUNT] \u{1f4be}",options),this.attachmentRepo.count(options)}remove(attachment){return this.gs.log("[ATTACHMENT_SERVICE-REMOVE] \u{1f4be}",attachment),this.attachmentRepo.softRemove(attachment)}query(query,parameters=[]){return this.gs.log("[ATTACHMENT_SERVICE-QUERY] \u{1f4be}",query),this.attachmentRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[ATTACHMENT_SERVICE-UPDATE] \u{1f4be}",criteria),this.attachmentRepo.update(criteria,partialEntity)}insert(attachment){return this.gs.log("[ATTACHMENT_SERVICE-INSERT] \u{1f4be}",attachment),this.attachmentRepo.insert(attachment)}},"AttachmentService");AttachmentService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Attachment_1.Attachment)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],AttachmentService),exports2.AttachmentService=AttachmentService},51201:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BannedService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Banned_1=__webpack_require__2(94756),global_service_1=__webpack_require__2(40735);let BannedService=__name(class{constructor(bannedRepo,gs){this.bannedRepo=bannedRepo,this.gs=gs}new(){return new Banned_1.Banned}instance(){return this.bannedRepo}getMetaData(){return this.bannedRepo.metadata}find(options){return this.gs.log("[BANNED_SERVICE-FIND_ALL] \u{1f513}",options),this.bannedRepo.find(options)}findAndCount(options){return this.gs.log("[BANNED_SERVICE-FIND_AND_COUNT] \u{1f513}",options),this.bannedRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[BANNED_SERVICE-GET_BY] \u{1f513}",options),this.bannedRepo.findOneOrFail(options)}save(banned){return this.gs.log("[BANNED_SERVICE-SAVE] \u{1f513}",banned),this.bannedRepo.save(banned)}count(options){return this.gs.log("[BANNED_SERVICE-COUNT] \u{1f513}",options),this.bannedRepo.count(options)}remove(banned){return this.gs.log("[BANNED_SERVICE-REMOVE] \u{1f513}",banned),this.bannedRepo.remove(banned)}query(query,parameters=[]){return this.gs.log("[BANNED_SERVICE-QUERY] \u{1f513}",query),this.bannedRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[BANNED_SERVICE-UPDATE] \u{1f513}",criteria),this.bannedRepo.update(criteria,partialEntity)}insert(banned){return this.gs.log("[BANNED_SERVICE-INSERT] \u{1f513}",banned),this.bannedRepo.insert(banned)}},"BannedService");BannedService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Banned_1.Banned)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],BannedService),exports2.BannedService=BannedService},17319:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BerkasService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Berkas_1=__webpack_require__2(56115),global_service_1=__webpack_require__2(40735);let BerkasService=__name(class{constructor(berkasRepo,gs){this.berkasRepo=berkasRepo,this.gs=gs}new(){return new Berkas_1.Berkas}instance(){return this.berkasRepo}getMetaData(){return this.berkasRepo.metadata}find(options){return this.gs.log("[BERKAS_SERVICE-FIND_ALL] \u{1f4c2}",options),this.berkasRepo.find(options)}findAndCount(options){return this.gs.log("[BERKAS_SERVICE-FIND_AND_COUNT] \u{1f4c2}",options),this.berkasRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[BERKAS_SERVICE-GET_BY] \u{1f4c2}",options),this.berkasRepo.findOneOrFail(options)}save(berkas){return this.gs.log("[BERKAS_SERVICE-SAVE] \u{1f4c2}",berkas),this.berkasRepo.save(berkas)}count(options){return this.gs.log("[BERKAS_SERVICE-COUNT] \u{1f4c2}",options),this.berkasRepo.count(options)}remove(berkas){return this.gs.log("[BERKAS_SERVICE-REMOVE] \u{1f4c2}",berkas),this.berkasRepo.softRemove(berkas)}query(query,parameters=[]){return this.gs.log("[BERKAS_SERVICE-QUERY] \u{1f4c2}",query),this.berkasRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[BERKAS_SERVICE-UPDATE] \u{1f4c2}",criteria),this.berkasRepo.update(criteria,partialEntity)}insert(berkas){return this.gs.log("[BERKAS_SERVICE-INSERT] \u{1f4c2}",berkas),this.berkasRepo.insert(berkas)}},"BerkasService");BerkasService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Berkas_1.Berkas)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],BerkasService),exports2.BerkasService=BerkasService},34885:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DdlFileService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),DdlFile_1=__webpack_require__2(54875),global_service_1=__webpack_require__2(40735);let DdlFileService=__name(class{constructor(ddlFileRepo,gs){this.ddlFileRepo=ddlFileRepo,this.gs=gs}new(){return new DdlFile_1.DdlFile}instance(){return this.ddlFileRepo}getMetaData(){return this.ddlFileRepo.metadata}find(options){return this.gs.log("[DDL_FILE_SERVICE-FIND_ALL] \u{1f4be}",options),this.ddlFileRepo.find(options)}findAndCount(options){return this.gs.log("[DDL_FILE_SERVICE-FIND_AND_COUNT] \u{1f4be}",options),this.ddlFileRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[DDL_FILE_SERVICE-GET_BY] \u{1f4be}",options),this.ddlFileRepo.findOneOrFail(options)}save(ddlFile){return this.gs.log("[DDL_FILE_SERVICE-SAVE] \u{1f4be}",ddlFile),this.ddlFileRepo.save(ddlFile)}count(options){return this.gs.log("[DDL_FILE_SERVICE-COUNT] \u{1f4be}",options),this.ddlFileRepo.count(options)}remove(ddlFile){return this.gs.log("[DDL_FILE_SERVICE-REMOVE] \u{1f4be}",ddlFile),this.ddlFileRepo.softRemove(ddlFile)}query(query,parameters=[]){return this.gs.log("[DDL_FILE_SERVICE-QUERY] \u{1f4be}",query),this.ddlFileRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[DDL_FILE_SERVICE-UPDATE] \u{1f4be}",criteria),this.ddlFileRepo.update(criteria,partialEntity)}insert(ddlFile){return this.gs.log("[DDL_FILE_SERVICE-INSERT] \u{1f4be}",ddlFile),this.ddlFileRepo.insert(ddlFile)}},"DdlFileService");DdlFileService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(DdlFile_1.DdlFile)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],DdlFileService),exports2.DdlFileService=DdlFileService},81475:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DoramaService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Dorama_1=__webpack_require__2(26138),global_service_1=__webpack_require__2(40735);let DoramaService=__name(class{constructor(doramaRepo,gs){this.doramaRepo=doramaRepo,this.gs=gs}new(){return new Dorama_1.Dorama}instance(){return this.doramaRepo}getMetaData(){return this.doramaRepo.metadata}find(options){return this.gs.log("[DORAMA_SERVICE-FIND_ALL] \u{1f3ac}",options),this.doramaRepo.find(options)}findAndCount(options){return this.gs.log("[DORAMA_SERVICE-FIND_AND_COUNT] \u{1f3ac}",options),this.doramaRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[DORAMA_SERVICE-GET_BY] \u{1f3ac}",options),this.doramaRepo.findOneOrFail(options)}save(dorama){return this.gs.log("[DORAMA_SERVICE-SAVE] \u{1f3ac}",dorama),this.doramaRepo.save(dorama)}count(options){return this.gs.log("[DORAMA_SERVICE-COUNT] \u{1f3ac}",options),this.doramaRepo.count(options)}remove(dorama){return this.gs.log("[DORAMA_SERVICE-REMOVE] \u{1f3ac}",dorama),this.doramaRepo.remove(dorama)}query(query,parameters=[]){return this.gs.log("[DORAMA_SERVICE-QUERY] \u{1f3ac}",query),this.doramaRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[DORAMA_SERVICE-UPDATE] \u{1f3ac}",criteria),this.doramaRepo.update(criteria,partialEntity)}insert(dorama){return this.gs.log("[DORAMA_SERVICE-INSERT] \u{1f3ac}",dorama),this.doramaRepo.insert(dorama)}},"DoramaService");DoramaService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Dorama_1.Dorama)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],DoramaService),exports2.DoramaService=DoramaService},46662:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.EdictService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Edict_1=__webpack_require__2(98335),global_service_1=__webpack_require__2(40735);let EdictService=__name(class{constructor(edictRepo,gs){this.edictRepo=edictRepo,this.gs=gs}new(){return new Edict_1.Edict}instance(){return this.edictRepo}getMetaData(){return this.edictRepo.metadata}find(options){return this.gs.log("[EDICT_SERVICE-FIND_ALL] \u{1f5fe}",options),this.edictRepo.find(options)}findAndCount(options){return this.gs.log("[EDICT_SERVICE-FIND_AND_COUNT] \u{1f5fe}",options),this.edictRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[EDICT_SERVICE-GET_BY] \u{1f5fe}",options),this.edictRepo.findOneOrFail(options)}save(edict){return this.gs.log("[EDICT_SERVICE-SAVE] \u{1f5fe}",edict),this.edictRepo.save(edict)}count(options){return this.gs.log("[EDICT_SERVICE-COUNT] \u{1f5fe}",options),this.edictRepo.count(options)}remove(edict){return this.gs.log("[EDICT_SERVICE-REMOVE] \u{1f5fe}",edict),this.edictRepo.remove(edict)}query(query,parameters=[]){return this.gs.log("[EDICT_SERVICE-QUERY] \u{1f5fe}",query),this.edictRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[EDICT_SERVICE-UPDATE] \u{1f5fe}",criteria),this.edictRepo.update(criteria,partialEntity)}insert(edict){return this.gs.log("[EDICT_SERVICE-INSERT] \u{1f5fe}",edict),this.edictRepo.insert(edict)}},"EdictService");EdictService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Edict_1.Edict)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],EdictService),exports2.EdictService=EdictService},85434:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubMemberService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),FansubMember_1=__webpack_require__2(71469),global_service_1=__webpack_require__2(40735);let FansubMemberService=__name(class{constructor(fansubMemberRepo,gs){this.fansubMemberRepo=fansubMemberRepo,this.gs=gs}new(){return new FansubMember_1.FansubMember}instance(){return this.fansubMemberRepo}getMetaData(){return this.fansubMemberRepo.metadata}find(options){return this.gs.log("[FANSUB_MEMBER_SERVICE-FIND_ALL] \u{1f575}\ufe0f\u200d\u2640\ufe0f",options),this.fansubMemberRepo.find(options)}findAndCount(options){return this.gs.log("[FANSUB_MEMBER_SERVICE-FIND_AND_COUNT] \u{1f575}\ufe0f\u200d\u2640\ufe0f",options),this.fansubMemberRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[FANSUB_MEMBER_SERVICE-GET_BY] \u{1f575}\ufe0f\u200d\u2640\ufe0f",options),this.fansubMemberRepo.findOneOrFail(options)}save(fansubMember){return this.gs.log("[FANSUB_MEMBER_SERVICE-SAVE] \u{1f575}\ufe0f\u200d\u2640\ufe0f",fansubMember),this.fansubMemberRepo.save(fansubMember)}count(options){return this.gs.log("[FANSUB_MEMBER_SERVICE-COUNT] \u{1f575}\ufe0f\u200d\u2640\ufe0f",options),this.fansubMemberRepo.count(options)}remove(fansubMember){return this.gs.log("[FANSUB_MEMBER_SERVICE-REMOVE] \u{1f575}\ufe0f\u200d\u2640\ufe0f",fansubMember),this.fansubMemberRepo.remove(fansubMember)}query(query,parameters=[]){return this.gs.log("[FANSUB_MEMBER_SERVICE-QUERY] \u{1f575}\ufe0f\u200d\u2640\ufe0f",query),this.fansubMemberRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[FANSUB_MEMBER_SERVICE-UPDATE] \u{1f575}\ufe0f\u200d\u2640\ufe0f",criteria),this.fansubMemberRepo.update(criteria,partialEntity)}insert(fansubMember){return this.gs.log("[FANSUB_MEMBER_SERVICE-INSERT] \u{1f575}\ufe0f\u200d\u2640\ufe0f",fansubMember),this.fansubMemberRepo.insert(fansubMember)}},"FansubMemberService");FansubMemberService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(FansubMember_1.FansubMember)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],FansubMemberService),exports2.FansubMemberService=FansubMemberService},51467:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Fansub_1=__webpack_require__2(7460),global_service_1=__webpack_require__2(40735);let FansubService=__name(class{constructor(fansubRepo,gs){this.fansubRepo=fansubRepo,this.gs=gs}new(){return new Fansub_1.Fansub}instance(){return this.fansubRepo}getMetaData(){return this.fansubRepo.metadata}find(options){return this.gs.log("[FANSUB_SERVICE-FIND_ALL] \u{1f37f}",options),this.fansubRepo.find(options)}findAndCount(options){return this.gs.log("[FANSUB_SERVICE-FIND_AND_COUNT] \u{1f37f}",options),this.fansubRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[FANSUB_SERVICE-GET_BY] \u{1f37f}",options),this.fansubRepo.findOneOrFail(options)}save(fansub){return this.gs.log("[FANSUB_SERVICE-SAVE] \u{1f37f}",fansub),this.fansubRepo.save(fansub)}count(options){return this.gs.log("[FANSUB_SERVICE-COUNT] \u{1f37f}",options),this.fansubRepo.count(options)}remove(fansub){return this.gs.log("[FANSUB_SERVICE-REMOVE] \u{1f37f}",fansub),this.fansubRepo.softRemove(fansub)}query(query,parameters=[]){return this.gs.log("[FANSUB_SERVICE-QUERY] \u{1f37f}",query),this.fansubRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[FANSUB_SERVICE-UPDATE] \u{1f37f}",criteria),this.fansubRepo.update(criteria,partialEntity)}insert(fansub){return this.gs.log("[FANSUB_SERVICE-INSERT] \u{1f37f}",fansub),this.fansubRepo.insert(fansub)}},"FansubService");FansubService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Fansub_1.Fansub)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],FansubService),exports2.FansubService=FansubService},77650:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HirakataService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Hirakata_1=__webpack_require__2(66098),global_service_1=__webpack_require__2(40735);let HirakataService=__name(class{constructor(hirakataRepo,gs){this.hirakataRepo=hirakataRepo,this.gs=gs}new(){return new Hirakata_1.Hirakata}instance(){return this.hirakataRepo}getMetaData(){return this.hirakataRepo.metadata}find(options){return this.gs.log("[HIRAKATA_SERVICE-FIND_ALL] \u{1f5fe}",options),this.hirakataRepo.find(options)}findAndCount(options){return this.gs.log("[HIRAKATA_SERVICE-FIND_AND_COUNT] \u{1f5fe}",options),this.hirakataRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[HIRAKATA_SERVICE-GET_BY] \u{1f5fe}",options),this.hirakataRepo.findOneOrFail(options)}save(hirakata){return this.gs.log("[HIRAKATA_SERVICE-SAVE] \u{1f5fe}",hirakata),this.hirakataRepo.save(hirakata)}count(options){return this.gs.log("[HIRAKATA_SERVICE-COUNT] \u{1f5fe}",options),this.hirakataRepo.count(options)}remove(hirakata){return this.gs.log("[HIRAKATA_SERVICE-REMOVE] \u{1f5fe}",hirakata),this.hirakataRepo.remove(hirakata)}query(query,parameters=[]){return this.gs.log("[HIRAKATA_SERVICE-QUERY] \u{1f5fe}",query),this.hirakataRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[HIRAKATA_SERVICE-UPDATE] \u{1f5fe}",criteria),this.hirakataRepo.update(criteria,partialEntity)}insert(hirakata){return this.gs.log("[HIRAKATA_SERVICE-INSERT] \u{1f5fe}",hirakata),this.hirakataRepo.insert(hirakata)}},"HirakataService");HirakataService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Hirakata_1.Hirakata)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],HirakataService),exports2.HirakataService=HirakataService},26927:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InformationService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Information_1=__webpack_require__2(42014),global_service_1=__webpack_require__2(40735);let InformationService=__name(class{constructor(informationRepo,gs){this.informationRepo=informationRepo,this.gs=gs}new(){return new Information_1.Information}instance(){return this.informationRepo}getMetaData(){return this.informationRepo.metadata}find(options){return this.gs.log("[INFORMATION_SERVICE-FIND_ALL] \u{1f514}",options),this.informationRepo.find(options)}findAndCount(options){return this.gs.log("[INFORMATION_SERVICE-FIND_AND_COUNT] \u{1f514}",options),this.informationRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[INFORMATION_SERVICE-GET_BY] \u{1f514}",options),this.informationRepo.findOneOrFail(options)}save(information){return this.gs.log("[INFORMATION_SERVICE-SAVE] \u{1f514}",information),this.informationRepo.save(information)}count(options){return this.gs.log("[INFORMATION_SERVICE-COUNT] \u{1f514}",options),this.informationRepo.count(options)}remove(information){return this.gs.log("[INFORMATION_SERVICE-REMOVE] \u{1f514}",information),this.informationRepo.softRemove(information)}query(query,parameters=[]){return this.gs.log("[INFORMATION_SERVICE-QUERY] \u{1f514}",query),this.informationRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[INFORMATION_SERVICE-UPDATE] \u{1f514}",criteria),this.informationRepo.update(criteria,partialEntity)}insert(information){return this.gs.log("[INFORMATION_SERVICE-INSERT] \u{1f514}",information),this.informationRepo.insert(information)}},"InformationService");InformationService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Information_1.Information)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],InformationService),exports2.InformationService=InformationService},77495:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.KanjiService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Kanji_1=__webpack_require__2(75092),global_service_1=__webpack_require__2(40735);let KanjiService=__name(class{constructor(kanjiRepo,gs){this.kanjiRepo=kanjiRepo,this.gs=gs}new(){return new Kanji_1.Kanji}instance(){return this.kanjiRepo}getMetaData(){return this.kanjiRepo.metadata}find(options){return this.gs.log("[KANJI_SERVICE-FIND_ALL] \u{1f5fe}",options),this.kanjiRepo.find(options)}findAndCount(options){return this.gs.log("[KANJI_SERVICE-FIND_AND_COUNT] \u{1f5fe}",options),this.kanjiRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[KANJI_SERVICE-GET_BY] \u{1f5fe}",options),this.kanjiRepo.findOneOrFail(options)}save(kanji){return this.gs.log("[KANJI_SERVICE-SAVE] \u{1f5fe}",kanji),this.kanjiRepo.save(kanji)}count(options){return this.gs.log("[KANJI_SERVICE-COUNT] \u{1f5fe}",options),this.kanjiRepo.count(options)}remove(kanji){return this.gs.log("[KANJI_SERVICE-REMOVE] \u{1f5fe}",kanji),this.kanjiRepo.remove(kanji)}query(query,parameters=[]){return this.gs.log("[KANJI_SERVICE-QUERY] \u{1f5fe}",query),this.kanjiRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[KANJI_SERVICE-UPDATE] \u{1f5fe}",criteria),this.kanjiRepo.update(criteria,partialEntity)}insert(kanji){return this.gs.log("[KANJI_SERVICE-INSERT] \u{1f5fe}",kanji),this.kanjiRepo.insert(kanji)}},"KanjiService");KanjiService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Kanji_1.Kanji)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],KanjiService),exports2.KanjiService=KanjiService},35412:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.KanjivgService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Kanjivg_1=__webpack_require__2(70185),global_service_1=__webpack_require__2(40735);let KanjivgService=__name(class{constructor(kanjiVgRepo,gs){this.kanjiVgRepo=kanjiVgRepo,this.gs=gs}new(){return new Kanjivg_1.Kanjivg}instance(){return this.kanjiVgRepo}getMetaData(){return this.kanjiVgRepo.metadata}find(options){return this.gs.log("[KANJIVG_SERVICE-FIND_ALL] \u{1f5fe}",options),this.kanjiVgRepo.find(options)}findAndCount(options){return this.gs.log("[KANJIVG_SERVICE-FIND_AND_COUNT] \u{1f5fe}",options),this.kanjiVgRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[KANJIVG_SERVICE-GET_BY] \u{1f5fe}",options),this.kanjiVgRepo.findOneOrFail(options)}save(kanjiVg){return this.gs.log("[KANJIVG_SERVICE-SAVE] \u{1f5fe}",kanjiVg),this.kanjiVgRepo.save(kanjiVg)}count(options){return this.gs.log("[KANJIVG_SERVICE-COUNT] \u{1f5fe}",options),this.kanjiVgRepo.count(options)}remove(kanjiVg){return this.gs.log("[KANJIVG_SERVICE-REMOVE] \u{1f5fe}",kanjiVg),this.kanjiVgRepo.remove(kanjiVg)}query(query,parameters=[]){return this.gs.log("[KANJIVG_SERVICE-QUERY] \u{1f5fe}",query),this.kanjiVgRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[KANJIVG_SERVICE-UPDATE] \u{1f5fe}",criteria),this.kanjiVgRepo.update(criteria,partialEntity)}insert(kanjiVg){return this.gs.log("[KANJIVG_SERVICE-INSERT] \u{1f5fe}",kanjiVg),this.kanjiVgRepo.insert(kanjiVg)}},"KanjivgService");KanjivgService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Kanjivg_1.Kanjivg)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],KanjivgService),exports2.KanjivgService=KanjivgService},77378:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.KartuTandaPendudukService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),KartuTandaPenduduk_1=__webpack_require__2(32175),global_service_1=__webpack_require__2(40735);let KartuTandaPendudukService=__name(class{constructor(kartuTandaPendudukRepo,gs){this.kartuTandaPendudukRepo=kartuTandaPendudukRepo,this.gs=gs}new(){return new KartuTandaPenduduk_1.KartuTandaPenduduk}instance(){return this.kartuTandaPendudukRepo}getMetaData(){return this.kartuTandaPendudukRepo.metadata}find(options){return this.gs.log("[KARTU_TANDA_PENDUDUK_SERVICE-FIND_ALL] \u{1f468}\u200d\u{1f469}\u200d\u{1f467}\u200d\u{1f466}",options),this.kartuTandaPendudukRepo.find(options)}findAndCount(options){return this.gs.log("[KARTU_TANDA_PENDUDUK_SERVICE-FIND_AND_COUNT] \u{1f468}\u200d\u{1f469}\u200d\u{1f467}\u200d\u{1f466}",options),this.kartuTandaPendudukRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[KARTU_TANDA_PENDUDUK_SERVICE-GET_BY] \u{1f468}\u200d\u{1f469}\u200d\u{1f467}\u200d\u{1f466}",options),this.kartuTandaPendudukRepo.findOneOrFail(options)}save(kartuTandaPenduduk){return this.gs.log("[KARTU_TANDA_PENDUDUK_SERVICE-SAVE] \u{1f468}\u200d\u{1f469}\u200d\u{1f467}\u200d\u{1f466}",kartuTandaPenduduk),this.kartuTandaPendudukRepo.save(kartuTandaPenduduk)}count(options){return this.gs.log("[KARTU_TANDA_PENDUDUK_SERVICE-COUNT] \u{1f468}\u200d\u{1f469}\u200d\u{1f467}\u200d\u{1f466}",options),this.kartuTandaPendudukRepo.count(options)}remove(kartuTandaPenduduk){return this.gs.log("[KARTU_TANDA_PENDUDUK_SERVICE-REMOVE] \u{1f468}\u200d\u{1f469}\u200d\u{1f467}\u200d\u{1f466}",kartuTandaPenduduk),this.kartuTandaPendudukRepo.remove(kartuTandaPenduduk)}query(query,parameters=[]){return this.gs.log("[KARTU_TANDA_PENDUDUK_SERVICE-QUERY] \u{1f468}\u200d\u{1f469}\u200d\u{1f467}\u200d\u{1f466}",query),this.kartuTandaPendudukRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[KARTU_TANDA_PENDUDUK_SERVICE-UPDATE] \u{1f468}\u200d\u{1f469}\u200d\u{1f467}\u200d\u{1f466}",criteria),this.kartuTandaPendudukRepo.update(criteria,partialEntity)}insert(kartuTandaPenduduk){return this.gs.log("[KARTU_TANDA_PENDUDUK_SERVICE-INSERT] \u{1f468}\u200d\u{1f469}\u200d\u{1f467}\u200d\u{1f466}",kartuTandaPenduduk),this.kartuTandaPendudukRepo.insert(kartuTandaPenduduk)}},"KartuTandaPendudukService");KartuTandaPendudukService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(KartuTandaPenduduk_1.KartuTandaPenduduk)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],KartuTandaPendudukService),exports2.KartuTandaPendudukService=KartuTandaPendudukService},83114:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.KomentarService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Komentar_1=__webpack_require__2(12214),global_service_1=__webpack_require__2(40735);let KomentarService=__name(class{constructor(komentarRepo,gs){this.komentarRepo=komentarRepo,this.gs=gs}new(){return new Komentar_1.Komentar}instance(){return this.komentarRepo}getMetaData(){return this.komentarRepo.metadata}find(options){return this.gs.log("[KOMENTAR_SERVICE-FIND_ALL] \u{1f4ac}",options),this.komentarRepo.find(options)}findAndCount(options){return this.gs.log("[KOMENTAR_SERVICE-FIND_AND_COUNT] \u{1f4ac}",options),this.komentarRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[KOMENTAR_SERVICE-GET_BY] \u{1f4ac}",options),this.komentarRepo.findOneOrFail(options)}save(komentar){return this.gs.log("[KOMENTAR_SERVICE-SAVE] \u{1f4ac}",komentar),this.komentarRepo.save(komentar)}count(options){return this.gs.log("[KOMENTAR_SERVICE-COUNT] \u{1f4ac}",options),this.komentarRepo.count(options)}remove(komentar){return this.gs.log("[KOMENTAR_SERVICE-REMOVE] \u{1f4ac}",komentar),this.komentarRepo.softRemove(komentar)}query(query,parameters=[]){return this.gs.log("[KOMENTAR_SERVICE-QUERY] \u{1f4ac}",query),this.komentarRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[KOMENTAR_SERVICE-UPDATE] \u{1f4ac}",criteria),this.komentarRepo.update(criteria,partialEntity)}insert(komentar){return this.gs.log("[KOMENTAR_SERVICE-INSERT] \u{1f4ac}",komentar),this.komentarRepo.insert(komentar)}},"KomentarService");KomentarService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Komentar_1.Komentar)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],KomentarService),exports2.KomentarService=KomentarService},59062:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LikedislikeService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),LikeDislike_1=__webpack_require__2(3692),global_service_1=__webpack_require__2(40735);let LikedislikeService=__name(class{constructor(likeDislikeRepo,gs){this.likeDislikeRepo=likeDislikeRepo,this.gs=gs}new(){return new LikeDislike_1.LikeDislike}instance(){return this.likeDislikeRepo}getMetaData(){return this.likeDislikeRepo.metadata}find(options){return this.gs.log("[LIKE_DISLIKE_SERVICE-FIND_ALL] \u{1f496}",options),this.likeDislikeRepo.find(options)}findAndCount(options){return this.gs.log("[LIKE_DISLIKE_SERVICE-FIND_AND_COUNT] \u{1f496}",options),this.likeDislikeRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[LIKE_DISLIKE_SERVICE-GET_BY] \u{1f496}",options),this.likeDislikeRepo.findOneOrFail(options)}save(likeDislike){return this.gs.log("[LIKE_DISLIKE_SERVICE-SAVE] \u{1f496}",likeDislike),this.likeDislikeRepo.save(likeDislike)}count(options){return this.gs.log("[LIKE_DISLIKE_SERVICE-COUNT] \u{1f496}",options),this.likeDislikeRepo.count(options)}remove(likeDislike){return this.gs.log("[LIKE_DISLIKE_SERVICE-REMOVE] \u{1f496}",likeDislike),this.likeDislikeRepo.remove(likeDislike)}query(query,parameters=[]){return this.gs.log("[LIKE_DISLIKE_SERVICE-QUERY] \u{1f496}",query),this.likeDislikeRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[LIKE_DISLIKE_SERVICE-UPDATE] \u{1f496}",criteria),this.likeDislikeRepo.update(criteria,partialEntity)}insert(likeDislike){return this.gs.log("[LIKE_DISLIKE_SERVICE-INSERT] \u{1f496}",likeDislike),this.likeDislikeRepo.insert(likeDislike)}},"LikedislikeService");LikedislikeService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(LikeDislike_1.LikeDislike)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],LikedislikeService),exports2.LikedislikeService=LikedislikeService},53866:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MailboxService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Mailbox_1=__webpack_require__2(45139),global_service_1=__webpack_require__2(40735);let MailboxService=__name(class{constructor(mailboxRepo,gs){this.mailboxRepo=mailboxRepo,this.gs=gs}new(){return new Mailbox_1.Mailbox}instance(){return this.mailboxRepo}getMetaData(){return this.mailboxRepo.metadata}find(options){return this.gs.log("[MAILBOX_SERVICE-FIND_ALL] \u{1f4be}",options),this.mailboxRepo.find(options)}findAndCount(options){return this.gs.log("[MAILBOX_SERVICE-FIND_AND_COUNT] \u{1f4be}",options),this.mailboxRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[MAILBOX_SERVICE-GET_BY] \u{1f4be}",options),this.mailboxRepo.findOneOrFail(options)}save(mailbox){return this.gs.log("[MAILBOX_SERVICE-SAVE] \u{1f4be}",mailbox),this.mailboxRepo.save(mailbox)}count(options){return this.gs.log("[MAILBOX_SERVICE-COUNT] \u{1f4be}",options),this.mailboxRepo.count(options)}remove(mailbox){return this.gs.log("[MAILBOX_SERVICE-REMOVE] \u{1f4be}",mailbox),this.mailboxRepo.remove(mailbox)}query(query,parameters=[]){return this.gs.log("[MAILBOX_SERVICE-QUERY] \u{1f4be}",query),this.mailboxRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[MAILBOX_SERVICE-UPDATE] \u{1f4be}",criteria),this.mailboxRepo.update(criteria,partialEntity)}insert(mailbox){return this.gs.log("[MAILBOX_SERVICE-INSERT] \u{1f4be}",mailbox),this.mailboxRepo.insert(mailbox)}},"MailboxService");MailboxService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Mailbox_1.Mailbox)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],MailboxService),exports2.MailboxService=MailboxService},48519:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NewsService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),News_1=__webpack_require__2(1224),global_service_1=__webpack_require__2(40735);let NewsService=__name(class{constructor(newsRepo,gs){this.newsRepo=newsRepo,this.gs=gs}new(){return new News_1.News}instance(){return this.newsRepo}getMetaData(){return this.newsRepo.metadata}find(options){return this.gs.log("[NEWS_SERVICE-FIND_ALL] \u{1f4f0}",options),this.newsRepo.find(options)}findAndCount(options){return this.gs.log("[NEWS_SERVICE-FIND_AND_COUNT] \u{1f4f0}",options),this.newsRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[NEWS_SERVICE-GET_BY] \u{1f4f0}",options),this.newsRepo.findOneOrFail(options)}save(news){return this.gs.log("[NEWS_SERVICE-SAVE] \u{1f4f0}",news),this.newsRepo.save(news)}count(options){return this.gs.log("[NEWS_SERVICE-COUNT] \u{1f4f0}",options),this.newsRepo.count(options)}remove(news){return this.gs.log("[NEWS_SERVICE-REMOVE] \u{1f4f0}",news),this.newsRepo.softRemove(news)}query(query,parameters=[]){return this.gs.log("[NEWS_SERVICE-QUERY] \u{1f4f0}",query),this.newsRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[NEWS_SERVICE-UPDATE] \u{1f4f0}",criteria),this.newsRepo.update(criteria,partialEntity)}insert(news){return this.gs.log("[NEWS_SERVICE-INSERT] \u{1f4f0}",news),this.newsRepo.insert(news)}},"NewsService");NewsService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(News_1.News)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],NewsService),exports2.NewsService=NewsService},31242:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NihongoService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Nihongo_1=__webpack_require__2(90053),global_service_1=__webpack_require__2(40735);let NihongoService=__name(class{constructor(nihongoRepo,gs){this.nihongoRepo=nihongoRepo,this.gs=gs}new(){return new Nihongo_1.Nihongo}instance(){return this.nihongoRepo}getMetaData(){return this.nihongoRepo.metadata}find(options){return this.gs.log("[NIHONGO_SERVICE-FIND_ALL] \u{1f5fe}",options),this.nihongoRepo.find(options)}findAndCount(options){return this.gs.log("[NIHONGO_SERVICE-FIND_AND_COUNT] \u{1f5fe}",options),this.nihongoRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[NIHONGO_SERVICE-GET_BY] \u{1f5fe}",options),this.nihongoRepo.findOneOrFail(options)}save(nihongo){return this.gs.log("[NIHONGO_SERVICE-SAVE] \u{1f5fe}",nihongo),this.nihongoRepo.save(nihongo)}count(options){return this.gs.log("[NIHONGO_SERVICE-COUNT] \u{1f5fe}",options),this.nihongoRepo.count(options)}remove(nihongo){return this.gs.log("[NIHONGO_SERVICE-REMOVE] \u{1f5fe}",nihongo),this.nihongoRepo.remove(nihongo)}query(query,parameters=[]){return this.gs.log("[NIHONGO_SERVICE-QUERY] \u{1f5fe}",query),this.nihongoRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[NIHONGO_SERVICE-UPDATE] \u{1f5fe}",criteria),this.nihongoRepo.update(criteria,partialEntity)}insert(nihongo){return this.gs.log("[NIHONGO_SERVICE-INSERT] \u{1f5fe}",nihongo),this.nihongoRepo.insert(nihongo)}},"NihongoService");NihongoService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Nihongo_1.Nihongo)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],NihongoService),exports2.NihongoService=NihongoService},97233:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NotificationService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Notification_1=__webpack_require__2(60115),global_service_1=__webpack_require__2(40735);let NotificationService=__name(class{constructor(notificationRepo,gs){this.notificationRepo=notificationRepo,this.gs=gs}new(){return new Notification_1.Notification}instance(){return this.notificationRepo}getMetaData(){return this.notificationRepo.metadata}find(options){return this.gs.log("[NOTIFICATION_SERVICE-FIND_ALL] \u{1f514}",options),this.notificationRepo.find(options)}findAndCount(options){return this.gs.log("[NOTIFICATION_SERVICE-FIND_AND_COUNT] \u{1f514}",options),this.notificationRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[NOTIFICATION_SERVICE-GET_BY] \u{1f514}",options),this.notificationRepo.findOneOrFail(options)}save(notification){return this.gs.log("[NOTIFICATION_SERVICE-SAVE] \u{1f514}",notification),this.notificationRepo.save(notification)}count(options){return this.gs.log("[NOTIFICATION_SERVICE-COUNT] \u{1f514}",options),this.notificationRepo.count(options)}remove(notification){return this.gs.log("[NOTIFICATION_SERVICE-REMOVE] \u{1f514}",notification),this.notificationRepo.softRemove(notification)}query(query,parameters=[]){return this.gs.log("[NOTIFICATION_SERVICE-QUERY] \u{1f514}",query),this.notificationRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[NOTIFICATION_SERVICE-UPDATE] \u{1f514}",criteria),this.notificationRepo.update(criteria,partialEntity)}insert(notification){return this.gs.log("[NOTIFICATION_SERVICE-INSERT] \u{1f514}",notification),this.notificationRepo.insert(notification)}},"NotificationService");NotificationService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Notification_1.Notification)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],NotificationService),exports2.NotificationService=NotificationService},38854:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ProfileService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Profile_1=__webpack_require__2(86836),global_service_1=__webpack_require__2(40735);let ProfileService=__name(class{constructor(profileRepo,gs){this.profileRepo=profileRepo,this.gs=gs}new(){return new Profile_1.Profile}instance(){return this.profileRepo}getMetaData(){return this.profileRepo.metadata}find(options){return this.gs.log("[PROFILE_SERVICE-FIND_ALL] \u{1f46c}",options),this.profileRepo.find(options)}findAndCount(options){return this.gs.log("[PROFILE_SERVICE-FIND_AND_COUNT] \u{1f46c}",options),this.profileRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[PROFILE_SERVICE-GET_BY] \u{1f46c}",options),this.profileRepo.findOneOrFail(options)}save(profile){return this.gs.log("[PROFILE_SERVICE-SAVE] \u{1f46c}",profile),this.profileRepo.save(profile)}count(options){return this.gs.log("[PROFILE_SERVICE-COUNT] \u{1f46c}",options),this.profileRepo.count(options)}remove(profile){return this.gs.log("[PROFILE_SERVICE-REMOVE] \u{1f46c}",profile),this.profileRepo.remove(profile)}query(query,parameters=[]){return this.gs.log("[PROFILE_SERVICE-QUERY] \u{1f46c}",query),this.profileRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[PROFILE_SERVICE-UPDATE] \u{1f46c}",criteria),this.profileRepo.update(criteria,partialEntity)}insert(profile){return this.gs.log("[PROFILE_SERVICE-INSERT] \u{1f46c}",profile),this.profileRepo.insert(profile)}},"ProfileService");ProfileService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Profile_1.Profile)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],ProfileService),exports2.ProfileService=ProfileService},60264:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ProjectTypeService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),ProjectType_1=__webpack_require__2(98778),global_service_1=__webpack_require__2(40735);let ProjectTypeService=__name(class{constructor(projectTypeRepo,gs){this.projectTypeRepo=projectTypeRepo,this.gs=gs}new(){return new ProjectType_1.ProjectType}instance(){return this.projectTypeRepo}getMetaData(){return this.projectTypeRepo.metadata}find(options){return this.gs.log("[PROJECT_TYPE_SERVICE-FIND_ALL] \u{1f489}",options),this.projectTypeRepo.find(options)}findAndCount(options){return this.gs.log("[PROJECT_TYPE_SERVICE-FIND_AND_COUNT] \u{1f489}",options),this.projectTypeRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[PROJECT_TYPE_SERVICE-GET_BY] \u{1f489}",options),this.projectTypeRepo.findOneOrFail(options)}save(projectType){return this.gs.log("[PROJECT_TYPE_SERVICE-SAVE] \u{1f489}",projectType),this.projectTypeRepo.save(projectType)}count(options){return this.gs.log("[PROJECT_TYPE_SERVICE-COUNT] \u{1f489}",options),this.projectTypeRepo.count(options)}remove(projectType){return this.gs.log("[PROJECT_TYPE_SERVICE-REMOVE] \u{1f489}",projectType),this.projectTypeRepo.softRemove(projectType)}query(query,parameters=[]){return this.gs.log("[PROJECT_TYPE_SERVICE-QUERY] \u{1f489}",query),this.projectTypeRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[PROJECT_TYPE_SERVICE-UPDATE] \u{1f489}",criteria),this.projectTypeRepo.update(criteria,partialEntity)}insert(projectType){return this.gs.log("[PROJECT_TYPE_SERVICE-INSERT] \u{1f489}",projectType),this.projectTypeRepo.insert(projectType)}},"ProjectTypeService");ProjectTypeService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(ProjectType_1.ProjectType)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],ProjectTypeService),exports2.ProjectTypeService=ProjectTypeService},60968:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RegistrationService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Registration_1=__webpack_require__2(18143),global_service_1=__webpack_require__2(40735);let RegistrationService=__name(class{constructor(registrationRepo,gs){this.registrationRepo=registrationRepo,this.gs=gs}new(){return new Registration_1.Registration}instance(){return this.registrationRepo}getMetaData(){return this.registrationRepo.metadata}find(options){return this.gs.log("[REGISTRATION_SERVICE-FIND_ALL] \u{1f50f}",options),this.registrationRepo.find(options)}findAndCount(options){return this.gs.log("[REGISTRATION_SERVICE-FIND_AND_COUNT] \u{1f50f}",options),this.registrationRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[REGISTRATION_SERVICE-GET_BY] \u{1f50f}",options),this.registrationRepo.findOneOrFail(options)}save(registration){return this.gs.log("[REGISTRATION_SERVICE-SAVE] \u{1f50f}",registration),this.registrationRepo.save(registration)}count(options){return this.gs.log("[REGISTRATION_SERVICE-COUNT] \u{1f50f}",options),this.registrationRepo.count(options)}remove(registration){return this.gs.log("[REGISTRATION_SERVICE-REMOVE] \u{1f50f}",registration),this.registrationRepo.remove(registration)}query(query,parameters=[]){return this.gs.log("[REGISTRATION_SERVICE-QUERY] \u{1f50f}",query),this.registrationRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[REGISTRATION_SERVICE-UPDATE] \u{1f50f}",criteria),this.registrationRepo.update(criteria,partialEntity)}insert(registration){return this.gs.log("[REGISTRATION_SERVICE-INSERT] \u{1f50f}",registration),this.registrationRepo.insert(registration)}},"RegistrationService");RegistrationService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Registration_1.Registration)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],RegistrationService),exports2.RegistrationService=RegistrationService},42471:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SocialMediaService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),SocialMedia_1=__webpack_require__2(48234),global_service_1=__webpack_require__2(40735);let SocialMediaService=__name(class{constructor(socialMediaRepo,gs){this.socialMediaRepo=socialMediaRepo,this.gs=gs}new(){return new SocialMedia_1.SocialMedia}instance(){return this.socialMediaRepo}getMetaData(){return this.socialMediaRepo.metadata}find(options){return this.gs.log("[SOCIAL_MEDIA_SERVICE-FIND_ALL] \u{1f647}\u200d\u2642\ufe0f",options),this.socialMediaRepo.find(options)}findAndCount(options){return this.gs.log("[SOCIAL_MEDIA_SERVICE-FIND_AND_COUNT] \u{1f647}\u200d\u2642\ufe0f",options),this.socialMediaRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[SOCIAL_MEDIA_SERVICE-GET_BY] \u{1f647}\u200d\u2642\ufe0f",options),this.socialMediaRepo.findOneOrFail(options)}save(sosmed){return this.gs.log("[SOCIAL_MEDIA_SERVICE-SAVE] \u{1f647}\u200d\u2642\ufe0f",sosmed),this.socialMediaRepo.save(sosmed)}count(options){return this.gs.log("[SOCIAL_MEDIA_SERVICE-COUNT] \u{1f647}\u200d\u2642\ufe0f",options),this.socialMediaRepo.count(options)}remove(sosmed){return this.gs.log("[SOCIAL_MEDIA_SERVICE-REMOVE] \u{1f647}\u200d\u2642\ufe0f",sosmed),this.socialMediaRepo.remove(sosmed)}query(query,parameters=[]){return this.gs.log("[SOCIAL_MEDIA_SERVICE-QUERY] \u{1f647}\u200d\u2642\ufe0f",query),this.socialMediaRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[SOCIAL_MEDIA_SERVICE-UPDATE] \u{1f647}\u200d\u2642\ufe0f",criteria),this.socialMediaRepo.update(criteria,partialEntity)}insert(sosmed){return this.gs.log("[SOCIAL_MEDIA_SERVICE-INSERT] \u{1f647}\u200d\u2642\ufe0f",sosmed),this.socialMediaRepo.insert(sosmed)}},"SocialMediaService");SocialMediaService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(SocialMedia_1.SocialMedia)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],SocialMediaService),exports2.SocialMediaService=SocialMediaService},86069:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.TatoebaService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Tatoeba_1=__webpack_require__2(82535),global_service_1=__webpack_require__2(40735);let TatoebaService=__name(class{constructor(tatoebaRepo,gs){this.tatoebaRepo=tatoebaRepo,this.gs=gs}new(){return new Tatoeba_1.Tatoeba}instance(){return this.tatoebaRepo}getMetaData(){return this.tatoebaRepo.metadata}find(options){return this.gs.log("[TATOEBA_SERVICE-FIND_ALL] \u{1f5fe}",options),this.tatoebaRepo.find(options)}findAndCount(options){return this.gs.log("[TATOEBA_SERVICE-FIND_AND_COUNT] \u{1f5fe}",options),this.tatoebaRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[TATOEBA_SERVICE-GET_BY] \u{1f5fe}",options),this.tatoebaRepo.findOneOrFail(options)}save(tatoeba){return this.gs.log("[TATOEBA_SERVICE-SAVE] \u{1f5fe}",tatoeba),this.tatoebaRepo.save(tatoeba)}count(options){return this.gs.log("[TATOEBA_SERVICE-COUNT] \u{1f5fe}",options),this.tatoebaRepo.count(options)}remove(tatoeba){return this.gs.log("[TATOEBA_SERVICE-REMOVE] \u{1f5fe}",tatoeba),this.tatoebaRepo.remove(tatoeba)}query(query,parameters=[]){return this.gs.log("[TATOEBA_SERVICE-QUERY] \u{1f5fe}",query),this.tatoebaRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[TATOEBA_SERVICE-UPDATE] \u{1f5fe}",criteria),this.tatoebaRepo.update(criteria,partialEntity)}insert(tatoeba){return this.gs.log("[TATOEBA_SERVICE-INSERT] \u{1f5fe}",tatoeba),this.tatoebaRepo.insert(tatoeba)}},"TatoebaService");TatoebaService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Tatoeba_1.Tatoeba)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],TatoebaService),exports2.TatoebaService=TatoebaService},88767:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.TempAttachmentService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),TempAttachment_1=__webpack_require__2(88808),global_service_1=__webpack_require__2(40735);let TempAttachmentService=__name(class{constructor(tempAttachmentRepo,gs){this.tempAttachmentRepo=tempAttachmentRepo,this.gs=gs}new(){return new TempAttachment_1.TempAttachment}instance(){return this.tempAttachmentRepo}getMetaData(){return this.tempAttachmentRepo.metadata}find(options){return this.gs.log("[TEMP_ATTACHMENT_SERVICE-FIND_ALL] \u{1f4be}",options),this.tempAttachmentRepo.find(options)}findAndCount(options){return this.gs.log("[TEMP_ATTACHMENT_SERVICE-FIND_AND_COUNT] \u{1f4be}",options),this.tempAttachmentRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[TEMP_ATTACHMENT_SERVICE-GET_BY] \u{1f4be}",options),this.tempAttachmentRepo.findOneOrFail(options)}save(tempAttachment){return this.gs.log("[TEMP_ATTACHMENT_SERVICE-SAVE] \u{1f4be}",tempAttachment),this.tempAttachmentRepo.save(tempAttachment)}count(options){return this.gs.log("[TEMP_ATTACHMENT_SERVICE-COUNT] \u{1f4be}",options),this.tempAttachmentRepo.count(options)}remove(tempAttachment){return this.gs.log("[TEMP_ATTACHMENT_SERVICE-REMOVE] \u{1f4be}",tempAttachment),this.tempAttachmentRepo.remove(tempAttachment)}query(query,parameters=[]){return this.gs.log("[TEMP_ATTACHMENT_SERVICE-QUERY] \u{1f4be}",query),this.tempAttachmentRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[TEMP_ATTACHMENT_SERVICE-UPDATE] \u{1f4be}",criteria),this.tempAttachmentRepo.update(criteria,partialEntity)}insert(tempAttachment){return this.gs.log("[TEMP_ATTACHMENT_SERVICE-INSERT] \u{1f4be}",tempAttachment),this.tempAttachmentRepo.insert(tempAttachment)}},"TempAttachmentService");TempAttachmentService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(TempAttachment_1.TempAttachment)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],TempAttachmentService),exports2.TempAttachmentService=TempAttachmentService},65896:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.TrackService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),Track_1=__webpack_require__2(75337),global_service_1=__webpack_require__2(40735);let TrackService=__name(class{constructor(trackRepo,gs){this.trackRepo=trackRepo,this.gs=gs}new(){return new Track_1.Track}instance(){return this.trackRepo}getMetaData(){return this.trackRepo.metadata}find(options){return this.gs.log("[TRACK_SERVICE-FIND_ALL] \u{1f6e4}",options),this.trackRepo.find(options)}findAndCount(options){return this.gs.log("[TRACK_SERVICE-FIND_AND_COUNT] \u{1f6e4}",options),this.trackRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[TRACK_SERVICE-GET_BY] \u{1f6e4}",options),this.trackRepo.findOneOrFail(options)}save(track){return this.gs.log("[TRACK_SERVICE-SAVE] \u{1f6e4}",track),this.trackRepo.save(track)}count(options){return this.gs.log("[TRACK_SERVICE-COUNT] \u{1f6e4}",options),this.trackRepo.count(options)}remove(track){return this.gs.log("[TRACK_SERVICE-REMOVE] \u{1f6e4}",track),this.trackRepo.remove(track)}query(query,parameters=[]){return this.gs.log("[TRACK_SERVICE-QUERY] \u{1f6e4}",query),this.trackRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[TRACK_SERVICE-UPDATE] \u{1f6e4}",criteria),this.trackRepo.update(criteria,partialEntity)}insert(trackRepo){return this.gs.log("[TRACK_SERVICE-INSERT] \u{1f6e4}",trackRepo),this.trackRepo.insert(trackRepo)}},"TrackService");TrackService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(Track_1.Track)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],TrackService),exports2.TrackService=TrackService},50675:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UserService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),User_1=__webpack_require__2(20945),global_service_1=__webpack_require__2(40735);let UserService=__name(class{constructor(userRepo,gs){this.userRepo=userRepo,this.gs=gs}new(){return new User_1.User}instance(){return this.userRepo}getMetaData(){return this.userRepo.metadata}find(options){return this.gs.log("[USER_SERVICE-FIND_ALL] \u{1f916}",options),this.userRepo.find(options)}findAndCount(options){return this.gs.log("[USER_SERVICE-FIND_AND_COUNT] \u{1f916}",options),this.userRepo.findAndCount(options)}findOneOrFail(options){return this.gs.log("[USER_SERVICE-GET_BY] \u{1f916}",options),this.userRepo.findOneOrFail(options)}save(user){return this.gs.log("[USER_SERVICE-SAVE] \u{1f916}",user),this.userRepo.save(user)}count(options){return this.gs.log("[USER_SERVICE-COUNT] \u{1f916}",options),this.userRepo.count(options)}remove(user){return this.gs.log("[USER_SERVICE-REMOVE] \u{1f916}",user),this.userRepo.softRemove(user)}query(query,parameters=[]){return this.gs.log("[USER_SERVICE-QUERY] \u{1f916}",query),this.userRepo.query(query,parameters)}update(criteria,partialEntity){return this.gs.log("[USER_SERVICE-UPDATE] \u{1f916}",criteria),this.userRepo.update(criteria,partialEntity)}insert(user){return this.gs.log("[USER_SERVICE-INSERT] \u{1f916}",user),this.userRepo.insert(user)}},"UserService");UserService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,typeorm_1.InjectRepository)(User_1.User)),tslib_1.__metadata("design:paramtypes",[typeorm_2.Repository,global_service_1.GlobalService])],UserService),exports2.UserService=UserService},36339:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RssFeedTasksService=void 0;const tslib_1=__webpack_require__2(70655),rss_to_json_1=__webpack_require__2(96213),node_fs_1=__webpack_require__2(35404),common_1=__webpack_require__2(28791),schedule_1=__webpack_require__2(31143),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),fansub_service_1=__webpack_require__2(51467),global_service_1=__webpack_require__2(40735);let RssFeedTasksService=__name(class{constructor(cm,fansubRepo,gs){this.cm=cm,this.fansubRepo=fansubRepo,this.gs=gs}getFeedByUrl(rssUrl){return rssUrl.includes("alt=rss")||(rssUrl.includes("?")?"?"!==rssUrl[rssUrl.length-1]&&(rssUrl+="&"):rssUrl+="?",rssUrl+="alt=rss"),this.gs.log("[CRON_TASK_FANSUB_RSS_FEED-PARSING] \u{1f43e}",rssUrl),(0,rss_to_json_1.parse)(`${environment_1.environment.baseUrl}/api/crawl?url=${rssUrl}`,null)}sortRssFeedWhileAdding(fansub,rssFeed,feed,countData=null){countData||(countData=feed.items.length);for(let i2=0;i2(rssFeed[j].item.created||rssFeed[j].item.published))break;j++}rssFeed.splice(j,0,{image_url:fansub.image_url,slug:fansub.slug,title:feed.title,link:feed.link,item:{title:feed.items[i2].title,link:feed.items[i2].link,published:feed.items[i2].published,created:feed.items[i2].created,author:feed.items[i2].author}})}}saveFeedToFileAndCache(reqUrl,resBody){this.cm.del(`/api/${reqUrl}`),this.cm.set(`/api/${reqUrl}`,{status:200,body:resBody},{ttl:environment_1.environment.externalApiCacheTime}),(0,node_fs_1.writeFile)(`${environment_1.environment.jsonCacheFolder}/${reqUrl}.new.json`,JSON.stringify(resBody,null,2),"utf8",e1=>{e1?this.gs.log("[NODE_FS_WRITE_FILE-ERROR] \u{1f4dd}",e1,"error"):(0,node_fs_1.unlink)(`${environment_1.environment.jsonCacheFolder}/${reqUrl}.old.json`,e2=>{e2&&this.gs.log("[NODE_FS_UNLINK-ERROR] \u{1f517}",e2,"error"),(0,node_fs_1.rename)(`${environment_1.environment.jsonCacheFolder}/${reqUrl}.new.json`,`${environment_1.environment.jsonCacheFolder}/${reqUrl}.old.json`,e3=>{e3&&this.gs.log("[NODE_FS_RENAME-ERROR] \u{1f4db}",e3,"error")})})})}fansubRssFeedAll(){var _this=this;return _asyncToGenerator(function*(){const startTime=new Date;_this.gs.log("[CRON_TASK_FANSUB_RSS_FEED-START] \u{1f43e}",`${startTime}`);try{const rssFeedAll=[],rssFeedActive=[],fansubs=yield _this.fansubRepo.find({where:[{rss_feed:(0,typeorm_1.Not)((0,typeorm_1.IsNull)())}],order:{updated_at:"DESC"}}),rgx=new RegExp(constants_1.CONSTANTS.regexUrl);for(const fs of fansubs)if(fs.rss_feed.match(rgx))try{const feed=yield _this.getFeedByUrl(fs.rss_feed);_this.sortRssFeedWhileAdding(fs,rssFeedAll,feed),fs.active&&_this.sortRssFeedWhileAdding(fs,rssFeedActive,feed,1)}catch(e){_this.gs.log("[CRON_TASK_FANSUB_RSS_FEED-ERROR_PARSE] \u{1f43e}",e,"error")}_this.saveFeedToFileAndCache("fansub-rss-feed-all",{info:"\u{1f605} 200 - Fansub API :: RSS Feed All Full Fansubs \u{1f923}",count:rssFeedAll.length,pages:1,results:rssFeedAll}),_this.saveFeedToFileAndCache("fansub-rss-feed-active",{info:"\u{1f605} 200 - Fansub API :: RSS Feed All Active Fansubs \u{1f923}",count:rssFeedActive.length,pages:1,results:rssFeedActive})}catch(error){_this.gs.log("[CRON_TASK_FANSUB_RSS_FEED-ERROR] \u{1f43e}",error,"error")}const endTime=new Date,elapsedTime=endTime.getTime()-startTime.getTime();_this.gs.log("[CRON_TASK_FANSUB_RSS_FEED-END] \u{1f43e}",`${endTime} @ ${elapsedTime} ms`)})()}},"RssFeedTasksService");tslib_1.__decorate([(0,schedule_1.Cron)(schedule_1.CronExpression.EVERY_30_MINUTES,{name:constants_1.CONSTANTS.cronFansubRssFeed}),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[]),tslib_1.__metadata("design:returntype",Promise)],RssFeedTasksService.prototype,"fansubRssFeedAll",null),RssFeedTasksService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__param(0,(0,common_1.Inject)(common_1.CACHE_MANAGER)),tslib_1.__metadata("design:paramtypes",[Object,fansub_service_1.FansubService,global_service_1.GlobalService])],RssFeedTasksService),exports2.RssFeedTasksService=RssFeedTasksService},84277:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SitemapService=void 0;const tslib_1=__webpack_require__2(70655),xml_js_1=__webpack_require__2(42440),node_fs_1=__webpack_require__2(35404),common_1=__webpack_require__2(28791),schedule_1=__webpack_require__2(31143),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),global_service_1=__webpack_require__2(40735),news_service_1=__webpack_require__2(48519),fansub_service_1=__webpack_require__2(51467),berkas_service_1=__webpack_require__2(17319);let SitemapService=__name(class{constructor(gs,newsRepo,fansubRepo,berkasRepo){this.gs=gs,this.newsRepo=newsRepo,this.fansubRepo=fansubRepo,this.berkasRepo=berkasRepo,this.untrackedUrlsListNews=[],this.untrackedUrlsListFansub=[],this.untrackedUrlsListBerkas=[],this.xmlOpt={compact:!0,spaces:2}}getNewsUrl(){var _this=this;return _asyncToGenerator(function*(){const news=yield _this.newsRepo.find({order:{created_at:"DESC"}});for(const n of news)_this.untrackedUrlsListNews.push({url:`${environment_1.environment.baseUrl}/news/${n.id}`,lastmod:n.updated_at})})()}getFansubUrl(){var _this2=this;return _asyncToGenerator(function*(){const fansub=yield _this2.fansubRepo.find({order:{created_at:"DESC"}});for(const f2 of fansub)_this2.untrackedUrlsListFansub.push({url:`${environment_1.environment.baseUrl}/fansub/${f2.slug}`,lastmod:f2.updated_at})})()}getBerkasUrl(){var _this3=this;return _asyncToGenerator(function*(){const berkas=yield _this3.berkasRepo.find({where:[{private:!1,user_:{private:!1}}],order:{created_at:"DESC"},relations:["user_"],take:500});for(const b2 of berkas)_this3.untrackedUrlsListBerkas.push({url:`${environment_1.environment.baseUrl}/berkas/${b2.id}`,lastmod:b2.updated_at})})()}generateSitemap(){var _this4=this;return _asyncToGenerator(function*(){const startTime=new Date;_this4.gs.log("[CRON_TASK_SITEMAP-START] \u{1f43e}",`${startTime}`);try{yield _this4.getNewsUrl(),yield _this4.getFansubUrl(),yield _this4.getBerkasUrl();const untrackedUrlsList=[..._this4.untrackedUrlsListNews,..._this4.untrackedUrlsListFansub,..._this4.untrackedUrlsListBerkas],contentString=(0,node_fs_1.readFileSync)(`${environment_1.environment.viewFolder}/sitemap.template.xml`,"utf8"),objString=(0,xml_js_1.xml2json)(contentString,_this4.xmlOpt),existingSitemapList=JSON.parse(objString);for(const u of untrackedUrlsList)existingSitemapList.urlset.url.push({loc:{_text:u.url},lastmod:{_text:new Date(u.lastmod).toISOString()}});const xmlString=(0,xml_js_1.json2xml)(existingSitemapList,_this4.xmlOpt);(0,node_fs_1.existsSync)(`${environment_1.environment.viewFolder}/sitemap.xml`)&&(0,node_fs_1.unlinkSync)(`${environment_1.environment.viewFolder}/sitemap.xml`),(0,node_fs_1.writeFileSync)(`${environment_1.environment.viewFolder}/sitemap.xml`,xmlString,"utf8")}catch(error){_this4.gs.log("[CRON_TASK_SITEMAP-ERROR] \u{1f43e}",error,"error")}const endTime=new Date,elapsedTime=endTime.getTime()-startTime.getTime();_this4.gs.log("[CRON_TASK_SITEMAP-END] \u{1f43e}",`${endTime} @ ${elapsedTime} ms`)})()}},"SitemapService");tslib_1.__decorate([(0,schedule_1.Cron)(schedule_1.CronExpression.EVERY_HOUR,{name:constants_1.CONSTANTS.cronSitemap}),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[]),tslib_1.__metadata("design:returntype",Promise)],SitemapService.prototype,"generateSitemap",null),SitemapService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[global_service_1.GlobalService,news_service_1.NewsService,fansub_service_1.FansubService,berkas_service_1.BerkasService])],SitemapService),exports2.SitemapService=SitemapService},13266:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.TrackerStatisticsService=void 0;const tslib_1=__webpack_require__2(70655),node_url_1=__webpack_require__2(46024),common_1=__webpack_require__2(28791),schedule_1=__webpack_require__2(31143),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),api_service_1=__webpack_require__2(99527),global_service_1=__webpack_require__2(40735),socket_io_service_1=__webpack_require__2(98095),discord_service_1=__webpack_require__2(92453);let TrackerStatisticsService=__name(class{constructor(gs,sis,api,ds){this.gs=gs,this.sis=sis,this.api=api,this.ds=ds,this.torrentTracker={torrents:0,activeTorrents:0,peersAll:0,peersSeederOnly:0,peersLeecherOnly:0,peersSeederAndLeecher:0,peersIPv4:0,peersIPv6:0,clients:{}}}updateVisitor(){var _a,_b,_c,_d;this.ds&&this.sis&&(null===(_b=null===(_a=this.ds.bot)||void 0===_a?void 0:_a.user)||void 0===_b||_b.setPresence({status:"idle",activities:[{name:`:: \u{1f3c3}\u200d\u2642\ufe0f ${(null===(_c=this.sis.getAllClientsSocket())||void 0===_c?void 0:_c.size)||0} \u2022 \u{1f517} ${(null===(_d=this.torrentTracker)||void 0===_d?void 0:_d.peersAll)||0}`,type:"WATCHING",url:environment_1.environment.baseUrl}]}))}statistics(){var _this=this;return _asyncToGenerator(function*(){const startTime=new Date;_this.gs.log("[CRON_TASK_TRACKER_STATISTICS-START] \u{1f43e}",`${startTime}`);try{const url=new node_url_1.URL(`http://tracker.${environment_1.environment.domain}/stats.json`),res_raw=yield _this.api.getData(url,{...environment_1.environment.nodeJsXhrHeader});_this.torrentTracker=yield res_raw.json()}catch(error){_this.gs.log("[CRON_TASK_TRACKER_STATISTICS-ERROR] \u{1f43e}",error,"error")}_this.updateVisitor();const endTime=new Date,elapsedTime=endTime.getTime()-startTime.getTime();_this.gs.log("[CRON_TASK_TRACKER_STATISTICS-END] \u{1f43e}",`${endTime} @ ${elapsedTime} ms`)})()}},"TrackerStatisticsService");tslib_1.__decorate([(0,schedule_1.Cron)(schedule_1.CronExpression.EVERY_MINUTE,{name:constants_1.CONSTANTS.cronTrackerStatistics}),tslib_1.__metadata("design:type",Function),tslib_1.__metadata("design:paramtypes",[]),tslib_1.__metadata("design:returntype",Promise)],TrackerStatisticsService.prototype,"statistics",null),TrackerStatisticsService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[global_service_1.GlobalService,socket_io_service_1.SocketIoService,api_service_1.ApiService,discord_service_1.DiscordService])],TrackerStatisticsService),exports2.TrackerStatisticsService=TrackerStatisticsService},99527:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ApiService=void 0;const tslib_1=__webpack_require__2(70655),node_fetch_1=tslib_1.__importDefault(__webpack_require__2(22651)),common_1=__webpack_require__2(28791),global_service_1=__webpack_require__2(40735);let ApiService=__name(class{constructor(gs){this.gs=gs}getData(url,headers,signal=null){var _this=this;return _asyncToGenerator(function*(){return _this.gs.log(`[FETCH_GET-HEADER] \u{1f9e9} ${url.toString()}`,headers),(0,node_fetch_1.default)(url.toString(),{method:"GET",headers,signal})})()}postData(url,form,headers,signal=null){var _this2=this;return _asyncToGenerator(function*(){return _this2.gs.log(`[FETCH_POST-HEADER] \u{1f9e9} ${url.toString()}`,headers),_this2.gs.log(`[FETCH_POST-BODY] \u{1f9e9} ${url.toString()}`,form),(0,node_fetch_1.default)(url.toString(),{method:"POST",body:form,headers,signal})})()}putData(url,form,headers,signal=null){var _this3=this;return _asyncToGenerator(function*(){return _this3.gs.log(`[FETCH_PUT-HEADER] \u{1f9e9} ${url.toString()}`,headers),_this3.gs.log(`[FETCH_PUT-BODY] \u{1f9e9} ${url.toString()}`,form),(0,node_fetch_1.default)(url.toString(),{method:"PUT",body:form,headers,signal})})()}patchData(url,form,headers,signal=null){var _this4=this;return _asyncToGenerator(function*(){return _this4.gs.log(`[FETCH_PATCH-HEADER] \u{1f9e9} ${url.toString()}`,headers),_this4.gs.log(`[FETCH_PATCH-BODY] \u{1f9e9} ${url.toString()}`,form),(0,node_fetch_1.default)(url.toString(),{method:"PATCH",body:form,headers,signal})})()}deleteData(url,headers,signal=null){var _this5=this;return _asyncToGenerator(function*(){return _this5.gs.log(`[FETCH_DELETE-HEADER] \u{1f9e9} ${url.toString()}`,headers),(0,node_fetch_1.default)(url.toString(),{method:"DELETE",headers,signal})})()}},"ApiService");ApiService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[global_service_1.GlobalService])],ApiService),exports2.ApiService=ApiService},99985:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AuthService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(92274),banned_service_1=__webpack_require__2(51201),kartu_tanda_penduduk_service_1=__webpack_require__2(77378),profile_service_1=__webpack_require__2(38854),registration_service_1=__webpack_require__2(60968),social_media_service_1=__webpack_require__2(42471),user_service_1=__webpack_require__2(50675),crypto_service_1=__webpack_require__2(4030);let AuthService=__name(class{constructor(cs,bannedRepo,kartuTandaPendudukRepo,profileRepo,registrationRepo,userRepo,sosmedRepo){this.cs=cs,this.bannedRepo=bannedRepo,this.kartuTandaPendudukRepo=kartuTandaPendudukRepo,this.profileRepo=profileRepo,this.registrationRepo=registrationRepo,this.userRepo=userRepo,this.sosmedRepo=sosmedRepo}getUserRequestJwt(userId,token){var _this=this;return _asyncToGenerator(function*(){try{return yield _this.userRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(userId),session_token:(0,typeorm_1.Equal)(token)}],relations:["kartu_tanda_penduduk_","profile_"]})}catch{return null}})()}isAccountBanned(userId){var _this2=this;return _asyncToGenerator(function*(){try{return yield _this2.bannedRepo.findOneOrFail({where:[{user_:{id:(0,typeorm_1.Equal)(userId)}}],relations:["user_"]})}catch{return null}})()}activateAccount(token){var _this3=this;return _asyncToGenerator(function*(){try{const decoded=_this3.cs.jwtDecode(token),selectedRegistration=yield _this3.registrationRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(decoded.user.id)}]}),newUser=_this3.userRepo.new();newUser.username=selectedRegistration.username,newUser.email=selectedRegistration.email,newUser.password=selectedRegistration.password;const newUserKtp=_this3.kartuTandaPendudukRepo.new();newUserKtp.nama=selectedRegistration.nama,newUser.kartu_tanda_penduduk_=newUserKtp;const newUserProfile=_this3.profileRepo.new();newUser.profile_=newUserProfile;const resUserSave=yield _this3.userRepo.save(newUser),{password,session_token,session_origin,...noPwdSes}=resUserSave;return delete noPwdSes.kartu_tanda_penduduk_,delete noPwdSes.profile_,resUserSave.session_token=_this3.cs.credentialEncode({user:noPwdSes}),yield _this3.userRepo.save(resUserSave)}catch{return null}})()}reSendActivation(reqBody){var _this4=this;return _asyncToGenerator(function*(){try{return yield _this4.registrationRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(reqBody.id)}]})}catch{return null}})()}verifySosmedAccount(token,sosMedModel){var _this5=this;return _asyncToGenerator(function*(){try{const decoded=_this5.cs.jwtDecode(token),sosmed=yield _this5.sosmedRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(decoded[sosMedModel.toLowerCase()].id),type:sosMedModel,user_:{id:(0,typeorm_1.Equal)(decoded.user.id)}}],relations:["user_"]}),user=yield _this5.userRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(sosmed.user_.id)}],relations:["kartu_tanda_penduduk_","profile_"]});user.verified=!0;const resUserSave=yield _this5.userRepo.save(user),{password,session_token,session_origin,...noPwdSes}=resUserSave;return delete noPwdSes.kartu_tanda_penduduk_,delete noPwdSes.profile_,resUserSave.session_token=_this5.cs.credentialEncode({user:noPwdSes}),yield _this5.userRepo.save(resUserSave)}catch{return null}})()}},"AuthService");AuthService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[crypto_service_1.CryptoService,banned_service_1.BannedService,kartu_tanda_penduduk_service_1.KartuTandaPendudukService,profile_service_1.ProfileService,registration_service_1.RegistrationService,user_service_1.UserService,social_media_service_1.SocialMediaService])],AuthService),exports2.AuthService=AuthService},94358:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CloudflareService=void 0;const tslib_1=__webpack_require__2(70655),node_url_1=__webpack_require__2(46024),common_1=__webpack_require__2(28791),environment_1=__webpack_require__2(17482),api_service_1=__webpack_require__2(99527),global_service_1=__webpack_require__2(40735);let CloudflareService=__name(class{constructor(api,gs){this.api=api,this.gs=gs}getDnss(name="",page=1,per_page=10,order="name",direction="asc",type="A,CNAME"){var _this=this;return _asyncToGenerator(function*(){var _a,_b;try{const url=new node_url_1.URL(`${environment_1.environment.cloudflare.url}/zones/${environment_1.environment.cloudflare.zoneId}/dns_records?name=${name}&type=${type}&page=${page}&per_page=${per_page}&order=${order}&direction=${direction}&comment=${environment_1.environment.cloudflare.comment}`),res_raw=yield _this.api.getData(url,{Authorization:`Bearer ${environment_1.environment.cloudflare.key}`,...environment_1.environment.nodeJsXhrHeader}),res={status:res_raw.status,count:0,pages:1,results:[]},res_json=yield res_raw.json();return res_raw.ok?(_this.gs.log(`[CLOUDFLARE_SERVICE-LIST_DNS_SUCCESS] \u{1f525} ${res_raw.status}`,res_json),res.count=(null===(_a=res_json.result_info)||void 0===_a?void 0:_a.total_count)||0,res.pages=(null===(_b=res_json.result_info)||void 0===_b?void 0:_b.total_pages)||1,res.results=res_json.result):_this.gs.log(`[CLOUDFLARE_SERVICE-LIST_DNS_SUCCESS] \u{1f525} ${res_raw.status}`,res_json,"error"),res}catch(err){return _this.gs.log("[CLOUDFLARE_SERVICE-LIST_DNS_ERROR] \u{1f525}",err,"error"),null}})()}createDns(name,content,type,comment){var _this2=this;return _asyncToGenerator(function*(){var _a;try{const url=new node_url_1.URL(`${environment_1.environment.cloudflare.url}/zones/${environment_1.environment.cloudflare.zoneId}/dns_records`),res_raw=yield _this2.api.postData(url,JSON.stringify({name:name.includes(`.${environment_1.environment.cloudflare.domain}`)?name:`${name}.${environment_1.environment.cloudflare.domain}`,type,content,comment,ttl:1,proxied:"A"===type}),{Authorization:`Bearer ${environment_1.environment.cloudflare.key}`,...environment_1.environment.nodeJsXhrHeader}),res={status:res_raw.status,result:null},res_json=yield res_raw.json();return res_raw.ok?(_this2.gs.log(`[CLOUDFLARE_SERVICE-CREATE_DNS_SUCCESS] \u{1f525} ${res_raw.status}`,res_json),res.result=res_json.result):(_this2.gs.log(`[CLOUDFLARE_SERVICE-CREATE_DNS_FAIL] \u{1f525} ${res_raw.status}`,res_json,"error"),res.result={message:null===(_a=res_json.errors[0])||void 0===_a?void 0:_a.message}),res}catch(err){return _this2.gs.log("[CLOUDFLARE_SERVICE-CREATE_DNS_ERROR] \u{1f525}",err,"error"),null}})()}detailDns(id){var _this3=this;return _asyncToGenerator(function*(){var _a;try{const url=new node_url_1.URL(`${environment_1.environment.cloudflare.url}/zones/${environment_1.environment.cloudflare.zoneId}/dns_records/${id}`),res_raw=yield _this3.api.getData(url,{Authorization:`Bearer ${environment_1.environment.cloudflare.key}`,...environment_1.environment.nodeJsXhrHeader}),res={status:res_raw.status,result:null},res_json=yield res_raw.json();return res_raw.ok?(_this3.gs.log(`[CLOUDFLARE_SERVICE-DETAIL_DNS_SUCCESS] \u{1f525} ${res_raw.status}`,res_json),res.result=res_json.result):(_this3.gs.log(`[CLOUDFLARE_SERVICE-DETAIL_DNS_FAIL] \u{1f525} ${res_raw.status}`,res_json,"error"),res.result={message:null===(_a=res_json.errors[0])||void 0===_a?void 0:_a.message}),res}catch(err){return _this3.gs.log("[CLOUDFLARE_SERVICE-DETAIL_DNS_ERROR] \u{1f525}",err,"error"),null}})()}updateDns(id,name,content,type,comment){var _this4=this;return _asyncToGenerator(function*(){var _a;try{const url=new node_url_1.URL(`${environment_1.environment.cloudflare.url}/zones/${environment_1.environment.cloudflare.zoneId}/dns_records/${id}`),data={name:name.includes(`.${environment_1.environment.cloudflare.domain}`)?name:`${name}.${environment_1.environment.cloudflare.domain}`,type,content,comment,ttl:1,proxied:"A"===type},res_raw=yield _this4.api.putData(url,JSON.stringify(data),{Authorization:`Bearer ${environment_1.environment.cloudflare.key}`,...environment_1.environment.nodeJsXhrHeader}),res={status:res_raw.status,result:null},res_json=yield res_raw.json();return res_raw.ok?(_this4.gs.log(`[CLOUDFLARE_SERVICE-UPDATE_DNS_SUCCESS] \u{1f525} ${res_raw.status}`,res_json),res.result=res_json.result):(_this4.gs.log(`[CLOUDFLARE_SERVICE-UPDATE_DNS_FAIL] \u{1f525} ${res_raw.status}`,res_json,"error"),res.result={message:null===(_a=res_json.errors[0])||void 0===_a?void 0:_a.message}),res}catch(err){return _this4.gs.log("[CLOUDFLARE_SERVICE-UPDATE_DNS_ERROR] \u{1f525}",err,"error"),null}})()}deleteDns(id){var _this5=this;return _asyncToGenerator(function*(){var _a;try{const url=new node_url_1.URL(`${environment_1.environment.cloudflare.url}/zones/${environment_1.environment.cloudflare.zoneId}/dns_records/${id}`),res_raw=yield _this5.api.deleteData(url,{Authorization:`Bearer ${environment_1.environment.cloudflare.key}`,...environment_1.environment.nodeJsXhrHeader}),res={status:res_raw.status,result:null},res_json=yield res_raw.json();return res_raw.ok?(_this5.gs.log(`[CLOUDFLARE_SERVICE-DELETE_DNS_SUCCESS] \u{1f525} ${res_raw.status}`,res_json),res.result=res_json.result):(_this5.gs.log(`[CLOUDFLARE_SERVICE-DELETE_DNS_FAIL] \u{1f525} ${res_raw.status}`,res_json,"error"),res.result=null===(_a=res_json.errors[0])||void 0===_a?void 0:_a.message),res}catch(err){return _this5.gs.log("[CLOUDFLARE_SERVICE-DELETE_DNS_ERROR] \u{1f525}",err,"error"),null}})()}},"CloudflareService");CloudflareService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[api_service_1.ApiService,global_service_1.GlobalService])],CloudflareService),exports2.CloudflareService=CloudflareService},94315:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ConfigService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),environment_1=__webpack_require__2(17482),global_service_1=__webpack_require__2(40735);let ConfigService=__name(class{constructor(gs){this.gs=gs,this.domainIpBypass=[environment_1.environment.domain,environment_1.environment.domain_alt,environment_1.environment.ip,"127.0.0.1","::1","localhost"],this.github=null,this.statsServer={mainSite:{cpus:0,mem_ram:0,disk_io:0,net_tx:0,net_rx:0}},this.settings={isMaintenance:!1,winboxOpenLink:!1,discordNotification:!0,openForRegister:!0}}serverGet(){return this.settings}serverSet(data){var _a;for(const key in data)this.settings.hasOwnProperty(key)&&(null===(_a=this.gs)||void 0===_a||_a.log(`[CONFIG_SERVICE-SERVER_SET_${key.toUpperCase()}] \u{1f440}`,data[key]),this.settings[key]=data[key])}serverGetMaintenance(){return this.serverGet().isMaintenance}serverGetWinboxOpenLink(){return this.serverGet().winboxOpenLink}serverGetDiscordNotification(){return this.serverGet().discordNotification}serverGetOpenForRegister(){return this.serverGet().openForRegister}},"ConfigService");ConfigService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[global_service_1.GlobalService])],ConfigService),exports2.ConfigService=ConfigService},4030:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CryptoService=void 0;const tslib_1=__webpack_require__2(70655),node_buffer_1=__webpack_require__2(26195),crypto_js_1=__webpack_require__2(7206),jsonwebtoken_1=__webpack_require__2(61265),common_1=__webpack_require__2(28791),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),global_service_1=__webpack_require__2(40735);let CryptoService=__name(class{constructor(gs){this.gs=gs,this.jwtAlgorithm=constants_1.CONSTANTS.jwtAlgorithm,this.jwtIssuer=environment_1.environment.author,this.jwtAudience=environment_1.environment.siteName,this.jwtSecretKey=this.hashPassword(environment_1.environment.jwtSecretKey),this.jwtExpiredIn=constants_1.CONSTANTS.jwtExpiredIn,this.keySize=256,this.ivSize=128,this.iterations=100,this.apiKey="00000000-0000-0000-0000-000000000000"}universalBtoa(str){return this.convertToBase64(str)}universalAtob(b64Encoded){return this.convertFromBase64(b64Encoded)}convertToBase64(str){return this.convertEncoding(str).toString("base64")}convertFromBase64(b64Encoded){return this.convertEncoding(b64Encoded,"base64").toString()}convertEncoding(obj,enc=null){return enc?node_buffer_1.Buffer.from(obj,enc):node_buffer_1.Buffer.from(obj)}msgEncrypt(message2,keyPass=this.apiKey){const salt=crypto_js_1.lib.WordArray.random(16),key=(0,crypto_js_1.PBKDF2)(keyPass,salt,{keySize:this.keySize/32,iterations:this.iterations}),iv=crypto_js_1.lib.WordArray.random(16),transitMessage=crypto_js_1.AES.encrypt(message2,key,{iv,padding:crypto_js_1.pad.Pkcs7,mode:crypto_js_1.mode.CBC});return salt.toString()+iv.toString()+transitMessage.toString()}msgDecrypt(encryptedMessage,keyPass=this.apiKey){const salt=crypto_js_1.enc.Hex.parse(encryptedMessage.substr(0,32)),iv=crypto_js_1.enc.Hex.parse(encryptedMessage.substr(32,32)),transitMessage=encryptedMessage.substring(64),key=(0,crypto_js_1.PBKDF2)(keyPass,salt,{keySize:this.keySize/32,iterations:this.iterations});return crypto_js_1.AES.decrypt(transitMessage,key,{iv,padding:crypto_js_1.pad.Pkcs7,mode:crypto_js_1.mode.CBC}).toString(crypto_js_1.enc.Utf8)}hashPassword(password){return(0,crypto_js_1.SHA512)(password).toString()}credentialEncode(data,rememberMe=!1,expiresIn=null){return this.jwtEncode(data,rememberMe?constants_1.CONSTANTS.timeLoginRememberMe:expiresIn||this.jwtExpiredIn)}credentialDecode(token){try{token.startsWith("Bearer ")&&(token=token.slice(7,token.length));const decoded=this.jwtDecode(token);return this.gs.log("[CRYPTO_SERVICE-CREDENTIAL_DECODE_SUCCESS] \u{1f36a}",decoded),decoded}catch(error){throw error}}jwtEncode(data,exp){return(0,jsonwebtoken_1.sign)(data,this.jwtSecretKey,{algorithm:this.jwtAlgorithm,issuer:this.jwtIssuer,audience:this.jwtAudience,expiresIn:exp})}jwtDecode(token){return(0,jsonwebtoken_1.verify)(token,this.jwtSecretKey)}jwtView(token){return(0,jsonwebtoken_1.decode)(token)}},"CryptoService");CryptoService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[global_service_1.GlobalService])],CryptoService),exports2.CryptoService=CryptoService},92453:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default,_asyncIterator=__webpack_require__2(47003).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DiscordService=void 0;const tslib_1=__webpack_require__2(70655),discord_js_1=__webpack_require__2(21349),node_fs_1=__webpack_require__2(35404),node_url_1=__webpack_require__2(46024),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),req_res_model_1=__webpack_require__2(14249),api_service_1=__webpack_require__2(99527),config_service_1=__webpack_require__2(94315),crypto_service_1=__webpack_require__2(4030),global_service_1=__webpack_require__2(40735),fansub_member_service_1=__webpack_require__2(85434),user_service_1=__webpack_require__2(50675),ddl_file_1=__webpack_require__2(34885),social_media_service_1=__webpack_require__2(42471);let DiscordService=__name(class{constructor(api,cfg,cs,gs,userRepo,fansubMemberRepo,ddlFileRepo,sosmedRepo){this.api=api,this.cfg=cfg,this.cs=cs,this.gs=gs,this.userRepo=userRepo,this.fansubMemberRepo=fansubMemberRepo,this.ddlFileRepo=ddlFileRepo,this.sosmedRepo=sosmedRepo,this.bot=null,environment_1.environment.production&&this.startBot()}startBot(){var _this=this;this.bot=new discord_js_1.Client({restRequestTimeout:6e4,intents:[discord_js_1.Intents.FLAGS.GUILDS,discord_js_1.Intents.FLAGS.GUILD_MEMBERS,discord_js_1.Intents.FLAGS.GUILD_BANS,discord_js_1.Intents.FLAGS.GUILD_EMOJIS_AND_STICKERS,discord_js_1.Intents.FLAGS.GUILD_INTEGRATIONS,discord_js_1.Intents.FLAGS.GUILD_WEBHOOKS,discord_js_1.Intents.FLAGS.GUILD_INVITES,discord_js_1.Intents.FLAGS.GUILD_VOICE_STATES,discord_js_1.Intents.FLAGS.GUILD_PRESENCES,discord_js_1.Intents.FLAGS.GUILD_MESSAGES,discord_js_1.Intents.FLAGS.GUILD_MESSAGE_REACTIONS,discord_js_1.Intents.FLAGS.GUILD_MESSAGE_TYPING,discord_js_1.Intents.FLAGS.DIRECT_MESSAGES,discord_js_1.Intents.FLAGS.DIRECT_MESSAGE_REACTIONS,discord_js_1.Intents.FLAGS.DIRECT_MESSAGE_TYPING],partials:["MESSAGE","REACTION","GUILD_MEMBER","USER","CHANNEL"]}),this.bot.on("messageCreate",msg=>{msg.channel.id===environment_1.environment.discord.channelBotId&&msg.content.startsWith("~")&&(this.gs.log(`[${msg.guild.name}] \u{1f389} [${msg.channel.name}] [${msg.author.username}#${msg.author.discriminator}] ${msg.content} \u{1f3b6}`),this.handleMessage(msg))}),this.bot.on("ready",_asyncToGenerator(function*(){try{_this.gs.log(`[DISCORD_SERVICE-READY] \u{1f389} ${_this.bot.user.username}#${_this.bot.user.discriminator} - ${_this.bot.user.id} \u{1f3b6}`),_this.changeBotNickname()}catch(error){_this.gs.log("[DISCORD_SERVICE-FAILED] \u{1f389}",error,"error"),_this.cfg.github=null}})),this.bot.on("guildMemberRemove",function(){var _ref2=_asyncToGenerator(function*(member){_this.gs.log(`[DISCORD_SERVICE-MEMBER_LEAVE] \u{1f389} ${member.user.username}#${member.user.discriminator} - ${member.user.id} \u{1f3b6}`),_this.memberLeftRemoveVerifiedDemote(member)});return function(_x){return _ref2.apply(this,arguments)}}()),this.bot.login(environment_1.environment.discord.loginToken).catch(err=>this.gs.log("[DISCORD_SERVICE-LOGIN] \u{1f389}",err,"error"))}sendNews(message2){var _this2=this;return _asyncToGenerator(function*(){try{const botNewsChannel=_this2.bot?_this2.bot.channels.cache.get(environment_1.environment.discord.channelEventId):null;if(botNewsChannel){const msg=yield botNewsChannel.send(message2);yield null==msg?void 0:msg.crosspost()}}catch(error){_this2.gs.log("[DISCORD_SERVICE-SEND_NEWS] \u{1f389}",error,"error")}})()}sendAttachment(attachment,user,chunkIdx=null){var _this3=this;return _asyncToGenerator(function*(){let currentChunkIdx=0,chunkParent=null==attachment?void 0:attachment.discord;const crs=(0,node_fs_1.createReadStream)(`${environment_1.environment.uploadFolder}/${attachment.name}`,{highWaterMark:constants_1.CONSTANTS.fileSizeAttachmentChunkDiscordLimit});var _iteratorError,_iteratorAbruptCompletion=!1,_didIteratorError=!1;try{for(var _step,_iterator=_asyncIterator(crs);_iteratorAbruptCompletion=!(_step=yield _iterator.next()).done;_iteratorAbruptCompletion=!1){const c=_step.value;let canUpload=!0;if(chunkParent&&(yield _this3.ddlFileRepo.count({where:{msg_id:(0,typeorm_1.Equal)(chunkParent),chunk_idx:(0,typeorm_1.Equal)(currentChunkIdx)}}))>0&&(canUpload=!1),canUpload&&(null===chunkIdx||chunkIdx===currentChunkIdx)){let uploadTryCount=1;for(;uploadTryCount>0;){if(uploadTryCount>constants_1.CONSTANTS.retryDdlUploadMaxCount)throw"Gagal Upload Ke Discord";try{_this3.gs.log(`[DISCORD_SERVICE-CHUNK_${currentChunkIdx}_TRY_${uploadTryCount}] \u{1f389}`,c.length);const botDdlChannel=_this3.bot?_this3.bot.channels.cache.get(environment_1.environment.discord.channelDdlId):null;if(botDdlChannel){const msg=yield botDdlChannel.send({files:[new discord_js_1.MessageAttachment(c,`${attachment.name}_${currentChunkIdx}`)]});0===currentChunkIdx&&(chunkParent=msg.id);const ddlFile=_this3.ddlFileRepo.new();ddlFile.msg_id=chunkParent,ddlFile.chunk_idx=currentChunkIdx,ddlFile.user_=user,ddlFile.id=msg.attachments.first().id,ddlFile.name=msg.attachments.first().name,ddlFile.url=msg.attachments.first().url,ddlFile.size=msg.attachments.first().size,ddlFile.mime=attachment.mime,yield _this3.ddlFileRepo.save(ddlFile)}break}catch(error){_this3.gs.log(`[DISCORD_SERVICE-SEND_ATTACHMMENT_ERROR_${currentChunkIdx}_TRY_${uploadTryCount}] \u{1f389}`,error,"error"),uploadTryCount++}}}if(null!==chunkIdx)break;currentChunkIdx++}}catch(err){_didIteratorError=!0,_iteratorError=err}finally{try{_iteratorAbruptCompletion&&null!=_iterator.return&&(yield _iterator.return())}finally{if(_didIteratorError)throw _iteratorError}}return chunkParent})()}createEmbedMessageEmptyRawTemplate(){return new discord_js_1.MessageEmbed}createEmbedMessage(setColor,setTitle,setUrl,setAuthor,setDescription,setThumbnail,setTimestamp,setFooter){return{embeds:[(new discord_js_1.MessageEmbed).setColor(setColor).setTitle(setTitle).setURL(setUrl).setAuthor({name:setAuthor.name,iconURL:setAuthor.iconURL.startsWith("/")?environment_1.environment.baseUrl+setAuthor.iconURL:setAuthor.iconURL,url:setAuthor.url}).setDescription(this.gs.htmlToText(setDescription)).setThumbnail(setThumbnail.startsWith("/")?environment_1.environment.baseUrl+setThumbnail:setThumbnail).setTimestamp(setTimestamp).setFooter({text:setFooter.text,iconURL:setFooter.iconURL.startsWith("/")?environment_1.environment.baseUrl+setFooter.iconURL:setFooter.iconURL})]}}handleMessage(msg){var _this4=this;return _asyncToGenerator(function*(){try{if("~about"===msg.content)yield msg.reply({content:`<@${msg.author.id}> https://github.com/${environment_1.environment.author}/${environment_1.environment.siteName}`});else if("~ping"===msg.content){const latency=(new Date).getTime()-new Date(msg.createdTimestamp).getTime();yield msg.reply({content:`<@${msg.author.id}> Pong ${latency} ms late!`})}else msg.content.startsWith("~verify ")?yield _this4.verifyAccount(msg):yield msg.reply({content:`<@${msg.author.id}> Perintah tidak sesuai, silahkan lihat ${environment_1.environment.baseUrl}/docs dan ${environment_1.environment.baseUrl}/api`});msg.content.includes("DELETE_CHAT")&&(yield msg.delete())}catch(error){_this4.gs.log("[DISCORD_SERVICE-HANDLE_MESSAGE] \u{1f389}",error,"error")}})()}changeBotNickname(){var _this5=this;return _asyncToGenerator(function*(){var _a,_b,_c,_d;try{const url=new node_url_1.URL(`https://api.github.com/repos/${environment_1.environment.author}/${environment_1.environment.siteName}/commits`),res_raw=yield _this5.api.getData(url,environment_1.environment.nodeJsXhrHeader);if(res_raw.ok){const gh=yield res_raw.json();_this5.cfg.github=gh[0],null===(_b=null===(_a=_this5.bot.guilds.cache.get(environment_1.environment.discord.guild_id))||void 0===_a?void 0:_a.members.cache.get(_this5.bot.user.id))||void 0===_b||_b.setNickname(`${environment_1.environment.siteName} - ${null===(_d=null===(_c=_this5.cfg.github)||void 0===_c?void 0:_c.sha)||void 0===_d?void 0:_d.slice(0,7)}`)}throw new Error("Github API Error")}catch(error){_this5.gs.log("[DISCORD_SERVICE-CHANGE_BOT_NICKNAME] \u{1f389}",error,"error")}})()}verifyAccount(msg){var _this6=this;return _asyncToGenerator(function*(){try{const args2=msg.content.split(" ");if(args2.length>=3&&args2.length<=4){const decoded=_this6.cs.jwtDecode(args2[2]);if(decoded.discord.id===msg.author.id){const user=yield _this6.userRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(decoded.user.id)}],relations:["kartu_tanda_penduduk_","profile_"]});if(user.verified)return yield msg.reply({content:`<@${msg.author.id}> Akun sudah diverifikasi \u{1f60d} Yeay \u{1f970}`});if(args2[1]===req_res_model_1.SosMedModel.DISCORD){if(!decoded.discord.verified)return yield msg.reply({content:`<@${msg.author.id}> Akun discord belum terverifikasi \u{1f914}`});user.verified=!0,yield _this6.userRepo.save(user);const laboratoryRatsRole=msg.guild.roles.cache.get(environment_1.environment.discord.laboratoryRatsRoleId);return msg.member.roles.cache.has(laboratoryRatsRole.id)||(yield msg.guild.members.cache.get(decoded.discord.id).roles.add(laboratoryRatsRole)),yield msg.reply({content:`<@${msg.author.id}> \u{1f61a} .: Berhasil :: ${user.username}@${environment_1.environment.mailTrap.domain} :. \u{1f929}`}),yield msg.guild.channels.cache.get(environment_1.environment.discord.channelEventId).send({embeds:[(new discord_js_1.MessageEmbed).setColor("#69f0ae").setTitle(user.kartu_tanda_penduduk_.nama).setURL(`${environment_1.environment.baseUrl}/user/${user.username}`).setAuthor({name:`${environment_1.environment.siteName} - Verifikasi Pengguna`,iconURL:`${environment_1.environment.baseUrl}/assets/img/favicon.png`,url:environment_1.environment.baseUrl}).setDescription(_this6.gs.htmlToText(user.profile_.description)).setThumbnail(user.image_url.startsWith("/")?environment_1.environment.baseUrl+user.image_url:user.image_url).setTimestamp(user.updated_at).setFooter({text:user.username,iconURL:user.image_url.startsWith("/")?environment_1.environment.baseUrl+user.image_url:user.image_url})]})}throw new Error("Format Data Salah / Token Expired!")}return yield msg.reply({content:`<@${msg.author.id}> Siapa ya? Ini milik orang lain \u{1f914}`})}return yield msg.reply({content:`<@${msg.author.id}> Untuk verifikasi, kunjungi ${environment_1.environment.baseUrl}/verify-discord \u{1f914}`})}catch{try{return yield msg.reply({content:`<@${msg.author.id}> Format data salah atau token expired \u{1f914}`})}catch(e){return _this6.gs.log("[DISCORD_SERVICE-VERIFY_ACCOUNT] \u{1f389}",e,"error"),null}}})()}memberLeftRemoveVerifiedDemote(member){var _this7=this;return _asyncToGenerator(function*(){try{const sosmed=yield _this7.sosmedRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(member.user.id),type:req_res_model_1.SosMedModel.DISCORD}],relations:["user_"]}),user=yield _this7.userRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(sosmed.user_.id),verified:!0,role:(0,typeorm_1.Not)((0,typeorm_1.In)([req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR]))}]});user.verified=!1,user.role=req_res_model_1.RoleModel.USER;const resUserSave=yield _this7.userRepo.save(user),fansubMembers=yield _this7.fansubMemberRepo.find({where:[{user_:{id:(0,typeorm_1.Equal)(resUserSave.id)}}],relations:["user_"]});yield _this7.fansubMemberRepo.remove(fansubMembers)}catch(e){_this7.gs.log("[DISCORD_SERVICE-MEMBER_LEAVE] \u{1f389}",e,"error")}})()}},"DiscordService");DiscordService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[api_service_1.ApiService,config_service_1.ConfigService,crypto_service_1.CryptoService,global_service_1.GlobalService,user_service_1.UserService,fansub_member_service_1.FansubMemberService,ddl_file_1.DdlFileService,social_media_service_1.SocialMediaService])],DiscordService),exports2.DiscordService=DiscordService},48888:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.GdriveService=void 0;const tslib_1=__webpack_require__2(70655),googleapis_1=__webpack_require__2(19993),node_url_1=__webpack_require__2(46024),common_1=__webpack_require__2(28791),environment_1=__webpack_require__2(17482),api_service_1=__webpack_require__2(99527),global_service_1=__webpack_require__2(40735);let GdriveService=__name(class{constructor(api,gs){this.api=api,this.gs=gs}gAuthPersonalAccount(refreshToken){var _this=this;return _asyncToGenerator(function*(){const url=new node_url_1.URL(environment_1.environment.gCloudPlatform.token_uri),form=new node_url_1.URLSearchParams;form.append("grant_type","refresh_token"),form.append("client_id",environment_1.environment.gCloudPlatform.gDrive.client_id),form.append("client_secret",environment_1.environment.gCloudPlatform.gDrive.client_secret),form.append("refresh_token",refreshToken);const googleClient=new googleapis_1.google.auth.OAuth2(environment_1.environment.gCloudPlatform.gDrive.client_id,environment_1.environment.gCloudPlatform.gDrive.client_secret),res_raw=yield _this.api.postData(url,form,environment_1.environment.nodeJsXhrHeader),res_json=yield res_raw.json();return _this.gs.log(`[gApp] \u{1f511} ${res_raw.status}`,res_json),googleClient.setCredentials(res_json),googleClient})()}gDrive(userPersonalUserAccountInsteadOfServiceAccount=!1){var _this2=this;return _asyncToGenerator(function*(){let auth=null;auth=userPersonalUserAccountInsteadOfServiceAccount?yield _this2.gAuthPersonalAccount(environment_1.environment.gCloudPlatform.gDrive.refresh_token):new googleapis_1.google.auth.JWT(environment_1.environment.gCloudPlatform.serviceAccount.client_email,null,environment_1.environment.gCloudPlatform.serviceAccount.private_key,environment_1.environment.gCloudPlatform.gDrive.scopes,null);const drive=googleapis_1.google.drive({version:"v3",auth});return _this2.gs.log("[GDRIVE] \u26c5",drive),drive})()}},"GdriveService");GdriveService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[api_service_1.ApiService,global_service_1.GlobalService])],GdriveService),exports2.GdriveService=GdriveService},40735:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.GlobalService=void 0;const tslib_1=__webpack_require__2(70655),string_strip_html_1=__webpack_require__2(23078),node_fs_1=__webpack_require__2(35404),common_1=__webpack_require__2(28791),environment_1=__webpack_require__2(17482),seasons_1=__webpack_require__2(76022),constants_1=__webpack_require__2(26271);let GlobalService=__name(class{constructor(){this.seasonal=[{id:1,name:seasons_1.SEASONS.WINTER},{id:2,name:seasons_1.SEASONS.SPRING},{id:3,name:seasons_1.SEASONS.SUMMER},{id:4,name:seasons_1.SEASONS.FALL}]}log(message2,data=null,type="log"){if(!environment_1.environment.production||"error"===type){let logger=null;logger="warn"===type?console.warn:"error"===type?console.error:"table"===type?console.table:console.log,data?logger(message2,data):logger(message2)}}OBJ2XML(obj){var xml="";for(var prop in obj){if(xml+=obj[prop]instanceof Array?"":"<"+prop+">",obj[prop]instanceof Array)for(var array in obj[prop])xml+="<"+prop+">",xml+=this.OBJ2XML(new Object(obj[prop][array])),xml+="";else"object"==typeof obj[prop]?xml+=this.OBJ2XML(new Object(obj[prop])):xml+=obj[prop];xml+=obj[prop]instanceof Array?"":""}return`${xml=xml.replace(/<\/?[0-9]{1,}>/g,"")}`}htmlToText(htmlElementString){return htmlElementString?(0,string_strip_html_1.stripHtml)(htmlElementString).result:""}deleteAttachment(fullFileName){(0,node_fs_1.unlink)(`${environment_1.environment.uploadFolder}/${fullFileName}`,err=>{err&&this.log("[NODE_FS_UNLINK-ERROR] \u{1f517}",err,"error")})}cleanIpOrigin(ipOrigin){if(ipOrigin){ipOrigin.startsWith("::ffff:")&&(ipOrigin=ipOrigin.slice(7,ipOrigin.length)),ipOrigin.startsWith("http://")?ipOrigin=ipOrigin.slice(7,ipOrigin.length):ipOrigin.startsWith("https://")&&(ipOrigin=ipOrigin.slice(8,ipOrigin.length)),ipOrigin.startsWith("www.")&&(ipOrigin=ipOrigin.slice(4,ipOrigin.length)),ipOrigin=ipOrigin.split("/")[0];let totalColon=0;for(let i2=0;i21));i2++);return 1===totalColon?ipOrigin=ipOrigin.split(":")[0]:(ipOrigin=ipOrigin.split("]")[0]).startsWith("[")&&(ipOrigin=ipOrigin.slice(1,ipOrigin.length)),ipOrigin}return""}cleanUpUrlStringRecord(text){return text?(text.startsWith("http://")?text=text.slice(7,text.length):text.startsWith("https://")&&(text=text.slice(8,text.length)),text.startsWith("www.")&&(text=text.slice(4,text.length)),text):""}isFreeTime(){const currentDate=new Date,startTime=constants_1.CONSTANTS.freeTimeStart,endTime=constants_1.CONSTANTS.freeTimeEnd,startDate=new Date(currentDate.getTime());startDate.setHours(Number.parseInt(startTime.split(":")[0])),startDate.setMinutes(Number.parseInt(startTime.split(":")[1])),startDate.setSeconds(Number.parseInt(startTime.split(":")[2]));const endDate=new Date(currentDate.getTime());return endDate.setHours(Number.parseInt(endTime.split(":")[0])),endDate.setMinutes(Number.parseInt(endTime.split(":")[1])),endDate.setSeconds(Number.parseInt(endTime.split(":")[2])),startDatecurrentDate}},"GlobalService");GlobalService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[])],GlobalService),exports2.GlobalService=GlobalService},53864:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.IdCloudHostService=void 0;const tslib_1=__webpack_require__2(70655),ws_1=__webpack_require__2(81218),common_1=__webpack_require__2(28791),schedule_1=__webpack_require__2(31143),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(17482),global_service_1=__webpack_require__2(40735),config_service_1=__webpack_require__2(94315);let IdCloudHostService=__name(class{constructor(sr,gs,cfg){this.sr=sr,this.gs=gs,this.cfg=cfg,environment_1.environment.production&&this.connect()}getStatsUrl(loc,vmUuid){return`\n ${environment_1.environment.idCloudHost.url}/${loc}/metrics-ws/index\n ?subscribe=true\n &apikey=${environment_1.environment.idCloudHost.apiKey}\n &query=${encodeURIComponent(`\n (\n (host =~ "${vmUuid}") and\n (\n service =~ "libvirt.guest_time_per_vcpu_delta" or\n service =~ "libvirt.used_memory_kb" or\n service =~ "libvirt.block_wr_bytes_delta" or\n service =~ "libvirt.net_tx_bytes_delta" or\n service =~ "libvirt.net_rx_bytes_delta"\n )\n )\n `.replace(/\s\s+/g," ").trim())}\n `.replace(/\s\s+/g,"").trim()}onClose(code2,data,statsName){const reason=data.toString();this.gs.log(`[ID_CLOUD_HOST_SERVICE-ON_CLOSE-${statsName}] \u26c8`,{code:code2,reason}),this.sr.addTimeout(`${constants_1.CONSTANTS.timeoutReconnectSocketKey}-${statsName}`,setTimeout(()=>{this[statsName]()},constants_1.CONSTANTS.timeoutReconnectSocketTime))}onMessage(data,isBinary,statsName){const message2=isBinary?data:data.toString();this.gs.log(`[ID_CLOUD_HOST_SERVICE-ON_MESSAGE-${statsName}] \u26c8`,message2);const json=JSON.parse(message2);"libvirt.used_memory_kb"===json.service?this.cfg.statsServer[statsName].mem_ram=1e3*json.metric:"libvirt.block_wr_bytes_delta"===json.service?this.cfg.statsServer[statsName].disk_io=json.metric:"libvirt.guest_time_per_vcpu_delta"===json.service?this.cfg.statsServer[statsName].cpus=100*json.metric:"libvirt.net_tx_bytes_delta"===json.service?this.cfg.statsServer[statsName].net_tx=json.metric:"libvirt.net_rx_bytes_delta"===json.service&&(this.cfg.statsServer[statsName].net_rx=json.metric)}mainSite(){const urlMainSite=this.getStatsUrl("jkt01",environment_1.environment.idCloudHost.mainSite);this.wsMainSite=new ws_1.WebSocket(urlMainSite),this.wsMainSite.on("open",()=>{this.gs.log("[ID_CLOUD_HOST_SERVICE-ON_OPEN-mainSite] \u26c8",urlMainSite)}),this.wsMainSite.on("error",err=>{this.gs.log("[ID_CLOUD_HOST_SERVICE-ON_ERROR-mainSite] \u26c8",err,"error"),this.wsMainSite.close()}),this.wsMainSite.on("close",(code2,data)=>{this.onClose(code2,data,"mainSite")}),this.wsMainSite.on("message",(data,isBinary)=>{this.onMessage(data,isBinary,"mainSite")})}connect(){this.mainSite()}},"IdCloudHostService");IdCloudHostService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[schedule_1.SchedulerRegistry,global_service_1.GlobalService,config_service_1.ConfigService])],IdCloudHostService),exports2.IdCloudHostService=IdCloudHostService},50899:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MailService=void 0;const tslib_1=__webpack_require__2(70655),mailtrap_1=__webpack_require__2(96419),common_1=__webpack_require__2(28791),environment_1=__webpack_require__2(17482),global_service_1=__webpack_require__2(40735);let MailService=__name(class{constructor(gs){this.gs=gs,this.client=new mailtrap_1.MailtrapClient({endpoint:environment_1.environment.mailTrap.clientOptions.url,token:environment_1.environment.mailTrap.clientOptions.key}),this.webhook={}}mailTrapSend(mailBody){var _this=this;return _asyncToGenerator(function*(){try{const resp=yield _this.client.send(mailBody);if(resp.success)return _this.gs.log("[MAILTRAP_SERVICE-SEND_EMAIL_SUCCESS] \u{1f48c}",resp.message_ids),resp;throw new Error("MailTrap API Error")}catch(err){return _this.gs.log("[MAILTRAP_SERVICE-SEND_EMAIL_ERROR] \u{1f48c}",err,"error"),null}})()}sendRegisterActivationMail(user){var _this2=this;return _asyncToGenerator(function*(){const content={from:{name:environment_1.environment.mailTrap.fullName,email:`${environment_1.environment.mailTrap.clientOptions.username}@${environment_1.environment.mailTrap.domain}`},to:[{name:user.nama,email:user.email}],subject:`${environment_1.environment.siteName} | Aktivasi Akun`,category:"Aktivasi",html:`\n

${user.nama} (${user.username}).

\n

\n \n ${environment_1.environment.baseUrl}\n \n

\n

(\u3065\uffe3 \xb3\uffe3)\u3065

\n

\n Hai, terima kasih telah mendaftar di ${environment_1.environment.siteName}.
\n Untuk mengaktifkan akun, silahkan klik link berikut ini.\n

\n

\n \n ${environment_1.environment.baseUrl}/api/aktivasi?token=${user.activation_token}\n \n

\n

Jika link di atas tidak berfungsi, silahkan salin link tersebut dan buka di tab baru browser.

\n

(\u3064\u2267\u25bd\u2266)\u3064

\n

Terima kasih dan selamat datang.

\n

(\u3063.\u275b \u1d17 \u275b.)\u3063

\n

.: ${user.id} :.

\n `.replace(/\s\s+/g," ").trim(),text:`\n ${user.nama} (${user.username}).\n ${environment_1.environment.baseUrl}\n (\u3065\uffe3 \xb3\uffe3)\u3065\n Hai, terima kasih telah mendaftar di ${environment_1.environment.siteName}.\n Untuk mengaktifkan akun, silahkan klik link berikut ini.\n ${environment_1.environment.baseUrl}/api/aktivasi?token=${user.activation_token}\n Jika link di atas tidak berfungsi, silahkan salin link tersebut dan buka di tab baru browser.\n (\u3064\u2267\u25bd\u2266)\u3064\n Terima kasih dan selamat datang.\n (\u3063.\u275b \u1d17 \u275b.)\u3063\n .: ${user.id} :.\n `.replace(/\s\s+/g," ").trim()};return yield _this2.mailTrapSend(content)})()}sendVerifikasiMail(user,token){var _this3=this;return _asyncToGenerator(function*(){const content={from:{name:environment_1.environment.mailTrap.fullName,email:`${environment_1.environment.mailTrap.clientOptions.username}@${environment_1.environment.mailTrap.domain}`},to:[{name:user.nama,email:user.email}],subject:`${environment_1.environment.siteName} | Verifikasi Akun`,category:"Verifikasi",html:`\n

${user.nama} (${user.username}).

\n

\n \n ${environment_1.environment.baseUrl}\n \n

\n

(\u3065\uffe3 \xb3\uffe3)\u3065

\n

\n Hai, terima kasih telah menjadi anggota di ${environment_1.environment.siteName}.
\n Untuk verifikasi akun, silahkan klik link berikut ini.\n

\n

\n \n ${environment_1.environment.baseUrl}/api/verify-sosmed?token=${token}\n \n

\n

Jika link di atas tidak berfungsi, silahkan salin link tersebut dan buka di tab baru browser.

\n

(\u3064\u2267\u25bd\u2266)\u3064

\n

Terima kasih.

\n

(\u3063.\u275b \u1d17 \u275b.)\u3063

\n `.replace(/\s\s+/g," ").trim(),text:`\n ${user.nama} (${user.username}).\n ${environment_1.environment.baseUrl}\n (\u3065\uffe3 \xb3\uffe3)\u3065\n Hai, terima kasih telah mendaftar di ${environment_1.environment.siteName}.\n Untuk verifikasi akun, silahkan klik link berikut ini.\n ${environment_1.environment.baseUrl}/api/verify-sosmed?token=${token}\n Jika link di atas tidak berfungsi, silahkan salin link tersebut dan buka di tab baru browser.\n (\u3064\u2267\u25bd\u2266)\u3064\n Terima kasih.\n (\u3063.\u275b \u1d17 \u275b.)\u3063\n `.replace(/\s\s+/g," ").trim()};return yield _this3.mailTrapSend(content)})()}sendResetAccountMail(user,token){var _this4=this;return _asyncToGenerator(function*(){const content={from:{name:environment_1.environment.mailTrap.fullName,email:`${environment_1.environment.mailTrap.clientOptions.username}@${environment_1.environment.mailTrap.domain}`},to:[{name:user.kartu_tanda_penduduk_.nama,email:user.email}],subject:`${environment_1.environment.siteName} | Reset Akun`,category:"Reset",html:`\n

${user.kartu_tanda_penduduk_.nama} (${user.username}).

\n

\n \n ${environment_1.environment.baseUrl}\n \n

\n

(\u3065\uffe3 \xb3\uffe3)\u3065

\n

\n Hai, selamat datang kembali di ${environment_1.environment.siteName}.
\n Untuk mengatur ulang akun, silahkan gunakan informasi atau klik link berikut ini.\n

\n

Token :: ${token}

\n

\n \n ${environment_1.environment.baseUrl}/reset-password?token=${token}\n \n

\n

Jika link di atas tidak berfungsi, silahkan salin link tersebut dan buka di tab baru browser.

\n

(\u3064\u2267\u25bd\u2266)\u3064

\n

Terima kasih.

\n

(\u3063.\u275b \u1d17 \u275b.)\u3063

\n `.replace(/\s\s+/g," ").trim(),text:`\n ${user.kartu_tanda_penduduk_.nama} (${user.username}).\n ${environment_1.environment.baseUrl}\n (\u3065\uffe3 \xb3\uffe3)\u3065\n Hai, selamat datang kembali di ${environment_1.environment.siteName}.\n Untuk mengatur ulang akun, silahkan gunakan informasi atau klik link berikut ini.\n Token :: ${token}\n ${environment_1.environment.baseUrl}/reset-password?token=${token}\n Jika link di atas tidak berfungsi, silahkan salin link tersebut dan buka di tab baru browser.\n (\u3064\u2267\u25bd\u2266)\u3064\n Terima kasih.\n (\u3063.\u275b \u1d17 \u275b.)\u3063\n `.replace(/\s\s+/g," ").trim()};return yield _this4.mailTrapSend(content)})()}},"MailService");MailService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[global_service_1.GlobalService])],MailService),exports2.MailService=MailService},63211:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MkvExtractService=void 0;const tslib_1=__webpack_require__2(70655),ebml_1=__webpack_require__2(54709),node_fs_1=__webpack_require__2(35404),common_1=__webpack_require__2(28791),global_service_1=__webpack_require__2(40735);let MkvExtractService=__name(class{constructor(gs){this.gs=gs}padZeroes(arr){const len=2*Math.ceil(arr.length/2),output=new Uint8Array(len);return output.set(arr,len-arr.length),output.buffer}readUnsignedInteger(data){const view=new DataView(data);return 2===data.byteLength?view.getUint16(0):view.getUint32(0)}formatTimestamp(timestamp){const seconds=timestamp/1e3,hh=Math.floor(seconds/3600);let mm=Math.floor((seconds-3600*hh)/60),ss=(seconds-3600*hh-60*mm).toFixed(2);return mm<10&&(mm=`0${mm}`),ss<10&&(ss=`0${ss}`),`${hh}:${mm}:${ss}`}formatTimestampSRT(timestamp){const seconds=timestamp/1e3;let hh=Math.floor(seconds/3600),mm=Math.floor((seconds-3600*hh)/60),ss=(seconds-3600*hh-60*mm).toFixed(3);return hh<10&&(hh=`0${hh}`),mm<10&&(mm=`0${mm}`),ss<10&&(ss=`0${ss}`),`${hh}:${mm}:${ss}`}mkvExtract(fileName,filePath,callback){const startTime=(new Date).getTime();this.gs.log(`[MKVEXTRACT_START] \u{1f4c2} ${fileName} -- ${startTime} \u{1f9ec}`);const fileStream=(0,node_fs_1.createReadStream)(filePath),decoder=new ebml_1.Decoder,tracks=[],trackData=[],files=[],subtitleFileSize=[];let currentFile=0,currentTimecode=0,trackIndexTemp=0,trackTypeTemp=0,trackDataTemp="",trackIndex=0;decoder.on("error",error=>{fileStream.destroy(),callback(error,null)}),decoder.on("data",chunk=>{switch(this.gs.log(`[MKVEXTRACT_CHUNK] \u231b ${chunk[0]} -- ${chunk[1].name} -- ${chunk[1].dataSize} \u{1f9ec}`),chunk[0]){case"end":"TrackEntry"===chunk[1].name&&17===trackTypeTemp&&(tracks.push(trackIndexTemp),trackData.push([trackDataTemp]),subtitleFileSize.push(0));break;case"tag":if("FileName"===chunk[1].name&&(files[currentFile]||(files[currentFile]={}),files[currentFile].name=chunk[1].data.toString()),"FileData"===chunk[1].name&&(files[currentFile]||(files[currentFile]={}),files[currentFile].data=chunk[1].data,files[currentFile].size=chunk[1].dataSize),"TrackNumber"===chunk[1].name&&(trackIndexTemp=chunk[1].data[0]),"TrackType"===chunk[1].name&&(trackTypeTemp=chunk[1].data[0]),"CodecPrivate"===chunk[1].name&&(trackDataTemp=chunk[1].data.toString()),"SimpleBlock"===chunk[1].name||"Block"===chunk[1].name){const trackLength=ebml_1.tools.readVint(chunk[1].data);if(trackIndex=tracks.indexOf(trackLength.value),-1!==trackIndex){const timestampArray=new Uint8Array(chunk[1].data).slice(trackLength.length,trackLength.length+2),timestamp=new DataView(timestampArray.buffer).getInt16(0),lineData=chunk[1].data.slice(trackLength.length+3);trackData[trackIndex].push(lineData.toString(),timestamp,currentTimecode),subtitleFileSize[trackIndex]+=chunk[1].dataSize}}if("Timecode"===chunk[1].name&&(currentTimecode=this.readUnsignedInteger(this.padZeroes(chunk[1].data))),"BlockDuration"===chunk[1].name&&-1!==trackIndex){const duration=this.readUnsignedInteger(this.padZeroes(chunk[1].data));trackData[trackIndex].push(duration)}}files[currentFile]&&files[currentFile].name&&files[currentFile].data&&files[currentFile].size&¤tFile++}),fileStream.on("end",()=>{for(const[idx,val]of trackData.entries()){const heading=val[0],isASS=heading.includes("Format:"),formatFn=isASS?this.formatTimestamp:this.formatTimestampSRT,eventMatches=isASS?heading.match(/\[Events\]\s+Format:([^\r\n]*)/):[""],headingParts=isASS?heading.split(eventMatches[0]):["",""],fixedLines=[];for(let i2=1;i2{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.QuizService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),typeorm_1=__webpack_require__2(13791),typeorm_2=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),global_service_1=__webpack_require__2(40735);let QuizService=__name(class{constructor(manager,gs){this.manager=manager,this.gs=gs,this.quiz={}}getRandomInt(min,max){min=Math.ceil(min),max=Math.floor(max);const rand=Math.floor(Math.random()*(max-min+1))+min;return this.gs.log("[QUIZ_SERVICE-QUESTION_ID] \u{1f3ad}",rand),rand}getQuizHirakata(){var _this=this;return _asyncToGenerator(function*(){try{let hirakatas=yield _this.manager.query(`\n DO $$\n DECLARE\n random_number DOUBLE PRECISION;\n select_count BIGINT := ${constants_1.CONSTANTS.quizOptionsCountHirakata};\n total_data BIGINT;\n max_select BIGINT;\n BEGIN\n SELECT\n RANDOM()\n INTO\n random_number\n ;\n SELECT\n COUNT(*)\n INTO\n total_data\n FROM\n hirakata\n WHERE\n hiragana IS NOT NULL AND\n hiragana <> '' AND\n katakana IS NOT NULL AND\n katakana <> ''\n ;\n max_select := total_data - select_count;\n DROP TABLE IF EXISTS hirakata_quiz;\n CREATE TABLE hirakata_quiz AS\n SELECT\n *\n FROM\n hirakata\n WHERE\n hiragana IS NOT NULL AND\n hiragana <> '' AND\n katakana IS NOT NULL AND\n katakana <> ''\n OFFSET\n CASE\n WHEN FLOOR(random_number * total_data) >= max_select\n THEN max_select\n ELSE\n FLOOR(random_number * total_data)\n END\n LIMIT\n select_count\n ;\n END $$\n `);hirakatas=yield _this.manager.query("\n SELECT\n *\n FROM\n hirakata_quiz\n ");for(const h of hirakatas)delete h.created_at,delete h.updated_at;const randomInteger=_this.getRandomInt(0,hirakatas.length-1);return{randomInteger,isAnswering:!1,question:hirakatas[randomInteger],options:hirakatas}}catch(error){return _this.gs.log("[QUIZ_SERVICE-GET_HIRAKATA] \u{1f3c1}",error,"error"),null}})()}getQuizCategory(category){var _this2=this;return _asyncToGenerator(function*(){try{let nihongo=yield _this2.manager.query(`\n DO $$\n DECLARE\n random_number DOUBLE PRECISION;\n select_count BIGINT := ${constants_1.CONSTANTS.quizOptionsCountCategory};\n total_data BIGINT;\n max_select BIGINT;\n BEGIN\n SELECT\n RANDOM()\n INTO\n random_number\n ;\n SELECT\n COUNT(*)\n INTO\n total_data\n FROM\n nihongo\n WHERE\n category ILIKE '%${category}%'\n ;\n max_select := total_data - select_count;\n DROP TABLE IF EXISTS nihongo_${category}_quiz;\n CREATE TABLE nihongo_${category}_quiz AS\n SELECT\n *\n FROM\n nihongo\n WHERE\n category ILIKE '%${category}%'\n OFFSET\n CASE\n WHEN FLOOR(random_number * total_data) >= max_select\n THEN max_select\n ELSE\n FLOOR(random_number * total_data)\n END\n LIMIT \n select_count\n ;\n END $$\n `);nihongo=yield _this2.manager.query(`\n SELECT\n * \n FROM\n nihongo_${category}_quiz\n `);for(const h of nihongo)delete h.created_at,delete h.updated_at,delete h.user_id;const randomInteger=_this2.getRandomInt(0,nihongo.length-1);return{randomInteger,isAnswering:!1,question:nihongo[randomInteger],options:nihongo}}catch(error){return _this2.gs.log("[QUIZ_SERVICE-GET_NIHONGO] \u{1f3c1}",error,"error"),null}})()}getQuizKanji(school=null,jlpt=null){var _this3=this;return _asyncToGenerator(function*(){try{let sqlQuery=`\n DO $$\n DECLARE\n random_number DOUBLE PRECISION;\n select_count BIGINT := ${constants_1.CONSTANTS.quizOptionsCountKanji};\n total_data BIGINT;\n max_select BIGINT;\n BEGIN\n SELECT RANDOM()\n INTO random_number;\n SELECT COUNT(*)\n INTO total_data\n FROM kanji\n `;null===school&&null===jlpt?sqlQuery+="\n WHERE translate <> '';\n max_select := total_data - select_count;\n DROP TABLE IF EXISTS kanji_all_quiz;\n CREATE TABLE kanji_all_quiz AS\n SELECT *\n FROM kanji\n WHERE translate <> ''\n ":null!==school?sqlQuery+=`\n WHERE school::varchar(255) ILIKE '%${school}%';\n max_select := total_data - select_count;\n DROP TABLE IF EXISTS kanji_s${school}_quiz;\n CREATE TABLE kanji_s${school}_quiz AS\n SELECT *\n FROM kanji\n WHERE school::varchar(255) ILIKE '%${school}%'\n `:null!==jlpt&&(sqlQuery+=`\n WHERE jlpt::varchar(255) ILIKE '%${jlpt}%';\n max_select := total_data - select_count;\n DROP TABLE IF EXISTS kanji_n${jlpt}_quiz;\n CREATE TABLE kanji_n${jlpt}_quiz AS\n SELECT *\n FROM kanji\n WHERE jlpt::varchar(255) ILIKE '%${jlpt}%'\n `),sqlQuery+="\n OFFSET\n CASE\n WHEN FLOOR(random_number * total_data) >= max_select THEN max_select\n ELSE FLOOR(random_number * total_data)\n END\n LIMIT select_count;\n END $$\n ";let kanjis=yield _this3.manager.query(sqlQuery);null===school&&null===jlpt?sqlQuery="SELECT * FROM kanji_all_quiz":null!==school?sqlQuery=`SELECT * FROM kanji_s${school}_quiz`:null!==jlpt&&(sqlQuery=`SELECT * FROM kanji_n${jlpt}_quiz`),kanjis=yield _this3.manager.query(sqlQuery);for(const k of kanjis)delete k.created_at,delete k.updated_at;const randomInteger=_this3.getRandomInt(0,kanjis.length-1);return{randomInteger,isAnswering:!1,question:kanjis[randomInteger],options:kanjis}}catch(error){return _this3.gs.log("[QUIZ_SERVICE-GET_KANJI] \u{1f3c1}",error,"error"),null}})()}getNewQuestion(roomId){var _this4=this;return _asyncToGenerator(function*(){switch(roomId){case"/nihongo/hiragana":case"/nihongo/katakana":return void(_this4.quiz[roomId]=yield _this4.getQuizHirakata());case"/nihongo/kelas-lanjutan-2":return void(_this4.quiz[roomId]=yield _this4.getQuizKanji("9",null));case"/nihongo/kelas-lanjutan-1":return void(_this4.quiz[roomId]=yield _this4.getQuizKanji("8",null));case"/nihongo/kelas-6":case"/nihongo/kelas-5":case"/nihongo/kelas-4":case"/nihongo/kelas-3":case"/nihongo/kelas-2":case"/nihongo/kelas-1":const schoolLevel=roomId.split("-").pop()[0];return void(_this4.quiz[roomId]=yield _this4.getQuizKanji(schoolLevel,null));case"/nihongo/jlpt-n5":case"/nihongo/jlpt-n4":case"/nihongo/jlpt-n3":case"/nihongo/jlpt-n2":case"/nihongo/jlpt-n1":const jlptLevel=roomId.split("-").pop()[1];return void(_this4.quiz[roomId]=yield _this4.getQuizKanji(null,jlptLevel));case"/nihongo/semua-kanji":return void(_this4.quiz[roomId]=yield _this4.getQuizKanji(null,null));default:if(roomId.startsWith("/nihongo/latihan-")){const categoryUrl=roomId.split("-").pop();if((yield _this4.manager.query("SELECT DISTINCT category FROM nihongo")).map(c=>c.category).includes(categoryUrl))return void(_this4.quiz[roomId]=yield _this4.getQuizCategory(categoryUrl))}throw"Kuis Tidak Tersedia"}})()}calculatePoints(data){const question=this.quiz[data.roomId].question;let points=1;if(0===question.jlpt)points=64;else if(question.jlpt){const totalPangkat=Math.abs(question.jlpt-5)+1;let hasilPangkatDua=1;for(let i2=0;i2{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SocketIoService=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(28791),websockets_1=__webpack_require__2(6279),socket_io_1=__webpack_require__2(30989),typeorm_1=__webpack_require__2(92274),constants_1=__webpack_require__2(26271),notification_service_1=__webpack_require__2(97233),api_key_service_1=__webpack_require__2(87044),profile_service_1=__webpack_require__2(38854),user_service_1=__webpack_require__2(50675),crypto_service_1=__webpack_require__2(4030),global_service_1=__webpack_require__2(40735),quiz_service_1=__webpack_require__2(48902);let SocketIoService=__name(class{constructor(cs,gs,aks,profileRepo,notificationRepo,qs,userRepo){this.cs=cs,this.gs=gs,this.aks=aks,this.profileRepo=profileRepo,this.notificationRepo=notificationRepo,this.qs=qs,this.userRepo=userRepo,this.rooms={}}setSocketIoServer(server){this.io=server}emitToBroadcast(key,data){return this.gs.log("[SOCKET_IO_SERVICE-EMIT_BROADCAST] \u{1f4e2}",{key,data}),this.io.emit(key,data)}emitToRoomOrId(socketOrRoomId,key,data,callback=null){var _a;return this.gs.log("[SOCKET_IO_SERVICE-EMIT_PRIVATE] \u{1f4e2}",{socketOrRoomId,key,data}),callback?null===(_a=this.getClientSocket(socketOrRoomId))||void 0===_a?void 0:_a.emit(key,data,callback):this.io.to(socketOrRoomId).emit(key,data)}getAllClientsSocket(){const allClients=this.io.sockets.sockets;return this.gs.log("[SOCKET_IO_SERVICE-GET_ALL_CLIENT_SOCKET] \u{1f4e2}",allClients.size),allClients}getClientSocket(socketId){var _a;const socket=null===(_a=this.getAllClientsSocket())||void 0===_a?void 0:_a.get(socketId);return this.gs.log("[SOCKET_IO_SERVICE-GET_CLIENT_SOCKET] \u{1f4e2}",null==socket?void 0:socket.id),socket}getRoomInfo(roomId){var _a;return{room_id:roomId,member_list:this.rooms[roomId],socket_count:(null===(_a=this.io.sockets.adapter.rooms.get(roomId))||void 0===_a?void 0:_a.size)||0}}checkMultipleConnection(socket,data){if(data.user){const multipleSocketId=[];for(const socketId of Object.keys(this.rooms[constants_1.CONSTANTS.socketRoomNameGlobalPublic]))socketId!==socket.id&&this.rooms[constants_1.CONSTANTS.socketRoomNameGlobalPublic][socketId]&&this.rooms[constants_1.CONSTANTS.socketRoomNameGlobalPublic][socketId].username===data.user.username&&multipleSocketId.push(socketId);for(const id of multipleSocketId)this.emitToRoomOrId(id,"multiple-connection",[...multipleSocketId,socket.id],()=>{var _a;null===(_a=this.getClientSocket(id))||void 0===_a||_a.disconnect(!0)})}}disconnectRoom(socket){for(const roomId of Object.keys(this.rooms))this.leaveRoom(socket,{oldRoom:roomId})}leaveRoom(socket,data){var _this=this;return _asyncToGenerator(function*(){if(data.oldRoom){_this.rooms[data.oldRoom]||(_this.rooms[data.oldRoom]={});try{yield socket.leave(data.oldRoom),delete _this.rooms[data.oldRoom][socket.id]}catch(err){_this.gs.log("[SOCKET_IO-LEAVE_ROOM] \u{1f4e2}",err,"error")}_this.emitToRoomOrId(data.oldRoom,"room-info",_this.getRoomInfo(data.oldRoom))}})()}joinOrUpdateRoom(socket,data){var _this2=this;return _asyncToGenerator(function*(){if(data.newRoom){_this2.rooms[data.newRoom]||(_this2.rooms[data.newRoom]={});try{yield socket.join(data.newRoom),_this2.rooms[data.newRoom][socket.id]=data.user}catch(err){_this2.gs.log("[SOCKET_IO-JOIN_UPDATE_ROOM] \u{1f4e2}",err,"error")}if(data.user&&(data.newRoom.startsWith("/nihongo/hiragana")||data.newRoom.startsWith("/nihongo/katakana")||data.newRoom.startsWith("/nihongo/angka")||data.newRoom.startsWith("/nihongo/latihan-")||data.newRoom.startsWith("/nihongo/kelas-")||data.newRoom.startsWith("/nihongo/jlpt")||data.newRoom.startsWith("/nihongo/semua-kanji"))){if(!_this2.qs.quiz[data.newRoom])try{yield _this2.qs.getNewQuestion(data.newRoom)}catch(err){throw socket.emit("force-redirect",{title:"Terjadi Kesalahan",message:"Kuis Tidak Tersedia",url:"/nihongo"}),err}socket.emit("quiz-question",{room_id:data.newRoom,..._this2.qs.quiz[data.newRoom]})}_this2.emitToRoomOrId(data.newRoom,"room-info",_this2.getRoomInfo(data.newRoom))}})()}increasePlayerPoint(socket,data){var _this3=this;return _asyncToGenerator(function*(){const selectedUser=yield _this3.userRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(data.user.id)}],relations:["profile_"]}),selectedProfile=yield _this3.profileRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(selectedUser.profile_.id)}]});let points=_this3.qs.calculatePoints(data);selectedProfile.points+=points;const resSaveProfile=yield _this3.profileRepo.save(selectedProfile);return delete resSaveProfile.description,delete resSaveProfile.updated_at,_this3.rooms[data.roomId][socket.id].profile_=resSaveProfile,points})()}decreasePlayerPoint(socket,data){var _this4=this;return _asyncToGenerator(function*(){const selectedUser=yield _this4.userRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(data.user.id)}],relations:["profile_"]}),selectedProfile=yield _this4.profileRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(selectedUser.profile_.id)}]});let points=_this4.qs.calculatePoints(data);if(selectedProfile.points>0){selectedProfile.points+=-1*points,selectedProfile.points<=0&&(selectedProfile.points=0);const resSaveProfile=yield _this4.profileRepo.save(selectedProfile);delete resSaveProfile.description,delete resSaveProfile.updated_at,_this4.rooms[data.roomId][socket.id].profile_=resSaveProfile}return-1*points})()}checkUserLogin(client,payload){var _this5=this;return _asyncToGenerator(function*(){try{const ip=client.handshake.headers["cf-connecting-ip"]||client.handshake.address||"";payload.ip=_this5.gs.cleanIpOrigin(ip);let user=null;if(payload.key){const check=yield _this5.aks.checkKey(payload.ip,payload.key);if(!check.allowed)throw"User Not Allowed";check.user&&(user=check.user)}else payload.token&&(user=_this5.cs.jwtDecode(payload.token).user);if(!user)throw"User Not Login";payload.user=yield _this5.userRepo.findOneOrFail({where:[{id:(0,typeorm_1.Equal)(user.id)}],relations:["kartu_tanda_penduduk_","profile_"]}),delete payload.user.email,delete payload.user.password,delete payload.user.session_token,delete payload.user.session_origin,"kartu_tanda_penduduk_"in payload.user&&payload.user.kartu_tanda_penduduk_&&(delete payload.user.kartu_tanda_penduduk_.nik,delete payload.user.kartu_tanda_penduduk_.tanggal_lahir,delete payload.user.kartu_tanda_penduduk_.golongan_darah,delete payload.user.kartu_tanda_penduduk_.alamat,delete payload.user.kartu_tanda_penduduk_.rt,delete payload.user.kartu_tanda_penduduk_.rw,delete payload.user.kartu_tanda_penduduk_.kelurahan_desa,delete payload.user.kartu_tanda_penduduk_.kecamatan,delete payload.user.kartu_tanda_penduduk_.agama,delete payload.user.kartu_tanda_penduduk_.status_perkawinan,delete payload.user.kartu_tanda_penduduk_.pekerjaan,delete payload.user.kartu_tanda_penduduk_.kewarganegaraan,delete payload.user.kartu_tanda_penduduk_.created_at,delete payload.user.kartu_tanda_penduduk_.updated_at),"profile_"in payload.user&&payload.user.profile_&&(delete payload.user.profile_.description,delete payload.user.profile_.updated_at)}catch{payload.user=null}})()}checkNewNotification(socket){var _this6=this;return _asyncToGenerator(function*(){const notif=yield _this6.notificationRepo.find({where:[{deadline:(0,typeorm_1.MoreThanOrEqual)(new Date)}],relations:["user_"]});for(const n of notif)socket.emit("new-notification",{notifCreator:n.user_.username,notifData:{id:n.id,type:n.type,title:n.title,content:n.content,dismissible:n.dismissible}})})()}},"SocketIoService");tslib_1.__decorate([(0,websockets_1.WebSocketServer)(),tslib_1.__metadata("design:type",socket_io_1.Server)],SocketIoService.prototype,"io",void 0),SocketIoService=tslib_1.__decorate([(0,common_1.Injectable)(),tslib_1.__metadata("design:paramtypes",[crypto_service_1.CryptoService,global_service_1.GlobalService,api_key_service_1.ApiKeyService,profile_service_1.ProfileService,notification_service_1.NotificationService,quiz_service_1.QuizService,user_service_1.UserService])],SocketIoService),exports2.SocketIoService=SocketIoService},38678:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AdminListBannedComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=(__webpack_require__2(74202),__webpack_require__2(15934)),req_res_model_1=__webpack_require__2(14249),i0=(__webpack_require__2(33070),__webpack_require__2(4137),__webpack_require__2(33e3),__webpack_require__2(55393),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(33070)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(55393)),i5=tslib_1.__importStar(__webpack_require__2(80855)),i6=tslib_1.__importStar(__webpack_require__2(4137)),i7=tslib_1.__importStar(__webpack_require__2(8616)),i8=tslib_1.__importStar(__webpack_require__2(30578));class AdminListBannedComponent{constructor(router,adm,bs,ds,gs,as){this.router=router,this.adm=adm,this.bs=bs,this.ds=ds,this.gs=gs,this.as=as,this.subsBannedGet=null,this.subsBannedDelete=null,this.subsDialog=null,this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.bannedData={column:["Id","Korban","Alasan","Pelaku","Aksi"],row:[]},this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.gs.isBrowser&&this.getBan()}ngOnDestroy(){var _a,_b,_c;null===(_a=this.subsBannedGet)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsBannedDelete)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsDialog)||void 0===_c||_c.unsubscribe()}getBan(){this.bs.busy(),this.subsBannedGet&&(this.subsBannedGet.unsubscribe(),this.bs.idle()),this.subsBannedGet=this.adm.getAllBanned(this.q,this.page,this.row,this.sort,this.order).subscribe({next:res=>{var _a,_b,_c,_d;this.gs.log("[BANNED_LIST_SUCCESS]",res),this.count=res.count;const bannedDataRow=[];let excludedRole=[];excludedRole=(null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.role)===req_res_model_1.RoleModel.ADMIN?[req_res_model_1.RoleModel.ADMIN]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR];for(const r of res.results)bannedDataRow.push({Id:r.id,foto_korban:r.user_.image_url,foto_pelaku:(null===(_c=r.banned_by_)||void 0===_c?void 0:_c.image_url)||`${environment_1.environment.baseUrl}/assets/img/favicon.png`,Korban:r.user_.username,Pelaku:(null===(_d=r.banned_by_)||void 0===_d?void 0:_d.username)||"AUTO_BANNED",Alasan:r.reason,Aksi:[{type:"button",icon:"mail_outline",name:"MAIL",row:r},...this.gs.includesOneOf(r.user_.role,excludedRole)?[]:[{type:"button",icon:"lock_open",name:"UnBAN",row:r}]]});this.bannedData.row=bannedDataRow,this.bs.idle()},error:err=>{this.gs.log("[BANNED_LIST_ERROR]",err,"error"),this.bs.idle()}})}action(data){this.gs.log("[BANNED_LIST_CLICK_AKSI]",data),"UnBAN"===data.name?this.unBan(data.row):"MAIL"===data.name&&this.router.navigate(["/create/mailbox"],{queryParams:{to:`${data.row.user_.username}@${environment_1.environment.domain}`}})}unBan(data){var _this=this;return _asyncToGenerator(function*(){_this.gs.log("[BANNED_LIST_CLICK_UNBAN]",data),_this.subsDialog=(yield _this.ds.openKonfirmasiDialog(`UnBAN Akun -- '${data.user_.username}'`,"Apakah Yakin Dan Akun Telah Direview Sebelum UnBAN ?")).afterClosed().subscribe({next:re=>{_this.gs.log("[INFO_DIALOG_CLOSED]",re),!0===re?(_this.bs.busy(),_this.subsBannedDelete=_this.adm.unBan(data.id).subscribe({next:res=>{_this.gs.log("[BANNED_LIST_CLICK_UNBAN_SUCCESS]",res),_this.bs.idle(),_this.getBan()},error:err=>{_this.gs.log("[BANNED_LIST_CLICK_UNBAN_ERROR]",err,"error"),_this.bs.idle(),_this.getBan()}})):!1===re&&_this.getBan(),_this.subsDialog.unsubscribe()}})})()}onPaginatorClicked(data){this.gs.log("[BANNED_LIST_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getBan()}onServerSideFilter(data){this.gs.log("[BANNED_LIST_ENTER_FILTER]",data),this.q=data,this.getBan()}onServerSideOrder(data){this.gs.log("[BANNED_LIST_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,this.order=data.direction,this.getBan()}openBan(data){this.gs.log("[BANNED_LIST_CLICK_BANNED]",data),this.router.navigateByUrl(`/user/${data.Korban}`)}}__name(AdminListBannedComponent,"AdminListBannedComponent"),exports2.AdminListBannedComponent=AdminListBannedComponent,AdminListBannedComponent.\u0275fac=__name(function(t){return new(t||AdminListBannedComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.AdminService),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.DialogService),i0.\u0275\u0275directiveInject(i5.GlobalService),i0.\u0275\u0275directiveInject(i6.AuthService))},"AdminListBannedComponent_Factory"),AdminListBannedComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:AdminListBannedComponent,selectors:[["app-admin-list-banned"]],decls:11,vars:4,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12"],[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12","p-3"],[3,"tableDataColumn","tableDataRow","count","serverSide","serverSideFilter","buttonClicked","paginatorClicked","serverSideOrder","rowClicked"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h2",5)(7,"b",6),i0.\u0275\u0275text(8,"User Yang Terkena BAN"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(9,"div",7)(10,"app-material-table",8),i0.\u0275\u0275listener("serverSideFilter",__name(function($event){return ctx.onServerSideFilter($event)},"AdminListBannedComponent_Template_app_material_table_serverSideFilter_10_listener"))("buttonClicked",__name(function($event){return ctx.action($event)},"AdminListBannedComponent_Template_app_material_table_buttonClicked_10_listener"))("paginatorClicked",__name(function($event){return ctx.onPaginatorClicked($event)},"AdminListBannedComponent_Template_app_material_table_paginatorClicked_10_listener"))("serverSideOrder",__name(function($event){return ctx.onServerSideOrder($event)},"AdminListBannedComponent_Template_app_material_table_serverSideOrder_10_listener"))("rowClicked",__name(function($event){return ctx.openBan($event)},"AdminListBannedComponent_Template_app_material_table_rowClicked_10_listener")),i0.\u0275\u0275elementEnd()()()()()()),2&rf&&(i0.\u0275\u0275advance(10),i0.\u0275\u0275property("tableDataColumn",ctx.bannedData.column)("tableDataRow",ctx.bannedData.row)("count",ctx.count)("serverSide",!0))},"AdminListBannedComponent_Template"),directives:[i7.NotificationsComponent,i8.MaterialTableComponent],styles:[""]})},5907:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AdminListCorsComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=__webpack_require__2(15934),i0=(__webpack_require__2(80855),__webpack_require__2(33070),__webpack_require__2(33e3),__webpack_require__2(55393),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(33e3)),i2=tslib_1.__importStar(__webpack_require__2(55393)),i3=tslib_1.__importStar(__webpack_require__2(80855)),i4=tslib_1.__importStar(__webpack_require__2(33070)),i5=tslib_1.__importStar(__webpack_require__2(8616)),i6=tslib_1.__importStar(__webpack_require__2(30578));class AdminListCorsComponent{constructor(bs,ds,gs,adm){this.bs=bs,this.ds=ds,this.gs=gs,this.adm=adm,this.subsCorsGet=null,this.subsCorsDelete=null,this.subsDialog=null,this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.corsData={column:["Id","Nama Api","IP Domain","Api Key","Pemilik","Aksi"],row:[]},this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.gs.isBrowser&&this.getCors()}ngOnDestroy(){var _a,_b,_c;null===(_a=this.subsCorsGet)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsCorsDelete)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsDialog)||void 0===_c||_c.unsubscribe()}getCors(){this.bs.busy(),this.subsCorsGet&&(this.subsCorsGet.unsubscribe(),this.bs.idle()),this.subsCorsGet=this.adm.getAllCors(this.q,this.page,this.row,this.sort,this.order).subscribe({next:res=>{var _a,_b;this.gs.log("[CORS_LIST_SUCCESS]",res),this.count=res.count;const corsDataRow=[];for(const r of res.results)corsDataRow.push({Id:r.id,"Nama Api":r.name,"IP Domain":r.ip_domain,"Api Key":r.api_key,foto:(null===(_a=r.user_)||void 0===_a?void 0:_a.image_url)||`${environment_1.environment.baseUrl}/assets/img/favicon.png`,Pemilik:(null===(_b=r.user_)||void 0===_b?void 0:_b.username)||"SYSTEM",Aksi:[{type:"button",icon:"layers_clear",name:"Revoke",row:r}]});this.corsData.row=corsDataRow,this.bs.idle()},error:err=>{this.gs.log("[CORS_LIST_ERROR]",err,"error"),this.bs.idle()}})}action(data){this.gs.log("[CORS_LIST_CLICK_AKSI]",data),"Revoke"===data.name&&this.revokeCors(data.row)}revokeCors(data){var _this=this;return _asyncToGenerator(function*(){_this.gs.log("[CORS_LIST_CLICK_REVOKE]",data),_this.subsDialog=(yield _this.ds.openKonfirmasiDialog(`Revoke Kunci -- '${data.id}' :: '${data.ip_domain}'`,"Apakah Yakin Untuk Menonaktifkan Kunci Ini ?")).afterClosed().subscribe({next:re=>{_this.gs.log("[INFO_DIALOG_CLOSED]",re),!0===re?(_this.bs.busy(),_this.subsCorsDelete=_this.adm.revokeCors(data.id).subscribe({next:res=>{_this.gs.log("[CORS_LIST_CLICK_REVOKE_SUCCESS]",res),_this.bs.idle(),_this.getCors()},error:err=>{_this.gs.log("[CORS_LIST_CLICK_REVOKE_ERROR]",err,"error"),_this.bs.idle(),_this.getCors()}})):!1===re&&_this.getCors(),_this.subsDialog.unsubscribe()}})})()}onPaginatorClicked(data){this.gs.log("[CORS_LIST_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getCors()}onServerSideFilter(data){this.gs.log("[CORS_LIST_ENTER_FILTER]",data),this.q=data,this.getCors()}onServerSideOrder(data){this.gs.log("[CORS_LIST_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,this.order=data.direction,this.getCors()}openCors(data){this.gs.log("[CORS_LIST_CLICK_CORS]",data)}}__name(AdminListCorsComponent,"AdminListCorsComponent"),exports2.AdminListCorsComponent=AdminListCorsComponent,AdminListCorsComponent.\u0275fac=__name(function(t){return new(t||AdminListCorsComponent)(i0.\u0275\u0275directiveInject(i1.BusyService),i0.\u0275\u0275directiveInject(i2.DialogService),i0.\u0275\u0275directiveInject(i3.GlobalService),i0.\u0275\u0275directiveInject(i4.AdminService))},"AdminListCorsComponent_Factory"),AdminListCorsComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:AdminListCorsComponent,selectors:[["app-admin-list-cors"]],decls:11,vars:4,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12"],[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12","p-3"],[3,"tableDataColumn","tableDataRow","count","serverSide","serverSideFilter","buttonClicked","paginatorClicked","serverSideOrder","rowClicked"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h2",5)(7,"b",6),i0.\u0275\u0275text(8,"Kelola API Key"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(9,"div",7)(10,"app-material-table",8),i0.\u0275\u0275listener("serverSideFilter",__name(function($event){return ctx.onServerSideFilter($event)},"AdminListCorsComponent_Template_app_material_table_serverSideFilter_10_listener"))("buttonClicked",__name(function($event){return ctx.action($event)},"AdminListCorsComponent_Template_app_material_table_buttonClicked_10_listener"))("paginatorClicked",__name(function($event){return ctx.onPaginatorClicked($event)},"AdminListCorsComponent_Template_app_material_table_paginatorClicked_10_listener"))("serverSideOrder",__name(function($event){return ctx.onServerSideOrder($event)},"AdminListCorsComponent_Template_app_material_table_serverSideOrder_10_listener"))("rowClicked",__name(function($event){return ctx.openCors($event)},"AdminListCorsComponent_Template_app_material_table_rowClicked_10_listener")),i0.\u0275\u0275elementEnd()()()()()()),2&rf&&(i0.\u0275\u0275advance(10),i0.\u0275\u0275property("tableDataColumn",ctx.corsData.column)("tableDataRow",ctx.corsData.row)("count",ctx.count)("serverSide",!0))},"AdminListCorsComponent_Template"),directives:[i5.NotificationsComponent,i6.MaterialTableComponent],styles:[""]})},74929:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AdminListDdlComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=__webpack_require__2(15934),i0=(__webpack_require__2(40197),__webpack_require__2(33e3),__webpack_require__2(55393),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(40197)),i2=tslib_1.__importStar(__webpack_require__2(33e3)),i3=tslib_1.__importStar(__webpack_require__2(55393)),i4=tslib_1.__importStar(__webpack_require__2(80855)),i5=tslib_1.__importStar(__webpack_require__2(8616)),i6=tslib_1.__importStar(__webpack_require__2(30578));class AdminListDdlComponent{constructor(dls,bs,ds,gs){this.dls=dls,this.bs=bs,this.ds=ds,this.gs=gs,this.subsAttachmentGet=null,this.subsAttachmentReUpload=null,this.subsDialog=null,this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.attachmentData={column:["Nama Lampiran","Ext","Size","Mime","Tanggal","Pemilik","Aksi"],row:[]},this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.gs.isBrowser&&this.getAttachmentNotUploaded()}ngOnDestroy(){var _a,_b,_c;null===(_a=this.subsAttachmentGet)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsAttachmentReUpload)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsDialog)||void 0===_c||_c.unsubscribe()}getAttachmentNotUploaded(){this.bs.busy(),this.subsAttachmentGet&&(this.subsAttachmentGet.unsubscribe(),this.bs.idle()),this.subsAttachmentGet=this.dls.getAttachmentNotUploaded(this.q,this.page,this.row,this.sort,this.order).subscribe({next:res=>{var _a,_b,_c,_d,_e,_f;this.gs.log("[LAMPIRAN_PENDING_LIST_SUCCESS]",res),this.count=res.count;const attachmentDataRow=[];for(const r of res.results)attachmentDataRow.push({foto:(null===(_a=r.user_)||void 0===_a?void 0:_a.image_url)||(null===(_c=null===(_b=r.parent_attachment_)||void 0===_b?void 0:_b.user_)||void 0===_c?void 0:_c.image_url)||`${environment_1.environment.baseUrl}/assets/img/favicon.png`,pending:r.pending,"Nama Lampiran":r.name,Ext:r.ext,Size:r.size,Mime:r.mime,Tanggal:r.created_at,Pemilik:(null===(_d=r.user_)||void 0===_d?void 0:_d.username)||(null===(_f=null===(_e=r.parent_attachment_)||void 0===_e?void 0:_e.user_)||void 0===_f?void 0:_f.username)||"SYSTEM",Aksi:r.pending||r.discord||r.google_drive?[]:[{type:"button",icon:"cloud_upload",name:"ReUpload",row:r}]});this.attachmentData.row=attachmentDataRow,this.bs.idle()},error:err=>{this.gs.log("[LAMPIRAN_PENDING_LIST_ERROR]",err,"error"),this.bs.idle()}})}action(data){this.gs.log("[LAMPIRAN_LIST_CLICK_AKSI]",data),"ReUpload"===data.name&&this.reUpload(data.row)}reUpload(data){var _this=this;return _asyncToGenerator(function*(){_this.gs.log("[LAMPIRAN_PENDING_LIST_CLICK_REUPLOAD]",data),_this.subsDialog=(yield _this.ds.openKonfirmasiDialog("Upload Ulang ?",`\n Id: ${data.id}
\n Filename: ${data.name}.${data.ext}
\n Size: ${data.size} Bytes
\n Mime: ${data.mime}
\n Pemilik: ${data.user_.username}\n `)).afterClosed().subscribe({next:re=>{_this.gs.log("[INFO_DIALOG_CLOSED]",re),!0===re?(_this.bs.busy(),_this.subsAttachmentReUpload=_this.dls.reUpload({id:data.id}).subscribe({next:res=>{_this.gs.log("[LAMPIRAN_PENDING_LIST_CLICK_REUPLOAD_SUCCESS]",res),_this.bs.idle(),_this.getAttachmentNotUploaded()},error:err=>{_this.gs.log("[LAMPIRAN_PENDING_LIST_CLICK_REUPLOAD_ERROR]",err,"error"),_this.bs.idle(),_this.getAttachmentNotUploaded()}})):!1===re&&_this.getAttachmentNotUploaded(),_this.subsDialog.unsubscribe()}})})()}onPaginatorClicked(data){this.gs.log("[LAMPIRAN_PENDING_LIST_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getAttachmentNotUploaded()}onServerSideFilter(data){this.gs.log("[LAMPIRAN_PENDING_LIST_ENTER_FILTER]",data),this.q=data,this.getAttachmentNotUploaded()}onServerSideOrder(data){this.gs.log("[LAMPIRAN_PENDING_LIST_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,this.order=data.direction,this.getAttachmentNotUploaded()}}__name(AdminListDdlComponent,"AdminListDdlComponent"),exports2.AdminListDdlComponent=AdminListDdlComponent,AdminListDdlComponent.\u0275fac=__name(function(t){return new(t||AdminListDdlComponent)(i0.\u0275\u0275directiveInject(i1.DdlLampiranService),i0.\u0275\u0275directiveInject(i2.BusyService),i0.\u0275\u0275directiveInject(i3.DialogService),i0.\u0275\u0275directiveInject(i4.GlobalService))},"AdminListDdlComponent_Factory"),AdminListDdlComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:AdminListDdlComponent,selectors:[["app-admin-list-ddl"]],decls:11,vars:4,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12"],[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12","p-3"],[3,"tableDataColumn","tableDataRow","count","serverSide","serverSideFilter","buttonClicked","paginatorClicked","serverSideOrder"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h2",5)(7,"b",6),i0.\u0275\u0275text(8,"Kelola Berkas DDL"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(9,"div",7)(10,"app-material-table",8),i0.\u0275\u0275listener("serverSideFilter",__name(function($event){return ctx.onServerSideFilter($event)},"AdminListDdlComponent_Template_app_material_table_serverSideFilter_10_listener"))("buttonClicked",__name(function($event){return ctx.action($event)},"AdminListDdlComponent_Template_app_material_table_buttonClicked_10_listener"))("paginatorClicked",__name(function($event){return ctx.onPaginatorClicked($event)},"AdminListDdlComponent_Template_app_material_table_paginatorClicked_10_listener"))("serverSideOrder",__name(function($event){return ctx.onServerSideOrder($event)},"AdminListDdlComponent_Template_app_material_table_serverSideOrder_10_listener")),i0.\u0275\u0275elementEnd()()()()()()),2&rf&&(i0.\u0275\u0275advance(10),i0.\u0275\u0275property("tableDataColumn",ctx.attachmentData.column)("tableDataRow",ctx.attachmentData.row)("count",ctx.count)("serverSide",!0))},"AdminListDdlComponent_Template"),directives:[i5.NotificationsComponent,i6.MaterialTableComponent],styles:[""]})},96142:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AdminListEmailComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=__webpack_require__2(15934),i0=(__webpack_require__2(33e3),__webpack_require__2(55393),__webpack_require__2(80855),__webpack_require__2(27358),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(33e3)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(27358)),i4=tslib_1.__importStar(__webpack_require__2(55393)),i5=tslib_1.__importStar(__webpack_require__2(8616)),i6=tslib_1.__importStar(__webpack_require__2(30578));class AdminListEmailComponent{constructor(bs,gs,ms,ds){this.bs=bs,this.gs=gs,this.ms=ms,this.ds=ds,this.subsAllMail=null,this.subsDialog=null,this.subsMail=null,this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.mailData={column:["Tanggal","Pengirim","Penerima","Topik","Lampiran"],row:[]},this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.gs.isBrowser&&this.getAllMail()}ngOnDestroy(){var _a,_b,_c;null===(_a=this.subsAllMail)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsDialog)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsMail)||void 0===_c||_c.unsubscribe()}filterAddress(raw){let addr="";if(raw)for(const rw of raw.split(","))addr&&(addr+=", "),rw.includes("<")&&rw.includes(">")?addr+=rw.split("<")[1].split(">")[0].trim():addr+=rw.trim();return addr}filterLampiran(attachment){let lampiran="";if(attachment)for(const a of attachment)lampiran&&(lampiran+=", "),lampiran+=`\n \n ${a.name}.${a.ext} (${a.size} Bytes)\n \n `;return lampiran}getAllMail(){this.bs.busy(),this.subsMail&&(this.subsMail.unsubscribe(),this.bs.idle()),this.subsAllMail=this.ms.getAllMail(this.q,this.page,this.row,this.sort,this.order).subscribe({next:res=>{this.gs.log("[MAIL_LIST_SUCCESS]",res),this.count=res.count,this.mailData.row=[];for(const r of res.results)this.mailData.row.push({id:r.id,Tanggal:r.date,Pengirim:this.filterAddress(r.from),Penerima:this.filterAddress(r.to),Topik:r.subject,Lampiran:`${r.attachment_count} Berkas`});this.bs.idle()},error:err=>{this.gs.log("[MAIL_LIST_ERROR]",err,"error"),this.bs.idle()}})}getMail(mailId){this.subsMail=this.ms.getMail(mailId).subscribe({next:res=>{this.gs.log("[MAIL_DETAIL_SUCCESS]",res),this.bs.idle(),this.subsDialog=this.ds.openInfoDialog({data:{title:res.result.subject,htmlMessage:`\n From: ${this.filterAddress(res.result.from)}\n
\n To: ${this.filterAddress(res.result.to)}\n
\n Cc: ${this.filterAddress(res.result.cc)}\n
\n Bcc: ${this.filterAddress(res.result.bcc)}\n

\n Date: ${new Date(res.result.date)}\n
\n Lampiran: ${this.filterLampiran(res.result.attachment_)}\n
\n ${res.result.html||res.result.text}\n `,confirmText:"Tutup",infoText:res.result.id},disableClose:!1}).afterClosed().subscribe({next:r=>{this.gs.log("[INFO_DIALOG_CLOSED]",r),this.getAllMail(),this.subsDialog.unsubscribe()}})},error:err=>{this.gs.log("[MAIL_DETAIL_ERROR]",err,"error"),this.bs.idle(),this.getAllMail()}})}onRowClicked(data){this.gs.log("[MAIL_LIST_CLICK_EMAIL]",data),this.getMail(data.id)}onPaginatorClicked(data){this.gs.log("[MAIL_LIST_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getAllMail()}onServerSideFilter(data){this.gs.log("[MAIL_LIST_ENTER_FILTER]",data),this.q=data,this.getAllMail()}onServerSideOrder(data){this.gs.log("[MAIL_LIST_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,"created_at"===this.sort?this.sort="date":"title"===this.sort&&(this.sort="subject"),this.order=data.direction,this.getAllMail()}}__name(AdminListEmailComponent,"AdminListEmailComponent"),exports2.AdminListEmailComponent=AdminListEmailComponent,AdminListEmailComponent.\u0275fac=__name(function(t){return new(t||AdminListEmailComponent)(i0.\u0275\u0275directiveInject(i1.BusyService),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.MailService),i0.\u0275\u0275directiveInject(i4.DialogService))},"AdminListEmailComponent_Factory"),AdminListEmailComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:AdminListEmailComponent,selectors:[["app-admin-list-email"]],decls:11,vars:4,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12"],[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12","p-3"],[3,"tableDataColumn","tableDataRow","count","serverSide","serverSideFilter","rowClicked","paginatorClicked","serverSideOrder"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h2",5)(7,"b",6),i0.\u0275\u0275text(8,"Semua Email Pengguna"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(9,"div",7)(10,"app-material-table",8),i0.\u0275\u0275listener("serverSideFilter",__name(function($event){return ctx.onServerSideFilter($event)},"AdminListEmailComponent_Template_app_material_table_serverSideFilter_10_listener"))("rowClicked",__name(function($event){return ctx.onRowClicked($event)},"AdminListEmailComponent_Template_app_material_table_rowClicked_10_listener"))("paginatorClicked",__name(function($event){return ctx.onPaginatorClicked($event)},"AdminListEmailComponent_Template_app_material_table_paginatorClicked_10_listener"))("serverSideOrder",__name(function($event){return ctx.onServerSideOrder($event)},"AdminListEmailComponent_Template_app_material_table_serverSideOrder_10_listener")),i0.\u0275\u0275elementEnd()()()()()()),2&rf&&(i0.\u0275\u0275advance(10),i0.\u0275\u0275property("tableDataColumn",ctx.mailData.column)("tableDataRow",ctx.mailData.row)("count",ctx.count)("serverSide",!0))},"AdminListEmailComponent_Template"),directives:[i5.NotificationsComponent,i6.MaterialTableComponent],styles:[""]})},2717:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AdminListFansubMemberComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(33e3),__webpack_require__2(55393),__webpack_require__2(76781),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(33e3)),i2=tslib_1.__importStar(__webpack_require__2(55393)),i3=tslib_1.__importStar(__webpack_require__2(76781)),i4=tslib_1.__importStar(__webpack_require__2(80855)),i5=tslib_1.__importStar(__webpack_require__2(8616)),i6=tslib_1.__importStar(__webpack_require__2(30578));class AdminListFansubMemberComponent{constructor(bs,ds,fansub,gs){this.bs=bs,this.ds=ds,this.fansub=fansub,this.gs=gs,this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.memberData={column:["Id","Fansub","Anggota","Keterangan","Aksi"],row:[]},this.subsMemberGet=null,this.subsMemberPut=null,this.subsMemberDelete=null,this.subsDialog=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.gs.isBrowser&&this.getFansubMember()}ngOnDestroy(){var _a,_b,_c,_d;null===(_a=this.subsMemberGet)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsMemberPut)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsMemberDelete)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsDialog)||void 0===_d||_d.unsubscribe()}getFansubMember(){this.bs.busy(),this.subsMemberGet&&(this.subsMemberGet.unsubscribe(),this.bs.idle()),this.subsMemberGet=this.fansub.getAllFansubMember(this.q,this.page,this.row,this.sort,this.order).subscribe({next:res=>{this.gs.log("[FANSUB_MEMBER_LIST_SUCCESS]",res);const memberDataRow=[];this.count=res.count;for(const r of res.results)memberDataRow.push({foto_fansub:r.fansub_.image_url,foto_anggota:r.user_.image_url,Id:r.id,Fansub:r.fansub_.slug,Anggota:r.user_.username,Keterangan:r.keterangan,Aksi:r.approved?[{type:"button",icon:"no_meeting_room",name:"KICK",row:r}]:[{type:"button",icon:"done",name:"ACCEPT",row:r},{type:"button",icon:"close",name:"REJECT",row:r}]});this.memberData.row=memberDataRow,this.bs.idle()},error:err=>{this.gs.log("[FANSUB_MEMBER_LIST_ERROR]",err,"error"),this.bs.idle()}})}onPaginatorClicked(data){this.gs.log("[FANSUB_MEMBER_LIST_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getFansubMember()}onServerSideFilter(data){this.gs.log("[FANSUB_MEMBER_LIST_ENTER_FILTER]",data),this.q=data,this.getFansubMember()}onServerSideOrder(data){this.gs.log("[FANSUB_MEMBER_LIST_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,this.order=data.direction,this.getFansubMember()}action(data){this.gs.log("[FANSUB_MEMBER_LIST_CLICK_AKSI]",data),"KICK"===data.name?this.kickMember(data.row):"ACCEPT"===data.name?this.approveOrRejectFansubMember(data.row,!0):"REJECT"===data.name&&this.approveOrRejectFansubMember(data.row,!1)}approveOrRejectFansubMember(data,ac){this.subsDialog=this.ds.openInputDialog({data:{title:`Keterangan ${ac?"Approve":"Reject"} '${data.user_.username}' :: '${data.fansub_.slug}'`,input:{keterangan:{inputLabel:"Keterangan",inputPlaceholder:"Pemilik, Translator, Timer, QA / QC, TypeSetter, dll.",inputValue:null,inputRequired:!0}},confirmText:"OK",cancelText:"Batal",infoText:"Max. 10 Huruf"}}).afterClosed().subscribe({next:re=>{var _a;this.gs.log("[INPUT_DIALOG_CLOSED]",re),re?(this.bs.busy(),this.subsMemberPut=this.fansub.approveRejectFansubMember(data.id,{approved:ac,keterangan:null===(_a=re.keterangan)||void 0===_a?void 0:_a.substring(0,10)}).subscribe({next:res=>{this.gs.log("[FANSUB_MEMBER_APPROVE_REJECT_SUCCESS]",res),this.getFansubMember(),this.bs.idle()},error:err=>{this.gs.log("[FANSUB_MEMBER_APPROVE_REJECT_ERROR]",err,"error"),this.getFansubMember(),this.bs.idle()}})):!1===re&&this.getFansubMember(),this.subsDialog.unsubscribe()}})}kickMember(data){var _this=this;return _asyncToGenerator(function*(){_this.subsDialog=(yield _this.ds.openKonfirmasiDialog(`Kick Member -- '${data.user_.username}' :: '${data.fansub_.slug}'`,"Apakah Yakin Dan Akun Telah Direview Sebelum Dikeluarkan ?")).afterClosed().subscribe({next:re=>{_this.gs.log("[INFO_DIALOG_CLOSED]",re),!0===re?(_this.bs.busy(),_this.subsMemberDelete=_this.fansub.leaveFansubMember(data.id).subscribe({next:res=>{_this.gs.log("[FANSUB_MEMBER_KICK_SUCCESS]",res),_this.getFansubMember(),_this.bs.idle()},error:err=>{_this.gs.log("[FANSUB_MEMBER_KICK_ERROR]",err,"error"),_this.getFansubMember(),_this.bs.idle()}})):!1===re&&_this.getFansubMember(),_this.subsDialog.unsubscribe()}})})()}}__name(AdminListFansubMemberComponent,"AdminListFansubMemberComponent"),exports2.AdminListFansubMemberComponent=AdminListFansubMemberComponent,AdminListFansubMemberComponent.\u0275fac=__name(function(t){return new(t||AdminListFansubMemberComponent)(i0.\u0275\u0275directiveInject(i1.BusyService),i0.\u0275\u0275directiveInject(i2.DialogService),i0.\u0275\u0275directiveInject(i3.FansubService),i0.\u0275\u0275directiveInject(i4.GlobalService))},"AdminListFansubMemberComponent_Factory"),AdminListFansubMemberComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:AdminListFansubMemberComponent,selectors:[["app-admin-list-fansub-member"]],decls:11,vars:4,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12"],[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12","p-3"],[3,"tableDataColumn","tableDataRow","count","serverSide","serverSideFilter","buttonClicked","paginatorClicked","serverSideOrder"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h2",5)(7,"b",6),i0.\u0275\u0275text(8,"Atur Keanggotaan Fansub"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(9,"div",7)(10,"app-material-table",8),i0.\u0275\u0275listener("serverSideFilter",__name(function($event){return ctx.onServerSideFilter($event)},"AdminListFansubMemberComponent_Template_app_material_table_serverSideFilter_10_listener"))("buttonClicked",__name(function($event){return ctx.action($event)},"AdminListFansubMemberComponent_Template_app_material_table_buttonClicked_10_listener"))("paginatorClicked",__name(function($event){return ctx.onPaginatorClicked($event)},"AdminListFansubMemberComponent_Template_app_material_table_paginatorClicked_10_listener"))("serverSideOrder",__name(function($event){return ctx.onServerSideOrder($event)},"AdminListFansubMemberComponent_Template_app_material_table_serverSideOrder_10_listener")),i0.\u0275\u0275elementEnd()()()()()()),2&rf&&(i0.\u0275\u0275advance(10),i0.\u0275\u0275property("tableDataColumn",ctx.memberData.column)("tableDataRow",ctx.memberData.row)("count",ctx.count)("serverSide",!0))},"AdminListFansubMemberComponent_Template"),directives:[i5.NotificationsComponent,i6.MaterialTableComponent],styles:[""]})},41831:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AdminListInformationDialogComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),constants_1=__webpack_require__2(26271),i0=(__webpack_require__2(80855),__webpack_require__2(17635),__webpack_require__2(33e3),__webpack_require__2(55393),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(93075)),i2=tslib_1.__importStar(__webpack_require__2(33e3)),i3=tslib_1.__importStar(__webpack_require__2(55393)),i4=tslib_1.__importStar(__webpack_require__2(80855)),i5=tslib_1.__importStar(__webpack_require__2(17635)),i6=tslib_1.__importStar(__webpack_require__2(8616)),i7=tslib_1.__importStar(__webpack_require__2(69808)),i8=tslib_1.__importStar(__webpack_require__2(67322)),i9=tslib_1.__importStar(__webpack_require__2(77531)),i10=tslib_1.__importStar(__webpack_require__2(25245)),i11=tslib_1.__importStar(__webpack_require__2(74107)),i12=tslib_1.__importStar(__webpack_require__2(90508)),i13=tslib_1.__importStar(__webpack_require__2(29345)),i14=tslib_1.__importStar(__webpack_require__2(47423)),i15=tslib_1.__importStar(__webpack_require__2(74202)),i16=tslib_1.__importStar(__webpack_require__2(30578));function AdminListInformationDialogComponent_form_5_div_16_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Kode Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function AdminListInformationDialogComponent_form_5_div_17_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Kode Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function AdminListInformationDialogComponent_form_5_div_25_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Judul Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function AdminListInformationDialogComponent_form_5_div_26_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Judul Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function AdminListInformationDialogComponent_form_5_div_37_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Tombol OK Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function AdminListInformationDialogComponent_form_5_div_38_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Tombol OK Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function AdminListInformationDialogComponent_form_5_div_46_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Judul Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function AdminListInformationDialogComponent_form_5_div_47_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Judul Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function AdminListInformationDialogComponent_form_5_div_59_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Mohon Pilih Salah Satu"),i0.\u0275\u0275elementEnd())}function AdminListInformationDialogComponent_form_5_div_60_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Status Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function AdminListInformationDialogComponent_form_5_div_72_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Mohon Pilih Salah Satu"),i0.\u0275\u0275elementEnd())}function AdminListInformationDialogComponent_form_5_div_73_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Status Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function AdminListInformationDialogComponent_form_5_Template(rf,ctx){if(1&rf){const _r14=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",10),i0.\u0275\u0275listener("submit",__name(function(){return i0.\u0275\u0275restoreView(_r14),i0.\u0275\u0275nextContext().onSubmit()},"AdminListInformationDialogComponent_form_5_Template_form_submit_0_listener")),i0.\u0275\u0275elementStart(1,"div",11)(2,"h2",6)(3,"b",7),i0.\u0275\u0275text(4,"Tambah / Ubah Informasi Dialog Pop-Up!"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",2)(6,"div",3)(7,"mat-form-field",12)(8,"mat-label"),i0.\u0275\u0275text(9,"Kode ID"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(10,"input",13),i0.\u0275\u0275elementStart(11,"mat-icon",14),i0.\u0275\u0275text(12,"short_text"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(13,"mat-hint",15),i0.\u0275\u0275text(14,"ID Untuk Request API"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(15,"mat-error"),i0.\u0275\u0275template(16,AdminListInformationDialogComponent_form_5_div_16_Template,2,0,"div",16),i0.\u0275\u0275template(17,AdminListInformationDialogComponent_form_5_div_17_Template,2,0,"div",16),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(18,"mat-form-field",17)(19,"mat-label"),i0.\u0275\u0275text(20,"Judul Dialog"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(21,"input",18),i0.\u0275\u0275elementStart(22,"mat-icon",14),i0.\u0275\u0275text(23,"short_text"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(24,"mat-error"),i0.\u0275\u0275template(25,AdminListInformationDialogComponent_form_5_div_25_Template,2,0,"div",16),i0.\u0275\u0275template(26,AdminListInformationDialogComponent_form_5_div_26_Template,2,0,"div",16),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(27,"div",3)(28,"div",19)(29,"div",3)(30,"mat-form-field",20)(31,"mat-label"),i0.\u0275\u0275text(32,"Tombol OK"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(33,"input",21),i0.\u0275\u0275elementStart(34,"mat-icon",14),i0.\u0275\u0275text(35,"short_text"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(36,"mat-error"),i0.\u0275\u0275template(37,AdminListInformationDialogComponent_form_5_div_37_Template,2,0,"div",16),i0.\u0275\u0275template(38,AdminListInformationDialogComponent_form_5_div_38_Template,2,0,"div",16),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(39,"mat-form-field",20)(40,"mat-label"),i0.\u0275\u0275text(41,"Tombol Cancel"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(42,"input",22),i0.\u0275\u0275elementStart(43,"mat-icon",14),i0.\u0275\u0275text(44,"short_text"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(45,"mat-error"),i0.\u0275\u0275template(46,AdminListInformationDialogComponent_form_5_div_46_Template,2,0,"div",16),i0.\u0275\u0275template(47,AdminListInformationDialogComponent_form_5_div_47_Template,2,0,"div",16),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(48,"mat-form-field",20)(49,"mat-label"),i0.\u0275\u0275text(50,"Cegah Klik Tutup Dimana Saja"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(51,"mat-select",23)(52,"mat-option",24),i0.\u0275\u0275text(53,"Tidak"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(54,"mat-option",25),i0.\u0275\u0275text(55,"Ya"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(56,"mat-hint",15),i0.\u0275\u0275text(57,"Antisipasi Kesalahan Klik"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(58,"mat-error"),i0.\u0275\u0275template(59,AdminListInformationDialogComponent_form_5_div_59_Template,2,0,"div",16),i0.\u0275\u0275template(60,AdminListInformationDialogComponent_form_5_div_60_Template,2,0,"div",16),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(61,"mat-form-field",20)(62,"mat-label"),i0.\u0275\u0275text(63,"Langsung Disiarkan Saja"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(64,"mat-select",26)(65,"mat-option",24),i0.\u0275\u0275text(66,"Tidak"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(67,"mat-option",25),i0.\u0275\u0275text(68,"Ya"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(69,"mat-hint",15),i0.\u0275\u0275text(70,"Live Popup Message Tidak Disimpan"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(71,"mat-error"),i0.\u0275\u0275template(72,AdminListInformationDialogComponent_form_5_div_72_Template,2,0,"div",16),i0.\u0275\u0275template(73,AdminListInformationDialogComponent_form_5_div_73_Template,2,0,"div",16),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(74,"div",27)(75,"div",3),i0.\u0275\u0275element(76,"angular-editor",28),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(77,"div",29)(78,"div",2)(79,"div",30),i0.\u0275\u0275element(80,"div",31),i0.\u0275\u0275elementStart(81,"div",32)(82,"a",33)(83,"mat-icon",34),i0.\u0275\u0275text(84,"undo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(85," Batal "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(86,"div",32)(87,"button",35),i0.\u0275\u0275text(88," Simpan "),i0.\u0275\u0275elementStart(89,"mat-icon",36),i0.\u0275\u0275text(90,"save"),i0.\u0275\u0275elementEnd()()()()()()()()}if(2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("formGroup",ctx_r0.fg),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(9),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("id").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("id").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("title").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("title").hasError("pattern")),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("confirm").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("confirm").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("cancel").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("cancel").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(11),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("close").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("close").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(11),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("broadcast").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("broadcast").hasError("pattern")),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("config",ctx_r0.GS.angularEditorConfig),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("disabled",ctx_r0.submitted),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r0.submitted||ctx_r0.fg.invalid)}}__name(AdminListInformationDialogComponent_form_5_div_16_Template,"AdminListInformationDialogComponent_form_5_div_16_Template"),__name(AdminListInformationDialogComponent_form_5_div_17_Template,"AdminListInformationDialogComponent_form_5_div_17_Template"),__name(AdminListInformationDialogComponent_form_5_div_25_Template,"AdminListInformationDialogComponent_form_5_div_25_Template"),__name(AdminListInformationDialogComponent_form_5_div_26_Template,"AdminListInformationDialogComponent_form_5_div_26_Template"),__name(AdminListInformationDialogComponent_form_5_div_37_Template,"AdminListInformationDialogComponent_form_5_div_37_Template"),__name(AdminListInformationDialogComponent_form_5_div_38_Template,"AdminListInformationDialogComponent_form_5_div_38_Template"),__name(AdminListInformationDialogComponent_form_5_div_46_Template,"AdminListInformationDialogComponent_form_5_div_46_Template"),__name(AdminListInformationDialogComponent_form_5_div_47_Template,"AdminListInformationDialogComponent_form_5_div_47_Template"),__name(AdminListInformationDialogComponent_form_5_div_59_Template,"AdminListInformationDialogComponent_form_5_div_59_Template"),__name(AdminListInformationDialogComponent_form_5_div_60_Template,"AdminListInformationDialogComponent_form_5_div_60_Template"),__name(AdminListInformationDialogComponent_form_5_div_72_Template,"AdminListInformationDialogComponent_form_5_div_72_Template"),__name(AdminListInformationDialogComponent_form_5_div_73_Template,"AdminListInformationDialogComponent_form_5_div_73_Template"),__name(AdminListInformationDialogComponent_form_5_Template,"AdminListInformationDialogComponent_form_5_Template");class AdminListInformationDialogComponent{constructor(fb,bs,ds,gs,info){this.fb=fb,this.bs=bs,this.ds=ds,this.gs=gs,this.info=info,this.submitted=!1,this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.infoData={column:["Id","Judul","Pemilik","Aksi"],row:[]},this.subsInfoGet=null,this.subsInfoCreateOrUpdate=null,this.subsInfoDelete=null,this.subsDialog=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.gs.isBrowser&&(this.initForm(),this.getInfo())}ngOnDestroy(){var _a,_b,_c,_d;null===(_a=this.subsInfoGet)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsInfoCreateOrUpdate)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsInfoDelete)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsDialog)||void 0===_d||_d.unsubscribe()}get GS(){return this.gs}initForm(){this.fg=this.fb.group({id:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],title:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],content:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],confirm:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],cancel:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],close:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],broadcast:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])]})}getInfo(){this.bs.busy(),this.subsInfoGet&&(this.subsInfoGet.unsubscribe(),this.bs.idle()),this.subsInfoGet=this.info.getAllInfo(this.q,this.page,this.row,this.sort,this.order).subscribe({next:res=>{this.gs.log("[INFORMATION_LIST_SUCCESS]",res),this.count=res.count;const infoDataRow=[];for(const r of res.results)infoDataRow.push({content:r.content,confirm:r.confirm,cancel:r.cancel,close:r.close,foto:r.user_.image_url,Id:r.id,Judul:r.title,Pemilik:r.user_.username,Aksi:[{type:"button",icon:"close",name:"Hapus",row:r}]});this.infoData.row=infoDataRow,this.bs.idle()},error:err=>{this.gs.log("[INFORMATION_LIST_ERROR]",err,"error"),this.bs.idle()}})}onSubmit(){if(this.bs.busy(),this.submitted=!0,this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsInfoCreateOrUpdate=this.info.createUpdateInfo({id:this.fg.value.id,title:this.fg.value.title,content:this.fg.value.content,confirm:this.fg.value.confirm,cancel:this.fg.value.cancel,close:"1"===this.fg.value.close,broadcast:"1"===this.fg.value.broadcast}).subscribe({next:res=>{this.gs.log("[INFORMATION_CREATE_UPDATE_SUCCESS]",res),this.submitted=!1,this.bs.idle();for(const c in this.fg.controls)this.fg.controls[c]&&(this.fg.controls[c].patchValue(null),this.fg.controls[c].updateValueAndValidity(),this.fg.controls[c].setErrors(null),this.fg.controls[c].markAsUntouched(),this.fg.controls[c].markAsPristine());this.getInfo()},error:err=>{this.gs.log("[INFORMATION_CREATE_UPDATE_ERROR]",err,"error"),this.submitted=!1,this.bs.idle(),this.getInfo()}})}action(data){this.gs.log("[INFORMMATION_LIST_CLICK_AKSI]",data),"Hapus"===data.name&&this.deleteInfo(data.row)}deleteInfo(data){var _this=this;return _asyncToGenerator(function*(){_this.gs.log("[INFORMATION_LIST_CLICK_DELETE]",data),_this.subsDialog=(yield _this.ds.openKonfirmasiDialog(`Hapus Info -- '${data.id}' :: '${data.title}'`,"Yakin Akan Menghapus Informasi Ini ?")).afterClosed().subscribe({next:re=>{_this.gs.log("[INFO_DIALOG_CLOSED]",re),!0===re?(_this.bs.busy(),_this.subsInfoDelete=_this.info.deleteInfo(data.id).subscribe({next:res=>{_this.gs.log("[INFORMATION_LIST_CLICK_DELETE_SUCCESS]",res),_this.bs.idle(),_this.getInfo()},error:err=>{_this.gs.log("[INFORMATION_LIST_CLICK_DELETE_ERROR]",err,"error"),_this.bs.idle(),_this.getInfo()}})):!1===re&&_this.getInfo(),_this.subsDialog.unsubscribe()}})})()}onPaginatorClicked(data){this.gs.log("[INFORMATION_LIST_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getInfo()}onServerSideFilter(data){this.gs.log("[INFORMATION_LIST_ENTER_FILTER]",data),this.q=data,this.getInfo()}onServerSideOrder(data){this.gs.log("[INFORMATION_LIST_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,this.order=data.direction,this.getInfo()}editInfo(data){this.gs.log("[INFORMATION_LIST_CLICK_INFORMATION]",data),this.fg.controls.id.patchValue(data.Id),this.fg.controls.title.patchValue(data.Judul),this.fg.controls.content.patchValue(data.content),this.fg.controls.confirm.patchValue(data.confirm),this.fg.controls.cancel.patchValue(data.cancel),this.fg.controls.close.patchValue(""+ +(null==data?void 0:data.close)),this.fg.controls.broadcast.patchValue(""+ +(null==data?void 0:data.broadcast))}}__name(AdminListInformationDialogComponent,"AdminListInformationDialogComponent"),exports2.AdminListInformationDialogComponent=AdminListInformationDialogComponent,AdminListInformationDialogComponent.\u0275fac=__name(function(t){return new(t||AdminListInformationDialogComponent)(i0.\u0275\u0275directiveInject(i1.FormBuilder),i0.\u0275\u0275directiveInject(i2.BusyService),i0.\u0275\u0275directiveInject(i3.DialogService),i0.\u0275\u0275directiveInject(i4.GlobalService),i0.\u0275\u0275directiveInject(i5.InformationService))},"AdminListInformationDialogComponent_Factory"),AdminListInformationDialogComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:AdminListInformationDialogComponent,selectors:[["app-admin-list-information-dialog"]],decls:13,vars:5,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12"],[1,"row"],[3,"formGroup","submit",4,"ngIf"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12","p-3"],[3,"tableDataColumn","tableDataRow","count","serverSide","serverSideFilter","buttonClicked","paginatorClicked","serverSideOrder","rowClicked"],[3,"formGroup","submit"],[1,"col-12","sticky-top","bg-bifeldy","pb-1"],["appearance","outline",1,"p-3","col-12","col-md-4",3,"color"],["matInput","","formControlName","id","placeholder","ID_DIALOG","required",""],["matSuffix",""],["align","end"],[4,"ngIf"],["appearance","outline",1,"p-3","col-12","col-md-8",3,"color"],["matInput","","formControlName","title","placeholder","Judul Dialog","required",""],[1,"col-12","col-md-5","col-xl-4","p-3"],["appearance","outline",1,"p-3","col-12",3,"color"],["matInput","","formControlName","confirm","placeholder","OK!","required",""],["matInput","","formControlName","cancel","placeholder","Batal!"],["formControlName","close","placeholder","Ya / Tidak","required",""],["value","0"],["value","1"],["formControlName","broadcast","placeholder","Ya / Tidak","required",""],[1,"col-12","col-md-7","col-xl-8","pt-3"],["formControlName","content","required","",1,"p-3","w-100",3,"config"],[1,"row","mt-3"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","../",1,"w-100",3,"disabled"],[1,"me-1"],["mat-flat-button","","color","accent","type","submit",1,"w-100",3,"disabled"],[1,"ms-1"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3),i0.\u0275\u0275template(5,AdminListInformationDialogComponent_form_5_Template,91,22,"form",4),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"div",3)(7,"div",5)(8,"h2",6)(9,"b",7),i0.\u0275\u0275text(10,"Informasi Dialog Pop-Up Tersimpan"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(11,"div",8)(12,"app-material-table",9),i0.\u0275\u0275listener("serverSideFilter",__name(function($event){return ctx.onServerSideFilter($event)},"AdminListInformationDialogComponent_Template_app_material_table_serverSideFilter_12_listener"))("buttonClicked",__name(function($event){return ctx.action($event)},"AdminListInformationDialogComponent_Template_app_material_table_buttonClicked_12_listener"))("paginatorClicked",__name(function($event){return ctx.onPaginatorClicked($event)},"AdminListInformationDialogComponent_Template_app_material_table_paginatorClicked_12_listener"))("serverSideOrder",__name(function($event){return ctx.onServerSideOrder($event)},"AdminListInformationDialogComponent_Template_app_material_table_serverSideOrder_12_listener"))("rowClicked",__name(function($event){return ctx.editInfo($event)},"AdminListInformationDialogComponent_Template_app_material_table_rowClicked_12_listener")),i0.\u0275\u0275elementEnd()()()()()()),2&rf&&(i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngIf",ctx.fg),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("tableDataColumn",ctx.infoData.column)("tableDataRow",ctx.infoData.row)("count",ctx.count)("serverSide",!0))},"AdminListInformationDialogComponent_Template"),directives:[i6.NotificationsComponent,i7.NgIf,i1.\u0275NgNoValidate,i1.NgControlStatusGroup,i1.FormGroupDirective,i8.MatFormField,i8.MatLabel,i9.MatInput,i1.DefaultValueAccessor,i1.NgControlStatus,i1.FormControlName,i1.RequiredValidator,i10.MatIcon,i8.MatSuffix,i8.MatHint,i8.MatError,i11.MatSelect,i12.MatOption,i13.AngularEditorComponent,i14.MatAnchor,i15.RouterLinkWithHref,i14.MatButton,i16.MaterialTableComponent],styles:[""]})},17416:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AdminListProjectTypeComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),constants_1=__webpack_require__2(26271),i0=(__webpack_require__2(80855),__webpack_require__2(65679),__webpack_require__2(33e3),__webpack_require__2(67902),__webpack_require__2(55393),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(93075)),i2=tslib_1.__importStar(__webpack_require__2(33e3)),i3=tslib_1.__importStar(__webpack_require__2(80855)),i4=tslib_1.__importStar(__webpack_require__2(55393)),i5=tslib_1.__importStar(__webpack_require__2(67902)),i6=tslib_1.__importStar(__webpack_require__2(65679)),i7=tslib_1.__importStar(__webpack_require__2(8616)),i8=tslib_1.__importStar(__webpack_require__2(69808)),i9=tslib_1.__importStar(__webpack_require__2(67322)),i10=tslib_1.__importStar(__webpack_require__2(21385)),i11=tslib_1.__importStar(__webpack_require__2(25245)),i12=tslib_1.__importStar(__webpack_require__2(47423)),i13=tslib_1.__importStar(__webpack_require__2(77531)),i14=tslib_1.__importStar(__webpack_require__2(74202)),i15=tslib_1.__importStar(__webpack_require__2(30578)),i16=tslib_1.__importStar(__webpack_require__2(23626));function AdminListProjectTypeComponent_form_5_div_20_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r2=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Ukuran Upload Melebihi Batas ",i0.\u0275\u0275pipeBind1(2,1,ctx_r2.imageLimitExceeded)," !")}}function AdminListProjectTypeComponent_form_5_div_21_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r3.imageErrorText)}}function AdminListProjectTypeComponent_form_5_div_22_Template(rf,ctx){if(1&rf){const _r10=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",2)(1,"button",34),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r10),i0.\u0275\u0275nextContext(2).submitImage()},"AdminListProjectTypeComponent_form_5_div_22_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",31),i0.\u0275\u0275text(3,"add_photo_alternate"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Unggah "),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r4=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",ctx_r4.submitted)}}function AdminListProjectTypeComponent_form_5_div_34_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Nama Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function AdminListProjectTypeComponent_form_5_div_35_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Nama Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function AdminListProjectTypeComponent_form_5_div_43_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Deskripsi Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function AdminListProjectTypeComponent_form_5_div_44_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Deskripsi Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function AdminListProjectTypeComponent_form_5_Template(rf,ctx){if(1&rf){const _r12=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",10),i0.\u0275\u0275listener("submit",__name(function(){return i0.\u0275\u0275restoreView(_r12),i0.\u0275\u0275nextContext().onSubmit()},"AdminListProjectTypeComponent_form_5_Template_form_submit_0_listener")),i0.\u0275\u0275elementStart(1,"div",11)(2,"h2",6)(3,"b",7),i0.\u0275\u0275text(4,"Buat Tipe Jenis Proyek Baru"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",2)(6,"div",3)(7,"div",12)(8,"div",3)(9,"div",2),i0.\u0275\u0275element(10,"img",13),i0.\u0275\u0275elementStart(11,"mat-form-field",14)(12,"mat-label"),i0.\u0275\u0275text(13,"Gambar"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(14,"ngx-mat-file-input",15,16),i0.\u0275\u0275listener("change",__name(function($event){i0.\u0275\u0275restoreView(_r12);const _r1=i0.\u0275\u0275reference(15);return i0.\u0275\u0275nextContext().uploadImage($event,_r1)},"AdminListProjectTypeComponent_form_5_Template_ngx_mat_file_input_change_14_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(16,"mat-icon",17),i0.\u0275\u0275text(17,"image"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(18,"mat-error",18)(19,"small"),i0.\u0275\u0275template(20,AdminListProjectTypeComponent_form_5_div_20_Template,3,3,"div",19),i0.\u0275\u0275template(21,AdminListProjectTypeComponent_form_5_div_21_Template,2,1,"div",19),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(22,AdminListProjectTypeComponent_form_5_div_22_Template,5,1,"div",20),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(23,"div",21)(24,"div",3)(25,"mat-form-field",22)(26,"mat-label"),i0.\u0275\u0275text(27,"Nama"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(28,"input",23),i0.\u0275\u0275elementStart(29,"mat-icon",17),i0.\u0275\u0275text(30,"short_text"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(31,"mat-hint",24),i0.\u0275\u0275text(32,"Untuk Jenis Berkas"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(33,"mat-error"),i0.\u0275\u0275template(34,AdminListProjectTypeComponent_form_5_div_34_Template,2,0,"div",19),i0.\u0275\u0275template(35,AdminListProjectTypeComponent_form_5_div_35_Template,2,0,"div",19),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(36,"mat-form-field",22)(37,"mat-label"),i0.\u0275\u0275text(38,"Deskripsi"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(39,"input",25),i0.\u0275\u0275elementStart(40,"mat-icon",17),i0.\u0275\u0275text(41,"wysiwyg"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(42,"mat-error"),i0.\u0275\u0275template(43,AdminListProjectTypeComponent_form_5_div_43_Template,2,0,"div",19),i0.\u0275\u0275template(44,AdminListProjectTypeComponent_form_5_div_44_Template,2,0,"div",19),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(45,"div",8)(46,"div",26)(47,"div",2)(48,"div",27),i0.\u0275\u0275element(49,"div",28),i0.\u0275\u0275elementStart(50,"div",29)(51,"a",30)(52,"mat-icon",31),i0.\u0275\u0275text(53,"undo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(54," Batal "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(55,"div",29)(56,"button",32),i0.\u0275\u0275text(57," Simpan "),i0.\u0275\u0275elementStart(58,"mat-icon",33),i0.\u0275\u0275text(59,"save"),i0.\u0275\u0275elementEnd()()()()()()()()()()}if(2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("formGroup",ctx_r0.fg),i0.\u0275\u0275advance(10),i0.\u0275\u0275property("src",ctx_r0.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("disabled",ctx_r0.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r0.imageLimitExceeded),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.imageErrorText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.image&&!ctx_r0.fg.value.image),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(9),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("name").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("name").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("description").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("description").hasError("pattern")),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("disabled",ctx_r0.submitted),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r0.submitted||ctx_r0.fg.invalid)}}__name(AdminListProjectTypeComponent_form_5_div_20_Template,"AdminListProjectTypeComponent_form_5_div_20_Template"),__name(AdminListProjectTypeComponent_form_5_div_21_Template,"AdminListProjectTypeComponent_form_5_div_21_Template"),__name(AdminListProjectTypeComponent_form_5_div_22_Template,"AdminListProjectTypeComponent_form_5_div_22_Template"),__name(AdminListProjectTypeComponent_form_5_div_34_Template,"AdminListProjectTypeComponent_form_5_div_34_Template"),__name(AdminListProjectTypeComponent_form_5_div_35_Template,"AdminListProjectTypeComponent_form_5_div_35_Template"),__name(AdminListProjectTypeComponent_form_5_div_43_Template,"AdminListProjectTypeComponent_form_5_div_43_Template"),__name(AdminListProjectTypeComponent_form_5_div_44_Template,"AdminListProjectTypeComponent_form_5_div_44_Template"),__name(AdminListProjectTypeComponent_form_5_Template,"AdminListProjectTypeComponent_form_5_Template");class AdminListProjectTypeComponent{constructor(fb,bs,gs,ds,imgbb,project){this.fb=fb,this.bs=bs,this.gs=gs,this.ds=ds,this.imgbb=imgbb,this.project=project,this.submitted=!1,this.subsProjectGet=null,this.subsProjectCreate=null,this.subsProjectDelete=null,this.subsImgbb=null,this.subsDialog=null,this.gambar=null,this.image=null,this.imageErrorText=null,this.imageLimitExceeded=null,this.image_url="/assets/img/form/no-image.png",this.projectData={column:["Nama","Image","Deskripsi","Berkas","Aksi"],row:[]},this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.gs.isBrowser&&(this.initForm(),this.getProject())}ngOnDestroy(){var _a,_b,_c,_d,_e;null===(_a=this.subsProjectCreate)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsProjectGet)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsProjectDelete)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsImgbb)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsDialog)||void 0===_e||_e.unsubscribe()}initForm(){this.fg=this.fb.group({name:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],description:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],image:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])]})}getProject(){this.bs.busy(),this.subsProjectGet&&(this.subsProjectGet.unsubscribe(),this.bs.idle()),this.subsProjectGet=this.project.getProject().subscribe({next:res=>{this.gs.log("[PROJECT_LIST_SUCCESS]",res);const projectDataRow=[];for(const r of res.results)projectDataRow.push({Nama:r.name,Image:r.image_url,Deskripsi:r.description,Berkas:r.total_berkas,Aksi:r.total_berkas>0?[]:[{type:"button",icon:"delete_forever",name:"Hapus",row:r}]});this.projectData.row=projectDataRow,this.bs.idle()},error:err=>{this.gs.log("[PROJECT_LIST_ERROR]",err,"error"),this.bs.idle()}})}onSubmit(){if(this.bs.busy(),this.submitted=!0,this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsProjectCreate=this.project.createProject({name:this.fg.value.name,description:this.fg.value.description,image:this.fg.value.image}).subscribe({next:res=>{this.gs.log("[PROJECT_CREATE_SUCCESS]",res),this.submitted=!1,this.bs.idle();for(const c in this.fg.controls)this.fg.controls[c]&&(this.fg.controls[c].patchValue(null),this.fg.controls[c].updateValueAndValidity(),this.fg.controls[c].setErrors(null),this.fg.controls[c].markAsUntouched(),this.fg.controls[c].markAsPristine());this.getProject()},error:err=>{this.gs.log("[PROJECT_CREATE_ERROR]",err,"error"),this.submitted=!1,this.bs.idle(),this.getProject()}})}action(data){this.gs.log("[PROJECT_LIST_CLICK_AKSI]",data),"Hapus"===data.name&&this.deleteProject(data.row)}deleteProject(data){var _this=this;return _asyncToGenerator(function*(){_this.gs.log("[PROJECT_LIST_CLICK_DELETE]",data),_this.subsDialog=(yield _this.ds.openKonfirmasiDialog(`Hapus Proyek -- '${data.id}' :: '${data.nama}'`,"Menghapus Dapat Membuat Error / Menghapus Berkas Yang Menunjuk Ke Tipe Ini !")).afterClosed().subscribe({next:re=>{_this.gs.log("[INFO_DIALOG_CLOSED]",re),!0===re?(_this.bs.busy(),_this.subsProjectDelete=_this.project.deleteProject(data.id).subscribe({next:res=>{_this.gs.log("[PROJECT_LIST_CLICK_DELETE_SUCCESS]",res),_this.bs.idle(),_this.getProject()},error:err=>{_this.gs.log("[PROJECT_LIST_CLICK_DELETE_ERROR]",err,"error"),_this.bs.idle(),_this.getProject()}})):!1===re&&_this.getProject(),_this.subsDialog.unsubscribe()}})})()}uploadImage(event,gambar){this.gambar=gambar,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null);const file2=event.target.files[0];try{const reader=new FileReader;reader.readAsDataURL(file2),reader.onload=e=>{if(this.gs.log("[IMAGE_SELECTED]",e),file2.size<=constants_1.CONSTANTS.fileSizeImageLimit){const img=this.gs.document.createElement("img");img.onload=()=>{this.image=file2,this.image_url=reader.result.toString()},img.src=reader.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=constants_1.CONSTANTS.fileSizeImageLimit,this.gambar.clear(event)}}catch{this.image=null,this.image_url="/assets/img/form/no-image.png",this.gambar.clear(event)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:res=>{this.gs.log("[IMAGE_SUCCESS]",res),this.fg.controls.image.patchValue(res.result.url),this.submitted=!1},error:err=>{var _a;this.gs.log("[IMAGE_ERROR]",err,"error"),this.fg.controls.image.patchValue(null),this.imageErrorText=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info,this.submitted=!1}})}openProject(data){this.gs.log("[PROJECT_LIST_CLICK_PROJECT]",data)}}__name(AdminListProjectTypeComponent,"AdminListProjectTypeComponent"),exports2.AdminListProjectTypeComponent=AdminListProjectTypeComponent,AdminListProjectTypeComponent.\u0275fac=__name(function(t){return new(t||AdminListProjectTypeComponent)(i0.\u0275\u0275directiveInject(i1.FormBuilder),i0.\u0275\u0275directiveInject(i2.BusyService),i0.\u0275\u0275directiveInject(i3.GlobalService),i0.\u0275\u0275directiveInject(i4.DialogService),i0.\u0275\u0275directiveInject(i5.ImgbbService),i0.\u0275\u0275directiveInject(i6.ProjectService))},"AdminListProjectTypeComponent_Factory"),AdminListProjectTypeComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:AdminListProjectTypeComponent,selectors:[["app-admin-list-project-type"]],decls:13,vars:3,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12"],[1,"row"],[3,"formGroup","submit",4,"ngIf"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12","p-3"],[3,"tableDataColumn","tableDataRow","rowClicked","buttonClicked"],[3,"formGroup","submit"],[1,"col-12","sticky-top","bg-bifeldy","pb-1"],[1,"col-12","col-md-5","col-xl-4","p-3"],[1,"w-100","border",3,"src"],["appearance","outline",1,"pt-3","w-100",3,"color"],[1,"w-100",3,"disabled","accept","change"],["gambar",""],["matSuffix",""],[1,"px-3","w-100"],[4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-12","col-md-7","col-xl-8","p-3"],["appearance","outline",1,"p-3","col-12",3,"color"],["matInput","","formControlName","name","placeholder","**_BD","required",""],["align","end"],["matInput","","formControlName","description","placeholder","Edisi Terbatas","required",""],[1,"row","mt-3"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","../",1,"w-100",3,"disabled"],[1,"me-1"],["mat-flat-button","","color","accent","type","submit",1,"w-100",3,"disabled"],[1,"ms-1"],["mat-raised-button","","color","primary","type","button",1,"w-100",3,"disabled","click"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3),i0.\u0275\u0275template(5,AdminListProjectTypeComponent_form_5_Template,60,16,"form",4),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"div",3)(7,"div",5)(8,"h2",6)(9,"b",7),i0.\u0275\u0275text(10,"Hapus Jenis Proyek Yang Ada"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(11,"div",8)(12,"app-material-table",9),i0.\u0275\u0275listener("rowClicked",__name(function($event){return ctx.openProject($event)},"AdminListProjectTypeComponent_Template_app_material_table_rowClicked_12_listener"))("buttonClicked",__name(function($event){return ctx.action($event)},"AdminListProjectTypeComponent_Template_app_material_table_buttonClicked_12_listener")),i0.\u0275\u0275elementEnd()()()()()()),2&rf&&(i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngIf",ctx.fg),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("tableDataColumn",ctx.projectData.column)("tableDataRow",ctx.projectData.row))},"AdminListProjectTypeComponent_Template"),directives:[i7.NotificationsComponent,i8.NgIf,i1.\u0275NgNoValidate,i1.NgControlStatusGroup,i1.FormGroupDirective,i9.MatFormField,i9.MatLabel,i10.FileInputComponent,i11.MatIcon,i9.MatSuffix,i9.MatError,i12.MatButton,i13.MatInput,i1.DefaultValueAccessor,i1.NgControlStatus,i1.FormControlName,i1.RequiredValidator,i9.MatHint,i12.MatAnchor,i14.RouterLinkWithHref,i15.MaterialTableComponent],pipes:[i16.BytesPipe],styles:[""]})},5778:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AdminListPushNotificationComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),constants_1=(__webpack_require__2(70024),__webpack_require__2(26271)),i0=(__webpack_require__2(80855),__webpack_require__2(33070),__webpack_require__2(33e3),__webpack_require__2(55393),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(93075)),i2=tslib_1.__importStar(__webpack_require__2(33e3)),i3=tslib_1.__importStar(__webpack_require__2(55393)),i4=tslib_1.__importStar(__webpack_require__2(80855)),i5=tslib_1.__importStar(__webpack_require__2(33070)),i6=tslib_1.__importStar(__webpack_require__2(8616)),i7=tslib_1.__importStar(__webpack_require__2(69808)),i8=tslib_1.__importStar(__webpack_require__2(67322)),i9=tslib_1.__importStar(__webpack_require__2(77531)),i10=tslib_1.__importStar(__webpack_require__2(25245)),i11=tslib_1.__importStar(__webpack_require__2(74107)),i12=tslib_1.__importStar(__webpack_require__2(90508)),i13=tslib_1.__importStar(__webpack_require__2(70024)),i14=tslib_1.__importStar(__webpack_require__2(86856)),i15=tslib_1.__importStar(__webpack_require__2(47423)),i16=tslib_1.__importStar(__webpack_require__2(74202)),i17=tslib_1.__importStar(__webpack_require__2(30578)),_c0=["kalender"];function AdminListPushNotificationComponent_form_5_div_16_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Judul Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function AdminListPushNotificationComponent_form_5_div_17_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Judul Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function AdminListPushNotificationComponent_form_5_div_25_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Isi Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function AdminListPushNotificationComponent_form_5_div_26_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Isi Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function AdminListPushNotificationComponent_form_5_div_48_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Mohon Pilih Salah Satu"),i0.\u0275\u0275elementEnd())}function AdminListPushNotificationComponent_form_5_div_49_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Tipe Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function AdminListPushNotificationComponent_form_5_div_61_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Mohon Pilih Salah Satu"),i0.\u0275\u0275elementEnd())}function AdminListPushNotificationComponent_form_5_div_62_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Dismissible Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function AdminListPushNotificationComponent_form_5_div_74_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Tanggal Tidak Valid"),i0.\u0275\u0275elementEnd())}function AdminListPushNotificationComponent_form_5_div_75_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r11=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Paling Lama ",ctx_r11.maxNotificationDays," Hari Mendatang")}}function AdminListPushNotificationComponent_form_5_div_76_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Paling Cepat Detik Ini Sekarang"),i0.\u0275\u0275elementEnd())}function AdminListPushNotificationComponent_form_5_div_77_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Tanggal Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function AdminListPushNotificationComponent_form_5_Template(rf,ctx){if(1&rf){const _r15=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",10),i0.\u0275\u0275listener("submit",__name(function(){return i0.\u0275\u0275restoreView(_r15),i0.\u0275\u0275nextContext().onSubmit()},"AdminListPushNotificationComponent_form_5_Template_form_submit_0_listener")),i0.\u0275\u0275elementStart(1,"div",11)(2,"h2",6)(3,"b",7),i0.\u0275\u0275text(4,"Buat Push Notifikasi"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",2)(6,"div",3)(7,"mat-form-field",12)(8,"mat-label"),i0.\u0275\u0275text(9,"Judul"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(10,"input",13),i0.\u0275\u0275elementStart(11,"mat-icon",14),i0.\u0275\u0275text(12,"short_text"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(13,"mat-hint",15),i0.\u0275\u0275text(14,"Teks Tebal Di Kiri"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(15,"mat-error"),i0.\u0275\u0275template(16,AdminListPushNotificationComponent_form_5_div_16_Template,2,0,"div",16),i0.\u0275\u0275template(17,AdminListPushNotificationComponent_form_5_div_17_Template,2,0,"div",16),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(18,"mat-form-field",17)(19,"mat-label"),i0.\u0275\u0275text(20,"Konten / Isi"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(21,"input",18),i0.\u0275\u0275elementStart(22,"mat-icon",14),i0.\u0275\u0275text(23,"wysiwyg"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(24,"mat-error"),i0.\u0275\u0275template(25,AdminListPushNotificationComponent_form_5_div_25_Template,2,0,"div",16),i0.\u0275\u0275template(26,AdminListPushNotificationComponent_form_5_div_26_Template,2,0,"div",16),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(27,"mat-form-field",12)(28,"mat-label"),i0.\u0275\u0275text(29,"Jenis Warna"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(30,"mat-select",19)(31,"mat-option",20),i0.\u0275\u0275text(32,"Merah"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(33,"mat-option",21),i0.\u0275\u0275text(34,"Kuning"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(35,"mat-option",22),i0.\u0275\u0275text(36,"Hijau"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(37,"mat-option",23),i0.\u0275\u0275text(38,"Putih"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(39,"mat-option",24),i0.\u0275\u0275text(40,"Hitam"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(41,"mat-option",25),i0.\u0275\u0275text(42,"Abu Abu"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(43,"mat-option",26),i0.\u0275\u0275text(44,"Biru Tua"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(45,"mat-option",27),i0.\u0275\u0275text(46,"Biru Muda"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(47,"mat-error"),i0.\u0275\u0275template(48,AdminListPushNotificationComponent_form_5_div_48_Template,2,0,"div",16),i0.\u0275\u0275template(49,AdminListPushNotificationComponent_form_5_div_49_Template,2,0,"div",16),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(50,"mat-form-field",12)(51,"mat-label"),i0.\u0275\u0275text(52,"Dapat Ditutup"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(53,"mat-select",28)(54,"mat-option",29),i0.\u0275\u0275text(55,"Ya"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(56,"mat-option",30),i0.\u0275\u0275text(57,"Tidak"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(58,"mat-hint",15),i0.\u0275\u0275text(59,"Tombol X Di Kanan"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(60,"mat-error"),i0.\u0275\u0275template(61,AdminListPushNotificationComponent_form_5_div_61_Template,2,0,"div",16),i0.\u0275\u0275template(62,AdminListPushNotificationComponent_form_5_div_62_Template,2,0,"div",16),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(63,"mat-form-field",12)(64,"mat-label"),i0.\u0275\u0275text(65,"Deadline"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(66,"input",31),i0.\u0275\u0275listener("focus",__name(function(){return i0.\u0275\u0275restoreView(_r15),i0.\u0275\u0275reference(70).open()},"AdminListPushNotificationComponent_form_5_Template_input_focus_66_listener")),i0.\u0275\u0275pipe(67,"date"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(68,"mat-datepicker-toggle",32)(69,"ngx-mat-datetime-picker",33,34),i0.\u0275\u0275elementStart(71,"mat-hint",15),i0.\u0275\u0275text(72,"Muncul Setiap Halaman Di Refresh"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(73,"mat-error"),i0.\u0275\u0275template(74,AdminListPushNotificationComponent_form_5_div_74_Template,2,0,"div",16),i0.\u0275\u0275template(75,AdminListPushNotificationComponent_form_5_div_75_Template,2,1,"div",16),i0.\u0275\u0275template(76,AdminListPushNotificationComponent_form_5_div_76_Template,2,0,"div",16),i0.\u0275\u0275template(77,AdminListPushNotificationComponent_form_5_div_77_Template,2,0,"div",16),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(78,"div",35)(79,"div",2)(80,"div",36),i0.\u0275\u0275element(81,"div",37),i0.\u0275\u0275elementStart(82,"div",38)(83,"a",39)(84,"mat-icon",40),i0.\u0275\u0275text(85,"undo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(86," Batal "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(87,"div",38)(88,"button",41),i0.\u0275\u0275text(89," Simpan "),i0.\u0275\u0275elementStart(90,"mat-icon",42),i0.\u0275\u0275text(91,"save"),i0.\u0275\u0275elementEnd()()()()()()()()}if(2&rf){const _r9=i0.\u0275\u0275reference(70),ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("formGroup",ctx_r0.fg),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(9),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("title").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("title").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("content").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("content").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(21),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("type").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("type").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(11),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("dismissible").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("dismissible").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275propertyInterpolate("placeholder",i0.\u0275\u0275pipeBind2(67,28,ctx_r0.currentDateTime,"d MMMM y, HH:mm:ss")),i0.\u0275\u0275property("ngxMatDatetimePicker",_r9)("min",ctx_r0.currentDateTime)("max",ctx_r0.maxDateTime),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("for",ctx_r0.dateTimePicker),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("showSpinners",!0)("showSeconds",!0)("enableMeridian",!0),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("deadline").hasError("matDatetimePickerParse")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("deadline").hasError("matDatetimePickerMax")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("deadline").hasError("matDatetimePickerMin")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("deadline").hasError("pattern")),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("disabled",ctx_r0.submitted),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r0.submitted||ctx_r0.fg.invalid)}}__name(AdminListPushNotificationComponent_form_5_div_16_Template,"AdminListPushNotificationComponent_form_5_div_16_Template"),__name(AdminListPushNotificationComponent_form_5_div_17_Template,"AdminListPushNotificationComponent_form_5_div_17_Template"),__name(AdminListPushNotificationComponent_form_5_div_25_Template,"AdminListPushNotificationComponent_form_5_div_25_Template"),__name(AdminListPushNotificationComponent_form_5_div_26_Template,"AdminListPushNotificationComponent_form_5_div_26_Template"),__name(AdminListPushNotificationComponent_form_5_div_48_Template,"AdminListPushNotificationComponent_form_5_div_48_Template"),__name(AdminListPushNotificationComponent_form_5_div_49_Template,"AdminListPushNotificationComponent_form_5_div_49_Template"),__name(AdminListPushNotificationComponent_form_5_div_61_Template,"AdminListPushNotificationComponent_form_5_div_61_Template"),__name(AdminListPushNotificationComponent_form_5_div_62_Template,"AdminListPushNotificationComponent_form_5_div_62_Template"),__name(AdminListPushNotificationComponent_form_5_div_74_Template,"AdminListPushNotificationComponent_form_5_div_74_Template"),__name(AdminListPushNotificationComponent_form_5_div_75_Template,"AdminListPushNotificationComponent_form_5_div_75_Template"),__name(AdminListPushNotificationComponent_form_5_div_76_Template,"AdminListPushNotificationComponent_form_5_div_76_Template"),__name(AdminListPushNotificationComponent_form_5_div_77_Template,"AdminListPushNotificationComponent_form_5_div_77_Template"),__name(AdminListPushNotificationComponent_form_5_Template,"AdminListPushNotificationComponent_form_5_Template");class AdminListPushNotificationComponent{constructor(fb,bs,ds,gs,adm){this.fb=fb,this.bs=bs,this.ds=ds,this.gs=gs,this.adm=adm,this.submitted=!1,this.subsNotifGet=null,this.subsNotifCreate=null,this.subsNotifDelete=null,this.subsDialog=null,this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.notifData={column:["Deadline","Judul","Konten","Pemilik","Aksi"],row:[]},this.currentDateTime=new Date,this.maxDateTime=new Date(Date.now()+constants_1.CONSTANTS.timeMaxDaysNotification),this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.gs.isBrowser&&(this.initForm(),this.getNotif())}get maxNotificationDays(){return constants_1.CONSTANTS.timeMaxDaysNotification/24/60/60/1e3}ngOnDestroy(){var _a,_b,_c,_d;null===(_a=this.subsNotifCreate)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsNotifGet)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsNotifDelete)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsDialog)||void 0===_d||_d.unsubscribe()}initForm(){this.fg=this.fb.group({title:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],content:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],type:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],dismissible:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],deadline:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])]})}get dateTimePicker(){return this.kalender}getNotif(){this.bs.busy(),this.subsNotifGet&&(this.subsNotifGet.unsubscribe(),this.bs.idle()),this.subsNotifGet=this.adm.getAllNotif(this.q,this.page,this.row,this.sort,this.order).subscribe({next:res=>{this.gs.log("[NOTIFICATION_LIST_SUCCESS]",res),this.count=res.count;const notifDataRow=[];for(const r of res.results)notifDataRow.push({foto:r.user_.image_url,Deadline:r.deadline,Judul:r.title,Konten:r.content,Pemilik:r.user_.username,Aksi:[{type:"button",icon:"close",name:"Hapus",row:r}]});this.notifData.row=notifDataRow,this.bs.idle()},error:err=>{this.gs.log("[NOTIFICATION_LIST_ERROR]",err,"error"),this.bs.idle()}})}onSubmit(){if(this.bs.busy(),this.submitted=!0,this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsNotifCreate=this.adm.createNotif({type:this.fg.value.type,title:this.fg.value.title,content:this.fg.value.content,dismissible:"1"===this.fg.value.dismissible,deadline:this.fg.value.deadline}).subscribe({next:res=>{this.gs.log("[NOTIFICATION_CREATE_SUCCESS]",res),this.submitted=!1,this.bs.idle();for(const c in this.fg.controls)this.fg.controls[c]&&(this.fg.controls[c].patchValue(null),this.fg.controls[c].updateValueAndValidity(),this.fg.controls[c].setErrors(null),this.fg.controls[c].markAsUntouched(),this.fg.controls[c].markAsPristine());this.getNotif()},error:err=>{this.gs.log("[NOTIFICATION_CREATE_ERROR]",err,"error"),this.submitted=!1,this.bs.idle(),this.getNotif()}})}action(data){this.gs.log("[NOTIFICATION_LIST_CLICK_AKSI]",data),"Hapus"===data.name&&this.deleteNotif(data.row)}deleteNotif(data){var _this=this;return _asyncToGenerator(function*(){_this.gs.log("[NOTIFICATION_LIST_CLICK_DELETE]",data),_this.subsDialog=(yield _this.ds.openKonfirmasiDialog(`Hapus Notif -- '${data.id}' :: '${data.title}'`,"Yakin Akan Menghapus Notifikasi Ini ?")).afterClosed().subscribe({next:re=>{_this.gs.log("[INFO_DIALOG_CLOSED]",re),!0===re?(_this.bs.busy(),_this.subsNotifDelete=_this.adm.deleteNotif(data.id).subscribe({next:res=>{_this.gs.log("[NOTIFICATION_LIST_CLICK_DELETE_SUCCESS]",res),_this.bs.idle(),_this.getNotif()},error:err=>{_this.gs.log("[NOTIFICATION_LIST_CLICK_DELETE_ERROR]",err,"error"),_this.bs.idle(),_this.getNotif()}})):!1===re&&_this.getNotif(),_this.subsDialog.unsubscribe()}})})()}onPaginatorClicked(data){this.gs.log("[NOTIFICATION_LIST_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getNotif()}onServerSideFilter(data){this.gs.log("[NOTIFICATION_LIST_ENTER_FILTER]",data),this.q=data,this.getNotif()}onServerSideOrder(data){this.gs.log("[NOTIFICATION_LIST_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,this.order=data.direction,this.getNotif()}openNotif(data){this.gs.log("[NOTIFICATION_LIST_CLICK_NOTIFICATION]",data)}}__name(AdminListPushNotificationComponent,"AdminListPushNotificationComponent"),exports2.AdminListPushNotificationComponent=AdminListPushNotificationComponent,AdminListPushNotificationComponent.\u0275fac=__name(function(t){return new(t||AdminListPushNotificationComponent)(i0.\u0275\u0275directiveInject(i1.FormBuilder),i0.\u0275\u0275directiveInject(i2.BusyService),i0.\u0275\u0275directiveInject(i3.DialogService),i0.\u0275\u0275directiveInject(i4.GlobalService),i0.\u0275\u0275directiveInject(i5.AdminService))},"AdminListPushNotificationComponent_Factory"),AdminListPushNotificationComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:AdminListPushNotificationComponent,selectors:[["app-admin-list-push-notification"]],viewQuery:__name(function(rf,ctx){if(1&rf&&i0.\u0275\u0275viewQuery(_c0,7),2&rf){let _t;i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.kalender=_t.first)}},"AdminListPushNotificationComponent_Query"),decls:13,vars:5,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12"],[1,"row"],[3,"formGroup","submit",4,"ngIf"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12","p-3"],[3,"tableDataColumn","tableDataRow","count","serverSide","serverSideFilter","buttonClicked","paginatorClicked","serverSideOrder","rowClicked"],[3,"formGroup","submit"],[1,"col-12","sticky-top","bg-bifeldy","pb-1"],["appearance","outline",1,"p-3","col-12","col-md-4",3,"color"],["matInput","","formControlName","title","placeholder","Perhatian!","required",""],["matSuffix",""],["align","end"],[4,"ngIf"],["appearance","outline",1,"p-3","col-12","col-md-8",3,"color"],["matInput","","formControlName","content","placeholder","Akan Diadakan Maintenance Pada ...","required",""],["formControlName","type","placeholder","Class Warna Bootstrap","required",""],["value","danger"],["value","warning"],["value","success"],["value","light"],["value","dark"],["value","secondary"],["value","primary"],["value","info"],["formControlName","dismissible","placeholder","Ya / Tidak","required",""],["value","1"],["value","0"],["matInput","","formControlName","deadline",3,"ngxMatDatetimePicker","placeholder","min","max","focus"],["matSuffix","",3,"for"],[3,"showSpinners","showSeconds","enableMeridian"],["kalender",""],[1,"row","mt-3"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","../",1,"w-100",3,"disabled"],[1,"me-1"],["mat-flat-button","","color","accent","type","submit",1,"w-100",3,"disabled"],[1,"ms-1"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3),i0.\u0275\u0275template(5,AdminListPushNotificationComponent_form_5_Template,92,31,"form",4),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"div",3)(7,"div",5)(8,"h2",6)(9,"b",7),i0.\u0275\u0275text(10,"Deadline Notifikasi"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(11,"div",8)(12,"app-material-table",9),i0.\u0275\u0275listener("serverSideFilter",__name(function($event){return ctx.onServerSideFilter($event)},"AdminListPushNotificationComponent_Template_app_material_table_serverSideFilter_12_listener"))("buttonClicked",__name(function($event){return ctx.action($event)},"AdminListPushNotificationComponent_Template_app_material_table_buttonClicked_12_listener"))("paginatorClicked",__name(function($event){return ctx.onPaginatorClicked($event)},"AdminListPushNotificationComponent_Template_app_material_table_paginatorClicked_12_listener"))("serverSideOrder",__name(function($event){return ctx.onServerSideOrder($event)},"AdminListPushNotificationComponent_Template_app_material_table_serverSideOrder_12_listener"))("rowClicked",__name(function($event){return ctx.openNotif($event)},"AdminListPushNotificationComponent_Template_app_material_table_rowClicked_12_listener")),i0.\u0275\u0275elementEnd()()()()()()),2&rf&&(i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngIf",ctx.fg),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("tableDataColumn",ctx.notifData.column)("tableDataRow",ctx.notifData.row)("count",ctx.count)("serverSide",!0))},"AdminListPushNotificationComponent_Template"),directives:[i6.NotificationsComponent,i7.NgIf,i1.\u0275NgNoValidate,i1.NgControlStatusGroup,i1.FormGroupDirective,i8.MatFormField,i8.MatLabel,i9.MatInput,i1.DefaultValueAccessor,i1.NgControlStatus,i1.FormControlName,i1.RequiredValidator,i10.MatIcon,i8.MatSuffix,i8.MatHint,i8.MatError,i11.MatSelect,i12.MatOption,i13.NgxMatDatetimeInput,i14.MatDatepickerToggle,i13.NgxMatDatetimePicker,i15.MatAnchor,i16.RouterLinkWithHref,i15.MatButton,i17.MaterialTableComponent],pipes:[i7.DatePipe],styles:[""]})},86526:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AdminListUserComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=(__webpack_require__2(74202),__webpack_require__2(15934)),req_res_model_1=__webpack_require__2(14249),i0=(__webpack_require__2(80855),__webpack_require__2(33070),__webpack_require__2(33e3),__webpack_require__2(55393),__webpack_require__2(8058),__webpack_require__2(4137),__webpack_require__2(28381),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(33e3)),i3=tslib_1.__importStar(__webpack_require__2(55393)),i4=tslib_1.__importStar(__webpack_require__2(4137)),i5=tslib_1.__importStar(__webpack_require__2(80855)),i6=tslib_1.__importStar(__webpack_require__2(28381)),i7=tslib_1.__importStar(__webpack_require__2(33070)),i8=tslib_1.__importStar(__webpack_require__2(8058)),i9=tslib_1.__importStar(__webpack_require__2(8616)),i10=tslib_1.__importStar(__webpack_require__2(30578));class AdminListUserComponent{constructor(router,bs,ds,as,gs,ss,adm,user){this.router=router,this.bs=bs,this.ds=ds,this.as=as,this.gs=gs,this.ss=ss,this.adm=adm,this.user=user,this.subsUserGet=null,this.subsUserDelete=null,this.subsPromote=null,this.subsDialog=null,this.subsBannedGet=null,this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.userData={column:["Id","Role","Image","Username","Nama Lengkap","Email","Aksi"],row:[]},this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.gs.isBrowser&&this.getUser()}ngOnDestroy(){var _a,_b,_c,_d,_e;null===(_a=this.subsUserGet)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsUserDelete)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsPromote)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsDialog)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsBannedGet)||void 0===_e||_e.unsubscribe()}getUser(){this.bs.busy(),this.subsUserGet&&(this.subsUserGet.unsubscribe(),this.bs.idle()),this.subsUserGet=this.user.getAllUser(this.q,this.page,this.row,this.sort,this.order).subscribe({next:res=>{this.gs.log("[USER_LIST_SUCCESS]",res),this.count=res.count,this.bs.busy(),this.subsBannedGet=this.adm.getBanned({username:res.results.map(r=>r.username)}).subscribe({next:result=>{var _a,_b,_c,_d;this.gs.log("[BANNED_LIST_SUCCESS]",res);const userDataRow=[];let excludedRole=[];excludedRole=(null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.role)===req_res_model_1.RoleModel.ADMIN?[req_res_model_1.RoleModel.ADMIN]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR];for(const r of res.results)userDataRow.push({Id:r.id,Role:r.role,Image:r.image_url,Username:r.username,Email:r._email,"Nama Lengkap":r.kartu_tanda_penduduk_.nama,banned:Object.keys(result.results[r.username]).length>0,Aksi:[{type:"button",icon:"mail_outline",name:"MAIL",row:r},...Object.keys(result.results[r.username]).length>0||r.username===(null===(_d=null===(_c=this.as.currentUserSubject)||void 0===_c?void 0:_c.value)||void 0===_d?void 0:_d.username)||this.gs.includesOneOf(r.role,excludedRole)?[]:[{type:"button",icon:"lock",name:"BAN",row:r},{type:"button",icon:"handyman",name:req_res_model_1.RoleModel.ADMIN,row:r},{type:"button",icon:"security",name:req_res_model_1.RoleModel.MODERATOR,row:r},{type:"button",icon:"rate_review",name:req_res_model_1.RoleModel.FANSUBBER,row:r},{type:"button",icon:"person",name:req_res_model_1.RoleModel.USER,row:r}]]});this.userData.row=userDataRow,this.bs.idle()},error:err=>{this.gs.log("[BANNED_LIST_ERROR]",err,"error"),this.bs.idle()}}),this.bs.idle()},error:err=>{this.gs.log("[USER_LIST_ERROR]",err,"error"),this.bs.idle()}})}action(data){this.gs.log("[USER_LIST_CLICK_AKSI]",data),"BAN"===data.name?this.ban(data.row):"MAIL"===data.name?this.router.navigate(["/create/mailbox"],{queryParams:{to:`${data.row.username}@${environment_1.environment.domain}`}}):this.proDemote(data.row,data.name)}ban(data){var _a,_b;this.gs.log("[USER_LIST_CLICK_BAN]",data),this.subsDialog=this.ds.openInputDialog({data:{title:`BAN Akun -- '${data.username}'`,input:{reason:{inputLabel:"Alasan",inputPlaceholder:`Manually Banned By ${null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.role}`,inputValue:null,inputRequired:!0}},confirmText:"Ya, BAN Akun",cancelText:"Tidak, Batal"},disableClose:!1}).afterClosed().subscribe({next:re=>{this.gs.log("[INPUT_DIALOG_CLOSED]",re),re?(this.bs.busy(),this.subsUserDelete=this.adm.ban({id:data.id,email:data.email,username:data.username,reason:re.reason}).subscribe({next:res=>{this.gs.log("[USER_LIST_CLICK_BAN_SUCCESS]",res),this.bs.idle(),this.getUser(),this.ss.socketEmitVolatile("force-logout",{username:data.username,reason:re.reason})},error:err=>{this.gs.log("[USER_LIST_CLICK_BAN_ERROR]",err,"error"),this.bs.idle(),this.getUser()}})):this.getUser(),this.subsDialog.unsubscribe()}})}proDemote(data,role){var _this=this;return _asyncToGenerator(function*(){_this.gs.log("[USER_LIST_CLICK_PROMOTE]",data),_this.subsDialog=(yield _this.ds.openKonfirmasiDialog(`Pro/Demosikan Akun -- '${data.username}'`,`Apakah Yakin Ingin Menjadikannya Sebagai ${role} ?`)).afterClosed().subscribe({next:re=>{_this.gs.log("[INFO_DIALOG_CLOSED]",re),!0===re?(_this.bs.busy(),_this.subsPromote=_this.adm.proDemote({id:data.id,role}).subscribe({next:res=>{_this.gs.log("[USER_LIST_CLICK_PROMOTE_SUCCESS]",res),_this.bs.idle(),_this.getUser()},error:err=>{_this.gs.log("[USER_LIST_CLICK_PROMOTE_ERROR]",err,"error"),_this.bs.idle(),_this.getUser()}})):!1===re&&_this.getUser(),_this.subsDialog.unsubscribe()}})})()}onPaginatorClicked(data){this.gs.log("[USER_LIST_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getUser()}onServerSideFilter(data){this.gs.log("[USER_LIST_ENTER_FILTER]",data),this.q=data,this.getUser()}onServerSideOrder(data){this.gs.log("[USER_LIST_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,this.order=data.direction,this.getUser()}openUser(data){this.gs.log("[USER_LIST_CLICK_USER]",data),this.router.navigateByUrl(`/user/${data.Username}`)}}__name(AdminListUserComponent,"AdminListUserComponent"),exports2.AdminListUserComponent=AdminListUserComponent,AdminListUserComponent.\u0275fac=__name(function(t){return new(t||AdminListUserComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.BusyService),i0.\u0275\u0275directiveInject(i3.DialogService),i0.\u0275\u0275directiveInject(i4.AuthService),i0.\u0275\u0275directiveInject(i5.GlobalService),i0.\u0275\u0275directiveInject(i6.StatsServerService),i0.\u0275\u0275directiveInject(i7.AdminService),i0.\u0275\u0275directiveInject(i8.UserService))},"AdminListUserComponent_Factory"),AdminListUserComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:AdminListUserComponent,selectors:[["app-admin-list-user"]],decls:11,vars:4,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12"],[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12","p-3"],[3,"tableDataColumn","tableDataRow","count","serverSide","serverSideFilter","buttonClicked","paginatorClicked","serverSideOrder","rowClicked"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h2",5)(7,"b",6),i0.\u0275\u0275text(8,"Kelola Seluruh Member"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(9,"div",7)(10,"app-material-table",8),i0.\u0275\u0275listener("serverSideFilter",__name(function($event){return ctx.onServerSideFilter($event)},"AdminListUserComponent_Template_app_material_table_serverSideFilter_10_listener"))("buttonClicked",__name(function($event){return ctx.action($event)},"AdminListUserComponent_Template_app_material_table_buttonClicked_10_listener"))("paginatorClicked",__name(function($event){return ctx.onPaginatorClicked($event)},"AdminListUserComponent_Template_app_material_table_paginatorClicked_10_listener"))("serverSideOrder",__name(function($event){return ctx.onServerSideOrder($event)},"AdminListUserComponent_Template_app_material_table_serverSideOrder_10_listener"))("rowClicked",__name(function($event){return ctx.openUser($event)},"AdminListUserComponent_Template_app_material_table_rowClicked_10_listener")),i0.\u0275\u0275elementEnd()()()()()()),2&rf&&(i0.\u0275\u0275advance(10),i0.\u0275\u0275property("tableDataColumn",ctx.userData.column)("tableDataRow",ctx.userData.row)("count",ctx.count)("serverSide",!0))},"AdminListUserComponent_Template"),directives:[i9.NotificationsComponent,i10.MaterialTableComponent],styles:[""]})},33734:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AdminMenuComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(80855),__webpack_require__2(33070),__webpack_require__2(28381),__webpack_require__2(4137),__webpack_require__2(91924),__webpack_require__2(33e3),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(33e3)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(4137)),i4=tslib_1.__importStar(__webpack_require__2(33070)),i5=tslib_1.__importStar(__webpack_require__2(28381)),i6=tslib_1.__importStar(__webpack_require__2(91924)),i7=tslib_1.__importStar(__webpack_require__2(8616)),i8=tslib_1.__importStar(__webpack_require__2(69808)),i9=tslib_1.__importStar(__webpack_require__2(9224)),i10=tslib_1.__importStar(__webpack_require__2(74202)),i11=tslib_1.__importStar(__webpack_require__2(25245)),i12=tslib_1.__importStar(__webpack_require__2(32368)),i13=tslib_1.__importStar(__webpack_require__2(93075)),i14=tslib_1.__importStar(__webpack_require__2(14623)),i15=tslib_1.__importStar(__webpack_require__2(43954)),i16=tslib_1.__importStar(__webpack_require__2(90508)),i17=tslib_1.__importStar(__webpack_require__2(67322)),i18=tslib_1.__importStar(__webpack_require__2(77531));function AdminMenuComponent_div_25_mat_icon_4_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",26),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const m_r3=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(m_r3.icon)}}function AdminMenuComponent_div_25_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",20)(1,"mat-card",21)(2,"mat-card-header",22)(3,"div",23),i0.\u0275\u0275template(4,AdminMenuComponent_div_25_mat_icon_4_Template,2,1,"mat-icon",24),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"mat-card-title",25)(6,"h3",7),i0.\u0275\u0275text(7),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(8,"mat-card-subtitle",7),i0.\u0275\u0275text(9),i0.\u0275\u0275elementEnd()()()()),2&rf){const m_r3=ctx.$implicit;i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate1("routerLink","/admin-mod/",m_r3.url,""),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",m_r3.icon),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(m_r3.name),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(m_r3.deskripsi)}}function AdminMenuComponent_div_26_mat_slide_toggle_7_Template(rf,ctx){if(1&rf){const _r9=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-slide-toggle",28),i0.\u0275\u0275listener("ngModelChange",__name(function($event){const s_r7=i0.\u0275\u0275restoreView(_r9).$implicit,ctx_r8=i0.\u0275\u0275nextContext(2);return(null==ctx_r8.SS.currentServerSubject?null:ctx_r8.SS.currentServerSubject.value)[s_r7.key]=$event},"AdminMenuComponent_div_26_mat_slide_toggle_7_Template_mat_slide_toggle_ngModelChange_0_listener"))("change",__name(function($event){const s_r7=i0.\u0275\u0275restoreView(_r9).$implicit;return i0.\u0275\u0275nextContext(2).toggleSetting(s_r7.key,$event.checked)},"AdminMenuComponent_div_26_mat_slide_toggle_7_Template_mat_slide_toggle_change_0_listener")),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()}if(2&rf){const s_r7=ctx.$implicit,ctx_r6=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("disabled",!(null!=ctx_r6.SS.mySocket&&ctx_r6.SS.mySocket.id))("ngModel",null==ctx_r6.SS.currentServerSubject?null:ctx_r6.SS.currentServerSubject.value[s_r7.key]),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate2(" ",s_r7.key," - ",s_r7.value," ")}}function AdminMenuComponent_div_26_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",14)(1,"div",15)(2,"h2",16)(3,"b",17),i0.\u0275\u0275text(4,"Web & Server Configuration"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",10)(6,"div",11),i0.\u0275\u0275template(7,AdminMenuComponent_div_26_mat_slide_toggle_7_Template,2,4,"mat-slide-toggle",27),i0.\u0275\u0275pipe(8,"keyvalue"),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r1=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind1(8,1,null==ctx_r1.SS.currentServerSubject?null:ctx_r1.SS.currentServerSubject.value))}}function AdminMenuComponent_div_27_mat_grid_tile_11_Template(rf,ctx){if(1&rf){const _r14=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-grid-tile")(1,"mat-list-option",33),i0.\u0275\u0275listener("click",__name(function(){const t_r12=i0.\u0275\u0275restoreView(_r14).$implicit;return i0.\u0275\u0275nextContext(2).toggleCronJob(t_r12)},"AdminMenuComponent_div_27_mat_grid_tile_11_Template_mat_list_option_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",34),i0.\u0275\u0275text(3,"update"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"h4",35),i0.\u0275\u0275text(5),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"p",35),i0.\u0275\u0275text(7),i0.\u0275\u0275pipe(8,"date"),i0.\u0275\u0275element(9,"br"),i0.\u0275\u0275text(10),i0.\u0275\u0275pipe(11,"date"),i0.\u0275\u0275elementEnd()()()}if(2&rf){const t_r12=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275classMapInterpolate1("text-",t_r12.running?"warning":"danger",""),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate(t_r12.id),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate1(" last: ",i0.\u0275\u0275pipeBind2(8,6,t_r12.last_date,"d MMMM y, HH:mm:ss z")," "),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" next: ",i0.\u0275\u0275pipeBind2(11,9,t_r12.next_date,"d MMMM y, HH:mm:ss z")," ")}}function AdminMenuComponent_div_27_Template(rf,ctx){if(1&rf){const _r16=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",14)(1,"div",15)(2,"h2",16)(3,"span",29),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r16),i0.\u0275\u0275nextContext().getAllTaskCronJobs()},"AdminMenuComponent_div_27_Template_span_click_3_listener")),i0.\u0275\u0275text(4," Refresh "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"b",17),i0.\u0275\u0275text(6,"Cron & Task Scheduler"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(7,"div",10)(8,"div",11)(9,"mat-selection-list",30)(10,"mat-grid-list",31),i0.\u0275\u0275template(11,AdminMenuComponent_div_27_mat_grid_tile_11_Template,12,12,"mat-grid-tile",32),i0.\u0275\u0275elementEnd()()()()()}if(2&rf){const ctx_r2=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(9),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("cols",ctx_r2.GS.gridListBreakpoint),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r2.cronJobs)}}__name(AdminMenuComponent_div_25_mat_icon_4_Template,"AdminMenuComponent_div_25_mat_icon_4_Template"),__name(AdminMenuComponent_div_25_Template,"AdminMenuComponent_div_25_Template"),__name(AdminMenuComponent_div_26_mat_slide_toggle_7_Template,"AdminMenuComponent_div_26_mat_slide_toggle_7_Template"),__name(AdminMenuComponent_div_26_Template,"AdminMenuComponent_div_26_Template"),__name(AdminMenuComponent_div_27_mat_grid_tile_11_Template,"AdminMenuComponent_div_27_mat_grid_tile_11_Template"),__name(AdminMenuComponent_div_27_Template,"AdminMenuComponent_div_27_Template");class AdminMenuComponent{constructor(bs,gs,as,adm,ss,tcj){this.bs=bs,this.gs=gs,this.as=as,this.adm=adm,this.ss=ss,this.tcj=tcj,this.cronJobs=[],this.subsCronJobsGet=null,this.subsCronJobsPut=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get AS(){return this.as}get GS(){return this.gs}get ADM(){return this.adm}get SS(){return this.ss}ngOnInit(){this.gs.isBrowser&&this.getAllTaskCronJobs()}ngOnDestroy(){var _a,_b;null===(_a=this.subsCronJobsGet)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsCronJobsPut)||void 0===_b||_b.unsubscribe()}toggleSetting(key,checked){this.ss.socketEmit("server-set",{[key]:checked})}getAllTaskCronJobs(){this.bs.busy(),this.subsCronJobsGet=this.tcj.getAllTaskCronJobs().subscribe({next:res=>{this.gs.log("[TASK_CRON_JOB_LIST_SUCCESS]",res),this.cronJobs=res.results,this.bs.idle()},error:err=>{this.gs.log("[TASK_CRON_JOB_LIST_ERROR]",err,"error"),this.bs.idle()}})}toggleCronJob(t){this.bs.busy(),this.subsCronJobsPut=this.tcj.toggleOnOffTaskCronJob(t.id).subscribe({next:res=>{this.gs.log("[TASK_CRON_JOB_TOGGLE_SUCCESS]",res),this.bs.idle(),this.getAllTaskCronJobs()},error:err=>{this.gs.log("[TASK_CRON_JOB_TOGGLE_ERROR]",err,"error"),this.bs.idle(),this.getAllTaskCronJobs()}})}}__name(AdminMenuComponent,"AdminMenuComponent"),exports2.AdminMenuComponent=AdminMenuComponent,AdminMenuComponent.\u0275fac=__name(function(t){return new(t||AdminMenuComponent)(i0.\u0275\u0275directiveInject(i1.BusyService),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.AuthService),i0.\u0275\u0275directiveInject(i4.AdminService),i0.\u0275\u0275directiveInject(i5.StatsServerService),i0.\u0275\u0275directiveInject(i6.TaskCronJobService))},"AdminMenuComponent_Factory"),AdminMenuComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:AdminMenuComponent,selectors:[["app-admin-menu"]],decls:37,vars:9,consts:[[1,"container-fluid","p-0"],[1,"wrapper"],[1,"bg-bubbles","align-items-center","p-0"],[1,"row","align-items-center","h-100"],[1,"col-12","mx-auto"],[1,"container","text-light"],[1,"mb-1",2,"line-height","normal"],[1,"mb-0"],[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12"],[1,"row","px-3"],["class","col-12 col-md-6 col-xl-3 p-2",4,"ngFor","ngForOf"],["class","row",4,"ngIf"],[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],["appearance","outline",1,"p-3","col-12",3,"color"],["matInput","","rows","10",3,"ngModel","ngModelChange"],[1,"col-12","col-md-6","col-xl-3","p-2"],[1,"gradient-border","rgb-border"],[2,"cursor","pointer",3,"routerLink"],["mat-card-avatar",""],["style","font-size: 300%;",4,"ngIf"],[1,"text-warning","mb-1",2,"cursor","pointer"],[2,"font-size","300%"],["class","my-2 col-12 col-md-6 col-xl-3",3,"disabled","ngModel","ngModelChange","change",4,"ngFor","ngForOf"],[1,"my-2","col-12","col-md-6","col-xl-3",3,"disabled","ngModel","ngModelChange","change"],[1,"float-end","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[1,"p-0",3,"multiple"],["rowHeight","72px",3,"cols"],[4,"ngFor","ngForOf"],[3,"click"],["mat-list-icon","",1,"ps-3"],["matLine",""]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"ul",2),i0.\u0275\u0275element(3,"li")(4,"li")(5,"li")(6,"li")(7,"li")(8,"li")(9,"li")(10,"li")(11,"li")(12,"li"),i0.\u0275\u0275elementStart(13,"div",3)(14,"div",4)(15,"div",5)(16,"h2",6),i0.\u0275\u0275text(17),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(18,"p",7),i0.\u0275\u0275text(19,"Admin & Mod Panel List, Halaman Khusus Orang Dalam ..."),i0.\u0275\u0275elementEnd()()()()()()(),i0.\u0275\u0275element(20,"app-notifications"),i0.\u0275\u0275elementStart(21,"div",8)(22,"div",9)(23,"div",10)(24,"div",11),i0.\u0275\u0275template(25,AdminMenuComponent_div_25_Template,10,4,"div",12),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(26,AdminMenuComponent_div_26_Template,9,3,"div",13),i0.\u0275\u0275template(27,AdminMenuComponent_div_27_Template,12,3,"div",13),i0.\u0275\u0275elementStart(28,"div",14)(29,"div",15)(30,"h2",16)(31,"b",17),i0.\u0275\u0275text(32,"Request & Response Logs"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(33,"mat-form-field",18)(34,"mat-label"),i0.\u0275\u0275text(35,"Request & Response Logs"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(36,"textarea",19),i0.\u0275\u0275listener("ngModelChange",__name(function($event){return ctx.SS.serverLog=$event},"AdminMenuComponent_Template_textarea_ngModelChange_36_listener")),i0.\u0275\u0275elementEnd()()()()()()),2&rf&&(i0.\u0275\u0275advance(1),i0.\u0275\u0275styleProp("background","linear-gradient(to bottom, "+(ctx.GS.isDarkMode?"#673ab7":"#3f51b5")+" 0%, #ee0dfd 100%)"),i0.\u0275\u0275advance(16),i0.\u0275\u0275textInterpolate2(" ",null==ctx.AS.currentUserSubject||null==ctx.AS.currentUserSubject.value?null:ctx.AS.currentUserSubject.value.kartu_tanda_penduduk_.nama," :: ",null==ctx.AS.currentUserSubject||null==ctx.AS.currentUserSubject.value?null:ctx.AS.currentUserSubject.value.role," "),i0.\u0275\u0275advance(8),i0.\u0275\u0275property("ngForOf",ctx.ADM.menuList),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",null==ctx.SS.currentServerSubject?null:ctx.SS.currentServerSubject.value),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.cronJobs.length>0),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngModel",ctx.SS.serverLog))},"AdminMenuComponent_Template"),directives:[i7.NotificationsComponent,i8.NgForOf,i9.MatCard,i9.MatCardHeader,i10.RouterLink,i9.MatCardAvatar,i8.NgIf,i11.MatIcon,i9.MatCardTitle,i9.MatCardSubtitle,i12.MatSlideToggle,i13.NgControlStatus,i13.NgModel,i14.MatSelectionList,i15.MatGridList,i15.MatGridTile,i14.MatListOption,i14.MatListIconCssMatStyler,i16.MatLine,i17.MatFormField,i17.MatLabel,i18.MatInput,i13.DefaultValueAccessor],pipes:[i8.KeyValuePipe,i8.DatePipe],styles:[".wrapper[_ngcontent-%COMP%]{position:sticky;left:0;width:100%;height:128px;overflow:hidden}.bg-bubbles[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:absolute;list-style:none;display:block;width:40px;height:40px;background-color:#ffffff26;bottom:-160px;animation:square 25s infinite;transition-timing-function:linear}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1){left:10%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2){left:20%;width:80px;height:80px;animation-delay:2s;animation-duration:17s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3){left:25%;animation-delay:4s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4){left:40%;width:60px;height:60px;animation-duration:22s;background-color:#ffffff40}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){left:70%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(6){left:80%;width:120px;height:120px;animation-delay:3s;background-color:#fff3}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(7){left:32%;width:160px;height:160px;animation-delay:7s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(8){left:55%;width:20px;height:20px;animation-delay:15s;animation-duration:40s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(9){left:25%;width:10px;height:10px;animation-delay:2s;animation-duration:40s;background-color:#ffffff4d}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(10){left:90%;width:160px;height:160px;animation-delay:11s}@keyframes square{0%{transform:translateY(0)}to{transform:translateY(-512px) rotate(512deg)}}"]})},79511:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AdminModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),datetime_picker_1=__webpack_require__2(70024),angular_editor_1=__webpack_require__2(29345),ngx_material_file_input_1=__webpack_require__2(21385),shared_material_module_1=__webpack_require__2(20210),custom_pipe_module_1=__webpack_require__2(67355),material_table_module_1=__webpack_require__2(617),notifications_module_1=__webpack_require__2(88613),admin_menu_component_1=__webpack_require__2(33734),admin_list_ddl_component_1=__webpack_require__2(74929),admin_list_user_component_1=__webpack_require__2(86526),admin_list_project_type_component_1=__webpack_require__2(17416),admin_list_push_notification_component_1=__webpack_require__2(5778),admin_list_fansub_member_component_1=__webpack_require__2(2717),admin_list_banned_component_1=__webpack_require__2(38678),admin_list_cors_component_1=__webpack_require__2(5907),admin_list_information_dialog_component_1=__webpack_require__2(41831),admin_list_email_component_1=__webpack_require__2(96142),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:admin_menu_component_1.AdminMenuComponent},{path:"banned-list",component:admin_list_banned_component_1.AdminListBannedComponent,data:{title:"Admin - List All Banned User",description:"Kelola Banned User",keywords:"Kelola Banned User"}},{path:"cors-list",component:admin_list_cors_component_1.AdminListCorsComponent,data:{title:"CORS - List All Api Key",description:"Kelola Api Key",keywords:"Kelola Api Key"}},{path:"ddl-list",component:admin_list_ddl_component_1.AdminListDdlComponent,data:{title:"Admin - List All Berkas DDL",description:"Kelola Berkas DDL",keywords:"Kelola Berkas DDL"}},{path:"user-list",component:admin_list_user_component_1.AdminListUserComponent,data:{title:"Admin - List All Users",description:"Atur Seluruh Member",keywords:"BAN & UN-BAN User"}},{path:"project-type",component:admin_list_project_type_component_1.AdminListProjectTypeComponent,data:{title:"Admin - List All Project Type",description:"Atur Kategori Garapan",keywords:"Jenis Proyek Berkas"}},{path:"fansub-member",component:admin_list_fansub_member_component_1.AdminListFansubMemberComponent,data:{title:"Admin - List All Fansub Member",description:"Atur Keanggotaan Fansub",keywords:"Keanggotaan Fansub"}},{path:"push-notification",component:admin_list_push_notification_component_1.AdminListPushNotificationComponent,data:{title:"Admin - Push Notification",description:"Buat Pengumuman Dadakan",keywords:"Push Notification"}},{path:"information",component:admin_list_information_dialog_component_1.AdminListInformationDialogComponent,data:{title:"Admin - List All Information",description:"Atur Informasi Dialog",keywords:"Informations"}},{path:"email",component:admin_list_email_component_1.AdminListEmailComponent,data:{title:"Admin - List All Email",description:"Email Inbox & Outbox",keywords:"Surat Elektronik"}}]);class AdminModule{}__name(AdminModule,"AdminModule"),exports2.AdminModule=AdminModule,AdminModule.\u0275fac=__name(function(t){return new(t||AdminModule)},"AdminModule_Factory"),AdminModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:AdminModule}),AdminModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),shared_material_module_1.SharedMaterialModule,material_table_module_1.MaterialTableModule,notifications_module_1.NotificationsModule,forms_1.FormsModule,forms_1.ReactiveFormsModule,datetime_picker_1.NgxMatNativeDateModule,datetime_picker_1.NgxMatDatetimePickerModule,datetime_picker_1.NgxMatTimepickerModule,ngx_material_file_input_1.MaterialFileInputModule,angular_editor_1.AngularEditorModule,custom_pipe_module_1.CustomPipeModule]]})},41886:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AnimeDetailComponent=void 0;const tslib_1=__webpack_require__2(70655),warna_1=(__webpack_require__2(74202),__webpack_require__2(87623)),i0=(__webpack_require__2(80519),__webpack_require__2(33e3),__webpack_require__2(96382),__webpack_require__2(80855),__webpack_require__2(18745),__webpack_require__2(88020),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(18745)),i5=tslib_1.__importStar(__webpack_require__2(80519)),i6=tslib_1.__importStar(__webpack_require__2(96382)),i7=tslib_1.__importStar(__webpack_require__2(88020)),i8=tslib_1.__importStar(__webpack_require__2(69808)),i9=tslib_1.__importStar(__webpack_require__2(24028)),i10=tslib_1.__importStar(__webpack_require__2(8616)),i11=tslib_1.__importStar(__webpack_require__2(97567)),i12=tslib_1.__importStar(__webpack_require__2(47423)),i13=tslib_1.__importStar(__webpack_require__2(87238)),i14=tslib_1.__importStar(__webpack_require__2(25245)),i15=tslib_1.__importStar(__webpack_require__2(18757));function AnimeDetailComponent_div_0_Template(rf,ctx){if(1&rf){const _r2=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"h1",6)(6,"b"),i0.\u0275\u0275text(7),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(8,"div",7)(9,"app-material-chip",8),i0.\u0275\u0275listener("chipClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().openGenre($event)},"AnimeDetailComponent_div_0_Template_app_material_chip_chipClicked_9_listener")),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(10,"div",9),i0.\u0275\u0275element(11,"app-notifications",10),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(12,"div",7),i0.\u0275\u0275element(13,"app-material-expansion-panel",11),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(14,"div",12)(15,"div",13)(16,"div",14),i0.\u0275\u0275element(17,"img",15),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(18,"div",16)(19,"button",17),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().openSeasonalAnime()},"AnimeDetailComponent_div_0_Template_button_click_19_listener")),i0.\u0275\u0275elementStart(20,"mat-icon",18),i0.\u0275\u0275text(21,"dynamic_feed"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(22),i0.\u0275\u0275elementStart(23,"mat-icon",18),i0.\u0275\u0275text(24,"star_half"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(25),i0.\u0275\u0275element(26,"br"),i0.\u0275\u0275elementStart(27,"mat-icon",18),i0.\u0275\u0275text(28,"date_range"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(29),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(30,"div",16)(31,"button",19),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().openRank()},"AnimeDetailComponent_div_0_Template_button_click_31_listener")),i0.\u0275\u0275elementStart(32,"mat-icon",18),i0.\u0275\u0275text(33,"timeline"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(34),i0.\u0275\u0275elementStart(35,"mat-icon",18),i0.\u0275\u0275text(36,"local_fire_department"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(37),i0.\u0275\u0275element(38,"br"),i0.\u0275\u0275elementStart(39,"mat-icon",18),i0.\u0275\u0275text(40,"label"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(41),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275elementStart(42,"div",9)(43,"div",20)(44,"app-material-tab",21),i0.\u0275\u0275listener("gridClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().openFansub($event)},"AnimeDetailComponent_div_0_Template_app_material_tab_gridClicked_44_listener"))("tableRowClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().openFile($event)},"AnimeDetailComponent_div_0_Template_app_material_tab_tableRowClicked_44_listener"))("paginatorClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().onPaginatorClicked($event)},"AnimeDetailComponent_div_0_Template_app_material_tab_paginatorClicked_44_listener"))("serverSideFilter",__name(function($event){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().onServerSideFilter($event)},"AnimeDetailComponent_div_0_Template_app_material_tab_serverSideFilter_44_listener"))("serverSideOrder",__name(function($event){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().onServerSideOrder($event)},"AnimeDetailComponent_div_0_Template_app_material_tab_serverSideOrder_44_listener"))("gridLoadNextPage",__name(function(){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().onFansubLoadNextPage()},"AnimeDetailComponent_div_0_Template_app_material_tab_gridLoadNextPage_44_listener")),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275element(45,"div",22)(46,"div",23),i0.\u0275\u0275elementEnd()}if(2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(7),i0.\u0275\u0275textInterpolate((null==ctx_r0.animeData.alternative_titles?null:ctx_r0.animeData.alternative_titles.ja)||ctx_r0.animeData.alternative_titles.en||ctx_r0.animeData.title),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("chipData",ctx_r0.chipData),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("panelData",ctx_r0.panelData),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("src",ctx_r0.animeData.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate2("matTooltip","Lihat Semua Anime Pada Musim '",ctx_r0.SEASON," ",ctx_r0.YEAR,"'"),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",ctx_r0.animeData.num_episodes||"?"," Eps \xa0 "),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",ctx_r0.animeData.mean||"?"," "),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate2(" ",ctx_r0.animeData.start_date||"?"," \u30fc ",ctx_r0.animeData.end_date||"?"," "),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1(" ",ctx_r0.animeData.rank||"?"," \xa0 "),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",ctx_r0.animeData.popularity||"?"," "),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate2(" ",(null==ctx_r0.animeData.status?null:ctx_r0.animeData.status.split("_").join(" ").toUpperCase())||"?"," - ",null==ctx_r0.animeData.media_type?null:ctx_r0.animeData.media_type.toUpperCase()," "),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("tabData",ctx_r0.tabData)("count",ctx_r0.count)("serverSide",!0)("gridPageFinished",ctx_r0.fansubPageFinished),i0.\u0275\u0275advance(1),i0.\u0275\u0275styleProp("background-image","url("+ctx_r0.animeData.image_url+")")}}__name(AnimeDetailComponent_div_0_Template,"AnimeDetailComponent_div_0_Template");class AnimeDetailComponent{constructor(router,activatedRoute,gs,bs,pi,anime,fs,wb){this.router=router,this.activatedRoute=activatedRoute,this.gs=gs,this.bs=bs,this.pi=pi,this.anime=anime,this.fs=fs,this.wb=wb,this.malDomain="https://myanimelist.net",this.animeId="",this.animeData=null,this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.fansubAnime=[],this.berkasAnime=[],this.fansubPageFinished=!1,this.fansubPage=1,this.chipData=[],this.panelData=[],this.tabData=[{name:"Daftar Fansub",icon:"closed_caption",type:"grid",data:[]},{name:"Berkas Terkait",icon:"file_copy",type:"table",data:{column:["Proyek","Nama Berkas","Tanggal","Pemilik"],row:[]}}],this.subsAnime=null,this.subsBerkas=null,this.subsFansub=null,this.subsParam=null,this.gs.bannerImg=null,this.gs.bgRepeat=!0,this.gs.sizeContain=!0}get SEASON(){return this.findSeasonNameByMonthNumber(new Date(this.animeData.start_date).getMonth()+1)}get YEAR(){return new Date(this.animeData.start_date).getFullYear()}ngOnDestroy(){var _a,_b,_c,_d;null===(_a=this.subsAnime)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsBerkas)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsFansub)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsParam)||void 0===_d||_d.unsubscribe()}ngOnInit(){this.subsParam=this.activatedRoute.params.subscribe({next:p=>{const paramAnimeId=p.animeId;this.animeId=paramAnimeId.split("-")[0],this.bs.busy(),this.subsAnime=this.anime.getAnime(paramAnimeId).subscribe({next:res=>{var _a,_b;if(this.gs.log("[ANIME_DETAIL_SUCCESS]",res),this.animeData=res.result,this.pi.updatePageMetaData(`${this.animeData.title}`,`${this.animeData.synopsis}`,`${null===(_b=null===(_a=this.animeData.alternative_titles)||void 0===_a?void 0:_a.synonyms)||void 0===_b?void 0:_b.join(", ")}`,this.animeData.image_url),this.bs.idle(),this.gs.isBrowser){const genres=this.animeData.genres;for(const g of genres)this.chipData.push({id:g.id,name:g.name,selected:!0,color:warna_1.WARNA.PINK});this.panelData=[],this.panelData.push({title:"Ringkasan Cerita",icon:"history_edu",text:this.animeData.synopsis,tooltip:"Alih Bahasa Oleh 'Google Translate' \u{1f618}"}),this.fs.initializeFab(null,"/assets/img/logo/mal.png","Buka Di MyAnimeList",`${this.malDomain}/anime/${this.animeId}`,!0),this.getFansubAnime(),this.getBerkasAnime()}},error:err=>{this.gs.log("[ANIME_DETAIL_ERROR]",err,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:"/anime"}})}})}})}openRank(){this.wb.winboxOpenUri(`${this.malDomain}/topanime.php?limit=${this.animeData.rank-1}`)}findSeasonNameByMonthNumber(monthNumber){return this.gs.seasonalWeather.find(sB=>sB.id===Math.ceil(monthNumber/3)).name}openSeasonalAnime(){this.router.navigate(["/anime"],{queryParams:{season:this.SEASON,year:this.YEAR}})}onServerSideFilter(data){this.gs.log("[BERKAS_ANIME_ENTER_FILTER]",data),this.q=data,this.getBerkasAnime()}onServerSideOrder(data){this.gs.log("[BERKAS_ANIME_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,this.order=data.direction,this.getBerkasAnime()}getBerkasAnime(){this.bs.busy(),this.subsBerkas=this.anime.getBerkasAnime([this.animeId],this.q,this.page,this.row,this.sort,this.order).subscribe({next:res=>{this.gs.log("[BERKAS_ANIME_SUCCESS]",res),this.count=res.count,this.berkasAnime=[];for(const r of res.results[this.animeId])this.berkasAnime.push({id:r.id,private:r.private,foto:r.user_.image_url,Pemilik:r.user_.username,Proyek:r.project_type_.name,Tanggal:r.created_at,"Nama Berkas":r.name});this.tabData[1].data.row=this.berkasAnime,this.bs.idle()},error:err=>{this.gs.log("[BERKAS_ANIME_ERROR]",err,"error"),this.bs.idle()}})}getFansubAnime(){this.bs.busy(),this.subsFansub=this.anime.getFansubAnime([this.animeId],this.fansubPage).subscribe({next:res=>{this.gs.log("[FANSUB_ANIME_SUCCESS]",res);for(const r of res.results[this.animeId])this.fansubAnime.push({id:r.id,image:r.image_url,title:r.name,slug:r.slug,description:`${r.slug} :: ${r.active?"Aktif":"Non-Aktif"}`});this.tabData[0].data=this.fansubAnime,res.results[this.animeId].length<=0&&(this.fansubPageFinished=!0),this.bs.idle()},error:err=>{this.gs.log("[FANSUB_ANIME_ERROR]",err,"error"),this.bs.idle()}})}openGenre(data){this.gs.log("[ANIME_DETAIL_CLICK_GENRE]",data),this.wb.winboxOpenUri(`${this.malDomain}/anime/genre/${data.id}`)}openFansub(data){this.gs.log("[ANIME_DETAIL_CLICK_FANSUB]",data),this.router.navigateByUrl(`/fansub/${data.slug}`)}onPaginatorClicked(data){this.gs.log("[ANIME_DETAIL_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getBerkasAnime()}openFile(data){this.gs.log("[ANIME_DETAIL_CLICK_BERKAS]",data),this.router.navigateByUrl(`/berkas/${data.id}`)}onFansubLoadNextPage(){this.fansubPageFinished||(this.fansubPage++,this.getFansubAnime())}}__name(AnimeDetailComponent,"AnimeDetailComponent"),exports2.AnimeDetailComponent=AnimeDetailComponent,AnimeDetailComponent.\u0275fac=__name(function(t){return new(t||AnimeDetailComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.PageInfoService),i0.\u0275\u0275directiveInject(i5.AnimeService),i0.\u0275\u0275directiveInject(i6.FabService),i0.\u0275\u0275directiveInject(i7.WinboxService))},"AnimeDetailComponent_Factory"),AnimeDetailComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:AnimeDetailComponent,selectors:[["app-anime-detail"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"anime-info","align-items-center"],[1,"row","py-3","px-2","d-flex"],[1,"col-md-8","col-xl-9","pt-3","order-2","order-md-1"],[1,"row","py-3","px-0","mt-auto"],[1,"m-0"],[1,"row","py-3"],[3,"chipData","chipClicked"],[1,"row"],[1,"px-0"],[3,"panelData"],[1,"col-md-4","col-xl-3","px-3","order-1","order-md-2"],[1,"row","sticky-top","pt-3"],[1,"col-12","pt-4"],[1,"anime-image",3,"src"],[1,"col-12","text-center","pt-3"],["mat-stroked-button","","color","accent",1,"w-100",3,"matTooltip","click"],[1,"me-1"],["mat-stroked-button","","color","warn","matTooltip","Buka Ranking Di MyAnimeList",1,"w-100",3,"click"],[1,"col-12"],[3,"tabData","count","serverSide","gridPageFinished","gridClicked","tableRowClicked","paginatorClicked","serverSideFilter","serverSideOrder","gridLoadNextPage"],[1,"anime-banner","anime-banner-1","align-items-center"],[1,"anime-banner","anime-banner-2","align-items-center"]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275template(0,AnimeDetailComponent_div_0_Template,47,20,"div",0),2&rf&&i0.\u0275\u0275property("ngIf",ctx.animeData)},"AnimeDetailComponent_Template"),directives:[i8.NgIf,i9.MaterialChipComponent,i10.NotificationsComponent,i11.MaterialExpansionPanelComponent,i12.MatButton,i13.MatTooltip,i14.MatIcon,i15.MaterialTabComponent],styles:[".anime-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;filter:blur(10px) brightness(100%);opacity:.5}.anime-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.anime-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.anime-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}.anime-image[_ngcontent-%COMP%]{width:100%}"]})},71206:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AnimeListComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),material_moment_adapter_1=(__webpack_require__2(74202),__webpack_require__2(53170)),core_1=__webpack_require__2(90508),moment_1=__webpack_require__2(41139),i0=(__webpack_require__2(80855),__webpack_require__2(80519),__webpack_require__2(96382),__webpack_require__2(33e3),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(33e3)),i3=tslib_1.__importStar(__webpack_require__2(80855)),i4=tslib_1.__importStar(__webpack_require__2(96382)),i5=tslib_1.__importStar(__webpack_require__2(80519)),i6=tslib_1.__importStar(__webpack_require__2(8616)),i7=tslib_1.__importStar(__webpack_require__2(93075)),i8=tslib_1.__importStar(__webpack_require__2(67322)),i9=tslib_1.__importStar(__webpack_require__2(74107)),i10=tslib_1.__importStar(__webpack_require__2(90508)),i11=tslib_1.__importStar(__webpack_require__2(77531)),i12=tslib_1.__importStar(__webpack_require__2(86856)),i13=tslib_1.__importStar(__webpack_require__2(25245)),i14=tslib_1.__importStar(__webpack_require__2(876)),i15=tslib_1.__importStar(__webpack_require__2(18757));class AnimeListComponent{constructor(activatedRoute,router,bs,gs,fs,anime){this.activatedRoute=activatedRoute,this.router=router,this.bs=bs,this.gs=gs,this.fs=fs,this.anime=anime,this.currentMonth=null,this.currentYear=null,this.selectedSeasonName=null,this.seasonalAnimeCard=[],this.seasonalAnime=[],this.tabData=[{name:"Info Garapan",icon:"closed_caption",type:"table",data:{column:["Jenis","Poster","Judul Anime","Nama Fansub"],row:[]}}],this.subsQueryParam=null,this.subsSeasonalAnime=null,this.subsFansubAnime=null,this.gs.bannerImg="/assets/img/season/winter.png",this.gs.bgRepeat=!0,this.gs.sizeContain=!0}ngOnDestroy(){var _a,_b,_c;null===(_a=this.subsQueryParam)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsSeasonalAnime)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsFansubAnime)||void 0===_c||_c.unsubscribe()}ngOnInit(){this.fg=new forms_1.FormGroup({currentDate:new forms_1.FormControl({value:(0,moment_1.moment)(),disabled:!0},forms_1.Validators.required)}),this.currentMonth=new Date(this.fg.value.currentDate.format()).getMonth()+1,this.currentYear=new Date(this.fg.value.currentDate.format()).getFullYear(),this.minDate=new Date("1917-01-01"),this.maxDate=new Date(this.currentYear+1,11,31),this.gs.isBrowser&&this.watchUrlRoute()}watchUrlRoute(){this.subsQueryParam=this.activatedRoute.queryParams.subscribe({next:qp=>{this.bs.busy(),this.currentYear=qp.year?Number.isNaN(parseInt(qp.year,10))?this.currentYear:parseInt(qp.year,10):(new Date).getFullYear(),this.fg.controls.currentDate.patchValue((0,moment_1.moment)(new Date(`${this.currentYear}-${this.currentMonth}-01`))),this.currentYear=new Date(this.fg.value.currentDate.format()).getFullYear(),this.selectedSeasonName=qp.season&&this.gs.seasonalWeather.map(s=>s.name).indexOf(qp.season)>=0?qp.season:this.findSeasonNameByMonthNumber(this.currentMonth),this.gs.bannerImg=this.gs.seasonalWeather.find(sB=>sB.name===this.selectedSeasonName).img,this.bs.idle(),this.getSeasonalAnime(qp.year&&qp.season)}})}findSeasonNameByMonthNumber(monthNumber){return this.gs.seasonalWeather.find(sB=>sB.id===Math.ceil(monthNumber/3)).name}chosenYearHandler(normalizedYear,datepicker){const ctrlValue=this.fg.value.currentDate;ctrlValue.year(normalizedYear.year()),this.fg.controls.currentDate.setValue(ctrlValue),this.currentMonth=new Date(this.fg.value.currentDate.format()).getMonth()+1,this.currentYear=new Date(this.fg.value.currentDate.format()).getFullYear(),datepicker.close(),this.changeSeasonalAnime()}getSeasonalAnime(showFab=!1){this.bs.busy(),this.subsSeasonalAnime=this.anime.getSeasonalAnime(this.currentYear,this.selectedSeasonName).subscribe({next:res=>{this.gs.log("[ANIME_SEASONAL_SUCCESS]",res),this.seasonalAnime=res.results.sort((a,b2)=>(b2.mean||0)-(a.mean||0)),showFab&&this.fs.initializeFab("settings_backup_restore",null,"Kembali Ke Musim Sekarang","/anime",!1),this.bs.idle(),this.getFansubAnime()},error:err=>{this.gs.log("[ANIME_SEASONAL_ERROR]",err,"error"),this.bs.idle()}})}getFansubAnime(){this.bs.busy(),this.tabData[0].data.row=[];const seasonalAnimeListId=[];for(const sA of this.seasonalAnime)seasonalAnimeListId.push(sA.id);this.subsFansubAnime=this.anime.getFansubAnime(seasonalAnimeListId).subscribe({next:res=>{var _a;this.gs.log("[FANSUB_ANIME_SUCCESS]",res);let seasonalAnimeWithFansub=[];for(const sA of this.seasonalAnime){sA.namaFansubs=res.results[sA.id];for(const f2 of sA.namaFansubs)f2.selected=!0,f2.type="chip";seasonalAnimeWithFansub.push({id:sA.id,Jenis:`${null===(_a=sA.media_type)||void 0===_a?void 0:_a.toUpperCase()} \u2022 ${sA.mean||0}`,Poster:sA.image_url,"Judul Anime":sA.title,"Nama Fansub":sA.namaFansubs})}seasonalAnimeWithFansub=seasonalAnimeWithFansub.sort((a,b2)=>b2["Nama Fansub"].length-a["Nama Fansub"].length),this.tabData[0].data.row=seasonalAnimeWithFansub,this.seasonalAnimeCard=this.seasonalAnime,this.bs.idle()},error:err=>{this.gs.log("[FANSUB_ANIME_ERROR]",err,"error"),this.bs.idle()}})}changeSeasonalAnime(){this.router.navigate(["/anime"],{queryParams:{season:this.selectedSeasonName,year:this.currentYear}})}openAnimePage(data){this.gs.log("[ANIME_SEASONAL_CLICK_ANIME]",data);let judulAnime=null;try{judulAnime=data.title.replace(/[^a-zA-Z0-9]/g,"-")}catch{judulAnime=data["Judul Anime"].replace(/[^a-zA-Z0-9]/g,"-")}this.router.navigateByUrl(`/anime/${data.id}-${judulAnime}`)}openFansub(data){this.gs.log("[ANIME_SEASONAL_CLICK_FANSUB]",data),this.router.navigateByUrl(`/fansub/${data.slug}`)}}__name(AnimeListComponent,"AnimeListComponent"),exports2.AnimeListComponent=AnimeListComponent,AnimeListComponent.\u0275fac=__name(function(t){return new(t||AnimeListComponent)(i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.BusyService),i0.\u0275\u0275directiveInject(i3.GlobalService),i0.\u0275\u0275directiveInject(i4.FabService),i0.\u0275\u0275directiveInject(i5.AnimeService))},"AnimeListComponent_Factory"),AnimeListComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:AnimeListComponent,selectors:[["app-anime-list"]],features:[i0.\u0275\u0275ProvidersFeature([{provide:core_1.DateAdapter,useClass:material_moment_adapter_1.MomentDateAdapter,deps:[core_1.MAT_DATE_LOCALE,material_moment_adapter_1.MAT_MOMENT_DATE_ADAPTER_OPTIONS]},{provide:core_1.MAT_DATE_FORMATS,useValue:moment_1.MY_FORMATS}])],decls:32,vars:9,consts:[[1,"container"],[1,"row","pb-3"],[1,"col-12"],[1,"row"],[1,"col-12","pb-3","sticky-top","bg-bifeldy",3,"formGroup"],[1,"m-0","border-bottom","border-primary","row"],[1,"pt-3","col-6","col-md-4","col-lg-2",3,"color"],[3,"value","valueChange"],["value","winter"],["value","spring"],["value","summer"],["value","fall"],[1,"pt-3","col-6","col-md-4","col-lg-2"],["matInput","","formControlName","currentDate",3,"matDatepicker","min","max"],["matSuffix","",1,"shiny",3,"for"],["matDatepickerToggleIcon","",1,"animate__animated","animate__swing","animate__infinite","animate__slower"],["startView","multi-year","disabled","false",3,"yearSelected"],["picker",""],[3,"animeDoramaData","cardClicked"],[1,"row","pt-3"],[3,"tabData","chipClicked","tableRowClicked"]],template:__name(function(rf,ctx){if(1&rf){const _r1=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h3",5)(7,"mat-form-field",6)(8,"mat-label"),i0.\u0275\u0275text(9,"Tema Musim"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(10,"mat-select",7),i0.\u0275\u0275listener("valueChange",__name(function($event){return ctx.selectedSeasonName=$event},"AnimeListComponent_Template_mat_select_valueChange_10_listener"))("valueChange",__name(function(){return ctx.changeSeasonalAnime()},"AnimeListComponent_Template_mat_select_valueChange_10_listener")),i0.\u0275\u0275elementStart(11,"mat-option",8),i0.\u0275\u0275text(12,"Winter"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(13,"mat-option",9),i0.\u0275\u0275text(14,"Spring"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(15,"mat-option",10),i0.\u0275\u0275text(16,"Summer"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(17,"mat-option",11),i0.\u0275\u0275text(18,"Fall"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(19,"mat-form-field",12)(20,"mat-label"),i0.\u0275\u0275text(21,"Tahun"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(22,"input",13),i0.\u0275\u0275elementStart(23,"mat-datepicker-toggle",14)(24,"mat-icon",15),i0.\u0275\u0275text(25,"today"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(26,"mat-datepicker",16,17),i0.\u0275\u0275listener("yearSelected",__name(function($event){i0.\u0275\u0275restoreView(_r1);const _r0=i0.\u0275\u0275reference(27);return ctx.chosenYearHandler($event,_r0)},"AnimeListComponent_Template_mat_datepicker_yearSelected_26_listener")),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(28,"div",2)(29,"app-card-anime-dorama",18),i0.\u0275\u0275listener("cardClicked",__name(function($event){return ctx.openAnimePage($event)},"AnimeListComponent_Template_app_card_anime_dorama_cardClicked_29_listener")),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275elementStart(30,"div",19)(31,"app-material-tab",20),i0.\u0275\u0275listener("chipClicked",__name(function($event){return ctx.openFansub($event)},"AnimeListComponent_Template_app_material_tab_chipClicked_31_listener"))("tableRowClicked",__name(function($event){return ctx.openAnimePage($event)},"AnimeListComponent_Template_app_material_tab_tableRowClicked_31_listener")),i0.\u0275\u0275elementEnd()()()}if(2&rf){const _r0=i0.\u0275\u0275reference(27);i0.\u0275\u0275advance(5),i0.\u0275\u0275property("formGroup",ctx.fg),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("value",ctx.selectedSeasonName),i0.\u0275\u0275advance(12),i0.\u0275\u0275property("matDatepicker",_r0)("min",ctx.minDate)("max",ctx.maxDate),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("for",_r0),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("animeDoramaData",ctx.seasonalAnimeCard),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("tabData",ctx.tabData)}},"AnimeListComponent_Template"),directives:[i6.NotificationsComponent,i7.NgControlStatusGroup,i7.FormGroupDirective,i8.MatFormField,i8.MatLabel,i9.MatSelect,i10.MatOption,i11.MatInput,i7.DefaultValueAccessor,i12.MatDatepickerInput,i7.NgControlStatus,i7.FormControlName,i12.MatDatepickerToggle,i8.MatSuffix,i13.MatIcon,i12.MatDatepickerToggleIcon,i12.MatDatepicker,i14.CardAnimeDoramaComponent,i15.MaterialTabComponent],styles:[""]})},16037:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AnimeModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),shared_material_module_1=__webpack_require__2(20210),material_tab_module_1=__webpack_require__2(66436),material_chip_module_1=__webpack_require__2(54946),material_expansion_panel_module_1=__webpack_require__2(6020),card_anime_dorama_module_1=__webpack_require__2(42323),notifications_module_1=__webpack_require__2(88613),anime_list_component_1=__webpack_require__2(71206),anime_detail_component_1=__webpack_require__2(41886),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:anime_list_component_1.AnimeListComponent},{path:":animeId",component:anime_detail_component_1.AnimeDetailComponent}]);class AnimeModule{}__name(AnimeModule,"AnimeModule"),exports2.AnimeModule=AnimeModule,AnimeModule.\u0275fac=__name(function(t){return new(t||AnimeModule)},"AnimeModule_Factory"),AnimeModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:AnimeModule}),AnimeModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),forms_1.FormsModule,forms_1.ReactiveFormsModule,shared_material_module_1.SharedMaterialModule,material_tab_module_1.MaterialTabModule,material_expansion_panel_module_1.MaterialExpansionPanelModule,material_chip_module_1.MaterialChipModule,card_anime_dorama_module_1.CardAnimeDoramaModule,notifications_module_1.NotificationsModule]]})},17944:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BerkasDetailComponent=void 0;const tslib_1=__webpack_require__2(70655),http_1=(__webpack_require__2(74202),__webpack_require__2(40520)),rxjs_1=__webpack_require__2(76477),environment_1=__webpack_require__2(15934),constants_1=__webpack_require__2(26271),i0=(__webpack_require__2(8987),__webpack_require__2(80855),__webpack_require__2(18745),__webpack_require__2(96382),__webpack_require__2(33e3),__webpack_require__2(4137),__webpack_require__2(17232),__webpack_require__2(88020),__webpack_require__2(28381),__webpack_require__2(40197),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(18745)),i5=tslib_1.__importStar(__webpack_require__2(8987)),i6=tslib_1.__importStar(__webpack_require__2(96382)),i7=tslib_1.__importStar(__webpack_require__2(4137)),i8=tslib_1.__importStar(__webpack_require__2(17232)),i9=tslib_1.__importStar(__webpack_require__2(88020)),i10=tslib_1.__importStar(__webpack_require__2(28381)),i11=tslib_1.__importStar(__webpack_require__2(40197)),i12=tslib_1.__importStar(__webpack_require__2(69808)),i13=tslib_1.__importStar(__webpack_require__2(8616)),i14=tslib_1.__importStar(__webpack_require__2(14623)),i15=tslib_1.__importStar(__webpack_require__2(47423)),i16=tslib_1.__importStar(__webpack_require__2(87238)),i17=tslib_1.__importStar(__webpack_require__2(25245)),i18=tslib_1.__importStar(__webpack_require__2(85899)),i19=tslib_1.__importStar(__webpack_require__2(67322)),i20=tslib_1.__importStar(__webpack_require__2(74107)),i21=tslib_1.__importStar(__webpack_require__2(90508)),i22=tslib_1.__importStar(__webpack_require__2(34567)),i23=tslib_1.__importStar(__webpack_require__2(16647)),i24=tslib_1.__importStar(__webpack_require__2(78838)),i25=tslib_1.__importStar(__webpack_require__2(40192)),i26=tslib_1.__importStar(__webpack_require__2(23626));function BerkasDetailComponent_div_0_mat_list_option_37_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option",25),i0.\u0275\u0275element(1,"img",26),i0.\u0275\u0275elementStart(2,"h4"),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275propertyInterpolate2("routerLink","/anime/",ctx_r3.berkasData.anime_.id,"-",ctx_r3.animeName,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",ctx_r3.berkasData.anime_.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(ctx_r3.berkasData.anime_.name)}}function BerkasDetailComponent_div_0_mat_list_option_38_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option",25),i0.\u0275\u0275element(1,"img",26),i0.\u0275\u0275elementStart(2,"h4"),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r4=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275propertyInterpolate1("routerLink","/dorama/",ctx_r4.berkasData.dorama_.slug,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",ctx_r4.berkasData.dorama_.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(ctx_r4.berkasData.dorama_.name)}}function BerkasDetailComponent_div_0_mat_list_option_39_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option",25),i0.\u0275\u0275element(1,"img",26),i0.\u0275\u0275elementStart(2,"h4"),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()),2&rf){const fs_r12=ctx.$implicit;i0.\u0275\u0275propertyInterpolate1("routerLink","/fansub/",fs_r12.slug,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",fs_r12.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(fs_r12.name)}}function BerkasDetailComponent_div_0_div_44_div_6_button_2_Template(rf,ctx){if(1&rf){const _r23=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",39),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r23);const ctx_r22=i0.\u0275\u0275nextContext(4);return ctx_r22.ddl(ctx_r22.berkasData.attachment_.id)},"BerkasDetailComponent_div_0_div_44_div_6_button_2_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",40),i0.\u0275\u0275text(2,"movie"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3),i0.\u0275\u0275pipe(4,"slice"),i0.\u0275\u0275pipe(5,"bytes"),i0.\u0275\u0275elementEnd()}if(2&rf){const ctx_r15=i0.\u0275\u0275nextContext(4);i0.\u0275\u0275propertyInterpolate2("matTooltip","",ctx_r15.lampiran.name," :: ",ctx_r15.lampiran.download_count,"x"),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate3(" ",i0.\u0275\u0275pipeBind3(4,5,ctx_r15.lampiran.name,0,5),".....",ctx_r15.lampiran.ext," (",i0.\u0275\u0275pipeBind1(5,9,ctx_r15.lampiran.size),") ")}}function BerkasDetailComponent_div_0_div_44_div_6_button_3_Template(rf,ctx){if(1&rf){const _r25=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",39),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r25);const ctx_r24=i0.\u0275\u0275nextContext(4);return ctx_r24.cancel_dl(ctx_r24.berkasData.attachment_.id)},"BerkasDetailComponent_div_0_div_44_div_6_button_3_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",40),i0.\u0275\u0275text(2,"close"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3," Batal Unduh "),i0.\u0275\u0275elementEnd()}if(2&rf){const ctx_r16=i0.\u0275\u0275nextContext(4);i0.\u0275\u0275propertyInterpolate2("matTooltip","",ctx_r16.lampiran.name," :: ",ctx_r16.lampiran.download_count,"x")}}function BerkasDetailComponent_div_0_div_44_div_6_button_4_Template(rf,ctx){if(1&rf){const _r27=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",39),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r27);const ctx_r26=i0.\u0275\u0275nextContext(4);return ctx_r26.saveFileAs(ctx_r26.berkasData.attachment_.id)},"BerkasDetailComponent_div_0_div_44_div_6_button_4_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",40),i0.\u0275\u0275text(2,"save"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3),i0.\u0275\u0275pipe(4,"slice"),i0.\u0275\u0275elementEnd()}if(2&rf){const ctx_r17=i0.\u0275\u0275nextContext(4);i0.\u0275\u0275propertyInterpolate2("matTooltip","",ctx_r17.lampiran.name," :: ",ctx_r17.lampiran.download_count,"x"),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate2(" ",i0.\u0275\u0275pipeBind3(4,4,ctx_r17.lampiran.name,0,5),".....",ctx_r17.lampiran.ext," ")}}function BerkasDetailComponent_div_0_div_44_div_6_div_6_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",34),i0.\u0275\u0275text(1),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275text(3),i0.\u0275\u0275element(4,"br")(5,"mat-progress-bar",41),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r18=i0.\u0275\u0275nextContext(4);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate2(" ",ctx_r18.lampiran.percentage>=100?"Selesai Mengunduh ... ":"Sedang Mengunduh ... "," ",ctx_r18.lampiran.totals," Bytes "),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate2(" ",ctx_r18.lampiran.percentage,"% @ ",ctx_r18.lampiran.speed," KB/s "),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("mode",ctx_r18.lampiran.mode)("value",ctx_r18.lampiran.percentage)}}function BerkasDetailComponent_div_0_div_44_div_6_div_7_div_1_Template(rf,ctx){if(1&rf){const _r30=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",43),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r30);const ctx_r29=i0.\u0275\u0275nextContext(5);return ctx_r29.standardDdlVideo(ctx_r29.berkasData.attachment_.id)},"BerkasDetailComponent_div_0_div_44_div_6_div_7_div_1_Template_div_click_0_listener")),i0.\u0275\u0275text(1," Unduhan Macet? "),i0.\u0275\u0275elementStart(2,"i")(3,"u"),i0.\u0275\u0275text(4,"Coba Gunakan Unduhan Biasa~"),i0.\u0275\u0275elementEnd()()()}}function BerkasDetailComponent_div_0_div_44_div_6_div_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",16),i0.\u0275\u0275template(1,BerkasDetailComponent_div_0_div_44_div_6_div_7_div_1_Template,5,0,"div",42),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r19=i0.\u0275\u0275nextContext(4);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r19.lampiran.isDownloading)}}function BerkasDetailComponent_div_0_div_44_div_6_button_8_Template(rf,ctx){if(1&rf){const _r33=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",39),i0.\u0275\u0275listener("click",__name(function(){const s_r31=i0.\u0275\u0275restoreView(_r33).$implicit;return i0.\u0275\u0275nextContext(4).standardDdlSubsFont(s_r31.id)},"BerkasDetailComponent_div_0_div_44_div_6_button_8_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",40),i0.\u0275\u0275text(2,"notes"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3),i0.\u0275\u0275pipe(4,"slice"),i0.\u0275\u0275pipe(5,"bytes"),i0.\u0275\u0275elementEnd()}if(2&rf){const s_r31=ctx.$implicit;i0.\u0275\u0275propertyInterpolate("matTooltip",s_r31.name),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate3(" ",i0.\u0275\u0275pipeBind3(4,4,s_r31.name,0,5),".....",s_r31.ext," (",i0.\u0275\u0275pipeBind1(5,8,s_r31.size),") ")}}function BerkasDetailComponent_div_0_div_44_div_6_button_9_Template(rf,ctx){if(1&rf){const _r36=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",39),i0.\u0275\u0275listener("click",__name(function(){const f_r34=i0.\u0275\u0275restoreView(_r36).$implicit;return i0.\u0275\u0275nextContext(4).standardDdlSubsFont(f_r34.id)},"BerkasDetailComponent_div_0_div_44_div_6_button_9_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",40),i0.\u0275\u0275text(2,"font_download"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3),i0.\u0275\u0275pipe(4,"slice"),i0.\u0275\u0275pipe(5,"bytes"),i0.\u0275\u0275elementEnd()}if(2&rf){const f_r34=ctx.$implicit;i0.\u0275\u0275propertyInterpolate("matTooltip",f_r34.name),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate3(" ",i0.\u0275\u0275pipeBind3(4,4,f_r34.name,0,5),".....",f_r34.ext," (",i0.\u0275\u0275pipeBind1(5,8,f_r34.size),") ")}}function BerkasDetailComponent_div_0_div_44_div_6_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",33)(1,"div",34),i0.\u0275\u0275template(2,BerkasDetailComponent_div_0_div_44_div_6_button_2_Template,6,11,"button",35),i0.\u0275\u0275template(3,BerkasDetailComponent_div_0_div_44_div_6_button_3_Template,4,2,"button",35),i0.\u0275\u0275template(4,BerkasDetailComponent_div_0_div_44_div_6_button_4_Template,5,8,"button",35),i0.\u0275\u0275elementStart(5,"div",16),i0.\u0275\u0275template(6,BerkasDetailComponent_div_0_div_44_div_6_div_6_Template,6,6,"div",36),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(7,BerkasDetailComponent_div_0_div_44_div_6_div_7_Template,2,1,"div",37),i0.\u0275\u0275template(8,BerkasDetailComponent_div_0_div_44_div_6_button_8_Template,6,10,"button",38),i0.\u0275\u0275template(9,BerkasDetailComponent_div_0_div_44_div_6_button_9_Template,6,10,"button",38),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r13=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",!ctx_r13.lampiran.data&&!ctx_r13.lampiran.isDownloading&&!ctx_r13.lampiran.isCompleted),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!ctx_r13.lampiran.data&&ctx_r13.lampiran.isDownloading),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r13.lampiran.data),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r13.lampiran.isDownloading&&!ctx_r13.lampiran.isCompleted),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r13.isHaveDDL&&!ctx_r13.isDiscord),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r13.berkasData.attachment_.subtitles_),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r13.berkasData.attachment_.fonts_)}}function BerkasDetailComponent_div_0_div_44_div_7_Template(rf,ctx){if(1&rf){const _r38=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",33)(1,"div",34)(2,"button",44),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r38),i0.\u0275\u0275nextContext(3).verify()},"BerkasDetailComponent_div_0_div_44_div_7_Template_button_click_2_listener")),i0.\u0275\u0275elementStart(3,"mat-icon",40),i0.\u0275\u0275text(4,"enhanced_encryption"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(5),i0.\u0275\u0275elementEnd()()()}if(2&rf){const ctx_r14=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1(" ",ctx_r14.berkasData.attachment_," ")}}function BerkasDetailComponent_div_0_div_44_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",17)(1,"div",18)(2,"h2",19)(3,"b",20)(4,"i"),i0.\u0275\u0275text(5,"Direct Download"),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275template(6,BerkasDetailComponent_div_0_div_44_div_6_Template,10,7,"div",28),i0.\u0275\u0275template(7,BerkasDetailComponent_div_0_div_44_div_7_Template,6,1,"div",28),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r6=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r6.isHaveDDL),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!ctx_r6.isHaveDDL)}}function BerkasDetailComponent_div_0_div_50_div_1_a_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"a",47)(1,"mat-icon",40),i0.\u0275\u0275text(2,"cloud_download"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()),2&rf){const i_r41=ctx.$implicit;i0.\u0275\u0275propertyInterpolate("href",i_r41.url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",i_r41.name," ")}}function BerkasDetailComponent_div_0_div_50_div_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275template(1,BerkasDetailComponent_div_0_div_50_div_1_a_1_Template,4,2,"a",46),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r39=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r39.berkasData.download_url)}}function BerkasDetailComponent_div_0_div_50_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",33),i0.\u0275\u0275template(1,BerkasDetailComponent_div_0_div_50_div_1_Template,2,1,"div",45),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r7=i0.\u0275\u0275nextContext(2),_r1=i0.\u0275\u0275reference(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",(null==ctx_r7.berkasData.download_url?null:ctx_r7.berkasData.download_url.length)>0)("ngIfElse",_r1)}}function BerkasDetailComponent_div_0_div_51_Template(rf,ctx){if(1&rf){const _r43=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",33)(1,"button",48),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r43),i0.\u0275\u0275nextContext(2).login()},"BerkasDetailComponent_div_0_div_51_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",40),i0.\u0275\u0275text(3,"vpn_key"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Klik Untuk Login "),i0.\u0275\u0275elementEnd()()}}function BerkasDetailComponent_div_0_div_55_button_11_Template(rf,ctx){if(1&rf){const _r50=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",55),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r50),i0.\u0275\u0275nextContext(3).watchDdl()},"BerkasDetailComponent_div_0_div_55_button_11_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",40),i0.\u0275\u0275text(2,"play_arrow"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3," Mulai Streaming Video "),i0.\u0275\u0275elementEnd()}}function BerkasDetailComponent_div_0_div_55_mat_form_field_12_mat_option_4_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-option",59),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const s_r52=ctx.$implicit;i0.\u0275\u0275property("value",s_r52.url),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(s_r52.name)}}function BerkasDetailComponent_div_0_div_55_mat_form_field_12_Template(rf,ctx){if(1&rf){const _r54=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-form-field",56)(1,"mat-label"),i0.\u0275\u0275text(2,"Pilih Subtitle / Takarir (.ASS Saja)"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"mat-select",57),i0.\u0275\u0275listener("valueChange",__name(function($event){i0.\u0275\u0275restoreView(_r54);return i0.\u0275\u0275nextContext(3).selectedSubsUrl=$event},"BerkasDetailComponent_div_0_div_55_mat_form_field_12_Template_mat_select_valueChange_3_listener")),i0.\u0275\u0275template(4,BerkasDetailComponent_div_0_div_55_mat_form_field_12_mat_option_4_Template,2,2,"mat-option",58),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r45=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("value",ctx_r45.selectedSubsUrl),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r45.subtitles)}}function BerkasDetailComponent_div_0_div_55_mat_progress_bar_13_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"mat-progress-bar",60)}function BerkasDetailComponent_div_0_div_55_app_vjs_player_14_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"app-vjs-player",61),2&rf){const ctx_r47=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275property("videoUrl",ctx_r47.ddlVideo)("videoThumb",ctx_r47.videoThumb)("subtitleUrl",ctx_r47.selectedSubsUrl)("subtitleFonts",ctx_r47.ddlFonts)}}function BerkasDetailComponent_div_0_div_55_button_15_Template(rf,ctx){if(1&rf){const _r56=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",55),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r56),i0.\u0275\u0275nextContext(3).verify()},"BerkasDetailComponent_div_0_div_55_button_15_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",40),i0.\u0275\u0275text(2,"enhanced_encryption"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()}if(2&rf){const ctx_r48=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",ctx_r48.berkasData.attachment_," ")}}function BerkasDetailComponent_div_0_div_55_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",17)(1,"div",18)(2,"h2",19)(3,"b",20),i0.\u0275\u0275text(4,"Video Stream (Browser Tertentu T.T)"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",21)(6,"div",49),i0.\u0275\u0275text(7," Dapat Digunakan Sebagai Referensi Untuk Pratinjau Namun Kemungkinan Jenis Huruf Tulisan Gagal Dimuat Sehingga Nantinya Akan Muncul Huruf Dengan Gambar \u{1f533} Misalnya Kanji, Lalu Juga Memungkinkan Terjadinya Gerakan Patah - Patah Jika Browser Tidak Kuat Untuk Render .ASS Subtitle Dengan Efek Yang Terlalu Banyak. "),i0.\u0275\u0275elementStart(8,"a",50),i0.\u0275\u0275text(9," * Browser Firefox Sudah Pasti Tidak Bisa Memutar Video "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(10,"div",34),i0.\u0275\u0275template(11,BerkasDetailComponent_div_0_div_55_button_11_Template,4,0,"button",51),i0.\u0275\u0275template(12,BerkasDetailComponent_div_0_div_55_mat_form_field_12_Template,5,3,"mat-form-field",52),i0.\u0275\u0275template(13,BerkasDetailComponent_div_0_div_55_mat_progress_bar_13_Template,1,0,"mat-progress-bar",53),i0.\u0275\u0275template(14,BerkasDetailComponent_div_0_div_55_app_vjs_player_14_Template,1,4,"app-vjs-player",54),i0.\u0275\u0275template(15,BerkasDetailComponent_div_0_div_55_button_15_Template,4,1,"button",51),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r9=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(11),i0.\u0275\u0275property("ngIf",ctx_r9.isHaveDDL&&!ctx_r9.vjsInit&&!ctx_r9.vjsReady),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r9.subtitles.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r9.isHaveDDL&&ctx_r9.vjsInit&&!ctx_r9.vjsReady),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r9.isHaveDDL&&ctx_r9.vjsInit&&ctx_r9.vjsReady),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!ctx_r9.isHaveDDL)}}function BerkasDetailComponent_div_0_div_56_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",17)(1,"div",18)(2,"h2",19)(3,"b",20),i0.\u0275\u0275text(4,"Deskripsi & Informasi"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",21),i0.\u0275\u0275element(6,"div",62),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r10=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(6),i0.\u0275\u0275property("innerHTML",ctx_r10.berkasData.description,i0.\u0275\u0275sanitizeHtml)}}function BerkasDetailComponent_div_0_div_57_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",17)(1,"div",21),i0.\u0275\u0275element(2,"app-report"),i0.\u0275\u0275elementEnd()())}function BerkasDetailComponent_div_0_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",2)(1,"div",3)(2,"div",4)(3,"ul",5),i0.\u0275\u0275element(4,"li")(5,"li")(6,"li")(7,"li")(8,"li")(9,"li")(10,"li")(11,"li")(12,"li")(13,"li"),i0.\u0275\u0275elementStart(14,"div",6)(15,"div",7)(16,"div",8)(17,"h2",9),i0.\u0275\u0275text(18),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(19,"p",10),i0.\u0275\u0275text(20),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(21,"p",11),i0.\u0275\u0275text(22),i0.\u0275\u0275pipe(23,"date"),i0.\u0275\u0275elementEnd()()()()()()(),i0.\u0275\u0275element(24,"app-notifications"),i0.\u0275\u0275elementStart(25,"div",12)(26,"div",13)(27,"div",14)(28,"div",15)(29,"div",16)(30,"div",17)(31,"div",18)(32,"h2",19)(33,"b",20),i0.\u0275\u0275text(34,"Rujukan"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(35,"div",21)(36,"mat-selection-list",22),i0.\u0275\u0275template(37,BerkasDetailComponent_div_0_mat_list_option_37_Template,4,4,"mat-list-option",23),i0.\u0275\u0275template(38,BerkasDetailComponent_div_0_mat_list_option_38_Template,4,3,"mat-list-option",23),i0.\u0275\u0275template(39,BerkasDetailComponent_div_0_mat_list_option_39_Template,4,3,"mat-list-option",24),i0.\u0275\u0275elementStart(40,"mat-list-option",25),i0.\u0275\u0275element(41,"img",26),i0.\u0275\u0275elementStart(42,"h4"),i0.\u0275\u0275text(43),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275template(44,BerkasDetailComponent_div_0_div_44_Template,8,2,"div",27),i0.\u0275\u0275elementStart(45,"div",17)(46,"div",18)(47,"h2",19)(48,"b",20),i0.\u0275\u0275text(49,"Tautan Unduhan"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(50,BerkasDetailComponent_div_0_div_50_Template,2,2,"div",28),i0.\u0275\u0275template(51,BerkasDetailComponent_div_0_div_51_Template,5,0,"div",28),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(52,"div",29)(53,"div",15)(54,"div",16),i0.\u0275\u0275template(55,BerkasDetailComponent_div_0_div_55_Template,16,5,"div",27),i0.\u0275\u0275template(56,BerkasDetailComponent_div_0_div_56_Template,7,1,"div",27),i0.\u0275\u0275template(57,BerkasDetailComponent_div_0_div_57_Template,3,0,"div",27),i0.\u0275\u0275elementStart(58,"div",17)(59,"div",30)(60,"h2",31)(61,"b",20),i0.\u0275\u0275text(62,"Komentar"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(63,"div",21)(64,"div",32),i0.\u0275\u0275element(65,"app-discussion"),i0.\u0275\u0275elementEnd()()()()()()()()()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(2),i0.\u0275\u0275styleProp("background","url(/assets/img/banner/berkas-detail.png), linear-gradient(to bottom, "+(ctx_r0.GS.isDarkMode?"#673ab7":"#3f51b5")+" 0%, #ee0dfd 100%)"),i0.\u0275\u0275advance(16),i0.\u0275\u0275textInterpolate1(" ",ctx_r0.berkasData.project_type_.name," "),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate2("",ctx_r0.berkasData.view_count,"x Dilihat :: ",ctx_r0.berkasData.like_count," Orang Suka"),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind2(23,19,ctx_r0.berkasData.created_at,"d MMMM y, hh:mm:ss a z")),i0.\u0275\u0275advance(14),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.berkasData.anime_),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.berkasData.dorama_),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r0.berkasData.fansub_),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate1("routerLink","/user/",ctx_r0.berkasData.user_.username,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",ctx_r0.berkasData.user_.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(ctx_r0.berkasData.user_.username),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",(null==ctx_r0.AS.currentUserSubject?null:ctx_r0.AS.currentUserSubject.value)&&ctx_r0.berkasData.attachment_),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",null==ctx_r0.AS.currentUserSubject?null:ctx_r0.AS.currentUserSubject.value),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!(null!=ctx_r0.AS.currentUserSubject&&ctx_r0.AS.currentUserSubject.value)),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",ctx_r0.berkasData.attachment_&&ctx_r0.isStreamable),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.berkasData.description),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",null==ctx_r0.SS.mySocket?null:ctx_r0.SS.mySocket.id)}}function BerkasDetailComponent_ng_template_1_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"app-no-data",63)}__name(BerkasDetailComponent_div_0_mat_list_option_37_Template,"BerkasDetailComponent_div_0_mat_list_option_37_Template"),__name(BerkasDetailComponent_div_0_mat_list_option_38_Template,"BerkasDetailComponent_div_0_mat_list_option_38_Template"),__name(BerkasDetailComponent_div_0_mat_list_option_39_Template,"BerkasDetailComponent_div_0_mat_list_option_39_Template"),__name(BerkasDetailComponent_div_0_div_44_div_6_button_2_Template,"BerkasDetailComponent_div_0_div_44_div_6_button_2_Template"),__name(BerkasDetailComponent_div_0_div_44_div_6_button_3_Template,"BerkasDetailComponent_div_0_div_44_div_6_button_3_Template"),__name(BerkasDetailComponent_div_0_div_44_div_6_button_4_Template,"BerkasDetailComponent_div_0_div_44_div_6_button_4_Template"),__name(BerkasDetailComponent_div_0_div_44_div_6_div_6_Template,"BerkasDetailComponent_div_0_div_44_div_6_div_6_Template"),__name(BerkasDetailComponent_div_0_div_44_div_6_div_7_div_1_Template,"BerkasDetailComponent_div_0_div_44_div_6_div_7_div_1_Template"),__name(BerkasDetailComponent_div_0_div_44_div_6_div_7_Template,"BerkasDetailComponent_div_0_div_44_div_6_div_7_Template"),__name(BerkasDetailComponent_div_0_div_44_div_6_button_8_Template,"BerkasDetailComponent_div_0_div_44_div_6_button_8_Template"),__name(BerkasDetailComponent_div_0_div_44_div_6_button_9_Template,"BerkasDetailComponent_div_0_div_44_div_6_button_9_Template"),__name(BerkasDetailComponent_div_0_div_44_div_6_Template,"BerkasDetailComponent_div_0_div_44_div_6_Template"),__name(BerkasDetailComponent_div_0_div_44_div_7_Template,"BerkasDetailComponent_div_0_div_44_div_7_Template"),__name(BerkasDetailComponent_div_0_div_44_Template,"BerkasDetailComponent_div_0_div_44_Template"),__name(BerkasDetailComponent_div_0_div_50_div_1_a_1_Template,"BerkasDetailComponent_div_0_div_50_div_1_a_1_Template"),__name(BerkasDetailComponent_div_0_div_50_div_1_Template,"BerkasDetailComponent_div_0_div_50_div_1_Template"),__name(BerkasDetailComponent_div_0_div_50_Template,"BerkasDetailComponent_div_0_div_50_Template"),__name(BerkasDetailComponent_div_0_div_51_Template,"BerkasDetailComponent_div_0_div_51_Template"),__name(BerkasDetailComponent_div_0_div_55_button_11_Template,"BerkasDetailComponent_div_0_div_55_button_11_Template"),__name(BerkasDetailComponent_div_0_div_55_mat_form_field_12_mat_option_4_Template,"BerkasDetailComponent_div_0_div_55_mat_form_field_12_mat_option_4_Template"),__name(BerkasDetailComponent_div_0_div_55_mat_form_field_12_Template,"BerkasDetailComponent_div_0_div_55_mat_form_field_12_Template"),__name(BerkasDetailComponent_div_0_div_55_mat_progress_bar_13_Template,"BerkasDetailComponent_div_0_div_55_mat_progress_bar_13_Template"),__name(BerkasDetailComponent_div_0_div_55_app_vjs_player_14_Template,"BerkasDetailComponent_div_0_div_55_app_vjs_player_14_Template"),__name(BerkasDetailComponent_div_0_div_55_button_15_Template,"BerkasDetailComponent_div_0_div_55_button_15_Template"),__name(BerkasDetailComponent_div_0_div_55_Template,"BerkasDetailComponent_div_0_div_55_Template"),__name(BerkasDetailComponent_div_0_div_56_Template,"BerkasDetailComponent_div_0_div_56_Template"),__name(BerkasDetailComponent_div_0_div_57_Template,"BerkasDetailComponent_div_0_div_57_Template"),__name(BerkasDetailComponent_div_0_Template,"BerkasDetailComponent_div_0_Template"),__name(BerkasDetailComponent_ng_template_1_Template,"BerkasDetailComponent_ng_template_1_Template");class BerkasDetailComponent{constructor(router,activatedRoute,gs,bs,pi,berkas,fs,as,dm,wb,ss,dls){this.router=router,this.activatedRoute=activatedRoute,this.gs=gs,this.bs=bs,this.pi=pi,this.berkas=berkas,this.fs=fs,this.as=as,this.dm=dm,this.wb=wb,this.ss=ss,this.dls=dls,this.berkasId="",this.berkasData=null,this.subsBerkas=null,this.subsParam=null,this.subsDialog=null,this.subsSubtitlesFonts=null,this.subtitles=[],this.fonts=[],this.selectedSubsUrl=null,this.vjsInit=!1,this.vjsReady=!1,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}get AS(){return this.as}get SS(){return this.ss}ngOnDestroy(){var _a,_b,_c,_d;null===(_a=this.subsBerkas)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsParam)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsDialog)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsSubtitlesFonts)||void 0===_d||_d.unsubscribe()}ngOnInit(){this.subsParam=this.activatedRoute.params.subscribe({next:p=>{this.berkasId=p.berkasId,this.bs.busy(),this.subsBerkas=this.berkas.getBerkas(this.berkasId).subscribe({next:res=>{this.gs.log("[BERKAS_DETAIL_SUCCESS]",res),this.berkasData=res.result,this.pi.updatePageMetaData(`${this.berkasData.name}`,`${this.berkasData.description}`,`${this.berkasData.name}`,this.berkasData.image_url,this.berkasData.user_.username),this.bs.idle(),this.gs.isBrowser&&this.fs.initializeFab("edit",null,"Ubah Data Berkas",`/berkas/${this.berkasId}/edit`,!1)},error:err=>{this.gs.log("[BERKAS_DETAIL_ERROR]",err,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:"/berkas"}})}})}})}watchDdl(){this.vjsInit=!0,this.setupVjs()}login(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url.split("?")[0]}})}verify(){this.router.navigate(["/verify"],{queryParams:{returnUrl:this.router.url.split("?")[0]}})}get animeName(){return this.berkasData.anime_.name.replace(/[^a-zA-Z0-9]/g,"-")}get lampiran(){return this.dm.getAttachmentDownloadFile(this.berkasData.attachment_)}get ddlVideo(){return this.ddlUrlLinkVideo(this.berkasData.attachment_.id)}get videoThumb(){return this.berkasData.image_url}get ddlFonts(){return this.fonts.length>0?this.fonts:[]}get isHaveDDL(){return!(!("attachment_"in this.berkasData)||!this.berkasData.attachment_)&&"string"!=typeof this.berkasData.attachment_}get isDiscord(){var _a;return this.isHaveDDL&&(null===(_a=this.berkasData.attachment_)||void 0===_a?void 0:_a.discord)}get isStreamable(){var _a;return this.isHaveDDL&&this.gs.includesOneOf(null===(_a=this.berkasData.attachment_)||void 0===_a?void 0:_a.ext,constants_1.CONSTANTS.fileTypeAttachmentStreamable)}ddl(id){var _this=this;return _asyncToGenerator(function*(){_this.isDiscord?_this.dm.startDownload(id,!1):_this.dm.startDownload(id)})()}cancel_dl(id){this.dm.cancelDownload(id)}saveFileAs(id){this.dm.saveFileAs(id)}standardDdlVideo(id){this.wb.winboxOpenUri(this.ddlUrlLinkVideo(id))}ddlUrlLinkVideo(id){return this.isDiscord?`${environment_1.environment.apiUrl}/ddl-seek/${id}?ngsw-bypass=true`:`${environment_1.environment.apiUrl}/attachment/${id}?ngsw-bypass=true`}standardDdlSubsFont(id){this.wb.winboxOpenUri(this.ddlUrlLinkSubsFont(id))}ddlUrlLinkSubsFont(id){return`${environment_1.environment.apiUrl}/attachment/${id}?ngsw-bypass=true`}setupVjs(){if(this.isHaveDDL){const handlers=[],subtitleFiles=[],fontFiles=[];if("subtitles_"in this.berkasData.attachment_&&this.berkasData.attachment_.subtitles_)for(const s of this.berkasData.attachment_.subtitles_){const handler=this.dls.downloadLampiran(s.id).pipe((0,rxjs_1.tap)(evt=>{evt.type===http_1.HttpEventType.Response&&(this.gs.log("[DOWNLOAD_COMPLETED]",evt),subtitleFiles.push({name:s.name,url:URL.createObjectURL(new Blob([evt.body]))}))}));handlers.push(handler)}if("fonts_"in this.berkasData.attachment_&&this.berkasData.attachment_.fonts_)for(const f2 of this.berkasData.attachment_.fonts_){const handler=this.dls.downloadLampiran(f2.id).pipe((0,rxjs_1.tap)(evt=>{evt.type===http_1.HttpEventType.Response&&(this.gs.log("[DOWNLOAD_COMPLETED]",evt),fontFiles.push(URL.createObjectURL(new Blob([evt.body]))))}));handlers.push(handler)}this.subsSubtitlesFonts=(0,rxjs_1.concat)(...handlers).subscribe({next:evt=>{evt.type===http_1.HttpEventType.DownloadProgress&&this.gs.log("[DOWNLOAD_PROGRESS]",evt),evt.type===http_1.HttpEventType.Response&&this.gs.log("[DOWNLOAD_COMPLETED]",evt)},error:err=>{this.gs.log("[DOWNLOAD_ERROR]",err,"error")},complete:()=>{this.subtitles=subtitleFiles,this.fonts=fontFiles,this.vjsReady=!0}})}}}__name(BerkasDetailComponent,"BerkasDetailComponent"),exports2.BerkasDetailComponent=BerkasDetailComponent,BerkasDetailComponent.\u0275fac=__name(function(t){return new(t||BerkasDetailComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.PageInfoService),i0.\u0275\u0275directiveInject(i5.BerkasService),i0.\u0275\u0275directiveInject(i6.FabService),i0.\u0275\u0275directiveInject(i7.AuthService),i0.\u0275\u0275directiveInject(i8.DownloadManagerService),i0.\u0275\u0275directiveInject(i9.WinboxService),i0.\u0275\u0275directiveInject(i10.StatsServerService),i0.\u0275\u0275directiveInject(i11.DdlLampiranService))},"BerkasDetailComponent_Factory"),BerkasDetailComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:BerkasDetailComponent,selectors:[["app-berkas-detail"]],decls:3,vars:1,consts:[["class","p-0 m-0",4,"ngIf"],["noData",""],[1,"p-0","m-0"],[1,"container-fluid","p-0"],[1,"wrapper"],[1,"bg-bubbles","align-items-center","p-0"],[1,"row","align-items-center","h-100"],[1,"col-12","mx-auto"],[1,"container","text-light"],[1,"mb-0",2,"line-height","normal"],[1,"mb-3"],[1,"mb-0"],[1,"container"],[1,"row"],[1,"col-md-5","col-xl-4","p-3"],[1,"row","sticky-top"],[1,"col"],[1,"row","py-3"],[1,"col-12","pt-3","sticky-top","bg-bifeldy"],[1,"border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12"],[3,"multiple"],[3,"routerLink",4,"ngIf"],[3,"routerLink",4,"ngFor","ngForOf"],[3,"routerLink"],["matListAvatar","",1,"ms-3",2,"border-radius","0",3,"src"],["class","row py-3",4,"ngIf"],["class","col-12 text-center",4,"ngIf"],[1,"col-md-7","col-xl-8","p-3","sticky-top"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"p-3"],[1,"col-12","text-center"],[1,"px-3"],["class","m-1 w-100","mat-stroked-button","","color","accent",3,"matTooltip","click",4,"ngIf"],["class","px-3",4,"ngIf"],["class","col",4,"ngIf"],["class","m-1 w-100","mat-stroked-button","","color","accent",3,"matTooltip","click",4,"ngFor","ngForOf"],["mat-stroked-button","","color","accent",1,"m-1","w-100",3,"matTooltip","click"],[1,"me-1"],["color","accent",3,"mode","value"],["class","px-3 text-danger","style","cursor: pointer;",3,"click",4,"ngIf"],[1,"px-3","text-danger",2,"cursor","pointer",3,"click"],["mat-stroked-button","","color","accent","matTooltip","Direct Download Link Berkas",1,"m-1",3,"click"],[4,"ngIf","ngIfElse"],["class","m-1","target","_blank","mat-stroked-button","","color","accent",3,"href",4,"ngFor","ngForOf"],["target","_blank","mat-stroked-button","","color","accent",1,"m-1",3,"href"],["mat-stroked-button","","color","accent",1,"m-1",3,"click"],[1,"py-2","px-3"],["href","https://bugzilla.mozilla.org/show_bug.cgi?id=1422891",1,"text-warning","text-decoration-none"],["class","w-100","mat-stroked-button","","color","accent",3,"click",4,"ngIf"],["appearance","outline","class","pt-3 col-12",3,"color",4,"ngIf"],["color","accent","mode","buffer",4,"ngIf"],[3,"videoUrl","videoThumb","subtitleUrl","subtitleFonts",4,"ngIf"],["mat-stroked-button","","color","accent",1,"w-100",3,"click"],["appearance","outline",1,"pt-3","col-12",3,"color"],["placeholder","Pilih Salah Satu",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent","mode","buffer"],[3,"videoUrl","videoThumb","subtitleUrl","subtitleFonts"],[1,"py-2","px-3",2,"white-space","pre-line !important",3,"innerHTML"],[1,"col-12","p-3"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275template(0,BerkasDetailComponent_div_0_Template,66,22,"div",0),i0.\u0275\u0275template(1,BerkasDetailComponent_ng_template_1_Template,1,0,"ng-template",null,1,i0.\u0275\u0275templateRefExtractor)),2&rf&&i0.\u0275\u0275property("ngIf",ctx.berkasData)},"BerkasDetailComponent_Template"),directives:[i12.NgIf,i13.NotificationsComponent,i14.MatSelectionList,i14.MatListOption,i1.RouterLink,i14.MatListAvatarCssMatStyler,i12.NgForOf,i15.MatButton,i16.MatTooltip,i17.MatIcon,i18.MatProgressBar,i15.MatAnchor,i19.MatFormField,i19.MatLabel,i20.MatSelect,i21.MatOption,i22.VjsPlayerComponent,i23.ReportComponent,i24.DiscussionComponent,i25.NoDataComponent],pipes:[i12.DatePipe,i12.SlicePipe,i26.BytesPipe],styles:[".wrapper[_ngcontent-%COMP%]{position:sticky;left:0;width:100%;height:128px;overflow:hidden;background-size:168px,auto!important;background-repeat:no-repeat,repeat!important;background-position-x:100%,0%!important}.bg-bubbles[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:absolute;list-style:none;display:block;width:40px;height:40px;background-color:#ffffff26;bottom:-160px;animation:square 25s infinite;transition-timing-function:linear}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1){left:10%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2){left:20%;width:80px;height:80px;animation-delay:2s;animation-duration:17s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3){left:25%;animation-delay:4s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4){left:40%;width:60px;height:60px;animation-duration:22s;background-color:#ffffff40}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){left:70%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(6){left:80%;width:120px;height:120px;animation-delay:3s;background-color:#fff3}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(7){left:32%;width:160px;height:160px;animation-delay:7s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(8){left:55%;width:20px;height:20px;animation-delay:15s;animation-duration:40s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(9){left:25%;width:10px;height:10px;animation-delay:2s;animation-duration:40s;background-color:#ffffff4d}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(10){left:90%;width:160px;height:160px;animation-delay:11s}@keyframes square{0%{transform:translateY(0)}to{transform:translateY(-512px) rotate(512deg)}}"]})},26473:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BerkasEditComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),operators_1=(__webpack_require__2(74202),__webpack_require__2(83292)),constants_1=__webpack_require__2(26271),i0=(__webpack_require__2(80855),__webpack_require__2(18745),__webpack_require__2(80519),__webpack_require__2(18439),__webpack_require__2(65679),__webpack_require__2(76781),__webpack_require__2(8987),__webpack_require__2(4137),__webpack_require__2(33e3),__webpack_require__2(67902),__webpack_require__2(96925),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(93075)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(18745)),i5=tslib_1.__importStar(__webpack_require__2(80519)),i6=tslib_1.__importStar(__webpack_require__2(18439)),i7=tslib_1.__importStar(__webpack_require__2(65679)),i8=tslib_1.__importStar(__webpack_require__2(76781)),i9=tslib_1.__importStar(__webpack_require__2(8987)),i10=tslib_1.__importStar(__webpack_require__2(96925)),i11=tslib_1.__importStar(__webpack_require__2(67902)),i12=tslib_1.__importStar(__webpack_require__2(80855)),i13=tslib_1.__importStar(__webpack_require__2(4137)),i14=tslib_1.__importStar(__webpack_require__2(8616)),i15=tslib_1.__importStar(__webpack_require__2(69808)),i16=tslib_1.__importStar(__webpack_require__2(67322)),i17=tslib_1.__importStar(__webpack_require__2(21385)),i18=tslib_1.__importStar(__webpack_require__2(25245)),i19=tslib_1.__importStar(__webpack_require__2(47423)),i20=tslib_1.__importStar(__webpack_require__2(32368)),i21=tslib_1.__importStar(__webpack_require__2(87238)),i22=tslib_1.__importStar(__webpack_require__2(74107)),i23=tslib_1.__importStar(__webpack_require__2(90508)),i24=tslib_1.__importStar(__webpack_require__2(77531)),i25=tslib_1.__importStar(__webpack_require__2(91079)),i26=tslib_1.__importStar(__webpack_require__2(85899)),i27=tslib_1.__importStar(__webpack_require__2(4834)),i28=tslib_1.__importStar(__webpack_require__2(29345)),i29=tslib_1.__importStar(__webpack_require__2(14623)),i30=tslib_1.__importStar(__webpack_require__2(23626));function BerkasEditComponent_form_4_div_21_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r2=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Ukuran Upload Melebihi Batas ",i0.\u0275\u0275pipeBind1(2,1,ctx_r2.imageLimitExceeded)," !")}}function BerkasEditComponent_form_4_div_22_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r3.imageErrorText)}}function BerkasEditComponent_form_4_div_23_Template(rf,ctx){if(1&rf){const _r18=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",27)(1,"button",29),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r18),i0.\u0275\u0275nextContext(2).submitImage()},"BerkasEditComponent_form_4_div_23_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",30),i0.\u0275\u0275text(3,"add_photo_alternate"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Unggah "),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r4=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",ctx_r4.submitted)}}function BerkasEditComponent_form_4_div_24_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",24)(1,"mat-slide-toggle",44),i0.\u0275\u0275text(2," Jadikan Private, Akses Hanya Dengan URL "),i0.\u0275\u0275elementEnd()())}function BerkasEditComponent_form_4_mat_option_29_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-option",45),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const p_r19=ctx.$implicit;i0.\u0275\u0275property("value",p_r19.id),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(p_r19.name)}}function BerkasEditComponent_form_4_div_31_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Jenis Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_div_32_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Jenis Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_mat_form_field_33_mat_option_8_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-option",51),i0.\u0275\u0275element(1,"mat-progress-bar",52),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_mat_form_field_33_ng_container_9_mat_option_1_Template(rf,ctx){if(1&rf){const _r29=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-option",54),i0.\u0275\u0275listener("click",__name(function(){const a_r27=i0.\u0275\u0275restoreView(_r29).$implicit;return i0.\u0275\u0275nextContext(4).filterAnimeSelected(a_r27)},"BerkasEditComponent_form_4_mat_form_field_33_ng_container_9_mat_option_1_Template_mat_option_click_0_listener")),i0.\u0275\u0275element(1,"img",55),i0.\u0275\u0275elementStart(2,"span",43),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()}if(2&rf){const a_r27=ctx.$implicit;i0.\u0275\u0275property("value",a_r27.id),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",a_r27.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate3("",a_r27.id," :: ",null==a_r27.media_type?null:a_r27.media_type.toUpperCase()," :: ",a_r27.title,"")}}function BerkasEditComponent_form_4_mat_form_field_33_ng_container_9_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementContainerStart(0),i0.\u0275\u0275template(1,BerkasEditComponent_form_4_mat_form_field_33_ng_container_9_mat_option_1_Template,4,5,"mat-option",53),i0.\u0275\u0275elementContainerEnd()),2&rf){const ctx_r22=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r22.filteredAnime)}}function BerkasEditComponent_form_4_mat_form_field_33_small_10_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"small",56),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r23=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r23.fg.get("anime_name").value)}}function BerkasEditComponent_form_4_mat_form_field_33_div_12_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"ID Anime Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_mat_form_field_33_div_13_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"ID Anime Hanya Boleh Angka"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_mat_form_field_33_Template(rf,ctx){if(1&rf){const _r31=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-form-field",46)(1,"mat-label"),i0.\u0275\u0275text(2,"Anime Terkait"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"input",47),i0.\u0275\u0275listener("keyup",__name(function(){return i0.\u0275\u0275restoreView(_r31),i0.\u0275\u0275nextContext(2).resetSelectedAnime()},"BerkasEditComponent_form_4_mat_form_field_33_Template_input_keyup_3_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"mat-icon",15),i0.\u0275\u0275text(5,"short_text"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"mat-autocomplete",null,48),i0.\u0275\u0275template(8,BerkasEditComponent_form_4_mat_form_field_33_mat_option_8_Template,2,0,"mat-option",49),i0.\u0275\u0275template(9,BerkasEditComponent_form_4_mat_form_field_33_ng_container_9_Template,2,1,"ng-container",17),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(10,BerkasEditComponent_form_4_mat_form_field_33_small_10_Template,2,1,"small",50),i0.\u0275\u0275elementStart(11,"mat-error"),i0.\u0275\u0275template(12,BerkasEditComponent_form_4_mat_form_field_33_div_12_Template,2,0,"div",17),i0.\u0275\u0275template(13,BerkasEditComponent_form_4_mat_form_field_33_div_13_Template,2,0,"div",17),i0.\u0275\u0275elementEnd()()}if(2&rf){const _r20=i0.\u0275\u0275reference(7),ctx_r9=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("matAutocomplete",_r20),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngIf",ctx_r9.isLoading),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!ctx_r9.isLoading),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r9.fg.get("anime_name").value),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r9.fg.get("anime_id").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r9.fg.get("anime_id").hasError("pattern"))}}function BerkasEditComponent_form_4_mat_form_field_34_mat_option_8_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-option",51),i0.\u0275\u0275element(1,"mat-progress-bar",52),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_mat_form_field_34_ng_container_9_mat_option_1_Template(rf,ctx){if(1&rf){const _r41=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-option",54),i0.\u0275\u0275listener("click",__name(function(){const d_r39=i0.\u0275\u0275restoreView(_r41).$implicit;return i0.\u0275\u0275nextContext(4).filterDoramaSelected(d_r39)},"BerkasEditComponent_form_4_mat_form_field_34_ng_container_9_mat_option_1_Template_mat_option_click_0_listener")),i0.\u0275\u0275element(1,"img",55),i0.\u0275\u0275elementStart(2,"span",43),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()}if(2&rf){const d_r39=ctx.$implicit;i0.\u0275\u0275property("value",d_r39.mdl_id),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",d_r39.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate2("",d_r39.mdl_id," :: ",d_r39.title,"")}}function BerkasEditComponent_form_4_mat_form_field_34_ng_container_9_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementContainerStart(0),i0.\u0275\u0275template(1,BerkasEditComponent_form_4_mat_form_field_34_ng_container_9_mat_option_1_Template,4,4,"mat-option",53),i0.\u0275\u0275elementContainerEnd()),2&rf){const ctx_r34=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r34.filteredDorama)}}function BerkasEditComponent_form_4_mat_form_field_34_small_10_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"small",56),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r35=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r35.fg.get("dorama_name").value)}}function BerkasEditComponent_form_4_mat_form_field_34_div_12_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"ID Dorama Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_mat_form_field_34_div_13_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"ID Dorama Hanya Boleh Angka"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_mat_form_field_34_Template(rf,ctx){if(1&rf){const _r43=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-form-field",46)(1,"mat-label"),i0.\u0275\u0275text(2,"Dorama Terkait"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"input",57),i0.\u0275\u0275listener("keyup",__name(function(){return i0.\u0275\u0275restoreView(_r43),i0.\u0275\u0275nextContext(2).resetSelectedDorama()},"BerkasEditComponent_form_4_mat_form_field_34_Template_input_keyup_3_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"mat-icon",15),i0.\u0275\u0275text(5,"short_text"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"mat-autocomplete",null,58),i0.\u0275\u0275template(8,BerkasEditComponent_form_4_mat_form_field_34_mat_option_8_Template,2,0,"mat-option",49),i0.\u0275\u0275template(9,BerkasEditComponent_form_4_mat_form_field_34_ng_container_9_Template,2,1,"ng-container",17),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(10,BerkasEditComponent_form_4_mat_form_field_34_small_10_Template,2,1,"small",50),i0.\u0275\u0275elementStart(11,"mat-error"),i0.\u0275\u0275template(12,BerkasEditComponent_form_4_mat_form_field_34_div_12_Template,2,0,"div",17),i0.\u0275\u0275template(13,BerkasEditComponent_form_4_mat_form_field_34_div_13_Template,2,0,"div",17),i0.\u0275\u0275elementEnd()()}if(2&rf){const _r32=i0.\u0275\u0275reference(7),ctx_r10=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("matAutocomplete",_r32),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngIf",ctx_r10.isLoading),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!ctx_r10.isLoading),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r10.fg.get("dorama_name").value),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r10.fg.get("dorama_id").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r10.fg.get("dorama_id").hasError("pattern"))}}function BerkasEditComponent_form_4_div_38_mat_icon_6_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",15),i0.\u0275\u0275text(1,"short_text"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_div_38_button_7_Template(rf,ctx){if(1&rf){const _r55=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",64),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r55);const i_r45=i0.\u0275\u0275nextContext().index;return i0.\u0275\u0275nextContext(2).removeFansub(i_r45)},"BerkasEditComponent_form_4_div_38_button_7_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"close"),i0.\u0275\u0275elementEnd()()}}function BerkasEditComponent_form_4_div_38_mat_option_10_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-option",51),i0.\u0275\u0275element(1,"mat-progress-bar",52),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_div_38_ng_container_11_mat_option_1_Template(rf,ctx){if(1&rf){const _r59=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-option",54),i0.\u0275\u0275listener("click",__name(function(){const f_r57=i0.\u0275\u0275restoreView(_r59).$implicit,i_r45=i0.\u0275\u0275nextContext(2).index;return i0.\u0275\u0275nextContext(2).filterFansubSelected(f_r57,i_r45)},"BerkasEditComponent_form_4_div_38_ng_container_11_mat_option_1_Template_mat_option_click_0_listener")),i0.\u0275\u0275element(1,"img",65),i0.\u0275\u0275elementStart(2,"span",43),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()}if(2&rf){const f_r57=ctx.$implicit;i0.\u0275\u0275property("value",f_r57.id),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",f_r57.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate2("",f_r57.slug," :: ",f_r57.name,"")}}function BerkasEditComponent_form_4_div_38_ng_container_11_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementContainerStart(0),i0.\u0275\u0275template(1,BerkasEditComponent_form_4_div_38_ng_container_11_mat_option_1_Template,4,4,"mat-option",53),i0.\u0275\u0275elementContainerEnd()),2&rf){const ctx_r50=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r50.filteredFansub)}}function BerkasEditComponent_form_4_div_38_div_15_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"ID Fansub Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_div_38_div_16_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"ID Fansub Hanya Boleh Angka"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_div_38_Template(rf,ctx){if(1&rf){const _r62=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div")(1,"div",59)(2,"mat-form-field",46)(3,"mat-label"),i0.\u0275\u0275text(4,"Fansub Terkait"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"input",60),i0.\u0275\u0275listener("keyup",__name(function(){const i_r45=i0.\u0275\u0275restoreView(_r62).index;return i0.\u0275\u0275nextContext(2).resetSelectedFansub(i_r45)},"BerkasEditComponent_form_4_div_38_Template_input_keyup_5_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(6,BerkasEditComponent_form_4_div_38_mat_icon_6_Template,2,0,"mat-icon",61),i0.\u0275\u0275template(7,BerkasEditComponent_form_4_div_38_button_7_Template,3,0,"button",62),i0.\u0275\u0275elementStart(8,"mat-autocomplete",null,63),i0.\u0275\u0275template(10,BerkasEditComponent_form_4_div_38_mat_option_10_Template,2,0,"mat-option",49),i0.\u0275\u0275template(11,BerkasEditComponent_form_4_div_38_ng_container_11_Template,2,1,"ng-container",17),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(12,"small",56),i0.\u0275\u0275text(13),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(14,"mat-error"),i0.\u0275\u0275template(15,BerkasEditComponent_form_4_div_38_div_15_Template,2,0,"div",17),i0.\u0275\u0275template(16,BerkasEditComponent_form_4_div_38_div_16_Template,2,0,"div",17),i0.\u0275\u0275elementEnd()()()()}if(2&rf){const fs_r44=ctx.$implicit,i_r45=ctx.index,_r48=i0.\u0275\u0275reference(9),ctx_r11=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("formGroupName",i_r45),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("matAutocomplete",_r48),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",fs_r44.get("fansub_id").value||0===i_r45),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!fs_r44.get("fansub_id").value&&i_r45>0),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngIf",ctx_r11.isLoading),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!ctx_r11.isLoading),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(fs_r44.get("fansub_name").value),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",fs_r44.get("fansub_id").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",fs_r44.get("fansub_id").hasError("pattern"))}}function BerkasEditComponent_form_4_div_56_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Nama Berkas Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_div_57_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Nama Berkas Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_div_59_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",9)(1,"div",24),i0.\u0275\u0275element(2,"mat-divider"),i0.\u0275\u0275elementEnd()())}function BerkasEditComponent_form_4_div_60_p_12_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"p",70),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r63=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r63.attachmentFontSubtitle.join(", ").toLowerCase())}}function BerkasEditComponent_form_4_div_60_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",9)(1,"mat-list")(2,"div",66),i0.\u0275\u0275text(3,"Berkas yang terlampir tidak boleh diubah."),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"mat-list-item")(5,"mat-icon",67),i0.\u0275\u0275text(6,"attach_file"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"div",68),i0.\u0275\u0275text(8),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(9,"div",68),i0.\u0275\u0275text(10),i0.\u0275\u0275pipe(11,"bytes"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(12,BerkasEditComponent_form_4_div_60_p_12_Template,2,1,"p",69),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r15=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(8),i0.\u0275\u0275textInterpolate2("",ctx_r15.attachmentFile.name,".",ctx_r15.attachmentFile.ext,""),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind1(11,4,ctx_r15.attachmentFile.size)),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r15.attachmentFontSubtitle.length>0)}}function BerkasEditComponent_form_4_div_65_mat_icon_6_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",15),i0.\u0275\u0275text(1,"web"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_div_65_button_7_Template(rf,ctx){if(1&rf){const _r76=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",64),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r76);const i_r65=i0.\u0275\u0275nextContext().index;return i0.\u0275\u0275nextContext(2).removeDownloadLink(i_r65)},"BerkasEditComponent_form_4_div_65_button_7_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"close"),i0.\u0275\u0275elementEnd()()}}function BerkasEditComponent_form_4_div_65_div_9_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Web Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_div_65_div_10_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Web Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_div_65_mat_icon_15_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",15),i0.\u0275\u0275text(1,"link"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_div_65_button_16_Template(rf,ctx){if(1&rf){const _r79=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",64),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r79);const i_r65=i0.\u0275\u0275nextContext().index;return i0.\u0275\u0275nextContext(2).removeDownloadLink(i_r65)},"BerkasEditComponent_form_4_div_65_button_16_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"close"),i0.\u0275\u0275elementEnd()()}}function BerkasEditComponent_form_4_div_65_div_18_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Tautan Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_div_65_div_19_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Tautan Link Tidak Valid"),i0.\u0275\u0275elementEnd())}function BerkasEditComponent_form_4_div_65_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div")(1,"div",71)(2,"mat-form-field",72)(3,"mat-label"),i0.\u0275\u0275text(4,"Nama Website"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(5,"input",73),i0.\u0275\u0275template(6,BerkasEditComponent_form_4_div_65_mat_icon_6_Template,2,0,"mat-icon",61),i0.\u0275\u0275template(7,BerkasEditComponent_form_4_div_65_button_7_Template,3,0,"button",62),i0.\u0275\u0275elementStart(8,"mat-error"),i0.\u0275\u0275template(9,BerkasEditComponent_form_4_div_65_div_9_Template,2,0,"div",17),i0.\u0275\u0275template(10,BerkasEditComponent_form_4_div_65_div_10_Template,2,0,"div",17),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(11,"mat-form-field",74)(12,"mat-label"),i0.\u0275\u0275text(13,"Tautan Link"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(14,"input",75),i0.\u0275\u0275template(15,BerkasEditComponent_form_4_div_65_mat_icon_15_Template,2,0,"mat-icon",61),i0.\u0275\u0275template(16,BerkasEditComponent_form_4_div_65_button_16_Template,3,0,"button",62),i0.\u0275\u0275elementStart(17,"mat-error"),i0.\u0275\u0275template(18,BerkasEditComponent_form_4_div_65_div_18_Template,2,0,"div",17),i0.\u0275\u0275template(19,BerkasEditComponent_form_4_div_65_div_19_Template,2,0,"div",17),i0.\u0275\u0275elementEnd()()()()),2&rf){const dl_r64=ctx.$implicit,i_r65=ctx.index,ctx_r16=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("formGroupName",i_r65),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",dl_r64.get("name").value||0===i_r65&&!(null!=ctx_r16.AS.currentUserSubject&&null!=ctx_r16.AS.currentUserSubject.value&&ctx_r16.AS.currentUserSubject.value.verified)),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!dl_r64.get("name").value&&(i_r65>0||(null==ctx_r16.AS.currentUserSubject||null==ctx_r16.AS.currentUserSubject.value?null:ctx_r16.AS.currentUserSubject.value.verified))),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",dl_r64.get("name").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",dl_r64.get("name").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",dl_r64.get("url").value||0===i_r65&&!(null!=ctx_r16.AS.currentUserSubject&&null!=ctx_r16.AS.currentUserSubject.value&&ctx_r16.AS.currentUserSubject.value.verified)),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!dl_r64.get("url").value&&(i_r65>0||(null==ctx_r16.AS.currentUserSubject||null==ctx_r16.AS.currentUserSubject.value?null:ctx_r16.AS.currentUserSubject.value.verified))),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",dl_r64.get("url").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",dl_r64.get("url").hasError("pattern"))}}function BerkasEditComponent_form_4_Template(rf,ctx){if(1&rf){const _r81=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",4),i0.\u0275\u0275listener("submit",__name(function(){return i0.\u0275\u0275restoreView(_r81),i0.\u0275\u0275nextContext().onSubmit()},"BerkasEditComponent_form_4_Template_form_submit_0_listener")),i0.\u0275\u0275elementStart(1,"div",5)(2,"div",6)(3,"h2",7)(4,"b",8),i0.\u0275\u0275text(5,"Ubah Berkas"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(6,"div",2)(7,"div",9)(8,"div",10)(9,"div",9)(10,"div",2),i0.\u0275\u0275element(11,"img",11),i0.\u0275\u0275elementStart(12,"mat-form-field",12)(13,"mat-label"),i0.\u0275\u0275text(14,"Gambar Untuk Embed SEO"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(15,"ngx-mat-file-input",13,14),i0.\u0275\u0275listener("change",__name(function($event){i0.\u0275\u0275restoreView(_r81);const _r1=i0.\u0275\u0275reference(16);return i0.\u0275\u0275nextContext().uploadImage($event,_r1)},"BerkasEditComponent_form_4_Template_ngx_mat_file_input_change_15_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(17,"mat-icon",15),i0.\u0275\u0275text(18,"image"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(19,"mat-error",16)(20,"small"),i0.\u0275\u0275template(21,BerkasEditComponent_form_4_div_21_Template,3,3,"div",17),i0.\u0275\u0275template(22,BerkasEditComponent_form_4_div_22_Template,2,1,"div",17),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(23,BerkasEditComponent_form_4_div_23_Template,5,1,"div",18),i0.\u0275\u0275template(24,BerkasEditComponent_form_4_div_24_Template,3,0,"div",19),i0.\u0275\u0275elementStart(25,"mat-form-field",20)(26,"mat-label"),i0.\u0275\u0275text(27,"Jenis Proyek"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(28,"mat-select",21),i0.\u0275\u0275template(29,BerkasEditComponent_form_4_mat_option_29_Template,2,2,"mat-option",22),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(30,"mat-error"),i0.\u0275\u0275template(31,BerkasEditComponent_form_4_div_31_Template,2,0,"div",17),i0.\u0275\u0275template(32,BerkasEditComponent_form_4_div_32_Template,2,0,"div",17),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(33,BerkasEditComponent_form_4_mat_form_field_33_Template,14,7,"mat-form-field",23),i0.\u0275\u0275template(34,BerkasEditComponent_form_4_mat_form_field_34_Template,14,7,"mat-form-field",23),i0.\u0275\u0275elementStart(35,"div",24),i0.\u0275\u0275element(36,"mat-divider"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(37,"div",25),i0.\u0275\u0275template(38,BerkasEditComponent_form_4_div_38_Template,17,10,"div",26),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(39,"div",27)(40,"div",9),i0.\u0275\u0275element(41,"div",28),i0.\u0275\u0275elementStart(42,"div",28)(43,"button",29),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r81),i0.\u0275\u0275nextContext().addFansub()},"BerkasEditComponent_form_4_Template_button_click_43_listener")),i0.\u0275\u0275elementStart(44,"mat-icon",30),i0.\u0275\u0275text(45,"add"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(46," Tambah Fansub "),i0.\u0275\u0275elementEnd()()()()()(),i0.\u0275\u0275elementStart(47,"div",31)(48,"div",9)(49,"mat-form-field",20)(50,"mat-label"),i0.\u0275\u0275text(51,"Nama Berkas"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(52,"input",32),i0.\u0275\u0275elementStart(53,"mat-icon",15),i0.\u0275\u0275text(54,"wysiwyg"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(55,"mat-error"),i0.\u0275\u0275template(56,BerkasEditComponent_form_4_div_56_Template,2,0,"div",17),i0.\u0275\u0275template(57,BerkasEditComponent_form_4_div_57_Template,2,0,"div",17),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275element(58,"angular-editor",33),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(59,BerkasEditComponent_form_4_div_59_Template,3,0,"div",34),i0.\u0275\u0275template(60,BerkasEditComponent_form_4_div_60_Template,13,6,"div",34),i0.\u0275\u0275elementStart(61,"div",9)(62,"div",24),i0.\u0275\u0275element(63,"mat-divider"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(64,"div",35),i0.\u0275\u0275template(65,BerkasEditComponent_form_4_div_65_Template,20,11,"div",26),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(66,"div",36),i0.\u0275\u0275element(67,"div",28)(68,"div",28)(69,"div",28),i0.\u0275\u0275elementStart(70,"div",28)(71,"button",29),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r81),i0.\u0275\u0275nextContext().addDownloadLink()},"BerkasEditComponent_form_4_Template_button_click_71_listener")),i0.\u0275\u0275elementStart(72,"mat-icon",30),i0.\u0275\u0275text(73,"add"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(74," Tambah URL "),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275elementStart(75,"div",9)(76,"div",37)(77,"div",38),i0.\u0275\u0275element(78,"div",39),i0.\u0275\u0275elementStart(79,"div",40)(80,"a",41)(81,"mat-icon",30),i0.\u0275\u0275text(82,"undo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(83," Batal "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(84,"div",40)(85,"button",42),i0.\u0275\u0275text(86," Simpan "),i0.\u0275\u0275elementStart(87,"mat-icon",43),i0.\u0275\u0275text(88,"save"),i0.\u0275\u0275elementEnd()()()()()()()()()}if(2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("formGroup",ctx_r0.fg),i0.\u0275\u0275advance(11),i0.\u0275\u0275property("src",ctx_r0.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("disabled",ctx_r0.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r0.imageLimitExceeded),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.imageErrorText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.image&&!ctx_r0.fg.value.image),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",null==ctx_r0.AS.currentUserSubject||null==ctx_r0.AS.currentUserSubject.value?null:ctx_r0.AS.currentUserSubject.value.verified),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngForOf",ctx_r0.projectList),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("projectType_id").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("projectType_id").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.berkasType.toLowerCase().includes("anime")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.berkasType.toLowerCase().includes("dorama")),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngForOf",ctx_r0.getFansubControl.controls),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r0.submitted),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("name").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("name").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("config",ctx_r0.GS.angularEditorConfig),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.attachmentFile),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.attachmentFile),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngForOf",ctx_r0.getDownloadUrlControl.controls),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("disabled",ctx_r0.submitted),i0.\u0275\u0275advance(9),i0.\u0275\u0275property("disabled",ctx_r0.submitted),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r0.submitted||ctx_r0.fg.invalid||!ctx_r0.fg.dirty)}}__name(BerkasEditComponent_form_4_div_21_Template,"BerkasEditComponent_form_4_div_21_Template"),__name(BerkasEditComponent_form_4_div_22_Template,"BerkasEditComponent_form_4_div_22_Template"),__name(BerkasEditComponent_form_4_div_23_Template,"BerkasEditComponent_form_4_div_23_Template"),__name(BerkasEditComponent_form_4_div_24_Template,"BerkasEditComponent_form_4_div_24_Template"),__name(BerkasEditComponent_form_4_mat_option_29_Template,"BerkasEditComponent_form_4_mat_option_29_Template"),__name(BerkasEditComponent_form_4_div_31_Template,"BerkasEditComponent_form_4_div_31_Template"),__name(BerkasEditComponent_form_4_div_32_Template,"BerkasEditComponent_form_4_div_32_Template"),__name(BerkasEditComponent_form_4_mat_form_field_33_mat_option_8_Template,"BerkasEditComponent_form_4_mat_form_field_33_mat_option_8_Template"),__name(BerkasEditComponent_form_4_mat_form_field_33_ng_container_9_mat_option_1_Template,"BerkasEditComponent_form_4_mat_form_field_33_ng_container_9_mat_option_1_Template"),__name(BerkasEditComponent_form_4_mat_form_field_33_ng_container_9_Template,"BerkasEditComponent_form_4_mat_form_field_33_ng_container_9_Template"),__name(BerkasEditComponent_form_4_mat_form_field_33_small_10_Template,"BerkasEditComponent_form_4_mat_form_field_33_small_10_Template"),__name(BerkasEditComponent_form_4_mat_form_field_33_div_12_Template,"BerkasEditComponent_form_4_mat_form_field_33_div_12_Template"),__name(BerkasEditComponent_form_4_mat_form_field_33_div_13_Template,"BerkasEditComponent_form_4_mat_form_field_33_div_13_Template"),__name(BerkasEditComponent_form_4_mat_form_field_33_Template,"BerkasEditComponent_form_4_mat_form_field_33_Template"),__name(BerkasEditComponent_form_4_mat_form_field_34_mat_option_8_Template,"BerkasEditComponent_form_4_mat_form_field_34_mat_option_8_Template"),__name(BerkasEditComponent_form_4_mat_form_field_34_ng_container_9_mat_option_1_Template,"BerkasEditComponent_form_4_mat_form_field_34_ng_container_9_mat_option_1_Template"),__name(BerkasEditComponent_form_4_mat_form_field_34_ng_container_9_Template,"BerkasEditComponent_form_4_mat_form_field_34_ng_container_9_Template"),__name(BerkasEditComponent_form_4_mat_form_field_34_small_10_Template,"BerkasEditComponent_form_4_mat_form_field_34_small_10_Template"),__name(BerkasEditComponent_form_4_mat_form_field_34_div_12_Template,"BerkasEditComponent_form_4_mat_form_field_34_div_12_Template"),__name(BerkasEditComponent_form_4_mat_form_field_34_div_13_Template,"BerkasEditComponent_form_4_mat_form_field_34_div_13_Template"),__name(BerkasEditComponent_form_4_mat_form_field_34_Template,"BerkasEditComponent_form_4_mat_form_field_34_Template"),__name(BerkasEditComponent_form_4_div_38_mat_icon_6_Template,"BerkasEditComponent_form_4_div_38_mat_icon_6_Template"),__name(BerkasEditComponent_form_4_div_38_button_7_Template,"BerkasEditComponent_form_4_div_38_button_7_Template"),__name(BerkasEditComponent_form_4_div_38_mat_option_10_Template,"BerkasEditComponent_form_4_div_38_mat_option_10_Template"),__name(BerkasEditComponent_form_4_div_38_ng_container_11_mat_option_1_Template,"BerkasEditComponent_form_4_div_38_ng_container_11_mat_option_1_Template"),__name(BerkasEditComponent_form_4_div_38_ng_container_11_Template,"BerkasEditComponent_form_4_div_38_ng_container_11_Template"),__name(BerkasEditComponent_form_4_div_38_div_15_Template,"BerkasEditComponent_form_4_div_38_div_15_Template"),__name(BerkasEditComponent_form_4_div_38_div_16_Template,"BerkasEditComponent_form_4_div_38_div_16_Template"),__name(BerkasEditComponent_form_4_div_38_Template,"BerkasEditComponent_form_4_div_38_Template"),__name(BerkasEditComponent_form_4_div_56_Template,"BerkasEditComponent_form_4_div_56_Template"),__name(BerkasEditComponent_form_4_div_57_Template,"BerkasEditComponent_form_4_div_57_Template"),__name(BerkasEditComponent_form_4_div_59_Template,"BerkasEditComponent_form_4_div_59_Template"),__name(BerkasEditComponent_form_4_div_60_p_12_Template,"BerkasEditComponent_form_4_div_60_p_12_Template"),__name(BerkasEditComponent_form_4_div_60_Template,"BerkasEditComponent_form_4_div_60_Template"),__name(BerkasEditComponent_form_4_div_65_mat_icon_6_Template,"BerkasEditComponent_form_4_div_65_mat_icon_6_Template"),__name(BerkasEditComponent_form_4_div_65_button_7_Template,"BerkasEditComponent_form_4_div_65_button_7_Template"),__name(BerkasEditComponent_form_4_div_65_div_9_Template,"BerkasEditComponent_form_4_div_65_div_9_Template"),__name(BerkasEditComponent_form_4_div_65_div_10_Template,"BerkasEditComponent_form_4_div_65_div_10_Template"),__name(BerkasEditComponent_form_4_div_65_mat_icon_15_Template,"BerkasEditComponent_form_4_div_65_mat_icon_15_Template"),__name(BerkasEditComponent_form_4_div_65_button_16_Template,"BerkasEditComponent_form_4_div_65_button_16_Template"),__name(BerkasEditComponent_form_4_div_65_div_18_Template,"BerkasEditComponent_form_4_div_65_div_18_Template"),__name(BerkasEditComponent_form_4_div_65_div_19_Template,"BerkasEditComponent_form_4_div_65_div_19_Template"),__name(BerkasEditComponent_form_4_div_65_Template,"BerkasEditComponent_form_4_div_65_Template"),__name(BerkasEditComponent_form_4_Template,"BerkasEditComponent_form_4_Template");class BerkasEditComponent{constructor(router,activatedRoute,fb,bs,pi,anime,dorama,project,fansub,berkas,toast,imgbb,gs,as){this.router=router,this.activatedRoute=activatedRoute,this.fb=fb,this.bs=bs,this.pi=pi,this.anime=anime,this.dorama=dorama,this.project=project,this.fansub=fansub,this.berkas=berkas,this.toast=toast,this.imgbb=imgbb,this.gs=gs,this.as=as,this.berkasId="",this.submitted=!1,this.projectList=[],this.uploadToast=null,this.gambar=null,this.image=null,this.imageErrorText=null,this.imageLimitExceeded=null,this.image_url="/assets/img/form/no-image.png",this.image_url_original=null,this.filteredAnime=[],this.filteredDorama=[],this.filteredFansub=[],this.isLoading=!1,this.animeCheckOrAddResponse=null,this.doramaCheckOrAddResponse=null,this.attachmentFile=null,this.attachmentFontSubtitle=[],this.subsProject=null,this.subsFansub=null,this.subsAnimeDetail=null,this.subsDoramaDetail=null,this.subsProjectDetail=null,this.subsFansubDetail=[],this.subsAnimeNew=null,this.subsDoramaNew=null,this.subsImgbb=null,this.subsBerkasDetail=null,this.subsBerkasUpdate=null,this.berkasType="",this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get AS(){return this.as}get GS(){return this.gs}ngOnInit(){this.pi.updatePageMetaData("Berkas - Ubah Berkas","Halaman Pembaharuan Data Berkas","Ubah Berkas"),this.gs.isBrowser&&(this.berkasId=this.activatedRoute.snapshot.paramMap.get("berkasId"),this.bs.busy(),this.subsBerkasDetail=this.berkas.getBerkas(this.berkasId).subscribe({next:res=>{var _a,_b,_c,_d;this.gs.log("[BERKAS_DETAIL_SUCCESS]",res),this.bs.idle(),(null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.id)!==res.result.user_.id&&(this.toast.warning("Berkas Ini Bukan Milikmu","Whoops!",null,!0),this.router.navigateByUrl(`/berkas/${res.result.id}`)),!(null===(_d=null===(_c=this.as.currentUserSubject)||void 0===_c?void 0:_c.value)||void 0===_d?void 0:_d.verified)&&res.result.attachment_?("string"==typeof res.result.attachment_?this.toast.warning(res.result.attachment_,"Whoops!",null,!0):this.toast.warning("Harap Verifikasi Akun Terlebih Dahulu","Whoops!",null,!0),this.router.navigateByUrl(`/berkas/${res.result.id}`)):(this.loadProjectList(),this.initForm(res.result))},error:err=>{this.gs.log("[BERKAS_DETAIL_ERROR]",err,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:`/berkas/${this.berkasId}`}})}}))}ngOnDestroy(){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k;this.uploadToast&&this.toast.remove(this.uploadToast.toastId),null===(_a=this.subsProject)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsFansub)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsAnimeDetail)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsDoramaDetail)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsProjectDetail)||void 0===_e||_e.unsubscribe();for(const sFD of this.subsFansubDetail)null==sFD||sFD.unsubscribe();null===(_f=this.subsAnimeNew)||void 0===_f||_f.unsubscribe(),null===(_g=this.subsDoramaNew)||void 0===_g||_g.unsubscribe(),null===(_h=this.subsImgbb)||void 0===_h||_h.unsubscribe(),null===(_j=this.subsBerkasDetail)||void 0===_j||_j.unsubscribe(),null===(_k=this.subsBerkasUpdate)||void 0===_k||_k.unsubscribe()}loadProjectList(){this.bs.busy(),this.subsProject=this.project.getProject().subscribe({next:res=>{this.gs.log("[PROJECT_LOAD_SUCCESS]",res),this.projectList=res.results,this.bs.idle()},error:err=>{this.gs.log("[PROJECT_LOAD_ERROR]",err,"error"),this.bs.idle()}})}hasRequiredField(abstractControl,controlName){return abstractControl.get(controlName).hasValidator(forms_1.Validators.required)}initForm(data){var _a,_b,_c,_d;"attachment_"in data&&data.attachment_&&(this.attachmentFile=data.attachment_,data.attachment_.fonts_&&data.attachment_.fonts_.forEach(f2=>{this.attachmentFontSubtitle.push(`${f2.name}.${f2.ext}`)}),data.attachment_.subtitles_&&data.attachment_.subtitles_.forEach(s=>{this.attachmentFontSubtitle.push(`${s.name}.${s.ext}`)})),this.fg=this.fb.group({name:[data.name,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],description:[data.description,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],projectType_id:[data.project_type_.id,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],anime_id:[(null===(_a=data.anime_)||void 0===_a?void 0:_a.id)||null,forms_1.Validators.compose([])],anime_name:[(null===(_b=data.anime_)||void 0===_b?void 0:_b.name)||null,forms_1.Validators.compose([])],dorama_id:[(null===(_c=data.dorama_)||void 0===_c?void 0:_c.id)||null,forms_1.Validators.compose([])],dorama_name:[(null===(_d=data.dorama_)||void 0===_d?void 0:_d.name)||null,forms_1.Validators.compose([])],fansub_list:this.fb.array([]),image:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],download_url:this.fb.array([]),private:[data.private,forms_1.Validators.compose([forms_1.Validators.required])]}),this.image_url=data.image_url,this.image_url_original=this.image_url,this.berkasType=data.project_type_.name,data.anime_&&(this.fg.controls.anime_id.setValidators([forms_1.Validators.required,forms_1.Validators.pattern(/^\d+$/)]),this.fg.controls.anime_name.setValidators([forms_1.Validators.required])),data.dorama_&&(this.fg.controls.dorama_id.setValidators([forms_1.Validators.required,forms_1.Validators.pattern(/^\d+$/)]),this.fg.controls.dorama_name.setValidators([forms_1.Validators.required]));for(const dl of data.download_url)this.addDownloadLink(dl);for(const fs of data.fansub_)this.addFansub(fs);this.subsAnimeDetail=this.fg.get("anime_id").valueChanges.pipe((0,operators_1.debounceTime)(500),(0,operators_1.distinctUntilChanged)(),(0,operators_1.tap)(()=>this.isLoading=!0),(0,operators_1.switchMap)(searchQuery=>this.anime.searchAnime(searchQuery).pipe((0,operators_1.finalize)(()=>this.isLoading=!1))),(0,operators_1.retry)(-1)).subscribe({next:res=>{this.gs.log("[BERKAS_EDIT_SEARCH_ANIME_RESULT_SUCCESS]",res),this.filteredAnime=res.results},error:err=>{this.gs.log("[BERKAS_EDIT_SEARCH_ANIME_RESULT_ERROR]",err,"error")}}),this.subsDoramaDetail=this.fg.get("dorama_id").valueChanges.pipe((0,operators_1.debounceTime)(500),(0,operators_1.distinctUntilChanged)(),(0,operators_1.tap)(()=>this.isLoading=!0),(0,operators_1.switchMap)(searchQuery=>this.dorama.searchDorama(searchQuery).pipe((0,operators_1.finalize)(()=>this.isLoading=!1))),(0,operators_1.retry)(-1)).subscribe({next:res=>{this.gs.log("[BERKAS_EDIT_SEARCH_DORAMA_RESULT_SUCCESS]",res);for(const r of res.results)r.mdl_id=r.mdl_id.split("-")[1],r.image_url=r.thumb;this.filteredDorama=res.results},error:err=>{this.gs.log("[BERKAS_EDIT_SEARCH_DORAMA_RESULT_ERROR]",err,"error")}}),this.subsProjectDetail=this.fg.get("projectType_id").valueChanges.pipe((0,operators_1.debounceTime)(500),(0,operators_1.distinctUntilChanged)(),(0,operators_1.retry)(-1)).subscribe({next:projectId=>{this.gs.log("[BERKAS_EDIT_PROJECT_CHANGED]",projectId);const selectedProject=this.projectList.find(p=>p.id===projectId);this.fg.controls.anime_id.patchValue(null),this.fg.controls.anime_name.patchValue(null),this.fg.controls.dorama_id.patchValue(null),this.fg.controls.dorama_name.patchValue(null),this.fg.controls.anime_id.setErrors(null),this.fg.controls.anime_name.setErrors(null),this.fg.controls.dorama_id.setErrors(null),this.fg.controls.dorama_name.setErrors(null),this.fg.controls.anime_id.clearValidators(),this.fg.controls.anime_name.clearValidators(),this.fg.controls.dorama_id.clearValidators(),this.fg.controls.dorama_name.clearValidators(),this.fg.controls.anime_id.markAsPristine(),this.fg.controls.anime_name.markAsPristine(),this.fg.controls.dorama_id.markAsPristine(),this.fg.controls.dorama_name.markAsPristine(),this.fg.controls.anime_id.markAsUntouched(),this.fg.controls.anime_name.markAsUntouched(),this.fg.controls.dorama_id.markAsUntouched(),this.fg.controls.dorama_name.markAsUntouched(),selectedProject.name.toLowerCase().includes("anime")?(this.berkasType=selectedProject.name,this.fg.controls.anime_id.setValidators([forms_1.Validators.required,forms_1.Validators.pattern(/^\d+$/)]),this.fg.controls.anime_name.setValidators([forms_1.Validators.required])):selectedProject.name.toLowerCase().includes("dorama")?(this.berkasType=selectedProject.name,this.fg.controls.dorama_id.setValidators([forms_1.Validators.required,forms_1.Validators.pattern(/^\d+$/)]),this.fg.controls.dorama_name.setValidators([forms_1.Validators.required])):this.berkasType="",this.fg.controls.anime_id.updateValueAndValidity(),this.fg.controls.anime_name.updateValueAndValidity(),this.fg.controls.dorama_id.updateValueAndValidity(),this.fg.controls.dorama_name.updateValueAndValidity()}})}get getDownloadUrlControl(){return this.fg.get("download_url")}createDownloadLink(dataName=null,dataUrl=null){return this.fb.group({name:[dataName,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],url:[dataUrl,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])]})}addDownloadLink(data=null){data?this.getDownloadUrlControl.push(this.createDownloadLink(data.name,data.url)):this.getDownloadUrlControl.push(this.createDownloadLink())}removeDownloadLink(i31){this.getDownloadUrlControl.removeAt(i31)}get getFansubControl(){return this.fg.get("fansub_list")}createFansub(data=null){const fbGroup=this.fb.group({fansub_id:[(null==data?void 0:data.id)||null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(/^\d+$/)])],fansub_name:[(null==data?void 0:data.name)||null,forms_1.Validators.compose([forms_1.Validators.required])]});return this.subsFansubDetail.push(fbGroup.get("fansub_id").valueChanges.pipe((0,operators_1.debounceTime)(500),(0,operators_1.distinctUntilChanged)(),(0,operators_1.tap)(()=>this.isLoading=!0),(0,operators_1.switchMap)(searchQuery=>this.fansub.searchFansub(searchQuery).pipe((0,operators_1.finalize)(()=>this.isLoading=!1))),(0,operators_1.retry)(-1)).subscribe({next:res=>{this.gs.log("[BERKAS_EDIT_SEARCH_FANSUB_RESULT]",res),this.filteredFansub=res.results}})),fbGroup}removeFansub(i31){var _a;this.getFansubControl.removeAt(i31),null===(_a=this.subsFansubDetail[i31])||void 0===_a||_a.unsubscribe(),this.subsFansubDetail.splice(i31,1)}addFansub(data=null){data?this.getFansubControl.push(this.createFansub(data)):this.getFansubControl.push(this.createFansub())}resetSelectedAnime(){this.fg.controls.anime_name.patchValue(null)}resetSelectedDorama(){this.fg.controls.dorama_name.patchValue(null)}resetSelectedFansub(i31){this.getFansubControl.controls[i31].get("fansub_name").patchValue(null)}filterAnimeSelected(data){var _a;this.gs.log("[ANIME_FILTER_CLICK]",data),this.submitted=!0,this.subsAnimeNew=this.anime.addNewAnime({id:data.id,name:data.title,image_url:data.image_url,type:null===(_a=data.media_type)||void 0===_a?void 0:_a.toUpperCase()}).subscribe({next:res=>{this.gs.log("[ANIME_CHECK_ADD_SUCCESS]",res),this.animeCheckOrAddResponse=res.result,this.submitted=!1,this.fg.controls.anime_id.patchValue(res.result.id),this.fg.controls.anime_name.patchValue(res.result.name)},error:err=>{this.gs.log("[ANIME_CHECK_ADD_ERROR]",err,"error"),this.submitted=!1,this.resetSelectedAnime(),this.fg.controls.anime_id.patchValue(null),this.fg.controls.anime_name.patchValue(null)}})}filterDoramaSelected(data){this.gs.log("[DORAMA_FILTER_CLICK]",data),this.submitted=!0,this.subsDoramaNew=this.dorama.addNewDorama({id:parseInt(data.mdl_id,10),slug:data.slug,name:data.title,image_url:data.image_url,type:data.type}).subscribe({next:res=>{this.gs.log("[DORAMA_CHECK_ADD_SUCCESS]",res),this.doramaCheckOrAddResponse=res.result,this.submitted=!1,this.fg.controls.dorama_id.patchValue(res.result.id),this.fg.controls.dorama_name.patchValue(res.result.name)},error:err=>{this.gs.log("[DORAMA_CHECK_ADD_ERROR]",err,"error"),this.submitted=!1,this.resetSelectedDorama(),this.fg.controls.dorama_id.patchValue(null),this.fg.controls.dorama_name.patchValue(null)}})}filterFansubSelected(data,i31){this.gs.log("[FANSUB_FILTER_CLICK]",data),this.getFansubControl.controls[i31].get("fansub_id").patchValue(data.id),this.getFansubControl.controls[i31].get("fansub_name").patchValue(data.name)}uploadImage(event,gambar){this.gambar=gambar,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine();const file2=event.target.files[0];try{const reader=new FileReader;reader.readAsDataURL(file2),reader.onload=e=>{if(this.gs.log("[IMAGE_SELECTED]",e),file2.size<=constants_1.CONSTANTS.fileSizeImageLimit){const img=this.gs.document.createElement("img");img.onload=()=>{this.image=file2,this.image_url=reader.result.toString()},img.src=reader.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=constants_1.CONSTANTS.fileSizeImageLimit,this.gambar.clear(event)}}catch{this.image=null,this.image_url=this.image_url_original,this.gambar.clear(event)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:res=>{this.gs.log("[IMAGE_SUCCESS]",res),this.fg.controls.image.patchValue(res.result.url),this.fg.controls.image.markAsDirty(),this.submitted=!1},error:err=>{var _a;this.gs.log("[IMAGE_ERROR]",err,"error"),this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine(),this.submitted=!1,this.imageErrorText=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info}})}onSubmit(){this.bs.busy();const body=this.gs.getDirtyValues(this.fg);if("fansub_list"in body){const fansubId=[];for(const fs of this.fg.value.fansub_list)fansubId.push(fs.fansub_id);body.fansub_id=fansubId,delete body.fansub_list}return null===this.attachmentFile&&0===this.fg.value.download_url.lenth?(this.submitted=!1,this.uploadToast=this.toast.warning("Lampiran DDL / URL Eksternal!","Harap Mengisi Setidaknya Salah Satu ..."),void this.bs.idle()):(this.gs.log("[BERKAS_EDIT_DIRTY]",body),this.submitted=!0,this.fg.invalid?(this.submitted=!1,void this.bs.idle()):void(this.subsBerkasUpdate=this.berkas.updateBerkas(this.berkasId,{...body}).subscribe({next:res=>{this.gs.log("[BERKAS_EDIT_SUCCESS]",res),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl(`/berkas/${this.berkasId}`)},error:err=>{this.gs.log("[BERKAS_EDIT_ERROR]",err,"error"),this.submitted=!1,this.bs.idle()}})))}}__name(BerkasEditComponent,"BerkasEditComponent"),exports2.BerkasEditComponent=BerkasEditComponent,BerkasEditComponent.\u0275fac=__name(function(t){return new(t||BerkasEditComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i2.FormBuilder),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.PageInfoService),i0.\u0275\u0275directiveInject(i5.AnimeService),i0.\u0275\u0275directiveInject(i6.DoramaService),i0.\u0275\u0275directiveInject(i7.ProjectService),i0.\u0275\u0275directiveInject(i8.FansubService),i0.\u0275\u0275directiveInject(i9.BerkasService),i0.\u0275\u0275directiveInject(i10.ToastService),i0.\u0275\u0275directiveInject(i11.ImgbbService),i0.\u0275\u0275directiveInject(i12.GlobalService),i0.\u0275\u0275directiveInject(i13.AuthService))},"BerkasEditComponent_Factory"),BerkasEditComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:BerkasEditComponent,selectors:[["app-berkas-edit"]],decls:5,vars:1,consts:[[1,"container"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],[1,"w-100","border",3,"src"],["appearance","outline",1,"pt-3","w-100",3,"color"],[1,"w-100",3,"disabled","accept","change"],["gambar",""],["matSuffix",""],[1,"px-3","w-100"],[4,"ngIf"],["class","col-12 mb-4",4,"ngIf"],["class","col-12 p-3",4,"ngIf"],["appearance","outline",1,"p-3","col-12",3,"color"],["formControlName","projectType_id","placeholder","Anime / Drama"],[3,"value",4,"ngFor","ngForOf"],["appearance","outline","class","p-3 w-100",3,"color",4,"ngIf"],[1,"col-12","p-3"],["formArrayName","fansub_list"],[4,"ngFor","ngForOf"],[1,"col-12","mb-4"],[1,"col"],["mat-raised-button","","color","primary","type","button",1,"w-100",3,"disabled","click"],[1,"me-1"],[1,"col-12","col-md-7","col-xl-8","pt-3"],["matInput","","formControlName","name","placeholder","[Fansub] Judul Anime - 00 [BD 4K x265 FLAC][CRC32].mkv"],["formControlName","description",1,"p-3","w-100",3,"config"],["class","row",4,"ngIf"],["formArrayName","download_url"],[1,"row","mb-4"],[1,"col-12","py-3"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","../",1,"w-100",3,"disabled"],["mat-flat-button","","color","accent","type","submit",1,"w-100",3,"disabled"],[1,"ms-1"],["formControlName","private","matTooltip","Hanya diakses melalui profil dan/atau url"],[3,"value"],["appearance","outline",1,"p-3","w-100",3,"color"],["matInput","","formControlName","anime_id","placeholder","Full Metal Alchemist",3,"matAutocomplete","keyup"],["autoCompleteAnime","matAutocomplete"],["class","is-loading",4,"ngIf"],["class","text-warning",4,"ngIf"],[1,"is-loading"],["mode","indeterminate"],["class","px-1",3,"value","click",4,"ngFor","ngForOf"],[1,"px-1",3,"value","click"],[1,"me-1",2,"height","40px","width","30px","object-fit","cover",3,"src"],[1,"text-warning"],["matInput","","formControlName","dorama_id","placeholder","Flying Colors",3,"matAutocomplete","keyup"],["autoCompleteDorama","matAutocomplete"],[1,"row",3,"formGroupName"],["matInput","","formControlName","fansub_id","placeholder","NamaFansub",3,"matAutocomplete","keyup"],["matSuffix","",4,"ngIf"],["mat-button","","matSuffix","","mat-icon-button","",3,"click",4,"ngIf"],["autoCompleteFansub","matAutocomplete"],["mat-button","","matSuffix","","mat-icon-button","",3,"click"],[1,"me-1",2,"height","40px","width","40px","object-fit","cover",3,"src"],["mat-subheader","",1,"text-warning"],["mat-list-icon",""],["mat-line",""],["class","p-3 m-0",4,"ngIf"],[1,"p-3","m-0"],["matTooltip","Silahkan Isi Alamat Website Kamu Jika Ingin Mendapatkan Traffic Pengunjung",1,"row",3,"formGroupName"],["appearance","outline",1,"p-3","col-12","col-md-5",3,"color"],["matInput","","formControlName","name","placeholder","Web Shit","required",""],["appearance","outline",1,"p-3","col-12","col-md-7",3,"color"],["matInput","","formControlName","url","placeholder","https://drive.google.com/drive/u/2/folders/1KYTJZsmH9dyyHBXnQD4N0SjSBXcs8qD-","required",""]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2),i0.\u0275\u0275template(4,BerkasEditComponent_form_4_Template,89,27,"form",3),i0.\u0275\u0275elementEnd()()()),2&rf&&(i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",ctx.fg))},"BerkasEditComponent_Template"),directives:[i14.NotificationsComponent,i15.NgIf,i2.\u0275NgNoValidate,i2.NgControlStatusGroup,i2.FormGroupDirective,i16.MatFormField,i16.MatLabel,i17.FileInputComponent,i18.MatIcon,i16.MatSuffix,i16.MatError,i19.MatButton,i20.MatSlideToggle,i2.NgControlStatus,i2.FormControlName,i21.MatTooltip,i22.MatSelect,i15.NgForOf,i23.MatOption,i24.MatInput,i2.DefaultValueAccessor,i25.MatAutocompleteTrigger,i25.MatAutocomplete,i26.MatProgressBar,i27.MatDivider,i2.FormArrayName,i2.FormGroupName,i28.AngularEditorComponent,i29.MatList,i29.MatListSubheaderCssMatStyler,i29.MatListItem,i29.MatListIconCssMatStyler,i23.MatLine,i2.RequiredValidator,i19.MatAnchor,i1.RouterLinkWithHref],pipes:[i30.BytesPipe],styles:[""]})},18677:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BerkasListComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(74202),__webpack_require__2(80855),__webpack_require__2(8987),__webpack_require__2(96382),__webpack_require__2(33e3),__webpack_require__2(4137),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(8987)),i5=tslib_1.__importStar(__webpack_require__2(96382)),i6=tslib_1.__importStar(__webpack_require__2(4137)),i7=tslib_1.__importStar(__webpack_require__2(8616)),i8=tslib_1.__importStar(__webpack_require__2(69808)),i9=tslib_1.__importStar(__webpack_require__2(18757));function BerkasListComponent_div_1_div_1_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",5)(1,"div",6)(2,"div",7),i0.\u0275\u0275text(3,"* Berkas "),i0.\u0275\u0275elementStart(4,"i"),i0.\u0275\u0275text(5,"Private"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(6," Tidak Di Tampilkan"),i0.\u0275\u0275elementEnd()()())}function BerkasListComponent_div_1_Template(rf,ctx){if(1&rf){const _r3=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",1),i0.\u0275\u0275template(1,BerkasListComponent_div_1_div_1_Template,7,0,"div",2),i0.\u0275\u0275elementStart(2,"div",3)(3,"app-material-tab",4),i0.\u0275\u0275listener("tableRowClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r3),i0.\u0275\u0275nextContext().openBerkas($event)},"BerkasListComponent_div_1_Template_app_material_tab_tableRowClicked_3_listener"))("paginatorClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r3),i0.\u0275\u0275nextContext().onPaginatorClicked($event)},"BerkasListComponent_div_1_Template_app_material_tab_paginatorClicked_3_listener"))("serverSideFilter",__name(function($event){return i0.\u0275\u0275restoreView(_r3),i0.\u0275\u0275nextContext().onServerSideFilter($event)},"BerkasListComponent_div_1_Template_app_material_tab_serverSideFilter_3_listener"))("serverSideOrder",__name(function($event){return i0.\u0275\u0275restoreView(_r3),i0.\u0275\u0275nextContext().onServerSideOrder($event)},"BerkasListComponent_div_1_Template_app_material_tab_serverSideOrder_3_listener")),i0.\u0275\u0275elementEnd()()()}if(2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!(null!=ctx_r0.AS.currentUserSubject&&null!=ctx_r0.AS.currentUserSubject.value&&ctx_r0.AS.currentUserSubject.value.verified)),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("tabData",ctx_r0.tabData)("count",ctx_r0.count)("serverSide",!0)}}__name(BerkasListComponent_div_1_div_1_Template,"BerkasListComponent_div_1_div_1_Template"),__name(BerkasListComponent_div_1_Template,"BerkasListComponent_div_1_Template");class BerkasListComponent{constructor(router,gs,bs,berkas,fs,as){this.router=router,this.gs=gs,this.bs=bs,this.berkas=berkas,this.fs=fs,this.as=as,this.berkasData=[],this.tabData=[{name:"Berkas Terkini",icon:"file_copy",type:"table",data:{column:["Proyek","Nama Berkas","Tanggal","Kunjungan","Pemilik"],row:[]}}],this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.subsBerkas=null,this.gs.bannerImg="/assets/img/banner/berkas.jpg",this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get AS(){return this.as}ngOnDestroy(){var _a;null===(_a=this.subsBerkas)||void 0===_a||_a.unsubscribe()}ngOnInit(){this.gs.isBrowser&&this.getBerkas()}getBerkas(){this.bs.busy(),this.subsBerkas&&(this.subsBerkas.unsubscribe(),this.bs.idle()),this.subsBerkas=this.berkas.getAllBerkas(this.q,this.page,this.row,this.sort,this.order).subscribe({next:res=>{this.gs.log("[BERKAS_LIST_SUCCESS]",res),this.count=res.count,this.berkasData=[];for(const r of res.results)this.berkasData.push({id:r.id,private:r.private,foto:r.user_.image_url,Proyek:r.project_type_.name,Tanggal:r.created_at,Kunjungan:r.view_count,Pemilik:r.user_.username,"Nama Berkas":r.name});this.tabData[0].data.row=this.berkasData,this.fs.initializeFab("add",null,"Tambah Berkas Baru","/create/berkas",!1),this.bs.idle()},error:err=>{this.gs.log("[BERKAS_LIST_ERROR]",err,"error"),this.bs.idle()}})}openBerkas(data){this.gs.log("[BERKAS_LIST_CLICK_BERKAS]",data),this.router.navigateByUrl(`/berkas/${data.id}`)}onPaginatorClicked(data){this.gs.log("[BERKAS_LIST_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getBerkas()}onServerSideFilter(data){this.gs.log("[BERKAS_LIST_ENTER_FILTER]",data),this.q=data,this.getBerkas()}onServerSideOrder(data){this.gs.log("[BERKAS_LIST_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,this.order=data.direction,this.getBerkas()}}__name(BerkasListComponent,"BerkasListComponent"),exports2.BerkasListComponent=BerkasListComponent,BerkasListComponent.\u0275fac=__name(function(t){return new(t||BerkasListComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.BerkasService),i0.\u0275\u0275directiveInject(i5.FabService),i0.\u0275\u0275directiveInject(i6.AuthService))},"BerkasListComponent_Factory"),BerkasListComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:BerkasListComponent,selectors:[["app-berkas-list"]],decls:2,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],["class","row my-4",4,"ngIf"],[1,"row"],[3,"tabData","count","serverSide","tableRowClicked","paginatorClicked","serverSideFilter","serverSideOrder"],[1,"row","my-4"],[1,"col-12"],[1,"text-danger","text-end"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275template(1,BerkasListComponent_div_1_Template,4,4,"div",0)),2&rf&&(i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.berkasData))},"BerkasListComponent_Template"),directives:[i7.NotificationsComponent,i8.NgIf,i9.MaterialTabComponent],styles:[""]})},64045:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BerkasModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),angular_editor_1=__webpack_require__2(29345),ngx_material_file_input_1=__webpack_require__2(21385),constants_1=__webpack_require__2(26271),req_res_model_1=__webpack_require__2(14249),shared_material_module_1=__webpack_require__2(20210),material_tab_module_1=__webpack_require__2(66436),notifications_module_1=__webpack_require__2(88613),vjs_player_module_1=__webpack_require__2(75290),discussion_module_1=__webpack_require__2(78764),report_module_1=__webpack_require__2(54167),custom_pipe_module_1=__webpack_require__2(67355),roles_guard_1=__webpack_require__2(2777),berkas_detail_component_1=__webpack_require__2(17944),berkas_edit_component_1=__webpack_require__2(26473),berkas_list_component_1=__webpack_require__2(18677),no_data_module_1=__webpack_require__2(12438),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:berkas_list_component_1.BerkasListComponent},{path:":berkasId",children:[{path:"",pathMatch:"full",component:berkas_detail_component_1.BerkasDetailComponent},{path:"edit",component:berkas_edit_component_1.BerkasEditComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Berkas - Ubah Data",description:"Halaman Pembaharuan Data Fansub",keywords:"Ubah Berkas",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER]}}]}]);class BerkasModule{}__name(BerkasModule,"BerkasModule"),exports2.BerkasModule=BerkasModule,BerkasModule.\u0275fac=__name(function(t){return new(t||BerkasModule)},"BerkasModule_Factory"),BerkasModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:BerkasModule}),BerkasModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),shared_material_module_1.SharedMaterialModule,material_tab_module_1.MaterialTabModule,forms_1.FormsModule,forms_1.ReactiveFormsModule,ngx_material_file_input_1.MaterialFileInputModule,notifications_module_1.NotificationsModule,angular_editor_1.AngularEditorModule,vjs_player_module_1.VjsPlayerModule,discussion_module_1.DiscussionModule,report_module_1.ReportModule,custom_pipe_module_1.CustomPipeModule,no_data_module_1.NoDataModule]]})},62331:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BerkasCreateComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),operators_1=(__webpack_require__2(74202),__webpack_require__2(83292)),constants_1=(__webpack_require__2(16493),__webpack_require__2(26271)),req_res_model_1=__webpack_require__2(14249),i0=(__webpack_require__2(80855),__webpack_require__2(18745),__webpack_require__2(80519),__webpack_require__2(18439),__webpack_require__2(65679),__webpack_require__2(76781),__webpack_require__2(8987),__webpack_require__2(33e3),__webpack_require__2(4137),__webpack_require__2(67902),__webpack_require__2(96925),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(93075)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(18745)),i5=tslib_1.__importStar(__webpack_require__2(80519)),i6=tslib_1.__importStar(__webpack_require__2(18439)),i7=tslib_1.__importStar(__webpack_require__2(65679)),i8=tslib_1.__importStar(__webpack_require__2(76781)),i9=tslib_1.__importStar(__webpack_require__2(8987)),i10=tslib_1.__importStar(__webpack_require__2(67902)),i11=tslib_1.__importStar(__webpack_require__2(96925)),i12=tslib_1.__importStar(__webpack_require__2(80855)),i13=tslib_1.__importStar(__webpack_require__2(4137)),i14=tslib_1.__importStar(__webpack_require__2(16493)),i15=tslib_1.__importStar(__webpack_require__2(8616)),i16=tslib_1.__importStar(__webpack_require__2(69808)),i17=tslib_1.__importStar(__webpack_require__2(67322)),i18=tslib_1.__importStar(__webpack_require__2(21385)),i19=tslib_1.__importStar(__webpack_require__2(25245)),i20=tslib_1.__importStar(__webpack_require__2(47423)),i21=tslib_1.__importStar(__webpack_require__2(32368)),i22=tslib_1.__importStar(__webpack_require__2(87238)),i23=tslib_1.__importStar(__webpack_require__2(74107)),i24=tslib_1.__importStar(__webpack_require__2(90508)),i25=tslib_1.__importStar(__webpack_require__2(77531)),i26=tslib_1.__importStar(__webpack_require__2(91079)),i27=tslib_1.__importStar(__webpack_require__2(85899)),i28=tslib_1.__importStar(__webpack_require__2(4834)),i29=tslib_1.__importStar(__webpack_require__2(29345)),i30=tslib_1.__importStar(__webpack_require__2(23626));function BerkasCreateComponent_form_4_div_12_div_11_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r21=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Ukuran Upload Melebihi Batas ",i0.\u0275\u0275pipeBind1(2,1,ctx_r21.imageLimitExceeded)," !")}}function BerkasCreateComponent_form_4_div_12_div_12_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r22=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r22.imageErrorText)}}function BerkasCreateComponent_form_4_div_12_Template(rf,ctx){if(1&rf){const _r24=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",2),i0.\u0275\u0275element(1,"img",43),i0.\u0275\u0275elementStart(2,"mat-form-field",44)(3,"mat-label"),i0.\u0275\u0275text(4,"Gambar Untuk Embed SEO"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"ngx-mat-file-input",45,46),i0.\u0275\u0275listener("change",__name(function($event){i0.\u0275\u0275restoreView(_r24);const _r20=i0.\u0275\u0275reference(6);return i0.\u0275\u0275nextContext(2).uploadImage($event,_r20)},"BerkasCreateComponent_form_4_div_12_Template_ngx_mat_file_input_change_5_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"mat-icon",29),i0.\u0275\u0275text(8,"image"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(9,"mat-error",47)(10,"small"),i0.\u0275\u0275template(11,BerkasCreateComponent_form_4_div_12_div_11_Template,3,3,"div",18),i0.\u0275\u0275template(12,BerkasCreateComponent_form_4_div_12_div_12_Template,2,1,"div",18),i0.\u0275\u0275elementEnd()()()}if(2&rf){const ctx_r1=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("src",ctx_r1.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("disabled",ctx_r1.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r1.imageLimitExceeded),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.imageErrorText)}}function BerkasCreateComponent_form_4_div_13_Template(rf,ctx){if(1&rf){const _r26=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",23)(1,"button",25),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r26),i0.\u0275\u0275nextContext(2).submitImage()},"BerkasCreateComponent_form_4_div_13_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",26),i0.\u0275\u0275text(3,"add_photo_alternate"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Unggah "),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r2=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",ctx_r2.submitted)}}function BerkasCreateComponent_form_4_div_14_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",20)(1,"mat-slide-toggle",48),i0.\u0275\u0275text(2," Jadikan Private, Akses Hanya Dengan URL "),i0.\u0275\u0275elementEnd()())}function BerkasCreateComponent_form_4_div_15_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",20)(1,"mat-slide-toggle",49),i0.\u0275\u0275text(2," Permanent Storage "),i0.\u0275\u0275elementEnd()())}function BerkasCreateComponent_form_4_mat_option_20_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-option",50),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const p_r27=ctx.$implicit;i0.\u0275\u0275property("value",p_r27.id),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(p_r27.name)}}function BerkasCreateComponent_form_4_div_22_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Jenis Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_div_23_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Jenis Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_mat_form_field_24_mat_option_8_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-option",56),i0.\u0275\u0275element(1,"mat-progress-bar",57),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_mat_form_field_24_ng_container_9_mat_option_1_Template(rf,ctx){if(1&rf){const _r37=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-option",59),i0.\u0275\u0275listener("click",__name(function(){const a_r35=i0.\u0275\u0275restoreView(_r37).$implicit;return i0.\u0275\u0275nextContext(4).filterAnimeSelected(a_r35)},"BerkasCreateComponent_form_4_mat_form_field_24_ng_container_9_mat_option_1_Template_mat_option_click_0_listener")),i0.\u0275\u0275element(1,"img",60),i0.\u0275\u0275elementStart(2,"span",42),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()}if(2&rf){const a_r35=ctx.$implicit;i0.\u0275\u0275property("value",a_r35.id),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",a_r35.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate3("",a_r35.id," :: ",null==a_r35.media_type?null:a_r35.media_type.toUpperCase()," :: ",a_r35.title,"")}}function BerkasCreateComponent_form_4_mat_form_field_24_ng_container_9_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementContainerStart(0),i0.\u0275\u0275template(1,BerkasCreateComponent_form_4_mat_form_field_24_ng_container_9_mat_option_1_Template,4,5,"mat-option",58),i0.\u0275\u0275elementContainerEnd()),2&rf){const ctx_r30=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r30.filteredAnime)}}function BerkasCreateComponent_form_4_mat_form_field_24_small_10_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"small",61),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r31=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r31.fg.get("anime_name").value)}}function BerkasCreateComponent_form_4_mat_form_field_24_div_12_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"ID Anime Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_mat_form_field_24_div_13_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"ID Anime Hanya Boleh Angka"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_mat_form_field_24_Template(rf,ctx){if(1&rf){const _r39=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-form-field",51)(1,"mat-label"),i0.\u0275\u0275text(2,"Anime Terkait"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"input",52),i0.\u0275\u0275listener("keyup",__name(function(){return i0.\u0275\u0275restoreView(_r39),i0.\u0275\u0275nextContext(2).resetSelectedAnime()},"BerkasCreateComponent_form_4_mat_form_field_24_Template_input_keyup_3_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"mat-icon",29),i0.\u0275\u0275text(5,"short_text"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"mat-autocomplete",null,53),i0.\u0275\u0275template(8,BerkasCreateComponent_form_4_mat_form_field_24_mat_option_8_Template,2,0,"mat-option",54),i0.\u0275\u0275template(9,BerkasCreateComponent_form_4_mat_form_field_24_ng_container_9_Template,2,1,"ng-container",18),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(10,BerkasCreateComponent_form_4_mat_form_field_24_small_10_Template,2,1,"small",55),i0.\u0275\u0275elementStart(11,"mat-error"),i0.\u0275\u0275template(12,BerkasCreateComponent_form_4_mat_form_field_24_div_12_Template,2,0,"div",18),i0.\u0275\u0275template(13,BerkasCreateComponent_form_4_mat_form_field_24_div_13_Template,2,0,"div",18),i0.\u0275\u0275elementEnd()()}if(2&rf){const _r28=i0.\u0275\u0275reference(7),ctx_r8=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("matAutocomplete",_r28),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngIf",ctx_r8.isLoading),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!ctx_r8.isLoading),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r8.fg.get("anime_name").value),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r8.fg.get("anime_id").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r8.fg.get("anime_id").hasError("pattern"))}}function BerkasCreateComponent_form_4_mat_form_field_25_mat_option_8_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-option",56),i0.\u0275\u0275element(1,"mat-progress-bar",57),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_mat_form_field_25_ng_container_9_mat_option_1_Template(rf,ctx){if(1&rf){const _r49=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-option",59),i0.\u0275\u0275listener("click",__name(function(){const d_r47=i0.\u0275\u0275restoreView(_r49).$implicit;return i0.\u0275\u0275nextContext(4).filterDoramaSelected(d_r47)},"BerkasCreateComponent_form_4_mat_form_field_25_ng_container_9_mat_option_1_Template_mat_option_click_0_listener")),i0.\u0275\u0275element(1,"img",60),i0.\u0275\u0275elementStart(2,"span",42),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()}if(2&rf){const d_r47=ctx.$implicit;i0.\u0275\u0275property("value",d_r47.mdl_id),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",d_r47.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate2("",d_r47.mdl_id," :: ",d_r47.title,"")}}function BerkasCreateComponent_form_4_mat_form_field_25_ng_container_9_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementContainerStart(0),i0.\u0275\u0275template(1,BerkasCreateComponent_form_4_mat_form_field_25_ng_container_9_mat_option_1_Template,4,4,"mat-option",58),i0.\u0275\u0275elementContainerEnd()),2&rf){const ctx_r42=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r42.filteredDorama)}}function BerkasCreateComponent_form_4_mat_form_field_25_small_10_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"small",61),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r43=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r43.fg.get("dorama_name").value)}}function BerkasCreateComponent_form_4_mat_form_field_25_div_12_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"ID Dorama Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_mat_form_field_25_div_13_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"ID Dorama Hanya Boleh Angka"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_mat_form_field_25_Template(rf,ctx){if(1&rf){const _r51=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-form-field",51)(1,"mat-label"),i0.\u0275\u0275text(2,"Dorama Terkait"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"input",62),i0.\u0275\u0275listener("keyup",__name(function(){return i0.\u0275\u0275restoreView(_r51),i0.\u0275\u0275nextContext(2).resetSelectedDorama()},"BerkasCreateComponent_form_4_mat_form_field_25_Template_input_keyup_3_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"mat-icon",29),i0.\u0275\u0275text(5,"short_text"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"mat-autocomplete",null,63),i0.\u0275\u0275template(8,BerkasCreateComponent_form_4_mat_form_field_25_mat_option_8_Template,2,0,"mat-option",54),i0.\u0275\u0275template(9,BerkasCreateComponent_form_4_mat_form_field_25_ng_container_9_Template,2,1,"ng-container",18),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(10,BerkasCreateComponent_form_4_mat_form_field_25_small_10_Template,2,1,"small",55),i0.\u0275\u0275elementStart(11,"mat-error"),i0.\u0275\u0275template(12,BerkasCreateComponent_form_4_mat_form_field_25_div_12_Template,2,0,"div",18),i0.\u0275\u0275template(13,BerkasCreateComponent_form_4_mat_form_field_25_div_13_Template,2,0,"div",18),i0.\u0275\u0275elementEnd()()}if(2&rf){const _r40=i0.\u0275\u0275reference(7),ctx_r9=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("matAutocomplete",_r40),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngIf",ctx_r9.isLoading),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!ctx_r9.isLoading),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r9.fg.get("dorama_name").value),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r9.fg.get("dorama_id").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r9.fg.get("dorama_id").hasError("pattern"))}}function BerkasCreateComponent_form_4_div_29_mat_icon_6_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",29),i0.\u0275\u0275text(1,"short_text"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_div_29_button_7_Template(rf,ctx){if(1&rf){const _r63=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",69),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r63);const i_r53=i0.\u0275\u0275nextContext().index;return i0.\u0275\u0275nextContext(2).removeFansub(i_r53)},"BerkasCreateComponent_form_4_div_29_button_7_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"close"),i0.\u0275\u0275elementEnd()()}}function BerkasCreateComponent_form_4_div_29_mat_option_10_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-option",56),i0.\u0275\u0275element(1,"mat-progress-bar",57),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_div_29_ng_container_11_mat_option_1_Template(rf,ctx){if(1&rf){const _r67=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-option",59),i0.\u0275\u0275listener("click",__name(function(){const f_r65=i0.\u0275\u0275restoreView(_r67).$implicit,i_r53=i0.\u0275\u0275nextContext(2).index;return i0.\u0275\u0275nextContext(2).filterFansubSelected(f_r65,i_r53)},"BerkasCreateComponent_form_4_div_29_ng_container_11_mat_option_1_Template_mat_option_click_0_listener")),i0.\u0275\u0275element(1,"img",70),i0.\u0275\u0275elementStart(2,"span",42),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()}if(2&rf){const f_r65=ctx.$implicit;i0.\u0275\u0275property("value",f_r65.id),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",f_r65.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate2("",f_r65.slug," :: ",f_r65.name,"")}}function BerkasCreateComponent_form_4_div_29_ng_container_11_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementContainerStart(0),i0.\u0275\u0275template(1,BerkasCreateComponent_form_4_div_29_ng_container_11_mat_option_1_Template,4,4,"mat-option",58),i0.\u0275\u0275elementContainerEnd()),2&rf){const ctx_r58=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r58.filteredFansub)}}function BerkasCreateComponent_form_4_div_29_div_15_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"ID Fansub Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_div_29_div_16_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"ID Fansub Hanya Boleh Angka"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_div_29_Template(rf,ctx){if(1&rf){const _r70=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div")(1,"div",64)(2,"mat-form-field",51)(3,"mat-label"),i0.\u0275\u0275text(4,"Fansub Terkait"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"input",65),i0.\u0275\u0275listener("keyup",__name(function(){const i_r53=i0.\u0275\u0275restoreView(_r70).index;return i0.\u0275\u0275nextContext(2).resetSelectedFansub(i_r53)},"BerkasCreateComponent_form_4_div_29_Template_input_keyup_5_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(6,BerkasCreateComponent_form_4_div_29_mat_icon_6_Template,2,0,"mat-icon",66),i0.\u0275\u0275template(7,BerkasCreateComponent_form_4_div_29_button_7_Template,3,0,"button",67),i0.\u0275\u0275elementStart(8,"mat-autocomplete",null,68),i0.\u0275\u0275template(10,BerkasCreateComponent_form_4_div_29_mat_option_10_Template,2,0,"mat-option",54),i0.\u0275\u0275template(11,BerkasCreateComponent_form_4_div_29_ng_container_11_Template,2,1,"ng-container",18),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(12,"small",61),i0.\u0275\u0275text(13),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(14,"mat-error"),i0.\u0275\u0275template(15,BerkasCreateComponent_form_4_div_29_div_15_Template,2,0,"div",18),i0.\u0275\u0275template(16,BerkasCreateComponent_form_4_div_29_div_16_Template,2,0,"div",18),i0.\u0275\u0275elementEnd()()()()}if(2&rf){const fs_r52=ctx.$implicit,i_r53=ctx.index,_r56=i0.\u0275\u0275reference(9),ctx_r10=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("formGroupName",i_r53),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("matAutocomplete",_r56),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",fs_r52.get("fansub_id").value||0===i_r53),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!fs_r52.get("fansub_id").value&&i_r53>0),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngIf",ctx_r10.isLoading),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!ctx_r10.isLoading),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(fs_r52.get("fansub_name").value),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",fs_r52.get("fansub_id").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",fs_r52.get("fansub_id").hasError("pattern"))}}function BerkasCreateComponent_form_4_div_47_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Nama Berkas Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_div_48_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Nama Berkas Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_angular_editor_49_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"angular-editor",71),2&rf){const ctx_r13=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("config",ctx_r13.GS.angularEditorConfig)}}function BerkasCreateComponent_form_4_div_53_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"div")}function BerkasCreateComponent_form_4_ng_template_54_div_15_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r72=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Ukuran Upload Melebihi Batas ",i0.\u0275\u0275pipeBind1(2,1,ctx_r72.attachmentLimitExceeded)," !")}}function BerkasCreateComponent_form_4_ng_template_54_div_16_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r73=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r73.attachmentErrorText)}}function BerkasCreateComponent_form_4_ng_template_54_div_17_Template(rf,ctx){if(1&rf){const _r77=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",35)(1,"div",24)(2,"div",79),i0.\u0275\u0275text(3),i0.\u0275\u0275pipe(4,"bytes"),i0.\u0275\u0275element(5,"br")(6,"mat-progress-bar",80),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(7,"div",81)(8,"button",25),i0.\u0275\u0275listener("click",__name(function(){const item_r75=i0.\u0275\u0275restoreView(_r77).$implicit;return i0.\u0275\u0275nextContext(3).submitAttachment(item_r75)},"BerkasCreateComponent_form_4_ng_template_54_div_17_Template_button_click_8_listener")),i0.\u0275\u0275elementStart(9,"mat-icon",26),i0.\u0275\u0275text(10,"attachment"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(11," Unggah "),i0.\u0275\u0275elementEnd()()()}if(2&rf){const item_r75=ctx.$implicit,ctx_r74=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate3(" ",item_r75.status," :: ",item_r75.progress,"% @ ",i0.\u0275\u0275pipeBind1(4,6,item_r75.speed),"/s "),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("mode","determinate")("value",item_r75.progress),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("disabled",ctx_r74.submitted||"complete"===item_r75.status||"uploading"===item_r75.status)}}function BerkasCreateComponent_form_4_ng_template_54_Template(rf,ctx){if(1&rf){const _r79=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",10)(1,"div",72)(2,"small",73),i0.\u0275\u0275text(3,"* "),i0.\u0275\u0275elementStart(4,"i"),i0.\u0275\u0275text(5,"Resume-able Upload"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(6,"mat-form-field",74)(7,"mat-label"),i0.\u0275\u0275text(8,"Upload Lampiran Berkas -- DDL"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(9,"ngx-mat-file-input",75,76),i0.\u0275\u0275listener("change",__name(function($event){i0.\u0275\u0275restoreView(_r79);const _r71=i0.\u0275\u0275reference(10);return i0.\u0275\u0275nextContext(2).uploadAttachment($event,_r71)},"BerkasCreateComponent_form_4_ng_template_54_Template_ngx_mat_file_input_change_9_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(11,"mat-icon",29),i0.\u0275\u0275text(12,"attach_file"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(13,"mat-error",77)(14,"small"),i0.\u0275\u0275template(15,BerkasCreateComponent_form_4_ng_template_54_div_15_Template,3,3,"div",18),i0.\u0275\u0275template(16,BerkasCreateComponent_form_4_ng_template_54_div_16_Template,2,1,"div",18),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(17,BerkasCreateComponent_form_4_ng_template_54_div_17_Template,12,8,"div",78),i0.\u0275\u0275pipe(18,"async")}if(2&rf){const ctx_r16=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(6),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("disabled",null!==ctx_r16.attachmentSelected)("accept",ctx_r16.fileTypeAttachmentAllowed),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r16.attachmentLimitExceeded),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r16.attachmentErrorText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind1(18,6,ctx_r16.uploads$))}}function BerkasCreateComponent_form_4_ng_template_56_Template(rf,ctx){if(1&rf){const _r81=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",82),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r81),i0.\u0275\u0275nextContext(2).verify()},"BerkasCreateComponent_form_4_ng_template_56_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",26),i0.\u0275\u0275text(2,"enhanced_encryption"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3," Verifikasi Akun Untuk Upload DDL! "),i0.\u0275\u0275elementEnd()}}function BerkasCreateComponent_form_4_div_62_mat_icon_6_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",29),i0.\u0275\u0275text(1,"web"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_div_62_button_7_Template(rf,ctx){if(1&rf){const _r94=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",69),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r94);const i_r83=i0.\u0275\u0275nextContext().index;return i0.\u0275\u0275nextContext(2).removeDownloadLink(i_r83)},"BerkasCreateComponent_form_4_div_62_button_7_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"close"),i0.\u0275\u0275elementEnd()()}}function BerkasCreateComponent_form_4_div_62_div_9_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Web Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_div_62_div_10_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Web Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_div_62_mat_icon_15_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",29),i0.\u0275\u0275text(1,"link"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_div_62_button_16_Template(rf,ctx){if(1&rf){const _r97=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",69),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r97);const i_r83=i0.\u0275\u0275nextContext().index;return i0.\u0275\u0275nextContext(2).removeDownloadLink(i_r83)},"BerkasCreateComponent_form_4_div_62_button_16_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"close"),i0.\u0275\u0275elementEnd()()}}function BerkasCreateComponent_form_4_div_62_div_18_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Tautan Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_div_62_div_19_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Tautan Link Tidak Valid"),i0.\u0275\u0275elementEnd())}function BerkasCreateComponent_form_4_div_62_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div")(1,"div",83)(2,"mat-form-field",84)(3,"mat-label"),i0.\u0275\u0275text(4,"Nama Website"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(5,"input",85),i0.\u0275\u0275template(6,BerkasCreateComponent_form_4_div_62_mat_icon_6_Template,2,0,"mat-icon",66),i0.\u0275\u0275template(7,BerkasCreateComponent_form_4_div_62_button_7_Template,3,0,"button",67),i0.\u0275\u0275elementStart(8,"mat-error"),i0.\u0275\u0275template(9,BerkasCreateComponent_form_4_div_62_div_9_Template,2,0,"div",18),i0.\u0275\u0275template(10,BerkasCreateComponent_form_4_div_62_div_10_Template,2,0,"div",18),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(11,"mat-form-field",86)(12,"mat-label"),i0.\u0275\u0275text(13,"Tautan Link"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(14,"input",87),i0.\u0275\u0275template(15,BerkasCreateComponent_form_4_div_62_mat_icon_15_Template,2,0,"mat-icon",66),i0.\u0275\u0275template(16,BerkasCreateComponent_form_4_div_62_button_16_Template,3,0,"button",67),i0.\u0275\u0275elementStart(17,"mat-error"),i0.\u0275\u0275template(18,BerkasCreateComponent_form_4_div_62_div_18_Template,2,0,"div",18),i0.\u0275\u0275template(19,BerkasCreateComponent_form_4_div_62_div_19_Template,2,0,"div",18),i0.\u0275\u0275elementEnd()()()()),2&rf){const dl_r82=ctx.$implicit,i_r83=ctx.index,ctx_r19=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("formGroupName",i_r83),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",dl_r82.get("name").value||0===i_r83&&!(null!=ctx_r19.AS.currentUserSubject&&null!=ctx_r19.AS.currentUserSubject.value&&ctx_r19.AS.currentUserSubject.value.verified)),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!dl_r82.get("name").value&&(i_r83>0||(null==ctx_r19.AS.currentUserSubject||null==ctx_r19.AS.currentUserSubject.value?null:ctx_r19.AS.currentUserSubject.value.verified))),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",dl_r82.get("name").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",dl_r82.get("name").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",dl_r82.get("url").value||0===i_r83&&!(null!=ctx_r19.AS.currentUserSubject&&null!=ctx_r19.AS.currentUserSubject.value&&ctx_r19.AS.currentUserSubject.value.verified)),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!dl_r82.get("url").value&&(i_r83>0||(null==ctx_r19.AS.currentUserSubject||null==ctx_r19.AS.currentUserSubject.value?null:ctx_r19.AS.currentUserSubject.value.verified))),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",dl_r82.get("url").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",dl_r82.get("url").hasError("pattern"))}}function BerkasCreateComponent_form_4_Template(rf,ctx){if(1&rf){const _r99=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",4),i0.\u0275\u0275listener("submit",__name(function(){return i0.\u0275\u0275restoreView(_r99),i0.\u0275\u0275nextContext().onSubmit()},"BerkasCreateComponent_form_4_Template_form_submit_0_listener")),i0.\u0275\u0275elementStart(1,"div",5)(2,"div",6)(3,"h2",7)(4,"span",8),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r99),i0.\u0275\u0275nextContext().toggleDetailMode()},"BerkasCreateComponent_form_4_Template_span_click_4_listener")),i0.\u0275\u0275text(5),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"b",9),i0.\u0275\u0275text(7,"Tambah Berkas Baru"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(8,"div",2)(9,"div",10)(10,"div",11)(11,"div",10),i0.\u0275\u0275template(12,BerkasCreateComponent_form_4_div_12_Template,13,6,"div",12),i0.\u0275\u0275template(13,BerkasCreateComponent_form_4_div_13_Template,5,1,"div",13),i0.\u0275\u0275template(14,BerkasCreateComponent_form_4_div_14_Template,3,0,"div",14),i0.\u0275\u0275template(15,BerkasCreateComponent_form_4_div_15_Template,3,0,"div",14),i0.\u0275\u0275elementStart(16,"mat-form-field",15)(17,"mat-label"),i0.\u0275\u0275text(18,"Jenis Proyek"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(19,"mat-select",16),i0.\u0275\u0275template(20,BerkasCreateComponent_form_4_mat_option_20_Template,2,2,"mat-option",17),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(21,"mat-error"),i0.\u0275\u0275template(22,BerkasCreateComponent_form_4_div_22_Template,2,0,"div",18),i0.\u0275\u0275template(23,BerkasCreateComponent_form_4_div_23_Template,2,0,"div",18),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(24,BerkasCreateComponent_form_4_mat_form_field_24_Template,14,7,"mat-form-field",19),i0.\u0275\u0275template(25,BerkasCreateComponent_form_4_mat_form_field_25_Template,14,7,"mat-form-field",19),i0.\u0275\u0275elementStart(26,"div",20),i0.\u0275\u0275element(27,"mat-divider"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(28,"div",21),i0.\u0275\u0275template(29,BerkasCreateComponent_form_4_div_29_Template,17,10,"div",22),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(30,"div",23)(31,"div",10),i0.\u0275\u0275element(32,"div",24),i0.\u0275\u0275elementStart(33,"div",24)(34,"button",25),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r99),i0.\u0275\u0275nextContext().addFansub()},"BerkasCreateComponent_form_4_Template_button_click_34_listener")),i0.\u0275\u0275elementStart(35,"mat-icon",26),i0.\u0275\u0275text(36,"add"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(37," Tambah Fansub "),i0.\u0275\u0275elementEnd()()()()()(),i0.\u0275\u0275elementStart(38,"div",27)(39,"div",10)(40,"mat-form-field",15)(41,"mat-label"),i0.\u0275\u0275text(42,"Nama Berkas"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(43,"input",28),i0.\u0275\u0275elementStart(44,"mat-icon",29),i0.\u0275\u0275text(45,"wysiwyg"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(46,"mat-error"),i0.\u0275\u0275template(47,BerkasCreateComponent_form_4_div_47_Template,2,0,"div",18),i0.\u0275\u0275template(48,BerkasCreateComponent_form_4_div_48_Template,2,0,"div",18),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(49,BerkasCreateComponent_form_4_angular_editor_49_Template,1,1,"angular-editor",30),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(50,"div",10)(51,"div",20),i0.\u0275\u0275element(52,"mat-divider"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(53,BerkasCreateComponent_form_4_div_53_Template,1,0,"div",31),i0.\u0275\u0275template(54,BerkasCreateComponent_form_4_ng_template_54_Template,19,8,"ng-template",null,32,i0.\u0275\u0275templateRefExtractor),i0.\u0275\u0275template(56,BerkasCreateComponent_form_4_ng_template_56_Template,4,0,"ng-template",null,33,i0.\u0275\u0275templateRefExtractor),i0.\u0275\u0275elementStart(58,"div",10)(59,"div",20),i0.\u0275\u0275element(60,"mat-divider"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(61,"div",34),i0.\u0275\u0275template(62,BerkasCreateComponent_form_4_div_62_Template,20,11,"div",22),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(63,"div",35),i0.\u0275\u0275element(64,"div",24)(65,"div",24)(66,"div",24),i0.\u0275\u0275elementStart(67,"div",24)(68,"button",25),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r99),i0.\u0275\u0275nextContext().addDownloadLink()},"BerkasCreateComponent_form_4_Template_button_click_68_listener")),i0.\u0275\u0275elementStart(69,"mat-icon",26),i0.\u0275\u0275text(70,"add"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(71," Tambah URL Eksternal "),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275elementStart(72,"div",10)(73,"div",36)(74,"div",37),i0.\u0275\u0275element(75,"div",38),i0.\u0275\u0275elementStart(76,"div",39)(77,"a",40)(78,"mat-icon",26),i0.\u0275\u0275text(79,"undo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(80," Batal "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(81,"div",39)(82,"button",41),i0.\u0275\u0275text(83," Simpan "),i0.\u0275\u0275elementStart(84,"mat-icon",42),i0.\u0275\u0275text(85,"save"),i0.\u0275\u0275elementEnd()()()()()()()()()}if(2&rf){const _r15=i0.\u0275\u0275reference(55),_r17=i0.\u0275\u0275reference(57),ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("formGroup",ctx_r0.fg),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1(" ",ctx_r0.detailMode?"Sederhana":"Lengkap"," "),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.detailMode),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.image&&!ctx_r0.fg.value.image&&ctx_r0.detailMode),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",null==ctx_r0.AS.currentUserSubject||null==ctx_r0.AS.currentUserSubject.value?null:ctx_r0.AS.currentUserSubject.value.verified),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.permanentStorage&&ctx_r0.isAttachmentUploaded),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngForOf",ctx_r0.projectList),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("projectType_id").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("projectType_id").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.berkasType.toLowerCase().includes("anime")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.berkasType.toLowerCase().includes("dorama")),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngForOf",ctx_r0.getFansubControl.controls),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r0.submitted),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("name").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("name").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.detailMode),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",null==ctx_r0.AS.currentUserSubject||null==ctx_r0.AS.currentUserSubject.value?null:ctx_r0.AS.currentUserSubject.value.verified)("ngIfThen",_r15)("ngIfElse",_r17),i0.\u0275\u0275advance(9),i0.\u0275\u0275property("ngForOf",ctx_r0.getDownloadUrlControl.controls),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("disabled",ctx_r0.submitted),i0.\u0275\u0275advance(9),i0.\u0275\u0275property("disabled",ctx_r0.submitted),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r0.submitted||ctx_r0.fg.invalid||"uploading"===(null==ctx_r0.attachmentSelected?null:ctx_r0.attachmentSelected.status))}}__name(BerkasCreateComponent_form_4_div_12_div_11_Template,"BerkasCreateComponent_form_4_div_12_div_11_Template"),__name(BerkasCreateComponent_form_4_div_12_div_12_Template,"BerkasCreateComponent_form_4_div_12_div_12_Template"),__name(BerkasCreateComponent_form_4_div_12_Template,"BerkasCreateComponent_form_4_div_12_Template"),__name(BerkasCreateComponent_form_4_div_13_Template,"BerkasCreateComponent_form_4_div_13_Template"),__name(BerkasCreateComponent_form_4_div_14_Template,"BerkasCreateComponent_form_4_div_14_Template"),__name(BerkasCreateComponent_form_4_div_15_Template,"BerkasCreateComponent_form_4_div_15_Template"),__name(BerkasCreateComponent_form_4_mat_option_20_Template,"BerkasCreateComponent_form_4_mat_option_20_Template"),__name(BerkasCreateComponent_form_4_div_22_Template,"BerkasCreateComponent_form_4_div_22_Template"),__name(BerkasCreateComponent_form_4_div_23_Template,"BerkasCreateComponent_form_4_div_23_Template"),__name(BerkasCreateComponent_form_4_mat_form_field_24_mat_option_8_Template,"BerkasCreateComponent_form_4_mat_form_field_24_mat_option_8_Template"),__name(BerkasCreateComponent_form_4_mat_form_field_24_ng_container_9_mat_option_1_Template,"BerkasCreateComponent_form_4_mat_form_field_24_ng_container_9_mat_option_1_Template"),__name(BerkasCreateComponent_form_4_mat_form_field_24_ng_container_9_Template,"BerkasCreateComponent_form_4_mat_form_field_24_ng_container_9_Template"),__name(BerkasCreateComponent_form_4_mat_form_field_24_small_10_Template,"BerkasCreateComponent_form_4_mat_form_field_24_small_10_Template"),__name(BerkasCreateComponent_form_4_mat_form_field_24_div_12_Template,"BerkasCreateComponent_form_4_mat_form_field_24_div_12_Template"),__name(BerkasCreateComponent_form_4_mat_form_field_24_div_13_Template,"BerkasCreateComponent_form_4_mat_form_field_24_div_13_Template"),__name(BerkasCreateComponent_form_4_mat_form_field_24_Template,"BerkasCreateComponent_form_4_mat_form_field_24_Template"),__name(BerkasCreateComponent_form_4_mat_form_field_25_mat_option_8_Template,"BerkasCreateComponent_form_4_mat_form_field_25_mat_option_8_Template"),__name(BerkasCreateComponent_form_4_mat_form_field_25_ng_container_9_mat_option_1_Template,"BerkasCreateComponent_form_4_mat_form_field_25_ng_container_9_mat_option_1_Template"),__name(BerkasCreateComponent_form_4_mat_form_field_25_ng_container_9_Template,"BerkasCreateComponent_form_4_mat_form_field_25_ng_container_9_Template"),__name(BerkasCreateComponent_form_4_mat_form_field_25_small_10_Template,"BerkasCreateComponent_form_4_mat_form_field_25_small_10_Template"),__name(BerkasCreateComponent_form_4_mat_form_field_25_div_12_Template,"BerkasCreateComponent_form_4_mat_form_field_25_div_12_Template"),__name(BerkasCreateComponent_form_4_mat_form_field_25_div_13_Template,"BerkasCreateComponent_form_4_mat_form_field_25_div_13_Template"),__name(BerkasCreateComponent_form_4_mat_form_field_25_Template,"BerkasCreateComponent_form_4_mat_form_field_25_Template"),__name(BerkasCreateComponent_form_4_div_29_mat_icon_6_Template,"BerkasCreateComponent_form_4_div_29_mat_icon_6_Template"),__name(BerkasCreateComponent_form_4_div_29_button_7_Template,"BerkasCreateComponent_form_4_div_29_button_7_Template"),__name(BerkasCreateComponent_form_4_div_29_mat_option_10_Template,"BerkasCreateComponent_form_4_div_29_mat_option_10_Template"),__name(BerkasCreateComponent_form_4_div_29_ng_container_11_mat_option_1_Template,"BerkasCreateComponent_form_4_div_29_ng_container_11_mat_option_1_Template"),__name(BerkasCreateComponent_form_4_div_29_ng_container_11_Template,"BerkasCreateComponent_form_4_div_29_ng_container_11_Template"),__name(BerkasCreateComponent_form_4_div_29_div_15_Template,"BerkasCreateComponent_form_4_div_29_div_15_Template"),__name(BerkasCreateComponent_form_4_div_29_div_16_Template,"BerkasCreateComponent_form_4_div_29_div_16_Template"),__name(BerkasCreateComponent_form_4_div_29_Template,"BerkasCreateComponent_form_4_div_29_Template"),__name(BerkasCreateComponent_form_4_div_47_Template,"BerkasCreateComponent_form_4_div_47_Template"),__name(BerkasCreateComponent_form_4_div_48_Template,"BerkasCreateComponent_form_4_div_48_Template"),__name(BerkasCreateComponent_form_4_angular_editor_49_Template,"BerkasCreateComponent_form_4_angular_editor_49_Template"),__name(BerkasCreateComponent_form_4_div_53_Template,"BerkasCreateComponent_form_4_div_53_Template"),__name(BerkasCreateComponent_form_4_ng_template_54_div_15_Template,"BerkasCreateComponent_form_4_ng_template_54_div_15_Template"),__name(BerkasCreateComponent_form_4_ng_template_54_div_16_Template,"BerkasCreateComponent_form_4_ng_template_54_div_16_Template"),__name(BerkasCreateComponent_form_4_ng_template_54_div_17_Template,"BerkasCreateComponent_form_4_ng_template_54_div_17_Template"),__name(BerkasCreateComponent_form_4_ng_template_54_Template,"BerkasCreateComponent_form_4_ng_template_54_Template"),__name(BerkasCreateComponent_form_4_ng_template_56_Template,"BerkasCreateComponent_form_4_ng_template_56_Template"),__name(BerkasCreateComponent_form_4_div_62_mat_icon_6_Template,"BerkasCreateComponent_form_4_div_62_mat_icon_6_Template"),__name(BerkasCreateComponent_form_4_div_62_button_7_Template,"BerkasCreateComponent_form_4_div_62_button_7_Template"),__name(BerkasCreateComponent_form_4_div_62_div_9_Template,"BerkasCreateComponent_form_4_div_62_div_9_Template"),__name(BerkasCreateComponent_form_4_div_62_div_10_Template,"BerkasCreateComponent_form_4_div_62_div_10_Template"),__name(BerkasCreateComponent_form_4_div_62_mat_icon_15_Template,"BerkasCreateComponent_form_4_div_62_mat_icon_15_Template"),__name(BerkasCreateComponent_form_4_div_62_button_16_Template,"BerkasCreateComponent_form_4_div_62_button_16_Template"),__name(BerkasCreateComponent_form_4_div_62_div_18_Template,"BerkasCreateComponent_form_4_div_62_div_18_Template"),__name(BerkasCreateComponent_form_4_div_62_div_19_Template,"BerkasCreateComponent_form_4_div_62_div_19_Template"),__name(BerkasCreateComponent_form_4_div_62_Template,"BerkasCreateComponent_form_4_div_62_Template"),__name(BerkasCreateComponent_form_4_Template,"BerkasCreateComponent_form_4_Template");class BerkasCreateComponent{constructor(router,fb,bs,pi,anime,dorama,project,fansub,berkas,imgbb,toast,gs,as,uploadService){this.router=router,this.fb=fb,this.bs=bs,this.pi=pi,this.anime=anime,this.dorama=dorama,this.project=project,this.fansub=fansub,this.berkas=berkas,this.imgbb=imgbb,this.toast=toast,this.gs=gs,this.as=as,this.uploadService=uploadService,this.detailMode=!1,this.submitted=!1,this.projectList=[],this.image=null,this.imageErrorText=null,this.imageLimitExceeded=null,this.image_url="/assets/img/form/no-image.png",this.filteredAnime=[],this.filteredDorama=[],this.filteredFansub=[],this.isLoading=!1,this.animeCheckOrAddResponse=null,this.doramaCheckOrAddResponse=null,this.attachmentSelected=null,this.attachmentErrorText=null,this.attachmentLimitExceeded=null,this.uploadToast=null,this.timerTimeout=null,this.gambar=null,this.ddl=null,this.subsProject=null,this.subsFansub=null,this.subsAnimeDetail=null,this.subsDoramaDetail=null,this.subsProjectDetail=null,this.subsFansubDetail=[],this.subsAnimeNew=null,this.subsDoramaNew=null,this.subsImgbb=null,this.subsBerkasCreate=null,this.subsUpload=null,this.berkasType="",this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get AS(){return this.as}get GS(){return this.gs}get fileTypeAttachmentAllowed(){return constants_1.CONSTANTS.fileTypeAttachmentAllowed.join(", ")}get permanentStorage(){var _a,_b;const role=null===(_b=null===(_a=this.AS.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.role;return role===req_res_model_1.RoleModel.ADMIN||role===req_res_model_1.RoleModel.MODERATOR}get isAttachmentUploaded(){return null!==this.fg.controls.attachment_id.value}ngOnInit(){this.pi.updatePageMetaData("Berkas - Buat Baru","Halaman Membuat Berkas Baru","Create Berkas"),this.gs.isBrowser&&(this.loadProjectList(),this.initForm(),this.uploads$=this.uploadService.connect(),this.subsUpload=this.uploadService.events.subscribe({next:state=>{this.gs.log("[UPLOAD_EVENTS]",state),("uploading"===state.status||"complete"===state.status)&&(this.attachmentSelected=state),"complete"===state.status?(this.gs.log("[UPLOAD_COMPLETED]",state.response),this.fg.controls.attachment_id.patchValue(state.response.result.id),this.uploadToast=this.toast.warning("Segera Kirim Data Berkas!","Lampiran Akan Dihapus ...",{closeButton:!1,timeOut:constants_1.CONSTANTS.timeoutDeleteTempAttachmentTime,disableTimeOut:"extendedTimeOut",tapToDismiss:!1,progressAnimation:"decreasing"},!0),this.timerTimeout=setTimeout(()=>{this.gs.log("[UPLOAD_TIMEOUT]",constants_1.CONSTANTS.timeoutDeleteTempAttachmentTime),this.failOrCancelUpload({info:"Expired, Silahkan Upload Ulang!"})},constants_1.CONSTANTS.timeoutDeleteTempAttachmentTime)):"error"===state.status&&(this.gs.log("[UPLOAD_ERROR]",state.response,"error"),this.failOrCancelUpload(state.response))},error:err=>{this.gs.log("[UPLOAD_ERROR]",err,"error"),this.failOrCancelUpload(err)}}))}ngOnDestroy(){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k;this.uploadToast&&this.toast.remove(this.uploadToast.toastId),this.timerTimeout&&(clearTimeout(this.timerTimeout),this.timerTimeout=null),null===(_a=this.subsProject)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsFansub)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsAnimeDetail)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsDoramaDetail)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsProjectDetail)||void 0===_e||_e.unsubscribe();for(const sFD of this.subsFansubDetail)null==sFD||sFD.unsubscribe();null===(_f=this.subsAnimeNew)||void 0===_f||_f.unsubscribe(),null===(_g=this.subsDoramaNew)||void 0===_g||_g.unsubscribe(),null===(_h=this.subsImgbb)||void 0===_h||_h.unsubscribe(),null===(_j=this.subsBerkasCreate)||void 0===_j||_j.unsubscribe(),this.uploadService.disconnect(),null===(_k=this.subsUpload)||void 0===_k||_k.unsubscribe()}toggleDetailMode(){this.detailMode=!this.detailMode}loadProjectList(){this.bs.busy(),this.subsProject=this.project.getProject().subscribe({next:res=>{this.gs.log("[PROJECT_LOAD_SUCCESS]",res),this.projectList=res.results,this.bs.idle()},error:err=>{this.gs.log("[PROJECT_LOAD_ERROR]",err,"error"),this.bs.idle()}})}hasRequiredField(abstractControl,controlName){return abstractControl.get(controlName).hasValidator(forms_1.Validators.required)}initForm(){var _a,_b;this.fg=this.fb.group({name:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],description:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],projectType_id:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],anime_id:[null,forms_1.Validators.compose([])],anime_name:[null,forms_1.Validators.compose([])],dorama_id:[null,forms_1.Validators.compose([])],dorama_name:[null,forms_1.Validators.compose([])],fansub_list:this.fb.array([this.createFansub()]),image:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],attachment_id:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],download_url:this.fb.array([]),private:[!1,forms_1.Validators.compose([forms_1.Validators.required])],permanent_storage:[!1,forms_1.Validators.compose([forms_1.Validators.required])]}),(null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.verified)||this.addDownloadLink(),this.subsAnimeDetail=this.fg.get("anime_id").valueChanges.pipe((0,operators_1.debounceTime)(500),(0,operators_1.distinctUntilChanged)(),(0,operators_1.tap)(()=>this.isLoading=!0),(0,operators_1.switchMap)(searchQuery=>this.anime.searchAnime(searchQuery).pipe((0,operators_1.finalize)(()=>this.isLoading=!1))),(0,operators_1.retry)(-1)).subscribe({next:res=>{this.gs.log("[BERKAS_CREATE_SEARCH_ANIME_RESULT_SUCCESS]",res),this.filteredAnime=res.results},error:err=>{this.gs.log("[BERKAS_CREATE_SEARCH_ANIME_RESULT_ERROR]",err,"error")}}),this.subsDoramaDetail=this.fg.get("dorama_id").valueChanges.pipe((0,operators_1.debounceTime)(500),(0,operators_1.distinctUntilChanged)(),(0,operators_1.tap)(()=>this.isLoading=!0),(0,operators_1.switchMap)(searchQuery=>this.dorama.searchDorama(searchQuery).pipe((0,operators_1.finalize)(()=>this.isLoading=!1))),(0,operators_1.retry)(-1)).subscribe({next:res=>{this.gs.log("[BERKAS_CREATE_SEARCH_DORAMA_RESULT_SUCCESS]",res);for(const r of res.results)r.mdl_id=r.mdl_id.split("-")[1],r.image_url=r.thumb;this.filteredDorama=res.results},error:err=>{this.gs.log("[BERKAS_CREATE_SEARCH_DORAMA_RESULT_ERROR]",err,"error")}}),this.subsProjectDetail=this.fg.get("projectType_id").valueChanges.pipe((0,operators_1.debounceTime)(500),(0,operators_1.distinctUntilChanged)(),(0,operators_1.retry)(-1)).subscribe({next:projectId=>{this.gs.log("[BERKAS_CREATE_PROJECT_CHANGED]",projectId);const selectedProject=this.projectList.find(p=>p.id===projectId);this.fg.controls.anime_id.patchValue(null),this.fg.controls.anime_name.patchValue(null),this.fg.controls.dorama_id.patchValue(null),this.fg.controls.dorama_name.patchValue(null),this.fg.controls.anime_id.setErrors(null),this.fg.controls.anime_name.setErrors(null),this.fg.controls.dorama_id.setErrors(null),this.fg.controls.dorama_name.setErrors(null),this.fg.controls.anime_id.clearValidators(),this.fg.controls.anime_name.clearValidators(),this.fg.controls.dorama_id.clearValidators(),this.fg.controls.dorama_name.clearValidators(),this.fg.controls.anime_id.markAsPristine(),this.fg.controls.anime_name.markAsPristine(),this.fg.controls.dorama_id.markAsPristine(),this.fg.controls.dorama_name.markAsPristine(),this.fg.controls.anime_id.markAsUntouched(),this.fg.controls.anime_name.markAsUntouched(),this.fg.controls.dorama_id.markAsUntouched(),this.fg.controls.dorama_name.markAsUntouched(),selectedProject.name.toLowerCase().includes("anime")?(this.berkasType=selectedProject.name,this.fg.controls.anime_id.setValidators([forms_1.Validators.required,forms_1.Validators.pattern(/^\d+$/)]),this.fg.controls.anime_name.setValidators([forms_1.Validators.required])):selectedProject.name.toLowerCase().includes("dorama")?(this.berkasType=selectedProject.name,this.fg.controls.dorama_id.setValidators([forms_1.Validators.required,forms_1.Validators.pattern(/^\d+$/)]),this.fg.controls.dorama_name.setValidators([forms_1.Validators.required])):this.berkasType="",this.fg.controls.anime_id.updateValueAndValidity(),this.fg.controls.anime_name.updateValueAndValidity(),this.fg.controls.dorama_id.updateValueAndValidity(),this.fg.controls.dorama_name.updateValueAndValidity()}})}get getDownloadUrlControl(){return this.fg.get("download_url")}createDownloadLink(){return this.fb.group({name:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],url:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])]})}removeDownloadLink(i31){this.getDownloadUrlControl.removeAt(i31)}addDownloadLink(){this.getDownloadUrlControl.push(this.createDownloadLink())}get getFansubControl(){return this.fg.get("fansub_list")}createFansub(){const fbGroup=this.fb.group({fansub_id:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(/^\d+$/)])],fansub_name:[null,forms_1.Validators.compose([forms_1.Validators.required])]});return this.subsFansubDetail.push(fbGroup.get("fansub_id").valueChanges.pipe((0,operators_1.debounceTime)(500),(0,operators_1.distinctUntilChanged)(),(0,operators_1.tap)(()=>this.isLoading=!0),(0,operators_1.switchMap)(searchQuery=>this.fansub.searchFansub(searchQuery).pipe((0,operators_1.finalize)(()=>this.isLoading=!1))),(0,operators_1.retry)(-1)).subscribe({next:res=>{this.gs.log("[BERKAS_CREATE_SEARCH_FANSUB_RESULT]",res),this.filteredFansub=res.results}})),fbGroup}removeFansub(i31){var _a;this.getFansubControl.removeAt(i31),null===(_a=this.subsFansubDetail[i31])||void 0===_a||_a.unsubscribe(),this.subsFansubDetail.splice(i31,1)}addFansub(){this.getFansubControl.push(this.createFansub())}resetSelectedAnime(){this.fg.controls.anime_name.patchValue(null)}resetSelectedDorama(){this.fg.controls.dorama_name.patchValue(null)}resetSelectedFansub(i31){this.getFansubControl.controls[i31].get("fansub_name").patchValue(null)}filterAnimeSelected(data){var _a;this.gs.log("[ANIME_FILTER_CLICK]",data),this.submitted=!0,this.subsAnimeNew=this.anime.addNewAnime({id:data.id,name:data.title,image_url:data.image_url,type:null===(_a=data.media_type)||void 0===_a?void 0:_a.toUpperCase()}).subscribe({next:res=>{this.gs.log("[ANIME_CHECK_ADD_SUCCESS]",res),this.animeCheckOrAddResponse=res.result,this.submitted=!1,this.fg.controls.anime_id.patchValue(res.result.id),this.fg.controls.anime_name.patchValue(res.result.name)},error:err=>{this.gs.log("[ANIME_CHECK_ADD_ERROR]",err,"error"),this.submitted=!1,this.resetSelectedAnime(),this.fg.controls.anime_id.patchValue(null),this.fg.controls.anime_name.patchValue(null)}})}filterDoramaSelected(data){this.gs.log("[DORAMA_FILTER_CLICK]",data),this.submitted=!0,this.subsDoramaNew=this.dorama.addNewDorama({id:parseInt(data.mdl_id,10),slug:data.slug,name:data.title,image_url:data.image_url,type:data.type}).subscribe({next:res=>{this.gs.log("[DORAMA_CHECK_ADD_SUCCESS]",res),this.doramaCheckOrAddResponse=res.result,this.submitted=!1,this.fg.controls.dorama_id.patchValue(res.result.id),this.fg.controls.dorama_name.patchValue(res.result.name)},error:err=>{this.gs.log("[DORAMA_CHECK_ADD_ERROR]",err,"error"),this.submitted=!1,this.resetSelectedDorama(),this.fg.controls.dorama_id.patchValue(null),this.fg.controls.dorama_name.patchValue(null)}})}filterFansubSelected(data,i31){this.gs.log("[FANSUB_FILTER_CLICK]",data),this.getFansubControl.controls[i31].get("fansub_id").patchValue(data.id),this.getFansubControl.controls[i31].get("fansub_name").patchValue(data.name)}uploadImage(event,gambar){this.gambar=gambar,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null);const file2=event.target.files[0];try{const reader=new FileReader;reader.readAsDataURL(file2),reader.onload=e=>{if(this.gs.log("[IMAGE_SELECTED]",e),file2.size<=constants_1.CONSTANTS.fileSizeImageLimit){const img=this.gs.document.createElement("img");img.onload=()=>{this.image=file2,this.image_url=reader.result.toString()},img.src=reader.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=constants_1.CONSTANTS.fileSizeImageLimit,this.gambar.clear(event)}}catch{this.image=null,this.image_url="/assets/img/form/no-image.png",this.gambar.clear(event)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:res=>{this.gs.log("[IMAGE_SUCCESS]",res),this.fg.controls.image.patchValue(res.result.url),this.submitted=!1},error:err=>{var _a;this.gs.log("[IMAGE_ERROR]",err,"error"),this.fg.controls.image.patchValue(null),this.submitted=!1,this.imageErrorText=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info}})}onSubmit(){var _a;if(this.bs.busy(),this.submitted=!0,this.fg.invalid||"uploading"===(null===(_a=this.attachmentSelected)||void 0===_a?void 0:_a.status))return this.submitted=!1,void this.bs.idle();if(null===this.fg.value.attachment_id&&0===this.fg.value.download_url.lenth)return this.submitted=!1,this.uploadToast=this.toast.warning("Lampiran DDL / URL Eksternal!","Harap Mengisi Setidaknya Salah Satu ..."),void this.bs.idle();const fansubId=[];for(const fs of this.fg.value.fansub_list)fansubId.push(fs.fansub_id);this.subsBerkasCreate=this.berkas.createBerkas({image:this.fg.value.image,name:this.fg.value.name,description:this.fg.value.description,private:this.fg.value.private,permanent_storage:this.fg.value.permanent_storage,projectType_id:this.fg.value.projectType_id,anime_id:this.fg.value.anime_id,dorama_id:this.fg.value.dorama_id,fansub_id:fansubId,download_url:this.fg.value.download_url,attachment_id:this.fg.value.attachment_id}).subscribe({next:res=>{this.gs.log("[BERKAS_CREATE_SUCCESS]",res),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl("/berkas")},error:err=>{this.gs.log("[BERKAS_CREATE_ERROR]",err,"error"),this.submitted=!1,this.bs.idle()}})}uploadAttachment(event,ddl){this.ddl=ddl;const file2=event.target.files[0];this.attachmentLimitExceeded=null,this.attachmentErrorText=null,this.gs.log("[ATTACHMENT_SELECTED]",file2),this.fg.controls.attachment_id.patchValue(null),this.uploadService.disconnect();try{file2.size<=constants_1.CONSTANTS.fileSizeAttachmentTotalLimit?this.uploadService.handleFiles(file2):(this.attachmentLimitExceeded=constants_1.CONSTANTS.fileSizeAttachmentTotalLimit,this.ddl.clear(event))}catch{this.ddl.clear(event)}}submitAttachment(item){const uploader=this.uploadService.state().find(x=>x.uploadId===item.uploadId);uploader&&(this.attachmentSelected=uploader,item.status="queue")}failOrCancelUpload(err=null){var _a,_b;this.attachmentSelected=null,this.attachmentErrorText=(null===(_a=null==err?void 0:err.result)||void 0===_a?void 0:_a.message)||(null==err?void 0:err.info)||(null===(_b=null==err?void 0:err.error)||void 0===_b?void 0:_b.message)||"Terjadi Kesalahan, Harap Reload Halaman!",this.uploadService.disconnect(),this.fg.controls.attachment_id.patchValue(null),this.uploadToast&&this.toast.remove(this.uploadToast.toastId),this.ddl.clear()}verify(){this.router.navigate(["/verify"],{queryParams:{returnUrl:this.router.url.split("?")[0]}})}}__name(BerkasCreateComponent,"BerkasCreateComponent"),exports2.BerkasCreateComponent=BerkasCreateComponent,BerkasCreateComponent.\u0275fac=__name(function(t){return new(t||BerkasCreateComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.FormBuilder),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.PageInfoService),i0.\u0275\u0275directiveInject(i5.AnimeService),i0.\u0275\u0275directiveInject(i6.DoramaService),i0.\u0275\u0275directiveInject(i7.ProjectService),i0.\u0275\u0275directiveInject(i8.FansubService),i0.\u0275\u0275directiveInject(i9.BerkasService),i0.\u0275\u0275directiveInject(i10.ImgbbService),i0.\u0275\u0275directiveInject(i11.ToastService),i0.\u0275\u0275directiveInject(i12.GlobalService),i0.\u0275\u0275directiveInject(i13.AuthService),i0.\u0275\u0275directiveInject(i14.UploadxService))},"BerkasCreateComponent_Factory"),BerkasCreateComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:BerkasCreateComponent,selectors:[["app-berkas-create"]],decls:5,vars:1,consts:[[1,"container"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"float-end","text-decoration-none","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],["class","col-12",4,"ngIf"],["class","col-12 mb-4",4,"ngIf"],["class","col-12 p-3",4,"ngIf"],["appearance","outline",1,"p-3","col-12",3,"color"],["formControlName","projectType_id","placeholder","Anime / Drama","required",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["appearance","outline","class","p-3 w-100",3,"color",4,"ngIf"],[1,"col-12","p-3"],["formArrayName","fansub_list"],[4,"ngFor","ngForOf"],[1,"col-12","mb-4"],[1,"col"],["mat-raised-button","","color","primary","type","button",1,"w-100",3,"disabled","click"],[1,"me-1"],[1,"col-12","col-md-7","col-xl-8","pt-3"],["matInput","","formControlName","name","placeholder","[Fansub] Judul Anime - 00 [BD 4K x265 FLAC][CRC32].mkv","required",""],["matSuffix",""],["class","p-3 w-100","formControlName","description",3,"config",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["ddlVerified",""],["ddlNotVerified",""],["formArrayName","download_url"],[1,"row","mb-4"],[1,"col-12","py-3"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","/berkas",1,"w-100",3,"disabled"],["mat-flat-button","","color","accent","type","submit",1,"w-100",3,"disabled"],[1,"ms-1"],[1,"w-100","border",3,"src"],["appearance","outline",1,"pt-3","w-100",3,"color"],[1,"w-100",3,"disabled","accept","change"],["gambar",""],[1,"px-3","w-100"],["formControlName","private","matTooltip","Hanya diakses melalui profil dan/atau url"],["formControlName","permanent_storage","matTooltip","Berkas terjamin tidak akan hilang / expired"],[3,"value"],["appearance","outline",1,"p-3","w-100",3,"color"],["matInput","","formControlName","anime_id","placeholder","Full Metal Alchemist",3,"matAutocomplete","keyup"],["autoCompleteAnime","matAutocomplete"],["class","is-loading",4,"ngIf"],["class","text-warning",4,"ngIf"],[1,"is-loading"],["mode","indeterminate"],["class","px-1",3,"value","click",4,"ngFor","ngForOf"],[1,"px-1",3,"value","click"],[1,"me-1",2,"height","40px","width","30px","object-fit","cover",3,"src"],[1,"text-warning"],["matInput","","formControlName","dorama_id","placeholder","Flying Colors",3,"matAutocomplete","keyup"],["autoCompleteDorama","matAutocomplete"],[1,"row",3,"formGroupName"],["matInput","","formControlName","fansub_id","placeholder","NamaFansub","required","",3,"matAutocomplete","keyup"],["matSuffix","",4,"ngIf"],["mat-button","","matSuffix","","mat-icon-button","",3,"click",4,"ngIf"],["autoCompleteFansub","matAutocomplete"],["mat-button","","matSuffix","","mat-icon-button","",3,"click"],[1,"me-1",2,"height","40px","width","40px","object-fit","cover",3,"src"],["formControlName","description",1,"p-3","w-100",3,"config"],[1,"col-12","px-3"],[1,"text-success"],["appearance","outline",1,"px-3","pt-3","col",3,"color"],["uploadx","",1,"w-100",3,"disabled","accept","change"],["ddl",""],[1,"px-4","w-100"],["class","row mb-4",4,"ngFor","ngForOf"],[1,"px-3"],[3,"mode","value"],[1,"col-6","col-lg-4"],["mat-stroked-button","","color","accent",1,"w-100",3,"click"],["matTooltip","Silahkan Isi Alamat Website Kamu Jika Ingin Mendapatkan Traffic Pengunjung",1,"row",3,"formGroupName"],["appearance","outline",1,"p-3","col-12","col-md-5",3,"color"],["matInput","","formControlName","name","placeholder","Google Drive","required",""],["appearance","outline",1,"p-3","col-12","col-md-7",3,"color"],["matInput","","formControlName","url","placeholder","https://webshit.saya.com/01/02/halaman-post-download.html","required",""]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2),i0.\u0275\u0275template(4,BerkasCreateComponent_form_4_Template,86,25,"form",3),i0.\u0275\u0275elementEnd()()()),2&rf&&(i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",ctx.fg))},"BerkasCreateComponent_Template"),directives:[i15.NotificationsComponent,i16.NgIf,i2.\u0275NgNoValidate,i2.NgControlStatusGroup,i2.FormGroupDirective,i17.MatFormField,i17.MatLabel,i18.FileInputComponent,i19.MatIcon,i17.MatSuffix,i17.MatError,i20.MatButton,i21.MatSlideToggle,i2.NgControlStatus,i2.FormControlName,i22.MatTooltip,i23.MatSelect,i2.RequiredValidator,i16.NgForOf,i24.MatOption,i25.MatInput,i2.DefaultValueAccessor,i26.MatAutocompleteTrigger,i26.MatAutocomplete,i27.MatProgressBar,i28.MatDivider,i2.FormArrayName,i2.FormGroupName,i29.AngularEditorComponent,i20.MatAnchor,i1.RouterLinkWithHref],pipes:[i30.BytesPipe,i16.AsyncPipe],styles:[""]})},955:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CreateModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),angular_editor_1=__webpack_require__2(29345),ngx_material_file_input_1=__webpack_require__2(21385),constants_1=__webpack_require__2(26271),req_res_model_1=__webpack_require__2(14249),roles_guard_1=__webpack_require__2(2777),verified_guard_1=__webpack_require__2(55094),shared_material_module_1=__webpack_require__2(20210),custom_pipe_module_1=__webpack_require__2(67355),notifications_module_1=__webpack_require__2(88613),berkas_create_component_1=__webpack_require__2(62331),fansub_create_component_1=__webpack_require__2(79961),mailbox_create_component_1=__webpack_require__2(90808),news_create_component_1=__webpack_require__2(38656),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",redirectTo:"/home"},{path:"berkas",component:berkas_create_component_1.BerkasCreateComponent,data:{title:"Berkas - Buat Baru",description:"Halaman Unggah Berkas Baru",keywords:"Tambah Berkas Baru"}},{path:"fansub",component:fansub_create_component_1.FansubCreateComponent,canActivate:[verified_guard_1.VerifiedGuard],data:{title:"Fansub - Buat Baru",description:"Halaman Menambahkan Fansub Baru",keywords:"Create Fansub",[constants_1.CONSTANTS.decoratorVerifiedOnly]:!0}},{path:"mailbox",component:mailbox_create_component_1.MailboxCreateComponent,canActivate:[verified_guard_1.VerifiedGuard],data:{title:"Surel - Buat Baru",description:"Halaman Kirim Surel Baru",keywords:"Buat Surel Baru",[constants_1.CONSTANTS.decoratorVerifiedOnly]:!0}},{path:"news",component:news_create_component_1.NewsCreateComponent,canActivate:[verified_guard_1.VerifiedGuard,roles_guard_1.RolesGuard],data:{title:"Berita - Buat Baru",description:"Halaman Unggah Berita Baru",keywords:"Tambah Berita Baru",[constants_1.CONSTANTS.decoratorVerifiedOnly]:!0,[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR]}}]);class CreateModule{}__name(CreateModule,"CreateModule"),exports2.CreateModule=CreateModule,CreateModule.\u0275fac=__name(function(t){return new(t||CreateModule)},"CreateModule_Factory"),CreateModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:CreateModule}),CreateModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),shared_material_module_1.SharedMaterialModule,forms_1.FormsModule,forms_1.ReactiveFormsModule,ngx_material_file_input_1.MaterialFileInputModule,notifications_module_1.NotificationsModule,angular_editor_1.AngularEditorModule,custom_pipe_module_1.CustomPipeModule]]})},79961:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubCreateComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),operators_1=(__webpack_require__2(74202),__webpack_require__2(83292)),constants_1=__webpack_require__2(26271),i0=(__webpack_require__2(80855),__webpack_require__2(18745),__webpack_require__2(76781),__webpack_require__2(33e3),__webpack_require__2(67902),__webpack_require__2(96925),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(93075)),i2=tslib_1.__importStar(__webpack_require__2(74202)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(18745)),i5=tslib_1.__importStar(__webpack_require__2(67902)),i6=tslib_1.__importStar(__webpack_require__2(76781)),i7=tslib_1.__importStar(__webpack_require__2(96925)),i8=tslib_1.__importStar(__webpack_require__2(80855)),i9=tslib_1.__importStar(__webpack_require__2(69808)),i10=tslib_1.__importStar(__webpack_require__2(8616)),i11=tslib_1.__importStar(__webpack_require__2(67322)),i12=tslib_1.__importStar(__webpack_require__2(21385)),i13=tslib_1.__importStar(__webpack_require__2(25245)),i14=tslib_1.__importStar(__webpack_require__2(47423)),i15=tslib_1.__importStar(__webpack_require__2(77531)),i16=tslib_1.__importStar(__webpack_require__2(29345)),i17=tslib_1.__importStar(__webpack_require__2(86856)),i18=tslib_1.__importStar(__webpack_require__2(74107)),i19=tslib_1.__importStar(__webpack_require__2(90508)),i20=tslib_1.__importStar(__webpack_require__2(26688)),i21=tslib_1.__importStar(__webpack_require__2(23626));function FansubCreateComponent_div_0_form_7_div_21_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Ukuran Upload Melebihi Batas ",i0.\u0275\u0275pipeBind1(2,1,ctx_r3.imageLimitExceeded)," !")}}function FansubCreateComponent_div_0_form_7_div_22_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r4=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r4.imageErrorText)}}function FansubCreateComponent_div_0_form_7_div_23_Template(rf,ctx){if(1&rf){const _r29=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",6)(1,"button",60),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r29),i0.\u0275\u0275nextContext(3).submitImage()},"FansubCreateComponent_div_0_form_7_div_23_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",57),i0.\u0275\u0275text(3,"add_photo_alternate"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Unggah "),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r5=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",ctx_r5.submitted)}}function FansubCreateComponent_div_0_form_7_div_35_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r7=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Ukuran Upload Melebihi Batas ",i0.\u0275\u0275pipeBind1(2,1,ctx_r7.coverLimitExceeded)," !")}}function FansubCreateComponent_div_0_form_7_div_36_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r8=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r8.coverErrorText)}}function FansubCreateComponent_div_0_form_7_div_37_Template(rf,ctx){if(1&rf){const _r31=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",61)(1,"button",60),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r31),i0.\u0275\u0275nextContext(3).submitCover()},"FansubCreateComponent_div_0_form_7_div_37_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",57),i0.\u0275\u0275text(3,"add_photo_alternate"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Unggah "),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r9=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",ctx_r9.submitted)}}function FansubCreateComponent_div_0_form_7_div_45_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Nama Fansub Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function FansubCreateComponent_div_0_form_7_div_46_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Nama Fansub Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function FansubCreateComponent_div_0_form_7_small_53_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"small",62)(1,"div"),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r12=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(ctx_r12.slugInfo)}}function FansubCreateComponent_div_0_form_7_div_55_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Singkatan Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function FansubCreateComponent_div_0_form_7_div_56_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Singkatan Hanya Boleh Huruf Dan \u4e00"),i0.\u0275\u0275elementEnd())}function FansubCreateComponent_div_0_form_7_div_67_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Tanggal Harus Diisi Secara Valid"),i0.\u0275\u0275elementEnd())}function FansubCreateComponent_div_0_form_7_div_68_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Tanggal Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function FansubCreateComponent_div_0_form_7_div_80_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Mohon Pilih Salah Satu"),i0.\u0275\u0275elementEnd())}function FansubCreateComponent_div_0_form_7_div_81_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Status Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function FansubCreateComponent_div_0_form_7_mat_chip_90_Template(rf,ctx){if(1&rf){const _r34=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-chip",63),i0.\u0275\u0275listener("removed",__name(function(){const t_r32=i0.\u0275\u0275restoreView(_r34).$implicit;return i0.\u0275\u0275nextContext(3).removeTag(t_r32)},"FansubCreateComponent_div_0_form_7_mat_chip_90_Template_mat_chip_removed_0_listener")),i0.\u0275\u0275text(1),i0.\u0275\u0275elementStart(2,"mat-icon",64),i0.\u0275\u0275text(3,"cancel"),i0.\u0275\u0275elementEnd()()}if(2&rf){const t_r32=ctx.$implicit;i0.\u0275\u0275property("removable",!0),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",t_r32," ")}}function FansubCreateComponent_div_0_form_7_div_106_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Website Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function FansubCreateComponent_div_0_form_7_div_107_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Website Link Tidak Valid"),i0.\u0275\u0275elementEnd())}function FansubCreateComponent_div_0_form_7_div_115_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Facebook Link Tidak Valid"),i0.\u0275\u0275elementEnd())}function FansubCreateComponent_div_0_form_7_div_123_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Discord Link Tidak Valid"),i0.\u0275\u0275elementEnd())}function FansubCreateComponent_div_0_form_7_div_131_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Twitter Link Tidak Valid"),i0.\u0275\u0275elementEnd())}function FansubCreateComponent_div_0_form_7_div_140_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"RSS Link Tidak Valid"),i0.\u0275\u0275elementEnd())}function FansubCreateComponent_div_0_form_7_Template(rf,ctx){if(1&rf){const _r36=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",8),i0.\u0275\u0275listener("submit",__name(function(){return i0.\u0275\u0275restoreView(_r36),i0.\u0275\u0275nextContext(2).onSubmit()},"FansubCreateComponent_div_0_form_7_Template_form_submit_0_listener")),i0.\u0275\u0275elementStart(1,"div",9)(2,"div",10)(3,"h2",11)(4,"b",12),i0.\u0275\u0275text(5,"Tambah Data Fansub Baru"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(6,"div",6)(7,"div",13)(8,"div",14)(9,"div",13)(10,"div",6),i0.\u0275\u0275element(11,"img",15),i0.\u0275\u0275elementStart(12,"mat-form-field",16)(13,"mat-label"),i0.\u0275\u0275text(14,"Foto"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(15,"ngx-mat-file-input",17,18),i0.\u0275\u0275listener("change",__name(function($event){i0.\u0275\u0275restoreView(_r36);const _r2=i0.\u0275\u0275reference(16);return i0.\u0275\u0275nextContext(2).uploadImage($event,_r2)},"FansubCreateComponent_div_0_form_7_Template_ngx_mat_file_input_change_15_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(17,"mat-icon",19),i0.\u0275\u0275text(18,"image"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(19,"mat-error",20)(20,"small"),i0.\u0275\u0275template(21,FansubCreateComponent_div_0_form_7_div_21_Template,3,3,"div",21),i0.\u0275\u0275template(22,FansubCreateComponent_div_0_form_7_div_22_Template,2,1,"div",21),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(23,FansubCreateComponent_div_0_form_7_div_23_Template,5,1,"div",22),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(24,"div",23)(25,"div",13)(26,"mat-form-field",24)(27,"mat-label"),i0.\u0275\u0275text(28,"Cover"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(29,"ngx-mat-file-input",17,25),i0.\u0275\u0275listener("change",__name(function($event){i0.\u0275\u0275restoreView(_r36);const _r6=i0.\u0275\u0275reference(30);return i0.\u0275\u0275nextContext(2).uploadCover($event,_r6)},"FansubCreateComponent_div_0_form_7_Template_ngx_mat_file_input_change_29_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(31,"mat-icon",19),i0.\u0275\u0275text(32,"image"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(33,"mat-error",20)(34,"small"),i0.\u0275\u0275template(35,FansubCreateComponent_div_0_form_7_div_35_Template,3,3,"div",21),i0.\u0275\u0275template(36,FansubCreateComponent_div_0_form_7_div_36_Template,2,1,"div",21),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(37,FansubCreateComponent_div_0_form_7_div_37_Template,5,1,"div",26),i0.\u0275\u0275elementStart(38,"mat-form-field",27)(39,"mat-label"),i0.\u0275\u0275text(40,"Nama Fansub"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(41,"input",28),i0.\u0275\u0275elementStart(42,"mat-icon",19),i0.\u0275\u0275text(43,"wysiwyg"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(44,"mat-error"),i0.\u0275\u0275template(45,FansubCreateComponent_div_0_form_7_div_45_Template,2,0,"div",21),i0.\u0275\u0275template(46,FansubCreateComponent_div_0_form_7_div_46_Template,2,0,"div",21),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(47,"mat-form-field",29)(48,"mat-label"),i0.\u0275\u0275text(49,"Singkatan"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(50,"input",30),i0.\u0275\u0275elementStart(51,"mat-icon",19),i0.\u0275\u0275text(52,"short_text"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(53,FansubCreateComponent_div_0_form_7_small_53_Template,3,1,"small",31),i0.\u0275\u0275elementStart(54,"mat-error"),i0.\u0275\u0275template(55,FansubCreateComponent_div_0_form_7_div_55_Template,2,0,"div",21),i0.\u0275\u0275template(56,FansubCreateComponent_div_0_form_7_div_56_Template,2,0,"div",21),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275element(57,"angular-editor",32),i0.\u0275\u0275elementStart(58,"mat-form-field",33)(59,"mat-label"),i0.\u0275\u0275text(60,"Mulai Ada Sejak"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(61,"input",34),i0.\u0275\u0275listener("focus",__name(function(){return i0.\u0275\u0275restoreView(_r36),i0.\u0275\u0275reference(65).open()},"FansubCreateComponent_div_0_form_7_Template_input_focus_61_listener")),i0.\u0275\u0275pipe(62,"date"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(63,"mat-datepicker-toggle",35)(64,"mat-datepicker",36,37),i0.\u0275\u0275elementStart(66,"mat-error"),i0.\u0275\u0275template(67,FansubCreateComponent_div_0_form_7_div_67_Template,2,0,"div",21),i0.\u0275\u0275template(68,FansubCreateComponent_div_0_form_7_div_68_Template,2,0,"div",21),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(69,"mat-form-field",33)(70,"mat-label"),i0.\u0275\u0275text(71,"Status"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(72,"mat-select",38)(73,"mat-option",39),i0.\u0275\u0275text(74,"Tidak Aktif"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(75,"mat-option",40),i0.\u0275\u0275text(76,"Aktif"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(77,"mat-hint",41),i0.\u0275\u0275text(78,"Status Kehidupan Fansub Saat Ini"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(79,"mat-error"),i0.\u0275\u0275template(80,FansubCreateComponent_div_0_form_7_div_80_Template,2,0,"div",21),i0.\u0275\u0275template(81,FansubCreateComponent_div_0_form_7_div_81_Template,2,0,"div",21),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275elementStart(82,"div",13)(83,"div",6)(84,"div",13)(85,"mat-form-field",42)(86,"mat-label"),i0.\u0275\u0275text(87,"Tags & Kategori"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(88,"mat-chip-list",null,43),i0.\u0275\u0275template(90,FansubCreateComponent_div_0_form_7_mat_chip_90_Template,4,2,"mat-chip",44),i0.\u0275\u0275elementStart(91,"input",45),i0.\u0275\u0275listener("matChipInputTokenEnd",__name(function($event){return i0.\u0275\u0275restoreView(_r36),i0.\u0275\u0275nextContext(2).addTag($event)},"FansubCreateComponent_div_0_form_7_Template_input_matChipInputTokenEnd_91_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(92,"mat-icon",19),i0.\u0275\u0275text(93,"loyalty"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(94,"mat-hint",41),i0.\u0275\u0275text(95,"Isi Dengan Bebas, Pisahkan Dengan Koma"),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275elementStart(96,"div",13)(97,"div",6)(98,"div",13)(99,"mat-form-field",46)(100,"mat-label"),i0.\u0275\u0275text(101,"Tautan Website"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(102,"input",47),i0.\u0275\u0275elementStart(103,"mat-icon",19),i0.\u0275\u0275text(104,"web"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(105,"mat-error"),i0.\u0275\u0275template(106,FansubCreateComponent_div_0_form_7_div_106_Template,2,0,"div",21),i0.\u0275\u0275template(107,FansubCreateComponent_div_0_form_7_div_107_Template,2,0,"div",21),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(108,"mat-form-field",46)(109,"mat-label"),i0.\u0275\u0275text(110,"Facebook Fanpage"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(111,"input",48),i0.\u0275\u0275elementStart(112,"mat-icon",19),i0.\u0275\u0275text(113,"facebook"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(114,"mat-error"),i0.\u0275\u0275template(115,FansubCreateComponent_div_0_form_7_div_115_Template,2,0,"div",21),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(116,"mat-form-field",46)(117,"mat-label"),i0.\u0275\u0275text(118,"Tautan Discord"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(119,"input",49),i0.\u0275\u0275elementStart(120,"mat-icon",19),i0.\u0275\u0275element(121,"img",50),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(122,"mat-error"),i0.\u0275\u0275template(123,FansubCreateComponent_div_0_form_7_div_123_Template,2,0,"div",21),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(124,"mat-form-field",46)(125,"mat-label"),i0.\u0275\u0275text(126,"Cuitan Twitter"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(127,"input",51),i0.\u0275\u0275elementStart(128,"mat-icon",19),i0.\u0275\u0275element(129,"img",50),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(130,"mat-error"),i0.\u0275\u0275template(131,FansubCreateComponent_div_0_form_7_div_131_Template,2,0,"div",21),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275elementStart(132,"div",13)(133,"mat-form-field",42)(134,"mat-label"),i0.\u0275\u0275text(135,"URI / URL RSS v2.0 Feed"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(136,"input",52),i0.\u0275\u0275elementStart(137,"mat-icon",19),i0.\u0275\u0275text(138,"rss_feed"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(139,"mat-error"),i0.\u0275\u0275template(140,FansubCreateComponent_div_0_form_7_div_140_Template,2,0,"div",21),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(141,"div",13)(142,"div",6)(143,"div",53),i0.\u0275\u0275element(144,"div",54),i0.\u0275\u0275elementStart(145,"div",55)(146,"a",56)(147,"mat-icon",57),i0.\u0275\u0275text(148,"undo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(149," Batal "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(150,"div",55)(151,"button",58),i0.\u0275\u0275text(152," Simpan "),i0.\u0275\u0275elementStart(153,"mat-icon",59),i0.\u0275\u0275text(154,"save"),i0.\u0275\u0275elementEnd()()()()()()()()()}if(2&rf){const _r15=i0.\u0275\u0275reference(65),_r20=i0.\u0275\u0275reference(89),ctx_r1=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("formGroup",ctx_r1.fg),i0.\u0275\u0275advance(11),i0.\u0275\u0275property("src",ctx_r1.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("disabled",ctx_r1.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r1.imageLimitExceeded),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.imageErrorText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.image&&!ctx_r1.fg.value.image),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("disabled",ctx_r1.fg.value.cover)("accept","image/gif, image/jpeg, image/jpg, image/png"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r1.coverLimitExceeded),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.coverErrorText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.cover&&!ctx_r1.fg.value.cover),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("name").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("name").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r1.slugInfo),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("slug").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("slug").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("config",ctx_r1.GS.angularEditorConfig),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275propertyInterpolate("placeholder",i0.\u0275\u0275pipeBind2(62,51,ctx_r1.currentDate,"d MMMM y")),i0.\u0275\u0275property("matDatepicker",_r15),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("for",_r15),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("born").hasError("required")||ctx_r1.fg.get("born").hasError("matDatepickerParse")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("born").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(11),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("active").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("active").hasError("pattern")),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngForOf",ctx_r1.fg.value.tags),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matChipInputSeparatorKeyCodes",ctx_r1.GS.separatorKeysCodes)("matChipInputFor",_r20)("matChipInputAddOnBlur",!0),i0.\u0275\u0275advance(8),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("web").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("web").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("facebook").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(5),i0.\u0275\u0275propertyInterpolate1("src","/assets/img/discord/",ctx_r1.GS.isDarkMode?"white":"black",".png",i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("discord").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(5),i0.\u0275\u0275propertyInterpolate1("src","/assets/img/twitter/",ctx_r1.GS.isDarkMode?"white":"black",".png",i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("twitter").hasError("pattern")),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("rss_feed").hasError("pattern")),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("disabled",ctx_r1.submitted),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r1.submitted||ctx_r1.fg.invalid)}}function FansubCreateComponent_div_0_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",1),i0.\u0275\u0275element(1,"div",2)(2,"div",3)(3,"div",4)(4,"app-notifications"),i0.\u0275\u0275elementStart(5,"div",5)(6,"div",6),i0.\u0275\u0275template(7,FansubCreateComponent_div_0_form_7_Template,155,54,"form",7),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275styleProp("background-image","url("+ctx_r0.cover_url+")"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r0.fg)}}__name(FansubCreateComponent_div_0_form_7_div_21_Template,"FansubCreateComponent_div_0_form_7_div_21_Template"),__name(FansubCreateComponent_div_0_form_7_div_22_Template,"FansubCreateComponent_div_0_form_7_div_22_Template"),__name(FansubCreateComponent_div_0_form_7_div_23_Template,"FansubCreateComponent_div_0_form_7_div_23_Template"),__name(FansubCreateComponent_div_0_form_7_div_35_Template,"FansubCreateComponent_div_0_form_7_div_35_Template"),__name(FansubCreateComponent_div_0_form_7_div_36_Template,"FansubCreateComponent_div_0_form_7_div_36_Template"),__name(FansubCreateComponent_div_0_form_7_div_37_Template,"FansubCreateComponent_div_0_form_7_div_37_Template"),__name(FansubCreateComponent_div_0_form_7_div_45_Template,"FansubCreateComponent_div_0_form_7_div_45_Template"),__name(FansubCreateComponent_div_0_form_7_div_46_Template,"FansubCreateComponent_div_0_form_7_div_46_Template"),__name(FansubCreateComponent_div_0_form_7_small_53_Template,"FansubCreateComponent_div_0_form_7_small_53_Template"),__name(FansubCreateComponent_div_0_form_7_div_55_Template,"FansubCreateComponent_div_0_form_7_div_55_Template"),__name(FansubCreateComponent_div_0_form_7_div_56_Template,"FansubCreateComponent_div_0_form_7_div_56_Template"),__name(FansubCreateComponent_div_0_form_7_div_67_Template,"FansubCreateComponent_div_0_form_7_div_67_Template"),__name(FansubCreateComponent_div_0_form_7_div_68_Template,"FansubCreateComponent_div_0_form_7_div_68_Template"),__name(FansubCreateComponent_div_0_form_7_div_80_Template,"FansubCreateComponent_div_0_form_7_div_80_Template"),__name(FansubCreateComponent_div_0_form_7_div_81_Template,"FansubCreateComponent_div_0_form_7_div_81_Template"),__name(FansubCreateComponent_div_0_form_7_mat_chip_90_Template,"FansubCreateComponent_div_0_form_7_mat_chip_90_Template"),__name(FansubCreateComponent_div_0_form_7_div_106_Template,"FansubCreateComponent_div_0_form_7_div_106_Template"),__name(FansubCreateComponent_div_0_form_7_div_107_Template,"FansubCreateComponent_div_0_form_7_div_107_Template"),__name(FansubCreateComponent_div_0_form_7_div_115_Template,"FansubCreateComponent_div_0_form_7_div_115_Template"),__name(FansubCreateComponent_div_0_form_7_div_123_Template,"FansubCreateComponent_div_0_form_7_div_123_Template"),__name(FansubCreateComponent_div_0_form_7_div_131_Template,"FansubCreateComponent_div_0_form_7_div_131_Template"),__name(FansubCreateComponent_div_0_form_7_div_140_Template,"FansubCreateComponent_div_0_form_7_div_140_Template"),__name(FansubCreateComponent_div_0_form_7_Template,"FansubCreateComponent_div_0_form_7_Template"),__name(FansubCreateComponent_div_0_Template,"FansubCreateComponent_div_0_Template");class FansubCreateComponent{constructor(fb,router,bs,pi,imgbb,fansub,toast,gs){this.fb=fb,this.router=router,this.bs=bs,this.pi=pi,this.imgbb=imgbb,this.fansub=fansub,this.toast=toast,this.gs=gs,this.submitted=!1,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.image_url="/assets/img/form/no-image.png",this.cover=null,this.coverLimitExceeded=null,this.coverErrorText=null,this.cover_url="/assets/img/form/no-image.png",this.urls=[],this.currentDate=new Date,this.gambar=null,this.gambar_=null,this.subsImgbb=null,this.subsFansub=null,this.subsCekFansubSlug=null,this.slugInfo="",this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}ngOnDestroy(){var _a,_b;null===(_a=this.subsImgbb)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsFansub)||void 0===_b||_b.unsubscribe()}ngOnInit(){this.pi.updatePageMetaData("Fansub - Buat Baru","Halaman Menambahkan Fansub Baru","Create Fansub"),this.gs.isBrowser&&this.initForm()}initForm(){this.fg=this.fb.group({name:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],description:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],born:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],active:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],slug:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(/^[0-9a-zA-Z-]*$/)])],tags:[[],forms_1.Validators.compose([])],image:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],cover:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],web:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],facebook:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],discord:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],twitter:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],rss_feed:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])]}),this.subsCekFansubSlug=this.fg.get("slug").valueChanges.pipe((0,operators_1.debounceTime)(500),(0,operators_1.distinctUntilChanged)(),(0,operators_1.tap)(()=>this.slugInfo="Mengecek ..."),(0,operators_1.switchMap)(slugQuery=>this.fansub.cekSlug({slug:slugQuery})),(0,operators_1.retry)(-1)).subscribe({next:res=>{this.gs.log("[FANSUB_CEK_SLUG_RESULT]",res),this.slugInfo=res.result.message}})}addTag(event){const input=event.input,value=event.value;(value||"").trim()&&this.fg.value.tags.push(value.trim()),input&&(input.value=""),this.fg.controls.tags.patchValue(this.fg.value.tags.filter((a,b2,c)=>c.findIndex(d=>d===a)===b2))}removeTag(tag){const index=this.fg.value.tags.indexOf(tag);index>=0&&this.fg.value.tags.splice(index,1)}uploadImage(event,gambar){this.gambar=gambar,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null);const file2=event.target.files[0];try{const reader=new FileReader;reader.readAsDataURL(file2),reader.onload=e=>{if(this.gs.log("[IMAGE_SELECTED]",e),file2.size<=constants_1.CONSTANTS.fileSizeImageLimit){const img=this.gs.document.createElement("img");img.onload=()=>{this.image=file2,this.image_url=reader.result.toString()},img.src=reader.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=constants_1.CONSTANTS.fileSizeImageLimit,this.gambar.clear(event)}}catch{this.image=null,this.image_url="/assets/img/form/no-image.png",this.gambar.clear(event)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:res=>{this.gs.log("[IMAGE_SUCCESS]",res),this.fg.controls.image.patchValue(res.result.url),this.submitted=!1},error:err=>{var _a;this.gs.log("[IMAGE_ERROR]",err,"error"),this.fg.controls.image.patchValue(null),this.submitted=!1,this.imageErrorText=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info}})}uploadCover(event,gambar_){this.gambar_=gambar_,this.cover=null,this.coverLimitExceeded=null,this.coverErrorText=null,this.fg.controls.cover.patchValue(null);const file2=event.target.files[0];try{const reader=new FileReader;reader.readAsDataURL(file2),reader.onload=e=>{if(this.gs.log("[COVER_SELECTED]",e),file2.size<=constants_1.CONSTANTS.fileSizeImageLimit){const img=this.gs.document.createElement("img");img.onload=()=>{this.cover=file2,this.cover_url=reader.result.toString()},img.src=reader.result.toString()}else this.cover=null,this.cover_url="/assets/img/form/image-error.png",this.coverLimitExceeded=constants_1.CONSTANTS.fileSizeImageLimit,this.gambar_.clear(event)}}catch{this.cover=null,this.cover_url="/assets/img/form/no-image.png",this.gambar_.clear(event)}}submitCover(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.cover}).subscribe({next:res=>{this.gs.log("[COVER_SUCCESS]",res),this.fg.controls.cover.patchValue(res.result.url),this.submitted=!1},error:err=>{var _a;this.gs.log("[COVER_ERROR]",err,"error"),this.fg.controls.cover.patchValue(null),this.submitted=!1,this.coverErrorText=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info}})}onSubmit(){this.bs.busy();const urls=[];if(this.fg.value.web&&urls.push({name:"web",url:this.fg.value.web}),this.fg.value.facebook&&urls.push({name:"facebook",url:this.fg.value.facebook}),this.fg.value.discord&&urls.push({name:"discord",url:this.fg.value.discord}),this.fg.value.twitter&&urls.push({name:"twitter",url:this.fg.value.twitter}),this.submitted=!0,this.fg.invalid||0===urls.length)return 0===urls.length&&this.toast.warning("Harap Isi Salah Satu URL","Form Tidak lengkap (Web/FB/DC)",null,!0),this.submitted=!1,void this.bs.idle();this.subsFansub=this.fansub.createFansub({image:this.fg.value.image,cover:this.fg.value.cover,name:this.fg.value.name,description:this.fg.value.description,born:this.fg.value.born.getTime(),active:this.fg.value.active,tags:this.fg.value.tags,slug:this.fg.value.slug,urls,rss_feed:this.fg.value.rss_feed}).subscribe({next:res=>{this.gs.log("[FANSUB_CREATE_SUCCESS]",res),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl("/fansub")},error:err=>{this.gs.log("[FANSUB_CREATE_ERROR]",err,"error"),this.submitted=!1,this.bs.idle()}})}}__name(FansubCreateComponent,"FansubCreateComponent"),exports2.FansubCreateComponent=FansubCreateComponent,FansubCreateComponent.\u0275fac=__name(function(t){return new(t||FansubCreateComponent)(i0.\u0275\u0275directiveInject(i1.FormBuilder),i0.\u0275\u0275directiveInject(i2.Router),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.PageInfoService),i0.\u0275\u0275directiveInject(i5.ImgbbService),i0.\u0275\u0275directiveInject(i6.FansubService),i0.\u0275\u0275directiveInject(i7.ToastService),i0.\u0275\u0275directiveInject(i8.GlobalService))},"FansubCreateComponent_Factory"),FansubCreateComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:FansubCreateComponent,selectors:[["app-fansub-create"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"fansub-banner","fansub-banner-1","align-items-center"],[1,"fansub-banner","fansub-banner-2","align-items-center"],[2,"padding-top","160px"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],[1,"w-100","border",3,"src"],["appearance","outline",1,"pt-3","w-100",3,"color"],[1,"w-100",3,"disabled","accept","change"],["gambar",""],["matSuffix",""],[1,"px-3","w-100"],[4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-12","col-md-7","col-xl-8","pt-3"],["appearance","outline",1,"px-3","pt-3","w-100",3,"color"],["gambar_",""],["class","col-12 p-3",4,"ngIf"],["appearance","outline",1,"p-3","col-12","col-md-7",3,"color"],["matInput","","formControlName","name","placeholder","Fansub Jalanan","required",""],["appearance","outline",1,"p-3","col-12","col-md-5",3,"color"],["matInput","","formControlName","slug","placeholder","Jalsub","required",""],["class","text-info",4,"ngIf"],["formControlName","description","required","",1,"p-3","w-100",3,"config"],["appearance","outline",1,"p-3","col-12","col-md-6",3,"color"],["matInput","","formControlName","born","required","",3,"matDatepicker","placeholder","focus"],["matSuffix","",3,"for"],["disabled","false"],["kalender",""],["formControlName","active","placeholder","Aktif / Non-Aktif","required",""],["value","0"],["value","1"],["align","end"],["appearance","outline",1,"p-3","col-12",3,"color"],["tag",""],["color","accent","selected","",3,"removable","removed",4,"ngFor","ngForOf"],["placeholder","Label Tag / Kategori",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["appearance","outline",1,"p-3","col-12","col-md-3",3,"color"],["matInput","","formControlName","web","placeholder","http://www.domain.id"],["matInput","","formControlName","facebook","placeholder","http://www.facebook.com"],["matInput","","formControlName","discord","placeholder","http://www.discord.gg"],["width","24px",2,"vertical-align","baseline",3,"src"],["matInput","","formControlName","twitter","placeholder","http://www.twitter.com"],["matInput","","formControlName","rss_feed","placeholder","http://my-site.blogspot.com/feeds/posts/default?alt=rss"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","/fansub",1,"w-100",3,"disabled"],[1,"me-1"],["mat-flat-button","","color","accent","type","submit",1,"w-100",3,"disabled"],[1,"ms-1"],["mat-raised-button","","color","primary","type","button",1,"w-100",3,"disabled","click"],[1,"col-12","p-3"],[1,"text-info"],["color","accent","selected","",3,"removable","removed"],["matChipRemove",""]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275template(0,FansubCreateComponent_div_0_Template,8,3,"div",0),2&rf&&i0.\u0275\u0275property("ngIf",ctx.fg)},"FansubCreateComponent_Template"),directives:[i9.NgIf,i10.NotificationsComponent,i1.\u0275NgNoValidate,i1.NgControlStatusGroup,i1.FormGroupDirective,i11.MatFormField,i11.MatLabel,i12.FileInputComponent,i13.MatIcon,i11.MatSuffix,i11.MatError,i14.MatButton,i15.MatInput,i1.DefaultValueAccessor,i1.NgControlStatus,i1.FormControlName,i1.RequiredValidator,i16.AngularEditorComponent,i17.MatDatepickerInput,i17.MatDatepickerToggle,i17.MatDatepicker,i18.MatSelect,i19.MatOption,i11.MatHint,i20.MatChipList,i9.NgForOf,i20.MatChip,i20.MatChipRemove,i20.MatChipInput,i14.MatAnchor,i2.RouterLinkWithHref],pipes:[i21.BytesPipe,i9.DatePipe],styles:[".fansub-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;filter:blur(5px) brightness(100%);opacity:.5}.fansub-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.fansub-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.fansub-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}"]})},90808:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MailboxCreateComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),environment_1=(__webpack_require__2(74202),__webpack_require__2(15934)),constants_1=__webpack_require__2(26271),req_res_model_1=__webpack_require__2(14249),i0=(__webpack_require__2(80855),__webpack_require__2(18745),__webpack_require__2(33e3),__webpack_require__2(27358),__webpack_require__2(4137),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(93075)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(18745)),i5=tslib_1.__importStar(__webpack_require__2(80855)),i6=tslib_1.__importStar(__webpack_require__2(4137)),i7=tslib_1.__importStar(__webpack_require__2(27358)),i8=tslib_1.__importStar(__webpack_require__2(8616)),i9=tslib_1.__importStar(__webpack_require__2(69808)),i10=tslib_1.__importStar(__webpack_require__2(67322)),i11=tslib_1.__importStar(__webpack_require__2(26688)),i12=tslib_1.__importStar(__webpack_require__2(25245)),i13=tslib_1.__importStar(__webpack_require__2(32368)),i14=tslib_1.__importStar(__webpack_require__2(87238)),i15=tslib_1.__importStar(__webpack_require__2(77531)),i16=tslib_1.__importStar(__webpack_require__2(29345)),i17=tslib_1.__importStar(__webpack_require__2(47423));function MailboxCreateComponent_form_4_mat_chip_15_Template(rf,ctx){if(1&rf){const _r16=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-chip",33),i0.\u0275\u0275listener("removed",__name(function(){const t_r14=i0.\u0275\u0275restoreView(_r16).$implicit;return i0.\u0275\u0275nextContext(2).removeTo(t_r14)},"MailboxCreateComponent_form_4_mat_chip_15_Template_mat_chip_removed_0_listener")),i0.\u0275\u0275text(1),i0.\u0275\u0275elementStart(2,"mat-icon",34),i0.\u0275\u0275text(3,"cancel"),i0.\u0275\u0275elementEnd()()}if(2&rf){const t_r14=ctx.$implicit;i0.\u0275\u0275property("removable",!0),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",t_r14," ")}}function MailboxCreateComponent_form_4_div_21_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Alamat Surel Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function MailboxCreateComponent_form_4_div_22_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Alamat Surel Tidak Valid"),i0.\u0275\u0275elementEnd())}function MailboxCreateComponent_form_4_mat_chip_28_Template(rf,ctx){if(1&rf){const _r19=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-chip",33),i0.\u0275\u0275listener("removed",__name(function(){const c_r17=i0.\u0275\u0275restoreView(_r19).$implicit;return i0.\u0275\u0275nextContext(2).removeCc(c_r17)},"MailboxCreateComponent_form_4_mat_chip_28_Template_mat_chip_removed_0_listener")),i0.\u0275\u0275text(1),i0.\u0275\u0275elementStart(2,"mat-icon",34),i0.\u0275\u0275text(3,"cancel"),i0.\u0275\u0275elementEnd()()}if(2&rf){const c_r17=ctx.$implicit;i0.\u0275\u0275property("removable",!0),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",c_r17," ")}}function MailboxCreateComponent_form_4_div_34_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Alamat Surel Tidak Valid"),i0.\u0275\u0275elementEnd())}function MailboxCreateComponent_form_4_mat_chip_40_Template(rf,ctx){if(1&rf){const _r22=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-chip",33),i0.\u0275\u0275listener("removed",__name(function(){const b_r20=i0.\u0275\u0275restoreView(_r22).$implicit;return i0.\u0275\u0275nextContext(2).removeBcc(b_r20)},"MailboxCreateComponent_form_4_mat_chip_40_Template_mat_chip_removed_0_listener")),i0.\u0275\u0275text(1),i0.\u0275\u0275elementStart(2,"mat-icon",34),i0.\u0275\u0275text(3,"cancel"),i0.\u0275\u0275elementEnd()()}if(2&rf){const b_r20=ctx.$implicit;i0.\u0275\u0275property("removable",!0),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",b_r20," ")}}function MailboxCreateComponent_form_4_div_46_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Alamat Surel Tidak Valid"),i0.\u0275\u0275elementEnd())}function MailboxCreateComponent_form_4_div_47_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",35)(1,"mat-slide-toggle",36),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r11=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate1("matTooltip","Kirim sebagai noreply@",ctx_r11.ENV.domain,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" Kirim sebagai noreply@",ctx_r11.ENV.domain," ")}}function MailboxCreateComponent_form_4_div_57_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Judul Pesan Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function MailboxCreateComponent_form_4_div_58_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Judul Pesan Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function MailboxCreateComponent_form_4_Template(rf,ctx){if(1&rf){const _r24=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",4),i0.\u0275\u0275listener("submit",__name(function(){return i0.\u0275\u0275restoreView(_r24),i0.\u0275\u0275nextContext().onSubmit()},"MailboxCreateComponent_form_4_Template_form_submit_0_listener")),i0.\u0275\u0275elementStart(1,"div",5)(2,"div",6)(3,"h2",7)(4,"b",8),i0.\u0275\u0275text(5,"Buat Email Baru & Kirim"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(6,"div",2)(7,"div",9)(8,"div",10)(9,"div",9)(10,"mat-form-field",11)(11,"mat-label"),i0.\u0275\u0275text(12,"Penerima"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(13,"mat-chip-list",null,12),i0.\u0275\u0275template(15,MailboxCreateComponent_form_4_mat_chip_15_Template,4,2,"mat-chip",13),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(16,"input",14),i0.\u0275\u0275listener("matChipInputTokenEnd",__name(function($event){return i0.\u0275\u0275restoreView(_r24),i0.\u0275\u0275nextContext().addTo($event)},"MailboxCreateComponent_form_4_Template_input_matChipInputTokenEnd_16_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(17,"mat-icon",15),i0.\u0275\u0275text(18,"short_text"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(19,"mat-hint",16)(20,"mat-error"),i0.\u0275\u0275template(21,MailboxCreateComponent_form_4_div_21_Template,2,0,"div",17),i0.\u0275\u0275template(22,MailboxCreateComponent_form_4_div_22_Template,2,0,"div",17),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(23,"mat-form-field",11)(24,"mat-label"),i0.\u0275\u0275text(25,"Carbon Copy"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(26,"mat-chip-list",null,18),i0.\u0275\u0275template(28,MailboxCreateComponent_form_4_mat_chip_28_Template,4,2,"mat-chip",13),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(29,"input",19),i0.\u0275\u0275listener("matChipInputTokenEnd",__name(function($event){return i0.\u0275\u0275restoreView(_r24),i0.\u0275\u0275nextContext().addCc($event)},"MailboxCreateComponent_form_4_Template_input_matChipInputTokenEnd_29_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(30,"mat-icon",15),i0.\u0275\u0275text(31,"short_text"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(32,"mat-hint",16)(33,"mat-error"),i0.\u0275\u0275template(34,MailboxCreateComponent_form_4_div_34_Template,2,0,"div",17),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(35,"mat-form-field",11)(36,"mat-label"),i0.\u0275\u0275text(37,"Blind Carbon Copy"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(38,"mat-chip-list",null,20),i0.\u0275\u0275template(40,MailboxCreateComponent_form_4_mat_chip_40_Template,4,2,"mat-chip",13),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(41,"input",19),i0.\u0275\u0275listener("matChipInputTokenEnd",__name(function($event){return i0.\u0275\u0275restoreView(_r24),i0.\u0275\u0275nextContext().addBcc($event)},"MailboxCreateComponent_form_4_Template_input_matChipInputTokenEnd_41_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(42,"mat-icon",15),i0.\u0275\u0275text(43,"short_text"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(44,"mat-hint",16)(45,"mat-error"),i0.\u0275\u0275template(46,MailboxCreateComponent_form_4_div_46_Template,2,0,"div",17),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(47,MailboxCreateComponent_form_4_div_47_Template,3,2,"div",21),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(48,"div",22)(49,"div",9)(50,"mat-form-field",23)(51,"mat-label"),i0.\u0275\u0275text(52,"Judul"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(53,"input",24),i0.\u0275\u0275elementStart(54,"mat-icon",15),i0.\u0275\u0275text(55,"wysiwyg"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(56,"mat-error"),i0.\u0275\u0275template(57,MailboxCreateComponent_form_4_div_57_Template,2,0,"div",17),i0.\u0275\u0275template(58,MailboxCreateComponent_form_4_div_58_Template,2,0,"div",17),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275element(59,"angular-editor",25),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(60,"div",9)(61,"div",2)(62,"div",26),i0.\u0275\u0275element(63,"div",27),i0.\u0275\u0275elementStart(64,"div",28)(65,"a",29)(66,"mat-icon",30),i0.\u0275\u0275text(67,"undo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(68," Batal "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(69,"div",28)(70,"button",31),i0.\u0275\u0275text(71," Simpan "),i0.\u0275\u0275elementStart(72,"mat-icon",32),i0.\u0275\u0275text(73,"save"),i0.\u0275\u0275elementEnd()()()()()()()()()}if(2&rf){const _r1=i0.\u0275\u0275reference(14),_r5=i0.\u0275\u0275reference(27),_r8=i0.\u0275\u0275reference(39),ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("formGroup",ctx_r0.fg),i0.\u0275\u0275advance(10),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngForOf",ctx_r0.fg.value.to),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matChipInputSeparatorKeyCodes",ctx_r0.GS.separatorKeysCodes)("matChipInputFor",_r1)("matChipInputAddOnBlur",!0),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("to").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("to").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngForOf",ctx_r0.fg.value.cc),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matChipInputSeparatorKeyCodes",ctx_r0.GS.separatorKeysCodes)("matChipInputFor",_r5)("matChipInputAddOnBlur",!0),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("cc").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngForOf",ctx_r0.fg.value.bcc),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matChipInputSeparatorKeyCodes",ctx_r0.GS.separatorKeysCodes)("matChipInputFor",_r8)("matChipInputAddOnBlur",!0),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("bcc").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.canSendAsNoReply),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("subject").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("subject").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("config",ctx_r0.GS.angularEditorConfig),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("disabled",ctx_r0.submitted),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r0.submitted||ctx_r0.fg.invalid)}}__name(MailboxCreateComponent_form_4_mat_chip_15_Template,"MailboxCreateComponent_form_4_mat_chip_15_Template"),__name(MailboxCreateComponent_form_4_div_21_Template,"MailboxCreateComponent_form_4_div_21_Template"),__name(MailboxCreateComponent_form_4_div_22_Template,"MailboxCreateComponent_form_4_div_22_Template"),__name(MailboxCreateComponent_form_4_mat_chip_28_Template,"MailboxCreateComponent_form_4_mat_chip_28_Template"),__name(MailboxCreateComponent_form_4_div_34_Template,"MailboxCreateComponent_form_4_div_34_Template"),__name(MailboxCreateComponent_form_4_mat_chip_40_Template,"MailboxCreateComponent_form_4_mat_chip_40_Template"),__name(MailboxCreateComponent_form_4_div_46_Template,"MailboxCreateComponent_form_4_div_46_Template"),__name(MailboxCreateComponent_form_4_div_47_Template,"MailboxCreateComponent_form_4_div_47_Template"),__name(MailboxCreateComponent_form_4_div_57_Template,"MailboxCreateComponent_form_4_div_57_Template"),__name(MailboxCreateComponent_form_4_div_58_Template,"MailboxCreateComponent_form_4_div_58_Template"),__name(MailboxCreateComponent_form_4_Template,"MailboxCreateComponent_form_4_Template");class MailboxCreateComponent{constructor(activatedRoute,fb,router,bs,pi,gs,as,ms){this.activatedRoute=activatedRoute,this.fb=fb,this.router=router,this.bs=bs,this.pi=pi,this.gs=gs,this.as=as,this.ms=ms,this.submitted=!1,this.subsMail=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get ENV(){return environment_1.environment}get GS(){return this.gs}get canSendAsNoReply(){var _a,_b;const role=null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.role;return role===req_res_model_1.RoleModel.ADMIN||role===req_res_model_1.RoleModel.MODERATOR}ngOnInit(){this.pi.updatePageMetaData("Mailbox - Buat Baru","Halaman Membuat Surel Baru","Create Email"),this.gs.isBrowser&&this.initForm()}ngOnDestroy(){var _a;null===(_a=this.subsMail)||void 0===_a||_a.unsubscribe()}initForm(){const p=this.activatedRoute.snapshot.queryParamMap.get("to")||null,t=[];p&&t.push(p),this.fg=this.fb.group({to:[t,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEmailMulti)])],cc:[[],forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexEmailMulti)])],bcc:[[],forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexEmailMulti)])],subject:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],message:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],no_reply:[!1,forms_1.Validators.compose([forms_1.Validators.required])]})}onSubmit(){if(this.bs.busy(),this.submitted=!0,this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsMail=this.ms.sendMail(this.fg.value).subscribe({next:res=>{this.gs.log("[MAIL_SEND_SUCCESS]",res),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl("/mailbox")},error:err=>{this.gs.log("[MAIL_SEND_ERROR]",err,"error"),this.submitted=!1,this.bs.idle()}})}addTo(event){const input=event.chipInput.inputElement,value=event.value;(value||"").trim()&&this.fg.value.to.push(value.trim()),input&&(input.value=""),this.fg.controls.to.patchValue(this.fg.value.to.filter((a,b2,c)=>c.findIndex(d=>d===a)===b2))}removeTo(to){const index=this.fg.value.to.indexOf(to);index>=0&&this.fg.value.to.splice(index,1)}addCc(event){const input=event.chipInput.inputElement,value=event.value;(value||"").trim()&&this.fg.value.cc.push(value.trim()),input&&(input.value=""),this.fg.controls.cc.patchValue(this.fg.value.cc.filter((a,b2,c)=>c.findIndex(d=>d===a)===b2))}removeCc(cc){const index=this.fg.value.cc.indexOf(cc);index>=0&&this.fg.value.cc.splice(index,1)}addBcc(event){const input=event.chipInput.inputElement,value=event.value;(value||"").trim()&&this.fg.value.bcc.push(value.trim()),input&&(input.value=""),this.fg.controls.bcc.patchValue(this.fg.value.bcc.filter((a,b2,c)=>c.findIndex(d=>d===a)===b2))}removeBcc(bcc){const index=this.fg.value.bcc.indexOf(bcc);index>=0&&this.fg.value.bcc.splice(index,1)}}__name(MailboxCreateComponent,"MailboxCreateComponent"),exports2.MailboxCreateComponent=MailboxCreateComponent,MailboxCreateComponent.\u0275fac=__name(function(t){return new(t||MailboxCreateComponent)(i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i2.FormBuilder),i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.PageInfoService),i0.\u0275\u0275directiveInject(i5.GlobalService),i0.\u0275\u0275directiveInject(i6.AuthService),i0.\u0275\u0275directiveInject(i7.MailService))},"MailboxCreateComponent_Factory"),MailboxCreateComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:MailboxCreateComponent,selectors:[["app-mailbox-create"]],decls:5,vars:1,consts:[[1,"container"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],["hintLabel","Gunakan , Jika Lebih Dari 1","appearance","outline",1,"p-3","col-12",3,"color"],["to",""],["color","accent","selected","",3,"removable","removed",4,"ngFor","ngForOf"],["placeholder","user@domain.tld","required","",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["matSuffix",""],["align","end"],[4,"ngIf"],["cc",""],["placeholder","user@domain.tld",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["bcc",""],["class","col-12 p-3",4,"ngIf"],[1,"col-12","col-md-7","col-xl-8","pt-3"],["appearance","outline",1,"p-3","col-12",3,"color"],["matInput","","formControlName","subject","placeholder","Judul Pesan Blablabla ...","required",""],["formControlName","message","required","",1,"p-3","w-100",3,"config"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","/mailbox",1,"w-100",3,"disabled"],[1,"me-1"],["mat-flat-button","","color","accent","type","submit",1,"w-100",3,"disabled"],[1,"ms-1"],["color","accent","selected","",3,"removable","removed"],["matChipRemove",""],[1,"col-12","p-3"],["formControlName","no_reply",3,"matTooltip"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2),i0.\u0275\u0275template(4,MailboxCreateComponent_form_4_Template,74,27,"form",3),i0.\u0275\u0275elementEnd()()()),2&rf&&(i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",ctx.fg))},"MailboxCreateComponent_Template"),directives:[i8.NotificationsComponent,i9.NgIf,i2.\u0275NgNoValidate,i2.NgControlStatusGroup,i2.FormGroupDirective,i10.MatFormField,i10.MatLabel,i11.MatChipList,i9.NgForOf,i11.MatChip,i12.MatIcon,i11.MatChipRemove,i11.MatChipInput,i10.MatSuffix,i10.MatHint,i10.MatError,i13.MatSlideToggle,i2.NgControlStatus,i2.FormControlName,i14.MatTooltip,i15.MatInput,i2.DefaultValueAccessor,i2.RequiredValidator,i16.AngularEditorComponent,i17.MatAnchor,i1.RouterLinkWithHref,i17.MatButton],styles:[""]})},38656:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NewsCreateComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),constants_1=(__webpack_require__2(74202),__webpack_require__2(26271)),i0=(__webpack_require__2(80855),__webpack_require__2(18745),__webpack_require__2(67902),__webpack_require__2(33e3),__webpack_require__2(49618),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(93075)),i2=tslib_1.__importStar(__webpack_require__2(74202)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(18745)),i5=tslib_1.__importStar(__webpack_require__2(67902)),i6=tslib_1.__importStar(__webpack_require__2(49618)),i7=tslib_1.__importStar(__webpack_require__2(80855)),i8=tslib_1.__importStar(__webpack_require__2(8616)),i9=tslib_1.__importStar(__webpack_require__2(69808)),i10=tslib_1.__importStar(__webpack_require__2(67322)),i11=tslib_1.__importStar(__webpack_require__2(21385)),i12=tslib_1.__importStar(__webpack_require__2(25245)),i13=tslib_1.__importStar(__webpack_require__2(47423)),i14=tslib_1.__importStar(__webpack_require__2(77531)),i15=tslib_1.__importStar(__webpack_require__2(26688)),i16=tslib_1.__importStar(__webpack_require__2(29345)),i17=tslib_1.__importStar(__webpack_require__2(23626));function NewsCreateComponent_form_4_div_21_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r2=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Ukuran Upload Melebihi Batas ",i0.\u0275\u0275pipeBind1(2,1,ctx_r2.imageLimitExceeded)," !")}}function NewsCreateComponent_form_4_div_22_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r3.imageErrorText)}}function NewsCreateComponent_form_4_div_23_Template(rf,ctx){if(1&rf){const _r10=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",2)(1,"button",34),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r10),i0.\u0275\u0275nextContext(2).submitImage()},"NewsCreateComponent_form_4_div_23_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",31),i0.\u0275\u0275text(3,"add_photo_alternate"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Unggah "),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r4=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",ctx_r4.submitted)}}function NewsCreateComponent_form_4_div_33_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Judul Berita Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function NewsCreateComponent_form_4_div_34_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Judul Berita Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function NewsCreateComponent_form_4_mat_chip_40_Template(rf,ctx){if(1&rf){const _r13=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-chip",35),i0.\u0275\u0275listener("removed",__name(function(){const t_r11=i0.\u0275\u0275restoreView(_r13).$implicit;return i0.\u0275\u0275nextContext(2).removeTag(t_r11)},"NewsCreateComponent_form_4_mat_chip_40_Template_mat_chip_removed_0_listener")),i0.\u0275\u0275text(1),i0.\u0275\u0275elementStart(2,"mat-icon",36),i0.\u0275\u0275text(3,"cancel"),i0.\u0275\u0275elementEnd()()}if(2&rf){const t_r11=ctx.$implicit;i0.\u0275\u0275property("removable",!0),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",t_r11," ")}}function NewsCreateComponent_form_4_Template(rf,ctx){if(1&rf){const _r15=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",4),i0.\u0275\u0275listener("submit",__name(function(){return i0.\u0275\u0275restoreView(_r15),i0.\u0275\u0275nextContext().onSubmit()},"NewsCreateComponent_form_4_Template_form_submit_0_listener")),i0.\u0275\u0275elementStart(1,"div",5)(2,"div",6)(3,"h2",7)(4,"b",8),i0.\u0275\u0275text(5,"Tambah Data Berita & Informasi Baru"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(6,"div",2)(7,"div",9)(8,"div",10)(9,"div",9)(10,"div",2),i0.\u0275\u0275element(11,"img",11),i0.\u0275\u0275elementStart(12,"mat-form-field",12)(13,"mat-label"),i0.\u0275\u0275text(14,"Gambar"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(15,"ngx-mat-file-input",13,14),i0.\u0275\u0275listener("change",__name(function($event){i0.\u0275\u0275restoreView(_r15);const _r1=i0.\u0275\u0275reference(16);return i0.\u0275\u0275nextContext().uploadImage($event,_r1)},"NewsCreateComponent_form_4_Template_ngx_mat_file_input_change_15_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(17,"mat-icon",15),i0.\u0275\u0275text(18,"image"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(19,"mat-error",16)(20,"small"),i0.\u0275\u0275template(21,NewsCreateComponent_form_4_div_21_Template,3,3,"div",17),i0.\u0275\u0275template(22,NewsCreateComponent_form_4_div_22_Template,2,1,"div",17),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(23,NewsCreateComponent_form_4_div_23_Template,5,1,"div",18),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(24,"div",19)(25,"div",9)(26,"mat-form-field",20)(27,"mat-label"),i0.\u0275\u0275text(28,"Judul"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(29,"input",21),i0.\u0275\u0275elementStart(30,"mat-icon",15),i0.\u0275\u0275text(31,"wysiwyg"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(32,"mat-error"),i0.\u0275\u0275template(33,NewsCreateComponent_form_4_div_33_Template,2,0,"div",17),i0.\u0275\u0275template(34,NewsCreateComponent_form_4_div_34_Template,2,0,"div",17),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(35,"mat-form-field",20)(36,"mat-label"),i0.\u0275\u0275text(37,"Tags & Kategori"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(38,"mat-chip-list",null,22),i0.\u0275\u0275template(40,NewsCreateComponent_form_4_mat_chip_40_Template,4,2,"mat-chip",23),i0.\u0275\u0275elementStart(41,"input",24),i0.\u0275\u0275listener("matChipInputTokenEnd",__name(function($event){return i0.\u0275\u0275restoreView(_r15),i0.\u0275\u0275nextContext().addTag($event)},"NewsCreateComponent_form_4_Template_input_matChipInputTokenEnd_41_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(42,"mat-icon",15),i0.\u0275\u0275text(43,"loyalty"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(44,"mat-hint",25),i0.\u0275\u0275text(45,"Isi Dengan Bebas, Pisahkan Dengan Koma"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275element(46,"angular-editor",26),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(47,"div",9)(48,"div",2)(49,"div",27),i0.\u0275\u0275element(50,"div",28),i0.\u0275\u0275elementStart(51,"div",29)(52,"a",30)(53,"mat-icon",31),i0.\u0275\u0275text(54,"undo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(55," Batal "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(56,"div",29)(57,"button",32),i0.\u0275\u0275text(58," Simpan "),i0.\u0275\u0275elementStart(59,"mat-icon",33),i0.\u0275\u0275text(60,"save"),i0.\u0275\u0275elementEnd()()()()()()()()()}if(2&rf){const _r7=i0.\u0275\u0275reference(39),ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("formGroup",ctx_r0.fg),i0.\u0275\u0275advance(11),i0.\u0275\u0275property("src",ctx_r0.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("disabled",ctx_r0.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r0.imageLimitExceeded),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.imageErrorText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.image&&!ctx_r0.fg.value.image),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("title").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("title").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngForOf",ctx_r0.fg.value.tags),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matChipInputSeparatorKeyCodes",ctx_r0.GS.separatorKeysCodes)("matChipInputFor",_r7)("matChipInputAddOnBlur",!0),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("config",ctx_r0.GS.angularEditorConfig),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("disabled",ctx_r0.submitted),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r0.submitted||ctx_r0.fg.invalid)}}__name(NewsCreateComponent_form_4_div_21_Template,"NewsCreateComponent_form_4_div_21_Template"),__name(NewsCreateComponent_form_4_div_22_Template,"NewsCreateComponent_form_4_div_22_Template"),__name(NewsCreateComponent_form_4_div_23_Template,"NewsCreateComponent_form_4_div_23_Template"),__name(NewsCreateComponent_form_4_div_33_Template,"NewsCreateComponent_form_4_div_33_Template"),__name(NewsCreateComponent_form_4_div_34_Template,"NewsCreateComponent_form_4_div_34_Template"),__name(NewsCreateComponent_form_4_mat_chip_40_Template,"NewsCreateComponent_form_4_mat_chip_40_Template"),__name(NewsCreateComponent_form_4_Template,"NewsCreateComponent_form_4_Template");class NewsCreateComponent{constructor(fb,router,bs,pi,imgbb,news,gs){this.fb=fb,this.router=router,this.bs=bs,this.pi=pi,this.imgbb=imgbb,this.news=news,this.gs=gs,this.submitted=!1,this.image=null,this.imageErrorText=null,this.imageLimitExceeded=null,this.image_url="/assets/img/form/no-image.png",this.gambar=null,this.subsNews=null,this.subsImgbb=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}ngOnInit(){this.pi.updatePageMetaData("Informasi - Buat Baru","Halaman Menambahkan Berita Baru","Create News"),this.gs.isBrowser&&this.initForm()}ngOnDestroy(){var _a,_b;null===(_a=this.subsImgbb)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsNews)||void 0===_b||_b.unsubscribe()}initForm(){this.fg=this.fb.group({title:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],content:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],image:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],tags:[[],forms_1.Validators.compose([])]})}uploadImage(event,gambar){this.gambar=gambar,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null);const file2=event.target.files[0];try{const reader=new FileReader;reader.readAsDataURL(file2),reader.onload=e=>{if(this.gs.log("[IMAGE_SELECTED]",e),file2.size<=constants_1.CONSTANTS.fileSizeImageLimit){const img=this.gs.document.createElement("img");img.onload=()=>{this.image=file2,this.image_url=reader.result.toString()},img.src=reader.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=constants_1.CONSTANTS.fileSizeImageLimit,this.gambar.clear(event)}}catch{this.image=null,this.image_url="/assets/img/form/no-image.png",this.gambar.clear(event)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:res=>{this.gs.log("[IMAGE_SUCCESS]",res),this.fg.controls.image.patchValue(res.result.url),this.submitted=!1},error:err=>{var _a;this.gs.log("[IMAGE_ERROR]",err,"error"),this.fg.controls.image.patchValue(null),this.submitted=!1,this.imageErrorText=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info}})}onSubmit(){if(this.bs.busy(),this.submitted=!0,this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsNews=this.news.createNews({image:this.fg.value.image,title:this.fg.value.title,content:this.fg.value.content,tags:this.fg.value.tags}).subscribe({next:res=>{this.gs.log("[NEWS_CREATE_SUCCESS]",res),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl("/news")},error:err=>{this.gs.log("[NEWS_CREATE_ERROR]",err,"error"),this.submitted=!1,this.bs.idle()}})}addTag(event){const input=event.input,value=event.value;(value||"").trim()&&this.fg.value.tags.push(value.trim()),input&&(input.value=""),this.fg.controls.tags.patchValue(this.fg.value.tags.filter((a,b2,c)=>c.findIndex(d=>d===a)===b2))}removeTag(tag){const index=this.fg.value.tags.indexOf(tag);index>=0&&this.fg.value.tags.splice(index,1)}}__name(NewsCreateComponent,"NewsCreateComponent"),exports2.NewsCreateComponent=NewsCreateComponent,NewsCreateComponent.\u0275fac=__name(function(t){return new(t||NewsCreateComponent)(i0.\u0275\u0275directiveInject(i1.FormBuilder),i0.\u0275\u0275directiveInject(i2.Router),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.PageInfoService),i0.\u0275\u0275directiveInject(i5.ImgbbService),i0.\u0275\u0275directiveInject(i6.NewsService),i0.\u0275\u0275directiveInject(i7.GlobalService))},"NewsCreateComponent_Factory"),NewsCreateComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:NewsCreateComponent,selectors:[["app-news-create"]],decls:5,vars:1,consts:[[1,"container"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],[1,"w-100","border",3,"src"],["appearance","outline",1,"pt-3","w-100",3,"color"],[1,"w-100",3,"disabled","accept","change"],["gambar",""],["matSuffix",""],[1,"px-3","w-100"],[4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-12","col-md-7","col-xl-8","pt-3"],["appearance","outline",1,"p-3","col-12",3,"color"],["matInput","","formControlName","title","placeholder","Berita Terkini Blablabla ...","required",""],["tag",""],["color","accent","selected","",3,"removable","removed",4,"ngFor","ngForOf"],["placeholder","Label Tag / Kategori",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["align","end"],["formControlName","content","required","",1,"p-3","w-100",3,"config"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","/news",1,"w-100",3,"disabled"],[1,"me-1"],["mat-flat-button","","color","accent","type","submit",1,"w-100",3,"disabled"],[1,"ms-1"],["mat-raised-button","","color","primary","type","button",1,"w-100",3,"disabled","click"],["color","accent","selected","",3,"removable","removed"],["matChipRemove",""]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2),i0.\u0275\u0275template(4,NewsCreateComponent_form_4_Template,61,19,"form",3),i0.\u0275\u0275elementEnd()()()),2&rf&&(i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",ctx.fg))},"NewsCreateComponent_Template"),directives:[i8.NotificationsComponent,i9.NgIf,i1.\u0275NgNoValidate,i1.NgControlStatusGroup,i1.FormGroupDirective,i10.MatFormField,i10.MatLabel,i11.FileInputComponent,i12.MatIcon,i10.MatSuffix,i10.MatError,i13.MatButton,i14.MatInput,i1.DefaultValueAccessor,i1.NgControlStatus,i1.FormControlName,i1.RequiredValidator,i15.MatChipList,i9.NgForOf,i15.MatChip,i15.MatChipRemove,i15.MatChipInput,i10.MatHint,i16.AngularEditorComponent,i13.MatAnchor,i2.RouterLinkWithHref],pipes:[i17.BytesPipe],styles:[""]})},54596:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DocsComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=__webpack_require__2(15934),i0=(__webpack_require__2(76781),__webpack_require__2(80855),__webpack_require__2(17635),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(76781)),i3=tslib_1.__importStar(__webpack_require__2(17635)),i4=tslib_1.__importStar(__webpack_require__2(8616)),i5=tslib_1.__importStar(__webpack_require__2(54191)),i6=tslib_1.__importStar(__webpack_require__2(69808)),i7=tslib_1.__importStar(__webpack_require__2(9224)),i8=tslib_1.__importStar(__webpack_require__2(74202)),i9=tslib_1.__importStar(__webpack_require__2(47423)),i10=tslib_1.__importStar(__webpack_require__2(49933)),i11=tslib_1.__importStar(__webpack_require__2(8921)),i12=tslib_1.__importStar(__webpack_require__2(11861));function DocsComponent_div_43_div_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",33)(1,"mat-card",34)(2,"mat-card-header",35),i0.\u0275\u0275element(3,"div",36),i0.\u0275\u0275elementStart(4,"mat-card-title",37)(5,"h3",9),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(7,"mat-card-subtitle",9),i0.\u0275\u0275text(8),i0.\u0275\u0275elementEnd()()()()),2&rf){const c_r3=ctx.$implicit,ctx_r2=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate1("routerLink","/fansub/",null==c_r3.fansub_?null:c_r3.fansub_.slug,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275styleProp("background-image","url("+((null==c_r3.fansub_?null:c_r3.fansub_.image_url)||ctx_r2.ENV.baseUrl+"/assets/img/favicon.png")+")"),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(c_r3.name),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate2("",c_r3.type," :: ",null!=c_r3.fansub_&&c_r3.fansub_.active?"":"Tidak"," Aktif")}}function DocsComponent_div_43_Template(rf,ctx){if(1&rf){const _r5=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",13)(1,"div",26)(2,"h2",27)(3,"b",28),i0.\u0275\u0275text(4,"Sub-Domain *.Fansub.ID Aktif"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",12)(6,"div",29),i0.\u0275\u0275template(7,DocsComponent_div_43_div_7_Template,9,6,"div",30),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(8,"div",13)(9,"div",31)(10,"button",32),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r5),i0.\u0275\u0275nextContext().loadNextPage()},"DocsComponent_div_43_Template_button_click_10_listener")),i0.\u0275\u0275text(11," Load More ... "),i0.\u0275\u0275elementEnd()()()()()}if(2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngForOf",ctx_r0.dnsData),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("disabled",ctx_r0.pageFinished)}}function DocsComponent_div_44_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",13)(1,"div",26)(2,"h2",27)(3,"b",28),i0.\u0275\u0275text(4,"Tutorial Klaim *.Fansub.ID"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",12),i0.\u0275\u0275element(6,"div",38),i0.\u0275\u0275pipe(7,"safeInnerHtml"),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r1=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(6),i0.\u0275\u0275property("innerHTML",i0.\u0275\u0275pipeBind1(7,1,ctx_r1.tutorialData),i0.\u0275\u0275sanitizeHtml)}}__name(DocsComponent_div_43_div_7_Template,"DocsComponent_div_43_div_7_Template"),__name(DocsComponent_div_43_Template,"DocsComponent_div_43_Template"),__name(DocsComponent_div_44_Template,"DocsComponent_div_44_Template");const _c0=__name(function(){return["shiro","aka","midori","kuro","ao","kiiro","orenji","pinku"]},"_c0");class DocsComponent{constructor(gs,fansub,info){this.gs=gs,this.fansub=fansub,this.info=info,this.dnsData=[],this.tutorialData=null,this.page=1,this.pageFinished=!1,this.subsDns=null,this.subsTutorial=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get ENV(){return environment_1.environment}ngOnInit(){this.gs.isBrowser&&(this.getDns(),this.getTutorial())}ngOnDestroy(){var _a,_b;null===(_a=this.subsDns)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsTutorial)||void 0===_b||_b.unsubscribe()}getDns(){this.subsDns=this.fansub.getAllSubDomain("",this.page).subscribe({next:res=>{this.gs.log("[DNSS_LIST_SUCCESS]",res);const records=[];for(const rec of res.results)rec.fansub_&&records.push(rec);this.dnsData=[...this.dnsData,...records],res.results.length<=0&&(this.pageFinished=!0)},error:err=>{this.gs.log("[DNSS_LIST_ERROR]",err,"error")}})}getTutorial(){this.subsTutorial=this.info.getInfo("TUTORIAL-SUB-DOMAIN").subscribe({next:res=>{this.gs.log("[TUTORIAL_INFORMATION_SUCCESS]",res),this.tutorialData=res.result.content},error:err=>{this.gs.log("[TUTORIAL_INFORMATION_ERROR]",err,"error")}})}loadNextPage(){this.pageFinished||(this.page++,this.getDns())}}__name(DocsComponent,"DocsComponent"),exports2.DocsComponent=DocsComponent,DocsComponent.\u0275fac=__name(function(t){return new(t||DocsComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService),i0.\u0275\u0275directiveInject(i2.FansubService),i0.\u0275\u0275directiveInject(i3.InformationService))},"DocsComponent_Factory"),DocsComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:DocsComponent,selectors:[["app-docs"]],decls:50,vars:10,consts:[[1,"p-0","m-0",2,"background-image","url('/assets/img/background/docs.png')","background-size","contain"],[1,"container-fluid","p-0"],[1,"wrapper"],[1,"bg-bubbles","align-items-center","p-0"],[1,"wrapper-1"],[1,"row","align-items-center","h-100"],[1,"col-12","mx-auto"],[1,"container","text-dark"],[1,"mb-1",2,"line-height","normal"],[1,"mb-0"],[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12"],[1,"row"],[1,"col-12","align-items-center","mt-5","mx-auto"],[1,"text-warning"],[1,"col-12","align-items-center","mx-auto"],[3,"strings","shuffle","loop","smartBackspace","backDelay"],[1,"text-light","text-truncate"],[1,"arrow-right","p-3"],[1,"typing"],[1,"col-12","align-items-center","mb-5","mx-auto"],[1,"col-lg-8","col-xl-9"],["class","row",4,"ngIf"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row","px-3"],["class","col-12 col-md-6 col-xl-4 p-2",4,"ngFor","ngForOf"],[1,"col-12","text-end","py-3"],["mat-button","","color","accent",1,"shiny",3,"disabled","click"],[1,"col-12","col-md-6","col-xl-4","p-2"],[1,"gradient-border","rgb-border"],[2,"cursor","pointer",3,"routerLink"],["mat-card-avatar","",2,"background-size","cover","border-radius","0"],[1,"text-warning","mb-1",2,"cursor","pointer"],[1,"row","px-3","pb-3",3,"innerHTML"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"ul",3),i0.\u0275\u0275element(4,"span",4)(5,"li")(6,"li")(7,"li")(8,"li")(9,"li")(10,"li")(11,"li")(12,"li")(13,"li")(14,"li"),i0.\u0275\u0275elementStart(15,"div",5)(16,"div",6)(17,"div",7)(18,"h2",8),i0.\u0275\u0275text(19," Developers Documentation "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(20,"p",9),i0.\u0275\u0275text(21," Hadiah Spesial & Khusus Untuk Kamu ... "),i0.\u0275\u0275elementEnd()()()()()()(),i0.\u0275\u0275element(22,"app-notifications"),i0.\u0275\u0275elementStart(23,"div",10)(24,"div",11)(25,"div",12)(26,"div",13)(27,"div",14)(28,"h1",15),i0.\u0275\u0275text(29,"Dapatkan alamat URL khusus untuk website Fansub Kamu !!"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(30,"div",16)(31,"ngx-typed-js",17)(32,"h1",18)(33,"span",19),i0.\u0275\u0275text(34," https:// "),i0.\u0275\u0275element(35,"span",20),i0.\u0275\u0275text(36),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(37,"div",21)(38,"h1",15),i0.\u0275\u0275text(39),i0.\u0275\u0275elementEnd()()()()()(),i0.\u0275\u0275elementStart(40,"div",10)(41,"div",11)(42,"div",22),i0.\u0275\u0275template(43,DocsComponent_div_43_Template,12,2,"div",23),i0.\u0275\u0275template(44,DocsComponent_div_44_Template,8,3,"div",23),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(45,"div",24)(46,"div",25)(47,"div",12),i0.\u0275\u0275element(48,"app-banner-discord")(49,"app-stats-server"),i0.\u0275\u0275elementEnd()()()()()()),2&rf&&(i0.\u0275\u0275advance(31),i0.\u0275\u0275property("strings",i0.\u0275\u0275pureFunction0(9,_c0))("shuffle",!0)("loop",!0)("smartBackspace",!0)("backDelay",1e3),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1(" .",ctx.ENV.domain," "),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1("dan email (\uff61>\ufe4f<\uff61) @ ",ctx.ENV.domain,""),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",ctx.dnsData.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.tutorialData))},"DocsComponent_Template"),directives:[i4.NotificationsComponent,i5.NgxTypedJsComponent,i6.NgIf,i6.NgForOf,i7.MatCard,i7.MatCardHeader,i8.RouterLink,i7.MatCardAvatar,i7.MatCardTitle,i7.MatCardSubtitle,i9.MatButton,i10.BannerDiscordComponent,i11.StatsServerComponent],pipes:[i12.SafeInnerHtmlPipe],styles:['.wrapper[_ngcontent-%COMP%]{position:sticky;left:0;width:100%;height:128px;overflow:hidden;background-image:url(/assets/img/banner/docs.png);background-position:center 41%}.bg-bubbles[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:absolute;list-style:none;display:block;width:40px;height:40px;background-color:#ffffff26;bottom:-160px;animation:square 25s infinite;transition-timing-function:linear}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1){left:10%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2){left:20%;width:80px;height:80px;animation-delay:2s;animation-duration:17s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3){left:25%;animation-delay:4s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4){left:40%;width:60px;height:60px;animation-duration:22s;background-color:#ffffff40}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){left:70%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(6){left:80%;width:120px;height:120px;animation-delay:3s;background-color:#fff3}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(7){left:32%;width:160px;height:160px;animation-delay:7s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(8){left:55%;width:20px;height:20px;animation-delay:15s;animation-duration:40s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(9){left:25%;width:10px;height:10px;animation-delay:2s;animation-duration:40s;background-color:#ffffff4d}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(10){left:90%;width:160px;height:160px;animation-delay:11s}@keyframes square{0%{transform:translateY(0)}to{transform:translateY(-512px) rotate(512deg)}}.arrow-right[_ngcontent-%COMP%]{width:20%;line-height:50px;position:relative;background:red;text-align:center;margin:50px auto}.arrow-right[_ngcontent-%COMP%]:after, .arrow-right[_ngcontent-%COMP%]:before{content:"";position:absolute;width:20px;height:50%;left:100%}.arrow-right[_ngcontent-%COMP%]:after{bottom:0;background:linear-gradient(to right bottom,red 50%,transparent 50%)}.arrow-right[_ngcontent-%COMP%]:before{top:0;background:linear-gradient(to right top,red 50%,transparent 50%)}']})},52327:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DocsModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),ngx_typed_js_1=__webpack_require__2(54191),notifications_module_1=__webpack_require__2(88613),banner_discord_module_1=__webpack_require__2(54854),stats_server_module_1=__webpack_require__2(10669),shared_material_module_1=__webpack_require__2(20210),custom_pipe_module_1=__webpack_require__2(67355),docs_component_1=__webpack_require__2(54596),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:docs_component_1.DocsComponent}]);class DocsModule{}__name(DocsModule,"DocsModule"),exports2.DocsModule=DocsModule,DocsModule.\u0275fac=__name(function(t){return new(t||DocsModule)},"DocsModule_Factory"),DocsModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:DocsModule}),DocsModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),banner_discord_module_1.BannerDiscordModule,stats_server_module_1.StatsServerModule,notifications_module_1.NotificationsModule,shared_material_module_1.SharedMaterialModule,ngx_typed_js_1.NgxTypedJsModule,custom_pipe_module_1.CustomPipeModule]]})},94983:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DoramaDetailComponent=void 0;const tslib_1=__webpack_require__2(70655),warna_1=(__webpack_require__2(74202),__webpack_require__2(87623)),i0=(__webpack_require__2(18439),__webpack_require__2(80855),__webpack_require__2(18745),__webpack_require__2(96382),__webpack_require__2(33e3),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(18745)),i5=tslib_1.__importStar(__webpack_require__2(18439)),i6=tslib_1.__importStar(__webpack_require__2(96382)),i7=tslib_1.__importStar(__webpack_require__2(69808)),i8=tslib_1.__importStar(__webpack_require__2(24028)),i9=tslib_1.__importStar(__webpack_require__2(8616)),i10=tslib_1.__importStar(__webpack_require__2(97567)),i11=tslib_1.__importStar(__webpack_require__2(47423)),i12=tslib_1.__importStar(__webpack_require__2(87238)),i13=tslib_1.__importStar(__webpack_require__2(25245)),i14=tslib_1.__importStar(__webpack_require__2(18757));function DoramaDetailComponent_div_0_Template(rf,ctx){if(1&rf){const _r2=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"h1",6)(6,"b"),i0.\u0275\u0275text(7),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(8,"div",7)(9,"app-material-chip",8),i0.\u0275\u0275listener("chipClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().openGenre($event)},"DoramaDetailComponent_div_0_Template_app_material_chip_chipClicked_9_listener")),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(10,"div",9),i0.\u0275\u0275element(11,"app-notifications",10),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(12,"div",7),i0.\u0275\u0275element(13,"app-material-expansion-panel",11),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(14,"div",12)(15,"div",13)(16,"div",14),i0.\u0275\u0275element(17,"img",15),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(18,"div",16)(19,"button",17),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().openSeasonalDorama()},"DoramaDetailComponent_div_0_Template_button_click_19_listener")),i0.\u0275\u0275elementStart(20,"mat-icon",18),i0.\u0275\u0275text(21,"dynamic_feed"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(22),i0.\u0275\u0275elementStart(23,"mat-icon",18),i0.\u0275\u0275text(24,"star_half"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(25),i0.\u0275\u0275element(26,"br"),i0.\u0275\u0275elementStart(27,"mat-icon",18),i0.\u0275\u0275text(28,"date_range"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(29),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(30,"div",16)(31,"button",19),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().openRank()},"DoramaDetailComponent_div_0_Template_button_click_31_listener")),i0.\u0275\u0275elementStart(32,"mat-icon",18),i0.\u0275\u0275text(33,"timeline"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(34),i0.\u0275\u0275elementStart(35,"mat-icon",18),i0.\u0275\u0275text(36,"local_fire_department"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(37),i0.\u0275\u0275element(38,"br"),i0.\u0275\u0275elementStart(39,"mat-icon",18),i0.\u0275\u0275text(40,"label"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(41),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275elementStart(42,"div",9)(43,"div",20)(44,"app-material-tab",21),i0.\u0275\u0275listener("gridClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().openFansub($event)},"DoramaDetailComponent_div_0_Template_app_material_tab_gridClicked_44_listener"))("tableRowClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().openFile($event)},"DoramaDetailComponent_div_0_Template_app_material_tab_tableRowClicked_44_listener"))("paginatorClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().onPaginatorClicked($event)},"DoramaDetailComponent_div_0_Template_app_material_tab_paginatorClicked_44_listener"))("serverSideFilter",__name(function($event){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().onServerSideFilter($event)},"DoramaDetailComponent_div_0_Template_app_material_tab_serverSideFilter_44_listener"))("serverSideOrder",__name(function($event){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().onServerSideOrder($event)},"DoramaDetailComponent_div_0_Template_app_material_tab_serverSideOrder_44_listener"))("gridLoadNextPage",__name(function(){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().onFansubLoadNextPage()},"DoramaDetailComponent_div_0_Template_app_material_tab_gridLoadNextPage_44_listener")),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275element(45,"div",22)(46,"div",23),i0.\u0275\u0275elementEnd()}if(2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(7),i0.\u0275\u0275textInterpolate((null==ctx_r0.doramaData.others?null:ctx_r0.doramaData.others.native_title)||ctx_r0.doramaData.title),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("chipData",ctx_r0.chipData),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("panelData",ctx_r0.panelData),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("src",ctx_r0.doramaData.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate2("matTooltip","Lihat Semua Dorama Pada Musim '",ctx_r0.seasonDorama," ",(null==ctx_r0.yearDorama?null:ctx_r0.yearDorama.getFullYear())||"","'"),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",("Movie"===(null==ctx_r0.doramaData.details?null:ctx_r0.doramaData.details.type)?"1":null==ctx_r0.doramaData.details?null:ctx_r0.doramaData.details.episodes)||"?"," Eps \xa0 "),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",ctx_r0.doramaData.rating||"?"," "),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate1(" ",(null==ctx_r0.doramaData.details?null:ctx_r0.doramaData.details.release_date)||(null==ctx_r0.doramaData.details?null:ctx_r0.doramaData.details.aired)||"?"," "),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1(" ",(null==ctx_r0.doramaData.details?null:ctx_r0.doramaData.details.ranked)||"?"," \xa0 "),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",(null==ctx_r0.doramaData.details?null:ctx_r0.doramaData.details.popularity)||"?"," "),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate1(" ",(null==ctx_r0.doramaData.details?null:ctx_r0.doramaData.details.type)||"?"," "),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("tabData",ctx_r0.tabData)("count",ctx_r0.count)("serverSide",!0)("gridPageFinished",ctx_r0.fansubPageFinished),i0.\u0275\u0275advance(1),i0.\u0275\u0275styleProp("background-image","url("+ctx_r0.doramaData.image_url+")")}}__name(DoramaDetailComponent_div_0_Template,"DoramaDetailComponent_div_0_Template");class DoramaDetailComponent{constructor(router,activatedRoute,gs,bs,pi,dorama,fs){this.router=router,this.activatedRoute=activatedRoute,this.gs=gs,this.bs=bs,this.pi=pi,this.dorama=dorama,this.fs=fs,this.doramaId="",this.doramaData=null,this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.fansubDorama=[],this.berkasDorama=[],this.fansubPageFinished=!1,this.fansubPage=1,this.chipData=[],this.panelData=[],this.tabData=[{name:"Daftar Fansub",icon:"closed_caption",type:"grid",data:[]},{name:"Berkas Terkait",icon:"file_copy",type:"table",data:{column:["Proyek","Nama Berkas","Tanggal","Pemilik"],row:[]}}],this.subsDorama=null,this.subsBerkas=null,this.subsFansub=null,this.subsParam=null,this.gs.bannerImg=null,this.gs.bgRepeat=!0,this.gs.sizeContain=!0}ngOnDestroy(){var _a,_b,_c,_d;null===(_a=this.subsDorama)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsBerkas)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsFansub)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsParam)||void 0===_d||_d.unsubscribe()}ngOnInit(){this.subsParam=this.activatedRoute.params.subscribe({next:p=>{const paramDoramaId=p.doramaId;this.doramaId=paramDoramaId.split("-")[0],this.bs.busy(),this.subsDorama=this.dorama.getDorama(paramDoramaId).subscribe({next:res=>{var _a,_b,_c,_d;if(this.gs.log("[DORAMA_DETAIL_SUCCESS]",res),this.doramaData=res.result,this.doramaData.image_url=this.doramaData.poster,this.pi.updatePageMetaData(`${this.doramaData.title}`,`${this.doramaData.synopsis}`,`${(null===(_b=null===(_a=this.doramaData)||void 0===_a?void 0:_a.others)||void 0===_b?void 0:_b.tags)?null===(_d=null===(_c=this.doramaData)||void 0===_c?void 0:_c.others)||void 0===_d?void 0:_d.tags.join(", "):this.doramaData.title}`,this.doramaData.image_url),this.bs.idle(),this.gs.isBrowser){if("others"in this.doramaData){const genres=this.doramaData.others.genres;for(const g of genres)this.chipData.push({name:g,selected:!0,color:warna_1.WARNA.PINK})}this.panelData=[],this.panelData.push({title:"Ringkasan Cerita",icon:"history_edu",text:this.doramaData.synopsis,tooltip:"Alih Bahasa Oleh 'Google Translate' \u{1f618}"}),this.fs.initializeFab(null,"/assets/img/logo/mdl.png","Buka Di MyDramaList",`https://mydramalist.com/${this.router.url.split("?")[0].split("/")[this.router.url.split("?")[0].split("/").length-1]}`,!0),this.getFansubDorama(),this.getBerkasDorama()}},error:err=>{this.gs.log("[DORAMA_DETAIL_ERROR]",err,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:"/dorama"}})}})}})}openRank(){}get yearDorama(){var _a,_b,_c,_d,_e,_f;return"release_date"in(null===(_a=this.doramaData)||void 0===_a?void 0:_a.details)?new Date(null===(_c=null===(_b=this.doramaData)||void 0===_b?void 0:_b.details)||void 0===_c?void 0:_c.release_date)||null:new Date(null===(_f=null===(_e=null===(_d=this.doramaData)||void 0===_d?void 0:_d.details)||void 0===_e?void 0:_e.aired)||void 0===_f?void 0:_f.split(" - ")[0])||null}get seasonDorama(){var _a;return(null===(_a=this.gs.seasonalWeather.find(sB=>{var _a2;return sB.id===Math.ceil(((null===(_a2=this.yearDorama)||void 0===_a2?void 0:_a2.getMonth())+1)/3)}))||void 0===_a?void 0:_a.name)||null}openSeasonalDorama(){var _a;this.router.navigate(["/dorama"],{queryParams:{season:this.seasonDorama,year:null===(_a=this.yearDorama)||void 0===_a?void 0:_a.getFullYear()}})}onServerSideFilter(data){this.gs.log("[BERKAS_DORAMA_ENTER_FILTER]",data),this.q=data,this.getBerkasDorama()}onServerSideOrder(data){this.gs.log("[BERKAS_DORAMA_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,this.order=data.direction,this.getBerkasDorama()}getBerkasDorama(){this.bs.busy(),this.subsBerkas=this.dorama.getBerkasDorama([this.doramaId],this.q,this.page,this.row,this.sort,this.order).subscribe({next:res=>{this.gs.log("[BERKAS_DORAMA_SUCCESS]",res),this.count=res.count,this.berkasDorama=[];for(const r of res.results[this.doramaId])this.berkasDorama.push({id:r.id,private:r.private,foto:r.user_.image_url,Pemilik:r.user_.username,Proyek:r.project_type_.name,Tanggal:r.created_at,"Nama Berkas":r.name});this.tabData[1].data.row=this.berkasDorama,this.bs.idle()},error:err=>{this.gs.log("[BERKAS_DORAMA_ERROR]",err,"error"),this.bs.idle()}})}getFansubDorama(){this.bs.busy(),this.subsFansub=this.dorama.getFansubDorama([this.doramaId],this.fansubPage).subscribe({next:res=>{this.gs.log("[FANSUB_DORAMA_SUCCESS]",res);for(const r of res.results[this.doramaId])this.fansubDorama.push({id:r.id,image:r.image_url,title:r.name,slug:r.slug,description:`${r.slug} :: ${r.active?"Aktif":"Non-Aktif"}`});this.tabData[0].data=this.fansubDorama,res.results[this.doramaId].length<=0&&(this.fansubPageFinished=!0),this.bs.idle()},error:err=>{this.gs.log("[FANSUB_DORAMA_ERROR]",err,"error"),this.bs.idle()}})}openGenre(data){this.gs.log("[DORAMA_DETAIL_CLICK_GENRE]",data)}openFansub(data){this.gs.log("[DORAMA_DETAIL_CLICK_FANSUB]",data),this.router.navigateByUrl(`/fansub/${data.slug}`)}onPaginatorClicked(data){this.gs.log("[DORAMA_DETAIL_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getBerkasDorama()}openFile(data){this.gs.log("[DORAMA_DETAIL_CLICK_BERKAS]",data),this.router.navigateByUrl(`/berkas/${data.id}`)}onFansubLoadNextPage(){this.fansubPageFinished||(this.fansubPage++,this.getFansubDorama())}}__name(DoramaDetailComponent,"DoramaDetailComponent"),exports2.DoramaDetailComponent=DoramaDetailComponent,DoramaDetailComponent.\u0275fac=__name(function(t){return new(t||DoramaDetailComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.PageInfoService),i0.\u0275\u0275directiveInject(i5.DoramaService),i0.\u0275\u0275directiveInject(i6.FabService))},"DoramaDetailComponent_Factory"),DoramaDetailComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:DoramaDetailComponent,selectors:[["app-dorama-detail"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"dorama-info","align-items-center"],[1,"row","py-3","px-2","d-flex"],[1,"col-md-8","col-xl-9","pt-3","order-2","order-md-1"],[1,"row","py-3","px-0","mt-auto"],[1,"m-0"],[1,"row","py-3"],[3,"chipData","chipClicked"],[1,"row"],[1,"px-0"],[3,"panelData"],[1,"col-md-4","col-xl-3","px-3","order-1","order-md-2"],[1,"row","sticky-top","pt-3"],[1,"col-12","pt-4"],[1,"dorama-image",3,"src"],[1,"col-12","text-center","pt-3"],["mat-stroked-button","","color","accent",1,"w-100",3,"matTooltip","click"],[1,"me-1"],["mat-stroked-button","","color","warn","matTooltip","Buka Ranking Di MyDramaList",1,"w-100",3,"click"],[1,"col-12"],[3,"tabData","count","serverSide","gridPageFinished","gridClicked","tableRowClicked","paginatorClicked","serverSideFilter","serverSideOrder","gridLoadNextPage"],[1,"dorama-banner","dorama-banner-1","align-items-center"],[1,"dorama-banner","dorama-banner-2","align-items-center"]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275template(0,DoramaDetailComponent_div_0_Template,47,18,"div",0),2&rf&&i0.\u0275\u0275property("ngIf",ctx.doramaData)},"DoramaDetailComponent_Template"),directives:[i7.NgIf,i8.MaterialChipComponent,i9.NotificationsComponent,i10.MaterialExpansionPanelComponent,i11.MatButton,i12.MatTooltip,i13.MatIcon,i14.MaterialTabComponent],styles:[".dorama-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;filter:blur(10px) brightness(100%);opacity:.5}.dorama-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.dorama-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.dorama-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}.dorama-image[_ngcontent-%COMP%]{width:100%}"]})},7285:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DoramaListComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),material_moment_adapter_1=(__webpack_require__2(74202),__webpack_require__2(53170)),core_1=__webpack_require__2(90508),seasons_1=__webpack_require__2(76022),moment_1=__webpack_require__2(41139),i0=(__webpack_require__2(80855),__webpack_require__2(18439),__webpack_require__2(96382),__webpack_require__2(33e3),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(33e3)),i3=tslib_1.__importStar(__webpack_require__2(80855)),i4=tslib_1.__importStar(__webpack_require__2(96382)),i5=tslib_1.__importStar(__webpack_require__2(18439)),i6=tslib_1.__importStar(__webpack_require__2(8616)),i7=tslib_1.__importStar(__webpack_require__2(93075)),i8=tslib_1.__importStar(__webpack_require__2(67322)),i9=tslib_1.__importStar(__webpack_require__2(74107)),i10=tslib_1.__importStar(__webpack_require__2(90508)),i11=tslib_1.__importStar(__webpack_require__2(77531)),i12=tslib_1.__importStar(__webpack_require__2(86856)),i13=tslib_1.__importStar(__webpack_require__2(25245)),i14=tslib_1.__importStar(__webpack_require__2(69808)),i15=tslib_1.__importStar(__webpack_require__2(876)),i16=tslib_1.__importStar(__webpack_require__2(18757));function DoramaListComponent_mat_option_34_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-option",24),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const c_r2=ctx.$implicit;i0.\u0275\u0275propertyInterpolate("value",c_r2),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(c_r2)}}__name(DoramaListComponent_mat_option_34_Template,"DoramaListComponent_mat_option_34_Template");class DoramaListComponent{constructor(activatedRoute,router,bs,gs,fs,dorama){this.activatedRoute=activatedRoute,this.router=router,this.bs=bs,this.gs=gs,this.fs=fs,this.dorama=dorama,this.currentMonth=null,this.currentYear=null,this.selectedCountryName="",this.selectedSeasonName=null,this.doramaCountry=[],this.seasonalDorama=[],this.seasonalDoramaCard=[],this.seasonalDoramaWithFansub=[],this.tabData=[{name:"Info Garapan",icon:"closed_caption",type:"table",data:{column:["Jenis","Poster","Judul Dorama","Nama Fansub"],row:[]}}],this.subsQueryParam=null,this.subsSeasonalDorama=null,this.subsFansubDorama=null,this.gs.bannerImg="/assets/img/season/winter.png",this.gs.bgRepeat=!0,this.gs.sizeContain=!0}ngOnDestroy(){var _a,_b,_c;null===(_a=this.subsQueryParam)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsSeasonalDorama)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsFansubDorama)||void 0===_c||_c.unsubscribe()}ngOnInit(){this.fg=new forms_1.FormGroup({currentDate:new forms_1.FormControl({value:(0,moment_1.moment)(),disabled:!0},forms_1.Validators.required)}),this.currentMonth=new Date(this.fg.value.currentDate.format()).getMonth()+1,this.currentYear=new Date(this.fg.value.currentDate.format()).getFullYear(),this.minDate=new Date("2011-01-01"),this.maxDate=new Date(this.currentYear+1,11,31),this.gs.isBrowser&&this.watchUrlRoute()}watchUrlRoute(){this.subsQueryParam=this.activatedRoute.queryParams.subscribe({next:qp=>{this.bs.busy(),this.currentYear=qp.year?Number.isNaN(parseInt(qp.year,10))?this.currentYear:parseInt(qp.year,10):(new Date).getFullYear(),this.fg.controls.currentDate.patchValue((0,moment_1.moment)(new Date(`${this.currentYear}-${this.currentMonth}-01`))),this.currentYear=new Date(this.fg.value.currentDate.format()).getFullYear(),this.selectedSeasonName=qp.season&&[seasons_1.SEASONS.WINTER,seasons_1.SEASONS.SPRING,seasons_1.SEASONS.SUMMER,seasons_1.SEASONS.FALL].indexOf(qp.season)>=0?qp.season:this.findSeasonNameByMonthNumber(this.currentMonth),this.gs.bannerImg=this.gs.seasonalWeather.find(sB=>sB.name===this.selectedSeasonName).img,this.bs.idle(),this.getSeasonalDorama(qp.year&&qp.season)}})}findSeasonNameByMonthNumber(monthNumber){return this.gs.seasonalWeather.find(sB=>sB.id===Math.ceil(monthNumber/3)).name}chosenYearHandler(normalizedYear,datepicker){const ctrlValue=this.fg.value.currentDate;ctrlValue.year(normalizedYear.year()),this.fg.controls.currentDate.setValue(ctrlValue),this.currentMonth=new Date(this.fg.value.currentDate.format()).getMonth()+1,this.currentYear=new Date(this.fg.value.currentDate.format()).getFullYear(),datepicker.close(),this.changeSeasonalDorama()}getSeasonalDorama(showFab=!1){this.bs.busy(),this.subsSeasonalDorama=this.dorama.getSeasonalDorama(this.currentYear,this.selectedSeasonName).subscribe({next:res=>{this.gs.log("[DORAMA_SEASONAL_SUCCESS]",res),this.seasonalDorama=res.results.sort((a,b2)=>(b2.rating||0)-(a.rating||0)),this.doramaCountry=[];for(const sD of this.seasonalDorama)sD.mdl_id=sD.id,sD.image_url=sD.cover,this.doramaCountry.push(sD.country);this.doramaCountry=[...new Set(this.doramaCountry)].sort(),showFab&&this.fs.initializeFab("settings_backup_restore",null,"Kembali Ke Musim Sekarang","/dorama",!1),this.bs.idle(),this.getFansubDorama()},error:err=>{this.gs.log("[DORAMA_SEASONAL_ERROR]",err,"error"),this.bs.idle()}})}getFansubDorama(){this.bs.busy(),this.tabData[0].data.row=[];const seasonalDoramaListId=[];for(const sD of this.seasonalDorama)seasonalDoramaListId.push(sD.mdl_id);this.subsFansubDorama=this.dorama.getFansubDorama(seasonalDoramaListId).subscribe({next:res=>{this.gs.log("[FANSUB_DORAMA_SUCCESS]",res),this.seasonalDoramaWithFansub=[];for(const sD of this.seasonalDorama){sD.namaFansubs=res.results[sD.mdl_id];for(const f2 of sD.namaFansubs)f2.selected=!0,f2.type="chip";this.seasonalDoramaWithFansub.push({url:sD.url,country:sD.country,Jenis:`${sD.type} \u2022 ${sD.rating||0}`,Poster:sD.image_url,"Judul Dorama":sD.title,"Nama Fansub":sD.namaFansubs})}this.seasonalDoramaWithFansub=this.seasonalDoramaWithFansub.sort((a,b2)=>b2["Nama Fansub"].length-a["Nama Fansub"].length),this.bs.idle(),this.changeCountryDorama()},error:err=>{this.gs.log("[FANSUB_DORAMA_ERROR]",err,"error"),this.bs.idle()}})}changeSeasonalDorama(){this.router.navigate(["/dorama"],{queryParams:{season:this.selectedSeasonName,year:this.currentYear}})}changeCountryDorama(){this.tabData[0].data.row=this.seasonalDoramaWithFansub.filter(x=>x.country.includes(this.selectedCountryName)),this.seasonalDoramaCard=this.seasonalDorama.filter(x=>x.country.includes(this.selectedCountryName))}openDoramaPage(data){this.gs.log("[DORAMA_SEASONAL_CLICK_DORAMA]",data),this.router.navigateByUrl(`/dorama/${data.url.replace(/[^a-zA-Z0-9\-]/g,"")}`)}openFansub(data){this.gs.log("[DORAMA_SEASONAL_CLICK_FANSUB]",data),this.router.navigateByUrl(`/fansub/${data.slug}`)}}__name(DoramaListComponent,"DoramaListComponent"),exports2.DoramaListComponent=DoramaListComponent,DoramaListComponent.\u0275fac=__name(function(t){return new(t||DoramaListComponent)(i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.BusyService),i0.\u0275\u0275directiveInject(i3.GlobalService),i0.\u0275\u0275directiveInject(i4.FabService),i0.\u0275\u0275directiveInject(i5.DoramaService))},"DoramaListComponent_Factory"),DoramaListComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:DoramaListComponent,selectors:[["app-dorama-list"]],features:[i0.\u0275\u0275ProvidersFeature([{provide:core_1.DateAdapter,useClass:material_moment_adapter_1.MomentDateAdapter,deps:[core_1.MAT_DATE_LOCALE,material_moment_adapter_1.MAT_MOMENT_DATE_ADAPTER_OPTIONS]},{provide:core_1.MAT_DATE_FORMATS,useValue:moment_1.MY_FORMATS}])],decls:39,vars:12,consts:[[1,"container"],[1,"row","pb-3"],[1,"col-12"],[1,"row"],[1,"col-12","pb-3","sticky-top","bg-bifeldy",3,"formGroup"],[1,"m-0","border-bottom","border-primary","row"],[1,"pt-3","col-4","col-lg-2",3,"color"],[3,"value","valueChange"],["value","winter"],["value","spring"],["value","summer"],["value","fall"],[1,"pt-3","col-4","col-lg-2"],["matInput","","formControlName","currentDate",3,"matDatepicker","min","max"],["matSuffix","",1,"shiny",3,"for"],["matDatepickerToggleIcon","",1,"animate__animated","animate__swing","animate__infinite","animate__slower"],["startView","multi-year","disabled","false",3,"yearSelected"],["picker",""],[1,"ms-auto","pt-3","col-4","col-lg-2",3,"color"],["value",""],[3,"value",4,"ngFor","ngForOf"],[3,"animeDoramaData","cardClicked"],[1,"row","pt-3"],[3,"tabData","chipClicked","tableRowClicked"],[3,"value"]],template:__name(function(rf,ctx){if(1&rf){const _r3=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h3",5)(7,"mat-form-field",6)(8,"mat-label"),i0.\u0275\u0275text(9,"Tema Musim"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(10,"mat-select",7),i0.\u0275\u0275listener("valueChange",__name(function($event){return ctx.selectedSeasonName=$event},"DoramaListComponent_Template_mat_select_valueChange_10_listener"))("valueChange",__name(function(){return ctx.changeSeasonalDorama()},"DoramaListComponent_Template_mat_select_valueChange_10_listener")),i0.\u0275\u0275elementStart(11,"mat-option",8),i0.\u0275\u0275text(12,"Winter"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(13,"mat-option",9),i0.\u0275\u0275text(14,"Spring"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(15,"mat-option",10),i0.\u0275\u0275text(16,"Summer"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(17,"mat-option",11),i0.\u0275\u0275text(18,"Fall"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(19,"mat-form-field",12)(20,"mat-label"),i0.\u0275\u0275text(21,"Tahun"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(22,"input",13),i0.\u0275\u0275elementStart(23,"mat-datepicker-toggle",14)(24,"mat-icon",15),i0.\u0275\u0275text(25,"today"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(26,"mat-datepicker",16,17),i0.\u0275\u0275listener("yearSelected",__name(function($event){i0.\u0275\u0275restoreView(_r3);const _r0=i0.\u0275\u0275reference(27);return ctx.chosenYearHandler($event,_r0)},"DoramaListComponent_Template_mat_datepicker_yearSelected_26_listener")),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(28,"mat-form-field",18)(29,"mat-label"),i0.\u0275\u0275text(30,"Negara"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(31,"mat-select",7),i0.\u0275\u0275listener("valueChange",__name(function($event){return ctx.selectedCountryName=$event},"DoramaListComponent_Template_mat_select_valueChange_31_listener"))("valueChange",__name(function(){return ctx.changeCountryDorama()},"DoramaListComponent_Template_mat_select_valueChange_31_listener")),i0.\u0275\u0275elementStart(32,"mat-option",19),i0.\u0275\u0275text(33,"Semua"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(34,DoramaListComponent_mat_option_34_Template,2,2,"mat-option",20),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(35,"div",2)(36,"app-card-anime-dorama",21),i0.\u0275\u0275listener("cardClicked",__name(function($event){return ctx.openDoramaPage($event)},"DoramaListComponent_Template_app_card_anime_dorama_cardClicked_36_listener")),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275elementStart(37,"div",22)(38,"app-material-tab",23),i0.\u0275\u0275listener("chipClicked",__name(function($event){return ctx.openFansub($event)},"DoramaListComponent_Template_app_material_tab_chipClicked_38_listener"))("tableRowClicked",__name(function($event){return ctx.openDoramaPage($event)},"DoramaListComponent_Template_app_material_tab_tableRowClicked_38_listener")),i0.\u0275\u0275elementEnd()()()}if(2&rf){const _r0=i0.\u0275\u0275reference(27);i0.\u0275\u0275advance(5),i0.\u0275\u0275property("formGroup",ctx.fg),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("value",ctx.selectedSeasonName),i0.\u0275\u0275advance(12),i0.\u0275\u0275property("matDatepicker",_r0)("min",ctx.minDate)("max",ctx.maxDate),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("for",_r0),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("value",ctx.selectedCountryName),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngForOf",ctx.doramaCountry),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("animeDoramaData",ctx.seasonalDoramaCard),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("tabData",ctx.tabData)}},"DoramaListComponent_Template"),directives:[i6.NotificationsComponent,i7.NgControlStatusGroup,i7.FormGroupDirective,i8.MatFormField,i8.MatLabel,i9.MatSelect,i10.MatOption,i11.MatInput,i7.DefaultValueAccessor,i12.MatDatepickerInput,i7.NgControlStatus,i7.FormControlName,i12.MatDatepickerToggle,i8.MatSuffix,i13.MatIcon,i12.MatDatepickerToggleIcon,i12.MatDatepicker,i14.NgForOf,i15.CardAnimeDoramaComponent,i16.MaterialTabComponent],styles:[""]})},26796:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DoramaModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),shared_material_module_1=__webpack_require__2(20210),material_tab_module_1=__webpack_require__2(66436),material_chip_module_1=__webpack_require__2(54946),material_expansion_panel_module_1=__webpack_require__2(6020),card_anime_dorama_module_1=__webpack_require__2(42323),notifications_module_1=__webpack_require__2(88613),dorama_list_component_1=__webpack_require__2(7285),dorama_detail_component_1=__webpack_require__2(94983),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:dorama_list_component_1.DoramaListComponent},{path:":doramaId",component:dorama_detail_component_1.DoramaDetailComponent}]);class DoramaModule{}__name(DoramaModule,"DoramaModule"),exports2.DoramaModule=DoramaModule,DoramaModule.\u0275fac=__name(function(t){return new(t||DoramaModule)},"DoramaModule_Factory"),DoramaModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:DoramaModule}),DoramaModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),forms_1.FormsModule,forms_1.ReactiveFormsModule,shared_material_module_1.SharedMaterialModule,material_tab_module_1.MaterialTabModule,material_expansion_panel_module_1.MaterialExpansionPanelModule,material_chip_module_1.MaterialChipModule,card_anime_dorama_module_1.CardAnimeDoramaModule,notifications_module_1.NotificationsModule]]})},27990:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubDetailComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=(__webpack_require__2(74202),__webpack_require__2(15934)),req_res_model_1=__webpack_require__2(14249),warna_1=__webpack_require__2(87623),i0=(__webpack_require__2(80855),__webpack_require__2(96382),__webpack_require__2(76781),__webpack_require__2(18745),__webpack_require__2(33e3),__webpack_require__2(28381),__webpack_require__2(88020),__webpack_require__2(4137),__webpack_require__2(55393),__webpack_require__2(96925),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(33e3)),i3=tslib_1.__importStar(__webpack_require__2(4137)),i4=tslib_1.__importStar(__webpack_require__2(55393)),i5=tslib_1.__importStar(__webpack_require__2(80855)),i6=tslib_1.__importStar(__webpack_require__2(96382)),i7=tslib_1.__importStar(__webpack_require__2(18745)),i8=tslib_1.__importStar(__webpack_require__2(76781)),i9=tslib_1.__importStar(__webpack_require__2(28381)),i10=tslib_1.__importStar(__webpack_require__2(96925)),i11=tslib_1.__importStar(__webpack_require__2(88020)),i12=tslib_1.__importStar(__webpack_require__2(69808)),i13=tslib_1.__importStar(__webpack_require__2(47423)),i14=tslib_1.__importStar(__webpack_require__2(87238)),i15=tslib_1.__importStar(__webpack_require__2(25245)),i16=tslib_1.__importStar(__webpack_require__2(40192)),i17=tslib_1.__importStar(__webpack_require__2(14623)),i18=tslib_1.__importStar(__webpack_require__2(24028)),i19=tslib_1.__importStar(__webpack_require__2(8616)),i20=tslib_1.__importStar(__webpack_require__2(97567)),i21=tslib_1.__importStar(__webpack_require__2(16647)),i22=tslib_1.__importStar(__webpack_require__2(18757)),i23=tslib_1.__importStar(__webpack_require__2(86766));function FansubDetailComponent_div_0_div_17_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",8)(1,"a",35)(2,"mat-icon",10),i0.\u0275\u0275text(3,"facebook"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Facebook Fanpage "),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r1=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("href",ctx_r1.getUrlByName("facebook"),i0.\u0275\u0275sanitizeUrl)}}function FansubDetailComponent_div_0_div_18_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",8)(1,"a",36),i0.\u0275\u0275element(2,"img",37),i0.\u0275\u0275text(3," Ruang Obrolan Discord "),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r2=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("href",ctx_r2.getUrlByName("discord"),i0.\u0275\u0275sanitizeUrl)}}function FansubDetailComponent_div_0_div_19_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",8)(1,"a",38),i0.\u0275\u0275element(2,"img",39),i0.\u0275\u0275text(3," Cuitan Twitter "),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("href",ctx_r3.getUrlByName("twitter"),i0.\u0275\u0275sanitizeUrl)}}function FansubDetailComponent_div_0_a_29_Template(rf,ctx){if(1&rf){const _r13=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"a",40),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r13),i0.\u0275\u0275nextContext(2).joinLeaveMember()},"FansubDetailComponent_div_0_a_29_Template_a_click_0_listener")),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()}if(2&rf){const ctx_r4=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",ctx_r4.joinedAsMember?"Keluar":"Gabung"," ")}}function FansubDetailComponent_div_0_app_no_data_34_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"app-no-data")}function FansubDetailComponent_div_0_mat_selection_list_35_mat_list_option_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option",43),i0.\u0275\u0275element(1,"img",44),i0.\u0275\u0275elementStart(2,"a",45)(3,"span",46),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"span",47),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd()()()),2&rf){const m_r15=ctx.$implicit;i0.\u0275\u0275propertyInterpolate1("routerLink","/user/",m_r15.user_.username,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",m_r15.user_.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",m_r15.keterangan," "),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(m_r15.user_.username)}}function FansubDetailComponent_div_0_mat_selection_list_35_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-selection-list",41),i0.\u0275\u0275template(1,FansubDetailComponent_div_0_mat_selection_list_35_mat_list_option_1_Template,7,4,"mat-list-option",42),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r6=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r6.approvedMembers)}}function FansubDetailComponent_div_0_mat_selection_list_36_mat_list_option_1_Template(rf,ctx){if(1&rf){const _r19=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-list-option",49),i0.\u0275\u0275element(1,"img",44),i0.\u0275\u0275elementStart(2,"a",45)(3,"span",50)(4,"small",51),i0.\u0275\u0275listener("click",__name(function(){const m_r17=i0.\u0275\u0275restoreView(_r19).$implicit;return i0.\u0275\u0275nextContext(3).approveMember(m_r17)},"FansubDetailComponent_div_0_mat_selection_list_36_mat_list_option_1_Template_small_click_4_listener")),i0.\u0275\u0275text(5," Terima "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(6," | "),i0.\u0275\u0275elementStart(7,"small",52),i0.\u0275\u0275listener("click",__name(function(){const m_r17=i0.\u0275\u0275restoreView(_r19).$implicit;return i0.\u0275\u0275nextContext(3).rejectMember(m_r17)},"FansubDetailComponent_div_0_mat_selection_list_36_mat_list_option_1_Template_small_click_7_listener")),i0.\u0275\u0275text(8," Tolak "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(9,"span",53),i0.\u0275\u0275text(10),i0.\u0275\u0275elementEnd()()()}if(2&rf){const m_r17=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",m_r17.user_.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(8),i0.\u0275\u0275propertyInterpolate1("routerLink","/user/",m_r17.user_.username,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",m_r17.user_.username," ")}}function FansubDetailComponent_div_0_mat_selection_list_36_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-selection-list",41),i0.\u0275\u0275template(1,FansubDetailComponent_div_0_mat_selection_list_36_mat_list_option_1_Template,11,3,"mat-list-option",48),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r7=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r7.pendingMembers)}}function FansubDetailComponent_div_0_div_42_Template(rf,ctx){if(1&rf){const _r22=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",8)(1,"button",54),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r22),i0.\u0275\u0275nextContext(2).getSubDomain()},"FansubDetailComponent_div_0_div_42_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",10),i0.\u0275\u0275text(3,"dns"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r8=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate2(" 'https://",ctx_r8.fansubData.slug,".",ctx_r8.ENV.domain,"' ")}}function FansubDetailComponent_div_0_div_52_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",15),i0.\u0275\u0275element(1,"app-material-expansion-panel",55),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r9=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("panelData",ctx_r9.panelData)}}function FansubDetailComponent_div_0_div_53_mat_list_option_9_Template(rf,ctx){if(1&rf){const _r26=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-list-option",49)(1,"mat-icon",60),i0.\u0275\u0275text(2,"rss_feed"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"a",61),i0.\u0275\u0275listener("click",__name(function(){const r_r24=i0.\u0275\u0275restoreView(_r26).$implicit;return i0.\u0275\u0275nextContext(3).openRssFeed(r_r24.link)},"FansubDetailComponent_div_0_div_53_mat_list_option_9_Template_a_click_3_listener")),i0.\u0275\u0275elementStart(4,"span",62),i0.\u0275\u0275text(5),i0.\u0275\u0275pipe(6,"dateAgo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(7,"span",63),i0.\u0275\u0275elementEnd()()}if(2&rf){const r_r24=ctx.$implicit;i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind1(6,2,r_r24.created||r_r24.published)),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("innerHtml",r_r24.title,i0.\u0275\u0275sanitizeHtml)}}function FansubDetailComponent_div_0_div_53_Template(rf,ctx){if(1&rf){const _r28=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",15)(1,"div",56)(2,"h2",57)(3,"span",58),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r28),i0.\u0275\u0275nextContext(2).getRssFeed()},"FansubDetailComponent_div_0_div_53_Template_span_click_3_listener")),i0.\u0275\u0275text(4," Refresh "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"b",59),i0.\u0275\u0275text(6,"RSS Feed Fansub"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(7,"div",14)(8,"mat-selection-list",41),i0.\u0275\u0275template(9,FansubDetailComponent_div_0_div_53_mat_list_option_9_Template,8,4,"mat-list-option",48),i0.\u0275\u0275pipe(10,"slice"),i0.\u0275\u0275elementEnd()()()}if(2&rf){const ctx_r10=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(8),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind3(10,2,ctx_r10.rssFeedData.items,0,5))}}function FansubDetailComponent_div_0_div_54_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",15)(1,"div",14),i0.\u0275\u0275element(2,"app-report"),i0.\u0275\u0275elementEnd()())}function FansubDetailComponent_div_0_Template(rf,ctx){if(1&rf){const _r30=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),i0.\u0275\u0275element(6,"img",7),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"div",8)(8,"button",9)(9,"mat-icon",10),i0.\u0275\u0275text(10,"calendar_today"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(11),i0.\u0275\u0275pipe(12,"date"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(13,"button",11)(14,"mat-icon",10),i0.\u0275\u0275text(15,"history"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(16),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(17,FansubDetailComponent_div_0_div_17_Template,5,1,"div",12),i0.\u0275\u0275template(18,FansubDetailComponent_div_0_div_18_Template,4,1,"div",12),i0.\u0275\u0275template(19,FansubDetailComponent_div_0_div_19_Template,4,1,"div",12),i0.\u0275\u0275elementStart(20,"div",8)(21,"button",13),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r30),i0.\u0275\u0275nextContext().editFansubData()},"FansubDetailComponent_div_0_Template_button_click_21_listener")),i0.\u0275\u0275elementStart(22,"mat-icon",10),i0.\u0275\u0275text(23,"edit"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(24," Perbaharui Informasi "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(25,"div",14)(26,"div",15)(27,"div",16)(28,"h2",17),i0.\u0275\u0275template(29,FansubDetailComponent_div_0_a_29_Template,2,1,"a",18),i0.\u0275\u0275elementStart(30,"b",19),i0.\u0275\u0275text(31),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(32,"div",20)(33,"div",21),i0.\u0275\u0275template(34,FansubDetailComponent_div_0_app_no_data_34_Template,1,0,"app-no-data",22),i0.\u0275\u0275template(35,FansubDetailComponent_div_0_mat_selection_list_35_Template,2,2,"mat-selection-list",23),i0.\u0275\u0275template(36,FansubDetailComponent_div_0_mat_selection_list_36_Template,2,2,"mat-selection-list",23),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(37,"div",8)(38,"button",24),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r30),i0.\u0275\u0275nextContext().togglePendingMembers()},"FansubDetailComponent_div_0_Template_button_click_38_listener")),i0.\u0275\u0275elementStart(39,"mat-icon",10),i0.\u0275\u0275text(40,"manage_accounts"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(41),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275template(42,FansubDetailComponent_div_0_div_42_Template,5,2,"div",12),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(43,"div",25)(44,"div",26)(45,"h1",27)(46,"b"),i0.\u0275\u0275text(47),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(48,"div",15)(49,"app-material-chip",28),i0.\u0275\u0275listener("chipClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r30),i0.\u0275\u0275nextContext().openTag($event)},"FansubDetailComponent_div_0_Template_app_material_chip_chipClicked_49_listener")),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(50,"div",29),i0.\u0275\u0275element(51,"app-notifications",30),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(52,FansubDetailComponent_div_0_div_52_Template,2,1,"div",31),i0.\u0275\u0275template(53,FansubDetailComponent_div_0_div_53_Template,11,6,"div",31),i0.\u0275\u0275template(54,FansubDetailComponent_div_0_div_54_Template,3,0,"div",31),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(55,"div",29)(56,"div",14)(57,"app-material-tab",32),i0.\u0275\u0275listener("listClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r30),i0.\u0275\u0275nextContext().openAnime($event)},"FansubDetailComponent_div_0_Template_app_material_tab_listClicked_57_listener"))("gridClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r30),i0.\u0275\u0275nextContext().openDorama($event)},"FansubDetailComponent_div_0_Template_app_material_tab_gridClicked_57_listener"))("tableRowClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r30),i0.\u0275\u0275nextContext().openFile($event)},"FansubDetailComponent_div_0_Template_app_material_tab_tableRowClicked_57_listener"))("paginatorClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r30),i0.\u0275\u0275nextContext().onPaginatorClicked($event)},"FansubDetailComponent_div_0_Template_app_material_tab_paginatorClicked_57_listener"))("serverSideFilter",__name(function($event){return i0.\u0275\u0275restoreView(_r30),i0.\u0275\u0275nextContext().onServerSideFilter($event)},"FansubDetailComponent_div_0_Template_app_material_tab_serverSideFilter_57_listener"))("serverSideOrder",__name(function($event){return i0.\u0275\u0275restoreView(_r30),i0.\u0275\u0275nextContext().onServerSideOrder($event)},"FansubDetailComponent_div_0_Template_app_material_tab_serverSideOrder_57_listener"))("gridLoadNextPage",__name(function(){return i0.\u0275\u0275restoreView(_r30),i0.\u0275\u0275nextContext().onDoramaLoadNextPage()},"FansubDetailComponent_div_0_Template_app_material_tab_gridLoadNextPage_57_listener"))("listLoadNextPage",__name(function(){return i0.\u0275\u0275restoreView(_r30),i0.\u0275\u0275nextContext().onAnimeLoadNextPage()},"FansubDetailComponent_div_0_Template_app_material_tab_listLoadNextPage_57_listener")),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275element(58,"div",33)(59,"div",34),i0.\u0275\u0275elementEnd()}if(2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(6),i0.\u0275\u0275property("src",ctx_r0.fansubData.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1(" ",i0.\u0275\u0275pipeBind2(12,26,ctx_r0.fansubData.born,"d MMMM y")," "),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1(" ",ctx_r0.fansubData.active?"Aktif":"Tidak Aktif"," "),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.getUrlByName("facebook")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.getUrlByName("discord")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.getUrlByName("twitter")),i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate("matTooltip",ctx_r0.fansubData.user_?"Terakhir Di Ubah Oleh :: "+ctx_r0.fansubData.user_.username:"Perbaharui Data Fansub"),i0.\u0275\u0275advance(8),i0.\u0275\u0275property("ngIf",!ctx_r0.showPendingMember),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate1(" ",ctx_r0.showPendingMember?"Permintaan Gabung":"Anggota"," "),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngIf",!ctx_r0.showPendingMember&&ctx_r0.approvedMembers.length<=0||ctx_r0.showPendingMember&&ctx_r0.pendingMembers.length<=0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!ctx_r0.showPendingMember&&ctx_r0.approvedMembers.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.showPendingMember&&ctx_r0.pendingMembers.length>0),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1(" Lihat ",ctx_r0.showPendingMember?"Anggota":"Permintaan Gabung"," "),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!ctx_r0.fansubData.dns_id),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate(ctx_r0.fansubData.name),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("chipData",ctx_r0.chipData),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngIf",ctx_r0.panelData.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",(null==ctx_r0.rssFeedData?null:ctx_r0.rssFeedData.items.length)>0&&"null"!==ctx_r0.fansubSlug),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",null==ctx_r0.SS.mySocket?null:ctx_r0.SS.mySocket.id),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("tabData",ctx_r0.tabData)("count",ctx_r0.count)("serverSide",!0)("gridPageFinished",ctx_r0.doramaPageFinished)("listPageFinished",ctx_r0.animePageFinished),i0.\u0275\u0275advance(1),i0.\u0275\u0275styleProp("background-image","url("+ctx_r0.fansubData.cover_url+")")}}__name(FansubDetailComponent_div_0_div_17_Template,"FansubDetailComponent_div_0_div_17_Template"),__name(FansubDetailComponent_div_0_div_18_Template,"FansubDetailComponent_div_0_div_18_Template"),__name(FansubDetailComponent_div_0_div_19_Template,"FansubDetailComponent_div_0_div_19_Template"),__name(FansubDetailComponent_div_0_a_29_Template,"FansubDetailComponent_div_0_a_29_Template"),__name(FansubDetailComponent_div_0_app_no_data_34_Template,"FansubDetailComponent_div_0_app_no_data_34_Template"),__name(FansubDetailComponent_div_0_mat_selection_list_35_mat_list_option_1_Template,"FansubDetailComponent_div_0_mat_selection_list_35_mat_list_option_1_Template"),__name(FansubDetailComponent_div_0_mat_selection_list_35_Template,"FansubDetailComponent_div_0_mat_selection_list_35_Template"),__name(FansubDetailComponent_div_0_mat_selection_list_36_mat_list_option_1_Template,"FansubDetailComponent_div_0_mat_selection_list_36_mat_list_option_1_Template"),__name(FansubDetailComponent_div_0_mat_selection_list_36_Template,"FansubDetailComponent_div_0_mat_selection_list_36_Template"),__name(FansubDetailComponent_div_0_div_42_Template,"FansubDetailComponent_div_0_div_42_Template"),__name(FansubDetailComponent_div_0_div_52_Template,"FansubDetailComponent_div_0_div_52_Template"),__name(FansubDetailComponent_div_0_div_53_mat_list_option_9_Template,"FansubDetailComponent_div_0_div_53_mat_list_option_9_Template"),__name(FansubDetailComponent_div_0_div_53_Template,"FansubDetailComponent_div_0_div_53_Template"),__name(FansubDetailComponent_div_0_div_54_Template,"FansubDetailComponent_div_0_div_54_Template"),__name(FansubDetailComponent_div_0_Template,"FansubDetailComponent_div_0_Template");class FansubDetailComponent{constructor(activatedRoute,router,bs,as,ds,gs,fs,pi,fansub,ss,toast,wb){this.activatedRoute=activatedRoute,this.router=router,this.bs=bs,this.as=as,this.ds=ds,this.gs=gs,this.fs=fs,this.pi=pi,this.fansub=fansub,this.ss=ss,this.toast=toast,this.wb=wb,this.fansubSlug="",this.fansubData=null,this.rssFeedData=null,this.approvedMembers=[],this.pendingMembers=[],this.joinedAsMember=null,this.showPendingMember=!1,this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.animeFansub=[],this.doramaFansub=[],this.berkasFansub=[],this.animePageFinished=!1,this.doramaPageFinished=!1,this.animePage=1,this.doramaPage=1,this.chipData=[],this.panelData=[],this.tabData=[{name:"Anime",icon:"live_tv",type:"list",data:[]},{name:"Dorama",icon:"movie",type:"grid",data:[]},{name:"Berkas Terkait",icon:"file_copy",type:"table",data:{column:["Proyek","Nama Berkas","Tanggal","Pemilik"],row:[]}}],this.subsActRoute=null,this.subsFansub=null,this.subsBerkas=null,this.subsAnime=null,this.subsDorama=null,this.subsParam=null,this.subsRssFeed=null,this.subsFansubMemberGet=null,this.subsFansubMemberJoin=null,this.subsFansubMemberApproveReject=null,this.subsFansubMemberLeave=null,this.subsDialog=null,this.subsClaimSubDomain=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get SS(){return this.ss}get ENV(){return environment_1.environment}ngOnDestroy(){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o;null===(_a=this.subsActRoute)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsFansub)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsBerkas)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsAnime)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsDorama)||void 0===_e||_e.unsubscribe(),null===(_f=this.subsParam)||void 0===_f||_f.unsubscribe(),null===(_g=this.subsRssFeed)||void 0===_g||_g.unsubscribe(),null===(_h=this.subsFansubMemberGet)||void 0===_h||_h.unsubscribe(),null===(_j=this.subsFansubMemberJoin)||void 0===_j||_j.unsubscribe(),null===(_k=this.subsFansubMemberApproveReject)||void 0===_k||_k.unsubscribe(),null===(_l=this.subsFansubMemberLeave)||void 0===_l||_l.unsubscribe(),null===(_m=this.subsDialog)||void 0===_m||_m.unsubscribe(),null===(_o=this.subsClaimSubDomain)||void 0===_o||_o.unsubscribe()}ngOnInit(){this.subsParam=this.activatedRoute.params.subscribe({next:p=>{this.fansubSlug=p.fansubSlug,this.getFansubDetail()}})}getFansubDetail(){this.bs.busy(),this.subsFansub=this.fansub.getFansub(this.fansubSlug).subscribe({next:res=>{if(this.gs.log("[FANSUB_DETAIL_SUCCESS]",res),this.fansubData=res.result,this.pi.updatePageMetaData(`${this.fansubData.name}`,`${this.fansubData.description}`,`${Array.isArray(this.fansubData.tags)?this.fansubData.tags.join(", "):this.fansubData.name}`,this.fansubData.image_url,this.fansubData.user_.username),this.bs.idle(),this.gs.isBrowser){if(Array.isArray(this.fansubData.tags))for(let i24=0;i24{this.gs.log("[FANSUB_DETAIL_ERROR]",err,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:"/fansub"}})}})}getUrlByName(name){const fansubDataUrl=this.fansubData.urls.find(u=>u.name===name);return fansubDataUrl?fansubDataUrl.url:null}getRssFeed(){this.bs.busy(),this.subsRssFeed=this.fansub.getRssFeedFansub(this.fansubSlug).subscribe({next:res=>{this.gs.log("[RSS_FEED_LIST_SUCCESS]",res),this.rssFeedData=res.result,this.bs.idle()},error:err=>{this.gs.log("[RSS_FEED_LIST_ERROR]",err,"error"),this.bs.idle()}})}openRssFeed(link){this.wb.winboxOpenUri(this.gs.rssLink(link))}getBerkasFansub(){this.bs.busy(),this.subsBerkas=this.fansub.getBerkasFansub([this.fansubData.id],this.q,this.page,this.row,this.sort,this.order).subscribe({next:res=>{this.gs.log("[BERKAS_ANIME_SUCCESS]",res),this.count=res.count,this.berkasFansub=[];for(const r of res.results[this.fansubData.id])this.berkasFansub.push({id:r.id,private:r.private,foto:r.user_.image_url,Pemilik:r.user_.username,Proyek:r.project_type_.name,Tanggal:r.created_at,"Nama Berkas":r.name});this.tabData[2].data.row=this.berkasFansub,this.bs.idle()},error:err=>{this.gs.log("[BERKAS_FANSUB_ERROR]",err,"error"),this.bs.idle()}})}getAnimeFansub(){this.bs.busy(),this.subsAnime=this.fansub.getAnimeFansub([this.fansubData.id],this.animePage).subscribe({next:res=>{this.gs.log("[FANSUB_ANIME_SUCCESS]",res);for(const r of res.results[this.fansubData.id])this.animeFansub.push({id:r.id,image:r.image_url,title:r.name});this.tabData[0].data=this.animeFansub,res.results[this.fansubData.id].length<=0&&(this.animePageFinished=!0),this.bs.idle()},error:err=>{this.gs.log("[FANSUB_ANIME_ERROR]",err,"error"),this.bs.idle()}})}getDoramaFansub(){this.bs.busy(),this.subsDorama=this.fansub.getDoramaFansub([this.fansubData.id],this.doramaPage).subscribe({next:res=>{this.gs.log("[FANSUB_DORAMA_SUCCESS]",res);for(const r of res.results[this.fansubData.id])this.doramaFansub.push({id:r.id,image:r.image_url,title:r.name,slug:r.slug});this.tabData[1].data=this.doramaFansub,res.results[this.fansubData.id].length<=0&&(this.doramaPageFinished=!0),this.bs.idle()},error:err=>{this.gs.log("[FANSUB_DORAMA_ERROR]",err,"error"),this.bs.idle()}})}editFansubData(){this.router.navigateByUrl(`/fansub/${this.fansubSlug}/edit`)}onServerSideFilter(data){this.gs.log("[BERKAS_FANSUB_ENTER_FILTER]",data),this.q=data,this.getBerkasFansub()}onServerSideOrder(data){this.gs.log("[BERKAS_FANSUB_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,this.order=data.direction,this.getBerkasFansub()}onPaginatorClicked(data){this.gs.log("[FANSUB_DETAIL_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getBerkasFansub()}openFile(data){this.gs.log("[FANSUB_DETAIL_OPEN_FILE]",data),this.router.navigateByUrl(`/berkas/${data.id}`)}openAnime(data){this.gs.log("[FANSUB_DETAIL_OPEN_ANIME]",data);const judulAnime=data.title.replace(/[^a-zA-Z0-9]/g,"-");this.router.navigateByUrl(`/anime/${data.id}-${judulAnime}`)}openDorama(data){this.gs.log("[FANSUB_DETAIL_OPEN_DORAMA]",data),this.router.navigateByUrl(`/dorama/${data.slug}`)}openTag(data){this.gs.log("[FANSUB_DETAIL_OPEN_TAG]",data)}onAnimeLoadNextPage(){this.animePageFinished||(this.animePage++,this.getAnimeFansub())}onDoramaLoadNextPage(){this.doramaPageFinished||(this.doramaPage++,this.getDoramaFansub())}togglePendingMembers(){this.showPendingMember=!this.showPendingMember,this.getFansubMember()}getFansubMember(){this.bs.busy(),this.subsFansubMemberGet=this.fansub.getFansubMember(this.fansubSlug).subscribe({next:res=>{var _a;this.gs.log("[FANSUB_DETAIL_MEMBER_LIST_SUCCESS]",res),this.approvedMembers=[],this.pendingMembers=[];for(const m of res.results)m.approved?this.approvedMembers.push(m):this.pendingMembers.push(m);if(null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value){const index=this.approvedMembers.findIndex(m=>{var _a2,_b;return m.user_.id===(null===(_b=null===(_a2=this.as.currentUserSubject)||void 0===_a2?void 0:_a2.value)||void 0===_b?void 0:_b.id)});this.joinedAsMember=index>=0?this.approvedMembers[index]:null}this.bs.idle()},error:err=>{this.gs.log("[FANSUB_DETAIL_MEMBER_LIST_ERROR]",err,"error"),this.bs.idle()}})}joinLeaveMember(){this.bs.busy(),this.joinedAsMember?this.subsFansubMemberLeave=this.fansub.leaveFansubMember(this.joinedAsMember.id).subscribe({next:res=>{this.gs.log("[FANSUB_DETAIL_MEMBER_LEAVE_SUCCESS]",res),this.getFansubMember(),this.bs.idle()},error:err=>{this.gs.log("[FANSUB_DETAIL_MEMBER_LEAVE_ERROR]",err,"error"),this.getFansubMember(),this.bs.idle()}}):this.subsFansubMemberJoin=this.fansub.requestJoinFansubMember({slug:this.fansubSlug}).subscribe({next:res=>{this.gs.log("[FANSUB_DETAIL_MEMBER_JOIN_SUCCESS]",res),this.bs.idle(),this.subsDialog=this.ds.openInfoDialog({data:{title:"Permintaan Gabung Berhasil",htmlMessage:"Silahkan Menghubungi Anggota Yang Sudah Tergabung / Admin / Moderator Fansub Untuk Menerima Permintaan Gabung.",confirmText:"Tutup"}}).afterClosed().subscribe({next:r=>{this.gs.log("[INFO_DIALOG_CLOSED]",r),this.getFansubMember(),this.subsDialog.unsubscribe()}})},error:err=>{this.gs.log("[FANSUB_DETAIL_MEMBER_JOIN_ERROR]",err,"error"),this.getFansubMember(),this.bs.idle()}})}approveOrRejectFansubMember(data,ac){this.subsDialog=this.ds.openInputDialog({data:{title:`Keterangan ${ac?"Approve":"Reject"} '${data.user_.username}' :: '${data.fansub_.slug}'`,input:{keterangan:{inputLabel:"Keterangan",inputPlaceholder:"Pemilik, Translator, Timer, QA / QC, TypeSetter, dll.",inputValue:null,inputRequired:!0}},confirmText:"OK",cancelText:"Batal",infoText:"Max. 10 Huruf"}}).afterClosed().subscribe({next:re=>{var _a;this.gs.log("[INPUT_DIALOG_CLOSED]",re),re?(this.bs.busy(),this.subsFansubMemberApproveReject=this.fansub.approveRejectFansubMember(data.id,{approved:ac,keterangan:null===(_a=re.keterangan)||void 0===_a?void 0:_a.substring(0,10)}).subscribe({next:res=>{this.gs.log("[FANSUB_DETAIL_MEMBER_APPROVE_REJECT_SUCCESS]",res),this.getFansubMember(),this.bs.idle()},error:err=>{this.gs.log("[FANSUB_DETAIL_MEMBER_APPROVE_REJECT_ERROR]",err,"error"),this.getFansubMember(),this.bs.idle()}})):!1===re&&this.getFansubMember(),this.subsDialog.unsubscribe()}})}approveMember(member){this.approveOrRejectFansubMember(member,!0)}rejectMember(member){this.approveOrRejectFansubMember(member,!1)}getSubDomain(){var _a,_b,_c,_d,_e;(null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)?this.joinedAsMember||(null===(_c=null===(_b=this.as.currentUserSubject)||void 0===_b?void 0:_b.value)||void 0===_c?void 0:_c.role)===req_res_model_1.RoleModel.ADMIN||(null===(_e=null===(_d=this.as.currentUserSubject)||void 0===_d?void 0:_d.value)||void 0===_e?void 0:_e.role)===req_res_model_1.RoleModel.MODERATOR?this.subsDialog=this.ds.openInputDialog({data:{title:`Buat CNAME / A Record IP v4 v6 :: '${this.fansubSlug}'`,input:{server_target:{inputLabel:"Server Target",inputPlaceholder:"ghs.google.com",inputValue:null,inputRequired:!0},verification_name:{inputLabel:"Tambahan Khusus Blogger :: Name",inputPlaceholder:"blablabla-name",inputValue:null,inputRequired:!1},verification_target:{inputLabel:"Tambahan Khusus Blogger :: Target",inputPlaceholder:"blablabla-target.dv.googlehosted.com",inputValue:null,inputRequired:!1}},confirmText:"OK",cancelText:"Batal",infoText:"Abaikan 2 Input Terakhir Jika Bukan Blogger"}}).afterClosed().subscribe({next:re=>{this.gs.log("[INPUT_DIALOG_CLOSED]",re),re&&(this.bs.busy(),this.subsClaimSubDomain=this.fansub.claimSubDomain({slug:this.fansubSlug,server_target:re.server_target,verification_name:re.verification_name,verification_target:re.verification_target}).subscribe({next:res=>{this.gs.log("[FANSUB_CLAIM_SUBDOMAIN_SUCCESS]",res),this.bs.idle(),this.subsDialog=this.ds.openInfoDialog({data:{title:"Klaim Berhasil",htmlMessage:`\n Domain '${this.fansubSlug}.${this.ENV.domain}' Selesai Didaftarkan.\n Silahkan Tunggu Hingga Propagasi Dns Selesai.\n Untuk Mengubah, Silahkan Menuju Halaman User\n Apabila Ada Pertanyaan Dapat Langsung Menghubungi Admin / Moderator.\n Terima Kasih.\n `,confirmText:"Tutup"}}).afterClosed().subscribe({next:r=>{this.gs.log("[INFO_DIALOG_CLOSED]",r),this.getFansubDetail(),this.subsDialog.unsubscribe()}})},error:err=>{this.gs.log("[FANSUB_CLAIM_SUBDOMAIN_ERROR]",err,"error"),this.bs.idle(),this.getFansubDetail()}})),this.subsDialog.unsubscribe()}}):this.toast.warning("Harus Menjadi Anggota Untuk Klaim Sub-Domain!","Whoops!",null,!0):this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url.split("?")[0]}})}}__name(FansubDetailComponent,"FansubDetailComponent"),exports2.FansubDetailComponent=FansubDetailComponent,FansubDetailComponent.\u0275fac=__name(function(t){return new(t||FansubDetailComponent)(i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.BusyService),i0.\u0275\u0275directiveInject(i3.AuthService),i0.\u0275\u0275directiveInject(i4.DialogService),i0.\u0275\u0275directiveInject(i5.GlobalService),i0.\u0275\u0275directiveInject(i6.FabService),i0.\u0275\u0275directiveInject(i7.PageInfoService),i0.\u0275\u0275directiveInject(i8.FansubService),i0.\u0275\u0275directiveInject(i9.StatsServerService),i0.\u0275\u0275directiveInject(i10.ToastService),i0.\u0275\u0275directiveInject(i11.WinboxService))},"FansubDetailComponent_Factory"),FansubDetailComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:FansubDetailComponent,selectors:[["app-fansub-detail"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"fansub-info","align-items-center"],[1,"row","py-3","px-2"],[1,"col-md-4","col-xl-3","px-3"],[1,"row","sticky-top","pt-3"],[1,"col-12","pt-4"],[1,"fansub-image",3,"src"],[1,"col-12","text-center","pt-3"],["mat-button","","color","warn","matTooltip","Berdiri Sejak",1,"w-100"],[1,"me-1"],["mat-button","","color","accent","matTooltip","Status Fansub",1,"w-100"],["class","col-12 text-center pt-3",4,"ngIf"],["mat-button","",1,"w-100","text-success",2,"color","rgb(255, 64, 129) !important",3,"matTooltip","click"],[1,"col-12"],[1,"row","py-3"],[1,"col-12","pt-3","sticky-top","bg-bifeldy"],[1,"border-bottom-dotted"],["class","float-end text-decoration-none text-warning","style","font-size: small; cursor: pointer;",3,"click",4,"ngIf"],["matTooltip","Lihat Permintaan Gabung Keanggotaan",1,"text-bifeldy",2,"cursor","pointer"],[1,"col-12",2,"max-height","288px"],[1,"h-100",2,"overflow-y","auto"],[4,"ngIf"],[3,"multiple",4,"ngIf"],["mat-button","","color","accent",1,"w-100",3,"click"],[1,"col-md-8","col-xl-9","pt-3"],[1,"row","py-3","px-0","mt-auto"],[1,"m-0"],[3,"chipData","chipClicked"],[1,"row"],[1,"px-0"],["class","row py-3",4,"ngIf"],[3,"tabData","count","serverSide","gridPageFinished","listPageFinished","listClicked","gridClicked","tableRowClicked","paginatorClicked","serverSideFilter","serverSideOrder","gridLoadNextPage","listLoadNextPage"],[1,"fansub-banner","fansub-banner-1","align-items-center"],[1,"fansub-banner","fansub-banner-2","align-items-center"],["mat-stroked-button","","matTooltip","Kunjungi Halaman Fanpage",1,"w-100",2,"color","rgb(114, 137, 218)",3,"href"],["mat-stroked-button","","matTooltip","Kunjungi Ruang Obrolan",1,"w-100",2,"color","rgb(114, 137, 218)",3,"href"],["src","/assets/img/discord/blue.png","width","24px"],["mat-stroked-button","","matTooltip","Lihat Cuitan",1,"w-100",2,"color","rgb(114, 137, 218)",3,"href"],["src","/assets/img/twitter/blue.png","width","24px"],[1,"float-end","text-decoration-none","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[3,"multiple"],["class","h-100",3,"routerLink",4,"ngFor","ngForOf"],[1,"h-100",3,"routerLink"],["matListAvatar","",1,"ms-3",2,"border-radius","0",3,"src"],[1,"text-truncate","text-decoration-none"],[1,"bg-bifeldy","px-2","me-1","text-warning",2,"position","absolute","right","0"],[1,"text-success"],["class","h-100",4,"ngFor","ngForOf"],[1,"h-100"],[1,"bg-bifeldy","px-2","me-1",2,"position","absolute","right","0"],[1,"text-success",2,"cursor","pointer",3,"click"],[1,"text-danger",2,"cursor","pointer",3,"click"],[1,"text-warning",3,"routerLink"],["mat-button","","color","accent","matTooltip","Ambil / Klaim / Dapatkan Sub-Domain Ini",1,"w-100","shiny",3,"click"],[3,"panelData"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"float-end","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[1,"text-bifeldy"],["mat-list-icon","",1,"ps-3"],[1,"text-truncate","text-decoration-none",3,"click"],[1,"bg-bifeldy","px-2","me-1","text-danger",2,"position","absolute","right","0"],[1,"text-warning",3,"innerHtml"]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275template(0,FansubDetailComponent_div_0_Template,60,29,"div",0),2&rf&&i0.\u0275\u0275property("ngIf",ctx.fansubData)},"FansubDetailComponent_Template"),directives:[i12.NgIf,i13.MatButton,i14.MatTooltip,i15.MatIcon,i13.MatAnchor,i16.NoDataComponent,i17.MatSelectionList,i12.NgForOf,i17.MatListOption,i1.RouterLink,i17.MatListAvatarCssMatStyler,i18.MaterialChipComponent,i19.NotificationsComponent,i20.MaterialExpansionPanelComponent,i17.MatListIconCssMatStyler,i21.ReportComponent,i22.MaterialTabComponent],pipes:[i12.DatePipe,i12.SlicePipe,i23.DateAgoPipe],styles:[".fansub-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;filter:blur(5px) brightness(100%);opacity:.5}.fansub-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.fansub-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.fansub-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}.fansub-image[_ngcontent-%COMP%]{width:100%}"]})},62235:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubEditComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),operators_1=(__webpack_require__2(74202),__webpack_require__2(83292)),constants_1=__webpack_require__2(26271),req_res_model_1=__webpack_require__2(14249),i0=(__webpack_require__2(80855),__webpack_require__2(18745),__webpack_require__2(76781),__webpack_require__2(33e3),__webpack_require__2(67902),__webpack_require__2(4137),__webpack_require__2(96925),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(93075)),i2=tslib_1.__importStar(__webpack_require__2(74202)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(18745)),i5=tslib_1.__importStar(__webpack_require__2(67902)),i6=tslib_1.__importStar(__webpack_require__2(76781)),i7=tslib_1.__importStar(__webpack_require__2(96925)),i8=tslib_1.__importStar(__webpack_require__2(4137)),i9=tslib_1.__importStar(__webpack_require__2(80855)),i10=tslib_1.__importStar(__webpack_require__2(69808)),i11=tslib_1.__importStar(__webpack_require__2(8616)),i12=tslib_1.__importStar(__webpack_require__2(67322)),i13=tslib_1.__importStar(__webpack_require__2(21385)),i14=tslib_1.__importStar(__webpack_require__2(25245)),i15=tslib_1.__importStar(__webpack_require__2(47423)),i16=tslib_1.__importStar(__webpack_require__2(77531)),i17=tslib_1.__importStar(__webpack_require__2(29345)),i18=tslib_1.__importStar(__webpack_require__2(86856)),i19=tslib_1.__importStar(__webpack_require__2(74107)),i20=tslib_1.__importStar(__webpack_require__2(90508)),i21=tslib_1.__importStar(__webpack_require__2(26688)),i22=tslib_1.__importStar(__webpack_require__2(23626));function FansubEditComponent_div_0_form_7_div_21_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Ukuran Upload Melebihi Batas ",i0.\u0275\u0275pipeBind1(2,1,ctx_r3.imageLimitExceeded)," !")}}function FansubEditComponent_div_0_form_7_div_22_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r4=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r4.imageErrorText)}}function FansubEditComponent_div_0_form_7_div_23_Template(rf,ctx){if(1&rf){const _r29=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",6)(1,"button",61),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r29),i0.\u0275\u0275nextContext(3).submitImage()},"FansubEditComponent_div_0_form_7_div_23_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",58),i0.\u0275\u0275text(3,"add_photo_alternate"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Unggah "),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r5=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",ctx_r5.submitted)}}function FansubEditComponent_div_0_form_7_div_35_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r7=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Ukuran Upload Melebihi Batas ",i0.\u0275\u0275pipeBind1(2,1,ctx_r7.coverLimitExceeded)," !")}}function FansubEditComponent_div_0_form_7_div_36_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r8=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r8.coverErrorText)}}function FansubEditComponent_div_0_form_7_div_37_Template(rf,ctx){if(1&rf){const _r31=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",62)(1,"button",61),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r31),i0.\u0275\u0275nextContext(3).submitCover()},"FansubEditComponent_div_0_form_7_div_37_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",58),i0.\u0275\u0275text(3,"add_photo_alternate"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Unggah "),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r9=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",ctx_r9.submitted)}}function FansubEditComponent_div_0_form_7_div_45_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Nama Fansub Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function FansubEditComponent_div_0_form_7_div_46_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Nama Fansub Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function FansubEditComponent_div_0_form_7_small_53_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"small",63)(1,"div"),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r12=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(ctx_r12.slugInfo)}}function FansubEditComponent_div_0_form_7_div_55_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Singkatan Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function FansubEditComponent_div_0_form_7_div_56_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Singkatan Hanya Boleh Huruf Dan \u4e00"),i0.\u0275\u0275elementEnd())}function FansubEditComponent_div_0_form_7_div_67_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Tanggal Harus Diisi Secara Valid"),i0.\u0275\u0275elementEnd())}function FansubEditComponent_div_0_form_7_div_68_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Tanggal Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function FansubEditComponent_div_0_form_7_div_80_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Mohon Pilih Salah Satu"),i0.\u0275\u0275elementEnd())}function FansubEditComponent_div_0_form_7_div_81_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Status Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function FansubEditComponent_div_0_form_7_mat_chip_90_Template(rf,ctx){if(1&rf){const _r34=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-chip",64),i0.\u0275\u0275listener("removed",__name(function(){const t_r32=i0.\u0275\u0275restoreView(_r34).$implicit;return i0.\u0275\u0275nextContext(3).removeTag(t_r32)},"FansubEditComponent_div_0_form_7_mat_chip_90_Template_mat_chip_removed_0_listener")),i0.\u0275\u0275text(1),i0.\u0275\u0275elementStart(2,"mat-icon",65),i0.\u0275\u0275text(3,"cancel"),i0.\u0275\u0275elementEnd()()}if(2&rf){const t_r32=ctx.$implicit;i0.\u0275\u0275property("removable",!0),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",t_r32," ")}}function FansubEditComponent_div_0_form_7_div_106_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Website Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function FansubEditComponent_div_0_form_7_div_107_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Website Link Tidak Valid"),i0.\u0275\u0275elementEnd())}function FansubEditComponent_div_0_form_7_div_115_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Facebook Link Tidak Valid"),i0.\u0275\u0275elementEnd())}function FansubEditComponent_div_0_form_7_div_123_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Discord Link Tidak Valid"),i0.\u0275\u0275elementEnd())}function FansubEditComponent_div_0_form_7_div_131_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Twitter Link Tidak Valid"),i0.\u0275\u0275elementEnd())}function FansubEditComponent_div_0_form_7_div_140_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Discord Link Tidak Valid"),i0.\u0275\u0275elementEnd())}function FansubEditComponent_div_0_form_7_Template(rf,ctx){if(1&rf){const _r36=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",8),i0.\u0275\u0275listener("submit",__name(function(){return i0.\u0275\u0275restoreView(_r36),i0.\u0275\u0275nextContext(2).onSubmit()},"FansubEditComponent_div_0_form_7_Template_form_submit_0_listener")),i0.\u0275\u0275elementStart(1,"div",9)(2,"div",10)(3,"h2",11)(4,"b",12),i0.\u0275\u0275text(5,"Perbaharui Data Fansub"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(6,"div",6)(7,"div",13)(8,"div",14)(9,"div",15)(10,"div",6),i0.\u0275\u0275element(11,"img",16),i0.\u0275\u0275elementStart(12,"mat-form-field",17)(13,"mat-label"),i0.\u0275\u0275text(14,"Foto"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(15,"ngx-mat-file-input",18,19),i0.\u0275\u0275listener("change",__name(function($event){i0.\u0275\u0275restoreView(_r36);const _r2=i0.\u0275\u0275reference(16);return i0.\u0275\u0275nextContext(2).uploadImage($event,_r2)},"FansubEditComponent_div_0_form_7_Template_ngx_mat_file_input_change_15_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(17,"mat-icon",20),i0.\u0275\u0275text(18,"image"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(19,"mat-error",21)(20,"small"),i0.\u0275\u0275template(21,FansubEditComponent_div_0_form_7_div_21_Template,3,3,"div",22),i0.\u0275\u0275template(22,FansubEditComponent_div_0_form_7_div_22_Template,2,1,"div",22),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(23,FansubEditComponent_div_0_form_7_div_23_Template,5,1,"div",23),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(24,"div",24)(25,"div",13)(26,"mat-form-field",25)(27,"mat-label"),i0.\u0275\u0275text(28,"Cover"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(29,"ngx-mat-file-input",18,26),i0.\u0275\u0275listener("change",__name(function($event){i0.\u0275\u0275restoreView(_r36);const _r6=i0.\u0275\u0275reference(30);return i0.\u0275\u0275nextContext(2).uploadCover($event,_r6)},"FansubEditComponent_div_0_form_7_Template_ngx_mat_file_input_change_29_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(31,"mat-icon",20),i0.\u0275\u0275text(32,"image"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(33,"mat-error",21)(34,"small"),i0.\u0275\u0275template(35,FansubEditComponent_div_0_form_7_div_35_Template,3,3,"div",22),i0.\u0275\u0275template(36,FansubEditComponent_div_0_form_7_div_36_Template,2,1,"div",22),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(37,FansubEditComponent_div_0_form_7_div_37_Template,5,1,"div",27),i0.\u0275\u0275elementStart(38,"mat-form-field",28)(39,"mat-label"),i0.\u0275\u0275text(40,"Nama Fansub"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(41,"input",29),i0.\u0275\u0275elementStart(42,"mat-icon",20),i0.\u0275\u0275text(43,"wysiwyg"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(44,"mat-error"),i0.\u0275\u0275template(45,FansubEditComponent_div_0_form_7_div_45_Template,2,0,"div",22),i0.\u0275\u0275template(46,FansubEditComponent_div_0_form_7_div_46_Template,2,0,"div",22),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(47,"mat-form-field",30)(48,"mat-label"),i0.\u0275\u0275text(49,"Singkatan"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(50,"input",31),i0.\u0275\u0275elementStart(51,"mat-icon",20),i0.\u0275\u0275text(52,"short_text"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(53,FansubEditComponent_div_0_form_7_small_53_Template,3,1,"small",32),i0.\u0275\u0275elementStart(54,"mat-error"),i0.\u0275\u0275template(55,FansubEditComponent_div_0_form_7_div_55_Template,2,0,"div",22),i0.\u0275\u0275template(56,FansubEditComponent_div_0_form_7_div_56_Template,2,0,"div",22),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275element(57,"angular-editor",33),i0.\u0275\u0275elementStart(58,"mat-form-field",34)(59,"mat-label"),i0.\u0275\u0275text(60,"Mulai Ada Sejak"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(61,"input",35),i0.\u0275\u0275listener("focus",__name(function(){return i0.\u0275\u0275restoreView(_r36),i0.\u0275\u0275reference(65).open()},"FansubEditComponent_div_0_form_7_Template_input_focus_61_listener")),i0.\u0275\u0275pipe(62,"date"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(63,"mat-datepicker-toggle",36)(64,"mat-datepicker",37,38),i0.\u0275\u0275elementStart(66,"mat-error"),i0.\u0275\u0275template(67,FansubEditComponent_div_0_form_7_div_67_Template,2,0,"div",22),i0.\u0275\u0275template(68,FansubEditComponent_div_0_form_7_div_68_Template,2,0,"div",22),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(69,"mat-form-field",34)(70,"mat-label"),i0.\u0275\u0275text(71,"Status"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(72,"mat-select",39)(73,"mat-option",40),i0.\u0275\u0275text(74,"Tidak Aktif"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(75,"mat-option",41),i0.\u0275\u0275text(76,"Aktif"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(77,"mat-hint",42),i0.\u0275\u0275text(78,"Status Kehidupan Fansub Saat Ini"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(79,"mat-error"),i0.\u0275\u0275template(80,FansubEditComponent_div_0_form_7_div_80_Template,2,0,"div",22),i0.\u0275\u0275template(81,FansubEditComponent_div_0_form_7_div_81_Template,2,0,"div",22),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275elementStart(82,"div",13)(83,"div",6)(84,"div",13)(85,"mat-form-field",43)(86,"mat-label"),i0.\u0275\u0275text(87,"Tags & Kategori"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(88,"mat-chip-list",null,44),i0.\u0275\u0275template(90,FansubEditComponent_div_0_form_7_mat_chip_90_Template,4,2,"mat-chip",45),i0.\u0275\u0275elementStart(91,"input",46),i0.\u0275\u0275listener("matChipInputTokenEnd",__name(function($event){return i0.\u0275\u0275restoreView(_r36),i0.\u0275\u0275nextContext(2).addTag($event)},"FansubEditComponent_div_0_form_7_Template_input_matChipInputTokenEnd_91_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(92,"mat-icon",20),i0.\u0275\u0275text(93,"loyalty"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(94,"mat-hint",42),i0.\u0275\u0275text(95,"Isi Dengan Bebas, Pisahkan Dengan Koma"),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275elementStart(96,"div",13)(97,"div",6)(98,"div",13)(99,"mat-form-field",47)(100,"mat-label"),i0.\u0275\u0275text(101,"Tautan Website"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(102,"input",48),i0.\u0275\u0275elementStart(103,"mat-icon",20),i0.\u0275\u0275text(104,"web"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(105,"mat-error"),i0.\u0275\u0275template(106,FansubEditComponent_div_0_form_7_div_106_Template,2,0,"div",22),i0.\u0275\u0275template(107,FansubEditComponent_div_0_form_7_div_107_Template,2,0,"div",22),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(108,"mat-form-field",47)(109,"mat-label"),i0.\u0275\u0275text(110,"Facebook Fanpage"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(111,"input",49),i0.\u0275\u0275elementStart(112,"mat-icon",20),i0.\u0275\u0275text(113,"facebook"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(114,"mat-error"),i0.\u0275\u0275template(115,FansubEditComponent_div_0_form_7_div_115_Template,2,0,"div",22),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(116,"mat-form-field",47)(117,"mat-label"),i0.\u0275\u0275text(118,"Tautan Discord"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(119,"input",50),i0.\u0275\u0275elementStart(120,"mat-icon",20),i0.\u0275\u0275element(121,"img",51),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(122,"mat-error"),i0.\u0275\u0275template(123,FansubEditComponent_div_0_form_7_div_123_Template,2,0,"div",22),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(124,"mat-form-field",47)(125,"mat-label"),i0.\u0275\u0275text(126,"Cuitan Twitter"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(127,"input",52),i0.\u0275\u0275elementStart(128,"mat-icon",20),i0.\u0275\u0275element(129,"img",51),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(130,"mat-error"),i0.\u0275\u0275template(131,FansubEditComponent_div_0_form_7_div_131_Template,2,0,"div",22),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275elementStart(132,"div",13)(133,"mat-form-field",43)(134,"mat-label"),i0.\u0275\u0275text(135,"URI / URL RSS v2.0 Feed"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(136,"input",53),i0.\u0275\u0275elementStart(137,"mat-icon",20),i0.\u0275\u0275text(138,"rss_feed"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(139,"mat-error"),i0.\u0275\u0275template(140,FansubEditComponent_div_0_form_7_div_140_Template,2,0,"div",22),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(141,"div",13)(142,"div",6)(143,"div",54),i0.\u0275\u0275element(144,"div",55),i0.\u0275\u0275elementStart(145,"div",56)(146,"a",57)(147,"mat-icon",58),i0.\u0275\u0275text(148,"undo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(149," Batal "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(150,"div",56)(151,"button",59),i0.\u0275\u0275text(152," Simpan "),i0.\u0275\u0275elementStart(153,"mat-icon",60),i0.\u0275\u0275text(154,"save"),i0.\u0275\u0275elementEnd()()()()()()()()()}if(2&rf){const _r15=i0.\u0275\u0275reference(65),_r20=i0.\u0275\u0275reference(89),ctx_r1=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("formGroup",ctx_r1.fg),i0.\u0275\u0275advance(11),i0.\u0275\u0275property("src",ctx_r1.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("disabled",ctx_r1.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r1.imageLimitExceeded),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.imageErrorText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.image&&!ctx_r1.fg.value.image),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("disabled",ctx_r1.fg.value.cover)("accept","image/gif, image/jpeg, image/jpg, image/png"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r1.coverLimitExceeded),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.coverErrorText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.cover&&!ctx_r1.fg.value.cover),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("name").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("name").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r1.slugInfo),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("slug").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("slug").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("config",ctx_r1.GS.angularEditorConfig),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275propertyInterpolate("placeholder",i0.\u0275\u0275pipeBind2(62,51,ctx_r1.currentDate,"d MMMM y")),i0.\u0275\u0275property("matDatepicker",_r15),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("for",_r15),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("born").hasError("required")||ctx_r1.fg.get("born").hasError("matDatepickerParse")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("born").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(11),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("active").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("active").hasError("pattern")),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngForOf",ctx_r1.fg.value.tags),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matChipInputSeparatorKeyCodes",ctx_r1.GS.separatorKeysCodes)("matChipInputFor",_r20)("matChipInputAddOnBlur",!0),i0.\u0275\u0275advance(8),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("web").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("web").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("facebook").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(5),i0.\u0275\u0275propertyInterpolate1("src","/assets/img/discord/",ctx_r1.GS.isDarkMode?"white":"black",".png",i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("discord").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(5),i0.\u0275\u0275propertyInterpolate1("src","/assets/img/twitter/",ctx_r1.GS.isDarkMode?"white":"black",".png",i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("twitter").hasError("pattern")),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("rss_feed").hasError("pattern")),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("disabled",ctx_r1.submitted),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r1.submitted||ctx_r1.fg.invalid||!ctx_r1.fg.dirty)}}function FansubEditComponent_div_0_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",1),i0.\u0275\u0275element(1,"div",2)(2,"div",3)(3,"div",4)(4,"app-notifications"),i0.\u0275\u0275elementStart(5,"div",5)(6,"div",6),i0.\u0275\u0275template(7,FansubEditComponent_div_0_form_7_Template,155,54,"form",7),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275styleProp("background-image","url("+ctx_r0.cover_url+")"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r0.fg)}}__name(FansubEditComponent_div_0_form_7_div_21_Template,"FansubEditComponent_div_0_form_7_div_21_Template"),__name(FansubEditComponent_div_0_form_7_div_22_Template,"FansubEditComponent_div_0_form_7_div_22_Template"),__name(FansubEditComponent_div_0_form_7_div_23_Template,"FansubEditComponent_div_0_form_7_div_23_Template"),__name(FansubEditComponent_div_0_form_7_div_35_Template,"FansubEditComponent_div_0_form_7_div_35_Template"),__name(FansubEditComponent_div_0_form_7_div_36_Template,"FansubEditComponent_div_0_form_7_div_36_Template"),__name(FansubEditComponent_div_0_form_7_div_37_Template,"FansubEditComponent_div_0_form_7_div_37_Template"),__name(FansubEditComponent_div_0_form_7_div_45_Template,"FansubEditComponent_div_0_form_7_div_45_Template"),__name(FansubEditComponent_div_0_form_7_div_46_Template,"FansubEditComponent_div_0_form_7_div_46_Template"),__name(FansubEditComponent_div_0_form_7_small_53_Template,"FansubEditComponent_div_0_form_7_small_53_Template"),__name(FansubEditComponent_div_0_form_7_div_55_Template,"FansubEditComponent_div_0_form_7_div_55_Template"),__name(FansubEditComponent_div_0_form_7_div_56_Template,"FansubEditComponent_div_0_form_7_div_56_Template"),__name(FansubEditComponent_div_0_form_7_div_67_Template,"FansubEditComponent_div_0_form_7_div_67_Template"),__name(FansubEditComponent_div_0_form_7_div_68_Template,"FansubEditComponent_div_0_form_7_div_68_Template"),__name(FansubEditComponent_div_0_form_7_div_80_Template,"FansubEditComponent_div_0_form_7_div_80_Template"),__name(FansubEditComponent_div_0_form_7_div_81_Template,"FansubEditComponent_div_0_form_7_div_81_Template"),__name(FansubEditComponent_div_0_form_7_mat_chip_90_Template,"FansubEditComponent_div_0_form_7_mat_chip_90_Template"),__name(FansubEditComponent_div_0_form_7_div_106_Template,"FansubEditComponent_div_0_form_7_div_106_Template"),__name(FansubEditComponent_div_0_form_7_div_107_Template,"FansubEditComponent_div_0_form_7_div_107_Template"),__name(FansubEditComponent_div_0_form_7_div_115_Template,"FansubEditComponent_div_0_form_7_div_115_Template"),__name(FansubEditComponent_div_0_form_7_div_123_Template,"FansubEditComponent_div_0_form_7_div_123_Template"),__name(FansubEditComponent_div_0_form_7_div_131_Template,"FansubEditComponent_div_0_form_7_div_131_Template"),__name(FansubEditComponent_div_0_form_7_div_140_Template,"FansubEditComponent_div_0_form_7_div_140_Template"),__name(FansubEditComponent_div_0_form_7_Template,"FansubEditComponent_div_0_form_7_Template"),__name(FansubEditComponent_div_0_Template,"FansubEditComponent_div_0_Template");class FansubEditComponent{constructor(fb,router,bs,activatedRoute,pi,imgbb,fansub,toast,as,gs){this.fb=fb,this.router=router,this.bs=bs,this.activatedRoute=activatedRoute,this.pi=pi,this.imgbb=imgbb,this.fansub=fansub,this.toast=toast,this.as=as,this.gs=gs,this.fansubSlug="",this.submitted=!1,this.image=null,this.imageErrorText=null,this.imageLimitExceeded=null,this.image_url="/assets/img/form/no-image.png",this.image_url_original=null,this.cover=null,this.coverErrorText=null,this.coverLimitExceeded=null,this.cover_url="/assets/img/form/no-image.png",this.cover_url_original=null,this.urls=[],this.currentDate=new Date,this.gambar=null,this.gambar_=null,this.subsActRoute=null,this.subsFansubUpdate=null,this.subsFansubDetail=null,this.subsImgbb=null,this.subsCekFansubSlug=null,this.subsFansubMemberGet=null,this.slugInfo="",this.editable=!0,this.approvedMembers=[],this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}ngOnDestroy(){var _a,_b,_c,_d,_e;null===(_a=this.subsActRoute)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsFansubUpdate)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsFansubDetail)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsImgbb)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsFansubMemberGet)||void 0===_e||_e.unsubscribe()}ngOnInit(){this.pi.updatePageMetaData("Fansub - Ubah Data","Halaman Pembaharuan Data Fansub","Ubah Fansub"),this.gs.isBrowser&&(this.fansubSlug=this.activatedRoute.snapshot.paramMap.get("fansubSlug"),this.bs.busy(),this.subsFansubDetail=this.fansub.getFansub(this.fansubSlug).subscribe({next:res=>{this.gs.log("[FANSUB_DETAIL_SUCCESS]",res),this.bs.idle(),this.editable=res.result.editable,this.editable?(this.bs.busy(),this.subsFansubMemberGet=this.fansub.getFansubMember(this.fansubSlug).subscribe({next:r=>{var _a,_b,_c,_d,_e,_f;this.gs.log("[FANSUB_EDIT_MEMBER_LIST_SUCCESS]",r),this.bs.idle(),this.approvedMembers=[];for(const m of r.results)m.approved&&this.approvedMembers.push(m);this.approvedMembers.findIndex(m=>{var _a2,_b2;return m.user_.id===(null===(_b2=null===(_a2=this.as.currentUserSubject)||void 0===_a2?void 0:_a2.value)||void 0===_b2?void 0:_b2.id)})>=0||(null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.role)===req_res_model_1.RoleModel.ADMIN||(null===(_d=null===(_c=this.as.currentUserSubject)||void 0===_c?void 0:_c.value)||void 0===_d?void 0:_d.role)===req_res_model_1.RoleModel.MODERATOR||(null===(_f=null===(_e=this.as.currentUserSubject)||void 0===_e?void 0:_e.value)||void 0===_f?void 0:_f.id)===res.result.user_.id?this.initForm(res.result):(this.toast.warning("Harus Menjadi Anggota Untuk Mengubah Data!","Whoops!",null,!0),this.router.navigateByUrl(`/fansub/${this.fansubSlug}`))},error:err=>{this.gs.log("[FANSUB_EDIT_MEMBER_LIST_ERROR]",err,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:`/fansub/${this.fansubSlug}`}})}})):(this.toast.warning("Data Fansub Ini Tidak Dapat Diubah","Whoops!",null,!0),this.router.navigateByUrl(`/fansub/${this.fansubSlug}`))},error:err=>{this.gs.log("[FANSUB_DETAIL_ERROR]",err,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:`/fansub/${this.fansubSlug}`}})}}))}initForm(data){this.image_url=data.image_url,this.image_url_original=this.image_url,this.cover_url=data.cover_url,this.cover_url_original=this.cover_url;const urls=data.urls,WEB=urls.find(u=>"web"===u.name),FACEBOOK=urls.find(u=>"facebook"===u.name),DISCORD=urls.find(u=>"discord"===u.name),TWITTER=urls.find(u=>"twitter"===u.name),ACTIVE=!0===data.active?"1":"0";this.fg=this.fb.group({name:[data.name,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],description:[data.description,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],born:[data.born,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],active:[ACTIVE,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],slug:[{value:data.slug,disabled:data.dns_id},forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(/^[0-9a-zA-Z-]*$/)])],tags:[data.tags,forms_1.Validators.compose([])],image:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],cover:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],web:[(null==WEB?void 0:WEB.url)||null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],facebook:[(null==FACEBOOK?void 0:FACEBOOK.url)||null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],discord:[(null==DISCORD?void 0:DISCORD.url)||null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],twitter:[(null==TWITTER?void 0:TWITTER.url)||null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],rss_feed:[data.rss_feed,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])]}),this.subsCekFansubSlug=this.fg.get("slug").valueChanges.pipe((0,operators_1.debounceTime)(500),(0,operators_1.distinctUntilChanged)(),(0,operators_1.tap)(()=>this.slugInfo="Mengecek ..."),(0,operators_1.switchMap)(slugQuery=>this.fansub.cekSlug({slug:slugQuery})),(0,operators_1.retry)(-1)).subscribe({next:res=>{this.gs.log("[FANSUB_CEK_SLUG_RESULT]",res),this.slugInfo=res.result.message}})}addTag(event){const input=event.input,value=event.value;(value||"").trim()&&this.fg.value.tags.push(value.trim()),input&&(input.value=""),this.fg.controls.tags.patchValue(this.fg.value.tags.filter((a,b2,c)=>c.findIndex(d=>d===a)===b2)),this.fg.controls.tags.markAsDirty()}removeTag(tag){const index=this.fg.value.tags.indexOf(tag);index>=0&&this.fg.value.tags.splice(index,1)}uploadImage(event,gambar){this.gambar=gambar,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine();const file2=event.target.files[0];try{const reader=new FileReader;reader.readAsDataURL(file2),reader.onload=e=>{if(this.gs.log("[IMAGE_SELECTED]",e),file2.size<=constants_1.CONSTANTS.fileSizeImageLimit){const img=this.gs.document.createElement("img");img.onload=()=>{this.image=file2,this.image_url=reader.result.toString()},img.src=reader.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=constants_1.CONSTANTS.fileSizeImageLimit,this.gambar.clear(event)}}catch{this.image=null,this.image_url=this.image_url_original,this.gambar.clear(event)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:res=>{this.gs.log("[IMAGE_SUCCESS]",res),this.fg.controls.image.patchValue(res.result.url),this.fg.controls.image.markAsDirty(),this.submitted=!1},error:err=>{var _a;this.gs.log("[IMAGE_ERROR]",err,"error"),this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine(),this.submitted=!1,this.imageErrorText=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info}})}uploadCover(event,gambar_){this.gambar_=gambar_,this.cover=null,this.coverLimitExceeded=null,this.coverErrorText=null,this.fg.controls.cover.patchValue(null),this.fg.controls.cover.markAsPristine();const file2=event.target.files[0];try{const reader=new FileReader;reader.readAsDataURL(file2),reader.onload=e=>{if(this.gs.log("[COVER_SELECTED]",e),file2.size<=constants_1.CONSTANTS.fileSizeImageLimit){const img=this.gs.document.createElement("img");img.onload=()=>{this.cover=file2,this.cover_url=reader.result.toString()},img.src=reader.result.toString()}else this.cover=null,this.cover_url="/assets/img/form/image-error.png",this.coverLimitExceeded=constants_1.CONSTANTS.fileSizeImageLimit,this.gambar_.clear(event)}}catch{this.cover=null,this.cover_url=this.cover_url_original,this.gambar_.clear(event)}}submitCover(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.cover}).subscribe({next:res=>{this.gs.log("[COVER_SUCCESS]",res),this.fg.controls.cover.patchValue(res.result.url),this.fg.controls.cover.markAsDirty(),this.submitted=!1},error:err=>{var _a;this.gs.log("[COVER_ERROR]",err,"error"),this.fg.controls.cover.patchValue(null),this.fg.controls.cover.markAsPristine(),this.submitted=!1,this.coverErrorText=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info}})}onSubmit(){this.bs.busy();const urls=[];this.fg.value.web&&urls.push({name:"web",url:this.fg.value.web}),this.fg.value.facebook&&urls.push({name:"facebook",url:this.fg.value.facebook}),this.fg.value.discord&&urls.push({name:"discord",url:this.fg.value.discord}),this.fg.value.twitter&&urls.push({name:"twitter",url:this.fg.value.twitter});const body=this.gs.getDirtyValues(this.fg);if("web"in body&&delete body.web,"facebook"in body&&delete body.facebook,"discord"in body&&delete body.discord,"twitter"in body&&delete body.twitter,body.urls=urls,this.gs.log("[FANSUB_EDIT_DIRTY]",body),this.submitted=!0,this.fg.invalid||0===urls.length)return 0===urls.length&&this.toast.warning("Harap Isi Salah Satu URL","Form Tidak lengkap (Web/FB/DC)",null,!0),this.submitted=!1,void this.bs.idle();this.subsFansubUpdate=this.fansub.updateFansub(this.fansubSlug,{...body}).subscribe({next:res=>{this.gs.log("[FANSUB_EDIT_SUCCESS]",res),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl(`/fansub/${res.result.slug}`)},error:err=>{this.gs.log("[FANSUB_EDIT_ERROR]",err,"error"),this.submitted=!1,this.bs.idle()}})}}__name(FansubEditComponent,"FansubEditComponent"),exports2.FansubEditComponent=FansubEditComponent,FansubEditComponent.\u0275fac=__name(function(t){return new(t||FansubEditComponent)(i0.\u0275\u0275directiveInject(i1.FormBuilder),i0.\u0275\u0275directiveInject(i2.Router),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i2.ActivatedRoute),i0.\u0275\u0275directiveInject(i4.PageInfoService),i0.\u0275\u0275directiveInject(i5.ImgbbService),i0.\u0275\u0275directiveInject(i6.FansubService),i0.\u0275\u0275directiveInject(i7.ToastService),i0.\u0275\u0275directiveInject(i8.AuthService),i0.\u0275\u0275directiveInject(i9.GlobalService))},"FansubEditComponent_Factory"),FansubEditComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:FansubEditComponent,selectors:[["app-fansub-edit"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"fansub-banner","fansub-banner-1","align-items-center"],[1,"fansub-banner","fansub-banner-2","align-items-center"],[2,"padding-top","160px"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],[1,"row","mb-3"],[1,"w-100","border",3,"src"],["appearance","outline",1,"pt-3","w-100",3,"color"],[1,"w-100",3,"disabled","accept","change"],["gambar",""],["matSuffix",""],[1,"px-3","w-100"],[4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-12","col-md-7","col-xl-8","pt-3"],["appearance","outline",1,"px-3","pt-3","w-100",3,"color"],["gambar_",""],["class","col-12 p-3",4,"ngIf"],["appearance","outline",1,"p-3","col-12","col-md-7",3,"color"],["matInput","","formControlName","name","placeholder","Fansub Jalanan"],["appearance","outline",1,"p-3","col-12","col-md-5",3,"color"],["matInput","","formControlName","slug","placeholder","Jalsub"],["class","text-info",4,"ngIf"],["formControlName","description",1,"p-3","w-100",3,"config"],["appearance","outline",1,"p-3","col-12","col-md-6",3,"color"],["matInput","","formControlName","born",3,"matDatepicker","placeholder","focus"],["matSuffix","",3,"for"],["disabled","false"],["kalender",""],["formControlName","active","placeholder","Aktif / Non-Aktif"],["value","0"],["value","1"],["align","end"],["appearance","outline",1,"p-3","col-12",3,"color"],["tag",""],["color","accent","selected","",3,"removable","removed",4,"ngFor","ngForOf"],["placeholder","Label Tag / Kategori",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["appearance","outline",1,"p-3","col-12","col-md-3",3,"color"],["matInput","","formControlName","web","placeholder","http://www.domain.id"],["matInput","","formControlName","facebook","placeholder","http://www.facebook.com"],["matInput","","formControlName","discord","placeholder","http://www.discord.gg"],["width","24px",2,"vertical-align","baseline",3,"src"],["matInput","","formControlName","twitter","placeholder","http://www.twitter.com"],["matInput","","formControlName","rss_feed","placeholder","http://my-site.blogspot.com/feeds/posts/default?alt=rss"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","../",1,"w-100",3,"disabled"],[1,"me-1"],["mat-flat-button","","color","accent","type","submit",1,"w-100",3,"disabled"],[1,"ms-1"],["mat-raised-button","","color","primary","type","button",1,"w-100",3,"disabled","click"],[1,"col-12","p-3"],[1,"text-info"],["color","accent","selected","",3,"removable","removed"],["matChipRemove",""]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275template(0,FansubEditComponent_div_0_Template,8,3,"div",0),2&rf&&i0.\u0275\u0275property("ngIf",ctx.fg)},"FansubEditComponent_Template"),directives:[i10.NgIf,i11.NotificationsComponent,i1.\u0275NgNoValidate,i1.NgControlStatusGroup,i1.FormGroupDirective,i12.MatFormField,i12.MatLabel,i13.FileInputComponent,i14.MatIcon,i12.MatSuffix,i12.MatError,i15.MatButton,i16.MatInput,i1.DefaultValueAccessor,i1.NgControlStatus,i1.FormControlName,i17.AngularEditorComponent,i18.MatDatepickerInput,i18.MatDatepickerToggle,i18.MatDatepicker,i19.MatSelect,i20.MatOption,i12.MatHint,i21.MatChipList,i10.NgForOf,i21.MatChip,i21.MatChipRemove,i21.MatChipInput,i15.MatAnchor,i2.RouterLinkWithHref],pipes:[i22.BytesPipe,i10.DatePipe],styles:[".fansub-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;filter:blur(5px) brightness(100%);opacity:.5}.fansub-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.fansub-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.fansub-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}"]})},6290:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubListComponent=void 0;const tslib_1=__webpack_require__2(70655),ng2_charts_1=(__webpack_require__2(74202),__webpack_require__2(89215)),i0=(__webpack_require__2(80855),__webpack_require__2(96382),__webpack_require__2(76781),__webpack_require__2(33e3),__webpack_require__2(88020),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(96382)),i5=tslib_1.__importStar(__webpack_require__2(76781)),i6=tslib_1.__importStar(__webpack_require__2(88020)),i7=tslib_1.__importStar(__webpack_require__2(8616)),i8=tslib_1.__importStar(__webpack_require__2(69808)),i9=tslib_1.__importStar(__webpack_require__2(89215)),i10=tslib_1.__importStar(__webpack_require__2(18757));function FansubListComponent_div_3_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",5),i0.\u0275\u0275element(1,"canvas",6),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("data",ctx_r0.barChartAnimeData)("labels",ctx_r0.barChartAnimeLabels)("chartType",ctx_r0.barChartType)("options",ctx_r0.barChartAnimeOptions)("plugins",ctx_r0.chartPlugins)("legend",!1)}}function FansubListComponent_div_4_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",5),i0.\u0275\u0275element(1,"canvas",6),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r1=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("data",ctx_r1.barChartDoramaData)("labels",ctx_r1.barChartDoramaLabels)("chartType",ctx_r1.barChartType)("options",ctx_r1.barChartDoramaOptions)("plugins",ctx_r1.chartPlugins)("legend",!1)}}function FansubListComponent_div_5_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",5),i0.\u0275\u0275element(1,"canvas",6),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r2=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("data",ctx_r2.pieChartStatusData)("labels",ctx_r2.pieChartStatusLabels)("chartType",ctx_r2.pieChartType)("options",ctx_r2.pieChartStatusOptions)("plugins",ctx_r2.chartPlugins)("legend",!0)}}function FansubListComponent_div_6_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",5),i0.\u0275\u0275element(1,"canvas",6),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("data",ctx_r3.doughnutChartGarapanData)("labels",ctx_r3.doughnutChartGarapanLabels)("chartType",ctx_r3.doughnutChartType)("options",ctx_r3.doughnutChartGarapanOptions)("plugins",ctx_r3.chartPlugins)("legend",!0)}}__name(FansubListComponent_div_3_Template,"FansubListComponent_div_3_Template"),__name(FansubListComponent_div_4_Template,"FansubListComponent_div_4_Template"),__name(FansubListComponent_div_5_Template,"FansubListComponent_div_5_Template"),__name(FansubListComponent_div_6_Template,"FansubListComponent_div_6_Template");class FansubListComponent{constructor(activatedRoute,router,gs,bs,fs,fansub,wb){this.activatedRoute=activatedRoute,this.router=router,this.gs=gs,this.bs=bs,this.fs=fs,this.fansub=fansub,this.wb=wb,this.allFansubId=[],this.fansubData=[],this.tabData=[{name:"Katalog Fansub",icon:"closed_caption",type:"table",data:{column:["Status","Logo","Nama Fansub","Anime","Dorama","Tautan Komunitas"],row:[]}}],this.pieChartStatusOptions={title:{display:!0,text:"Kondisi Fansub Terkini"},responsive:!0,legend:{position:"right"}},this.doughnutChartGarapanOptions={title:{display:!0,text:"Total Garapan Fansub"},responsive:!0,legend:{position:"right"}},this.barChartAnimeOptions={title:{display:!0,text:"Garapan Anime Terbanyak"},responsive:!0,legend:{position:"right"},scales:{xAxes:[{ticks:{beginAtZero:!0},gridLines:{color:"rgba(92,92,92,1)"}}],yAxes:[{gridLines:{color:"rgba(92,92,92,1)"}}]}},this.barChartDoramaOptions={title:{display:!0,text:"Garapan Dorama Terbanyak"},responsive:!0,legend:{position:"right"},scales:{xAxes:[{ticks:{beginAtZero:!0},gridLines:{color:"rgba(92,92,92,1)"}}],yAxes:[{gridLines:{color:"rgba(92,92,92,1)"}}]}},this.chartPlugins=[],this.pieChartStatusData=[],this.pieChartStatusLabels=[],this.doughnutChartGarapanData=[],this.doughnutChartGarapanLabels=[],this.barChartAnimeData=[],this.barChartAnimeLabels=[],this.barChartDoramaData=[],this.barChartDoramaLabels=[],this.pieChartType="pie",this.doughnutChartType="doughnut",this.barChartType="horizontalBar",this.fansubActive=0,this.fansubInActive=0,this.subsFansub=null,this.subsAnime=null,this.subsDorama=null,this.subsQueryParam=null,this.gs.bannerImg="/assets/img/banner/fansub.png",this.gs.sizeContain=!1,this.gs.bgRepeat=!1,this.gs.isBrowser&&((0,ng2_charts_1.monkeyPatchChartJsTooltip)(),(0,ng2_charts_1.monkeyPatchChartJsLegend)())}ngOnDestroy(){var _a,_b,_c;null===(_a=this.subsFansub)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsAnime)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsQueryParam)||void 0===_c||_c.unsubscribe()}ngOnInit(){this.gs.isBrowser&&this.watchUrlRoute()}watchUrlRoute(){this.subsQueryParam=this.activatedRoute.queryParams.subscribe({next:qp=>{this.bs.busy(),this.allFansubId=[],this.fansubData=[],this.fansubActive=0,this.fansubInActive=0,this.doughnutChartGarapanLabels=[],this.doughnutChartGarapanData=[],this.barChartAnimeLabels=[],this.barChartAnimeData=[],this.barChartDoramaLabels=[],this.barChartDoramaData=[],this.bs.idle(),this.getFansubData()}})}getFansubData(){this.bs.busy(),this.subsFansub=this.fansub.getAllFansub().subscribe({next:res=>{this.gs.log("[FANSUB_LIST_SUCCESS]",res);for(const r of res.results){this.allFansubId.push(r.id);const tautanLink=[];if(Array.isArray(r.urls))for(const i11 of r.urls)tautanLink.push({type:"button",icon:"discord"===i11.name||"twitter"===i11.name?void 0:i11.name,image:"discord"===i11.name?"/assets/img/discord/blue.png":"twitter"===i11.name?"/assets/img/twitter/blue.png":void 0,url:i11.url,name:i11.name});this.fansubData.push({id:r.id,slug:r.slug,Logo:r.image_url,Status:r.active?"AKTIF":"TIDAK AKTIF","Nama Fansub":r.name,"Tautan Komunitas":tautanLink}),r.active?this.fansubActive++:r.active||this.fansubInActive++}this.pieChartStatusLabels=["Fansub Aktif","Fansub Tidak Aktif"],this.pieChartStatusData=[this.fansubActive,this.fansubInActive],this.tabData[0].data.row=this.fansubData,this.getAnimeFansub(),this.getDoramaFansub(),this.fs.initializeFab("add",null,"Tambahkan Fansub Baru","/create/fansub",!1),this.bs.idle()},error:err=>{this.gs.log("[FANSUB_LIST_ERROR]",err,"error"),this.bs.idle()}})}getAnimeFansub(){this.bs.busy(),this.subsAnime=this.fansub.getAnimeFansub(this.allFansubId).subscribe({next:res=>{this.gs.log("[FANSUB_ANIME_SUCCESS]",res);for(const f2 of this.fansubData)f2.Anime=res.results[f2.id];this.doughnutChartGarapanLabels.push("Berkas Anime"),this.doughnutChartGarapanData.push(res.count);const fansubRank=[...this.fansubData].sort((a,b2)=>b2.Anime-a.Anime).slice(0,10);for(const f2 of fansubRank)this.barChartAnimeLabels.push(f2["Nama Fansub"]),this.barChartAnimeData.push(f2.Anime);this.bs.idle()},error:err=>{this.gs.log("[FANSUB_ANIME_ERROR]",err,"error"),this.bs.idle()}})}getDoramaFansub(){this.bs.busy(),this.subsDorama=this.fansub.getDoramaFansub(this.allFansubId).subscribe({next:res=>{this.gs.log("[FANSUB_DORAMA_SUCCESS]",res);for(const f2 of this.fansubData)f2.Dorama=res.results[f2.id];this.doughnutChartGarapanLabels.push("Berkas Dorama"),this.doughnutChartGarapanData.push(res.count);const fansubRank=[...this.fansubData].sort((a,b2)=>b2.Dorama-a.Dorama).slice(0,10);for(const f2 of fansubRank)this.barChartDoramaLabels.push(f2["Nama Fansub"]),this.barChartDoramaData.push(f2.Dorama);this.bs.idle()},error:err=>{this.gs.log("[FANSUB_DORAMA_ERROR]",err,"error"),this.bs.idle()}})}openFansub(data){this.gs.log("[FANSUB_LIST_OPEN_FANSUB]",data),this.router.navigateByUrl(`/fansub/${data.slug}`)}openUrl(data){this.gs.log("[FANSUB_LIST_OPEN_URL]",data),this.wb.winboxOpenUri(data.url)}}__name(FansubListComponent,"FansubListComponent"),exports2.FansubListComponent=FansubListComponent,FansubListComponent.\u0275fac=__name(function(t){return new(t||FansubListComponent)(i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.FabService),i0.\u0275\u0275directiveInject(i5.FansubService),i0.\u0275\u0275directiveInject(i6.WinboxService))},"FansubListComponent_Factory"),FansubListComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:FansubListComponent,selectors:[["app-fansub-list"]],decls:9,vars:5,consts:[[1,"container"],[1,"row","p-3"],["class","col-12 col-md-6 py-1 bg-bifeldy",4,"ngIf"],[1,"row","pt-3"],[3,"tabData","tableRowClicked","buttonClicked"],[1,"col-12","col-md-6","py-1","bg-bifeldy"],["baseChart","",3,"data","labels","chartType","options","plugins","legend"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1),i0.\u0275\u0275template(3,FansubListComponent_div_3_Template,2,6,"div",2),i0.\u0275\u0275template(4,FansubListComponent_div_4_Template,2,6,"div",2),i0.\u0275\u0275template(5,FansubListComponent_div_5_Template,2,6,"div",2),i0.\u0275\u0275template(6,FansubListComponent_div_6_Template,2,6,"div",2),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"div",3)(8,"app-material-tab",4),i0.\u0275\u0275listener("tableRowClicked",__name(function($event){return ctx.openFansub($event)},"FansubListComponent_Template_app_material_tab_tableRowClicked_8_listener"))("buttonClicked",__name(function($event){return ctx.openUrl($event)},"FansubListComponent_Template_app_material_tab_buttonClicked_8_listener")),i0.\u0275\u0275elementEnd()()()),2&rf&&(i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngIf",ctx.barChartAnimeData.length>0&&ctx.barChartAnimeLabels.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.barChartDoramaData.length>0&&ctx.barChartDoramaLabels.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",2===ctx.pieChartStatusData.length&&2===ctx.pieChartStatusLabels.length),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",2===ctx.doughnutChartGarapanData.length&&2===ctx.doughnutChartGarapanLabels.length),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("tabData",ctx.tabData))},"FansubListComponent_Template"),directives:[i7.NotificationsComponent,i8.NgIf,i9.BaseChartDirective,i10.MaterialTabComponent],styles:[""]})},26139:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),angular_editor_1=__webpack_require__2(29345),ng2_charts_1=__webpack_require__2(89215),ngx_material_file_input_1=__webpack_require__2(21385),constants_1=__webpack_require__2(26271),req_res_model_1=__webpack_require__2(14249),roles_guard_1=__webpack_require__2(2777),verified_guard_1=__webpack_require__2(55094),shared_material_module_1=__webpack_require__2(20210),custom_pipe_module_1=__webpack_require__2(67355),material_tab_module_1=__webpack_require__2(66436),material_chip_module_1=__webpack_require__2(54946),notifications_module_1=__webpack_require__2(88613),material_expansion_panel_module_1=__webpack_require__2(6020),report_module_1=__webpack_require__2(54167),no_data_module_1=__webpack_require__2(12438),fansub_list_component_1=__webpack_require__2(6290),fansub_detail_component_1=__webpack_require__2(27990),fansub_edit_component_1=__webpack_require__2(62235),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:fansub_list_component_1.FansubListComponent},{path:":fansubSlug",children:[{path:"",pathMatch:"full",component:fansub_detail_component_1.FansubDetailComponent},{path:"edit",component:fansub_edit_component_1.FansubEditComponent,canActivate:[verified_guard_1.VerifiedGuard,roles_guard_1.RolesGuard],data:{title:"Fansub - Ubah Data",description:"Halaman Pembaharuan Data Fansub",keywords:"Ubah Fansub",[constants_1.CONSTANTS.decoratorVerifiedOnly]:!0,[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER]}}]}]);class FansubModule{}__name(FansubModule,"FansubModule"),exports2.FansubModule=FansubModule,FansubModule.\u0275fac=__name(function(t){return new(t||FansubModule)},"FansubModule_Factory"),FansubModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:FansubModule}),FansubModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),shared_material_module_1.SharedMaterialModule,material_tab_module_1.MaterialTabModule,material_expansion_panel_module_1.MaterialExpansionPanelModule,material_chip_module_1.MaterialChipModule,ng2_charts_1.ChartsModule,notifications_module_1.NotificationsModule,forms_1.FormsModule,forms_1.ReactiveFormsModule,ngx_material_file_input_1.MaterialFileInputModule,angular_editor_1.AngularEditorModule,report_module_1.ReportModule,custom_pipe_module_1.CustomPipeModule,no_data_module_1.NoDataModule]]})},63041:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HomeComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=(__webpack_require__2(74202),__webpack_require__2(15934)),i0=(__webpack_require__2(80855),__webpack_require__2(70007),__webpack_require__2(49618),__webpack_require__2(33e3),__webpack_require__2(47559),__webpack_require__2(76781),__webpack_require__2(88020),__webpack_require__2(96382),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(70007)),i4=tslib_1.__importStar(__webpack_require__2(49618)),i5=tslib_1.__importStar(__webpack_require__2(47559)),i6=tslib_1.__importStar(__webpack_require__2(76781)),i7=tslib_1.__importStar(__webpack_require__2(33e3)),i8=tslib_1.__importStar(__webpack_require__2(88020)),i9=tslib_1.__importStar(__webpack_require__2(96382)),i10=tslib_1.__importStar(__webpack_require__2(87238)),i11=tslib_1.__importStar(__webpack_require__2(69808)),i12=tslib_1.__importStar(__webpack_require__2(47423)),i13=tslib_1.__importStar(__webpack_require__2(25245)),i14=tslib_1.__importStar(__webpack_require__2(8616)),i15=tslib_1.__importStar(__webpack_require__2(40192)),i16=tslib_1.__importStar(__webpack_require__2(9224)),i17=tslib_1.__importStar(__webpack_require__2(90508)),i18=tslib_1.__importStar(__webpack_require__2(14623)),i19=tslib_1.__importStar(__webpack_require__2(49933)),i20=tslib_1.__importStar(__webpack_require__2(8921)),i21=tslib_1.__importStar(__webpack_require__2(86766));function HomeComponent_a_22_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"a",30)(1,"mat-icon",31),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()),2&rf){const menu_r5=ctx.$implicit;i0.\u0275\u0275propertyInterpolate("routerLink",menu_r5.link),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(menu_r5.icon),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",menu_r5.name," ")}}function HomeComponent_app_no_data_45_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"app-no-data",32)}function HomeComponent_div_46_div_2_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",35)(1,"mat-card"),i0.\u0275\u0275element(2,"img",36),i0.\u0275\u0275elementStart(3,"mat-card-content",37)(4,"h3",38),i0.\u0275\u0275text(5),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(6,"mat-card-header"),i0.\u0275\u0275element(7,"div",39),i0.\u0275\u0275elementStart(8,"mat-card-title",40)(9,"h3",41),i0.\u0275\u0275text(10),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(11,"mat-card-subtitle",41),i0.\u0275\u0275text(12),i0.\u0275\u0275pipe(13,"date"),i0.\u0275\u0275elementEnd()()()()),2&rf){const n_r7=ctx.$implicit;i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate1("routerLink","/news/",n_r7.id,""),i0.\u0275\u0275property("src",n_r7.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate1("routerLink","/news/",n_r7.id,""),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate1(" ",n_r7.title," "),i0.\u0275\u0275advance(2),i0.\u0275\u0275styleProp("background-image","url("+n_r7.user_.image_url+")"),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate1("routerLink","/user/",n_r7.user_.username,""),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(n_r7.user_.username),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind2(13,9,n_r7.created_at,"d MMMM y, HH:mm:ss z"))}}function HomeComponent_div_46_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",24)(1,"div",33),i0.\u0275\u0275template(2,HomeComponent_div_46_div_2_Template,14,12,"div",34),i0.\u0275\u0275pipe(3,"slice"),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r2=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind3(3,1,ctx_r2.newsData,0,3===ctx_r2.GS.gridListBreakpoint?2:ctx_r2.GS.gridListBreakpoint))}}function HomeComponent_div_47_mat_list_option_9_Template(rf,ctx){if(1&rf){const _r11=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-list-option",46)(1,"mat-icon",47),i0.\u0275\u0275text(2,"rss_feed"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"a",48),i0.\u0275\u0275listener("click",__name(function(){const r_r9=i0.\u0275\u0275restoreView(_r11).$implicit;return i0.\u0275\u0275nextContext(2).openRssFeed(null==r_r9.item?null:r_r9.item.link)},"HomeComponent_div_47_mat_list_option_9_Template_a_click_3_listener")),i0.\u0275\u0275elementStart(4,"span",49),i0.\u0275\u0275pipe(5,"date"),i0.\u0275\u0275text(6),i0.\u0275\u0275pipe(7,"dateAgo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(8,"span",50),i0.\u0275\u0275text(9),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(10,"span",51),i0.\u0275\u0275elementEnd()()}if(2&rf){const r_r9=ctx.$implicit;i0.\u0275\u0275advance(4),i0.\u0275\u0275propertyInterpolate("matTooltip",i0.\u0275\u0275pipeBind2(5,4,(null==r_r9.item?null:r_r9.item.created)||(null==r_r9.item?null:r_r9.item.published),"d MMMM y, hh:mm:ss a z")),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate1(" ",i0.\u0275\u0275pipeBind1(7,7,(null==r_r9.item?null:r_r9.item.created)||(null==r_r9.item?null:r_r9.item.published))," "),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(r_r9.slug),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("innerHtml",null==r_r9.item?null:r_r9.item.title,i0.\u0275\u0275sanitizeHtml)}}function HomeComponent_div_47_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",1)(1,"div",20)(2,"h2",21)(3,"a",42),i0.\u0275\u0275text(4," Lainnya "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"b",43),i0.\u0275\u0275text(6," RSS Feed Fansub Aktif "),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(7,"div",24)(8,"mat-selection-list",44),i0.\u0275\u0275template(9,HomeComponent_div_47_mat_list_option_9_Template,11,9,"mat-list-option",45),i0.\u0275\u0275pipe(10,"slice"),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(8),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind3(10,2,ctx_r3.rssFeedData,0,10))}}function HomeComponent_div_48_mat_list_option_9_Template(rf,ctx){if(1&rf){const _r15=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-list-option",46)(1,"mat-icon",47),i0.\u0275\u0275text(2,"add_comment"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"a",48),i0.\u0275\u0275listener("click",__name(function(){const k_r13=i0.\u0275\u0275restoreView(_r15).$implicit;return i0.\u0275\u0275nextContext(2).openComment(k_r13)},"HomeComponent_div_48_mat_list_option_9_Template_a_click_3_listener")),i0.\u0275\u0275elementStart(4,"span",49),i0.\u0275\u0275pipe(5,"date"),i0.\u0275\u0275text(6),i0.\u0275\u0275pipe(7,"dateAgo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(8,"span",50),i0.\u0275\u0275text(9),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(10,"span",53),i0.\u0275\u0275text(11),i0.\u0275\u0275elementEnd()()()}if(2&rf){const k_r13=ctx.$implicit;i0.\u0275\u0275advance(4),i0.\u0275\u0275propertyInterpolate("matTooltip",i0.\u0275\u0275pipeBind2(5,4,k_r13.created_at,"d MMMM y, hh:mm:ss a z")),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate1(" ",i0.\u0275\u0275pipeBind1(7,7,k_r13.created_at)," "),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(k_r13.user_.username),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(k_r13.comment)}}function HomeComponent_div_48_Template(rf,ctx){if(1&rf){const _r17=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",1)(1,"div",20)(2,"h2",21)(3,"span",52),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r17),i0.\u0275\u0275nextContext().getComment()},"HomeComponent_div_48_Template_span_click_3_listener")),i0.\u0275\u0275text(4," Refresh "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"b",23),i0.\u0275\u0275text(6,"Komentar Terbaru"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(7,"div",24)(8,"mat-selection-list",44),i0.\u0275\u0275template(9,HomeComponent_div_48_mat_list_option_9_Template,12,9,"mat-list-option",45),i0.\u0275\u0275pipe(10,"slice"),i0.\u0275\u0275elementEnd()()()}if(2&rf){const ctx_r4=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(8),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind3(10,2,ctx_r4.komentarData,0,5))}}__name(HomeComponent_a_22_Template,"HomeComponent_a_22_Template"),__name(HomeComponent_app_no_data_45_Template,"HomeComponent_app_no_data_45_Template"),__name(HomeComponent_div_46_div_2_Template,"HomeComponent_div_46_div_2_Template"),__name(HomeComponent_div_46_Template,"HomeComponent_div_46_Template"),__name(HomeComponent_div_47_mat_list_option_9_Template,"HomeComponent_div_47_mat_list_option_9_Template"),__name(HomeComponent_div_47_Template,"HomeComponent_div_47_Template"),__name(HomeComponent_div_48_mat_list_option_9_Template,"HomeComponent_div_48_mat_list_option_9_Template"),__name(HomeComponent_div_48_Template,"HomeComponent_div_48_Template");class HomeComponent{constructor(router,gs,lms,news,komen,fansub,bs,wb,fs){this.router=router,this.gs=gs,this.lms=lms,this.news=news,this.komen=komen,this.fansub=fansub,this.bs=bs,this.wb=wb,this.fs=fs,this.newsData=[],this.komentarData=[],this.rssFeedData=[],this.subsNews=null,this.subsKomenGet=null,this.subsRssFeed=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get ENV(){return environment_1.environment}get GS(){return this.gs}get contentMenus(){return this.lms.contentMenus}ngOnDestroy(){var _a,_b,_c;null===(_a=this.subsNews)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsKomenGet)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsRssFeed)||void 0===_c||_c.unsubscribe()}ngOnInit(){this.gs.isBrowser&&(this.getNews(),this.getComment(),this.getRssFeedAll(),this.fs.initializeFab(null,"/assets/img/discord/pink.png","Discord Server",environment_1.environment.discord.join_url,!0))}getNews(){this.bs.busy(),this.subsNews=this.news.getAllNews("",1,3).subscribe({next:res=>{this.gs.log("[HOME_NEWS_LIST_SUCCESS]",res),this.newsData=res.results,this.bs.idle()},error:err=>{this.gs.log("[HOME_NEWS_LIST_ERROR]",err,"error"),this.bs.idle()}})}getComment(){this.bs.busy(),this.subsKomenGet=this.komen.getAllComment().subscribe({next:res=>{this.gs.log("[HOME_KOMENTAR_LIST_SUCCESS]",res),this.komentarData=res.results;for(const k of this.komentarData)k.comment=this.gs.htmlToText(k.comment);this.bs.idle()},error:err=>{this.gs.log("[HOME_KOMENTAR_LIST_ERROR]",err,"error"),this.bs.idle()}})}getRssFeedAll(){this.bs.busy(),this.subsRssFeed=this.fansub.getRssFeedFansubAllActiveOnly().subscribe({next:res=>{this.gs.log("[HOME_RSS_FEED_LIST_SUCCESS]",res),this.rssFeedData=res.results,this.bs.idle()},error:err=>{this.gs.log("[HOME_RSS_FEED_LIST_ERROR]",err,"error"),this.bs.idle()}})}openRssFeed(link){this.wb.winboxOpenUri(this.gs.rssLink(link))}openComment(k){this.router.navigate([k.path],{queryParams:{comment:k.id}})}}__name(HomeComponent,"HomeComponent"),exports2.HomeComponent=HomeComponent,HomeComponent.\u0275fac=__name(function(t){return new(t||HomeComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.LeftMenuService),i0.\u0275\u0275directiveInject(i4.NewsService),i0.\u0275\u0275directiveInject(i5.KomentarService),i0.\u0275\u0275directiveInject(i6.FansubService),i0.\u0275\u0275directiveInject(i7.BusyService),i0.\u0275\u0275directiveInject(i8.WinboxService),i0.\u0275\u0275directiveInject(i9.FabService))},"HomeComponent_Factory"),HomeComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:HomeComponent,selectors:[["app-home"]],decls:54,vars:7,consts:[[1,"container"],[1,"row"],[1,"col-12","align-items-center"],[1,"text-center","my-3","mx-auto"],[1,"p-5",3,"src"],[1,"h3","font-weight-normal","gradient-text"],[1,"text-warning","pt-3"],[1,"col-12","col-lg-8","mx-auto"],["matTooltip","Khusus Berkas Yang Upload DDL",1,"text-success"],[1,"row","pb-3"],["class","m-1","mat-stroked-button","","color","warn",3,"routerLink",4,"ngFor","ngForOf"],[1,"row","mb-3"],[1,"mouse_scroll"],[1,"mouse"],[1,"wheel"],[1,"m_scroll_arrows","unu"],[1,"m_scroll_arrows","doi"],[1,"m_scroll_arrows","trei"],[1,"row","pb-3","px-0"],[1,"col-lg-8","col-xl-9"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],["routerLink","/news",1,"float-end","text-decoration-none","text-warning",2,"font-size","small"],[1,"text-bifeldy"],[1,"col-12"],["class","col-12 p-3",4,"ngIf"],["class","col-12",4,"ngIf"],["class","row",4,"ngIf"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],["mat-stroked-button","","color","warn",1,"m-1",3,"routerLink"],[1,"me-1"],[1,"col-12","p-3"],[1,"row","px-3"],["class","col-12 col-md-6 col-xl-4 p-2",4,"ngFor","ngForOf"],[1,"col-12","col-md-6","col-xl-4","p-2"],["mat-card-image","",2,"height","128px","object-fit","cover","cursor","pointer",3,"src","routerLink"],[2,"cursor","pointer",3,"routerLink"],["matLine","",2,"text-overflow","ellipsis","overflow","hidden","white-space","nowrap"],["mat-card-avatar","",2,"background-size","cover","border-radius","0"],[1,"text-warning","mb-1",2,"cursor","pointer",3,"routerLink"],[1,"mb-0"],["routerLink","/rss-feed",1,"float-end","text-decoration-none","text-warning",2,"font-size","small"],["matTooltip","Diperbaharui Beberapa Menit Sekali",1,"text-bifeldy"],[3,"multiple"],["class","h-100",4,"ngFor","ngForOf"],[1,"h-100"],["mat-list-icon","",1,"ps-3"],[1,"text-truncate","text-decoration-none",3,"click"],[1,"bg-bifeldy","px-2","me-1","text-danger",2,"position","absolute","right","0",3,"matTooltip"],[1,"me-3","text-success"],[1,"text-warning",3,"innerHtml"],[1,"float-end","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[1,"text-warning"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),i0.\u0275\u0275element(4,"img",4),i0.\u0275\u0275elementStart(5,"h1",5),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"h2",6)(8,"p",7),i0.\u0275\u0275text(9," Tempat berbagi (+ "),i0.\u0275\u0275elementStart(10,"i"),i0.\u0275\u0275text(11,"backup"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(12,") dan melacak sekaligus mengabadikan berkas proyek garapan animasi maupun film drama dari, oleh, untuk siapa saja. "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(13,"h3",8)(14,"p",7),i0.\u0275\u0275text(15," * Tempat arsip abadi :: Anti "),i0.\u0275\u0275elementStart(16,"i")(17,"u"),i0.\u0275\u0275text(18,"link"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275text(19," mati ~ "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(20,"div",9)(21,"div",7),i0.\u0275\u0275template(22,HomeComponent_a_22_Template,4,3,"a",10),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275elementStart(23,"div",11)(24,"div",2)(25,"div",12)(26,"div",13),i0.\u0275\u0275element(27,"div",14),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(28,"div"),i0.\u0275\u0275element(29,"span",15)(30,"span",16)(31,"span",17),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275element(32,"app-notifications"),i0.\u0275\u0275elementStart(33,"div",0)(34,"div",18)(35,"div",19)(36,"div",1)(37,"div",20)(38,"h2",21)(39,"a",22),i0.\u0275\u0275text(40," Selengkapnya "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(41,"b",23),i0.\u0275\u0275text(42,"Papan Pengumuman"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(43,"div",24)(44,"div",1),i0.\u0275\u0275template(45,HomeComponent_app_no_data_45_Template,1,0,"app-no-data",25),i0.\u0275\u0275template(46,HomeComponent_div_46_Template,4,5,"div",26),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(47,HomeComponent_div_47_Template,11,6,"div",27),i0.\u0275\u0275template(48,HomeComponent_div_48_Template,11,6,"div",27),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(49,"div",28)(50,"div",29)(51,"div",24),i0.\u0275\u0275element(52,"app-banner-discord")(53,"app-stats-server"),i0.\u0275\u0275elementEnd()()()()()),2&rf&&(i0.\u0275\u0275advance(4),i0.\u0275\u0275propertyInterpolate1("src","",ctx.ENV.baseUrl,"/assets/img/favicon.png",i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(ctx.ENV.siteName),i0.\u0275\u0275advance(16),i0.\u0275\u0275property("ngForOf",ctx.contentMenus),i0.\u0275\u0275advance(23),i0.\u0275\u0275property("ngIf",ctx.newsData.length<=0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.newsData.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.rssFeedData.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.komentarData.length>0))},"HomeComponent_Template"),directives:[i10.MatTooltip,i11.NgForOf,i12.MatAnchor,i1.RouterLinkWithHref,i13.MatIcon,i14.NotificationsComponent,i11.NgIf,i15.NoDataComponent,i16.MatCard,i16.MatCardImage,i1.RouterLink,i16.MatCardContent,i17.MatLine,i16.MatCardHeader,i16.MatCardAvatar,i16.MatCardTitle,i16.MatCardSubtitle,i18.MatSelectionList,i18.MatListOption,i18.MatListIconCssMatStyler,i19.BannerDiscordComponent,i20.StatsServerComponent],pipes:[i11.SlicePipe,i11.DatePipe,i21.DateAgoPipe],styles:[""]})},27379:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HomeModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),custom_pipe_module_1=__webpack_require__2(67355),notifications_module_1=__webpack_require__2(88613),stats_server_module_1=__webpack_require__2(10669),shared_material_module_1=__webpack_require__2(20210),banner_discord_module_1=__webpack_require__2(54854),banner_nihongo_module_1=__webpack_require__2(50913),no_data_module_1=__webpack_require__2(12438),home_component_1=__webpack_require__2(63041),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:home_component_1.HomeComponent}]);class HomeModule{}__name(HomeModule,"HomeModule"),exports2.HomeModule=HomeModule,HomeModule.\u0275fac=__name(function(t){return new(t||HomeModule)},"HomeModule_Factory"),HomeModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:HomeModule}),HomeModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),banner_discord_module_1.BannerDiscordModule,banner_nihongo_module_1.BannerNihongoModule,stats_server_module_1.StatsServerModule,notifications_module_1.NotificationsModule,shared_material_module_1.SharedMaterialModule,custom_pipe_module_1.CustomPipeModule,no_data_module_1.NoDataModule]]})},97955:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LoginComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),environment_1=(__webpack_require__2(74202),__webpack_require__2(15934)),constants_1=__webpack_require__2(26271),i0=(__webpack_require__2(80855),__webpack_require__2(4137),__webpack_require__2(33e3),__webpack_require__2(38379),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(93075)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(74202)),i4=tslib_1.__importStar(__webpack_require__2(33e3)),i5=tslib_1.__importStar(__webpack_require__2(4137)),i6=tslib_1.__importStar(__webpack_require__2(38379)),i7=tslib_1.__importStar(__webpack_require__2(69808)),i8=tslib_1.__importStar(__webpack_require__2(47423)),i9=tslib_1.__importStar(__webpack_require__2(25245));function LoginComponent_div_0_form_8_strong_13_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Username / Email Tidak Boleh Kosong! "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function LoginComponent_div_0_form_8_strong_14_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Username / Email Hanya Boleh Huruf Standar Papan Ketik "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function LoginComponent_div_0_form_8_strong_21_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Password Tidak Boleh Kosong! "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function LoginComponent_div_0_form_8_strong_22_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Password Hanya Boleh Huruf Standar Papan Ketik "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function LoginComponent_div_0_form_8_Template(rf,ctx){if(1&rf){const _r7=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",10),i0.\u0275\u0275listener("ngSubmit",__name(function(){return i0.\u0275\u0275restoreView(_r7),i0.\u0275\u0275nextContext(2).onClickedSubmit()},"LoginComponent_div_0_form_8_Template_form_ngSubmit_0_listener")),i0.\u0275\u0275elementStart(1,"div",11),i0.\u0275\u0275element(2,"img",12),i0.\u0275\u0275elementStart(3,"h1",13),i0.\u0275\u0275text(4,'Hai, Jumpa Lagi! >_<"'),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"p",14),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(7,"div",15)(8,"label",16),i0.\u0275\u0275text(9,"Surel / Nama Pengguna"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(10,"div",17),i0.\u0275\u0275element(11,"input",18),i0.\u0275\u0275elementStart(12,"span",19),i0.\u0275\u0275template(13,LoginComponent_div_0_form_8_strong_13_Template,3,0,"strong",20),i0.\u0275\u0275template(14,LoginComponent_div_0_form_8_strong_14_Template,3,0,"strong",20),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(15,"div",15)(16,"label",21),i0.\u0275\u0275text(17,"Kata Sandi"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(18,"div",17),i0.\u0275\u0275element(19,"input",22),i0.\u0275\u0275elementStart(20,"span",19),i0.\u0275\u0275template(21,LoginComponent_div_0_form_8_strong_21_Template,3,0,"strong",20),i0.\u0275\u0275template(22,LoginComponent_div_0_form_8_strong_22_Template,3,0,"strong",20),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(23,"div",15)(24,"div",23)(25,"div",24),i0.\u0275\u0275element(26,"input",25),i0.\u0275\u0275elementStart(27,"label",26),i0.\u0275\u0275text(28),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(29,"div",27)(30,"div",28)(31,"div",29)(32,"div",30)(33,"button",31),i0.\u0275\u0275text(34," Masuk "),i0.\u0275\u0275elementStart(35,"mat-icon",32),i0.\u0275\u0275text(36,"vpn_key"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(37,"div",30)(38,"a",33),i0.\u0275\u0275text(39," Lupa Akun ~ "),i0.\u0275\u0275elementEnd()()()()()()}if(2&rf){const ctx_r1=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("formGroup",ctx_r1.fg),i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate1("src","",ctx_r1.ENV.baseUrl,"/assets/img/logo/login.png",i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate(ctx_r1.loginInfo),i0.\u0275\u0275advance(5),i0.\u0275\u0275classMapInterpolate1("text-bifeldy form-control ",!ctx_r1.fg.get("userNameOrEmail").valid&&ctx_r1.fg.get("userNameOrEmail").touched?"is-invalid":"",""),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("userNameOrEmail").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("userNameOrEmail").hasError("pattern")),i0.\u0275\u0275advance(5),i0.\u0275\u0275classMapInterpolate1("text-bifeldy form-control ",!ctx_r1.fg.get("password").valid&&ctx_r1.fg.get("password").touched?"is-invalid":"",""),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("password").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("password").hasError("pattern")),i0.\u0275\u0275advance(6),i0.\u0275\u0275textInterpolate1(" Biarkan Saya Tetap Login Hingga ",ctx_r1.maxRememberMeDays," Hari "),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r1.submitted||ctx_r1.fg.invalid),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r1.submitted)}}__name(LoginComponent_div_0_form_8_strong_13_Template,"LoginComponent_div_0_form_8_strong_13_Template"),__name(LoginComponent_div_0_form_8_strong_14_Template,"LoginComponent_div_0_form_8_strong_14_Template"),__name(LoginComponent_div_0_form_8_strong_21_Template,"LoginComponent_div_0_form_8_strong_21_Template"),__name(LoginComponent_div_0_form_8_strong_22_Template,"LoginComponent_div_0_form_8_strong_22_Template"),__name(LoginComponent_div_0_form_8_Template,"LoginComponent_div_0_form_8_Template");const _c0=__name(function(a2){return{"background-position":"center","background-size":"cover","background-image":a2}},"_c0");function LoginComponent_div_0_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),i0.\u0275\u0275element(4,"div",5),i0.\u0275\u0275elementStart(5,"div",6)(6,"div",7)(7,"div",8),i0.\u0275\u0275template(8,LoginComponent_div_0_form_8_Template,40,16,"form",9),i0.\u0275\u0275elementEnd()()()()()()()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngStyle",i0.\u0275\u0275pureFunction1(2,_c0,"url("+ctx_r0.loginImg+")")),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",ctx_r0.fg)}}__name(LoginComponent_div_0_Template,"LoginComponent_div_0_Template");class LoginComponent{constructor(fb,gs,activatedRoute,router,bs,as,cs){this.fb=fb,this.gs=gs,this.activatedRoute=activatedRoute,this.router=router,this.bs=bs,this.as=as,this.cs=cs,this.submitted=!1,this.returnUrl="/",this.loginImg="/assets/img/login-register.png",this.loginInfo="Silahkan login terlebih dahulu~",this.subsUser=null,this.subsLogin=null,this.subsVerify=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnDestroy(){var _a,_b,_c;null===(_a=this.subsLogin)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsVerify)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsUser)||void 0===_c||_c.unsubscribe()}ngOnInit(){this.returnUrl=this.activatedRoute.snapshot.queryParamMap.get("returnUrl")||this.gs.previousUrl||"/",this.gs.isBrowser&&(this.subsUser=this.as.currentUser.subscribe({next:user=>{user?this.router.navigateByUrl(this.returnUrl):this.initForm()}}))}get ENV(){return environment_1.environment}get loginFormVal(){return this.fg.controls}get maxRememberMeDays(){return constants_1.CONSTANTS.timeLoginRememberMe/24/60/60}initForm(){this.fg=this.fb.group({userNameOrEmail:[null,[forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]],password:[null,[forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]],rememberMe:[!1,[]]})}onClickedSubmit(){if(this.bs.busy(),this.submitted=!0,this.loginInfo="Harap Menunggu ...",this.gs.log("[LOGIN_FORM_REQUEST]",this.fg.value),this.fg.invalid)return this.loginInfo="Periksa Dan Isi Kembali Data!",this.submitted=!1,void this.bs.idle();this.fg.valid&&(this.submitted=!0,this.subsLogin=this.as.login({userNameOrEmail:this.fg.value.userNameOrEmail,password:this.cs.hashPassword(this.fg.value.password),rememberMe:this.fg.value.rememberMe}).subscribe({next:res=>{this.bs.idle(),this.loginInfo=res.info,this.bs.busy(),this.subsVerify=this.as.verify(res.result.token).subscribe({next:success=>{this.loginInfo=success.info,this.gs.log("[VERIFY_LOGIN_SUCCESS]",success),this.bs.idle(),this.router.navigateByUrl(this.returnUrl)},error:error=>{this.gs.log("[VERIFY_LOGIN_ERROR]",error,"error"),this.bs.idle(),this.as.removeUser()}})},error:err=>{var _a;this.gs.log("[LOGIN_FORM_ERROR]",err,"error"),this.loginInfo=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info,this.submitted=!1,this.bs.idle()}}))}}__name(LoginComponent,"LoginComponent"),exports2.LoginComponent=LoginComponent,LoginComponent.\u0275fac=__name(function(t){return new(t||LoginComponent)(i0.\u0275\u0275directiveInject(i1.FormBuilder),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.ActivatedRoute),i0.\u0275\u0275directiveInject(i3.Router),i0.\u0275\u0275directiveInject(i4.BusyService),i0.\u0275\u0275directiveInject(i5.AuthService),i0.\u0275\u0275directiveInject(i6.CryptoService))},"LoginComponent_Factory"),LoginComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:LoginComponent,selectors:[["app-login"]],decls:1,vars:1,consts:[["class","container-fluid align-items-center w-100 h-100","style","background-size: cover; background-repeat: repeat; background-position: center; transform: rotateY(180deg);",4,"ngIf"],[1,"container-fluid","align-items-center","w-100","h-100",2,"background-size","cover","background-repeat","repeat","background-position","center","transform","rotateY(180deg)"],[1,"row","align-items-center","h-100","m-0",2,"transform","rotateY(180deg)"],[1,"col-12","col-md-10","m-auto","py-3"],[1,"row","rgb-border","rounded","bg-bifeldy"],[1,"col-lg-5","col-md-3","ms-auto","p-0",3,"ngStyle"],[1,"col-lg-7","col-md-9","me-auto","p-0"],[1,"card","bg-transparent","border-0"],[1,"card-body"],["class","m-2",3,"formGroup","ngSubmit",4,"ngIf"],[1,"m-2",3,"formGroup","ngSubmit"],[1,"text-center","mb-4"],[1,"mb-4",2,"max-width","128px",3,"src"],[1,"h3","mb-3","font-weight-normal"],[1,"text-warning"],[1,"form-group","row","py-2"],["for","userNameOrEmail",1,"col-md-4","col-form-label","text-md-end"],[1,"col-md-8"],["type","text","id","userNameOrEmail","placeholder","Username / E-Mail","required","","formControlName","userNameOrEmail","autocomplete","email, username"],["role","alert",1,"invalid-feedback"],[4,"ngIf"],["for","password",1,"col-md-4","col-form-label","text-md-end"],["type","password","id","password","placeholder","Password","required","","formControlName","password","autocomplete","current-password, new-password"],[1,"col","offset-md-4"],[1,"form-check"],["id","rememberMe","type","checkbox","formControlName","rememberMe",1,"form-check-input"],["for","rememberMe",1,"form-check-label",2,"padding-top","0.125rem !important"],[1,"form-group","row","mb-0","py-2"],[1,"col-md-8","offset-md-4"],[1,"row","gy-3"],[1,"col-lg-6","col-12"],["mat-flat-button","","color","primary","type","submit",1,"w-100",3,"disabled"],[1,"ms-1"],["mat-stroked-button","","color","accent","routerLink","/reset-password",1,"w-100",3,"disabled"]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275template(0,LoginComponent_div_0_Template,9,4,"div",0),2&rf&&i0.\u0275\u0275property("ngIf",ctx.fg)},"LoginComponent_Template"),directives:[i7.NgIf,i7.NgStyle,i1.\u0275NgNoValidate,i1.NgControlStatusGroup,i1.FormGroupDirective,i1.DefaultValueAccessor,i1.RequiredValidator,i1.NgControlStatus,i1.FormControlName,i1.CheckboxControlValueAccessor,i8.MatButton,i9.MatIcon,i8.MatAnchor,i3.RouterLinkWithHref],styles:[""]})},94541:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LoginModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),shared_material_module_1=__webpack_require__2(20210),login_component_1=__webpack_require__2(97955),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:login_component_1.LoginComponent}]);class LoginModule{}__name(LoginModule,"LoginModule"),exports2.LoginModule=LoginModule,LoginModule.\u0275fac=__name(function(t){return new(t||LoginModule)},"LoginModule_Factory"),LoginModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:LoginModule}),LoginModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),shared_material_module_1.SharedMaterialModule,forms_1.FormsModule,forms_1.ReactiveFormsModule]]})},33657:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MailboxDetailComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=(__webpack_require__2(74202),__webpack_require__2(15934)),i0=(__webpack_require__2(33e3),__webpack_require__2(96382),__webpack_require__2(80855),__webpack_require__2(27358),__webpack_require__2(88020),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(33e3)),i3=tslib_1.__importStar(__webpack_require__2(96382)),i4=tslib_1.__importStar(__webpack_require__2(80855)),i5=tslib_1.__importStar(__webpack_require__2(27358)),i6=tslib_1.__importStar(__webpack_require__2(88020)),i7=tslib_1.__importStar(__webpack_require__2(69808)),i8=tslib_1.__importStar(__webpack_require__2(8616)),i9=tslib_1.__importStar(__webpack_require__2(14623)),i10=tslib_1.__importStar(__webpack_require__2(25245)),i11=tslib_1.__importStar(__webpack_require__2(90508)),i12=tslib_1.__importStar(__webpack_require__2(23626));function MailboxDetailComponent_div_0_div_40_mat_list_option_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option")(1,"mat-icon",21),i0.\u0275\u0275text(2,"account_circle"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"h4"),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd()()),2&rf){const mt_r6=ctx.$implicit;i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate(mt_r6)}}function MailboxDetailComponent_div_0_div_40_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",15)(1,"div",16)(2,"h2",17)(3,"b",18),i0.\u0275\u0275text(4,"Penerima Utama"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",19)(6,"mat-selection-list",20),i0.\u0275\u0275template(7,MailboxDetailComponent_div_0_div_40_mat_list_option_7_Template,5,1,"mat-list-option",25),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r1=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(6),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r1.filterAddress(ctx_r1.mailData.to))}}function MailboxDetailComponent_div_0_div_41_mat_list_option_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option")(1,"mat-icon",21),i0.\u0275\u0275text(2,"account_circle"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"h4"),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd()()),2&rf){const mc_r8=ctx.$implicit;i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate(mc_r8)}}function MailboxDetailComponent_div_0_div_41_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",15)(1,"div",16)(2,"h2",17)(3,"b",18),i0.\u0275\u0275text(4,"Penerima CC"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",19)(6,"mat-selection-list",20),i0.\u0275\u0275template(7,MailboxDetailComponent_div_0_div_41_mat_list_option_7_Template,5,1,"mat-list-option",25),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r2=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(6),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r2.filterAddress(ctx_r2.mailData.cc))}}function MailboxDetailComponent_div_0_div_42_mat_list_option_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option")(1,"mat-icon",21),i0.\u0275\u0275text(2,"account_circle"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"h4"),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd()()),2&rf){const mb_r10=ctx.$implicit;i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate(mb_r10)}}function MailboxDetailComponent_div_0_div_42_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",15)(1,"div",16)(2,"h2",17)(3,"b",18),i0.\u0275\u0275text(4,"Penerima BCC"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",19)(6,"mat-selection-list",20),i0.\u0275\u0275template(7,MailboxDetailComponent_div_0_div_42_mat_list_option_7_Template,5,1,"mat-list-option",25),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(6),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r3.filterAddress(ctx_r3.mailData.bcc))}}function MailboxDetailComponent_div_0_div_43_mat_list_option_7_Template(rf,ctx){if(1&rf){const _r14=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-list-option",27),i0.\u0275\u0275listener("click",__name(function(){const ma_r12=i0.\u0275\u0275restoreView(_r14).$implicit;return i0.\u0275\u0275nextContext(3).downloadAttachment(ma_r12.id)},"MailboxDetailComponent_div_0_div_43_mat_list_option_7_Template_mat_list_option_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",21),i0.\u0275\u0275text(2,"attach_file"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"div",28),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"div",28),i0.\u0275\u0275text(6),i0.\u0275\u0275pipe(7,"bytes"),i0.\u0275\u0275elementEnd()()}if(2&rf){const ma_r12=ctx.$implicit;i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate(ma_r12.name),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind1(7,2,ma_r12.size))}}function MailboxDetailComponent_div_0_div_43_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",15)(1,"div",16)(2,"h2",17)(3,"b",18),i0.\u0275\u0275text(4,"Lampiran"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",19)(6,"mat-selection-list",20),i0.\u0275\u0275template(7,MailboxDetailComponent_div_0_div_43_mat_list_option_7_Template,8,4,"mat-list-option",26),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r4=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(6),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r4.mailData.attachment_)}}function MailboxDetailComponent_div_0_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div",3)(3,"ul",4),i0.\u0275\u0275element(4,"li")(5,"li")(6,"li")(7,"li")(8,"li")(9,"li")(10,"li")(11,"li")(12,"li")(13,"li"),i0.\u0275\u0275elementStart(14,"div",5)(15,"div",6)(16,"div",7)(17,"h2",8),i0.\u0275\u0275text(18),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(19,"p",9),i0.\u0275\u0275text(20),i0.\u0275\u0275pipe(21,"date"),i0.\u0275\u0275elementEnd()()()()()()(),i0.\u0275\u0275element(22,"app-notifications"),i0.\u0275\u0275elementStart(23,"div",10)(24,"div",11)(25,"div",12)(26,"div",13)(27,"div",14)(28,"div",15)(29,"div",16)(30,"h2",17)(31,"b",18),i0.\u0275\u0275text(32,"Pengirim"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(33,"div",19)(34,"mat-selection-list",20)(35,"mat-list-option")(36,"mat-icon",21),i0.\u0275\u0275text(37,"account_circle"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(38,"h4"),i0.\u0275\u0275text(39),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275template(40,MailboxDetailComponent_div_0_div_40_Template,8,2,"div",22),i0.\u0275\u0275template(41,MailboxDetailComponent_div_0_div_41_Template,8,2,"div",22),i0.\u0275\u0275template(42,MailboxDetailComponent_div_0_div_42_Template,8,2,"div",22),i0.\u0275\u0275template(43,MailboxDetailComponent_div_0_div_43_Template,8,2,"div",22),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(44,"div",23)(45,"div",13)(46,"div",14)(47,"div",15)(48,"div",16)(49,"h2",17)(50,"b",18),i0.\u0275\u0275text(51,"Isi Konten Pesan"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(52,"div",19),i0.\u0275\u0275element(53,"div",24),i0.\u0275\u0275elementEnd()()()()()()()()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(2),i0.\u0275\u0275styleProp("background","url(/assets/img/banner/mailbox-detail.png), linear-gradient(to bottom, "+(ctx_r0.GS.isDarkMode?"#673ab7":"#3f51b5")+" 0%, #ee0dfd 100%)"),i0.\u0275\u0275advance(16),i0.\u0275\u0275textInterpolate1(" ",ctx_r0.mailData.subject," "),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind2(21,11,ctx_r0.mailData.date,"d MMMM y, hh:mm:ss a z")),i0.\u0275\u0275advance(14),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate(ctx_r0.mailData.from),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.mailData.to),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.mailData.cc),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.mailData.bcc),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.mailData.attachment_.length>0),i0.\u0275\u0275advance(10),i0.\u0275\u0275property("innerHTML",ctx_r0.mailData.html||ctx_r0.mailData.text,i0.\u0275\u0275sanitizeHtml)}}__name(MailboxDetailComponent_div_0_div_40_mat_list_option_7_Template,"MailboxDetailComponent_div_0_div_40_mat_list_option_7_Template"),__name(MailboxDetailComponent_div_0_div_40_Template,"MailboxDetailComponent_div_0_div_40_Template"),__name(MailboxDetailComponent_div_0_div_41_mat_list_option_7_Template,"MailboxDetailComponent_div_0_div_41_mat_list_option_7_Template"),__name(MailboxDetailComponent_div_0_div_41_Template,"MailboxDetailComponent_div_0_div_41_Template"),__name(MailboxDetailComponent_div_0_div_42_mat_list_option_7_Template,"MailboxDetailComponent_div_0_div_42_mat_list_option_7_Template"),__name(MailboxDetailComponent_div_0_div_42_Template,"MailboxDetailComponent_div_0_div_42_Template"),__name(MailboxDetailComponent_div_0_div_43_mat_list_option_7_Template,"MailboxDetailComponent_div_0_div_43_mat_list_option_7_Template"),__name(MailboxDetailComponent_div_0_div_43_Template,"MailboxDetailComponent_div_0_div_43_Template"),__name(MailboxDetailComponent_div_0_Template,"MailboxDetailComponent_div_0_Template");class MailboxDetailComponent{constructor(activatedRoute,router,bs,fs,gs,ms,wb){this.activatedRoute=activatedRoute,this.router=router,this.bs=bs,this.fs=fs,this.gs=gs,this.ms=ms,this.wb=wb,this.mailId="",this.mailData=null,this.subsParam=null,this.subsMail=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}ngOnInit(){this.gs.isBrowser&&this.getMail()}ngOnDestroy(){var _a,_b;null===(_a=this.subsParam)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsMail)||void 0===_b||_b.unsubscribe()}filterAddress(raw){return raw?raw.split(",").map(rw=>rw.trim()):[]}getMail(){this.subsParam=this.activatedRoute.params.subscribe({next:p=>{this.mailId=p.mailId,this.bs.busy(),this.subsMail&&(this.subsMail.unsubscribe(),this.bs.idle()),this.subsMail=this.ms.getMail(this.mailId).subscribe({next:res=>{this.gs.log("[MAIL_DETAIL_SUCCESS]",res),this.mailData=res.result,this.fs.initializeFab("outgoing_mail",null,"Balas Email","/create/mailbox",!1),this.bs.idle()},error:err=>{this.gs.log("[MAIL_DETAIL_ERROR]",err,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:"/mailbox"}})}})}})}downloadAttachment(id){this.wb.winboxOpenUri(`${environment_1.environment.apiUrl}/attachment/${id}?ngsw-bypass=true`)}}__name(MailboxDetailComponent,"MailboxDetailComponent"),exports2.MailboxDetailComponent=MailboxDetailComponent,MailboxDetailComponent.\u0275fac=__name(function(t){return new(t||MailboxDetailComponent)(i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.BusyService),i0.\u0275\u0275directiveInject(i3.FabService),i0.\u0275\u0275directiveInject(i4.GlobalService),i0.\u0275\u0275directiveInject(i5.MailService),i0.\u0275\u0275directiveInject(i6.WinboxService))},"MailboxDetailComponent_Factory"),MailboxDetailComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:MailboxDetailComponent,selectors:[["app-mailbox-detail"]],decls:1,vars:1,consts:[["class","p-0 m-0",4,"ngIf"],[1,"p-0","m-0"],[1,"container-fluid","p-0"],[1,"wrapper"],[1,"bg-bubbles","align-items-center","p-0"],[1,"row","align-items-center","h-100"],[1,"col-12","mx-auto"],[1,"container","text-light"],[1,"mb-1",2,"line-height","normal"],[1,"mb-0"],[1,"container"],[1,"row"],[1,"col-md-5","col-xl-4","p-3"],[1,"row","sticky-top"],[1,"col"],[1,"row","py-3"],[1,"col-12","pt-3","sticky-top","bg-bifeldy"],[1,"border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12"],[3,"multiple"],["mat-list-icon","",1,"ms-3"],["class","row py-3",4,"ngIf"],[1,"col-md-7","col-xl-8","p-3","sticky-top"],[1,"py-2","px-3",2,"white-space","pre-line !important",3,"innerHTML"],[4,"ngFor","ngForOf"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["mat-line",""]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275template(0,MailboxDetailComponent_div_0_Template,54,14,"div",0),2&rf&&i0.\u0275\u0275property("ngIf",ctx.mailData)},"MailboxDetailComponent_Template"),directives:[i7.NgIf,i8.NotificationsComponent,i9.MatSelectionList,i9.MatListOption,i10.MatIcon,i9.MatListIconCssMatStyler,i7.NgForOf,i11.MatLine],pipes:[i7.DatePipe,i12.BytesPipe],styles:[".wrapper[_ngcontent-%COMP%]{position:sticky;left:0;width:100%;height:128px;overflow:hidden;background-size:128px,auto!important;background-repeat:no-repeat,repeat!important;background-position-x:100%,0%!important}.bg-bubbles[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:absolute;list-style:none;display:block;width:40px;height:40px;background-color:#ffffff26;bottom:-160px;animation:square 25s infinite;transition-timing-function:linear}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1){left:10%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2){left:20%;width:80px;height:80px;animation-delay:2s;animation-duration:17s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3){left:25%;animation-delay:4s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4){left:40%;width:60px;height:60px;animation-duration:22s;background-color:#ffffff40}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){left:70%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(6){left:80%;width:120px;height:120px;animation-delay:3s;background-color:#fff3}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(7){left:32%;width:160px;height:160px;animation-delay:7s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(8){left:55%;width:20px;height:20px;animation-delay:15s;animation-duration:40s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(9){left:25%;width:10px;height:10px;animation-delay:2s;animation-duration:40s;background-color:#ffffff4d}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(10){left:90%;width:160px;height:160px;animation-delay:11s}@keyframes square{0%{transform:translateY(0)}to{transform:translateY(-512px) rotate(512deg)}}"]})},50045:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MailboxListComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=(__webpack_require__2(74202),__webpack_require__2(15934)),i0=(__webpack_require__2(4137),__webpack_require__2(33e3),__webpack_require__2(96382),__webpack_require__2(80855),__webpack_require__2(27358),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(4137)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(96382)),i5=tslib_1.__importStar(__webpack_require__2(80855)),i6=tslib_1.__importStar(__webpack_require__2(27358)),i7=tslib_1.__importStar(__webpack_require__2(8616)),i8=tslib_1.__importStar(__webpack_require__2(67322)),i9=tslib_1.__importStar(__webpack_require__2(74107)),i10=tslib_1.__importStar(__webpack_require__2(90508)),i11=tslib_1.__importStar(__webpack_require__2(47423)),i12=tslib_1.__importStar(__webpack_require__2(25245)),i13=tslib_1.__importStar(__webpack_require__2(30578));class MailboxListComponent{constructor(router,as,bs,fs,gs,ms){this.router=router,this.as=as,this.bs=bs,this.fs=fs,this.gs=gs,this.ms=ms,this.mailData={inbox:{column:["Tanggal","Pengirim","Topik","Lampiran"],row:[],count:0},outbox:{column:["Tanggal","Penerima","Topik","Lampiran"],row:[],count:0}},this.selectedMailBox="inbox",this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.subsMailbox=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}get AS(){return this.as}get ENV(){return environment_1.environment}ngOnInit(){this.gs.isBrowser&&this.getMailbox()}ngOnDestroy(){var _a;null===(_a=this.subsMailbox)||void 0===_a||_a.unsubscribe()}filterAddress(raw){let addr="";if(raw)for(const rw of raw.split(","))addr&&(addr+=", "),rw.includes("<")&&rw.includes(">")?addr+=rw.split("<")[1].split(">")[0].trim():addr+=rw.trim();return addr}getMailbox(){this.bs.busy(),this.subsMailbox&&(this.subsMailbox.unsubscribe(),this.bs.idle()),this.subsMailbox=this.ms.getMailbox(this.selectedMailBox,this.q,this.page,this.row,this.sort,this.order).subscribe({next:res=>{this.gs.log("[MAILBOX_LIST_SUCCESS]",res),this.mailData[this.selectedMailBox].count=res.count,this.mailData[this.selectedMailBox].row=[];for(const r of res.results)this.mailData[this.selectedMailBox].row.push({id:r.id,Tanggal:r.date,Pengirim:this.filterAddress(r.from),Penerima:this.filterAddress(r.to),Topik:r.subject,Lampiran:`${r.attachment_count} Berkas`});this.fs.initializeFab("outgoing_mail",null,"Buat Email Baru","/create/mailbox",!1),this.bs.idle()},error:err=>{this.gs.log("[MAILBOX_LIST_ERROR]",err,"error"),this.bs.idle()}})}changeMailbox(){this.getMailbox()}onRowClicked(data){this.gs.log("[MAILBOX_LIST_CLICK_EMAIL]",data),this.router.navigateByUrl(`/mailbox/${data.id}`)}onPaginatorClicked(data){this.gs.log("[MAILBOX_LIST_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getMailbox()}onServerSideFilter(data){this.gs.log("[MAILBOX_LIST_ENTER_FILTER]",data),this.q=data,this.getMailbox()}onServerSideOrder(data){this.gs.log("[MAILBOX_LIST_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,"created_at"===this.sort?this.sort="date":"title"===this.sort&&(this.sort="subject"),this.order=data.direction,this.getMailbox()}}__name(MailboxListComponent,"MailboxListComponent"),exports2.MailboxListComponent=MailboxListComponent,MailboxListComponent.\u0275fac=__name(function(t){return new(t||MailboxListComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.AuthService),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.FabService),i0.\u0275\u0275directiveInject(i5.GlobalService),i0.\u0275\u0275directiveInject(i6.MailService))},"MailboxListComponent_Factory"),MailboxListComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:MailboxListComponent,selectors:[["app-mailbox-list"]],decls:42,vars:12,consts:[[1,"container-fluid","p-0"],[1,"wrapper"],[1,"bg-bubbles","align-items-center","p-0"],[1,"row","align-items-center","h-100"],[1,"col-12","mx-auto"],[1,"container","text-light"],[1,"mb-1",2,"line-height","normal"],[1,"mb-0"],[1,"container"],[1,"row","sticky-top","bg-bifeldy"],[1,"col-12"],[1,"row"],[1,"col-12","pb-3"],[1,"m-0","border-bottom","border-primary","row"],[1,"pt-3","col-6","col-md-4","col-lg-2",3,"color"],[3,"value","valueChange"],["value","inbox"],["value","outbox"],[1,"ms-auto","p-3","col-6","col-md-4","col-lg-2"],["mat-flat-button","","color","accent",1,"w-100","h-100",3,"click"],[1,"me-1"],[1,"row","p-3"],[3,"tableDataColumn","tableDataRow","count","serverSide","serverSideFilter","rowClicked","paginatorClicked","serverSideOrder"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"ul",2),i0.\u0275\u0275element(3,"li")(4,"li")(5,"li")(6,"li")(7,"li")(8,"li")(9,"li")(10,"li")(11,"li")(12,"li"),i0.\u0275\u0275elementStart(13,"div",3)(14,"div",4)(15,"div",5)(16,"h2",6),i0.\u0275\u0275text(17),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(18,"p",7),i0.\u0275\u0275text(19),i0.\u0275\u0275elementEnd()()()()()()(),i0.\u0275\u0275element(20,"app-notifications"),i0.\u0275\u0275elementStart(21,"div",8)(22,"div",9)(23,"div",10)(24,"div",11)(25,"div",12)(26,"h3",13)(27,"mat-form-field",14)(28,"mat-label"),i0.\u0275\u0275text(29,"Kotak Pesan"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(30,"mat-select",15),i0.\u0275\u0275listener("valueChange",__name(function($event){return ctx.selectedMailBox=$event},"MailboxListComponent_Template_mat_select_valueChange_30_listener"))("valueChange",__name(function(){return ctx.changeMailbox()},"MailboxListComponent_Template_mat_select_valueChange_30_listener")),i0.\u0275\u0275elementStart(31,"mat-option",16),i0.\u0275\u0275text(32,"Masuk"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(33,"mat-option",17),i0.\u0275\u0275text(34,"Keluar"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(35,"div",18)(36,"button",19),i0.\u0275\u0275listener("click",__name(function(){return ctx.changeMailbox()},"MailboxListComponent_Template_button_click_36_listener")),i0.\u0275\u0275elementStart(37,"mat-icon",20),i0.\u0275\u0275text(38,"loop"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(39," Refresh "),i0.\u0275\u0275elementEnd()()()()()()(),i0.\u0275\u0275elementStart(40,"div",21)(41,"app-material-table",22),i0.\u0275\u0275listener("serverSideFilter",__name(function($event){return ctx.onServerSideFilter($event)},"MailboxListComponent_Template_app_material_table_serverSideFilter_41_listener"))("rowClicked",__name(function($event){return ctx.onRowClicked($event)},"MailboxListComponent_Template_app_material_table_rowClicked_41_listener"))("paginatorClicked",__name(function($event){return ctx.onPaginatorClicked($event)},"MailboxListComponent_Template_app_material_table_paginatorClicked_41_listener"))("serverSideOrder",__name(function($event){return ctx.onServerSideOrder($event)},"MailboxListComponent_Template_app_material_table_serverSideOrder_41_listener")),i0.\u0275\u0275elementEnd()()()),2&rf&&(i0.\u0275\u0275advance(1),i0.\u0275\u0275styleProp("background","url(/assets/img/banner/mailbox.png), linear-gradient(to bottom, "+(ctx.GS.isDarkMode?"#673ab7":"#3f51b5")+" 0%, #ee0dfd 100%)"),i0.\u0275\u0275advance(16),i0.\u0275\u0275textInterpolate2(" ",null==ctx.AS.currentUserSubject||null==ctx.AS.currentUserSubject.value?null:ctx.AS.currentUserSubject.value.username," @ ",ctx.ENV.domain," "),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate2(" ",ctx.mailData.inbox.count," Inbox ~ ",ctx.mailData.outbox.count," Outbox "),i0.\u0275\u0275advance(8),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("value",ctx.selectedMailBox),i0.\u0275\u0275advance(11),i0.\u0275\u0275property("tableDataColumn",ctx.mailData[ctx.selectedMailBox].column)("tableDataRow",ctx.mailData[ctx.selectedMailBox].row)("count",ctx.mailData[ctx.selectedMailBox].count)("serverSide",!0))},"MailboxListComponent_Template"),directives:[i7.NotificationsComponent,i8.MatFormField,i8.MatLabel,i9.MatSelect,i10.MatOption,i11.MatButton,i12.MatIcon,i13.MaterialTableComponent],styles:[".wrapper[_ngcontent-%COMP%]{position:sticky;left:0;width:100%;height:128px;overflow:hidden;background-size:200px,auto!important;background-repeat:no-repeat,repeat!important;background-position-x:100%,0%!important}.bg-bubbles[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:absolute;list-style:none;display:block;width:40px;height:40px;background-color:#ffffff26;bottom:-160px;animation:square 25s infinite;transition-timing-function:linear}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1){left:10%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2){left:20%;width:80px;height:80px;animation-delay:2s;animation-duration:17s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3){left:25%;animation-delay:4s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4){left:40%;width:60px;height:60px;animation-duration:22s;background-color:#ffffff40}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){left:70%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(6){left:80%;width:120px;height:120px;animation-delay:3s;background-color:#fff3}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(7){left:32%;width:160px;height:160px;animation-delay:7s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(8){left:55%;width:20px;height:20px;animation-delay:15s;animation-duration:40s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(9){left:25%;width:10px;height:10px;animation-delay:2s;animation-duration:40s;background-color:#ffffff4d}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(10){left:90%;width:160px;height:160px;animation-delay:11s}@keyframes square{0%{transform:translateY(0)}to{transform:translateY(-512px) rotate(512deg)}}"]})},41309:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MailboxModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),shared_material_module_1=__webpack_require__2(20210),custom_pipe_module_1=__webpack_require__2(67355),mailbox_detail_component_1=__webpack_require__2(33657),mailbox_list_component_1=__webpack_require__2(50045),notifications_module_1=__webpack_require__2(88613),material_table_module_1=__webpack_require__2(617),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:mailbox_list_component_1.MailboxListComponent},{path:":mailId",children:[{path:"",pathMatch:"full",component:mailbox_detail_component_1.MailboxDetailComponent}]}]);class MailboxModule{}__name(MailboxModule,"MailboxModule"),exports2.MailboxModule=MailboxModule,MailboxModule.\u0275fac=__name(function(t){return new(t||MailboxModule)},"MailboxModule_Factory"),MailboxModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:MailboxModule}),MailboxModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),forms_1.FormsModule,forms_1.ReactiveFormsModule,shared_material_module_1.SharedMaterialModule,notifications_module_1.NotificationsModule,material_table_module_1.MaterialTableModule,custom_pipe_module_1.CustomPipeModule]]})},91341:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NewsDetailComponent=void 0;const tslib_1=__webpack_require__2(70655),warna_1=(__webpack_require__2(74202),__webpack_require__2(87623)),i0=(__webpack_require__2(80855),__webpack_require__2(96382),__webpack_require__2(49618),__webpack_require__2(18745),__webpack_require__2(33e3),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(33e3)),i3=tslib_1.__importStar(__webpack_require__2(80855)),i4=tslib_1.__importStar(__webpack_require__2(96382)),i5=tslib_1.__importStar(__webpack_require__2(18745)),i6=tslib_1.__importStar(__webpack_require__2(49618)),i7=tslib_1.__importStar(__webpack_require__2(8616)),i8=tslib_1.__importStar(__webpack_require__2(69808)),i9=tslib_1.__importStar(__webpack_require__2(24028)),i10=tslib_1.__importStar(__webpack_require__2(78838)),i11=tslib_1.__importStar(__webpack_require__2(11861));function NewsDetailComponent_div_1_Template(rf,ctx){if(1&rf){const _r2=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"div",5),i0.\u0275\u0275element(7,"img",7),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(8,"div",8)(9,"app-material-chip",9),i0.\u0275\u0275listener("chipClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r2),i0.\u0275\u0275nextContext().openTag($event)},"NewsDetailComponent_div_1_Template_app_material_chip_chipClicked_9_listener")),i0.\u0275\u0275elementEnd()()()()()(),i0.\u0275\u0275elementStart(10,"div",10)(11,"div",6)(12,"div",11)(13,"div",5)(14,"h2",12)(15,"b",13),i0.\u0275\u0275text(16),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(17,"div",5),i0.\u0275\u0275element(18,"hr",14),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(19,"div",5)(20,"h5",15),i0.\u0275\u0275text(21," .: "),i0.\u0275\u0275elementStart(22,"a",16),i0.\u0275\u0275text(23),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(24),i0.\u0275\u0275pipe(25,"date"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275element(26,"div",17),i0.\u0275\u0275pipe(27,"safeInnerHtml"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(28,"div",18)(29,"div",19)(30,"h2",20)(31,"b",13),i0.\u0275\u0275text(32,"Komentar"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(33,"div",5)(34,"div",21),i0.\u0275\u0275element(35,"app-discussion"),i0.\u0275\u0275elementEnd()()()()}if(2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(7),i0.\u0275\u0275propertyInterpolate("src",ctx_r0.newsData.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("chipData",ctx_r0.chipData),i0.\u0275\u0275advance(7),i0.\u0275\u0275textInterpolate(ctx_r0.newsData.title),i0.\u0275\u0275advance(6),i0.\u0275\u0275propertyInterpolate1("routerLink","/user/",ctx_r0.newsData.user_.username,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",ctx_r0.newsData.user_.username," "),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" :: ",i0.\u0275\u0275pipeBind2(25,7,ctx_r0.newsData.created_at,"d MMMM y, hh:mm:ss a z")," :. "),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("innerHTML",i0.\u0275\u0275pipeBind1(27,10,ctx_r0.newsData.content),i0.\u0275\u0275sanitizeHtml)}}__name(NewsDetailComponent_div_1_Template,"NewsDetailComponent_div_1_Template");class NewsDetailComponent{constructor(activatedRoute,router,bs,gs,fs,pi,news){this.activatedRoute=activatedRoute,this.router=router,this.bs=bs,this.gs=gs,this.fs=fs,this.pi=pi,this.news=news,this.newsId=0,this.newsData=null,this.chipData=[],this.subsActRoute=null,this.subsNews=null,this.subsParam=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnDestroy(){var _a,_b,_c;null===(_a=this.subsActRoute)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsNews)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsParam)||void 0===_c||_c.unsubscribe()}ngOnInit(){this.subsParam=this.activatedRoute.params.subscribe({next:p=>{this.newsId=Number(p.newsId),this.bs.busy(),this.subsNews=this.news.getNews(this.newsId).subscribe({next:res=>{if(this.gs.log("[NEWS_DETAIL_SUCCESS]",res),this.newsData=res.result,this.pi.updatePageMetaData(`${this.newsData.title}`,`${this.newsData.content}`,`${Array.isArray(this.newsData.tags)?this.newsData.tags.join(", "):this.newsData.title}`,this.newsData.image_url,this.newsData.user_.username),this.bs.idle(),this.gs.isBrowser){if(Array.isArray(this.newsData.tags))for(let i12=0;i12{this.gs.log("[NEWS_DETAIL_ERROR]",err,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:"/news"}})}})}})}openTag(data){this.gs.log("[FANSUB_DETAIL_OPEN_TAG]",data)}}__name(NewsDetailComponent,"NewsDetailComponent"),exports2.NewsDetailComponent=NewsDetailComponent,NewsDetailComponent.\u0275fac=__name(function(t){return new(t||NewsDetailComponent)(i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.BusyService),i0.\u0275\u0275directiveInject(i3.GlobalService),i0.\u0275\u0275directiveInject(i4.FabService),i0.\u0275\u0275directiveInject(i5.PageInfoService),i0.\u0275\u0275directiveInject(i6.NewsService))},"NewsDetailComponent_Factory"),NewsDetailComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:NewsDetailComponent,selectors:[["app-news-detail"]],decls:2,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"row","pb-3","px-0"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top","pt-3"],[1,"col-12"],[1,"row"],[1,"w-100",3,"src"],[1,"col-12","p-3"],[3,"chipData","chipClicked"],[1,"col-lg-8","col-xl-9"],[1,"sticky-top","bg-bifeldy"],[1,"pt-3","m-0"],[1,"text-bifeldy"],[1,"my-1","border-bottom-dotted",2,"height","4px","background","url(/assets/img/stripe.png)"],[1,"pb-3","m-0","text-bifeldy"],[1,"text-warning","text-decoration-none",3,"routerLink"],[1,"col-12","pt-3","mt-3",3,"innerHTML"],[1,"row","pt-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"p-3"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275template(1,NewsDetailComponent_div_1_Template,36,12,"div",0)),2&rf&&(i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.newsData))},"NewsDetailComponent_Template"),directives:[i7.NotificationsComponent,i8.NgIf,i9.MaterialChipComponent,i1.RouterLinkWithHref,i10.DiscussionComponent],pipes:[i8.DatePipe,i11.SafeInnerHtmlPipe],styles:[""]})},83899:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NewsEditComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),constants_1=(__webpack_require__2(74202),__webpack_require__2(26271)),i0=(__webpack_require__2(80855),__webpack_require__2(18745),__webpack_require__2(33e3),__webpack_require__2(67902),__webpack_require__2(49618),__webpack_require__2(4137),__webpack_require__2(96925),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(93075)),i2=tslib_1.__importStar(__webpack_require__2(74202)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(18745)),i5=tslib_1.__importStar(__webpack_require__2(67902)),i6=tslib_1.__importStar(__webpack_require__2(49618)),i7=tslib_1.__importStar(__webpack_require__2(96925)),i8=tslib_1.__importStar(__webpack_require__2(80855)),i9=tslib_1.__importStar(__webpack_require__2(4137)),i10=tslib_1.__importStar(__webpack_require__2(8616)),i11=tslib_1.__importStar(__webpack_require__2(69808)),i12=tslib_1.__importStar(__webpack_require__2(67322)),i13=tslib_1.__importStar(__webpack_require__2(21385)),i14=tslib_1.__importStar(__webpack_require__2(25245)),i15=tslib_1.__importStar(__webpack_require__2(47423)),i16=tslib_1.__importStar(__webpack_require__2(77531)),i17=tslib_1.__importStar(__webpack_require__2(26688)),i18=tslib_1.__importStar(__webpack_require__2(29345)),i19=tslib_1.__importStar(__webpack_require__2(23626));function NewsEditComponent_form_4_div_21_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r2=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Ukuran Upload Melebihi Batas ",i0.\u0275\u0275pipeBind1(2,1,ctx_r2.imageLimitExceeded)," !")}}function NewsEditComponent_form_4_div_22_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r3.imageErrorText)}}function NewsEditComponent_form_4_div_23_Template(rf,ctx){if(1&rf){const _r10=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",2)(1,"button",34),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r10),i0.\u0275\u0275nextContext(2).submitImage()},"NewsEditComponent_form_4_div_23_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",31),i0.\u0275\u0275text(3,"add_photo_alternate"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Unggah "),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r4=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",ctx_r4.submitted)}}function NewsEditComponent_form_4_div_33_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Judul Berita Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function NewsEditComponent_form_4_div_34_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Judul Berita Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function NewsEditComponent_form_4_mat_chip_40_Template(rf,ctx){if(1&rf){const _r13=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-chip",35),i0.\u0275\u0275listener("removed",__name(function(){const t_r11=i0.\u0275\u0275restoreView(_r13).$implicit;return i0.\u0275\u0275nextContext(2).removeTag(t_r11)},"NewsEditComponent_form_4_mat_chip_40_Template_mat_chip_removed_0_listener")),i0.\u0275\u0275text(1),i0.\u0275\u0275elementStart(2,"mat-icon",36),i0.\u0275\u0275text(3,"cancel"),i0.\u0275\u0275elementEnd()()}if(2&rf){const t_r11=ctx.$implicit;i0.\u0275\u0275property("removable",!0),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",t_r11," ")}}function NewsEditComponent_form_4_Template(rf,ctx){if(1&rf){const _r15=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",4),i0.\u0275\u0275listener("submit",__name(function(){return i0.\u0275\u0275restoreView(_r15),i0.\u0275\u0275nextContext().onSubmit()},"NewsEditComponent_form_4_Template_form_submit_0_listener")),i0.\u0275\u0275elementStart(1,"div",5)(2,"div",6)(3,"h2",7)(4,"b",8),i0.\u0275\u0275text(5,"Perbaharui Data Berita & Informasi Baru"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(6,"div",2)(7,"div",9)(8,"div",10)(9,"div",9)(10,"div",2),i0.\u0275\u0275element(11,"img",11),i0.\u0275\u0275elementStart(12,"mat-form-field",12)(13,"mat-label"),i0.\u0275\u0275text(14,"Gambar"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(15,"ngx-mat-file-input",13,14),i0.\u0275\u0275listener("change",__name(function($event){i0.\u0275\u0275restoreView(_r15);const _r1=i0.\u0275\u0275reference(16);return i0.\u0275\u0275nextContext().uploadImage($event,_r1)},"NewsEditComponent_form_4_Template_ngx_mat_file_input_change_15_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(17,"mat-icon",15),i0.\u0275\u0275text(18,"image"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(19,"mat-error",16)(20,"small"),i0.\u0275\u0275template(21,NewsEditComponent_form_4_div_21_Template,3,3,"div",17),i0.\u0275\u0275template(22,NewsEditComponent_form_4_div_22_Template,2,1,"div",17),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(23,NewsEditComponent_form_4_div_23_Template,5,1,"div",18),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(24,"div",19)(25,"div",9)(26,"mat-form-field",20)(27,"mat-label"),i0.\u0275\u0275text(28,"Judul"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(29,"input",21),i0.\u0275\u0275elementStart(30,"mat-icon",15),i0.\u0275\u0275text(31,"wysiwyg"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(32,"mat-error"),i0.\u0275\u0275template(33,NewsEditComponent_form_4_div_33_Template,2,0,"div",17),i0.\u0275\u0275template(34,NewsEditComponent_form_4_div_34_Template,2,0,"div",17),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(35,"mat-form-field",20)(36,"mat-label"),i0.\u0275\u0275text(37,"Tags & Kategori"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(38,"mat-chip-list",null,22),i0.\u0275\u0275template(40,NewsEditComponent_form_4_mat_chip_40_Template,4,2,"mat-chip",23),i0.\u0275\u0275elementStart(41,"input",24),i0.\u0275\u0275listener("matChipInputTokenEnd",__name(function($event){return i0.\u0275\u0275restoreView(_r15),i0.\u0275\u0275nextContext().addTag($event)},"NewsEditComponent_form_4_Template_input_matChipInputTokenEnd_41_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(42,"mat-icon",15),i0.\u0275\u0275text(43,"loyalty"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(44,"mat-hint",25),i0.\u0275\u0275text(45,"Isi Dengan Bebas, Pisahkan Dengan Koma"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275element(46,"angular-editor",26),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(47,"div",9)(48,"div",2)(49,"div",27),i0.\u0275\u0275element(50,"div",28),i0.\u0275\u0275elementStart(51,"div",29)(52,"a",30)(53,"mat-icon",31),i0.\u0275\u0275text(54,"undo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(55," Batal "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(56,"div",29)(57,"button",32),i0.\u0275\u0275text(58," Simpan "),i0.\u0275\u0275elementStart(59,"mat-icon",33),i0.\u0275\u0275text(60,"save"),i0.\u0275\u0275elementEnd()()()()()()()()()}if(2&rf){const _r7=i0.\u0275\u0275reference(39),ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("formGroup",ctx_r0.fg),i0.\u0275\u0275advance(11),i0.\u0275\u0275property("src",ctx_r0.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("disabled",ctx_r0.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r0.imageLimitExceeded),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.imageErrorText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.image&&!ctx_r0.fg.value.image),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("title").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("title").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngForOf",ctx_r0.fg.value.tags),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matChipInputSeparatorKeyCodes",ctx_r0.GS.separatorKeysCodes)("matChipInputFor",_r7)("matChipInputAddOnBlur",!0),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("config",ctx_r0.GS.angularEditorConfig),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("disabled",ctx_r0.submitted),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r0.submitted||ctx_r0.fg.invalid)}}__name(NewsEditComponent_form_4_div_21_Template,"NewsEditComponent_form_4_div_21_Template"),__name(NewsEditComponent_form_4_div_22_Template,"NewsEditComponent_form_4_div_22_Template"),__name(NewsEditComponent_form_4_div_23_Template,"NewsEditComponent_form_4_div_23_Template"),__name(NewsEditComponent_form_4_div_33_Template,"NewsEditComponent_form_4_div_33_Template"),__name(NewsEditComponent_form_4_div_34_Template,"NewsEditComponent_form_4_div_34_Template"),__name(NewsEditComponent_form_4_mat_chip_40_Template,"NewsEditComponent_form_4_mat_chip_40_Template"),__name(NewsEditComponent_form_4_Template,"NewsEditComponent_form_4_Template");class NewsEditComponent{constructor(fb,router,bs,activatedRoute,pi,imgbb,news,toast,gs,as){this.fb=fb,this.router=router,this.bs=bs,this.activatedRoute=activatedRoute,this.pi=pi,this.imgbb=imgbb,this.news=news,this.toast=toast,this.gs=gs,this.as=as,this.newsId=0,this.submitted=!1,this.image=null,this.imageErrorText=null,this.imageLimitExceeded=null,this.image_url="/assets/img/form/no-image.png",this.image_url_original=null,this.gambar=null,this.subsActRoute=null,this.subsNewsUpdate=null,this.subsNewsDetail=null,this.subsImgbb=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}ngOnInit(){this.pi.updatePageMetaData("Informasi - Ubah Berita","Halaman Pembaharuan Berita","Edit News"),this.gs.isBrowser&&(this.newsId=Number(this.activatedRoute.snapshot.paramMap.get("newsId")),this.bs.busy(),this.subsNewsDetail=this.news.getNews(this.newsId).subscribe({next:res=>{var _a,_b;this.gs.log("[NEWS_DETAIL_SUCCESS]",res),this.bs.idle(),(null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.id)!==res.result.user_.id?(this.toast.warning("Berita Ini Milik Orang Lain","Whoops!",null,!0),this.router.navigateByUrl(`/news/${this.newsId}`)):this.initForm(res.result)},error:err=>{this.gs.log("[NEWS_DETAIL_ERROR]",err,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:`/news/${this.newsId}`}})}}))}ngOnDestroy(){var _a,_b,_c,_d;null===(_a=this.subsActRoute)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsNewsUpdate)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsNewsDetail)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsImgbb)||void 0===_d||_d.unsubscribe()}initForm(data){this.image_url=data.image_url,this.image_url_original=this.image_url,this.fg=this.fb.group({title:[data.title,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],content:[data.content,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],image:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],tags:[data.tags,forms_1.Validators.compose([])]})}uploadImage(event,gambar){this.gambar=gambar,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine();const file2=event.target.files[0];try{const reader=new FileReader;reader.readAsDataURL(file2),reader.onload=e=>{if(this.gs.log("[IMAGE_SELECTED]",e),file2.size<=constants_1.CONSTANTS.fileSizeImageLimit){const img=this.gs.document.createElement("img");img.onload=()=>{this.image=file2,this.image_url=reader.result.toString()},img.src=reader.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=constants_1.CONSTANTS.fileSizeImageLimit,this.gambar.clear(event)}}catch{this.image=null,this.image_url=this.image_url_original,this.gambar.clear(event)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:res=>{this.gs.log("[IMAGE_SUCCESS]",res),this.fg.controls.image.patchValue(res.result.url),this.fg.controls.image.markAsDirty(),this.submitted=!1},error:err=>{var _a;this.gs.log("[IMAGE_ERROR]",err,"error"),this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine(),this.submitted=!1,this.imageErrorText=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info}})}onSubmit(){this.bs.busy();const body=this.gs.getDirtyValues(this.fg);if(this.gs.log("[NEWS_EDIT_DIRTY]",body),this.submitted=!0,this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsNewsUpdate=this.news.updateNews(this.newsId,{...body}).subscribe({next:res=>{this.gs.log("[NEWS_EDIT_SUCCESS]",res),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl(`/news/${this.newsId}`)},error:err=>{this.gs.log("[NEWS_EDIT_ERROR]",err,"error"),this.submitted=!1,this.bs.idle()}})}addTag(event){const input=event.input,value=event.value;(value||"").trim()&&this.fg.value.tags.push(value.trim()),input&&(input.value=""),this.fg.controls.tags.patchValue(this.fg.value.tags.filter((a,b2,c)=>c.findIndex(d=>d===a)===b2)),this.fg.controls.tags.markAsDirty()}removeTag(tag){const index=this.fg.value.tags.indexOf(tag);index>=0&&this.fg.value.tags.splice(index,1)}}__name(NewsEditComponent,"NewsEditComponent"),exports2.NewsEditComponent=NewsEditComponent,NewsEditComponent.\u0275fac=__name(function(t){return new(t||NewsEditComponent)(i0.\u0275\u0275directiveInject(i1.FormBuilder),i0.\u0275\u0275directiveInject(i2.Router),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i2.ActivatedRoute),i0.\u0275\u0275directiveInject(i4.PageInfoService),i0.\u0275\u0275directiveInject(i5.ImgbbService),i0.\u0275\u0275directiveInject(i6.NewsService),i0.\u0275\u0275directiveInject(i7.ToastService),i0.\u0275\u0275directiveInject(i8.GlobalService),i0.\u0275\u0275directiveInject(i9.AuthService))},"NewsEditComponent_Factory"),NewsEditComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:NewsEditComponent,selectors:[["app-news-edit"]],decls:5,vars:1,consts:[[1,"container"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],[1,"w-100","border",3,"src"],["appearance","outline",1,"pt-3","w-100",3,"color"],[1,"w-100",3,"disabled","accept","change"],["gambar",""],["matSuffix",""],[1,"px-3","w-100"],[4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-12","col-md-7","col-xl-8","pt-3"],["appearance","outline",1,"p-3","col-12",3,"color"],["matInput","","formControlName","title","placeholder","Berita Terkini Blablabla ..."],["tag",""],["color","accent","selected","",3,"removable","removed",4,"ngFor","ngForOf"],["placeholder","Label Tag / Kategori",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["align","end"],["formControlName","content",1,"p-3","w-100",3,"config"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","../",1,"w-100",3,"disabled"],[1,"me-1"],["mat-flat-button","","color","accent","type","submit",1,"w-100",3,"disabled"],[1,"ms-1"],["mat-raised-button","","color","primary","type","button",1,"w-100",3,"disabled","click"],["color","accent","selected","",3,"removable","removed"],["matChipRemove",""]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2),i0.\u0275\u0275template(4,NewsEditComponent_form_4_Template,61,19,"form",3),i0.\u0275\u0275elementEnd()()()),2&rf&&(i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",ctx.fg))},"NewsEditComponent_Template"),directives:[i10.NotificationsComponent,i11.NgIf,i1.\u0275NgNoValidate,i1.NgControlStatusGroup,i1.FormGroupDirective,i12.MatFormField,i12.MatLabel,i13.FileInputComponent,i14.MatIcon,i12.MatSuffix,i12.MatError,i15.MatButton,i16.MatInput,i1.DefaultValueAccessor,i1.NgControlStatus,i1.FormControlName,i17.MatChipList,i11.NgForOf,i17.MatChip,i17.MatChipRemove,i17.MatChipInput,i12.MatHint,i18.AngularEditorComponent,i15.MatAnchor,i2.RouterLinkWithHref],pipes:[i19.BytesPipe],styles:[""]})},38675:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NewsListComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(74202),__webpack_require__2(80855),__webpack_require__2(49618),__webpack_require__2(96382),__webpack_require__2(33e3),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(49618)),i5=tslib_1.__importStar(__webpack_require__2(96382)),i6=tslib_1.__importStar(__webpack_require__2(8616)),i7=tslib_1.__importStar(__webpack_require__2(18757)),i8=tslib_1.__importStar(__webpack_require__2(49933)),i9=tslib_1.__importStar(__webpack_require__2(8921));class NewsListComponent{constructor(router,gs,bs,news,fs){this.router=router,this.gs=gs,this.bs=bs,this.news=news,this.fs=fs,this.newsData=[],this.tabData=[{name:"Semua Berita & Informasi",icon:"file_copy",type:"table",data:{column:["Tanggal","Image","Topik","Penulis"],row:[]}}],this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.subsNews=null,this.gs.bannerImg="/assets/img/banner/news.png",this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnDestroy(){var _a;null===(_a=this.subsNews)||void 0===_a||_a.unsubscribe()}ngOnInit(){this.gs.isBrowser&&this.getNews()}getNews(){this.bs.busy(),this.subsNews&&(this.subsNews.unsubscribe(),this.bs.idle()),this.subsNews=this.news.getAllNews(this.q,this.page,this.row,this.sort,this.order).subscribe({next:res=>{this.gs.log("[NEWS_LIST_SUCCESS]",res),this.count=res.count,this.newsData=[];for(const r of res.results)this.newsData.push({id:r.id,Topik:r.title,Image:r.image_url,Tanggal:r.created_at,Penulis:r.user_.username,foto:r.user_.image_url});this.tabData[0].data.row=this.newsData,this.fs.initializeFab("add",null,"Tambah Berita Baru","/create/news",!1),this.bs.idle()},error:err=>{this.gs.log("[NEWS_LIST_ERROR]",err,"error"),this.bs.idle()}})}openNews(data){this.gs.log("[NEWS_LIST_CLICK_NEWS]",data),this.router.navigateByUrl(`/news/${data.id}`)}onPaginatorClicked(data){this.gs.log("[NEWS_LIST_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getNews()}onServerSideFilter(data){this.gs.log("[NEWS_LIST_ENTER_FILTER]",data),this.q=data,this.getNews()}onServerSideOrder(data){this.gs.log("[NEWS_LIST_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,this.order=data.direction,this.getNews()}}__name(NewsListComponent,"NewsListComponent"),exports2.NewsListComponent=NewsListComponent,NewsListComponent.\u0275fac=__name(function(t){return new(t||NewsListComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.NewsService),i0.\u0275\u0275directiveInject(i5.FabService))},"NewsListComponent_Factory"),NewsListComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:NewsListComponent,selectors:[["app-news-list"]],decls:11,vars:3,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-lg-8","col-xl-9"],[1,"row"],[3,"tabData","count","serverSide","tableRowClicked","paginatorClicked","serverSideFilter","serverSideOrder"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],[1,"col-12"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"app-material-tab",4),i0.\u0275\u0275listener("tableRowClicked",__name(function($event){return ctx.openNews($event)},"NewsListComponent_Template_app_material_tab_tableRowClicked_5_listener"))("paginatorClicked",__name(function($event){return ctx.onPaginatorClicked($event)},"NewsListComponent_Template_app_material_tab_paginatorClicked_5_listener"))("serverSideFilter",__name(function($event){return ctx.onServerSideFilter($event)},"NewsListComponent_Template_app_material_tab_serverSideFilter_5_listener"))("serverSideOrder",__name(function($event){return ctx.onServerSideOrder($event)},"NewsListComponent_Template_app_material_tab_serverSideOrder_5_listener")),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(6,"div",5)(7,"div",6)(8,"div",7),i0.\u0275\u0275element(9,"app-banner-discord")(10,"app-stats-server"),i0.\u0275\u0275elementEnd()()()()()),2&rf&&(i0.\u0275\u0275advance(5),i0.\u0275\u0275property("tabData",ctx.tabData)("count",ctx.count)("serverSide",!0))},"NewsListComponent_Template"),directives:[i6.NotificationsComponent,i7.MaterialTabComponent,i8.BannerDiscordComponent,i9.StatsServerComponent],styles:[""]})},6577:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NewsModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),ngx_material_file_input_1=__webpack_require__2(21385),angular_editor_1=__webpack_require__2(29345),constants_1=__webpack_require__2(26271),req_res_model_1=__webpack_require__2(14249),roles_guard_1=__webpack_require__2(2777),verified_guard_1=__webpack_require__2(55094),shared_material_module_1=__webpack_require__2(20210),custom_pipe_module_1=__webpack_require__2(67355),material_chip_module_1=__webpack_require__2(54946),material_tab_module_1=__webpack_require__2(66436),notifications_module_1=__webpack_require__2(88613),stats_server_module_1=__webpack_require__2(10669),banner_discord_module_1=__webpack_require__2(54854),discussion_module_1=__webpack_require__2(78764),news_detail_component_1=__webpack_require__2(91341),news_edit_component_1=__webpack_require__2(83899),news_list_component_1=__webpack_require__2(38675),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:news_list_component_1.NewsListComponent},{path:":newsId",children:[{path:"",pathMatch:"full",component:news_detail_component_1.NewsDetailComponent},{path:"edit",component:news_edit_component_1.NewsEditComponent,canActivate:[verified_guard_1.VerifiedGuard,roles_guard_1.RolesGuard],data:{title:"Berita - Ubah Data",description:"Halaman Pembaharuan Data Berita",keywords:"Ubah Berita",[constants_1.CONSTANTS.decoratorVerifiedOnly]:!0,[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR]}}]}]);class NewsModule{}__name(NewsModule,"NewsModule"),exports2.NewsModule=NewsModule,NewsModule.\u0275fac=__name(function(t){return new(t||NewsModule)},"NewsModule_Factory"),NewsModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:NewsModule}),NewsModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),shared_material_module_1.SharedMaterialModule,material_tab_module_1.MaterialTabModule,forms_1.FormsModule,forms_1.ReactiveFormsModule,ngx_material_file_input_1.MaterialFileInputModule,notifications_module_1.NotificationsModule,angular_editor_1.AngularEditorModule,banner_discord_module_1.BannerDiscordModule,stats_server_module_1.StatsServerModule,material_chip_module_1.MaterialChipModule,discussion_module_1.DiscussionModule,custom_pipe_module_1.CustomPipeModule]]})},99864:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NihongoBelajarComponent=void 0;const tslib_1=__webpack_require__2(70655),paginator_1=__webpack_require__2(86087),req_res_model_1=(__webpack_require__2(74202),__webpack_require__2(14249)),i0=(__webpack_require__2(4137),__webpack_require__2(80855),__webpack_require__2(33e3),__webpack_require__2(55393),__webpack_require__2(52663),__webpack_require__2(96925),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(96925)),i3=tslib_1.__importStar(__webpack_require__2(4137)),i4=tslib_1.__importStar(__webpack_require__2(80855)),i5=tslib_1.__importStar(__webpack_require__2(33e3)),i6=tslib_1.__importStar(__webpack_require__2(55393)),i7=tslib_1.__importStar(__webpack_require__2(52663)),i8=tslib_1.__importStar(__webpack_require__2(8616)),i9=tslib_1.__importStar(__webpack_require__2(67322)),i10=tslib_1.__importStar(__webpack_require__2(74107)),i11=tslib_1.__importStar(__webpack_require__2(69808)),i12=tslib_1.__importStar(__webpack_require__2(90508)),i13=tslib_1.__importStar(__webpack_require__2(77531)),i14=tslib_1.__importStar(__webpack_require__2(93075)),i15=tslib_1.__importStar(__webpack_require__2(25245)),i16=tslib_1.__importStar(__webpack_require__2(30578)),i17=tslib_1.__importStar(__webpack_require__2(49321)),i18=tslib_1.__importStar(__webpack_require__2(9224)),i19=tslib_1.__importStar(__webpack_require__2(86087)),i20=tslib_1.__importStar(__webpack_require__2(49933)),i21=tslib_1.__importStar(__webpack_require__2(8921)),i22=tslib_1.__importStar(__webpack_require__2(40192)),i23=tslib_1.__importStar(__webpack_require__2(47423)),i24=tslib_1.__importStar(__webpack_require__2(87238));function NihongoBelajarComponent_mat_option_11_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-option",20),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const k_r10=ctx.$implicit;i0.\u0275\u0275propertyInterpolate("value",k_r10.id),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(k_r10.name)}}function NihongoBelajarComponent_mat_form_field_12_Template(rf,ctx){if(1&rf){const _r12=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-form-field",21)(1,"mat-label"),i0.\u0275\u0275text(2,"Cari ..."),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"input",22),i0.\u0275\u0275listener("keyup.enter",__name(function($event){return i0.\u0275\u0275restoreView(_r12),i0.\u0275\u0275nextContext().applyFilter($event)},"NihongoBelajarComponent_mat_form_field_12_Template_input_keyup_enter_3_listener"))("ngModelChange",__name(function($event){i0.\u0275\u0275restoreView(_r12);return i0.\u0275\u0275nextContext().q=$event},"NihongoBelajarComponent_mat_form_field_12_Template_input_ngModelChange_3_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"mat-icon",23),i0.\u0275\u0275text(5,"search"),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r1=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngModel",ctx_r1.q)}}function NihongoBelajarComponent_div_13_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"div")}function NihongoBelajarComponent_ng_template_14_div_9_div_1_img_1_Template(rf,ctx){if(1&rf){const _r25=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"img",32),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r25);const char_r21=i0.\u0275\u0275nextContext().$implicit;return i0.\u0275\u0275nextContext(3).openDmak(char_r21)},"NihongoBelajarComponent_ng_template_14_div_9_div_1_img_1_Template_img_click_0_listener")),i0.\u0275\u0275elementEnd()}if(2&rf){const char_r21=i0.\u0275\u0275nextContext().$implicit,ctx_r22=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275propertyInterpolate2("src","/assets/",ctx_r22.modeTampilan,"/",char_r21.romaji,".png",i0.\u0275\u0275sanitizeUrl)}}function NihongoBelajarComponent_ng_template_14_div_9_div_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",30),i0.\u0275\u0275template(1,NihongoBelajarComponent_ng_template_14_div_9_div_1_img_1_Template,1,2,"img",31),i0.\u0275\u0275elementEnd()),2&rf){const char_r21=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",char_r21.hiragana&&char_r21.katakana)}}function NihongoBelajarComponent_ng_template_14_div_9_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",28),i0.\u0275\u0275template(1,NihongoBelajarComponent_ng_template_14_div_9_div_1_Template,2,1,"div",29),i0.\u0275\u0275elementEnd()),2&rf){const huruf_r19=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",huruf_r19.value)}}function NihongoBelajarComponent_ng_template_14_div_17_div_1_img_1_Template(rf,ctx){if(1&rf){const _r33=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"img",32),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r33);const char_r29=i0.\u0275\u0275nextContext().$implicit;return i0.\u0275\u0275nextContext(3).openDmak(char_r29)},"NihongoBelajarComponent_ng_template_14_div_17_div_1_img_1_Template_img_click_0_listener")),i0.\u0275\u0275elementEnd()}if(2&rf){const char_r29=i0.\u0275\u0275nextContext().$implicit,ctx_r30=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275propertyInterpolate2("src","/assets/",ctx_r30.modeTampilan,"/",char_r29.romaji,".png",i0.\u0275\u0275sanitizeUrl)}}function NihongoBelajarComponent_ng_template_14_div_17_div_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",30),i0.\u0275\u0275template(1,NihongoBelajarComponent_ng_template_14_div_17_div_1_img_1_Template,1,2,"img",31),i0.\u0275\u0275elementEnd()),2&rf){const char_r29=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",char_r29.hiragana&&char_r29.katakana)}}function NihongoBelajarComponent_ng_template_14_div_17_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",28),i0.\u0275\u0275template(1,NihongoBelajarComponent_ng_template_14_div_17_div_1_Template,2,1,"div",29),i0.\u0275\u0275elementEnd()),2&rf){const huruf_r27=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",huruf_r27.value)}}function NihongoBelajarComponent_ng_template_14_div_26_div_1_img_1_Template(rf,ctx){if(1&rf){const _r41=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"img",32),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r41);const char_r37=i0.\u0275\u0275nextContext().$implicit;return i0.\u0275\u0275nextContext(3).openDmak(char_r37)},"NihongoBelajarComponent_ng_template_14_div_26_div_1_img_1_Template_img_click_0_listener")),i0.\u0275\u0275elementEnd()}if(2&rf){const char_r37=i0.\u0275\u0275nextContext().$implicit,ctx_r38=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275propertyInterpolate2("src","/assets/",ctx_r38.modeTampilan,"/",char_r37.romaji,".png",i0.\u0275\u0275sanitizeUrl)}}function NihongoBelajarComponent_ng_template_14_div_26_div_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",30),i0.\u0275\u0275template(1,NihongoBelajarComponent_ng_template_14_div_26_div_1_img_1_Template,1,2,"img",31),i0.\u0275\u0275elementEnd()),2&rf){const char_r37=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",char_r37.hiragana&&char_r37.katakana)}}function NihongoBelajarComponent_ng_template_14_div_26_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",28),i0.\u0275\u0275template(1,NihongoBelajarComponent_ng_template_14_div_26_div_1_Template,2,1,"div",29),i0.\u0275\u0275elementEnd()),2&rf){const huruf_r35=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",huruf_r35.value)}}function NihongoBelajarComponent_ng_template_14_div_34_div_1_img_1_Template(rf,ctx){if(1&rf){const _r49=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"img",32),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r49);const char_r45=i0.\u0275\u0275nextContext().$implicit;return i0.\u0275\u0275nextContext(3).openDmak(char_r45)},"NihongoBelajarComponent_ng_template_14_div_34_div_1_img_1_Template_img_click_0_listener")),i0.\u0275\u0275elementEnd()}if(2&rf){const char_r45=i0.\u0275\u0275nextContext().$implicit,ctx_r46=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275propertyInterpolate2("src","/assets/",ctx_r46.modeTampilan,"/",char_r45.romaji,".png",i0.\u0275\u0275sanitizeUrl)}}function NihongoBelajarComponent_ng_template_14_div_34_div_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",30),i0.\u0275\u0275template(1,NihongoBelajarComponent_ng_template_14_div_34_div_1_img_1_Template,1,2,"img",31),i0.\u0275\u0275elementEnd()),2&rf){const char_r45=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",char_r45.hiragana&&char_r45.katakana)}}function NihongoBelajarComponent_ng_template_14_div_34_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",28),i0.\u0275\u0275template(1,NihongoBelajarComponent_ng_template_14_div_34_div_1_Template,2,1,"div",29),i0.\u0275\u0275elementEnd()),2&rf){const huruf_r43=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",huruf_r43.value)}}function NihongoBelajarComponent_ng_template_14_div_42_div_1_img_1_Template(rf,ctx){if(1&rf){const _r57=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"img",32),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r57);const char_r53=i0.\u0275\u0275nextContext().$implicit;return i0.\u0275\u0275nextContext(3).openDmak(char_r53)},"NihongoBelajarComponent_ng_template_14_div_42_div_1_img_1_Template_img_click_0_listener")),i0.\u0275\u0275elementEnd()}if(2&rf){const char_r53=i0.\u0275\u0275nextContext().$implicit,ctx_r54=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275propertyInterpolate2("src","/assets/",ctx_r54.modeTampilan,"/",char_r53.romaji,".png",i0.\u0275\u0275sanitizeUrl)}}function NihongoBelajarComponent_ng_template_14_div_42_div_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",30),i0.\u0275\u0275template(1,NihongoBelajarComponent_ng_template_14_div_42_div_1_img_1_Template,1,2,"img",31),i0.\u0275\u0275elementEnd()),2&rf){const char_r53=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",char_r53.hiragana&&char_r53.katakana)}}function NihongoBelajarComponent_ng_template_14_div_42_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",28),i0.\u0275\u0275template(1,NihongoBelajarComponent_ng_template_14_div_42_div_1_Template,2,1,"div",29),i0.\u0275\u0275elementEnd()),2&rf){const huruf_r51=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",huruf_r51.value)}}function NihongoBelajarComponent_ng_template_14_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",17)(1,"div",3)(2,"div",24)(3,"div",3)(4,"div",17)(5,"h2",25)(6,"b",26),i0.\u0275\u0275text(7,"Standar"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(8,"div",17),i0.\u0275\u0275template(9,NihongoBelajarComponent_ng_template_14_div_9_Template,2,1,"div",27),i0.\u0275\u0275pipe(10,"keyvalue"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(11,"div",3)(12,"div",17)(13,"h2",25)(14,"b",26),i0.\u0275\u0275text(15,"Lainnya"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(16,"div",17),i0.\u0275\u0275template(17,NihongoBelajarComponent_ng_template_14_div_17_Template,2,1,"div",27),i0.\u0275\u0275pipe(18,"keyvalue"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(19,"div",24)(20,"div",3)(21,"div",17)(22,"h2",25)(23,"b",26),i0.\u0275\u0275text(24,"Dakuon"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(25,"div",17),i0.\u0275\u0275template(26,NihongoBelajarComponent_ng_template_14_div_26_Template,2,1,"div",27),i0.\u0275\u0275pipe(27,"keyvalue"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(28,"div",3)(29,"div",17)(30,"h2",25)(31,"b",26),i0.\u0275\u0275text(32,"Handakuon"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(33,"div",17),i0.\u0275\u0275template(34,NihongoBelajarComponent_ng_template_14_div_34_Template,2,1,"div",27),i0.\u0275\u0275pipe(35,"keyvalue"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(36,"div",3)(37,"div",17)(38,"h2",25)(39,"b",26),i0.\u0275\u0275text(40,"Yuon"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(41,"div",17),i0.\u0275\u0275template(42,NihongoBelajarComponent_ng_template_14_div_42_Template,2,1,"div",27),i0.\u0275\u0275pipe(43,"keyvalue"),i0.\u0275\u0275elementEnd()()()()()),2&rf){const ctx_r4=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(9),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind1(10,5,ctx_r4.daftarHuruf.standard)),i0.\u0275\u0275advance(8),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind1(18,7,ctx_r4.daftarHuruf.other)),i0.\u0275\u0275advance(9),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind1(27,9,ctx_r4.daftarHuruf.dakuon)),i0.\u0275\u0275advance(8),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind1(35,11,ctx_r4.daftarHuruf.handakuon)),i0.\u0275\u0275advance(8),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind1(43,13,ctx_r4.daftarHuruf.yuon))}}function NihongoBelajarComponent_ng_template_16_div_0_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"div")}function NihongoBelajarComponent_ng_template_16_ng_template_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",35),i0.\u0275\u0275element(1,"app-material-table",36),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r61=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("tableDataColumn",ctx_r61.daftarAngka.column)("tableDataRow",ctx_r61.daftarAngka.row)}}function NihongoBelajarComponent_ng_template_16_ng_template_3_div_0_div_2_Template(rf,ctx){if(1&rf){const _r68=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",40)(1,"mat-card",41),i0.\u0275\u0275listener("click",__name(function(){const d_r66=i0.\u0275\u0275restoreView(_r68).$implicit;return i0.\u0275\u0275nextContext(4).editDataset(d_r66)},"NihongoBelajarComponent_ng_template_16_ng_template_3_div_0_div_2_Template_mat_card_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-card-header",42),i0.\u0275\u0275element(3,"div",43),i0.\u0275\u0275elementStart(4,"mat-card-title",44)(5,"h3",45),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(7,"mat-card-subtitle",46)(8,"p",47),i0.\u0275\u0275text(9),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(10,"p",48),i0.\u0275\u0275text(11),i0.\u0275\u0275elementEnd()()()()()}if(2&rf){const d_r66=ctx.$implicit;i0.\u0275\u0275advance(3),i0.\u0275\u0275styleProp("background-image","url("+d_r66.image_url+")"),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(d_r66.kana),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(d_r66.romaji),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(d_r66.meaning)}}function NihongoBelajarComponent_ng_template_16_ng_template_3_div_0_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",17)(1,"div",38),i0.\u0275\u0275template(2,NihongoBelajarComponent_ng_template_16_ng_template_3_div_0_div_2_Template,12,5,"div",39),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r64=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngForOf",ctx_r64.daftarNihongo)}}function NihongoBelajarComponent_ng_template_16_ng_template_3_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275template(0,NihongoBelajarComponent_ng_template_16_ng_template_3_div_0_Template,3,1,"div",37),2&rf){const ctx_r63=i0.\u0275\u0275nextContext(2),_r7=i0.\u0275\u0275reference(26);i0.\u0275\u0275property("ngIf",ctx_r63.daftarNihongo.length>0)("ngIfElse",_r7)}}function NihongoBelajarComponent_ng_template_16_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275template(0,NihongoBelajarComponent_ng_template_16_div_0_Template,1,0,"div",10),i0.\u0275\u0275template(1,NihongoBelajarComponent_ng_template_16_ng_template_1_Template,2,2,"ng-template",null,33,i0.\u0275\u0275templateRefExtractor),i0.\u0275\u0275template(3,NihongoBelajarComponent_ng_template_16_ng_template_3_Template,1,2,"ng-template",null,34,i0.\u0275\u0275templateRefExtractor)),2&rf){const _r60=i0.\u0275\u0275reference(2),_r62=i0.\u0275\u0275reference(4),ctx_r6=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("ngIf","angka"===ctx_r6.modeTampilan)("ngIfThen",_r60)("ngIfElse",_r62)}}function NihongoBelajarComponent_ng_template_25_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"app-no-data",49)}function NihongoBelajarComponent_button_27_Template(rf,ctx){if(1&rf){const _r70=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",50),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r70),i0.\u0275\u0275nextContext().addDataset()},"NihongoBelajarComponent_button_27_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"add"),i0.\u0275\u0275elementEnd()()}}__name(NihongoBelajarComponent_mat_option_11_Template,"NihongoBelajarComponent_mat_option_11_Template"),__name(NihongoBelajarComponent_mat_form_field_12_Template,"NihongoBelajarComponent_mat_form_field_12_Template"),__name(NihongoBelajarComponent_div_13_Template,"NihongoBelajarComponent_div_13_Template"),__name(NihongoBelajarComponent_ng_template_14_div_9_div_1_img_1_Template,"NihongoBelajarComponent_ng_template_14_div_9_div_1_img_1_Template"),__name(NihongoBelajarComponent_ng_template_14_div_9_div_1_Template,"NihongoBelajarComponent_ng_template_14_div_9_div_1_Template"),__name(NihongoBelajarComponent_ng_template_14_div_9_Template,"NihongoBelajarComponent_ng_template_14_div_9_Template"),__name(NihongoBelajarComponent_ng_template_14_div_17_div_1_img_1_Template,"NihongoBelajarComponent_ng_template_14_div_17_div_1_img_1_Template"),__name(NihongoBelajarComponent_ng_template_14_div_17_div_1_Template,"NihongoBelajarComponent_ng_template_14_div_17_div_1_Template"),__name(NihongoBelajarComponent_ng_template_14_div_17_Template,"NihongoBelajarComponent_ng_template_14_div_17_Template"),__name(NihongoBelajarComponent_ng_template_14_div_26_div_1_img_1_Template,"NihongoBelajarComponent_ng_template_14_div_26_div_1_img_1_Template"),__name(NihongoBelajarComponent_ng_template_14_div_26_div_1_Template,"NihongoBelajarComponent_ng_template_14_div_26_div_1_Template"),__name(NihongoBelajarComponent_ng_template_14_div_26_Template,"NihongoBelajarComponent_ng_template_14_div_26_Template"),__name(NihongoBelajarComponent_ng_template_14_div_34_div_1_img_1_Template,"NihongoBelajarComponent_ng_template_14_div_34_div_1_img_1_Template"),__name(NihongoBelajarComponent_ng_template_14_div_34_div_1_Template,"NihongoBelajarComponent_ng_template_14_div_34_div_1_Template"),__name(NihongoBelajarComponent_ng_template_14_div_34_Template,"NihongoBelajarComponent_ng_template_14_div_34_Template"),__name(NihongoBelajarComponent_ng_template_14_div_42_div_1_img_1_Template,"NihongoBelajarComponent_ng_template_14_div_42_div_1_img_1_Template"),__name(NihongoBelajarComponent_ng_template_14_div_42_div_1_Template,"NihongoBelajarComponent_ng_template_14_div_42_div_1_Template"),__name(NihongoBelajarComponent_ng_template_14_div_42_Template,"NihongoBelajarComponent_ng_template_14_div_42_Template"),__name(NihongoBelajarComponent_ng_template_14_Template,"NihongoBelajarComponent_ng_template_14_Template"),__name(NihongoBelajarComponent_ng_template_16_div_0_Template,"NihongoBelajarComponent_ng_template_16_div_0_Template"),__name(NihongoBelajarComponent_ng_template_16_ng_template_1_Template,"NihongoBelajarComponent_ng_template_16_ng_template_1_Template"),__name(NihongoBelajarComponent_ng_template_16_ng_template_3_div_0_div_2_Template,"NihongoBelajarComponent_ng_template_16_ng_template_3_div_0_div_2_Template"),__name(NihongoBelajarComponent_ng_template_16_ng_template_3_div_0_Template,"NihongoBelajarComponent_ng_template_16_ng_template_3_div_0_Template"),__name(NihongoBelajarComponent_ng_template_16_ng_template_3_Template,"NihongoBelajarComponent_ng_template_16_ng_template_3_Template"),__name(NihongoBelajarComponent_ng_template_16_Template,"NihongoBelajarComponent_ng_template_16_Template"),__name(NihongoBelajarComponent_ng_template_25_Template,"NihongoBelajarComponent_ng_template_25_Template"),__name(NihongoBelajarComponent_button_27_Template,"NihongoBelajarComponent_button_27_Template");class NihongoBelajarComponent{constructor(router,toast,as,gs,bs,ds,nihon){this.router=router,this.toast=toast,this.as=as,this.gs=gs,this.bs=bs,this.ds=ds,this.nihon=nihon,this.pageSizeOptions=[50,75,100,125,150],this.kategori=[{id:"hiragana",name:"Hiragana"},{id:"katakana",name:"Katakana"},{id:"angka",name:"Angka"}],this.modeTampilan="hiragana",this.daftarHuruf=null,this.daftarNihongo=[],this.daftarAngka={column:["Angka","Kana","Romaji"],row:[]},this.count=0,this.page=1,this.row=50,this.q="",this.subsDialog=null,this.subsHirakata=null,this.subsAllNihongo=null,this.subsAllKategori=null,this.dummyDataset=[{category:"number",meaning:0,kana:"\u96f6\uff0f\u30bc\u30ed",romaji:"Rei/Zero"},{category:"number",meaning:1,kana:"\u4e00",romaji:"Ichi"},{category:"number",meaning:2,kana:"\u4e8c",romaji:"Ni"},{category:"number",meaning:3,kana:"\u4e09",romaji:"San"},{category:"number",meaning:4,kana:"\u56db",romaji:"Yon/Shi"},{category:"number",meaning:5,kana:"\u4e94",romaji:"Go"},{category:"number",meaning:6,kana:"\u516d",romaji:"Roku"},{category:"number",meaning:7,kana:"\u4e03",romaji:"Nana"},{category:"number",meaning:8,kana:"\u516b",romaji:"Hachi"},{category:"number",meaning:9,kana:"\u4e5d",romaji:"Kyuu/Ku"},{category:"number",meaning:10,kana:"\u5341",romaji:"Jyuu"},{category:"number",meaning:11,kana:"\u5341\u4e00",romaji:"Jyuu Ichi"},{category:"number",meaning:12,kana:"\u5341\u4e8c",romaji:"Jyuu Ni"},{category:"number",meaning:20,kana:"\u4e8c\u5341",romaji:"Ni Jyuu"},{category:"number",meaning:21,kana:"\u4e8c\u5341\u4e00",romaji:"Ni Jyuu Ichi"},{category:"number",meaning:30,kana:"\u4e09\u5341",romaji:"San Jyuu"},{category:"number",meaning:100,kana:"\u767e",romaji:"Hyaku"},{category:"number",meaning:101,kana:"\u767e\u4e00",romaji:"Hyaku Ichi"},{category:"number",meaning:123,kana:"\u767e\u4e8c\u5341\u4e09",romaji:"Hyaku Ni Jyuu San"},{category:"number",meaning:300,kana:"\u4e09\u767e",romaji:"San Byaku"},{category:"number",meaning:600,kana:"\u516d\u767e",romaji:"Roppyaku"},{category:"number",meaning:800,kana:"\u516b\u767e",romaji:"Happyaku"},{category:"number",meaning:1e3,kana:"\u5343",romaji:"Sen"},{category:"number",meaning:3e3,kana:"\u4e09\u5343",romaji:"San Zen"},{category:"number",meaning:8e3,kana:"\u516b\u5343",romaji:"Hassen"},{category:"number",meaning:1e4,kana:"\u4e00\u4e07",romaji:"Ichi-Man"},{category:"number",meaning:1e5,kana:"\u5341\u4e07",romaji:"Jyuu-Man"},{category:"number",meaning:1e6,kana:"\u767e\u4e07",romaji:"Hyaku-Man"}],this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.gs.isBrowser&&(this.getHirakata(),this.getAngka(),this.getKategori(),this.gs.isDarkMode||this.gs.toggleDarkTheme())}ngOnDestroy(){var _a,_b,_c,_d;null===(_a=this.subsDialog)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsHirakata)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsAllNihongo)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsAllKategori)||void 0===_d||_d.unsubscribe()}changeModeTampilan(data){this.gs.log("[BELAJAR_CHANGE_KANA]",data),this.modeTampilan=data,this.count=0,this.page=1,this.row=50,this.q="",this.resetPaginator()}applyFilter(event){this.gs.log("[BELAJAR_SEARCH_VALUE_CHANGED]",event),this.q=event.target.value.trim().toLowerCase(),this.resetPaginator()}paginatorChanged(data){this.gs.log("[BELAJAR_PAGINATOR_VALUE_CHANGED]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.gs.includesOneOf(this.modeTampilan,["hiragana","katakana","angka"])||(this.daftarNihongo=[],this.getData())}resetPaginator(){var _a,_b;null===(_a=this.paginator)||void 0===_a||_a._changePageSize(this.pageSizeOptions[0]),null===(_b=this.paginator)||void 0===_b||_b.firstPage()}openDmak(kana){this.gs.log("[BELAJAR_OPEN_DMAK]",kana),this.subsDialog=this.ds.openDmakDialog({data:{romaji:kana.romaji,hiragana_katakana_kanji:"hiragana"===this.modeTampilan?kana.hiragana:kana.katakana},disableClose:!1}).afterClosed().subscribe({next:re=>{this.gs.log("[BELAJAR_DMAK_DIALOG_CLOSED]",re),this.subsDialog.unsubscribe()}})}getHirakata(){this.bs.busy(),this.subsHirakata=this.nihon.getHirakata().subscribe({next:res=>{this.gs.log("[BELAJAR_HIRAKATA_SUCCESS]",res);const huruf={};for(const r of res.results)huruf[r.category]||(huruf[r.category]={}),huruf[r.category][r.segment]||(huruf[r.category][r.segment]=[]),huruf[r.category][r.segment].push({romaji:r.romaji,hiragana:r.hiragana,katakana:r.katakana});this.daftarHuruf=huruf,this.bs.idle()},error:err=>{this.gs.log("[BELAJAR_HIRAKATA_ERROR]",err,"error"),this.bs.idle()}})}getAngka(){const dataAngka=[];for(const d of this.dummyDataset)dataAngka.push({Angka:d.meaning,Kana:d.kana,Romaji:d.romaji});this.daftarAngka.row=dataAngka}getKategori(){this.bs.busy(),this.subsAllKategori=this.nihon.getAllKategori().subscribe({next:res=>{this.gs.log("[BELAJAR_KANA_KATEGORI_SUCCESS]",res),this.kategori=[...this.kategori,...res.results],this.bs.idle()},error:err=>{this.gs.log("[BELAJAR_KANA_KATEGORI_ERROR]",err,"error"),this.bs.idle()}})}getData(){this.bs.busy(),this.subsAllNihongo=this.nihon.getAllNihongo(this.modeTampilan,this.q,this.page,this.row).subscribe({next:res=>{this.gs.log("[BELAJAR_KANA_LIST_SUCCESS]",res),this.count=res.count,this.daftarNihongo=res.results,this.bs.idle()},error:err=>{this.gs.log("[BELAJAR_KANA_LIST_ERROR]",err,"error"),this.bs.idle()}})}editDataset(dataset){var _a,_b,_c,_d,_e,_f;this.gs.log("[BELAJAR_DATASET_ADD_OR_EDIT_CLICK]",dataset),(!dataset&&(null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.verified)||dataset&&((null===(_d=null===(_c=this.as.currentUserSubject)||void 0===_c?void 0:_c.value)||void 0===_d?void 0:_d.role)===req_res_model_1.RoleModel.ADMIN||(null===(_f=null===(_e=this.as.currentUserSubject)||void 0===_e?void 0:_e.value)||void 0===_f?void 0:_f.role)===req_res_model_1.RoleModel.MODERATOR))&&(this.subsDialog=this.ds.openBelajarDialog({data:{title:dataset?"Edit Data":"Tambah Dataset",modeTampilan:this.modeTampilan,dataset,confirmText:"Simpan",cancelText:"Tutup"}}).afterClosed().subscribe({next:re=>{this.gs.log("[BELAJAR_DATASET_DIALOG_CLOSED]",re),this.getData(),this.subsDialog.unsubscribe()}}))}addDataset(){var _a,_b,_c;(null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)?(null===(_c=null===(_b=this.as.currentUserSubject)||void 0===_b?void 0:_b.value)||void 0===_c?void 0:_c.verified)?this.editDataset(null):(this.toast.warning("Khusus Pengguna Terverifikasi","Whoops!",null,!0),this.router.navigate(["/verify"],{queryParams:{returnUrl:this.router.url.split("?")[0]}})):this.router.navigate(["/login"],{queryParams:{returnUrl:"/nihongo/belajar"}})}}__name(NihongoBelajarComponent,"NihongoBelajarComponent"),exports2.NihongoBelajarComponent=NihongoBelajarComponent,NihongoBelajarComponent.\u0275fac=__name(function(t){return new(t||NihongoBelajarComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.ToastService),i0.\u0275\u0275directiveInject(i3.AuthService),i0.\u0275\u0275directiveInject(i4.GlobalService),i0.\u0275\u0275directiveInject(i5.BusyService),i0.\u0275\u0275directiveInject(i6.DialogService),i0.\u0275\u0275directiveInject(i7.NihongoService))},"NihongoBelajarComponent_Factory"),NihongoBelajarComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:NihongoBelajarComponent,selectors:[["app-belajar"]],viewQuery:__name(function(rf,ctx){if(1&rf&&i0.\u0275\u0275viewQuery(paginator_1.MatPaginator,7),2&rf){let _t;i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.paginator=_t.first)}},"NihongoBelajarComponent_Query"),decls:28,vars:13,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-lg-8","col-xl-9"],[1,"row"],[1,"col-12","sticky-top","bg-bifeldy","pb-3"],[1,"m-0","border-bottom","border-primary","row"],[1,"pt-3","col-6","col-lg-4",3,"color"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["class","ms-auto pt-3 col-6 col-lg-4",3,"color",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["hirakata",""],["kataBendaLainnya",""],[1,"position-sticky","bottom-0"],["showFirstLastButtons","",1,"bg-bifeldy",3,"color","length","pageSizeOptions","page"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],[1,"col-12"],["noData",""],["mat-fab","","color","warn","class","me-3 mb-5 fab-button animate__animated animate__bounce animate__infinite animate__slow","matTooltip","Tambah Dataset","style","position: fixed; bottom: 0; right: 0; z-index: 999999;",3,"click",4,"ngIf"],[3,"value"],[1,"ms-auto","pt-3","col-6","col-lg-4",3,"color"],["matInput","","maxlength","200","placeholder","Ex. \u81ea\u8ee2\u8eca\u3001\u30de\u30de\u30c1\u30e3\u30ea",3,"ngModel","keyup.enter","ngModelChange"],["matSuffix",""],[1,"col-12","col-md-6"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],["class","row text-center px-3",4,"ngFor","ngForOf"],[1,"row","text-center","px-3"],["class","col p-1",4,"ngFor","ngForOf"],[1,"col","p-1"],["class","rounded img-thumbnail","style","cursor: pointer;",3,"src","click",4,"ngIf"],[1,"rounded","img-thumbnail",2,"cursor","pointer",3,"src","click"],["angka",""],["selainAngka",""],[1,"p-3"],[3,"tableDataColumn","tableDataRow"],["class","col-12",4,"ngIf","ngIfElse"],["appDomChange","",1,"row","px-3"],["class","col-12 col-md-6 col-lg-4 col-xl-3 p-2",4,"ngFor","ngForOf"],[1,"col-12","col-md-6","col-lg-4","col-xl-3","p-2"],[1,"card",3,"click"],[1,"me-0",2,"cursor","pointer"],["mat-card-avatar","",2,"background-size","contain","border-radius","0","background-position","center","background-repeat","no-repeat"],[1,"text-warning","mb-1",2,"cursor","pointer"],["matLine","",1,"mb-0"],[1,"mb-0"],["matLine","",1,"m-0","text-success"],["matLine","",1,"m-0"],[1,"col-12","p-3"],["mat-fab","","color","warn","matTooltip","Tambah Dataset",1,"me-3","mb-5","fab-button","animate__animated","animate__bounce","animate__infinite","animate__slow",2,"position","fixed","bottom","0","right","0","z-index","999999",3,"click"]],template:__name(function(rf,ctx){if(1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h3",5)(7,"mat-form-field",6)(8,"mat-label"),i0.\u0275\u0275text(9,"Pilih Kategori"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(10,"mat-select",7),i0.\u0275\u0275listener("valueChange",__name(function($event){return ctx.modeTampilan=$event},"NihongoBelajarComponent_Template_mat_select_valueChange_10_listener"))("valueChange",__name(function($event){return ctx.changeModeTampilan($event)},"NihongoBelajarComponent_Template_mat_select_valueChange_10_listener")),i0.\u0275\u0275template(11,NihongoBelajarComponent_mat_option_11_Template,2,2,"mat-option",8),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(12,NihongoBelajarComponent_mat_form_field_12_Template,6,2,"mat-form-field",9),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(13,NihongoBelajarComponent_div_13_Template,1,0,"div",10),i0.\u0275\u0275template(14,NihongoBelajarComponent_ng_template_14_Template,44,15,"ng-template",null,11,i0.\u0275\u0275templateRefExtractor),i0.\u0275\u0275template(16,NihongoBelajarComponent_ng_template_16_Template,5,3,"ng-template",null,12,i0.\u0275\u0275templateRefExtractor),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(18,"div",13)(19,"mat-paginator",14),i0.\u0275\u0275listener("page",__name(function($event){return ctx.paginatorChanged($event)},"NihongoBelajarComponent_Template_mat_paginator_page_19_listener")),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(20,"div",15)(21,"div",16)(22,"div",17),i0.\u0275\u0275element(23,"app-banner-discord")(24,"app-stats-server"),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275template(25,NihongoBelajarComponent_ng_template_25_Template,1,0,"ng-template",null,18,i0.\u0275\u0275templateRefExtractor),i0.\u0275\u0275template(27,NihongoBelajarComponent_button_27_Template,3,0,"button",19)),2&rf){const _r3=i0.\u0275\u0275reference(15),_r5=i0.\u0275\u0275reference(17);i0.\u0275\u0275advance(7),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("value",ctx.modeTampilan),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx.kategori),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","hiragana"!==ctx.modeTampilan&&"katakana"!==ctx.modeTampilan&&"angka"!==ctx.modeTampilan),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",("hiragana"===ctx.modeTampilan||"katakana"===ctx.modeTampilan)&&ctx.daftarHuruf)("ngIfThen",_r3)("ngIfElse",_r5),i0.\u0275\u0275advance(5),i0.\u0275\u0275styleProp("display","hiragana"!==ctx.modeTampilan&&"katakana"!==ctx.modeTampilan&&"angka"!==ctx.modeTampilan?"block":"none"),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent")("length",ctx.count)("pageSizeOptions",ctx.pageSizeOptions),i0.\u0275\u0275advance(8),i0.\u0275\u0275property("ngIf","hiragana"!==ctx.modeTampilan&&"katakana"!==ctx.modeTampilan&&"angka"!==ctx.modeTampilan)}},"NihongoBelajarComponent_Template"),directives:[i8.NotificationsComponent,i9.MatFormField,i9.MatLabel,i10.MatSelect,i11.NgForOf,i12.MatOption,i11.NgIf,i13.MatInput,i14.DefaultValueAccessor,i14.MaxLengthValidator,i14.NgControlStatus,i14.NgModel,i15.MatIcon,i9.MatSuffix,i16.MaterialTableComponent,i17.DomChangeDirective,i18.MatCard,i18.MatCardHeader,i18.MatCardAvatar,i18.MatCardTitle,i12.MatLine,i18.MatCardSubtitle,i19.MatPaginator,i20.BannerDiscordComponent,i21.StatsServerComponent,i22.NoDataComponent,i23.MatButton,i24.MatTooltip],pipes:[i11.KeyValuePipe],styles:[""]})},57959:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NihongoJlptSchoolComponent=void 0;const tslib_1=__webpack_require__2(70655),paginator_1=__webpack_require__2(86087),i0=(__webpack_require__2(80855),__webpack_require__2(33e3),__webpack_require__2(52663),__webpack_require__2(55393),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(33e3)),i3=tslib_1.__importStar(__webpack_require__2(52663)),i4=tslib_1.__importStar(__webpack_require__2(55393)),i5=tslib_1.__importStar(__webpack_require__2(8616)),i6=tslib_1.__importStar(__webpack_require__2(67322)),i7=tslib_1.__importStar(__webpack_require__2(74107)),i8=tslib_1.__importStar(__webpack_require__2(90508)),i9=tslib_1.__importStar(__webpack_require__2(69808)),i10=tslib_1.__importStar(__webpack_require__2(77531)),i11=tslib_1.__importStar(__webpack_require__2(93075)),i12=tslib_1.__importStar(__webpack_require__2(25245)),i13=tslib_1.__importStar(__webpack_require__2(40192)),i14=tslib_1.__importStar(__webpack_require__2(49321)),i15=tslib_1.__importStar(__webpack_require__2(86087));function NihongoJlptSchoolComponent_mat_option_11_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-option",17),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const i_r4=ctx.$implicit;i0.\u0275\u0275propertyInterpolate("value",i_r4),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("N",i_r4,"")}}function NihongoJlptSchoolComponent_mat_option_18_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-option",17),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const i_r5=ctx.$implicit;i0.\u0275\u0275propertyInterpolate("value",i_r5),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Kelas ",i_r5,"")}}function NihongoJlptSchoolComponent_app_no_data_27_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"app-no-data",18)}function NihongoJlptSchoolComponent_div_28_div_2_Template(rf,ctx){if(1&rf){const _r9=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",21)(1,"div",22),i0.\u0275\u0275listener("click",__name(function(){const k_r7=i0.\u0275\u0275restoreView(_r9).$implicit;return i0.\u0275\u0275nextContext(2).openEdict(k_r7)},"NihongoJlptSchoolComponent_div_28_div_2_Template_div_click_1_listener")),i0.\u0275\u0275elementStart(2,"div",23)(3,"h5",24),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"div"),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(7,"div",25)(8,"span",26),i0.\u0275\u0275text(9),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(10,"span"),i0.\u0275\u0275text(11," - "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(12,"span",27),i0.\u0275\u0275text(13),i0.\u0275\u0275elementEnd()()()()}if(2&rf){const k_r7=ctx.$implicit;i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate(k_r7.character),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(k_r7.translate),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1("N",k_r7.jlpt,""),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate1("S",k_r7.school,"")}}function NihongoJlptSchoolComponent_div_28_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",11)(1,"div",19),i0.\u0275\u0275template(2,NihongoJlptSchoolComponent_div_28_div_2_Template,14,4,"div",20),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngForOf",ctx_r3.kanjiData)}}__name(NihongoJlptSchoolComponent_mat_option_11_Template,"NihongoJlptSchoolComponent_mat_option_11_Template"),__name(NihongoJlptSchoolComponent_mat_option_18_Template,"NihongoJlptSchoolComponent_mat_option_18_Template"),__name(NihongoJlptSchoolComponent_app_no_data_27_Template,"NihongoJlptSchoolComponent_app_no_data_27_Template"),__name(NihongoJlptSchoolComponent_div_28_div_2_Template,"NihongoJlptSchoolComponent_div_28_div_2_Template"),__name(NihongoJlptSchoolComponent_div_28_Template,"NihongoJlptSchoolComponent_div_28_Template");const _c0=__name(function(){return[5,4,3,2,1]},"_c0"),_c1=__name(function(){return[1,2,3,4,5,6,7,8,9]},"_c1");class NihongoJlptSchoolComponent{constructor(gs,bs,nihon,ds){this.gs=gs,this.bs=bs,this.nihon=nihon,this.ds=ds,this.pageSizeOptions=[50,75,100,125,150],this.jlpt="",this.school="",this.count=0,this.page=1,this.row=50,this.q="",this.sort="",this.order="",this.kanjiData=[],this.subsKanji=null,this.subsDialog=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.gs.isBrowser&&(this.getKanji(),this.gs.isDarkMode||this.gs.toggleDarkTheme())}ngOnDestroy(){var _a,_b;null===(_a=this.subsKanji)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsDialog)||void 0===_b||_b.unsubscribe()}changeJlpt(data){this.gs.log("[JLPT_CHANGED]",data),this.jlpt=data,this.resetPaginator()}changeSchool(data){this.gs.log("[SCHOOL_CHANGED]",data),this.school=data,this.resetPaginator()}applyFilter(event){this.gs.log("[SEARCH_VALUE_CHANGED]",event),this.q=event.target.value.trim().toLowerCase(),this.resetPaginator()}paginatorChanged(data){this.gs.log("[PAGINATOR_VALUE_CHANGED]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getKanji()}resetPaginator(){this.paginator._changePageSize(this.pageSizeOptions[0]),this.paginator.firstPage()}getKanji(){this.bs.busy(),this.subsKanji&&(this.subsKanji.unsubscribe(),this.bs.idle()),this.subsKanji=this.nihon.getAllKanji(this.jlpt,this.school,this.q,this.page,this.row,"context","asc").subscribe({next:res=>{this.gs.log("[KANJI_LIST_SUCCESS]",res),this.count=res.count,this.kanjiData=res.results,this.bs.idle()},error:err=>{this.gs.log("[KANJI_LIST_ERROR]",err,"error"),this.bs.idle()}})}openEdict(kana){this.gs.log("[HIRAKATA_OPEN_EDICT]",kana),this.subsDialog=this.ds.openEdictDialog({data:{character:kana.character,context:kana.context,freq:kana.freq,gakken:kana.gakken,harlpern_kkld:kana.harlpern_kkld,harlpern_njecd:kana.harlpern_njecd,jlpt:kana.jlpt,maniette:kana.maniette,nelson_c:kana.nelson_c,nelson_n:kana.nelson_n,remember:kana.remember,school:kana.school,skip:kana.skip,stroke:kana.stroke,translate:kana.translate,v_kunyomi:kana.v_kunyomi,v_onyomi:kana.v_onyomi},disableClose:!1}).afterClosed().subscribe({next:re=>{this.gs.log("[EDICT_DIALOG_CLOSED]",re),this.subsDialog.unsubscribe()}})}}__name(NihongoJlptSchoolComponent,"NihongoJlptSchoolComponent"),exports2.NihongoJlptSchoolComponent=NihongoJlptSchoolComponent,NihongoJlptSchoolComponent.\u0275fac=__name(function(t){return new(t||NihongoJlptSchoolComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService),i0.\u0275\u0275directiveInject(i2.BusyService),i0.\u0275\u0275directiveInject(i3.NihongoService),i0.\u0275\u0275directiveInject(i4.DialogService))},"NihongoJlptSchoolComponent_Factory"),NihongoJlptSchoolComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:NihongoJlptSchoolComponent,selectors:[["app-kanji"]],viewQuery:__name(function(rf,ctx){if(1&rf&&i0.\u0275\u0275viewQuery(paginator_1.MatPaginator,7),2&rf){let _t;i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.paginator=_t.first)}},"NihongoJlptSchoolComponent_Query"),decls:31,vars:15,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12","sticky-top","bg-bifeldy","pb-3"],[1,"m-0","border-bottom","border-primary","row"],[1,"pt-3","col-4","col-lg-2",3,"color"],[3,"value","valueChange"],["value",""],[3,"value",4,"ngFor","ngForOf"],[1,"ms-auto","pt-3","col-4","col-lg-4",3,"color"],["matInput","","maxlength","200","placeholder","Ex. \u79c1",3,"ngModel","keyup.enter","ngModelChange"],["matSuffix",""],[1,"col-12"],[1,"row"],["class","col-12 p-3",4,"ngIf"],["class","col-12",4,"ngIf"],[1,"container","position-sticky","bottom-0"],["showFirstLastButtons","",1,"bg-bifeldy",3,"color","length","pageSizeOptions","page"],[3,"value"],[1,"col-12","p-3"],["appDomChange","",1,"row","px-3"],["class","col-6 col-md-3 col-lg-2 p-2",4,"ngFor","ngForOf"],[1,"col-6","col-md-3","col-lg-2","p-2"],[1,"card","text-center","p-3",2,"cursor","pointer",3,"click"],[1,"card-body","p-0"],[1,"card-title","py-3",2,"font-size","300%"],[1,"position-absolute","top-0","end-0",2,"margin-right","3px","font-size","x-small"],[1,"text-warning"],[1,"text-info"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"h3",3)(5,"mat-form-field",4)(6,"mat-label"),i0.\u0275\u0275text(7,"JLPT"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(8,"mat-select",5),i0.\u0275\u0275listener("valueChange",__name(function($event){return ctx.jlpt=$event},"NihongoJlptSchoolComponent_Template_mat_select_valueChange_8_listener"))("valueChange",__name(function($event){return ctx.changeJlpt($event)},"NihongoJlptSchoolComponent_Template_mat_select_valueChange_8_listener")),i0.\u0275\u0275elementStart(9,"mat-option",6),i0.\u0275\u0275text(10,"Semua"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(11,NihongoJlptSchoolComponent_mat_option_11_Template,2,2,"mat-option",7),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(12,"mat-form-field",4)(13,"mat-label"),i0.\u0275\u0275text(14,"Sekolah"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(15,"mat-select",5),i0.\u0275\u0275listener("valueChange",__name(function($event){return ctx.school=$event},"NihongoJlptSchoolComponent_Template_mat_select_valueChange_15_listener"))("valueChange",__name(function($event){return ctx.changeSchool($event)},"NihongoJlptSchoolComponent_Template_mat_select_valueChange_15_listener")),i0.\u0275\u0275elementStart(16,"mat-option",6),i0.\u0275\u0275text(17,"Semua"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(18,NihongoJlptSchoolComponent_mat_option_18_Template,2,2,"mat-option",7),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(19,"mat-form-field",8)(20,"mat-label"),i0.\u0275\u0275text(21,"Cari ..."),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(22,"input",9),i0.\u0275\u0275listener("keyup.enter",__name(function($event){return ctx.applyFilter($event)},"NihongoJlptSchoolComponent_Template_input_keyup_enter_22_listener"))("ngModelChange",__name(function($event){return ctx.q=$event},"NihongoJlptSchoolComponent_Template_input_ngModelChange_22_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(23,"mat-icon",10),i0.\u0275\u0275text(24,"search"),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(25,"div",11)(26,"div",12),i0.\u0275\u0275template(27,NihongoJlptSchoolComponent_app_no_data_27_Template,1,0,"app-no-data",13),i0.\u0275\u0275template(28,NihongoJlptSchoolComponent_div_28_Template,3,1,"div",14),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(29,"div",15)(30,"mat-paginator",16),i0.\u0275\u0275listener("page",__name(function($event){return ctx.paginatorChanged($event)},"NihongoJlptSchoolComponent_Template_mat_paginator_page_30_listener")),i0.\u0275\u0275elementEnd()()),2&rf&&(i0.\u0275\u0275advance(5),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("value",ctx.jlpt),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pureFunction0(13,_c0)),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("value",ctx.school),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pureFunction0(14,_c1)),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngModel",ctx.q),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngIf",ctx.kanjiData.length<=0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.kanjiData.length>0),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("color","accent")("length",ctx.count)("pageSizeOptions",ctx.pageSizeOptions))},"NihongoJlptSchoolComponent_Template"),directives:[i5.NotificationsComponent,i6.MatFormField,i6.MatLabel,i7.MatSelect,i8.MatOption,i9.NgForOf,i10.MatInput,i11.DefaultValueAccessor,i11.MaxLengthValidator,i11.NgControlStatus,i11.NgModel,i12.MatIcon,i6.MatSuffix,i9.NgIf,i13.NoDataComponent,i14.DomChangeDirective,i15.MatPaginator],styles:[""]})},93346:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NihongoListComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(74202),__webpack_require__2(80855),__webpack_require__2(33e3),__webpack_require__2(52663),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(52663)),i5=tslib_1.__importStar(__webpack_require__2(8616)),i6=tslib_1.__importStar(__webpack_require__2(15694)),i7=tslib_1.__importStar(__webpack_require__2(69808)),i8=tslib_1.__importStar(__webpack_require__2(9224)),i9=tslib_1.__importStar(__webpack_require__2(25245)),i10=tslib_1.__importStar(__webpack_require__2(18757)),i11=tslib_1.__importStar(__webpack_require__2(89741)),i12=tslib_1.__importStar(__webpack_require__2(49933)),i13=tslib_1.__importStar(__webpack_require__2(8921));function NihongoListComponent_div_18_mat_icon_4_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",22),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const t_r3=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(t_r3.icon)}}function NihongoListComponent_div_18_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",15)(1,"mat-card",16)(2,"mat-card-header",17)(3,"div",18),i0.\u0275\u0275template(4,NihongoListComponent_div_18_mat_icon_4_Template,2,1,"mat-icon",19),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"mat-card-title",20)(6,"h3",21),i0.\u0275\u0275text(7),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(8,"mat-card-subtitle",21),i0.\u0275\u0275text(9),i0.\u0275\u0275elementEnd()()()()),2&rf){const t_r3=ctx.$implicit;i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate1("routerLink","/nihongo/",t_r3.url,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275styleProp("background-image","url("+(t_r3.image_url||"")+")"),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",t_r3.icon),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(t_r3.name),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(t_r3.letter)}}function NihongoListComponent_div_19_div_7_mat_icon_4_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",22),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const t_r7=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(t_r7.icon)}}function NihongoListComponent_div_19_div_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",15)(1,"mat-card")(2,"mat-card-header",17)(3,"div",18),i0.\u0275\u0275template(4,NihongoListComponent_div_19_div_7_mat_icon_4_Template,2,1,"mat-icon",19),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"mat-card-title",20)(6,"h3",21),i0.\u0275\u0275text(7),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(8,"mat-card-subtitle",21),i0.\u0275\u0275text(9),i0.\u0275\u0275elementEnd()()()()),2&rf){const t_r7=ctx.$implicit;i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate1("routerLink","/nihongo/",t_r7.url,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275styleProp("background-image","url("+(t_r7.image_url||"")+")"),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",t_r7.icon),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(t_r7.name),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(t_r7.letter)}}function NihongoListComponent_div_19_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",3)(1,"div",4)(2,"h2",5)(3,"b",6),i0.\u0275\u0275text(4,"Latihan Menengah"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",7)(6,"div",8),i0.\u0275\u0275template(7,NihongoListComponent_div_19_div_7_Template,10,6,"div",9),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r1=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngForOf",ctx_r1.testMenengah)}}function NihongoListComponent_div_27_mat_icon_4_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",22),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const t_r10=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(t_r10.icon)}}function NihongoListComponent_div_27_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",15)(1,"mat-card")(2,"mat-card-header",17)(3,"div",18),i0.\u0275\u0275template(4,NihongoListComponent_div_27_mat_icon_4_Template,2,1,"mat-icon",19),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"mat-card-title",20)(6,"h3",21),i0.\u0275\u0275text(7),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(8,"mat-card-subtitle",21),i0.\u0275\u0275text(9),i0.\u0275\u0275elementEnd()()()()),2&rf){const t_r10=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275classMap(t_r10.name.startsWith("JLPT")?"rgb-border":"All Kanji"===t_r10.name?"gradient-border rgb-border":""),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate1("routerLink","/nihongo/",t_r10.url,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275styleProp("background-image","url("+(t_r10.image_url||"")+")"),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",t_r10.icon),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(t_r10.name),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(t_r10.letter)}}__name(NihongoListComponent_div_18_mat_icon_4_Template,"NihongoListComponent_div_18_mat_icon_4_Template"),__name(NihongoListComponent_div_18_Template,"NihongoListComponent_div_18_Template"),__name(NihongoListComponent_div_19_div_7_mat_icon_4_Template,"NihongoListComponent_div_19_div_7_mat_icon_4_Template"),__name(NihongoListComponent_div_19_div_7_Template,"NihongoListComponent_div_19_div_7_Template"),__name(NihongoListComponent_div_19_Template,"NihongoListComponent_div_19_Template"),__name(NihongoListComponent_div_27_mat_icon_4_Template,"NihongoListComponent_div_27_mat_icon_4_Template"),__name(NihongoListComponent_div_27_Template,"NihongoListComponent_div_27_Template");class NihongoListComponent{constructor(router,gs,bs,nihon){this.router=router,this.gs=gs,this.bs=bs,this.nihon=nihon,this.testDasar=[{url:"hiragana",name:"Hiragana",image_url:"/assets/img/nihongo/hiragana.png",icon:null,letter:"~46 Unik"},{url:"katakana",name:"Katakana",image_url:"/assets/img/nihongo/katakana.png",icon:null,letter:"~46 Unik"},{url:"angka",name:"Angka",image_url:null,icon:"plus_one",letter:"~\u221e Unik"}],this.testMenengah=[],this.testLanjutan=[{url:"kelas-1",name:"Kelas 1",image_url:"/assets/img/nihongo/kanji.png",icon:null,letter:"~80 Unik"},{url:"kelas-2",name:"Kelas 2",image_url:"/assets/img/nihongo/kanji.png",icon:null,letter:"~160 Unik"},{url:"kelas-3",name:"Kelas 3",image_url:"/assets/img/nihongo/kanji.png",icon:null,letter:"~200 Unik"},{url:"kelas-4",name:"Kelas 4",image_url:"/assets/img/nihongo/kanji.png",icon:null,letter:"~200 Unik"},{url:"kelas-5",name:"Kelas 5",image_url:"/assets/img/nihongo/kanji.png",icon:null,letter:"~185 Unik"},{url:"kelas-6",name:"Kelas 6",image_url:"/assets/img/nihongo/kanji.png",icon:null,letter:"~181 Unik"},{url:"kelas-lanjutan-1",name:"Lanjutan 1",image_url:"/assets/img/nihongo/kanji.png",icon:null,letter:"~1139 Unik"},{url:"kelas-lanjutan-2",name:"Lanjutan 2",image_url:"/assets/img/nihongo/kanji.png",icon:null,letter:"~349 Unik"},{url:"jlpt-n5",name:"JLPT N5",image_url:"/assets/img/nihongo/kanji.png",icon:null,letter:"~79 Unik"},{url:"jlpt-n4",name:"JLPT N4",image_url:"/assets/img/nihongo/kanji.png",icon:null,letter:"~166 Unik"},{url:"jlpt-n3",name:"JLPT N3",image_url:"/assets/img/nihongo/kanji.png",icon:null,letter:"~367 Unik"},{url:"jlpt-n2",name:"JLPT N2",image_url:"/assets/img/nihongo/kanji.png",icon:null,letter:"~367 Unik"},{url:"jlpt-n1",name:"JLPT N1",image_url:"/assets/img/nihongo/kanji.png",icon:null,letter:"~1231 Unik"},{url:"semua-kanji",name:"All Kanji",image_url:"/assets/img/nihongo/kanji.png",icon:null,letter:"~2494 Unik"}],this.tabData=[{name:"JLPT Roadmap",icon:"pin_drop",type:"html",data:'\n
\n \n \n
\n

Sumber gambar dan informasi: KawaKawa

\n

\u201cJLPT\u201d adalah singkatan dari Japanese-Language Proficiency Test (Tes Kemampuan Bahasa Jepang). JLPT adalah salah satu ujian kecakapan bahasa Jepang internasional yang paling terkenal. Ini memiliki lima level, dengan level lima (secara resmi disebut N5) menjadi yang termudah dan level satu (N1) menjadi yang paling sulit.

\n

JLPT dulu memiliki empat level tetapi sekarang dibagi menjadi lima (N5, N4, N3, N2, dan N1). Level mana yang ingin diambil dibebaskan untuk memilih. Contoh pertanyaan dapat diakses pada halaman New Japanese-Language Proficiency Test Sample Questions.

\n
    \n
  • Untuk lulus N5, perlu mengetahui sekitar 100 kanji dan sekitar 800 kosakata.
  • \n
  • Untuk lulus N4, perlu mengetahui sekitar 300 kanji dan sekitar 1.500 kosakata.
  • \n
  • Untuk lulus N3, perlu mengetahui sekitar 650 kanji dan sekitar 3.700 kosakata.
  • \n
  • Untuk lulus N2, perlu mengetahui sekitar 1.000 kanji dan sekitar 6.000 kosakata.
  • \n
  • Untuk lulus N1, perlu mengetahui sekitar 2.000 kanji dan sekitar 10.000 kosakata.
  • \n
\n

Untuk informasi skoring & penilaian dapat dilihat pada Scoring Sections, Pass or Fail, Score Report.

\n

N5 dan N4 adalah level termudah untuk diselesaikan dalam tes tetapi jika ingin menyelesaikan level yang lebih tinggi seperti N3, N2 dan N1 maka harus menghadiri pusat pembinaan di mana mereka menyediakan bahan pelajaran yang baik dan memiliki pelatih berpengalaman akan membantu belajar bahasa jepang dengan mudah.

\n

Informasi lebih lanjut, silahkan kunjungi https://www.jlpt.jp/e/index.html.

\n '}],this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.subsAllKategori=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.gs.isBrowser&&this.getKategori()}ngOnDestroy(){var _a;null===(_a=this.subsAllKategori)||void 0===_a||_a.unsubscribe()}getKategori(){this.bs.busy(),this.subsAllKategori=this.nihon.getAllKategori().subscribe({next:res=>{this.gs.log("[BELAJAR_KANA_KATEGORI_SUCCESS]",res);const x=[];for(const r of res.results)x.push({url:`latihan-${r.id}`,name:r.name,image_url:null,icon:"switch_access_shortcut",letter:`~${r.jumlah} Unik`});this.testMenengah=x,this.bs.idle()},error:err=>{this.gs.log("[BELAJAR_KANA_KATEGORI_ERROR]",err,"error"),this.bs.idle()}})}getBook(){}openModule(data){this.gs.log("[NIHONGO_CLICK_MODUL]",data),this.router.navigateByUrl(`/nihongo/${data.id}`)}onPaginatorClicked(data){this.gs.log("[NIHONGO_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getBook()}onServerSideFilter(data){this.gs.log("[NIHONGO_ENTER_FILTER]",data),this.q=data,this.getBook()}onServerSideOrder(data){this.gs.log("[NIHONGO_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,this.order=data.direction,this.getBook()}}__name(NihongoListComponent,"NihongoListComponent"),exports2.NihongoListComponent=NihongoListComponent,NihongoListComponent.\u0275fac=__name(function(t){return new(t||NihongoListComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.NihongoService))},"NihongoListComponent_Factory"),NihongoListComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:NihongoListComponent,selectors:[["app-nihongo-list"]],decls:37,vars:6,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-lg-8","col-xl-9"],[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12"],[1,"row","px-3"],["class","col-12 col-sm-6 col-md-4 col-lg-6 col-xl-3 p-2",4,"ngFor","ngForOf"],["class","row",4,"ngIf"],[1,"row","mt-3"],[3,"tabData","count","serverSide","tableRowClicked","paginatorClicked","serverSideFilter","serverSideOrder"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],[1,"col-12","col-sm-6","col-md-4","col-lg-6","col-xl-3","p-2"],[1,"gradient-border"],[1,"me-0",2,"cursor","pointer",3,"routerLink"],["mat-card-avatar","",2,"background-size","cover","background-color","whitesmoke","border-radius","0"],["style","font-size: 300%; color: black",4,"ngIf"],[1,"text-warning","mb-1",2,"cursor","pointer"],[1,"mb-0"],[2,"font-size","300%","color","black"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h2",5)(7,"b",6),i0.\u0275\u0275text(8,"Belajar Bahasa Jepang"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(9,"div",7),i0.\u0275\u0275element(10,"app-banner-nihongo"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(11,"div",3)(12,"div",4)(13,"h2",5)(14,"b",6),i0.\u0275\u0275text(15,"Latihan Dasar"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(16,"div",7)(17,"div",8),i0.\u0275\u0275template(18,NihongoListComponent_div_18_Template,10,6,"div",9),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(19,NihongoListComponent_div_19_Template,8,1,"div",10),i0.\u0275\u0275elementStart(20,"div",3)(21,"div",4)(22,"h2",5)(23,"b",6),i0.\u0275\u0275text(24,"Latihan Lanjutan"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(25,"div",7)(26,"div",8),i0.\u0275\u0275template(27,NihongoListComponent_div_27_Template,10,9,"div",9),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(28,"div",11)(29,"div",7)(30,"app-material-tab",12),i0.\u0275\u0275listener("tableRowClicked",__name(function($event){return ctx.openModule($event)},"NihongoListComponent_Template_app_material_tab_tableRowClicked_30_listener"))("paginatorClicked",__name(function($event){return ctx.onPaginatorClicked($event)},"NihongoListComponent_Template_app_material_tab_paginatorClicked_30_listener"))("serverSideFilter",__name(function($event){return ctx.onServerSideFilter($event)},"NihongoListComponent_Template_app_material_tab_serverSideFilter_30_listener"))("serverSideOrder",__name(function($event){return ctx.onServerSideOrder($event)},"NihongoListComponent_Template_app_material_tab_serverSideOrder_30_listener")),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(31,"div",13)(32,"div",14)(33,"div",7),i0.\u0275\u0275element(34,"app-leaderboard")(35,"app-banner-discord")(36,"app-stats-server"),i0.\u0275\u0275elementEnd()()()()()),2&rf&&(i0.\u0275\u0275advance(18),i0.\u0275\u0275property("ngForOf",ctx.testDasar),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.testMenengah.length>0),i0.\u0275\u0275advance(8),i0.\u0275\u0275property("ngForOf",ctx.testLanjutan),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("tabData",ctx.tabData)("count",ctx.count)("serverSide",!0))},"NihongoListComponent_Template"),directives:[i5.NotificationsComponent,i6.BannerNihongoComponent,i7.NgForOf,i8.MatCard,i8.MatCardHeader,i1.RouterLink,i8.MatCardAvatar,i7.NgIf,i9.MatIcon,i8.MatCardTitle,i8.MatCardSubtitle,i10.MaterialTabComponent,i11.LeaderboardComponent,i12.BannerDiscordComponent,i13.StatsServerComponent],styles:[""]})},17854:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NihongoTesComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(74202),__webpack_require__2(80855),__webpack_require__2(28381),__webpack_require__2(96925),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(96925)),i3=tslib_1.__importStar(__webpack_require__2(80855)),i4=tslib_1.__importStar(__webpack_require__2(28381)),i5=tslib_1.__importStar(__webpack_require__2(8616)),i6=tslib_1.__importStar(__webpack_require__2(69808)),i7=tslib_1.__importStar(__webpack_require__2(91240));function NihongoTesComponent_app_quiz_2_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"app-quiz",2),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("question",ctx_r0.GS.routerData.question)("options",ctx_r0.GS.routerData.options)}}__name(NihongoTesComponent_app_quiz_2_Template,"NihongoTesComponent_app_quiz_2_Template");class NihongoTesComponent{constructor(router,toast,gs,ss){this.router=router,this.toast=toast,this.gs=gs,this.ss=ss,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}ngOnInit(){var _a;this.gs.isBrowser&&((null===(_a=this.ss.mySocket)||void 0===_a?void 0:_a.id)||(this.toast.warning("Tidak Dapat Terhubung Melalui Web Socket","Gagal Menyambung Ke Jaringan!",null,!0),this.router.navigateByUrl("/nihongo")),this.gs.isDarkMode||this.gs.toggleDarkTheme())}}__name(NihongoTesComponent,"NihongoTesComponent"),exports2.NihongoTesComponent=NihongoTesComponent,NihongoTesComponent.\u0275fac=__name(function(t){return new(t||NihongoTesComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.ToastService),i0.\u0275\u0275directiveInject(i3.GlobalService),i0.\u0275\u0275directiveInject(i4.StatsServerService))},"NihongoTesComponent_Factory"),NihongoTesComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:NihongoTesComponent,selectors:[["app-tes"]],decls:3,vars:1,consts:[[1,"container"],[3,"question","options",4,"ngIf"],[3,"question","options"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0),i0.\u0275\u0275template(2,NihongoTesComponent_app_quiz_2_Template,1,2,"app-quiz",1),i0.\u0275\u0275elementEnd()),2&rf&&(i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx.GS.routerData.question&&ctx.GS.routerData.options))},"NihongoTesComponent_Template"),directives:[i5.NotificationsComponent,i6.NgIf,i7.QuizComponent],styles:[""]})},24440:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NihongoModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),angular_editor_1=__webpack_require__2(29345),ngx_material_file_input_1=__webpack_require__2(21385),constants_1=__webpack_require__2(26271),req_res_model_1=__webpack_require__2(14249),roles_guard_1=__webpack_require__2(2777),shared_material_module_1=__webpack_require__2(20210),nihongo_list_component_1=__webpack_require__2(93346),nihongo_belajar_component_1=__webpack_require__2(99864),nihongo_jlpt_school_component_1=__webpack_require__2(57959),nihongo_tes_component_1=__webpack_require__2(17854),notifications_module_1=__webpack_require__2(88613),banner_discord_module_1=__webpack_require__2(54854),stats_server_module_1=__webpack_require__2(10669),banner_nihongo_module_1=__webpack_require__2(50913),material_tab_module_1=__webpack_require__2(66436),right_panel_module_1=__webpack_require__2(85116),quiz_module_1=__webpack_require__2(39369),material_table_module_1=__webpack_require__2(617),leaderboard_module_1=__webpack_require__2(74920),no_data_module_1=__webpack_require__2(12438),custom_directive_module_1=__webpack_require__2(17956),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:nihongo_list_component_1.NihongoListComponent},{path:"belajar",component:nihongo_belajar_component_1.NihongoBelajarComponent,data:{title:"Huruf, Angka, Warna, Buah & Sayur, Dan Lingkungan Sekitar",description:"Mengenal Sambil Belajar Berbagai Macam",keywords:"Sesuatu Yang Sering Kita Temukan",question:null,options:null}},{path:"kanji",component:nihongo_jlpt_school_component_1.NihongoJlptSchoolComponent,data:{title:"Huruf Kanji",description:"Mengenal Huruf Kanji Sesuai Rank JLPT & Sekolah",keywords:"Kanji",question:null,options:null}},{path:"hiragana",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf Hiragana",description:"Uji Kemampuan Huruf Hiragana",keywords:"Hiragana",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"hiragana",options:"romaji"}},{path:"katakana",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf Katakana",description:"Uji Kemampuan Huruf Katakana",keywords:"Katakana",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"katakana",options:"romaji"}},{path:"jlpt-n5",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf N5",description:"Uji Kemampuan Huruf N5",keywords:"N5",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"character",options:"translate"}},{path:"jlpt-n4",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf N4",description:"Uji Kemampuan Huruf N4",keywords:"N4",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"character",options:"translate"}},{path:"jlpt-n3",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf N3",description:"Uji Kemampuan Huruf N3",keywords:"N3",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"character",options:"translate"}},{path:"jlpt-n2",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf N2",description:"Uji Kemampuan Huruf N2",keywords:"N2",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"character",options:"translate"}},{path:"jlpt-n1",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf N1",description:"Uji Kemampuan Huruf N1",keywords:"N1",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"character",options:"translate"}},{path:"kelas-1",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf Kelas 1",description:"Uji Kemampuan Huruf Kelas 1",keywords:"Kelas 1",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"character",options:"translate"}},{path:"kelas-2",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf Kelas 2",description:"Uji Kemampuan Huruf Kelas 2",keywords:"Kelas 2",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"character",options:"translate"}},{path:"kelas-3",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf Kelas 3",description:"Uji Kemampuan Huruf Kelas 3",keywords:"Kelas 3",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"character",options:"translate"}},{path:"kelas-4",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf Kelas 4",description:"Uji Kemampuan Huruf Kelas 4",keywords:"Kelas 4",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"character",options:"translate"}},{path:"kelas-5",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf Kelas 5",description:"Uji Kemampuan Huruf Kelas 5",keywords:"Kelas 5",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"character",options:"translate"}},{path:"kelas-6",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf Kelas 6",description:"Uji Kemampuan Huruf Kelas 6",keywords:"Kelas 6",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"character",options:"translate"}},{path:"kelas-lanjutan-1",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf Lanjutan 1",description:"Uji Kemampuan Huruf Lanjutan 1",keywords:"Lanjutan 1",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"character",options:"translate"}},{path:"kelas-lanjutan-2",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf Lanjutan 2",description:"Uji Kemampuan Huruf Lanjutan 2",keywords:"Lanjutan 2",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"character",options:"translate"}},{path:"semua-kanji",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Huruf Semua Kanji",description:"Uji Kemampuan Huruf Semua Kanji",keywords:"Semua Kanji",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"character",options:"translate"}},{path:":category",component:nihongo_tes_component_1.NihongoTesComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"Tes Kategori Lainnya",description:"Uji Kemampuan Kategori Lainnya",keywords:"Kategori Lainnya",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER],question:"image_url",options:"kana"}}]);class NihongoModule{}__name(NihongoModule,"NihongoModule"),exports2.NihongoModule=NihongoModule,NihongoModule.\u0275fac=__name(function(t){return new(t||NihongoModule)},"NihongoModule_Factory"),NihongoModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:NihongoModule}),NihongoModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),forms_1.FormsModule,forms_1.ReactiveFormsModule,notifications_module_1.NotificationsModule,banner_discord_module_1.BannerDiscordModule,banner_nihongo_module_1.BannerNihongoModule,material_tab_module_1.MaterialTabModule,shared_material_module_1.SharedMaterialModule,ngx_material_file_input_1.MaterialFileInputModule,angular_editor_1.AngularEditorModule,stats_server_module_1.StatsServerModule,right_panel_module_1.RightPanelModule,quiz_module_1.QuizModule,material_table_module_1.MaterialTableModule,custom_directive_module_1.CustomDirectivesModule,leaderboard_module_1.LeaderboardModule,no_data_module_1.NoDataModule]]})},23996:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NotFoundComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(74202),__webpack_require__2(80855),__webpack_require__2(75101),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(75101));class NotFoundComponent{constructor(router,activatedRoute,gs,ssr){this.router=router,this.activatedRoute=activatedRoute,this.gs=gs,this.ssr=ssr,this.returnUrl="/",this.timedOut=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1,this.ssr.setNotFound()}ngOnInit(){this.gs.isBrowser&&(this.returnUrl=this.activatedRoute.snapshot.queryParamMap.get("returnUrl")||"/",this.returnUrl&&(this.timedOut=setTimeout(()=>{this.router.navigateByUrl(this.returnUrl)},5e3)))}ngOnDestroy(){this.timedOut&&(clearTimeout(this.timedOut),this.timedOut=null)}}__name(NotFoundComponent,"NotFoundComponent"),exports2.NotFoundComponent=NotFoundComponent,NotFoundComponent.\u0275fac=__name(function(t){return new(t||NotFoundComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.ServerResponseService))},"NotFoundComponent_Factory"),NotFoundComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:NotFoundComponent,selectors:[["app-not-found"]],decls:10,vars:0,consts:[[1,"h-100","row","align-items-center","m-0"],[1,"container","not-found-banner","p-0"],[1,"p-3","m-3"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h1",2),i0.\u0275\u0275text(3,"Whoops, Terjadi Kesalahan!"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"h1",2),i0.\u0275\u0275text(5,"Atau Mungkin Juga .."),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"h1",2),i0.\u0275\u0275text(7,"Halaman Yang Kamu Cari Tidak Tersedia (?)"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(8,"h1",2),i0.\u0275\u0275text(9,"\xaf\\_(\u30c4)_/\xaf"),i0.\u0275\u0275elementEnd()()())},"NotFoundComponent_Template"),styles:['@import"https://fonts.googleapis.com/css2?family=Knewave";h1[_ngcontent-%COMP%]{color:red;font-family:Knewave,cursive;text-shadow:5px 5px whitesmoke;font-size:xx-large}.not-found-banner[_ngcontent-%COMP%]{height:100%;background-size:cover;background-position:75% 50%;background-image:url(/assets/img/404/not-found.png)}']})},63218:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NotFoundModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),not_found_component_1=__webpack_require__2(23996),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:not_found_component_1.NotFoundComponent}]);class NotFoundModule{}__name(NotFoundModule,"NotFoundModule"),exports2.NotFoundModule=NotFoundModule,NotFoundModule.\u0275fac=__name(function(t){return new(t||NotFoundModule)},"NotFoundModule_Factory"),NotFoundModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:NotFoundModule}),NotFoundModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes)]]})},99371:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.PrivacyPolicyComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=__webpack_require__2(15934),i0=(__webpack_require__2(33e3),__webpack_require__2(80855),__webpack_require__2(17635),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(33e3)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(17635)),i4=tslib_1.__importStar(__webpack_require__2(69808)),i5=tslib_1.__importStar(__webpack_require__2(11861));function PrivacyPolicyComponent_div_0_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h4",5),i0.\u0275\u0275text(5),i0.\u0275\u0275pipe(6,"date"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(7,"div",6),i0.\u0275\u0275pipe(8,"safeInnerHtml"),i0.\u0275\u0275elementEnd()()()()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1("Updated: ",i0.\u0275\u0275pipeBind2(6,2,ctx_r0.lastUpdated,"d MMMM y, hh:mm:ss a z"),""),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("innerHTML",i0.\u0275\u0275pipeBind1(8,5,ctx_r0.htmlContent),i0.\u0275\u0275sanitizeHtml)}}__name(PrivacyPolicyComponent_div_0_Template,"PrivacyPolicyComponent_div_0_Template");class PrivacyPolicyComponent{constructor(bs,gs,info){this.bs=bs,this.gs=gs,this.info=info,this.lastUpdated=new Date,this.htmlContent=`\n
\n \n
\n
\n

Privacy Policy

\n

\n Your privacy is critically important to us.\n

\n
\n `,this.subsPrivacyPolicy=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.bs.busy(),this.subsPrivacyPolicy=this.info.getInfo("PRIVACY-POLICY").subscribe({next:res=>{this.gs.log("[PRIVACY_POLICY_SUCCESS]",res),this.bs.idle(),this.htmlContent=res.result.content,this.lastUpdated=new Date(res.result.updated_at)},error:err=>{this.gs.log("[PRIVACY_POLICY_ERROR]",err,"error"),this.bs.idle()}})}ngOnDestroy(){var _a;null===(_a=this.subsPrivacyPolicy)||void 0===_a||_a.unsubscribe()}}__name(PrivacyPolicyComponent,"PrivacyPolicyComponent"),exports2.PrivacyPolicyComponent=PrivacyPolicyComponent,PrivacyPolicyComponent.\u0275fac=__name(function(t){return new(t||PrivacyPolicyComponent)(i0.\u0275\u0275directiveInject(i1.BusyService),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.InformationService))},"PrivacyPolicyComponent_Factory"),PrivacyPolicyComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:PrivacyPolicyComponent,selectors:[["app-privacy-policy"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12","align-items-center"],[1,"text-center","my-3","mx-auto"],[1,"text-start"],[3,"innerHTML"]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275template(0,PrivacyPolicyComponent_div_0_Template,9,7,"div",0),2&rf&&i0.\u0275\u0275property("ngIf",ctx.htmlContent)},"PrivacyPolicyComponent_Template"),directives:[i4.NgIf],pipes:[i4.DatePipe,i5.SafeInnerHtmlPipe],styles:[""]})},18999:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.PrivacyPolicyModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),custom_pipe_module_1=__webpack_require__2(67355),privacy_policy_component_1=__webpack_require__2(99371),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:privacy_policy_component_1.PrivacyPolicyComponent}]);class PrivacyPolicyModule{}__name(PrivacyPolicyModule,"PrivacyPolicyModule"),exports2.PrivacyPolicyModule=PrivacyPolicyModule,PrivacyPolicyModule.\u0275fac=__name(function(t){return new(t||PrivacyPolicyModule)},"PrivacyPolicyModule_Factory"),PrivacyPolicyModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:PrivacyPolicyModule}),PrivacyPolicyModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),custom_pipe_module_1.CustomPipeModule]]})},30300:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RegisterComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),environment_1=(__webpack_require__2(74202),__webpack_require__2(15934)),constants_1=__webpack_require__2(26271),i0=(__webpack_require__2(80855),__webpack_require__2(4137),__webpack_require__2(33e3),__webpack_require__2(55393),__webpack_require__2(38379),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(93075)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(74202)),i4=tslib_1.__importStar(__webpack_require__2(33e3)),i5=tslib_1.__importStar(__webpack_require__2(4137)),i6=tslib_1.__importStar(__webpack_require__2(55393)),i7=tslib_1.__importStar(__webpack_require__2(38379)),i8=tslib_1.__importStar(__webpack_require__2(69808)),i9=tslib_1.__importStar(__webpack_require__2(3290)),i10=tslib_1.__importStar(__webpack_require__2(47423)),i11=tslib_1.__importStar(__webpack_require__2(25245));function RegisterComponent_div_0_form_7_strong_13_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Username Tidak Boleh Kosong "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function RegisterComponent_div_0_form_7_strong_14_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Username Minimal 8 Huruf "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function RegisterComponent_div_0_form_7_strong_15_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Username Hanya Boleh Huruf Kecil Dan Angka "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function RegisterComponent_div_0_form_7_strong_17_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r5=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r5.usernameUsed)}}function RegisterComponent_div_0_form_7_strong_24_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Nama Tidak Boleh Kosong "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function RegisterComponent_div_0_form_7_strong_25_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Nama Tidak Valid "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function RegisterComponent_div_0_form_7_strong_32_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Email Tidak Boleh Kosong "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function RegisterComponent_div_0_form_7_strong_33_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Email Tidak Valid "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function RegisterComponent_div_0_form_7_strong_35_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r10=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",ctx_r10.emailUsed," ")}}function RegisterComponent_div_0_form_7_strong_42_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Password Tidak Boleh Kosong "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function RegisterComponent_div_0_form_7_strong_43_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Password Minimal 8 Huruf "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function RegisterComponent_div_0_form_7_strong_44_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Password Hanya Boleh Huruf Standar Papan Ketik "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function RegisterComponent_div_0_form_7_Template(rf,ctx){if(1&rf){const _r16=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",10),i0.\u0275\u0275listener("ngSubmit",__name(function(){return i0.\u0275\u0275restoreView(_r16),i0.\u0275\u0275nextContext(2).onClickedSubmit()},"RegisterComponent_div_0_form_7_Template_form_ngSubmit_0_listener")),i0.\u0275\u0275elementStart(1,"div",11),i0.\u0275\u0275element(2,"img",12),i0.\u0275\u0275elementStart(3,"h1",13),i0.\u0275\u0275text(4,'Hai, Selamat Datang! >_<"'),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"p",14),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(7,"div",15)(8,"label",16),i0.\u0275\u0275text(9,"Nama Pengguna"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(10,"div",17),i0.\u0275\u0275element(11,"input",18),i0.\u0275\u0275elementStart(12,"span",19),i0.\u0275\u0275template(13,RegisterComponent_div_0_form_7_strong_13_Template,3,0,"strong",20),i0.\u0275\u0275template(14,RegisterComponent_div_0_form_7_strong_14_Template,3,0,"strong",20),i0.\u0275\u0275template(15,RegisterComponent_div_0_form_7_strong_15_Template,3,0,"strong",20),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(16,"small",21),i0.\u0275\u0275template(17,RegisterComponent_div_0_form_7_strong_17_Template,2,1,"strong",20),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(18,"div",15)(19,"label",22),i0.\u0275\u0275text(20,"Nama Lengkap"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(21,"div",17),i0.\u0275\u0275element(22,"input",23),i0.\u0275\u0275elementStart(23,"span",19),i0.\u0275\u0275template(24,RegisterComponent_div_0_form_7_strong_24_Template,3,0,"strong",20),i0.\u0275\u0275template(25,RegisterComponent_div_0_form_7_strong_25_Template,3,0,"strong",20),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(26,"div",15)(27,"label",24),i0.\u0275\u0275text(28,"Alamat Surel"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(29,"div",17),i0.\u0275\u0275element(30,"input",25),i0.\u0275\u0275elementStart(31,"span",19),i0.\u0275\u0275template(32,RegisterComponent_div_0_form_7_strong_32_Template,3,0,"strong",20),i0.\u0275\u0275template(33,RegisterComponent_div_0_form_7_strong_33_Template,3,0,"strong",20),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(34,"small",21),i0.\u0275\u0275template(35,RegisterComponent_div_0_form_7_strong_35_Template,3,1,"strong",20),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(36,"div",15)(37,"label",26),i0.\u0275\u0275text(38,"Kata Sandi"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(39,"div",17),i0.\u0275\u0275element(40,"input",27),i0.\u0275\u0275elementStart(41,"span",19),i0.\u0275\u0275template(42,RegisterComponent_div_0_form_7_strong_42_Template,3,0,"strong",20),i0.\u0275\u0275template(43,RegisterComponent_div_0_form_7_strong_43_Template,3,0,"strong",20),i0.\u0275\u0275template(44,RegisterComponent_div_0_form_7_strong_44_Template,3,0,"strong",20),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(45,"div",15)(46,"div",28)(47,"div",29)(48,"input",30),i0.\u0275\u0275listener("change",__name(function(){return i0.\u0275\u0275restoreView(_r16),i0.\u0275\u0275nextContext(2).openAturanTatib()},"RegisterComponent_div_0_form_7_Template_input_change_48_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(49,"label",31),i0.\u0275\u0275text(50," Saya Telah Membaca & Setuju Dengan "),i0.\u0275\u0275elementStart(51,"u",32),i0.\u0275\u0275text(52," Aturan & Tata Tertib "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(53," Yang Ada "),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(54,"div",15)(55,"div",28)(56,"div",29)(57,"input",33),i0.\u0275\u0275listener("change",__name(function(){return i0.\u0275\u0275restoreView(_r16),i0.\u0275\u0275nextContext(2).openPrivacyPolicy()},"RegisterComponent_div_0_form_7_Template_input_change_57_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(58,"label",34),i0.\u0275\u0275text(59," Saya Telah Membaca & Setuju Dengan "),i0.\u0275\u0275elementStart(60,"u",32),i0.\u0275\u0275text(61," Kebijakan Privasi "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(62," Yang Ada "),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(63,"div",15)(64,"div",28)(65,"re-captcha",35,36),i0.\u0275\u0275listener("resolved",__name(function($event){i0.\u0275\u0275restoreView(_r16);const _r14=i0.\u0275\u0275reference(66);return i0.\u0275\u0275nextContext(2).captcha($event,_r14)},"RegisterComponent_div_0_form_7_Template_re_captcha_resolved_65_listener")),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(67,"div",37)(68,"div",38)(69,"div",39)(70,"div",40)(71,"button",41),i0.\u0275\u0275text(72," Daftar "),i0.\u0275\u0275elementStart(73,"mat-icon",42),i0.\u0275\u0275text(74,"emoji_people"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(75,"div",40)(76,"a",43),i0.\u0275\u0275text(77," Masuk ~ "),i0.\u0275\u0275elementEnd()()()()()()}if(2&rf){const ctx_r1=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("formGroup",ctx_r1.fg),i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate1("src","",ctx_r1.ENV.baseUrl,"/assets/img/logo/register.png",i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate(ctx_r1.registerInfo),i0.\u0275\u0275advance(5),i0.\u0275\u0275classMapInterpolate1("text-bifeldy form-control ",!ctx_r1.fg.get("username").valid&&ctx_r1.fg.get("username").touched?"is-invalid":"",""),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("username").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("username").hasError("minlength")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("username").hasError("pattern")),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r1.usernameUsed),i0.\u0275\u0275advance(5),i0.\u0275\u0275classMapInterpolate1("text-bifeldy form-control ",!ctx_r1.fg.get("name").valid&&ctx_r1.fg.get("name").touched?"is-invalid":"",""),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("name").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("name").hasError("pattern")),i0.\u0275\u0275advance(5),i0.\u0275\u0275classMapInterpolate1("text-bifeldy form-control ",!ctx_r1.fg.get("email").valid&&ctx_r1.fg.get("email").touched?"is-invalid":"",""),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("email").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("email").hasError("email")||ctx_r1.fg.get("email").hasError("pattern")),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r1.emailUsed),i0.\u0275\u0275advance(5),i0.\u0275\u0275classMapInterpolate1("text-bifeldy form-control ",!ctx_r1.fg.get("password").valid&&ctx_r1.fg.get("password").touched?"is-invalid":"",""),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("password").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("password").hasError("minlength")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.fg.get("password").hasError("pattern")),i0.\u0275\u0275advance(21),i0.\u0275\u0275property("siteKey",ctx_r1.G_CAPTCHA_SITE_KEY),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("disabled",ctx_r1.submitted||ctx_r1.fg.invalid||!1===ctx_r1.fg.get("agree_tatib").value||!1===ctx_r1.fg.get("agree_pp").value),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r1.submitted)}}__name(RegisterComponent_div_0_form_7_strong_13_Template,"RegisterComponent_div_0_form_7_strong_13_Template"),__name(RegisterComponent_div_0_form_7_strong_14_Template,"RegisterComponent_div_0_form_7_strong_14_Template"),__name(RegisterComponent_div_0_form_7_strong_15_Template,"RegisterComponent_div_0_form_7_strong_15_Template"),__name(RegisterComponent_div_0_form_7_strong_17_Template,"RegisterComponent_div_0_form_7_strong_17_Template"),__name(RegisterComponent_div_0_form_7_strong_24_Template,"RegisterComponent_div_0_form_7_strong_24_Template"),__name(RegisterComponent_div_0_form_7_strong_25_Template,"RegisterComponent_div_0_form_7_strong_25_Template"),__name(RegisterComponent_div_0_form_7_strong_32_Template,"RegisterComponent_div_0_form_7_strong_32_Template"),__name(RegisterComponent_div_0_form_7_strong_33_Template,"RegisterComponent_div_0_form_7_strong_33_Template"),__name(RegisterComponent_div_0_form_7_strong_35_Template,"RegisterComponent_div_0_form_7_strong_35_Template"),__name(RegisterComponent_div_0_form_7_strong_42_Template,"RegisterComponent_div_0_form_7_strong_42_Template"),__name(RegisterComponent_div_0_form_7_strong_43_Template,"RegisterComponent_div_0_form_7_strong_43_Template"),__name(RegisterComponent_div_0_form_7_strong_44_Template,"RegisterComponent_div_0_form_7_strong_44_Template"),__name(RegisterComponent_div_0_form_7_Template,"RegisterComponent_div_0_form_7_Template");const _c0=__name(function(a2){return{"background-position":"center","background-size":"cover","background-image":a2}},"_c0");function RegisterComponent_div_0_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"div",7),i0.\u0275\u0275template(7,RegisterComponent_div_0_form_7_Template,78,30,"form",8),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275element(8,"div",9),i0.\u0275\u0275elementEnd()()()()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.fg),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngStyle",i0.\u0275\u0275pureFunction1(2,_c0,"url("+ctx_r0.registerImg+")"))}}__name(RegisterComponent_div_0_Template,"RegisterComponent_div_0_Template");class RegisterComponent{constructor(fb,gs,router,bs,activatedRoute,as,ds,cs){this.fb=fb,this.gs=gs,this.router=router,this.bs=bs,this.activatedRoute=activatedRoute,this.as=as,this.ds=ds,this.cs=cs,this.usernameUsed=null,this.emailUsed=null,this.captchaRef=null,this.submitted=!1,this.returnUrl="/",this.registerImg="/assets/img/login-register.png",this.registerInfo="Ayo bergabung dan masuk dalam komunitas~",this.subsUser=null,this.subsRegister=null,this.subsVerify=null,this.subsDialog=null,this.subsResendActivation=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnDestroy(){var _a,_b,_c,_d,_e;null===(_a=this.subsRegister)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsVerify)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsUser)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsDialog)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsResendActivation)||void 0===_e||_e.unsubscribe()}ngOnInit(){this.returnUrl=this.activatedRoute.snapshot.queryParamMap.get("returnUrl")||"/",this.gs.isBrowser&&(this.subsUser=this.as.currentUser.subscribe({next:user=>{user?this.router.navigateByUrl(this.returnUrl):this.initForm()}}))}get G_CAPTCHA_SITE_KEY(){return constants_1.CONSTANTS.gCaptchaSiteKey}get ENV(){return environment_1.environment}get registerFormVal(){return this.fg.controls}initForm(){this.fg=this.fb.group({username:[null,[forms_1.Validators.required,forms_1.Validators.minLength(8),forms_1.Validators.pattern("^[a-z0-9]+$")]],name:[null,[forms_1.Validators.required,forms_1.Validators.pattern("^[a-zA-Z. ]+$")]],email:[null,[forms_1.Validators.required,forms_1.Validators.email,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEmail)]],password:[null,[forms_1.Validators.required,forms_1.Validators.minLength(8),forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]],agree_tatib:[null,[forms_1.Validators.required]],agree_pp:[null,[forms_1.Validators.required]],"g-recaptcha-response":[null,[forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]]})}onClickedSubmit(){if(this.bs.busy(),this.submitted=!0,this.registerInfo="Harap Menunggu ...",this.usernameUsed=null,this.emailUsed=null,this.gs.log("[REGISTER_FORM_REQUEST]",this.fg.value),this.fg.invalid)return this.registerInfo="Periksa Dan Isi Kembali Data!",this.submitted=!1,void this.bs.idle();this.fg.valid&&(this.submitted=!0,this.subsRegister=this.as.register({username:this.fg.value.username,name:this.fg.value.name,email:this.fg.value.email,password:this.cs.hashPassword(this.fg.value.password),agree_tatib:this.fg.value.agree_tatib,agree_pp:this.fg.value.agree_pp,"g-recaptcha-response":this.fg.value["g-recaptcha-response"]}).subscribe({next:res=>{this.gs.log("[REGISTER_FORM_SUCCESS]",res),this.bs.idle(),this.submitted=!1,this.captchaRef.reset(),this.registerInfo=res.info,this.activationDialog(res)},error:err=>{var _a;this.gs.log("[REGISTER_FORM_ERROR]",err,"error"),this.bs.idle(),this.submitted=!1,this.captchaRef.reset(),this.registerInfo=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info,this.usernameUsed=err.result.username,this.emailUsed=err.result.email}}))}activationDialog(res){this.subsDialog=this.ds.openInfoDialog({data:{title:res.result.title,htmlMessage:res.result.message,confirmText:"Kirim Ulang Email",infoText:res.result.id}}).afterClosed().subscribe({next:re=>{this.gs.log("[INFO_DIALOG_CLOSED]",re),!0===re&&(this.bs.busy(),this.subsResendActivation=this.as.resendActivation(res.result.id).subscribe({next:success=>{this.gs.log("[RESEND_ACTIVATION_SUCCESS]",success),this.bs.idle(),this.activationDialog(success)},error:error=>{this.gs.log("[RESEND_ACTIVATION_ERROR]",error,"error"),this.bs.idle()}})),this.subsDialog.unsubscribe()}})}captcha(captchaResponse,captchaRef){this.gs.log(`[GOOGLE_CAPTCHA] ${captchaResponse}`),captchaResponse?(this.captchaRef=captchaRef,this.fg.controls["g-recaptcha-response"].patchValue(captchaResponse)):this.fg.value["g-recaptcha-response"]&&this.fg.controls["g-recaptcha-response"].patchValue(null)}openAturanTatib(){var _this=this;return _asyncToGenerator(function*(){if(_this.fg.value.agree_tatib){const defaultData={id:"ATURAN-TATA-TERTIB",data:{title:"Aturan Dan Tata Tertib Komunitas",htmlMessage:"Gagal Memuat Aturan Dan Tata Tertib Komunitas",confirmText:"Ok, Saya Mengerti!",cancelText:null},disableClose:!1,maxWidth:_this.ds.maxWidth};_this.subsDialog=(yield _this.ds.fetchInformationRegisterMode(defaultData,!0)).afterClosed().subscribe({next:re=>{_this.gs.log("[ATURAN_TATA_TERTIB_DIALOG_CLOSED]",re),_this.fg.controls.agree_tatib.patchValue(re),_this.subsDialog.unsubscribe()}})}})()}openPrivacyPolicy(){var _this2=this;return _asyncToGenerator(function*(){if(_this2.fg.value.agree_pp){const defaultData={id:"PRIVACY-POLICY",data:{title:"Kebijakan Privasi",htmlMessage:"Gagal Memuat Aturan Dan Tata Tertib Komunitas",confirmText:"Ok, Saya Mengerti!",cancelText:null},disableClose:!1,maxWidth:_this2.ds.maxWidth};_this2.subsDialog=(yield _this2.ds.fetchInformationRegisterMode(defaultData,!0)).afterClosed().subscribe({next:re=>{_this2.gs.log("[PRIVACY_POLICY_DIALOG_CLOSED]",re),_this2.fg.controls.agree_pp.patchValue(re),_this2.subsDialog.unsubscribe()}})}})()}}__name(RegisterComponent,"RegisterComponent"),exports2.RegisterComponent=RegisterComponent,RegisterComponent.\u0275fac=__name(function(t){return new(t||RegisterComponent)(i0.\u0275\u0275directiveInject(i1.FormBuilder),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.Router),i0.\u0275\u0275directiveInject(i4.BusyService),i0.\u0275\u0275directiveInject(i3.ActivatedRoute),i0.\u0275\u0275directiveInject(i5.AuthService),i0.\u0275\u0275directiveInject(i6.DialogService),i0.\u0275\u0275directiveInject(i7.CryptoService))},"RegisterComponent_Factory"),RegisterComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:RegisterComponent,selectors:[["app-register"]],decls:1,vars:1,consts:[["class","container-fluid align-items-center w-100 h-100","style","background-size: cover; background-repeat: repeat; background-position: center; transform: rotateY(180deg);",4,"ngIf"],[1,"container-fluid","align-items-center","w-100","h-100",2,"background-size","cover","background-repeat","repeat","background-position","center","transform","rotateY(180deg)"],[1,"row","align-items-center","h-100","m-0",2,"transform","rotateY(180deg)"],[1,"col-12","col-md-10","m-auto","py-3"],[1,"row","rgb-border","rounded","bg-bifeldy"],[1,"col-lg-7","col-md-9","me-auto","p-0"],[1,"card","bg-transparent","border-0"],[1,"card-body"],["class","m-2",3,"formGroup","ngSubmit",4,"ngIf"],[1,"col-lg-5","col-md-3","ms-auto","p-0",2,"transform","rotateY(180deg)",3,"ngStyle"],[1,"m-2",3,"formGroup","ngSubmit"],[1,"text-center","mb-4"],[1,"mb-4",2,"max-width","128px",3,"src"],[1,"h3","mb-3","font-weight-normal"],[1,"text-warning"],[1,"form-group","row","py-2"],["for","username",1,"col-md-4","col-form-label","text-md-end"],[1,"col-md-8"],["type","text","id","username","placeholder","Username Minimal 8 Huruf","required","","formControlName","username","autocomplete","username"],["role","alert",1,"invalid-feedback"],[4,"ngIf"],[2,"font-size","80%","color","#dc3545"],["for","name",1,"col-md-4","col-form-label","text-md-end"],["type","text","id","name","placeholder","Nama Lengkap","required","","formControlName","name","autocomplete","name"],["for","email",1,"col-md-4","col-form-label","text-md-end"],["type","email","id","email","placeholder","Alamat E-Mail","required","","formControlName","email","autocomplete","email"],["for","password",1,"col-md-4","col-form-label","text-md-end"],["type","password","id","password","placeholder","Password Minimal 8 Huruf","required","","formControlName","password","autocomplete","current-password, new-password"],[1,"col","offset-md-4"],[1,"form-check"],["id","agree_tatib","type","checkbox","formControlName","agree_tatib",1,"form-check-input",3,"change"],["for","agree_tatib",1,"form-check-label",2,"padding-top","0.125rem !important"],[1,"text-warning",2,"cursor","pointer"],["id","agree_pp","type","checkbox","formControlName","agree_pp",1,"form-check-input",3,"change"],["for","agree_pp",1,"form-check-label",2,"padding-top","0.125rem !important"],["formControlName","g-recaptcha-response",3,"siteKey","resolved"],["captchaRef",""],[1,"form-group","row","mb-0","py-2"],[1,"col-md-8","offset-md-4"],[1,"row","gy-3"],[1,"col-lg-6","col-12"],["mat-flat-button","","color","primary","type","submit",1,"w-100",3,"disabled"],[1,"ms-1"],["mat-stroked-button","","color","accent","routerLink","/login",1,"w-100",3,"disabled"]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275template(0,RegisterComponent_div_0_Template,9,4,"div",0),2&rf&&i0.\u0275\u0275property("ngIf",ctx.fg)},"RegisterComponent_Template"),directives:[i8.NgIf,i1.\u0275NgNoValidate,i1.NgControlStatusGroup,i1.FormGroupDirective,i1.DefaultValueAccessor,i1.RequiredValidator,i1.NgControlStatus,i1.FormControlName,i1.CheckboxControlValueAccessor,i9.RecaptchaComponent,i9.RecaptchaValueAccessorDirective,i10.MatButton,i11.MatIcon,i10.MatAnchor,i3.RouterLinkWithHref,i8.NgStyle],styles:[""]})},84992:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RegisterModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),ng_recaptcha_1=__webpack_require__2(3290),shared_material_module_1=__webpack_require__2(20210),register_component_1=__webpack_require__2(30300),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:register_component_1.RegisterComponent}]);class RegisterModule{}__name(RegisterModule,"RegisterModule"),exports2.RegisterModule=RegisterModule,RegisterModule.\u0275fac=__name(function(t){return new(t||RegisterModule)},"RegisterModule_Factory"),RegisterModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:RegisterModule}),RegisterModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),shared_material_module_1.SharedMaterialModule,forms_1.FormsModule,forms_1.ReactiveFormsModule,ng_recaptcha_1.RecaptchaModule,ng_recaptcha_1.RecaptchaFormsModule]]})},75695:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ResetPasswordComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=(__webpack_require__2(95113),__webpack_require__2(93075)),rxjs_1=(__webpack_require__2(55615),__webpack_require__2(74202),__webpack_require__2(76477)),environment_1=__webpack_require__2(15934),constants_1=__webpack_require__2(26271),i0=(__webpack_require__2(4137),__webpack_require__2(33e3),__webpack_require__2(55393),__webpack_require__2(80855),__webpack_require__2(8058),__webpack_require__2(38379),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(95113)),i3=tslib_1.__importStar(__webpack_require__2(93075)),i4=tslib_1.__importStar(__webpack_require__2(8058)),i5=tslib_1.__importStar(__webpack_require__2(33e3)),i6=tslib_1.__importStar(__webpack_require__2(55393)),i7=tslib_1.__importStar(__webpack_require__2(80855)),i8=tslib_1.__importStar(__webpack_require__2(4137)),i9=tslib_1.__importStar(__webpack_require__2(38379)),i10=tslib_1.__importStar(__webpack_require__2(55615)),i11=tslib_1.__importStar(__webpack_require__2(69808)),i12=tslib_1.__importStar(__webpack_require__2(3290)),i13=tslib_1.__importStar(__webpack_require__2(47423)),i14=tslib_1.__importStar(__webpack_require__2(25245)),_c0=["stepper"];function ResetPasswordComponent_ng_template_17_Template(rf,ctx){1&rf&&i0.\u0275\u0275text(0,"Cari & Cek Akun")}function ResetPasswordComponent_form_18_strong_7_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Username / Email Tidak Boleh Kosong! "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function ResetPasswordComponent_form_18_strong_8_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Username / Email Hanya Boleh Huruf Standar Papan Ketik "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function ResetPasswordComponent_form_18_Template(rf,ctx){if(1&rf){const _r9=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",16)(1,"div",17)(2,"label",18),i0.\u0275\u0275text(3,"Surel / Nama Pengguna"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"div",19),i0.\u0275\u0275element(5,"input",20),i0.\u0275\u0275elementStart(6,"span",21),i0.\u0275\u0275template(7,ResetPasswordComponent_form_18_strong_7_Template,3,0,"strong",22),i0.\u0275\u0275template(8,ResetPasswordComponent_form_18_strong_8_Template,3,0,"strong",22),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(9,"div",23)(10,"div",24)(11,"re-captcha",25,26),i0.\u0275\u0275listener("resolved",__name(function($event){i0.\u0275\u0275restoreView(_r9);const _r7=i0.\u0275\u0275reference(12);return i0.\u0275\u0275nextContext().captcha($event,_r7)},"ResetPasswordComponent_form_18_Template_re_captcha_resolved_11_listener")),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(13,"div",23)(14,"div",27)(15,"div",28)(16,"div",29)(17,"button",30),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r9),i0.\u0275\u0275nextContext().findAccount()},"ResetPasswordComponent_form_18_Template_button_click_17_listener")),i0.\u0275\u0275text(18," Cari Akun "),i0.\u0275\u0275elementStart(19,"mat-icon",31),i0.\u0275\u0275text(20,"search"),i0.\u0275\u0275elementEnd()()()()()()()}if(2&rf){const ctx_r2=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("formGroup",ctx_r2.fg1),i0.\u0275\u0275advance(5),i0.\u0275\u0275classMapInterpolate1("text-bifeldy form-control ",!ctx_r2.fg1.get("userNameOrEmail").valid&&ctx_r2.fg1.get("userNameOrEmail").touched?"is-invalid":"",""),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r2.fg1.get("userNameOrEmail").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r2.fg1.get("userNameOrEmail").hasError("pattern")),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("siteKey",ctx_r2.G_CAPTCHA_SITE_KEY),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("disabled",ctx_r2.submitted||ctx_r2.fg1.invalid)}}function ResetPasswordComponent_ng_template_20_Template(rf,ctx){1&rf&&i0.\u0275\u0275text(0,"Ubah Kata Sandi")}function ResetPasswordComponent_form_21_strong_8_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Token Tidak Boleh Kosong "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function ResetPasswordComponent_form_21_strong_9_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Token Hanya Boleh Huruf Standar Papan Ketik "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function ResetPasswordComponent_form_21_strong_16_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Password Tidak Boleh Kosong "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function ResetPasswordComponent_form_21_strong_17_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Password Minimal 8 Huruf "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function ResetPasswordComponent_form_21_strong_18_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Password Hanya Boleh Huruf Standar Papan Ketik "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function ResetPasswordComponent_form_21_Template(rf,ctx){if(1&rf){const _r17=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",16)(1,"div",17)(2,"label",32),i0.\u0275\u0275text(3,"Token"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"div",19)(5,"textarea",33),i0.\u0275\u0275text(6," "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"span",21),i0.\u0275\u0275template(8,ResetPasswordComponent_form_21_strong_8_Template,3,0,"strong",22),i0.\u0275\u0275template(9,ResetPasswordComponent_form_21_strong_9_Template,3,0,"strong",22),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(10,"div",17)(11,"label",34),i0.\u0275\u0275text(12,"Password Baru"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(13,"div",19),i0.\u0275\u0275element(14,"input",35),i0.\u0275\u0275elementStart(15,"span",21),i0.\u0275\u0275template(16,ResetPasswordComponent_form_21_strong_16_Template,3,0,"strong",22),i0.\u0275\u0275template(17,ResetPasswordComponent_form_21_strong_17_Template,3,0,"strong",22),i0.\u0275\u0275template(18,ResetPasswordComponent_form_21_strong_18_Template,3,0,"strong",22),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(19,"div",23)(20,"div",27)(21,"div",28)(22,"div",29)(23,"button",30),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r17),i0.\u0275\u0275nextContext().resetAccount()},"ResetPasswordComponent_form_21_Template_button_click_23_listener")),i0.\u0275\u0275text(24," Atur Ulang Akun "),i0.\u0275\u0275elementStart(25,"mat-icon",31),i0.\u0275\u0275text(26,"check_circle_outline"),i0.\u0275\u0275elementEnd()()()()()()()}if(2&rf){const ctx_r4=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("formGroup",ctx_r4.fg2),i0.\u0275\u0275advance(5),i0.\u0275\u0275classMapInterpolate1("text-bifeldy form-control ",!ctx_r4.fg2.get("token").valid&&ctx_r4.fg2.get("token").touched?"is-invalid":"",""),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngIf",ctx_r4.fg2.get("token").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r4.fg2.get("token").hasError("pattern")),i0.\u0275\u0275advance(5),i0.\u0275\u0275classMapInterpolate1("text-bifeldy form-control ",!ctx_r4.fg2.get("password").valid&&ctx_r4.fg2.get("password").touched?"is-invalid":"",""),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r4.fg2.get("password").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r4.fg2.get("password").hasError("minlength")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r4.fg2.get("password").hasError("pattern")),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r4.submitted||ctx_r4.fg2.invalid)}}__name(ResetPasswordComponent_ng_template_17_Template,"ResetPasswordComponent_ng_template_17_Template"),__name(ResetPasswordComponent_form_18_strong_7_Template,"ResetPasswordComponent_form_18_strong_7_Template"),__name(ResetPasswordComponent_form_18_strong_8_Template,"ResetPasswordComponent_form_18_strong_8_Template"),__name(ResetPasswordComponent_form_18_Template,"ResetPasswordComponent_form_18_Template"),__name(ResetPasswordComponent_ng_template_20_Template,"ResetPasswordComponent_ng_template_20_Template"),__name(ResetPasswordComponent_form_21_strong_8_Template,"ResetPasswordComponent_form_21_strong_8_Template"),__name(ResetPasswordComponent_form_21_strong_9_Template,"ResetPasswordComponent_form_21_strong_9_Template"),__name(ResetPasswordComponent_form_21_strong_16_Template,"ResetPasswordComponent_form_21_strong_16_Template"),__name(ResetPasswordComponent_form_21_strong_17_Template,"ResetPasswordComponent_form_21_strong_17_Template"),__name(ResetPasswordComponent_form_21_strong_18_Template,"ResetPasswordComponent_form_21_strong_18_Template"),__name(ResetPasswordComponent_form_21_Template,"ResetPasswordComponent_form_21_Template");class ResetPasswordComponent{constructor(activatedRoute,breakpointObserver,fb,router,us,bs,ds,gs,as,cs){this.activatedRoute=activatedRoute,this.breakpointObserver=breakpointObserver,this.fb=fb,this.router=router,this.us=us,this.bs=bs,this.ds=ds,this.gs=gs,this.as=as,this.cs=cs,this.captchaRef=null,this.submitted=!1,this.returnUrl="/",this.resetInfo="",this.subsFindLostAccount=null,this.subsResetLostAccount=null,this.subsVerify=null,this.subsDialog=null,this.subsUser=null,this.timedOut=null,this.stepperOrientation=this.breakpointObserver.observe("(min-width: 767px)").pipe((0,rxjs_1.map)(({matches})=>matches?"horizontal":"vertical")),this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get ENV(){return environment_1.environment}ngOnDestroy(){var _a,_b,_c,_d,_e;null===(_a=this.subsFindLostAccount)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsResetLostAccount)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsVerify)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsDialog)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsUser)||void 0===_e||_e.unsubscribe(),this.timedOut&&(clearTimeout(this.timedOut),this.timedOut=null)}ngAfterViewInit(){this.timedOut||(this.timedOut=setTimeout(()=>{const token=this.activatedRoute.snapshot.queryParamMap.get("token")||"";token&&this.fg2&&this.stepper&&(this.fg2.controls.token.patchValue(token),this.stepper.next())},0))}ngOnInit(){this.returnUrl=this.activatedRoute.snapshot.queryParamMap.get("returnUrl")||"/",this.gs.isBrowser&&(this.initForm(),this.subsUser=this.as.currentUser.subscribe({next:user=>{user&&this.router.navigateByUrl(this.returnUrl)}}))}get G_CAPTCHA_SITE_KEY(){return constants_1.CONSTANTS.gCaptchaSiteKey}initForm(){this.fg1=this.fb.group({userNameOrEmail:[null,[forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]],"g-recaptcha-response":[null,[forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]]}),this.fg2=this.fb.group({token:[null,[forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]],password:[null,[forms_1.Validators.required,forms_1.Validators.minLength(8),forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]]})}captcha(captchaResponse,captchaRef){this.gs.log(`[GOOGLE_CAPTCHA] ${captchaResponse}`),captchaResponse?(this.captchaRef=captchaRef,this.fg1.controls["g-recaptcha-response"].patchValue(captchaResponse)):this.fg1.value["g-recaptcha-response"]&&this.fg1.controls["g-recaptcha-response"].patchValue(null)}findAccount(){this.bs.busy(),this.submitted=!0,this.subsFindLostAccount=this.us.findLostAccount({userNameOrEmail:this.fg1.value.userNameOrEmail,"g-recaptcha-response":this.fg1.value["g-recaptcha-response"]}).subscribe({next:res=>{this.gs.log("[USER_FIND_LOST_ACCOUNT_SUCCESS]",res),this.bs.idle(),this.submitted=!1,this.subsDialog=this.ds.openInfoDialog({data:{title:res.result.title,htmlMessage:res.result.message,confirmText:"Tutup"}}).afterClosed().subscribe({next:re=>{this.gs.log("[INFO_DIALOG_CLOSED]",re),this.subsDialog.unsubscribe()}}),this.stepper.next(),this.captchaRef.reset()},error:err=>{var _a;this.gs.log("[USER_FIND_LOST_ACCOUNT_ERROR]",err),this.bs.idle(),this.submitted=!1,this.resetInfo=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info,this.captchaRef.reset()}})}resetAccount(){this.bs.busy(),this.submitted=!0,this.subsResetLostAccount=this.us.resetLostAccount({token:this.fg2.value.token,password:this.cs.hashPassword(this.fg2.value.password)}).subscribe({next:res=>{this.gs.log("[USER_RESET_LOST_ACCOUNT_SUCCESS]",res),this.bs.idle(),this.submitted=!1,this.as.removeUser(),this.bs.busy(),this.subsVerify=this.as.verify(res.result.token).subscribe({next:success=>{this.gs.log("[VERIFY_LOGIN_SUCCESS]",success),this.bs.idle(),this.router.navigateByUrl("/")},error:error=>{this.gs.log("[VERIFY_LOGIN_ERROR]",error,"error"),this.bs.idle(),this.as.removeUser(),this.router.navigateByUrl("/")}})},error:err=>{var _a;this.gs.log("[USER_RESET_LOST_ACCOUNT_ERROR]",err,"error"),this.bs.idle(),this.submitted=!1,this.resetInfo=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info,this.stepper.reset()}})}}__name(ResetPasswordComponent,"ResetPasswordComponent"),exports2.ResetPasswordComponent=ResetPasswordComponent,ResetPasswordComponent.\u0275fac=__name(function(t){return new(t||ResetPasswordComponent)(i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i2.BreakpointObserver),i0.\u0275\u0275directiveInject(i3.FormBuilder),i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i4.UserService),i0.\u0275\u0275directiveInject(i5.BusyService),i0.\u0275\u0275directiveInject(i6.DialogService),i0.\u0275\u0275directiveInject(i7.GlobalService),i0.\u0275\u0275directiveInject(i8.AuthService),i0.\u0275\u0275directiveInject(i9.CryptoService))},"ResetPasswordComponent_Factory"),ResetPasswordComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:ResetPasswordComponent,selectors:[["app-reset-password"]],viewQuery:__name(function(rf,ctx){if(1&rf&&i0.\u0275\u0275viewQuery(_c0,7),2&rf){let _t;i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.stepper=_t.first)}},"ResetPasswordComponent_Query"),decls:22,vars:11,consts:[[1,"container-fluid","align-items-center","col-12","col-sm-10","col-md-9","col-lg-7","col-xl-6","h-100"],[1,"row","align-items-center","h-100","m-0"],[1,"col-12","col-md-10","m-auto","py-3"],[1,"row","rgb-border","rounded","bg-bifeldy"],[1,"col-12","me-auto","p-0"],[1,"card","bg-transparent","border-0"],[1,"card-body","p-0"],[1,"text-center","p-3"],[1,"mb-4",2,"max-width","192px",3,"src"],[1,"h3","mb-3","font-weight-normal"],[1,"text-warning"],[2,"background-color","transparent",3,"orientation"],["stepper",""],[3,"stepControl","editable"],["matStepLabel",""],["class","m-2",3,"formGroup",4,"ngIf"],[1,"m-2",3,"formGroup"],[1,"form-group","row","py-2"],["for","userNameOrEmail",1,"col-md-4","col-form-label","text-md-end"],[1,"col-md-8"],["type","text","id","userNameOrEmail","placeholder","Username / E-Mail","required","","formControlName","userNameOrEmail","autocomplete","email, username"],["role","alert",1,"invalid-feedback"],[4,"ngIf"],[1,"form-group","row","mb-0","py-2"],[1,"col","offset-md-4"],["formControlName","g-recaptcha-response",3,"siteKey","resolved"],["captchaRef",""],[1,"col-md-8","offset-md-4"],[1,"row"],[1,"col-12"],["mat-flat-button","","color","primary","type","button",1,"w-100",3,"disabled","click"],[1,"ms-1"],["for","token",1,"col-md-4","col-form-label","text-md-end"],["rows","3","type","text","id","token","placeholder","Token","required","","formControlName","token","autocomplete","token"],["for","password",1,"col-md-4","col-form-label","text-md-end"],["type","password","id","password","placeholder","Password Minimal 8 Huruf","required","","formControlName","password","autocomplete","password"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7),i0.\u0275\u0275element(8,"img",8),i0.\u0275\u0275elementStart(9,"h1",9),i0.\u0275\u0275text(10,"Hikz, Akun Kamu Kenapa (?)"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(11,"p",10),i0.\u0275\u0275text(12),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(13,"mat-vertical-stepper",11,12),i0.\u0275\u0275pipe(15,"async"),i0.\u0275\u0275elementStart(16,"mat-step",13),i0.\u0275\u0275template(17,ResetPasswordComponent_ng_template_17_Template,1,0,"ng-template",14),i0.\u0275\u0275template(18,ResetPasswordComponent_form_18_Template,21,8,"form",15),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(19,"mat-step",13),i0.\u0275\u0275template(20,ResetPasswordComponent_ng_template_20_Template,1,0,"ng-template",14),i0.\u0275\u0275template(21,ResetPasswordComponent_form_21_Template,27,13,"form",15),i0.\u0275\u0275elementEnd()()()()()()()()()),2&rf&&(i0.\u0275\u0275advance(8),i0.\u0275\u0275propertyInterpolate1("src","",ctx.ENV.baseUrl,"/assets/img/logo/reset-password.png",i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate(ctx.resetInfo),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("orientation",i0.\u0275\u0275pipeBind1(15,9,ctx.stepperOrientation)),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("stepControl",ctx.fg1)("editable",!1),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx.fg1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("stepControl",ctx.fg2)("editable",!1),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx.fg2))},"ResetPasswordComponent_Template"),directives:[i10.MatStepper,i10.MatStep,i10.MatStepLabel,i11.NgIf,i3.\u0275NgNoValidate,i3.NgControlStatusGroup,i3.FormGroupDirective,i3.DefaultValueAccessor,i3.RequiredValidator,i3.NgControlStatus,i3.FormControlName,i12.RecaptchaComponent,i12.RecaptchaValueAccessorDirective,i13.MatButton,i14.MatIcon],pipes:[i11.AsyncPipe],styles:[""]})},2420:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ResetPasswordModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),ng_recaptcha_1=__webpack_require__2(3290),shared_material_module_1=__webpack_require__2(20210),reset_password_component_1=__webpack_require__2(75695),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:reset_password_component_1.ResetPasswordComponent}]);class ResetPasswordModule{}__name(ResetPasswordModule,"ResetPasswordModule"),exports2.ResetPasswordModule=ResetPasswordModule,ResetPasswordModule.\u0275fac=__name(function(t){return new(t||ResetPasswordModule)},"ResetPasswordModule_Factory"),ResetPasswordModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:ResetPasswordModule}),ResetPasswordModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),forms_1.FormsModule,forms_1.ReactiveFormsModule,shared_material_module_1.SharedMaterialModule,ng_recaptcha_1.RecaptchaModule,ng_recaptcha_1.RecaptchaFormsModule]]})},4981:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RssFeedListComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(80855),__webpack_require__2(76781),__webpack_require__2(33e3),__webpack_require__2(88020),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(33e3)),i3=tslib_1.__importStar(__webpack_require__2(76781)),i4=tslib_1.__importStar(__webpack_require__2(88020)),i5=tslib_1.__importStar(__webpack_require__2(8616)),i6=tslib_1.__importStar(__webpack_require__2(18757)),i7=tslib_1.__importStar(__webpack_require__2(49933)),i8=tslib_1.__importStar(__webpack_require__2(8921));class RssFeedListComponent{constructor(gs,bs,fansub,wb){this.gs=gs,this.bs=bs,this.fansub=fansub,this.wb=wb,this.rssFeedData=[],this.tabData=[{name:"Loper Koran",icon:"rss_feed",type:"table",data:{column:["Tanggal","Fansub","Judul Surat Kabar"],row:[]}}],this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.subsRssFeed=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.gs.isBrowser&&this.getRssFeed()}ngOnDestroy(){var _a;null===(_a=this.subsRssFeed)||void 0===_a||_a.unsubscribe()}getRssFeed(){this.bs.busy(),this.subsRssFeed&&(this.subsRssFeed.unsubscribe(),this.bs.idle()),this.subsRssFeed=this.fansub.getRssFeedFansubAll().subscribe({next:res=>{var _a,_b,_c,_d;this.gs.log("[RSS_FEED_LIST_SUCCESS]",res),this.count=res.count,this.rssFeedData=[];for(const r of res.results)this.rssFeedData.push({foto_fansub:r.image_url,link:null===(_a=r.item)||void 0===_a?void 0:_a.link,Fansub:r.slug,Tanggal:(null===(_b=r.item)||void 0===_b?void 0:_b.created)||(null===(_c=r.item)||void 0===_c?void 0:_c.published),"Judul Surat Kabar":null===(_d=r.item)||void 0===_d?void 0:_d.title});this.tabData[0].data.row=this.rssFeedData,this.bs.idle()},error:err=>{this.gs.log("[RSS_FEED_LIST_ERROR]",err,"error"),this.bs.idle()}})}openRssFeed(data){this.gs.log("[RSS_FEED_LIST_OPEN_URL]",data),this.wb.winboxOpenUri(this.gs.rssLink(data.link))}}__name(RssFeedListComponent,"RssFeedListComponent"),exports2.RssFeedListComponent=RssFeedListComponent,RssFeedListComponent.\u0275fac=__name(function(t){return new(t||RssFeedListComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService),i0.\u0275\u0275directiveInject(i2.BusyService),i0.\u0275\u0275directiveInject(i3.FansubService),i0.\u0275\u0275directiveInject(i4.WinboxService))},"RssFeedListComponent_Factory"),RssFeedListComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:RssFeedListComponent,selectors:[["app-rss-feed-list"]],decls:32,vars:1,consts:[[1,"container-fluid","p-0"],[1,"wrapper"],[1,"bg-bubbles","align-items-center","p-0"],[1,"wrapper-1"],[1,"row","align-items-center","h-100"],[1,"col-12","mx-auto"],[1,"container","text-dark"],[1,"mb-1",2,"line-height","normal"],[1,"mb-0"],[1,"container"],[1,"row","pb-3","px-0"],[1,"col-lg-8","col-xl-9"],[1,"row"],[3,"tabData","tableRowClicked"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],[1,"col-12"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"ul",2),i0.\u0275\u0275element(3,"span",3)(4,"li")(5,"li")(6,"li")(7,"li")(8,"li")(9,"li")(10,"li")(11,"li")(12,"li")(13,"li"),i0.\u0275\u0275elementStart(14,"div",4)(15,"div",5)(16,"div",6)(17,"h2",7),i0.\u0275\u0275text(18," RSS & Feed Fansub "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(19,"p",8),i0.\u0275\u0275text(20," Informasi Terkini Dari Fansub ... "),i0.\u0275\u0275elementEnd()()()()()()(),i0.\u0275\u0275element(21,"app-notifications"),i0.\u0275\u0275elementStart(22,"div",9)(23,"div",10)(24,"div",11)(25,"div",12)(26,"app-material-tab",13),i0.\u0275\u0275listener("tableRowClicked",__name(function($event){return ctx.openRssFeed($event)},"RssFeedListComponent_Template_app_material_tab_tableRowClicked_26_listener")),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(27,"div",14)(28,"div",15)(29,"div",16),i0.\u0275\u0275element(30,"app-banner-discord")(31,"app-stats-server"),i0.\u0275\u0275elementEnd()()()()()),2&rf&&(i0.\u0275\u0275advance(26),i0.\u0275\u0275property("tabData",ctx.tabData))},"RssFeedListComponent_Template"),directives:[i5.NotificationsComponent,i6.MaterialTabComponent,i7.BannerDiscordComponent,i8.StatsServerComponent],styles:['.wrapper[_ngcontent-%COMP%]{position:sticky;left:0;width:100%;height:128px;overflow:hidden;background-image:url(/assets/img/banner/rss-feed.jpg)}.wrapper[_ngcontent-%COMP%]:before, .wrapper[_ngcontent-%COMP%]:after{content:"";width:128px;height:128px;background-repeat:no-repeat;background-size:contain;position:absolute;z-index:-1}.wrapper[_ngcontent-%COMP%]:before{background-image:url(/assets/img/banner/rss-feed-before.svg);left:0}.wrapper[_ngcontent-%COMP%]:after{background-image:url(/assets/img/banner/rss-feed-after.svg);right:0}.wrapper-1[_ngcontent-%COMP%]{width:256px;height:100%;background-image:url(/assets/img/banner/rss-feed-1.svg);position:absolute;background-repeat:no-repeat;background-size:contain;right:64px;top:-8px;z-index:-1}.bg-bubbles[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:absolute;list-style:none;display:block;width:40px;height:40px;background-color:#ffffff26;bottom:-160px;animation:square 25s infinite;transition-timing-function:linear}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1){left:10%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2){left:20%;width:80px;height:80px;animation-delay:2s;animation-duration:17s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3){left:25%;animation-delay:4s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4){left:40%;width:60px;height:60px;animation-duration:22s;background-color:#ffffff40}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){left:70%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(6){left:80%;width:120px;height:120px;animation-delay:3s;background-color:#fff3}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(7){left:32%;width:160px;height:160px;animation-delay:7s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(8){left:55%;width:20px;height:20px;animation-delay:15s;animation-duration:40s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(9){left:25%;width:10px;height:10px;animation-delay:2s;animation-duration:40s;background-color:#ffffff4d}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(10){left:90%;width:160px;height:160px;animation-delay:11s}@keyframes square{0%{transform:translateY(0)}to{transform:translateY(-512px) rotate(512deg)}}']})},73728:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RssFeedModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),rss_feed_list_component_1=__webpack_require__2(4981),shared_material_module_1=__webpack_require__2(20210),banner_discord_module_1=__webpack_require__2(54854),discussion_module_1=__webpack_require__2(78764),material_tab_module_1=__webpack_require__2(66436),notifications_module_1=__webpack_require__2(88613),stats_server_module_1=__webpack_require__2(10669),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:rss_feed_list_component_1.RssFeedListComponent}]);class RssFeedModule{}__name(RssFeedModule,"RssFeedModule"),exports2.RssFeedModule=RssFeedModule,RssFeedModule.\u0275fac=__name(function(t){return new(t||RssFeedModule)},"RssFeedModule_Factory"),RssFeedModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:RssFeedModule}),RssFeedModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),shared_material_module_1.SharedMaterialModule,material_tab_module_1.MaterialTabModule,notifications_module_1.NotificationsModule,banner_discord_module_1.BannerDiscordModule,stats_server_module_1.StatsServerModule,discussion_module_1.DiscussionModule]]})},41088:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.TorrentComponent=void 0;const tslib_1=__webpack_require__2(70655),animations_1=__webpack_require__2(41777),sort_1=(__webpack_require__2(69287),__webpack_require__2(84847)),table_1=__webpack_require__2(32075),file_saver_1=(__webpack_require__2(57261),__webpack_require__2(94327)),environment_1=__webpack_require__2(15934),i0=(__webpack_require__2(80855),__webpack_require__2(11189),__webpack_require__2(55393),__webpack_require__2(28381),__webpack_require__2(33e3),__webpack_require__2(96925),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(57261)),i2=tslib_1.__importStar(__webpack_require__2(69287)),i3=tslib_1.__importStar(__webpack_require__2(80855)),i4=tslib_1.__importStar(__webpack_require__2(11189)),i5=tslib_1.__importStar(__webpack_require__2(96925)),i6=tslib_1.__importStar(__webpack_require__2(55393)),i7=tslib_1.__importStar(__webpack_require__2(28381)),i8=tslib_1.__importStar(__webpack_require__2(33e3)),i9=tslib_1.__importStar(__webpack_require__2(85152)),i10=tslib_1.__importStar(__webpack_require__2(8616)),i11=tslib_1.__importStar(__webpack_require__2(67322)),i12=tslib_1.__importStar(__webpack_require__2(77531)),i13=tslib_1.__importStar(__webpack_require__2(93075)),i14=tslib_1.__importStar(__webpack_require__2(25245)),i15=tslib_1.__importStar(__webpack_require__2(69808)),i16=tslib_1.__importStar(__webpack_require__2(85899)),i17=tslib_1.__importStar(__webpack_require__2(32075)),i18=tslib_1.__importStar(__webpack_require__2(84847)),i19=tslib_1.__importStar(__webpack_require__2(87238)),i20=tslib_1.__importStar(__webpack_require__2(47423)),i21=tslib_1.__importStar(__webpack_require__2(14623)),i22=tslib_1.__importStar(__webpack_require__2(23626));function TorrentComponent_mat_progress_bar_18_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"mat-progress-bar",26)}function TorrentComponent_ng_container_22_th_1_span_2_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1,"\u{1f516} NAME"),i0.\u0275\u0275elementEnd()),2&rf&&i0.\u0275\u0275styleProp("color","#ff4081")}function TorrentComponent_ng_container_22_th_1_span_3_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1,"\u{1f4be} SIZE"),i0.\u0275\u0275elementEnd()),2&rf&&i0.\u0275\u0275styleProp("color","#ff4081")}function TorrentComponent_ng_container_22_th_1_span_4_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1,"\u{1f4bf} DOWNLOADED"),i0.\u0275\u0275elementEnd()),2&rf&&i0.\u0275\u0275styleProp("color","#ff4081")}function TorrentComponent_ng_container_22_th_1_span_5_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1,"\u{1f4c0} UPLOADED"),i0.\u0275\u0275elementEnd()),2&rf&&i0.\u0275\u0275styleProp("color","#ff4081")}function TorrentComponent_ng_container_22_th_1_span_6_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1,"\u{1f504} PROGRESS"),i0.\u0275\u0275elementEnd()),2&rf&&i0.\u0275\u0275styleProp("color","#ff4081")}function TorrentComponent_ng_container_22_th_1_span_7_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1,"\u{1f53d} SPEED"),i0.\u0275\u0275elementEnd()),2&rf&&i0.\u0275\u0275styleProp("color","#ff4081")}function TorrentComponent_ng_container_22_th_1_span_8_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1,"\u{1f53c} SPEED"),i0.\u0275\u0275elementEnd()),2&rf&&i0.\u0275\u0275styleProp("color","#ff4081")}function TorrentComponent_ng_container_22_th_1_span_9_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1,"\u{1f551} ~ETA."),i0.\u0275\u0275elementEnd()),2&rf&&i0.\u0275\u0275styleProp("color","#ff4081")}function TorrentComponent_ng_container_22_th_1_span_10_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1,"\u{1f9f2} PEERS"),i0.\u0275\u0275elementEnd()),2&rf&&i0.\u0275\u0275styleProp("color","#ff4081")}function TorrentComponent_ng_container_22_th_1_span_11_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1,"\u{1f310} RATIO"),i0.\u0275\u0275elementEnd()),2&rf&&i0.\u0275\u0275styleProp("color","#ff4081")}function TorrentComponent_ng_container_22_th_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"th",30)(1,"h3",31),i0.\u0275\u0275template(2,TorrentComponent_ng_container_22_th_1_span_2_Template,2,2,"span",32),i0.\u0275\u0275template(3,TorrentComponent_ng_container_22_th_1_span_3_Template,2,2,"span",32),i0.\u0275\u0275template(4,TorrentComponent_ng_container_22_th_1_span_4_Template,2,2,"span",32),i0.\u0275\u0275template(5,TorrentComponent_ng_container_22_th_1_span_5_Template,2,2,"span",32),i0.\u0275\u0275template(6,TorrentComponent_ng_container_22_th_1_span_6_Template,2,2,"span",32),i0.\u0275\u0275template(7,TorrentComponent_ng_container_22_th_1_span_7_Template,2,2,"span",32),i0.\u0275\u0275template(8,TorrentComponent_ng_container_22_th_1_span_8_Template,2,2,"span",32),i0.\u0275\u0275template(9,TorrentComponent_ng_container_22_th_1_span_9_Template,2,2,"span",32),i0.\u0275\u0275template(10,TorrentComponent_ng_container_22_th_1_span_10_Template,2,2,"span",32),i0.\u0275\u0275template(11,TorrentComponent_ng_container_22_th_1_span_11_Template,2,2,"span",32),i0.\u0275\u0275elementEnd()()),2&rf){const tdc_r9=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf","NAME"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","LENGTH"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","DOWNLOADED"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","UPLOADED"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","PROGRESS"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","DOWNLOADSPEED"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","UPLOADSPEED"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","TIMEREMAINING"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","NUMPEERS"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","RATIO"===tdc_r9.toUpperCase())}}function TorrentComponent_ng_container_22_td_2_span_2_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const row_r23=i0.\u0275\u0275nextContext().$implicit,tdc_r9=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(row_r23[tdc_r9])}}function TorrentComponent_ng_container_22_td_2_span_3_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const row_r23=i0.\u0275\u0275nextContext().$implicit,tdc_r9=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind1(2,1,row_r23[tdc_r9]))}}function TorrentComponent_ng_container_22_td_2_span_4_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const row_r23=i0.\u0275\u0275nextContext().$implicit,tdc_r9=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind1(2,1,row_r23[tdc_r9]))}}function TorrentComponent_ng_container_22_td_2_span_5_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const row_r23=i0.\u0275\u0275nextContext().$implicit,tdc_r9=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind1(2,1,row_r23[tdc_r9]))}}function TorrentComponent_ng_container_22_td_2_span_6_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"number"),i0.\u0275\u0275elementEnd()),2&rf){const row_r23=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("",i0.\u0275\u0275pipeBind2(2,1,row_r23.downloaded/row_r23.length*100,"1.2-2")," %")}}function TorrentComponent_ng_container_22_td_2_span_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const row_r23=i0.\u0275\u0275nextContext().$implicit,tdc_r9=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("",i0.\u0275\u0275pipeBind1(2,1,row_r23[tdc_r9]),"/s")}}function TorrentComponent_ng_container_22_td_2_span_8_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const row_r23=i0.\u0275\u0275nextContext().$implicit,tdc_r9=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("",i0.\u0275\u0275pipeBind1(2,1,row_r23[tdc_r9]),"/s")}}function TorrentComponent_ng_container_22_td_2_span_9_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"number"),i0.\u0275\u0275elementEnd()),2&rf){const row_r23=i0.\u0275\u0275nextContext().$implicit,tdc_r9=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(row_r23[tdc_r9]<=0?"COMPLETED":i0.\u0275\u0275pipeBind2(2,1,row_r23[tdc_r9]/1e3,"1.0-0")+" s")}}function TorrentComponent_ng_container_22_td_2_span_10_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const row_r23=i0.\u0275\u0275nextContext().$implicit,tdc_r9=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(row_r23[tdc_r9])}}function TorrentComponent_ng_container_22_td_2_span_11_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"number"),i0.\u0275\u0275elementEnd()),2&rf){const row_r23=i0.\u0275\u0275nextContext().$implicit,tdc_r9=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind2(2,1,row_r23[tdc_r9],"1.4-4"))}}function TorrentComponent_ng_container_22_td_2_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"td",33)(1,"h3"),i0.\u0275\u0275template(2,TorrentComponent_ng_container_22_td_2_span_2_Template,2,1,"span",34),i0.\u0275\u0275template(3,TorrentComponent_ng_container_22_td_2_span_3_Template,3,3,"span",34),i0.\u0275\u0275template(4,TorrentComponent_ng_container_22_td_2_span_4_Template,3,3,"span",34),i0.\u0275\u0275template(5,TorrentComponent_ng_container_22_td_2_span_5_Template,3,3,"span",34),i0.\u0275\u0275template(6,TorrentComponent_ng_container_22_td_2_span_6_Template,3,4,"span",34),i0.\u0275\u0275template(7,TorrentComponent_ng_container_22_td_2_span_7_Template,3,3,"span",34),i0.\u0275\u0275template(8,TorrentComponent_ng_container_22_td_2_span_8_Template,3,3,"span",34),i0.\u0275\u0275template(9,TorrentComponent_ng_container_22_td_2_span_9_Template,3,4,"span",34),i0.\u0275\u0275template(10,TorrentComponent_ng_container_22_td_2_span_10_Template,2,1,"span",34),i0.\u0275\u0275template(11,TorrentComponent_ng_container_22_td_2_span_11_Template,3,4,"span",34),i0.\u0275\u0275elementEnd()()),2&rf){const tdc_r9=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275classMapInterpolate1("m-0 ","NAME"===tdc_r9.toUpperCase()?"text-start":"",""),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","NAME"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","LENGTH"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","DOWNLOADED"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","UPLOADED"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","PROGRESS"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","DOWNLOADSPEED"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","UPLOADSPEED"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","TIMEREMAINING"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","NUMPEERS"===tdc_r9.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","RATIO"===tdc_r9.toUpperCase())}}function TorrentComponent_ng_container_22_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementContainerStart(0,27),i0.\u0275\u0275template(1,TorrentComponent_ng_container_22_th_1_Template,12,10,"th",28),i0.\u0275\u0275template(2,TorrentComponent_ng_container_22_td_2_Template,12,13,"td",29),i0.\u0275\u0275elementContainerEnd()),2&rf){const tdc_r9=ctx.$implicit;i0.\u0275\u0275propertyInterpolate("matColumnDef",tdc_r9)}}function TorrentComponent_td_24_p_6_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"p",41),i0.\u0275\u0275text(1," Info Hash :: "),i0.\u0275\u0275elementStart(2,"span",52),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()),2&rf){const row_r54=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",row_r54.infoHash," ")}}function TorrentComponent_td_24_p_7_Template(rf,ctx){if(1&rf){const _r64=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"p",41),i0.\u0275\u0275text(1," Magnet URI :: "),i0.\u0275\u0275elementStart(2,"span",53),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r64);const row_r54=i0.\u0275\u0275nextContext().$implicit;return i0.\u0275\u0275nextContext().copyMagnetHashToClipboard(row_r54.magnetURI)},"TorrentComponent_td_24_p_7_Template_span_click_2_listener")),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()}if(2&rf){const row_r54=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",row_r54.magnetURI," ")}}function TorrentComponent_td_24_li_11_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"li"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const a_r66=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",a_r66," ")}}function TorrentComponent_td_24_button_21_Template(rf,ctx){if(1&rf){const _r69=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",45),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r69);const row_r54=i0.\u0275\u0275nextContext().$implicit;return i0.\u0275\u0275nextContext().resumeTorrent(row_r54)},"TorrentComponent_td_24_button_21_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",46),i0.\u0275\u0275text(2,"play_arrow"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3," Resume "),i0.\u0275\u0275elementEnd()}}function TorrentComponent_td_24_button_22_Template(rf,ctx){if(1&rf){const _r72=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",45),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r72);const row_r54=i0.\u0275\u0275nextContext().$implicit;return i0.\u0275\u0275nextContext().pauseTorrent(row_r54)},"TorrentComponent_td_24_button_22_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",46),i0.\u0275\u0275text(2,"pause"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3," Pause "),i0.\u0275\u0275elementEnd()}}function TorrentComponent_td_24_mat_list_option_27_Template(rf,ctx){if(1&rf){const _r75=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-list-option",54)(1,"mat-icon",55),i0.\u0275\u0275text(2,"file_present"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"div",56),i0.\u0275\u0275listener("click",__name(function(){const f_r73=i0.\u0275\u0275restoreView(_r75).$implicit;return i0.\u0275\u0275nextContext(2).saveFile(f_r73)},"TorrentComponent_td_24_mat_list_option_27_Template_div_click_3_listener")),i0.\u0275\u0275elementStart(4,"span"),i0.\u0275\u0275text(5),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(6," -- "),i0.\u0275\u0275elementStart(7,"span",57),i0.\u0275\u0275text(8),i0.\u0275\u0275pipe(9,"number"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(10," :: "),i0.\u0275\u0275elementStart(11,"span",52),i0.\u0275\u0275text(12),i0.\u0275\u0275pipe(13,"bytes"),i0.\u0275\u0275pipe(14,"bytes"),i0.\u0275\u0275elementEnd()()()}if(2&rf){const f_r73=ctx.$implicit;i0.\u0275\u0275advance(4),i0.\u0275\u0275classMapInterpolate1("text-",f_r73.downloaded/f_r73.length>=1?"primary":"bifeldy",""),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",f_r73.name," "),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",i0.\u0275\u0275pipeBind2(9,7,f_r73.downloaded/f_r73.length*100,"1.2-2")," % "),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate2(" ",i0.\u0275\u0275pipeBind1(13,10,f_r73.downloaded)," / ",i0.\u0275\u0275pipeBind1(14,12,f_r73.length)," ")}}function TorrentComponent_td_24_Template(rf,ctx){if(1&rf){const _r77=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"td",35)(1,"div",36)(2,"div",37)(3,"div",38),i0.\u0275\u0275element(4,"div"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"div",39),i0.\u0275\u0275template(6,TorrentComponent_td_24_p_6_Template,4,1,"p",40),i0.\u0275\u0275template(7,TorrentComponent_td_24_p_7_Template,4,1,"p",40),i0.\u0275\u0275elementStart(8,"div",41),i0.\u0275\u0275text(9," Announce Trackers :: "),i0.\u0275\u0275elementStart(10,"ul",42),i0.\u0275\u0275template(11,TorrentComponent_td_24_li_11_Template,2,1,"li",43),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(12,"div",44)(13,"button",45),i0.\u0275\u0275listener("click",__name(function(){const row_r54=i0.\u0275\u0275restoreView(_r77).$implicit;return i0.\u0275\u0275nextContext().refreshGraph(row_r54)},"TorrentComponent_td_24_Template_button_click_13_listener")),i0.\u0275\u0275elementStart(14,"mat-icon",46),i0.\u0275\u0275text(15,"refresh"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(16," Refresh Graph "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(17,"button",45),i0.\u0275\u0275listener("click",__name(function(){const row_r54=i0.\u0275\u0275restoreView(_r77).$implicit;return i0.\u0275\u0275nextContext().removeTorrent(row_r54)},"TorrentComponent_td_24_Template_button_click_17_listener")),i0.\u0275\u0275elementStart(18,"mat-icon",46),i0.\u0275\u0275text(19,"delete_outline"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(20," Remove "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(21,TorrentComponent_td_24_button_21_Template,4,0,"button",47),i0.\u0275\u0275template(22,TorrentComponent_td_24_button_22_Template,4,0,"button",47),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(23,"div",48)(24,"div",49),i0.\u0275\u0275text(25,"Rincian Isi Berkas \u2728"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(26,"mat-selection-list",50),i0.\u0275\u0275template(27,TorrentComponent_td_24_mat_list_option_27_Template,15,14,"mat-list-option",51),i0.\u0275\u0275elementEnd()()()()()()}if(2&rf){const row_r54=ctx.$implicit,ctx_r3=i0.\u0275\u0275nextContext();i0.\u0275\u0275attribute("colspan",ctx_r3.tableDataColumn.length),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("@detailExpand",row_r54===ctx_r3.TORRENT.expandedRow?"expanded":"collapsed"),i0.\u0275\u0275advance(3),i0.\u0275\u0275classMapInterpolate1("p2p-graph graphP2p-",row_r54.infoHash,""),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",row_r54.infoHash),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",row_r54.magnetURI),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngForOf",row_r54.announce),i0.\u0275\u0275advance(10),i0.\u0275\u0275property("ngIf",row_r54.paused),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!row_r54.paused),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",row_r54.files)}}function TorrentComponent_tr_25_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"tr",58)}function TorrentComponent_tr_26_Template(rf,ctx){if(1&rf){const _r81=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"tr",59),i0.\u0275\u0275listener("click",__name(function(){const row_r79=i0.\u0275\u0275restoreView(_r81).$implicit;return i0.\u0275\u0275nextContext().toggleExpanded(row_r79)},"TorrentComponent_tr_26_Template_tr_click_0_listener")),i0.\u0275\u0275elementEnd()}if(2&rf){const row_r79=ctx.$implicit,ctx_r5=i0.\u0275\u0275nextContext();i0.\u0275\u0275classProp("expanded-row",ctx_r5.TORRENT.expandedRow===row_r79)}}function TorrentComponent_tr_27_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"tr",60)}function TorrentComponent_tr_28_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"tr",61)(1,"td",62)(2,"div",63)(3,"div",64)(4,"h3",31),i0.\u0275\u0275text(5," Tidak Ada Data \xaf\\_(\u30c4)_/\xaf "),i0.\u0275\u0275elementEnd()()()()()),2&rf){const ctx_r7=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275attribute("colspan",ctx_r7.tableDataColumn.length)}}__name(TorrentComponent_mat_progress_bar_18_Template,"TorrentComponent_mat_progress_bar_18_Template"),__name(TorrentComponent_ng_container_22_th_1_span_2_Template,"TorrentComponent_ng_container_22_th_1_span_2_Template"),__name(TorrentComponent_ng_container_22_th_1_span_3_Template,"TorrentComponent_ng_container_22_th_1_span_3_Template"),__name(TorrentComponent_ng_container_22_th_1_span_4_Template,"TorrentComponent_ng_container_22_th_1_span_4_Template"),__name(TorrentComponent_ng_container_22_th_1_span_5_Template,"TorrentComponent_ng_container_22_th_1_span_5_Template"),__name(TorrentComponent_ng_container_22_th_1_span_6_Template,"TorrentComponent_ng_container_22_th_1_span_6_Template"),__name(TorrentComponent_ng_container_22_th_1_span_7_Template,"TorrentComponent_ng_container_22_th_1_span_7_Template"),__name(TorrentComponent_ng_container_22_th_1_span_8_Template,"TorrentComponent_ng_container_22_th_1_span_8_Template"),__name(TorrentComponent_ng_container_22_th_1_span_9_Template,"TorrentComponent_ng_container_22_th_1_span_9_Template"),__name(TorrentComponent_ng_container_22_th_1_span_10_Template,"TorrentComponent_ng_container_22_th_1_span_10_Template"),__name(TorrentComponent_ng_container_22_th_1_span_11_Template,"TorrentComponent_ng_container_22_th_1_span_11_Template"),__name(TorrentComponent_ng_container_22_th_1_Template,"TorrentComponent_ng_container_22_th_1_Template"),__name(TorrentComponent_ng_container_22_td_2_span_2_Template,"TorrentComponent_ng_container_22_td_2_span_2_Template"),__name(TorrentComponent_ng_container_22_td_2_span_3_Template,"TorrentComponent_ng_container_22_td_2_span_3_Template"),__name(TorrentComponent_ng_container_22_td_2_span_4_Template,"TorrentComponent_ng_container_22_td_2_span_4_Template"),__name(TorrentComponent_ng_container_22_td_2_span_5_Template,"TorrentComponent_ng_container_22_td_2_span_5_Template"),__name(TorrentComponent_ng_container_22_td_2_span_6_Template,"TorrentComponent_ng_container_22_td_2_span_6_Template"),__name(TorrentComponent_ng_container_22_td_2_span_7_Template,"TorrentComponent_ng_container_22_td_2_span_7_Template"),__name(TorrentComponent_ng_container_22_td_2_span_8_Template,"TorrentComponent_ng_container_22_td_2_span_8_Template"),__name(TorrentComponent_ng_container_22_td_2_span_9_Template,"TorrentComponent_ng_container_22_td_2_span_9_Template"),__name(TorrentComponent_ng_container_22_td_2_span_10_Template,"TorrentComponent_ng_container_22_td_2_span_10_Template"),__name(TorrentComponent_ng_container_22_td_2_span_11_Template,"TorrentComponent_ng_container_22_td_2_span_11_Template"),__name(TorrentComponent_ng_container_22_td_2_Template,"TorrentComponent_ng_container_22_td_2_Template"),__name(TorrentComponent_ng_container_22_Template,"TorrentComponent_ng_container_22_Template"),__name(TorrentComponent_td_24_p_6_Template,"TorrentComponent_td_24_p_6_Template"),__name(TorrentComponent_td_24_p_7_Template,"TorrentComponent_td_24_p_7_Template"),__name(TorrentComponent_td_24_li_11_Template,"TorrentComponent_td_24_li_11_Template"),__name(TorrentComponent_td_24_button_21_Template,"TorrentComponent_td_24_button_21_Template"),__name(TorrentComponent_td_24_button_22_Template,"TorrentComponent_td_24_button_22_Template"),__name(TorrentComponent_td_24_mat_list_option_27_Template,"TorrentComponent_td_24_mat_list_option_27_Template"),__name(TorrentComponent_td_24_Template,"TorrentComponent_td_24_Template"),__name(TorrentComponent_tr_25_Template,"TorrentComponent_tr_25_Template"),__name(TorrentComponent_tr_26_Template,"TorrentComponent_tr_26_Template"),__name(TorrentComponent_tr_27_Template,"TorrentComponent_tr_27_Template"),__name(TorrentComponent_tr_28_Template,"TorrentComponent_tr_28_Template");const _c0=__name(function(){return["expandedDetail"]},"_c0");class TorrentComponent{constructor(snackBar,clipboard,gs,torrent,toast,ds,ss,bs){this.snackBar=snackBar,this.clipboard=clipboard,this.gs=gs,this.torrent=torrent,this.toast=toast,this.ds=ds,this.ss=ss,this.bs=bs,this.isProcessing=!1,this.magnetHash=null,this.torrentsGraph={},this.tableDataColumn=["name","length","downloaded","uploaded","progress","downloadSpeed","uploadSpeed","timeRemaining","numPeers","ratio"],this.files=[],this.subsDialog=null,this.subsUser=null,this.subsTableDataRow=null,this.timedOut=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get ENV(){return environment_1.environment}get TORRENT(){return this.torrent}ngOnInit(){this.dataSource=new table_1.MatTableDataSource,this.gs.isBrowser&&(this.dataSource.sort=this.sort,this.subsTableDataRow=this.torrent.tableDataRow.subscribe({next:tableDataRow=>{this.dataSource.data=tableDataRow,this.refreshAllGraph()}}),this.reviveTorrent())}ngOnDestroy(){var _a,_b,_c,_d,_e;null===(_b=null===(_a=this.sort)||void 0===_a?void 0:_a.sortChange)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsDialog)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsUser)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsTableDataRow)||void 0===_e||_e.unsubscribe(),this.timedOut&&(clearTimeout(this.timedOut),this.timedOut=null)}copyMagnetHashToClipboard(magnetHash){this.clipboard.copy(magnetHash)&&this.snackBar.open("Magnet Link Hash :: Telah Di Salin Pada Clipboard","Ok")}toggleExpanded(row){this.gs.log("[TORRENT_CLICKED]",row),this.torrent.expandedRow=this.torrent.expandedRow===row?null:row,this.refreshGraph(row)}saveFile(file2){file2.downloaded/file2.length>=1?(this.bs.busy(),file2.getBlobURL((err,blobUrl)=>{err||(this.gs.log("[TORRENT_FILE_BLOBURL]",blobUrl),(0,file_saver_1.saveAs)(blobUrl,file2.name),this.bs.idle())})):this.toast.info("Berkas Sedang Dalam Proses Unduhan!","Yah, File Belum Siap!",null,!0)}reviveTorrent(){this.torrent.resurrectFiles((error,result)=>{this.refreshAllGraph()})}resumeTorrent(torrent){this.torrent.resumeTorrent(torrent.infoHash,error=>{this.refreshAllGraph()})}pauseTorrent(torrent){this.torrent.pauseTorrent(torrent.infoHash,error=>{error||this.gs.log("[TORRENT_FILE_PAUSE_SUCCESS]",torrent.infoHash),this.refreshAllGraph()})}removeTorrent(torrent){this.torrent.removeTorrent(torrent.infoHash,error=>{error||this.gs.log("[TORRENT_FILE_REMOVE_SUCCESS]",torrent.infoHash),this.torrentsGraph[torrent.infoHash].destroy(),delete this.torrentsGraph[torrent.infoHash],this.refreshAllGraph()})}downloadFiles(event){this.isProcessing=!0,this.torrent.downloadFiles(this.magnetHash,(error,result)=>{this.magnetHash=null,this.isProcessing=!1,this.refreshAllGraph()})}uploadFiles(torrentName){this.gs.log("[TORRENT_SEED_USER_INFORMATION]",torrentName),this.isProcessing=!0,this.torrent.uploadFiles(torrentName,this.files,(error,result)=>{this.isProcessing=!1,this.refreshAllGraph()})}prepareFilesList(berkas){this.files=[];for(const b2 of berkas)this.files.push(b2);const userInput={torrent_name:{inputLabel:"Nama Torrent",inputPlaceholder:`Torrent # ${this.ss.mySocket.id} @ ${(new Date).toUTCString()}`,inputValue:null,inputRequired:!0}};1===this.files.length?(userInput.torrent_name.inputPlaceholder=this.files[0].name,this.uploadFiles(userInput.torrent_name.inputPlaceholder)):this.files.length>1&&(this.subsDialog=this.ds.openInputDialog({data:{title:"Silahkan Masukkan Nama Untuk Torrent Kamu!",input:userInput,confirmText:"Ya, Mulai SEED",cancelText:"Tidak, Batal"}}).afterClosed().subscribe({next:re=>{this.gs.log("[INPUT_DIALOG_CLOSED]",re),re&&this.uploadFiles(re.torrent_name),this.subsDialog.unsubscribe()}}))}onFileDropped($event){this.prepareFilesList($event)}fileBrowseHandler($event){this.prepareFilesList($event.target.files)}initGraph(torrent){!this.torrentsGraph[torrent.infoHash]&&this.dataSource.data.length>0&&(this.gs.log("[TORRENT_WIRE_INIT_GRAPH]",torrent),this.torrentsGraph[torrent.infoHash]=new P2PGraph(`.graphP2p-${torrent.infoHash}`),this.torrentsGraph[torrent.infoHash].add({id:this.torrent.webClient.peerId,me:!0,name:"Kamu!"}))}addAllGraph(torrent){this.gs.log("[TORRENT_WIRE_RELOAD_GRAPH]",torrent);for(const w of torrent.wires){let wireName=w.peerId||"Anonim!";w.remoteAddress&&w.remotePort&&(wireName=`${w.remoteAddress}:${w.remotePort}`),this.torrentsGraph[torrent.infoHash].add({id:w.peerId,name:wireName}),this.torrentsGraph[torrent.infoHash].connect(this.torrent.webClient.peerId,w.peerId)}}deleteAllGraph(torrent){this.gs.log("[TORRENT_WIRE_DELETE_GRAPH]",torrent);const torrentWireList=this.torrentsGraph[torrent.infoHash].list().filter(w=>w.id!==this.torrent.webClient.peerId);for(const w of torrentWireList)this.torrentsGraph[torrent.infoHash].disconnect(this.torrent.webClient.peerId,w.id),this.torrentsGraph[torrent.infoHash].remove(w.id)}refreshGraph(torrent){this.gs.log("[TORRENT_WIRE_REFRESH_GRAPH]",torrent),this.torrentsGraph[torrent.infoHash]?(this.deleteAllGraph(torrent),this.addAllGraph(torrent)):this.initGraph(torrent)}refreshAllGraph(){for(const d of this.dataSource.data)this.timedOut=setTimeout(()=>{this.refreshGraph(d)},1234)}}__name(TorrentComponent,"TorrentComponent"),exports2.TorrentComponent=TorrentComponent,TorrentComponent.\u0275fac=__name(function(t){return new(t||TorrentComponent)(i0.\u0275\u0275directiveInject(i1.MatSnackBar),i0.\u0275\u0275directiveInject(i2.Clipboard),i0.\u0275\u0275directiveInject(i3.GlobalService),i0.\u0275\u0275directiveInject(i4.TorrentService),i0.\u0275\u0275directiveInject(i5.ToastService),i0.\u0275\u0275directiveInject(i6.DialogService),i0.\u0275\u0275directiveInject(i7.StatsServerService),i0.\u0275\u0275directiveInject(i8.BusyService))},"TorrentComponent_Factory"),TorrentComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:TorrentComponent,selectors:[["app-torrent"]],viewQuery:__name(function(rf,ctx){if(1&rf&&i0.\u0275\u0275viewQuery(sort_1.MatSort,7),2&rf){let _t;i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.sort=_t.first)}},"TorrentComponent_Query"),decls:37,vars:13,consts:[["appDragDrop","",1,"h-100",3,"fileDropped"],[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12"],[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],["hintLabel","Isi Lalu Tekan 'Enter' Untuk Mencari Torrent ...",1,"col-12","col-md-6","col-lg-4","px-3","mb-3",3,"color"],["matInput","","placeholder","Ex. magnet:123qwe...!@#",3,"ngModel","disabled","keyup.enter","ngModelChange"],["input",""],["matSuffix",""],["color","warn","mode","indeterminate",4,"ngIf"],[1,"row","mx-2"],[1,"col-12",2,"overflow-x","auto"],["mat-table","","matSort","","multiTemplateDataRows","",1,"bg-transparent",3,"dataSource"],[3,"matColumnDef",4,"ngFor","ngForOf"],["matColumnDef","expandedDetail"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","element-row",3,"expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","detail-row",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["type","file","id","fileDropRef","multiple","",2,"visibility","hidden",3,"disabled","change"],["fileDropRef",""],["mat-fab","","color","warn","matTooltip","Seed Berkas",1,"me-3","mb-5","fab-button","animate__animated","animate__bounce","animate__infinite","animate__slow",2,"position","fixed","bottom","0","right","0",3,"disabled","click"],["color","warn","mode","indeterminate"],[3,"matColumnDef"],["mat-header-cell","","class","px-3 text-center","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","px-3 text-center","style","cursor: pointer;",4,"matCellDef"],["mat-header-cell","","mat-sort-header","",1,"px-3","text-center"],[1,"m-0"],[3,"color",4,"ngIf"],["mat-cell","",1,"px-3","text-center",2,"cursor","pointer"],[4,"ngIf"],["mat-cell",""],[1,"element-detail"],[1,"py-3","row"],[1,"col-3"],[1,"col-9"],["class","px-2 text-truncate",4,"ngIf"],[1,"px-2","text-truncate"],[1,"text-success","m-0"],[4,"ngFor","ngForOf"],[1,"p-2"],["mat-stroked-button","",1,"m-1","text-warning",3,"click"],[1,"me-1"],["mat-stroked-button","","class","m-1 text-warning",3,"click",4,"ngIf"],[1,"px-2"],["mat-subheader","",1,"p-0"],[3,"multiple"],["class","h-100",4,"ngFor","ngForOf"],[1,"text-success"],["matTooltip","Klik Untuk Menyalin!",1,"text-primary","text-decoration-none",3,"click"],[1,"h-100"],["mat-list-icon","",1,"ps-3"],[2,"cursor","pointer",3,"click"],[1,"text-warning"],["mat-header-row",""],["mat-row","",1,"element-row",3,"click"],["mat-row","",1,"detail-row"],[1,"mat-row"],[1,"mat-cell","text-center","align-items-center","p-0",2,"background-image","url('/assets/img/404/no-data.png')","background-size","contain","background-position","center","background-repeat","no-repeat","height","256px"],[1,"row","align-items-center","h-100"],[1,"col-8","mx-auto","text-light","text-center","rounded","py-3",2,"background-color","rgba(128, 128, 128, 0.875)"]],template:__name(function(rf,ctx){if(1&rf){const _r83=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",0),i0.\u0275\u0275listener("fileDropped",__name(function($event){return ctx.onFileDropped($event)},"TorrentComponent_Template_div_fileDropped_0_listener")),i0.\u0275\u0275element(1,"app-notifications"),i0.\u0275\u0275elementStart(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"h2",6)(8,"b",7),i0.\u0275\u0275text(9,"Web-SocketRTC Torrent"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(10,"div",3)(11,"mat-form-field",8)(12,"mat-label"),i0.\u0275\u0275text(13,"Unduh Dari Info Hash / Magnet URI"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(14,"input",9,10),i0.\u0275\u0275listener("keyup.enter",__name(function($event){return ctx.downloadFiles($event)},"TorrentComponent_Template_input_keyup_enter_14_listener"))("ngModelChange",__name(function($event){return ctx.magnetHash=$event},"TorrentComponent_Template_input_ngModelChange_14_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(16,"mat-icon",11),i0.\u0275\u0275text(17,"cloud_download"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(18,TorrentComponent_mat_progress_bar_18_Template,1,0,"mat-progress-bar",12),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(19,"div",13)(20,"div",14)(21,"table",15),i0.\u0275\u0275template(22,TorrentComponent_ng_container_22_Template,3,1,"ng-container",16),i0.\u0275\u0275elementContainerStart(23,17),i0.\u0275\u0275template(24,TorrentComponent_td_24_Template,28,12,"td",18),i0.\u0275\u0275elementContainerEnd(),i0.\u0275\u0275template(25,TorrentComponent_tr_25_Template,1,0,"tr",19),i0.\u0275\u0275template(26,TorrentComponent_tr_26_Template,1,2,"tr",20),i0.\u0275\u0275template(27,TorrentComponent_tr_27_Template,1,0,"tr",21),i0.\u0275\u0275template(28,TorrentComponent_tr_28_Template,6,1,"tr",22),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(29,"div",3)(30,"marquee"),i0.\u0275\u0275text(31),i0.\u0275\u0275elementEnd()()()()()()()(),i0.\u0275\u0275elementStart(32,"input",23,24),i0.\u0275\u0275listener("change",__name(function($event){return ctx.fileBrowseHandler($event)},"TorrentComponent_Template_input_change_32_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(34,"button",25),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r83),i0.\u0275\u0275reference(33).click()},"TorrentComponent_Template_button_click_34_listener")),i0.\u0275\u0275elementStart(35,"mat-icon"),i0.\u0275\u0275text(36,"cloud_upload"),i0.\u0275\u0275elementEnd()()()}2&rf&&(i0.\u0275\u0275advance(11),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngModel",ctx.magnetHash)("disabled",ctx.isProcessing),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",ctx.isProcessing),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("dataSource",ctx.dataSource),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx.tableDataColumn),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("matHeaderRowDef",ctx.tableDataColumn),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matRowDefColumns",ctx.tableDataColumn),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matRowDefColumns",i0.\u0275\u0275pureFunction0(12,_c0)),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate1("Terhubung Dengan Tracker :: ",ctx.ENV.torrent.trackerAnnounce.join(" :: "),""),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",ctx.isProcessing),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("disabled",ctx.isProcessing))},"TorrentComponent_Template"),directives:[i9.DragDropDirective,i10.NotificationsComponent,i11.MatFormField,i11.MatLabel,i12.MatInput,i13.DefaultValueAccessor,i13.NgControlStatus,i13.NgModel,i14.MatIcon,i11.MatSuffix,i15.NgIf,i16.MatProgressBar,i17.MatTable,i18.MatSort,i15.NgForOf,i17.MatColumnDef,i17.MatHeaderCellDef,i17.MatHeaderCell,i18.MatSortHeader,i17.MatCellDef,i17.MatCell,i19.MatTooltip,i20.MatButton,i21.MatListSubheaderCssMatStyler,i21.MatSelectionList,i21.MatListOption,i21.MatListIconCssMatStyler,i17.MatHeaderRowDef,i17.MatHeaderRow,i17.MatRowDef,i17.MatRow,i17.MatNoDataRow],pipes:[i22.BytesPipe,i15.DecimalPipe],styles:[".p2p-graph[_ngcontent-%COMP%]{background-color:#8d8d8d80!important}tr.detail-row[_ngcontent-%COMP%]{height:0}tr.element-row[_ngcontent-%COMP%]:not(.expanded-row):hover{background-color:#ffffffdf}.element-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom-width:0}.element-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex}.fileover[_ngcontent-%COMP%]{animation:shake 1s;animation-iteration-count:infinite}@keyframes shake{0%{transform:translate(1px,1px) rotate(0)}10%{transform:translate(-1px,-2px) rotate(-1deg)}20%{transform:translate(-3px) rotate(1deg)}30%{transform:translate(3px,2px) rotate(0)}40%{transform:translate(1px,-1px) rotate(1deg)}50%{transform:translate(-1px,2px) rotate(-1deg)}60%{transform:translate(-3px,1px) rotate(0)}70%{transform:translate(3px,1px) rotate(-1deg)}80%{transform:translate(-1px,-1px) rotate(1deg)}90%{transform:translate(1px,2px) rotate(0)}to{transform:translate(1px,-2px) rotate(-1deg)}}"],data:{animation:[(0,animations_1.trigger)("detailExpand",[(0,animations_1.state)("collapsed",(0,animations_1.style)({height:"0px",minHeight:"0"})),(0,animations_1.state)("expanded",(0,animations_1.style)({height:"*"})),(0,animations_1.transition)("expanded <=> collapsed",(0,animations_1.animate)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})},39692:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.TorrentModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),torrent_component_1=__webpack_require__2(41088),shared_material_module_1=__webpack_require__2(20210),custom_pipe_module_1=__webpack_require__2(67355),notifications_module_1=__webpack_require__2(88613),material_chip_module_1=__webpack_require__2(54946),custom_directive_module_1=__webpack_require__2(17956),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:torrent_component_1.TorrentComponent}]);class TorrentModule{}__name(TorrentModule,"TorrentModule"),exports2.TorrentModule=TorrentModule,TorrentModule.\u0275fac=__name(function(t){return new(t||TorrentModule)},"TorrentModule_Factory"),TorrentModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:TorrentModule}),TorrentModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),forms_1.FormsModule,custom_directive_module_1.CustomDirectivesModule,notifications_module_1.NotificationsModule,shared_material_module_1.SharedMaterialModule,material_chip_module_1.MaterialChipModule,custom_pipe_module_1.CustomPipeModule]]})},12598:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UserDetailComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=(__webpack_require__2(74202),__webpack_require__2(15934)),req_res_model_1=__webpack_require__2(14249),i0=(__webpack_require__2(80855),__webpack_require__2(33e3),__webpack_require__2(96382),__webpack_require__2(8058),__webpack_require__2(18745),__webpack_require__2(28381),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(96382)),i5=tslib_1.__importStar(__webpack_require__2(18745)),i6=tslib_1.__importStar(__webpack_require__2(8058)),i7=tslib_1.__importStar(__webpack_require__2(28381)),i8=tslib_1.__importStar(__webpack_require__2(69808)),i9=tslib_1.__importStar(__webpack_require__2(25245)),i10=tslib_1.__importStar(__webpack_require__2(87238)),i11=tslib_1.__importStar(__webpack_require__2(14623)),i12=tslib_1.__importStar(__webpack_require__2(47423)),i13=tslib_1.__importStar(__webpack_require__2(90508)),i14=tslib_1.__importStar(__webpack_require__2(97567)),i15=tslib_1.__importStar(__webpack_require__2(16647)),i16=tslib_1.__importStar(__webpack_require__2(18757));function UserDetailComponent_div_0_mat_icon_8_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",28),i0.\u0275\u0275text(1,"handyman"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r1=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275propertyInterpolate("matTooltip",ctx_r1.userData.role)}}function UserDetailComponent_div_0_mat_icon_9_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",28),i0.\u0275\u0275text(1,"security"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r2=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275propertyInterpolate("matTooltip",ctx_r2.userData.role)}}function UserDetailComponent_div_0_mat_icon_10_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",28),i0.\u0275\u0275text(1,"rate_review"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275propertyInterpolate("matTooltip",ctx_r3.userData.role)}}function UserDetailComponent_div_0_mat_icon_11_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",29),i0.\u0275\u0275text(1,"verified"),i0.\u0275\u0275elementEnd())}function UserDetailComponent_div_0_mat_icon_12_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",28),i0.\u0275\u0275text(1,"lock"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r5=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275propertyInterpolate1("matTooltip","Banned :: ",ctx_r5.userBanned.reason,"")}}function UserDetailComponent_div_0_mat_icon_13_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",28),i0.\u0275\u0275text(1,"military_tech"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r6=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275propertyInterpolate1("matTooltip","",ctx_r6.accountAge," Years of Service")}}function UserDetailComponent_div_0_mat_icon_14_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",30),i0.\u0275\u0275text(1,"volunteer_activism"),i0.\u0275\u0275elementEnd())}function UserDetailComponent_div_0_mat_icon_15_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",31),i0.\u0275\u0275text(1,"sensor_occupied"),i0.\u0275\u0275elementEnd())}function UserDetailComponent_div_0_div_16_mat_list_option_9_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option",40),i0.\u0275\u0275element(1,"img",41),i0.\u0275\u0275elementStart(2,"a",42)(3,"span",43),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"span",44),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd()()()),2&rf){const f_r15=ctx.$implicit;i0.\u0275\u0275propertyInterpolate1("routerLink","/fansub/",f_r15.fansub_.slug,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",f_r15.fansub_.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",f_r15.keterangan," "),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(f_r15.fansub_.slug)}}function UserDetailComponent_div_0_div_16_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",24)(1,"div",32)(2,"div",33)(3,"h2",34)(4,"b",35),i0.\u0275\u0275text(5,"Group Fansub"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(6,"div",36)(7,"div",37)(8,"mat-selection-list",38),i0.\u0275\u0275template(9,UserDetailComponent_div_0_div_16_mat_list_option_9_Template,7,4,"mat-list-option",39),i0.\u0275\u0275elementEnd()()()()()),2&rf){const ctx_r9=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(8),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r9.groupFansub)}}function UserDetailComponent_div_0_button_23_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"button",45)(1,"mat-icon",21),i0.\u0275\u0275text(2,"accessibility_new"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r10=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",ctx_r10.userData.id," ")}}function UserDetailComponent_div_0_button_24_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"button",46)(1,"mat-icon",21),i0.\u0275\u0275text(2,"access_time"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3),i0.\u0275\u0275pipe(4,"date"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r11=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",i0.\u0275\u0275pipeBind2(4,1,ctx_r11.userData.created_at,"d/M/yyyy, hh:mm:ss a z")," ")}}function UserDetailComponent_div_0_div_29_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",32),i0.\u0275\u0275element(1,"app-material-expansion-panel",47),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r12=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("panelData",ctx_r12.panelData)}}function UserDetailComponent_div_0_div_30_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",32)(1,"div",24),i0.\u0275\u0275element(2,"app-report"),i0.\u0275\u0275elementEnd()())}function UserDetailComponent_div_0_Template(rf,ctx){if(1&rf){const _r17=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),i0.\u0275\u0275element(6,"img",7),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"div",8),i0.\u0275\u0275template(8,UserDetailComponent_div_0_mat_icon_8_Template,2,1,"mat-icon",9),i0.\u0275\u0275template(9,UserDetailComponent_div_0_mat_icon_9_Template,2,1,"mat-icon",9),i0.\u0275\u0275template(10,UserDetailComponent_div_0_mat_icon_10_Template,2,1,"mat-icon",9),i0.\u0275\u0275template(11,UserDetailComponent_div_0_mat_icon_11_Template,2,0,"mat-icon",10),i0.\u0275\u0275template(12,UserDetailComponent_div_0_mat_icon_12_Template,2,1,"mat-icon",9),i0.\u0275\u0275template(13,UserDetailComponent_div_0_mat_icon_13_Template,2,1,"mat-icon",9),i0.\u0275\u0275template(14,UserDetailComponent_div_0_mat_icon_14_Template,2,0,"mat-icon",11),i0.\u0275\u0275template(15,UserDetailComponent_div_0_mat_icon_15_Template,2,0,"mat-icon",12),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(16,UserDetailComponent_div_0_div_16_Template,10,2,"div",13),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(17,"div",14)(18,"div",15)(19,"h1",16)(20,"b"),i0.\u0275\u0275text(21),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(22,"div",17),i0.\u0275\u0275template(23,UserDetailComponent_div_0_button_23_Template,4,1,"button",18),i0.\u0275\u0275template(24,UserDetailComponent_div_0_button_24_Template,5,4,"button",19),i0.\u0275\u0275elementStart(25,"button",20)(26,"mat-icon",21),i0.\u0275\u0275text(27,"email"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(28),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(29,UserDetailComponent_div_0_div_29_Template,2,1,"div",22),i0.\u0275\u0275template(30,UserDetailComponent_div_0_div_30_Template,3,0,"div",22),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(31,"div",23)(32,"div",24)(33,"app-material-tab",25),i0.\u0275\u0275listener("tableRowClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r17),i0.\u0275\u0275nextContext().openBerkas($event)},"UserDetailComponent_div_0_Template_app_material_tab_tableRowClicked_33_listener"))("paginatorClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r17),i0.\u0275\u0275nextContext().onPaginatorClicked($event)},"UserDetailComponent_div_0_Template_app_material_tab_paginatorClicked_33_listener"))("serverSideFilter",__name(function($event){return i0.\u0275\u0275restoreView(_r17),i0.\u0275\u0275nextContext().onServerSideFilter($event)},"UserDetailComponent_div_0_Template_app_material_tab_serverSideFilter_33_listener"))("serverSideOrder",__name(function($event){return i0.\u0275\u0275restoreView(_r17),i0.\u0275\u0275nextContext().onServerSideOrder($event)},"UserDetailComponent_div_0_Template_app_material_tab_serverSideOrder_33_listener")),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275element(34,"div",26)(35,"div",27),i0.\u0275\u0275elementEnd()}if(2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(6),i0.\u0275\u0275propertyInterpolate("src",ctx_r0.userData.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r0.userData.role===ctx_r0.ADMIN),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.userData.role===ctx_r0.MODERATOR),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.userData.role===ctx_r0.FANSUBBER),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.userData.verified),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.userBanned),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.accountAge>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.count>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.userData.private),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.groupFansub.length>0),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate(ctx_r0.userData.kartu_tanda_penduduk_.nama),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r0.userData.id),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.userData.created_at),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate2(" ",ctx_r0.userData.username,"@",ctx_r0.ENV.domain," "),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.panelData.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",null==ctx_r0.SS.mySocket?null:ctx_r0.SS.mySocket.id),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("tabData",ctx_r0.tabData)("count",ctx_r0.count)("serverSide",!0),i0.\u0275\u0275advance(1),i0.\u0275\u0275styleProp("background-image","url("+ctx_r0.userData.profile_.cover_url+")")}}__name(UserDetailComponent_div_0_mat_icon_8_Template,"UserDetailComponent_div_0_mat_icon_8_Template"),__name(UserDetailComponent_div_0_mat_icon_9_Template,"UserDetailComponent_div_0_mat_icon_9_Template"),__name(UserDetailComponent_div_0_mat_icon_10_Template,"UserDetailComponent_div_0_mat_icon_10_Template"),__name(UserDetailComponent_div_0_mat_icon_11_Template,"UserDetailComponent_div_0_mat_icon_11_Template"),__name(UserDetailComponent_div_0_mat_icon_12_Template,"UserDetailComponent_div_0_mat_icon_12_Template"),__name(UserDetailComponent_div_0_mat_icon_13_Template,"UserDetailComponent_div_0_mat_icon_13_Template"),__name(UserDetailComponent_div_0_mat_icon_14_Template,"UserDetailComponent_div_0_mat_icon_14_Template"),__name(UserDetailComponent_div_0_mat_icon_15_Template,"UserDetailComponent_div_0_mat_icon_15_Template"),__name(UserDetailComponent_div_0_div_16_mat_list_option_9_Template,"UserDetailComponent_div_0_div_16_mat_list_option_9_Template"),__name(UserDetailComponent_div_0_div_16_Template,"UserDetailComponent_div_0_div_16_Template"),__name(UserDetailComponent_div_0_button_23_Template,"UserDetailComponent_div_0_button_23_Template"),__name(UserDetailComponent_div_0_button_24_Template,"UserDetailComponent_div_0_button_24_Template"),__name(UserDetailComponent_div_0_div_29_Template,"UserDetailComponent_div_0_div_29_Template"),__name(UserDetailComponent_div_0_div_30_Template,"UserDetailComponent_div_0_div_30_Template"),__name(UserDetailComponent_div_0_Template,"UserDetailComponent_div_0_Template");class UserDetailComponent{constructor(router,activatedRoute,gs,bs,fs,pi,us,ss){this.router=router,this.activatedRoute=activatedRoute,this.gs=gs,this.bs=bs,this.fs=fs,this.pi=pi,this.us=us,this.ss=ss,this.username="",this.userData=null,this.userBanned=null,this.groupFansub=[],this.berkasData=[],this.panelData=[],this.tabData=[{name:"Berkas",icon:"file_copy",type:"table",data:{column:["Proyek","Nama Berkas","Tanggal","Kunjungan","Pemilik"],row:[]}}],this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.subsUser=null,this.subsBerkas=null,this.subsBanned=null,this.subsParam=null,this.subsGroupGet=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get SS(){return this.ss}ngOnDestroy(){var _a,_b,_c,_d,_e;null===(_a=this.subsUser)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsBerkas)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsBanned)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsParam)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsGroupGet)||void 0===_e||_e.unsubscribe()}get ADMIN(){return req_res_model_1.RoleModel.ADMIN}get MODERATOR(){return req_res_model_1.RoleModel.MODERATOR}get FANSUBBER(){return req_res_model_1.RoleModel.FANSUBBER}get accountAge(){return Math.abs(new Date((new Date).getTime()-new Date(this.userData.created_at).getTime()).getUTCFullYear()-1970)}get ENV(){return environment_1.environment}ngOnInit(){this.subsParam=this.activatedRoute.params.subscribe({next:p=>{this.username=p.username,this.bs.busy(),this.subsUser=this.us.getUserData(this.username).subscribe({next:res=>{this.gs.log("[USER_DETAIL_SUCCESS]",res),this.userData=res.result,this.pi.updatePageMetaData(`${this.userData.kartu_tanda_penduduk_.nama}`,`${this.userData.profile_.description}`,`${this.userData.username}`,this.userData.image_url,this.userData.username),this.bs.idle(),this.gs.isBrowser&&(this.panelData=[],this.panelData.push({title:"Tentang Saya",icon:"info",text:this.userData.profile_.description}),this.fs.initializeFab("edit",null,"Ubah Profil",`/user/${this.username}/edit`,!1),this.checkBanned(),this.getUserGroup(),this.getUserBerkas())},error:err=>{this.gs.log("[USER_DETAIL_ERROR]",err,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:"/"}})}})}})}checkBanned(){this.bs.busy(),this.subsBanned=this.us.checkBanned(this.userData.username).subscribe({next:res=>{this.gs.log("[USER_CHECK_BANNED_SUCCESS]",res),Object.keys(res.results[this.userData.username]).length>0&&(this.userBanned=res.results[this.userData.username]),this.bs.idle()},error:err=>{this.gs.log("[USER_CHECK_BANNED_ERROR]",err,"error"),this.bs.idle()}})}getUserBerkas(){this.bs.busy(),this.subsBerkas=this.us.getUserBerkas(this.username,this.q,this.page,this.row,this.sort,this.order).subscribe({next:res=>{this.gs.log("[USER_BERKAS_LIST_SUCCESS]",res),this.count=res.count,this.berkasData=[];for(const r of res.results)this.berkasData.push({id:r.id,foto:r.user_.image_url,Proyek:r.project_type_.name,Tanggal:r.created_at,Kunjungan:r.view_count,Pemilik:r.user_.username,"Nama Berkas":r.name});this.tabData[0].data.row=this.berkasData,this.bs.idle()},error:err=>{this.gs.log("[USER_BERKAS_LIST_ERROR]",err,"error"),this.bs.idle()}})}openBerkas(data){this.gs.log("[USER_BERKAS_LIST_CLICK_BERKAS]",data),this.router.navigateByUrl(`/berkas/${data.id}`)}onPaginatorClicked(data){this.gs.log("[USER_BERKAS_LIST_CLICK_PAGINATOR]",data),this.page=data.pageIndex+1,this.row=data.pageSize,this.getUserBerkas()}onServerSideFilter(data){this.gs.log("[USER_BERKAS_LIST_ENTER_FILTER]",data),this.q=data,this.getUserBerkas()}onServerSideOrder(data){this.gs.log("[USER_BERKAS_CLICK_ORDER]",data),this.q=data.q,this.sort=data.active,this.order=data.direction,this.getUserBerkas()}getUserGroup(){this.bs.busy(),this.subsGroupGet=this.us.getUserGroup(this.username).subscribe({next:res=>{this.gs.log("[USER_DETAIL_GROUP_LIST_SUCCESS]",res),this.groupFansub=res.results,this.bs.idle()},error:err=>{this.gs.log("[USER_DETAIL_GROUP_LIST_ERROR]",err,"error"),this.bs.idle()}})}}__name(UserDetailComponent,"UserDetailComponent"),exports2.UserDetailComponent=UserDetailComponent,UserDetailComponent.\u0275fac=__name(function(t){return new(t||UserDetailComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.FabService),i0.\u0275\u0275directiveInject(i5.PageInfoService),i0.\u0275\u0275directiveInject(i6.UserService),i0.\u0275\u0275directiveInject(i7.StatsServerService))},"UserDetailComponent_Factory"),UserDetailComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:UserDetailComponent,selectors:[["app-user-detail"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"profile-info","align-items-center"],[1,"row","py-3","px-2"],[1,"col-md-4","col-xl-3","px-3"],[1,"row","sticky-top","pt-3"],[1,"col-12","pt-4"],[1,"profile-image",3,"src"],[1,"col-12","my-3"],["class","mx-1","style","cursor: pointer;",3,"matTooltip",4,"ngIf"],["class","mx-1","matTooltip","Terverifikasi","style","cursor: pointer;",4,"ngIf"],["class","mx-1","matTooltip","Sharing is Caring","style","cursor: pointer;",4,"ngIf"],["class","mx-1","matTooltip","Akun Private","style","cursor: pointer;",4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-md-8","col-xl-9","pt-3"],[1,"row","py-3","px-0","profile-height-large"],[1,"m-0","mt-auto"],[1,"row","p-3"],["mat-stroked-button","","matLine","","class","col-12 col-md-4 text-truncate","matTooltip","Nomor ID Pengguna","color","accent","style","overflow: hidden;",4,"ngIf"],["mat-stroked-button","","matLine","","class","col-12 col-md-8 text-truncate","matTooltip","Tanggal Bergabung","color","accent","style","overflow: hidden;",4,"ngIf"],["mat-stroked-button","","matLine","","matTooltip","Alamat Surel","color","accent",1,"col","text-truncate",2,"overflow","hidden"],[1,"me-1"],["class","row py-3",4,"ngIf"],[1,"row"],[1,"col-12"],[3,"tabData","count","serverSide","tableRowClicked","paginatorClicked","serverSideFilter","serverSideOrder"],[1,"profile-banner","profile-banner-1","align-items-center"],[1,"profile-banner","profile-banner-2","align-items-center"],[1,"mx-1",2,"cursor","pointer",3,"matTooltip"],["matTooltip","Terverifikasi",1,"mx-1",2,"cursor","pointer"],["matTooltip","Sharing is Caring",1,"mx-1",2,"cursor","pointer"],["matTooltip","Akun Private",1,"mx-1",2,"cursor","pointer"],[1,"row","py-3"],[1,"col-12","pt-3","sticky-top","bg-bifeldy"],[1,"border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12",2,"max-height","288px"],[1,"h-100",2,"overflow-y","auto"],[3,"multiple"],["class","h-100",3,"routerLink",4,"ngFor","ngForOf"],[1,"h-100",3,"routerLink"],["matListAvatar","",1,"ms-3",2,"border-radius","0",3,"src"],[1,"text-truncate","text-decoration-none"],[1,"bg-bifeldy","px-2","me-1","text-warning",2,"position","absolute","right","0"],[1,"text-success"],["mat-stroked-button","","matLine","","matTooltip","Nomor ID Pengguna","color","accent",1,"col-12","col-md-4","text-truncate",2,"overflow","hidden"],["mat-stroked-button","","matLine","","matTooltip","Tanggal Bergabung","color","accent",1,"col-12","col-md-8","text-truncate",2,"overflow","hidden"],[3,"panelData"]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275template(0,UserDetailComponent_div_0_Template,36,22,"div",0),2&rf&&i0.\u0275\u0275property("ngIf",ctx.userData)},"UserDetailComponent_Template"),directives:[i8.NgIf,i9.MatIcon,i10.MatTooltip,i11.MatSelectionList,i8.NgForOf,i11.MatListOption,i1.RouterLink,i11.MatListAvatarCssMatStyler,i12.MatButton,i13.MatLine,i14.MaterialExpansionPanelComponent,i15.ReportComponent,i16.MaterialTabComponent],pipes:[i8.DatePipe],styles:[".profile-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;opacity:.75}.profile-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.profile-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.profile-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}.profile-image[_ngcontent-%COMP%]{width:50%}@media (min-width: 768px){.profile-height-large[_ngcontent-%COMP%]{height:100px}.profile-image[_ngcontent-%COMP%]{width:100%}}"]})},72661:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UserEditComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=(__webpack_require__2(74202),__webpack_require__2(93075)),constants_1=__webpack_require__2(26271),i0=(__webpack_require__2(33e3),__webpack_require__2(8058),__webpack_require__2(80855),__webpack_require__2(4137),__webpack_require__2(18745),__webpack_require__2(67902),__webpack_require__2(38379),__webpack_require__2(96925),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(96925)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(8058)),i5=tslib_1.__importStar(__webpack_require__2(18745)),i6=tslib_1.__importStar(__webpack_require__2(93075)),i7=tslib_1.__importStar(__webpack_require__2(67902)),i8=tslib_1.__importStar(__webpack_require__2(80855)),i9=tslib_1.__importStar(__webpack_require__2(4137)),i10=tslib_1.__importStar(__webpack_require__2(38379)),i11=tslib_1.__importStar(__webpack_require__2(69808)),i12=tslib_1.__importStar(__webpack_require__2(67322)),i13=tslib_1.__importStar(__webpack_require__2(21385)),i14=tslib_1.__importStar(__webpack_require__2(25245)),i15=tslib_1.__importStar(__webpack_require__2(47423)),i16=tslib_1.__importStar(__webpack_require__2(32368)),i17=tslib_1.__importStar(__webpack_require__2(87238)),i18=tslib_1.__importStar(__webpack_require__2(77531)),i19=tslib_1.__importStar(__webpack_require__2(29345)),i20=tslib_1.__importStar(__webpack_require__2(23626));function UserEditComponent_form_0_div_17_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r2=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Ukuran Upload Melebihi Batas ",i0.\u0275\u0275pipeBind1(2,1,ctx_r2.imagePhotoLimitExceeded)," !")}}function UserEditComponent_form_0_div_18_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r3.imagePhotoErrorText)}}function UserEditComponent_form_0_div_19_Template(rf,ctx){if(1&rf){const _r17=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",42)(1,"button",43),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r17),i0.\u0275\u0275nextContext(2).submitPhotoImage()},"UserEditComponent_form_0_div_19_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",37),i0.\u0275\u0275text(3,"add_photo_alternate"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Unggah "),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r4=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",ctx_r4.submitted)}}function UserEditComponent_form_0_div_33_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Nama Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function UserEditComponent_form_0_div_34_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Nama Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function UserEditComponent_form_0_div_44_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r8=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Ukuran Upload Melebihi Batas ",i0.\u0275\u0275pipeBind1(2,1,ctx_r8.imageCoverLimitExceeded)," !")}}function UserEditComponent_form_0_div_45_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r9=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r9.imageCoverErrorText)}}function UserEditComponent_form_0_div_46_Template(rf,ctx){if(1&rf){const _r19=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",16)(1,"button",43),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r19),i0.\u0275\u0275nextContext(2).submitCoverImage()},"UserEditComponent_form_0_div_46_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",37),i0.\u0275\u0275text(3,"add_photo_alternate"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Unggah "),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r10=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",ctx_r10.submitted)}}function UserEditComponent_form_0_div_56_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Password Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function UserEditComponent_form_0_div_57_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Password Minimal 8 Huruf"),i0.\u0275\u0275elementEnd())}function UserEditComponent_form_0_div_58_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Password Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function UserEditComponent_form_0_div_67_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Password Minimal 8 Huruf"),i0.\u0275\u0275elementEnd())}function UserEditComponent_form_0_div_68_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Password Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function UserEditComponent_form_0_Template(rf,ctx){if(1&rf){const _r21=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",1),i0.\u0275\u0275listener("submit",__name(function(){return i0.\u0275\u0275restoreView(_r21),i0.\u0275\u0275nextContext().onSubmit()},"UserEditComponent_form_0_Template_form_submit_0_listener")),i0.\u0275\u0275elementStart(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"div",7),i0.\u0275\u0275element(7,"img",8),i0.\u0275\u0275elementStart(8,"mat-form-field",9)(9,"mat-label"),i0.\u0275\u0275text(10,"Profile Image"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(11,"ngx-mat-file-input",10,11),i0.\u0275\u0275listener("change",__name(function($event){i0.\u0275\u0275restoreView(_r21);const _r1=i0.\u0275\u0275reference(12);return i0.\u0275\u0275nextContext().uploadPhotoImage($event,_r1)},"UserEditComponent_form_0_Template_ngx_mat_file_input_change_11_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(13,"mat-icon",12),i0.\u0275\u0275text(14,"image"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(15,"mat-error",13)(16,"small"),i0.\u0275\u0275template(17,UserEditComponent_form_0_div_17_Template,3,3,"div",14),i0.\u0275\u0275template(18,UserEditComponent_form_0_div_18_Template,2,1,"div",14),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(19,UserEditComponent_form_0_div_19_Template,5,1,"div",15),i0.\u0275\u0275elementStart(20,"div",16)(21,"mat-slide-toggle",17),i0.\u0275\u0275text(22," Jadikan Private, Sembunyikan Aktivitas "),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(23,"div",18),i0.\u0275\u0275element(24,"div",19),i0.\u0275\u0275elementStart(25,"div",20)(26,"mat-form-field",21)(27,"mat-label"),i0.\u0275\u0275text(28,"Nama Lengkap"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(29,"input",22),i0.\u0275\u0275elementStart(30,"mat-icon",12),i0.\u0275\u0275text(31,"wysiwyg"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(32,"mat-error"),i0.\u0275\u0275template(33,UserEditComponent_form_0_div_33_Template,2,0,"div",14),i0.\u0275\u0275template(34,UserEditComponent_form_0_div_34_Template,2,0,"div",14),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(35,"mat-form-field",23)(36,"mat-label"),i0.\u0275\u0275text(37,"Cover Image"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(38,"ngx-mat-file-input",24,25),i0.\u0275\u0275listener("change",__name(function($event){i0.\u0275\u0275restoreView(_r21);const _r7=i0.\u0275\u0275reference(39);return i0.\u0275\u0275nextContext().uploadCoverImage($event,_r7)},"UserEditComponent_form_0_Template_ngx_mat_file_input_change_38_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(40,"mat-icon",12),i0.\u0275\u0275text(41,"image"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(42,"mat-error",13)(43,"small"),i0.\u0275\u0275template(44,UserEditComponent_form_0_div_44_Template,3,3,"div",14),i0.\u0275\u0275template(45,UserEditComponent_form_0_div_45_Template,2,1,"div",14),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(46,UserEditComponent_form_0_div_46_Template,5,1,"div",26),i0.\u0275\u0275element(47,"angular-editor",27),i0.\u0275\u0275elementStart(48,"mat-form-field",28)(49,"mat-label"),i0.\u0275\u0275text(50,"Konfirmasi Kata Sandi"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(51,"input",29),i0.\u0275\u0275elementStart(52,"button",30),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r21),i0.\u0275\u0275nextContext().togglePassword()},"UserEditComponent_form_0_Template_button_click_52_listener")),i0.\u0275\u0275elementStart(53,"mat-icon"),i0.\u0275\u0275text(54),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(55,"mat-error"),i0.\u0275\u0275template(56,UserEditComponent_form_0_div_56_Template,2,0,"div",14),i0.\u0275\u0275template(57,UserEditComponent_form_0_div_57_Template,2,0,"div",14),i0.\u0275\u0275template(58,UserEditComponent_form_0_div_58_Template,2,0,"div",14),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(59,"mat-form-field",28)(60,"mat-label"),i0.\u0275\u0275text(61,"Ubah Kata Sandi"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(62,"input",31),i0.\u0275\u0275elementStart(63,"button",30),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r21),i0.\u0275\u0275nextContext().togglePassword()},"UserEditComponent_form_0_Template_button_click_63_listener")),i0.\u0275\u0275elementStart(64,"mat-icon"),i0.\u0275\u0275text(65),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(66,"mat-error"),i0.\u0275\u0275template(67,UserEditComponent_form_0_div_67_Template,2,0,"div",14),i0.\u0275\u0275template(68,UserEditComponent_form_0_div_68_Template,2,0,"div",14),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(69,"div",32)(70,"div",7)(71,"div",33),i0.\u0275\u0275element(72,"div",34),i0.\u0275\u0275elementStart(73,"div",35)(74,"a",36)(75,"mat-icon",37),i0.\u0275\u0275text(76,"undo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(77," Batal "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(78,"div",35)(79,"button",38),i0.\u0275\u0275text(80," Simpan "),i0.\u0275\u0275elementStart(81,"mat-icon",39),i0.\u0275\u0275text(82,"save"),i0.\u0275\u0275elementEnd()()()()()()()()(),i0.\u0275\u0275element(83,"div",40)(84,"div",41),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("formGroup",ctx_r0.fg),i0.\u0275\u0275advance(7),i0.\u0275\u0275propertyInterpolate("src",ctx_r0.image_photo,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("accept","image/gif, image/jpeg, image/jpg, image/png"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r0.imagePhotoLimitExceeded),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.imagePhotoErrorText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.imagePhoto&&!ctx_r0.fg.value.image_photo),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("nama").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("nama").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("accept","image/gif, image/jpeg, image/jpg, image/png"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r0.imageCoverLimitExceeded),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.imageCoverErrorText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.imageCover&&!ctx_r0.fg.value.image_cover),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("config",ctx_r0.GS.angularEditorConfig),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("type",ctx_r0.passwordHide?"password":"text"),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(ctx_r0.passwordHide?"visibility_off":"visibility"),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("old_password").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("old_password").hasError("minlength")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("old_password").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("type",ctx_r0.passwordHide?"password":"text"),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(ctx_r0.passwordHide?"visibility_off":"visibility"),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("new_password").hasError("minlength")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("new_password").hasError("pattern")),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("disabled",ctx_r0.submitted),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("disabled",ctx_r0.submitted||ctx_r0.fg.invalid||!ctx_r0.fg.dirty),i0.\u0275\u0275advance(4),i0.\u0275\u0275styleProp("background-image","url("+ctx_r0.image_cover+")")}}__name(UserEditComponent_form_0_div_17_Template,"UserEditComponent_form_0_div_17_Template"),__name(UserEditComponent_form_0_div_18_Template,"UserEditComponent_form_0_div_18_Template"),__name(UserEditComponent_form_0_div_19_Template,"UserEditComponent_form_0_div_19_Template"),__name(UserEditComponent_form_0_div_33_Template,"UserEditComponent_form_0_div_33_Template"),__name(UserEditComponent_form_0_div_34_Template,"UserEditComponent_form_0_div_34_Template"),__name(UserEditComponent_form_0_div_44_Template,"UserEditComponent_form_0_div_44_Template"),__name(UserEditComponent_form_0_div_45_Template,"UserEditComponent_form_0_div_45_Template"),__name(UserEditComponent_form_0_div_46_Template,"UserEditComponent_form_0_div_46_Template"),__name(UserEditComponent_form_0_div_56_Template,"UserEditComponent_form_0_div_56_Template"),__name(UserEditComponent_form_0_div_57_Template,"UserEditComponent_form_0_div_57_Template"),__name(UserEditComponent_form_0_div_58_Template,"UserEditComponent_form_0_div_58_Template"),__name(UserEditComponent_form_0_div_67_Template,"UserEditComponent_form_0_div_67_Template"),__name(UserEditComponent_form_0_div_68_Template,"UserEditComponent_form_0_div_68_Template"),__name(UserEditComponent_form_0_Template,"UserEditComponent_form_0_Template");class UserEditComponent{constructor(router,activatedRoute,toast,bs,us,pi,fb,imgbb,gs,as,cs){this.router=router,this.activatedRoute=activatedRoute,this.toast=toast,this.bs=bs,this.us=us,this.pi=pi,this.fb=fb,this.imgbb=imgbb,this.gs=gs,this.as=as,this.cs=cs,this.submitted=!1,this.username=null,this.userData=null,this.imagePhoto=null,this.imagePhotoErrorText=null,this.imagePhotoLimitExceeded=null,this.image_photo=null,this.image_photo_original=null,this.imageCover=null,this.imageCoverErrorText=null,this.imageCoverLimitExceeded=null,this.image_cover=null,this.image_cover_original=null,this.passwordHide=!0,this.photoImage=null,this.coverImage=null,this.subsUserDetail=null,this.subsImgbb1=null,this.subsImgbb2=null,this.subsUserUpdate=null,this.subsVerify=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}togglePassword(){this.passwordHide=!this.passwordHide}ngOnDestroy(){var _a,_b,_c,_d,_e;null===(_a=this.subsUserDetail)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsImgbb1)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsImgbb2)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsUserUpdate)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsVerify)||void 0===_e||_e.unsubscribe()}ngOnInit(){this.pi.updatePageMetaData("User - Ubah Profile","Halaman Pembaharuan Profile","Ubah Profile"),this.gs.isBrowser&&(this.username=this.activatedRoute.snapshot.paramMap.get("username"),this.bs.busy(),this.subsUserDetail=this.us.getUserData(this.username).subscribe({next:res=>{var _a,_b;this.gs.log("[USER_DETAIL_SUCCESS]",res),this.bs.idle(),(null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.id)!==res.result.id?(this.toast.warning("Profile Ini Milik Orang Lain","Whoops!",null,!0),this.router.navigateByUrl(`/user/${this.username}`)):this.initForm(res.result)},error:err=>{this.gs.log("[USER_DETAIL_ERROR]",err,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:`/user/${this.username}`}})}}))}initForm(data){this.fg=this.fb.group({nama:[data.kartu_tanda_penduduk_.nama,[forms_1.Validators.required,forms_1.Validators.pattern("^[a-zA-Z. ]+$")]],description:[data.profile_.description,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],old_password:[null,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.minLength(8),forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],new_password:[null,forms_1.Validators.compose([forms_1.Validators.minLength(8),forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],image_photo:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],image_cover:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])],private:[data.private,forms_1.Validators.compose([forms_1.Validators.required])]}),this.image_photo=data.image_url,this.image_photo_original=this.image_photo,this.image_cover=data.profile_.cover_url,this.image_cover_original=this.image_cover,this.userData=data}uploadPhotoImage(event,photoImage){this.photoImage=photoImage,this.imagePhoto=null,this.imagePhotoLimitExceeded=null,this.imagePhotoErrorText=null,this.fg.controls.image_photo.patchValue(null),this.fg.controls.image_photo.markAsPristine();const file2=event.target.files[0];try{const reader=new FileReader;reader.readAsDataURL(file2),reader.onload=e=>{if(this.gs.log("[IMAGE_PHOTO_SELECTED]",e),file2.size<=constants_1.CONSTANTS.fileSizeImageLimit){const img=this.gs.document.createElement("img");img.onload=()=>{this.imagePhoto=file2,this.image_photo=reader.result.toString()},img.src=reader.result.toString()}else this.imagePhoto=null,this.image_photo="/assets/img/form/image-error.png",this.imagePhotoLimitExceeded=constants_1.CONSTANTS.fileSizeImageLimit,this.photoImage.clear(event)}}catch{this.imagePhoto=null,this.image_photo=this.image_photo_original,this.photoImage.clear(event)}}submitPhotoImage(){this.submitted=!0,this.subsImgbb1=this.imgbb.uploadImage({file:this.imagePhoto}).subscribe({next:res=>{this.gs.log("[IMAGE_PHOTO_SUCCESS]",res),this.fg.controls.image_photo.patchValue(res.result.url),this.fg.controls.image_photo.markAsDirty(),this.submitted=!1},error:err=>{var _a;this.gs.log("[IMAGE_PHOTO_ERROR]",err,"error"),this.fg.controls.image_photo.patchValue(null),this.fg.controls.image_photo.markAsPristine(),this.submitted=!1,this.imagePhotoErrorText=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info}})}uploadCoverImage(event,coverImage){this.coverImage=coverImage,this.imageCover=null,this.imageCoverLimitExceeded=null,this.imageCoverErrorText=null,this.fg.controls.image_cover.patchValue(null),this.fg.controls.image_cover.markAsPristine();const file2=event.target.files[0];try{const reader=new FileReader;reader.readAsDataURL(file2),reader.onload=e=>{if(this.gs.log("[IMAGE_COVER_SELECTED]",e),file2.size<=constants_1.CONSTANTS.fileSizeImageLimit){const img=this.gs.document.createElement("img");img.onload=()=>{this.imageCover=file2,this.image_cover=reader.result.toString()},img.src=reader.result.toString()}else this.imageCover=null,this.image_cover="/assets/img/form/image-error.png",this.imageCoverLimitExceeded=constants_1.CONSTANTS.fileSizeImageLimit,this.coverImage.clear(event)}}catch{this.imageCover=null,this.image_cover=this.image_cover_original,this.coverImage.clear(event)}}submitCoverImage(){this.submitted=!0,this.subsImgbb2=this.imgbb.uploadImage({file:this.imageCover}).subscribe({next:res=>{this.gs.log("[IMAGE_COVER_SUCCESS]",res),this.fg.controls.image_cover.patchValue(res.result.url),this.fg.controls.image_cover.markAsDirty(),this.submitted=!1},error:err=>{var _a;this.gs.log("[IMAGE_COVER_ERROR]",err,"error"),this.fg.controls.image_cover.patchValue(null),this.fg.controls.image_cover.markAsPristine(),this.submitted=!1,this.imageCoverErrorText=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info}})}onSubmit(){this.bs.busy();const body=this.gs.getDirtyValues(this.fg);if(body.old_password=this.cs.hashPassword(this.fg.value.old_password),"new_password"in body&&body.new_password&&(body.new_password=this.cs.hashPassword(this.fg.value.new_password)),this.gs.log("[USER_EDIT_DIRTY]",body),this.submitted=!0,this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsUserUpdate=this.us.updateUser(this.username,{...body}).subscribe({next:res=>{this.gs.log("[USER_EDIT_SUCCESS]",res),this.submitted=!1,this.bs.idle(),this.as.removeUser(),this.bs.busy(),this.subsVerify=this.as.verify(this.as.token).subscribe({next:success=>{this.gs.log("[VERIFY_LOGIN_SUCCESS]",success),this.bs.idle(),this.router.navigateByUrl(`/user/${this.username}`)},error:error=>{this.gs.log("[VERIFY_LOGIN_ERROR]",error,"error"),this.bs.idle(),this.as.removeUser(),this.router.navigateByUrl(`/user/${this.username}`)}})},error:err=>{this.gs.log("[USER_EDIT_ERROR]",err,"error"),this.submitted=!1,this.bs.idle()}})}}__name(UserEditComponent,"UserEditComponent"),exports2.UserEditComponent=UserEditComponent,UserEditComponent.\u0275fac=__name(function(t){return new(t||UserEditComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i2.ToastService),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.UserService),i0.\u0275\u0275directiveInject(i5.PageInfoService),i0.\u0275\u0275directiveInject(i6.FormBuilder),i0.\u0275\u0275directiveInject(i7.ImgbbService),i0.\u0275\u0275directiveInject(i8.GlobalService),i0.\u0275\u0275directiveInject(i9.AuthService),i0.\u0275\u0275directiveInject(i10.CryptoService))},"UserEditComponent_Factory"),UserEditComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:UserEditComponent,selectors:[["app-user-edit"]],decls:1,vars:1,consts:[[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"container"],[1,"profile-info","align-items-center"],[1,"row","py-3","px-2"],[1,"col-md-4","col-xl-3","px-3"],[1,"row","sticky-top","pt-3"],[1,"col-12"],[1,"w-100","border","rounded-circle",3,"src"],["appearance","outline",1,"pt-3","w-100",3,"color"],[1,"w-100",3,"accept","change"],["photoImage",""],["matSuffix",""],[1,"px-3","w-100"],[4,"ngIf"],["class","col-12 mb-4",4,"ngIf"],[1,"col-12","p-3"],["formControlName","private","matTooltip","Hanya Tampilkan Informasi Profil"],[1,"col-md-8","col-xl-9","pt-3"],[1,"row","py-3","px-0","profile-height-large"],[1,"row","py-3"],["appearance","outline",1,"p-3","col-12",3,"color"],["matInput","","formControlName","nama","placeholder","Nama Lengkap"],["appearance","outline",1,"px-3","pt-3","w-100",3,"color"],["placeholder","Basic Input",1,"w-100",3,"accept","change"],["coverImage",""],["class","col-12 p-3",4,"ngIf"],["formControlName","description",1,"p-3","w-100",3,"config"],["appearance","outline",1,"p-3","w-100",3,"color"],["matInput","","formControlName","old_password","required","","placeholder","Password Sekarang","autocomplete","current-password",3,"type"],["mat-icon-button","","matSuffix","","type","button",3,"click"],["matInput","","formControlName","new_password","placeholder","Isi Jika Ingin Ubah Password Baru","autocomplete","new-password",3,"type"],[1,"row"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","../",1,"w-100",3,"disabled"],[1,"me-1"],["mat-flat-button","","color","accent","type","submit",1,"w-100",3,"disabled"],[1,"ms-1"],[1,"profile-banner","profile-banner-1","align-items-center"],[1,"profile-banner","profile-banner-2","align-items-center"],[1,"col-12","mb-4"],["mat-raised-button","","color","primary","type","button",1,"w-100",3,"disabled","click"]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275template(0,UserEditComponent_form_0_Template,85,31,"form",0),2&rf&&i0.\u0275\u0275property("ngIf",ctx.fg)},"UserEditComponent_Template"),directives:[i11.NgIf,i6.\u0275NgNoValidate,i6.NgControlStatusGroup,i6.FormGroupDirective,i12.MatFormField,i12.MatLabel,i13.FileInputComponent,i14.MatIcon,i12.MatSuffix,i12.MatError,i15.MatButton,i16.MatSlideToggle,i6.NgControlStatus,i6.FormControlName,i17.MatTooltip,i18.MatInput,i6.DefaultValueAccessor,i19.AngularEditorComponent,i6.RequiredValidator,i15.MatAnchor,i1.RouterLinkWithHref],pipes:[i20.BytesPipe],styles:[".profile-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;opacity:.75}.profile-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.profile-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.profile-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}@media (min-width: 768px){.profile-height-large[_ngcontent-%COMP%]{height:100px}}"]})},81012:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UserListComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=(__webpack_require__2(74202),__webpack_require__2(69287),__webpack_require__2(57261),__webpack_require__2(15934)),i0=(__webpack_require__2(80855),__webpack_require__2(4137),__webpack_require__2(96382),__webpack_require__2(33e3),__webpack_require__2(8058),__webpack_require__2(80698),__webpack_require__2(55393),__webpack_require__2(76781),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(69287)),i2=tslib_1.__importStar(__webpack_require__2(74202)),i3=tslib_1.__importStar(__webpack_require__2(57261)),i4=tslib_1.__importStar(__webpack_require__2(4137)),i5=tslib_1.__importStar(__webpack_require__2(55393)),i6=tslib_1.__importStar(__webpack_require__2(80855)),i7=tslib_1.__importStar(__webpack_require__2(96382)),i8=tslib_1.__importStar(__webpack_require__2(33e3)),i9=tslib_1.__importStar(__webpack_require__2(8058)),i10=tslib_1.__importStar(__webpack_require__2(76781)),i11=tslib_1.__importStar(__webpack_require__2(80698)),i12=tslib_1.__importStar(__webpack_require__2(8616)),i13=tslib_1.__importStar(__webpack_require__2(69808)),i14=tslib_1.__importStar(__webpack_require__2(14623)),i15=tslib_1.__importStar(__webpack_require__2(25245)),i16=tslib_1.__importStar(__webpack_require__2(87238)),i17=tslib_1.__importStar(__webpack_require__2(47423)),i18=tslib_1.__importStar(__webpack_require__2(40192)),i19=tslib_1.__importStar(__webpack_require__2(86766));function UserListComponent_div_11_mat_list_option_2_Template(rf,ctx){if(1&rf){const _r10=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-list-option",25)(1,"mat-icon",26),i0.\u0275\u0275text(2,"add_comment"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"a",27),i0.\u0275\u0275listener("click",__name(function(){const fk_r8=i0.\u0275\u0275restoreView(_r10).$implicit;return i0.\u0275\u0275nextContext(2).openComment(fk_r8)},"UserListComponent_div_11_mat_list_option_2_Template_a_click_3_listener")),i0.\u0275\u0275elementStart(4,"span",28),i0.\u0275\u0275text(5),i0.\u0275\u0275pipe(6,"dateAgo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"span",29),i0.\u0275\u0275text(8),i0.\u0275\u0275elementEnd()()()}if(2&rf){const fk_r8=ctx.$implicit;i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind1(6,2,fk_r8.created_at)),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(fk_r8.comment)}}function UserListComponent_div_11_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",11)(1,"mat-selection-list",23),i0.\u0275\u0275template(2,UserListComponent_div_11_mat_list_option_2_Template,9,4,"mat-list-option",24),i0.\u0275\u0275pipe(3,"slice"),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind3(3,2,ctx_r0.feedKomentarData,0,5))}}function UserListComponent_div_19_mat_list_option_2_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option",25)(1,"mat-icon",26),i0.\u0275\u0275text(2,"volunteer_activism"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"a",30)(4,"span",28),i0.\u0275\u0275text(5),i0.\u0275\u0275pipe(6,"dateAgo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"span",31),i0.\u0275\u0275text(8),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(9,"span",32),i0.\u0275\u0275text(10),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(11,"span",29),i0.\u0275\u0275text(12),i0.\u0275\u0275elementEnd()()()),2&rf){const fldl_r12=ctx.$implicit;i0.\u0275\u0275advance(3),i0.\u0275\u0275property("routerLink",fldl_r12.berkas_?"/berkas/"+(null==fldl_r12.berkas_?null:fldl_r12.berkas_.id):fldl_r12.fansub_?"/fansub/"+(null==fldl_r12.fansub_?null:fldl_r12.fansub_.slug):fldl_r12.user_?"/user/"+(null==fldl_r12.user_?null:fldl_r12.user_.username):fldl_r12.news_?"/news/"+(null==fldl_r12.news_?null:fldl_r12.news_.id):""),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind1(6,5,fldl_r12.created_at)),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(fldl_r12.type),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(fldl_r12.berkas_?"Berkas":fldl_r12.fansub_?"Fansub":fldl_r12.user_?"User":fldl_r12.news_?"News":""),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate((null==fldl_r12.berkas_?null:fldl_r12.berkas_.name)||(null==fldl_r12.fansub_?null:fldl_r12.fansub_.name)||(null==fldl_r12.user_||null==fldl_r12.user_.kartu_tanda_penduduk_?null:fldl_r12.user_.kartu_tanda_penduduk_.nama)||(null==fldl_r12.news_?null:fldl_r12.news_.title))}}function UserListComponent_div_19_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",11)(1,"mat-selection-list",23),i0.\u0275\u0275template(2,UserListComponent_div_19_mat_list_option_2_Template,13,7,"mat-list-option",24),i0.\u0275\u0275pipe(3,"slice"),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r1=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind3(3,2,ctx_r1.feedLikeDislikeData,0,5))}}function UserListComponent_div_27_mat_list_option_2_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option",25)(1,"mat-icon",26),i0.\u0275\u0275text(2,"directions_run"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"a",30)(4,"span",28),i0.\u0275\u0275text(5),i0.\u0275\u0275pipe(6,"dateAgo"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"span",32),i0.\u0275\u0275text(8),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(9,"span",29),i0.\u0275\u0275text(10),i0.\u0275\u0275elementEnd()()()),2&rf){const fv_r14=ctx.$implicit;i0.\u0275\u0275advance(3),i0.\u0275\u0275property("routerLink",fv_r14.berkas_?"/berkas/"+(null==fv_r14.berkas_?null:fv_r14.berkas_.id):fv_r14.fansub_?"/fansub/"+(null==fv_r14.fansub_?null:fv_r14.fansub_.slug):fv_r14.user_?"/user/"+(null==fv_r14.user_?null:fv_r14.user_.username):fv_r14.news_?"/news/"+(null==fv_r14.news_?null:fv_r14.news_.id):""),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind1(6,4,fv_r14.created_at)),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(fv_r14.berkas_?"Berkas":fv_r14.fansub_?"Fansub":fv_r14.user_?"User":fv_r14.news_?"News":""),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate((null==fv_r14.berkas_?null:fv_r14.berkas_.name)||(null==fv_r14.fansub_?null:fv_r14.fansub_.name)||(null==fv_r14.user_||null==fv_r14.user_.kartu_tanda_penduduk_?null:fv_r14.user_.kartu_tanda_penduduk_.nama)||(null==fv_r14.news_?null:fv_r14.news_.title))}}function UserListComponent_div_27_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",11)(1,"mat-selection-list",23),i0.\u0275\u0275template(2,UserListComponent_div_27_mat_list_option_2_Template,11,6,"mat-list-option",24),i0.\u0275\u0275pipe(3,"slice"),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r2=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind3(3,2,ctx_r2.feedVisitData,0,5))}}function UserListComponent_div_53_Template(rf,ctx){if(1&rf){const _r17=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",33),i0.\u0275\u0275listener("click",__name(function(){const ak_r15=i0.\u0275\u0275restoreView(_r17).$implicit,ctx_r16=i0.\u0275\u0275nextContext();return ctx_r16.copyApiKey(ak_r15),ctx_r16.editApiKey(ak_r15)},"UserListComponent_div_53_Template_div_click_0_listener")),i0.\u0275\u0275elementStart(1,"p",34),i0.\u0275\u0275text(2," Nama :: "),i0.\u0275\u0275elementStart(3,"span",35),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(5,"p",36),i0.\u0275\u0275text(6," Origin :: "),i0.\u0275\u0275elementStart(7,"span",35),i0.\u0275\u0275text(8),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(9,"p",37),i0.\u0275\u0275text(10," Key :: "),i0.\u0275\u0275elementStart(11,"span",35),i0.\u0275\u0275text(12),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(13,"a",17),i0.\u0275\u0275listener("click",__name(function($event){const ak_r15=i0.\u0275\u0275restoreView(_r17).$implicit,ctx_r18=i0.\u0275\u0275nextContext();return $event.stopPropagation(),ctx_r18.revokeApiKey(ak_r15)},"UserListComponent_div_53_Template_a_click_13_listener")),i0.\u0275\u0275elementStart(14,"mat-icon",15),i0.\u0275\u0275text(15,"delete_sweep"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(16," Hapus Akses "),i0.\u0275\u0275elementEnd()()}if(2&rf){const ak_r15=ctx.$implicit;i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate1(" ",ak_r15.name," "),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate1(" ",ak_r15.ip_domain," "),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate1(" ",ak_r15.api_key," ")}}function UserListComponent_div_61_mat_list_option_3_Template(rf,ctx){if(1&rf){const _r22=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-list-option",41),i0.\u0275\u0275listener("click",__name(function(){const f_r20=i0.\u0275\u0275restoreView(_r22).$implicit;return i0.\u0275\u0275nextContext(2).editSubDomain(f_r20.fansub_)},"UserListComponent_div_61_mat_list_option_3_Template_mat_list_option_click_0_listener")),i0.\u0275\u0275element(1,"img",42),i0.\u0275\u0275elementStart(2,"a",43)(3,"span",44),i0.\u0275\u0275text(4),i0.\u0275\u0275pipe(5,"date"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"span",35),i0.\u0275\u0275text(7),i0.\u0275\u0275elementEnd()()()}if(2&rf){const f_r20=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",f_r20.fansub_.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",i0.\u0275\u0275pipeBind2(5,3,f_r20.updated_at,"d-MM-y")," "),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(f_r20.fansub_.slug)}}function UserListComponent_div_61_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",38)(1,"div",39)(2,"mat-selection-list",23),i0.\u0275\u0275template(3,UserListComponent_div_61_mat_list_option_3_Template,8,6,"mat-list-option",40),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r4=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(2),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r4.groupFansub)}}function UserListComponent_ng_template_62_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"app-no-data",45)}__name(UserListComponent_div_11_mat_list_option_2_Template,"UserListComponent_div_11_mat_list_option_2_Template"),__name(UserListComponent_div_11_Template,"UserListComponent_div_11_Template"),__name(UserListComponent_div_19_mat_list_option_2_Template,"UserListComponent_div_19_mat_list_option_2_Template"),__name(UserListComponent_div_19_Template,"UserListComponent_div_19_Template"),__name(UserListComponent_div_27_mat_list_option_2_Template,"UserListComponent_div_27_mat_list_option_2_Template"),__name(UserListComponent_div_27_Template,"UserListComponent_div_27_Template"),__name(UserListComponent_div_53_Template,"UserListComponent_div_53_Template"),__name(UserListComponent_div_61_mat_list_option_3_Template,"UserListComponent_div_61_mat_list_option_3_Template"),__name(UserListComponent_div_61_Template,"UserListComponent_div_61_Template"),__name(UserListComponent_ng_template_62_Template,"UserListComponent_ng_template_62_Template");class UserListComponent{constructor(clipboard,router,snackBar,as,ds,gs,fs,bs,us,fansub,aks){this.clipboard=clipboard,this.router=router,this.snackBar=snackBar,this.as=as,this.ds=ds,this.gs=gs,this.fs=fs,this.bs=bs,this.us=us,this.fansub=fansub,this.aks=aks,this.feedKomentarData=[],this.feedLikeDislikeData=[],this.feedVisitData=[],this.subsFeedKomentar=null,this.subsFeedLikeDislike=null,this.subsFeedVisit=null,this.subsGetApiKey=null,this.subsDialog=null,this.subsCreateApiKey=null,this.subsEditApiKey=null,this.subsRevokeApiKey=null,this.subsGroupGet=null,this.subsUpdateSubDomain=null,this.subsGetSubDomain=null,this.apiKey=[],this.groupFansub=[],this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get AS(){return this.as}get ENV(){return environment_1.environment}ngOnInit(){var _a,_b;this.gs.isBrowser&&(this.getUserFeedComment(),this.getUserFeedLikeDislike(),this.getUserFeedVisit(),this.getUserApiKey(),this.getUserGroup(),this.fs.initializeFab("arrow_forward",null,"Menuju Halaman Profile",`/user/${null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.username}`,!1))}ngOnDestroy(){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l;null===(_a=this.subsFeedKomentar)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsFeedLikeDislike)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsFeedVisit)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsGetApiKey)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsDialog)||void 0===_e||_e.unsubscribe(),null===(_f=this.subsCreateApiKey)||void 0===_f||_f.unsubscribe(),null===(_g=this.subsEditApiKey)||void 0===_g||_g.unsubscribe(),null===(_h=this.subsRevokeApiKey)||void 0===_h||_h.unsubscribe(),null===(_j=this.subsGroupGet)||void 0===_j||_j.unsubscribe(),null===(_k=this.subsUpdateSubDomain)||void 0===_k||_k.unsubscribe(),null===(_l=this.subsGetSubDomain)||void 0===_l||_l.unsubscribe()}getUserFeedComment(){var _a,_b;this.bs.busy(),this.subsFeedKomentar=this.us.getUserFeedComment(null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.username,"",1,5).subscribe({next:res=>{this.gs.log("[USER_FEED_COMMENT_SUCCESS]",res),this.feedKomentarData=res.results,this.bs.idle()},error:err=>{this.gs.log("[USER_FEED_COMMENT_ERROR]",err,"error"),this.bs.idle()}})}getUserFeedLikeDislike(){var _a,_b;this.bs.busy(),this.subsFeedLikeDislike=this.us.getUserFeedLikeDislike(null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.username,"",1,5).subscribe({next:res=>{this.gs.log("[USER_FEED_LIKEDISLIKE_SUCCESS]",res),this.feedLikeDislikeData=res.results,this.bs.idle()},error:err=>{this.gs.log("[USER_FEED_LIKEDISLIKE_ERROR]",err,"error"),this.bs.idle()}})}getUserFeedVisit(){var _a,_b;this.bs.busy(),this.subsFeedVisit=this.us.getUserFeedVisit(null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.username,"",1,5).subscribe({next:res=>{this.gs.log("[USER_FEED_VISIT_SUCCESS]",res),this.feedVisitData=res.results,this.bs.idle()},error:err=>{this.gs.log("[USER_FEED_VISIT_ERROR]",err,"error"),this.bs.idle()}})}getUserApiKey(){var _a,_b;this.bs.busy(),this.subsGetApiKey=this.aks.getUserApiKey(null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.username).subscribe({next:res=>{var _a2,_b2;this.gs.log("[USER_FEED_VISIT_SUCCESS]",res),this.apiKey=res.results[null===(_b2=null===(_a2=this.as.currentUserSubject)||void 0===_a2?void 0:_a2.value)||void 0===_b2?void 0:_b2.username],this.bs.idle()},error:err=>{this.gs.log("[USER_FEED_VISIT_ERROR]",err,"error"),this.bs.idle()}})}copyApiKey(ak){this.clipboard.copy(ak.api_key)&&this.snackBar.open("API Key :: Telah Di Salin Pada Clipboard","Ok")}generateNewApiKey(){var _a,_b;this.subsDialog=this.ds.openInputDialog({data:{title:"Tambah API Key Baru",input:{name:{inputLabel:"Nama / Deskripsi",inputPlaceholder:`${null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.username}_${(new Date).getTime()}`,inputValue:null,inputRequired:!0},ip_domain:{inputLabel:"Origin Tanpa http://",inputPlaceholder:"example.com; 1.1.1.1; *",inputValue:null,inputRequired:!0}},confirmText:"OK",cancelText:"Batal",infoText:"Gunakan * Saja Untuk Perbolehkan Semua Dan Titik Koma ; Untuk Lebih Dari Satu"}}).afterClosed().subscribe({next:re=>{this.gs.log("[INPUT_DIALOG_CLOSED]",re),re&&(this.bs.busy(),this.subsCreateApiKey=this.aks.createApiKey({name:re.name,ip_domain:re.ip_domain}).subscribe({next:res=>{this.gs.log("[USER_CREATE_APIKEY_SUCCESS]",res),this.bs.idle(),this.getUserApiKey()},error:err=>{this.gs.log("[USER_CREATE_APIKEY_ERROR]",err,"error"),this.bs.idle(),this.getUserApiKey()}})),this.subsDialog.unsubscribe()}})}editApiKey(ak){this.subsDialog=this.ds.openInputDialog({data:{title:"Ubah API Key",input:{name:{inputLabel:"Nama / Deskripsi",inputPlaceholder:ak.name,inputValue:ak.name,inputRequired:!0},ip_domain:{inputLabel:"Origin Tanpa http://",inputPlaceholder:ak.ip_domain,inputValue:ak.ip_domain,inputRequired:!0}},confirmText:"OK",cancelText:"Batal",infoText:"Gunakan * Saja Untuk Perbolehkan Semua Dan Titik Koma ; Untuk Lebih Dari Satu"}}).afterClosed().subscribe({next:re=>{this.gs.log("[INPUT_DIALOG_CLOSED]",re),re&&(this.bs.busy(),this.subsEditApiKey=this.aks.editApiKey(ak.id,{name:re.name,ip_domain:re.ip_domain}).subscribe({next:res=>{this.gs.log("[USER_EDIT_APIKEY_SUCCESS]",res),this.bs.idle(),this.getUserApiKey()},error:err=>{this.gs.log("[USER_EDIT_APIKEY_ERROR]",err,"error"),this.bs.idle(),this.getUserApiKey()}})),this.subsDialog.unsubscribe()}})}revokeApiKey(ak){this.bs.busy(),this.subsRevokeApiKey=this.aks.revokeApiKey(ak.id).subscribe({next:res=>{this.gs.log("[USER_REVOKE_APIKEY_SUCCESS]",res),this.bs.idle(),this.getUserApiKey()},error:err=>{this.gs.log("[USER_REVOKE_APIKEY_ERROR]",err,"error"),this.bs.idle(),this.getUserApiKey()}})}getUserGroup(){var _a,_b;this.bs.busy(),this.subsGroupGet=this.us.getUserGroup(null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.username).subscribe({next:res=>{this.gs.log("[USER_GROUP_LIST_SUCCESS]",res),this.groupFansub=res.results,this.bs.idle()},error:err=>{this.gs.log("[USER_GROUP_LIST_ERROR]",err,"error"),this.bs.idle()}})}editSubDomain(f2){this.bs.busy(),this.subsGetSubDomain=this.fansub.getSubDomain(f2.slug).subscribe({next:res=>{var _a,_b;this.gs.log("[USER_FANSUB_SUBDOMAIN_SUCCESS]",res),this.bs.idle();const subDomain=res.result;this.subsDialog=this.ds.openInputDialog({data:{title:`Ubah CNAME / A Record IP v4 v6 :: '${f2.slug}'`,input:{server_target:{inputLabel:"Server Target",inputPlaceholder:"ghs.google.com",inputValue:subDomain.dns_id.content,inputRequired:!0},verification_name:{inputLabel:"Tambahan Khusus Blogger :: Name",inputPlaceholder:"blablabla-name",inputValue:null===(_a=subDomain.dns_id_alt)||void 0===_a?void 0:_a.name,inputRequired:!1},verification_target:{inputLabel:"Tambahan Khusus Blogger :: Target",inputPlaceholder:"blablabla-target.dv.googlehosted.com",inputValue:null===(_b=subDomain.dns_id_alt)||void 0===_b?void 0:_b.content,inputRequired:!1}},confirmText:"OK",cancelText:"Batal",infoText:"Abaikan 2 Input Terakhir Jika Bukan Blogger"}}).afterClosed().subscribe({next:re=>{this.gs.log("[INPUT_DIALOG_CLOSED]",re),re&&(this.bs.busy(),this.subsUpdateSubDomain=this.fansub.updateSubDomain(f2.slug,{server_target:re.server_target,verification_name:re.verification_name,verification_target:re.verification_target}).subscribe({next:r=>{this.gs.log("[FANSUB_UPDATE_SUBDOMAIN_SUCCESS]",r),this.bs.idle(),this.getUserGroup()},error:e=>{this.gs.log("[FANSUB_UPDATE_SUBDOMAIN_ERROR]",e,"error"),this.bs.idle(),this.getUserGroup()}})),this.subsDialog.unsubscribe()}})},error:err=>{this.gs.log("[USER_FANSUB_SUBDOMAIN_ERROR]",err,"error"),this.bs.idle(),this.subsDialog=this.ds.openInfoDialog({data:{title:`Sepertinya Sub-Domain '${f2.slug}' Belum Di Klaim`,htmlMessage:"Silahkan ambil sub-domain pada halaman fansub, ingin ke sana sekarang?",confirmText:"Ya",cancelText:"Tidak"},disableClose:!1}).afterClosed().subscribe({next:re=>{this.gs.log("[INFO_DIALOG_CLOSED]",re),!0===re?this.router.navigateByUrl(`/fansub/${f2.slug}`):this.getUserGroup(),this.subsDialog.unsubscribe()}})}})}openComment(k){this.router.navigate([k.path],{queryParams:{comment:k.id}})}}__name(UserListComponent,"UserListComponent"),exports2.UserListComponent=UserListComponent,UserListComponent.\u0275fac=__name(function(t){return new(t||UserListComponent)(i0.\u0275\u0275directiveInject(i1.Clipboard),i0.\u0275\u0275directiveInject(i2.Router),i0.\u0275\u0275directiveInject(i3.MatSnackBar),i0.\u0275\u0275directiveInject(i4.AuthService),i0.\u0275\u0275directiveInject(i5.DialogService),i0.\u0275\u0275directiveInject(i6.GlobalService),i0.\u0275\u0275directiveInject(i7.FabService),i0.\u0275\u0275directiveInject(i8.BusyService),i0.\u0275\u0275directiveInject(i9.UserService),i0.\u0275\u0275directiveInject(i10.FansubService),i0.\u0275\u0275directiveInject(i11.ApiKeyService))},"UserListComponent_Factory"),UserListComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:UserListComponent,selectors:[["app-user-list"]],decls:64,vars:12,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-lg-8","col-xl-9"],[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"float-end","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[1,"text-bifeldy"],["class","col-12",4,"ngIf","ngIfElse"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],[1,"col-12"],["matTooltip","Khusus Pengguna Terverifikasi",1,"text-bifeldy"],[1,"col-12","mb-2"],["mat-button","","color","accent","matTooltip","Buka Kotak Pesan","routerLink","/mailbox",1,"w-100"],[1,"me-1"],[1,"text-bifeldy",3,"matTooltip"],["mat-button","","color","accent",1,"w-100",3,"click"],["class","my-2 gradient-border",3,"click",4,"ngFor","ngForOf"],[1,"row","mt-4"],[1,"border-bottom-dotted"],["class","col-12 mb-2","style","max-height: 288px;",4,"ngIf","ngIfElse"],["noData",""],[3,"multiple"],["class","h-100",4,"ngFor","ngForOf"],[1,"h-100"],["mat-list-icon","",1,"ps-3"],[1,"text-truncate","text-decoration-none",3,"click"],[1,"bg-bifeldy","px-2","me-1","text-danger",2,"position","absolute","right","0"],[1,"text-warning"],[1,"text-truncate","text-decoration-none",3,"routerLink"],[1,"me-3","text-success"],[1,"me-3","text-info"],[1,"my-2","gradient-border",3,"click"],[1,"ps-2","pe-2","pt-2","text-truncate","my-0"],[1,"text-success"],[1,"ps-2","pe-2","pt-0","text-truncate","my-0"],[1,"ps-2","pe-2","pb-2","text-truncate","my-0"],[1,"col-12","mb-2",2,"max-height","288px"],[1,"h-100",2,"overflow-y","auto"],["class","h-100",3,"click",4,"ngFor","ngForOf"],[1,"h-100",3,"click"],["matListAvatar","",1,"ms-3",2,"border-radius","0",3,"src"],[1,"text-truncate","text-decoration-none"],[1,"bg-bifeldy","px-2","me-1","text-warning",2,"position","absolute","right","0"],[1,"col-12","p-3"]],template:__name(function(rf,ctx){if(1&rf&&(i0.\u0275\u0275element(0,"app-notifications"),i0.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h2",5)(7,"span",6),i0.\u0275\u0275listener("click",__name(function(){return ctx.getUserFeedComment()},"UserListComponent_Template_span_click_7_listener")),i0.\u0275\u0275text(8," Refresh "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(9,"b",7),i0.\u0275\u0275text(10,"Riwayat Komentar"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(11,UserListComponent_div_11_Template,4,6,"div",8),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(12,"div",3)(13,"div",4)(14,"h2",5)(15,"span",6),i0.\u0275\u0275listener("click",__name(function(){return ctx.getUserFeedLikeDislike()},"UserListComponent_Template_span_click_15_listener")),i0.\u0275\u0275text(16," Refresh "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(17,"b",7),i0.\u0275\u0275text(18,"Riwayat Like & Dislike"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(19,UserListComponent_div_19_Template,4,6,"div",8),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(20,"div",3)(21,"div",4)(22,"h2",5)(23,"span",6),i0.\u0275\u0275listener("click",__name(function(){return ctx.getUserFeedVisit()},"UserListComponent_Template_span_click_23_listener")),i0.\u0275\u0275text(24," Refresh "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(25,"b",7),i0.\u0275\u0275text(26,"Riwayat Kunjungan"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(27,UserListComponent_div_27_Template,4,6,"div",8),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(28,"div",9)(29,"div",10)(30,"div",11)(31,"div",3)(32,"div",4)(33,"h2",5)(34,"b",12),i0.\u0275\u0275text(35,"Alamat Email"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(36,"div",13)(37,"a",14)(38,"mat-icon",15),i0.\u0275\u0275text(39,"email"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(40),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(41,"div",3)(42,"div",4)(43,"h2",5)(44,"span",6),i0.\u0275\u0275listener("click",__name(function(){return ctx.getUserApiKey()},"UserListComponent_Template_span_click_44_listener")),i0.\u0275\u0275text(45," Refresh "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(46,"b",16),i0.\u0275\u0275text(47,"API Key"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(48,"div",13)(49,"a",17),i0.\u0275\u0275listener("click",__name(function(){return ctx.generateNewApiKey()},"UserListComponent_Template_a_click_49_listener")),i0.\u0275\u0275elementStart(50,"mat-icon",15),i0.\u0275\u0275text(51,"webhook"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(52," Buat API Key Baru "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(53,UserListComponent_div_53_Template,17,3,"div",18),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(54,"div",19)(55,"div",4)(56,"h2",20)(57,"span",6),i0.\u0275\u0275listener("click",__name(function(){return ctx.getUserGroup()},"UserListComponent_Template_span_click_57_listener")),i0.\u0275\u0275text(58," Refresh "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(59,"b",7),i0.\u0275\u0275text(60,"DNS Fansub"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(61,UserListComponent_div_61_Template,4,2,"div",21),i0.\u0275\u0275elementEnd()()()()()(),i0.\u0275\u0275template(62,UserListComponent_ng_template_62_Template,1,0,"ng-template",null,22,i0.\u0275\u0275templateRefExtractor)),2&rf){const _r5=i0.\u0275\u0275reference(63);i0.\u0275\u0275advance(11),i0.\u0275\u0275property("ngIf",ctx.feedKomentarData.length>0)("ngIfElse",_r5),i0.\u0275\u0275advance(8),i0.\u0275\u0275property("ngIf",ctx.feedLikeDislikeData.length>0)("ngIfElse",_r5),i0.\u0275\u0275advance(8),i0.\u0275\u0275property("ngIf",ctx.feedVisitData.length>0)("ngIfElse",_r5),i0.\u0275\u0275advance(13),i0.\u0275\u0275textInterpolate2(" '",null==ctx.AS.currentUserSubject||null==ctx.AS.currentUserSubject.value?null:ctx.AS.currentUserSubject.value.username,"@",ctx.ENV.domain,"' "),i0.\u0275\u0275advance(6),i0.\u0275\u0275propertyInterpolate1("matTooltip","Aktivitas Terakhir :: ",null==ctx.AS.currentUserSubject||null==ctx.AS.currentUserSubject.value?null:ctx.AS.currentUserSubject.value._session_origin,""),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngForOf",ctx.apiKey),i0.\u0275\u0275advance(8),i0.\u0275\u0275property("ngIf",ctx.groupFansub.length>0)("ngIfElse",_r5)}},"UserListComponent_Template"),directives:[i12.NotificationsComponent,i13.NgIf,i14.MatSelectionList,i13.NgForOf,i14.MatListOption,i15.MatIcon,i14.MatListIconCssMatStyler,i2.RouterLinkWithHref,i16.MatTooltip,i17.MatAnchor,i14.MatListAvatarCssMatStyler,i18.NoDataComponent],pipes:[i13.SlicePipe,i19.DateAgoPipe,i13.DatePipe],styles:[""]})},79058:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UserModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),angular_editor_1=__webpack_require__2(29345),ngx_material_file_input_1=__webpack_require__2(21385),constants_1=__webpack_require__2(26271),req_res_model_1=__webpack_require__2(14249),roles_guard_1=__webpack_require__2(2777),custom_pipe_module_1=__webpack_require__2(67355),shared_material_module_1=__webpack_require__2(20210),material_expansion_panel_module_1=__webpack_require__2(6020),material_tab_module_1=__webpack_require__2(66436),report_module_1=__webpack_require__2(54167),notifications_module_1=__webpack_require__2(88613),no_data_module_1=__webpack_require__2(12438),user_detail_component_1=__webpack_require__2(12598),user_list_component_1=__webpack_require__2(81012),user_edit_component_1=__webpack_require__2(72661),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:user_list_component_1.UserListComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"User - Dashboard Overview",description:"Halaman Informasi Pengguna",keywords:"User",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER]}},{path:":username",children:[{path:"",pathMatch:"full",component:user_detail_component_1.UserDetailComponent},{path:"edit",component:user_edit_component_1.UserEditComponent,canActivate:[roles_guard_1.RolesGuard],data:{title:"User - Ubah Profil",description:"Halaman Pembaharuan Profil Pengguna",keywords:"Ubah Profil",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER]}}]}]);class UserModule{}__name(UserModule,"UserModule"),exports2.UserModule=UserModule,UserModule.\u0275fac=__name(function(t){return new(t||UserModule)},"UserModule_Factory"),UserModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:UserModule}),UserModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),shared_material_module_1.SharedMaterialModule,material_expansion_panel_module_1.MaterialExpansionPanelModule,material_tab_module_1.MaterialTabModule,forms_1.FormsModule,forms_1.ReactiveFormsModule,ngx_material_file_input_1.MaterialFileInputModule,angular_editor_1.AngularEditorModule,report_module_1.ReportModule,notifications_module_1.NotificationsModule,custom_pipe_module_1.CustomPipeModule,no_data_module_1.NoDataModule]]})},14359:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.VerifyComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),req_res_model_1=(__webpack_require__2(74202),__webpack_require__2(55615),__webpack_require__2(14249)),environment_1=(__webpack_require__2(4137),__webpack_require__2(80855),__webpack_require__2(8058),__webpack_require__2(33e3),__webpack_require__2(55393),__webpack_require__2(88020),__webpack_require__2(15934)),constants_1=__webpack_require__2(26271),i0=tslib_1.__importStar(__webpack_require__2(5e3)),i1=tslib_1.__importStar(__webpack_require__2(93075)),i2=tslib_1.__importStar(__webpack_require__2(74202)),i3=tslib_1.__importStar(__webpack_require__2(8058)),i4=tslib_1.__importStar(__webpack_require__2(33e3)),i5=tslib_1.__importStar(__webpack_require__2(55393)),i6=tslib_1.__importStar(__webpack_require__2(80855)),i7=tslib_1.__importStar(__webpack_require__2(4137)),i8=tslib_1.__importStar(__webpack_require__2(88020)),i9=tslib_1.__importStar(__webpack_require__2(69808)),i10=tslib_1.__importStar(__webpack_require__2(55615)),i11=tslib_1.__importStar(__webpack_require__2(3290)),i12=tslib_1.__importStar(__webpack_require__2(47423)),i13=tslib_1.__importStar(__webpack_require__2(25245)),_c0=["stepper"];function VerifyComponent_ng_template_17_Template(rf,ctx){1&rf&&i0.\u0275\u0275text(0,"Cari Tanda Pengenal")}function VerifyComponent_form_18_strong_7_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Nomor NIK Tidak Boleh Kosong! "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function VerifyComponent_form_18_strong_8_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Nomor NIK Hanya Boleh Angka "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function VerifyComponent_form_18_strong_15_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Nama Depan Tidak Boleh Kosong! "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function VerifyComponent_form_18_strong_16_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"strong"),i0.\u0275\u0275text(1," Nama Depan Hanya Boleh Huruf "),i0.\u0275\u0275element(2,"br"),i0.\u0275\u0275elementEnd())}function VerifyComponent_form_18_Template(rf,ctx){if(1&rf){const _r11=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",17)(1,"div",18)(2,"label",19),i0.\u0275\u0275text(3,"NIK KTP"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"div",20),i0.\u0275\u0275element(5,"input",21),i0.\u0275\u0275elementStart(6,"span",22),i0.\u0275\u0275template(7,VerifyComponent_form_18_strong_7_Template,3,0,"strong",23),i0.\u0275\u0275template(8,VerifyComponent_form_18_strong_8_Template,3,0,"strong",23),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(9,"div",18)(10,"label",24),i0.\u0275\u0275text(11,"Nama Depan"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(12,"div",20),i0.\u0275\u0275element(13,"input",25),i0.\u0275\u0275elementStart(14,"span",22),i0.\u0275\u0275template(15,VerifyComponent_form_18_strong_15_Template,3,0,"strong",23),i0.\u0275\u0275template(16,VerifyComponent_form_18_strong_16_Template,3,0,"strong",23),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(17,"div",26)(18,"div",27)(19,"re-captcha",28,29),i0.\u0275\u0275listener("resolved",__name(function($event){i0.\u0275\u0275restoreView(_r11);const _r9=i0.\u0275\u0275reference(20);return i0.\u0275\u0275nextContext().captcha($event,_r9)},"VerifyComponent_form_18_Template_re_captcha_resolved_19_listener")),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(21,"div",26)(22,"div",30)(23,"div",31)(24,"div",32)(25,"button",33),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r11),i0.\u0275\u0275nextContext().findNik()},"VerifyComponent_form_18_Template_button_click_25_listener")),i0.\u0275\u0275text(26," Cari KTP "),i0.\u0275\u0275elementStart(27,"mat-icon",34),i0.\u0275\u0275text(28,"search"),i0.\u0275\u0275elementEnd()()()()()()()}if(2&rf){const ctx_r2=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("formGroup",ctx_r2.fg1),i0.\u0275\u0275advance(5),i0.\u0275\u0275classMapInterpolate1("form-control ",!ctx_r2.fg1.get("nik").valid&&ctx_r2.fg1.get("nik").touched?"is-invalid":"",""),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r2.fg1.get("nik").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r2.fg1.get("nik").hasError("pattern")),i0.\u0275\u0275advance(5),i0.\u0275\u0275classMapInterpolate1("form-control ",!ctx_r2.fg1.get("nama").valid&&ctx_r2.fg1.get("nama").touched?"is-invalid":"",""),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r2.fg1.get("nama").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r2.fg1.get("nama").hasError("pattern")),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("siteKey",ctx_r2.G_CAPTCHA_SITE_KEY),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("disabled",ctx_r2.submitted||ctx_r2.fg1.invalid)}}function VerifyComponent_ng_template_20_Template(rf,ctx){1&rf&&i0.\u0275\u0275text(0,"Periksa Data Identitas")}function VerifyComponent_form_21_Template(rf,ctx){if(1&rf){const _r14=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",17)(1,"div",26)(2,"div",32)(3,"button",33),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r14);const ctx_r13=i0.\u0275\u0275nextContext(),_r0=i0.\u0275\u0275reference(15);return ctx_r13.submitKTP(_r0)},"VerifyComponent_form_21_Template_button_click_3_listener")),i0.\u0275\u0275text(4," Data Saya Diatas Sudah Benar "),i0.\u0275\u0275elementStart(5,"mat-icon",34),i0.\u0275\u0275text(6,"check_circle_outline"),i0.\u0275\u0275elementEnd()()()()()}if(2&rf){const ctx_r4=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("formGroup",ctx_r4.fg2),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("disabled",ctx_r4.submitted)}}__name(VerifyComponent_ng_template_17_Template,"VerifyComponent_ng_template_17_Template"),__name(VerifyComponent_form_18_strong_7_Template,"VerifyComponent_form_18_strong_7_Template"),__name(VerifyComponent_form_18_strong_8_Template,"VerifyComponent_form_18_strong_8_Template"),__name(VerifyComponent_form_18_strong_15_Template,"VerifyComponent_form_18_strong_15_Template"),__name(VerifyComponent_form_18_strong_16_Template,"VerifyComponent_form_18_strong_16_Template"),__name(VerifyComponent_form_18_Template,"VerifyComponent_form_18_Template"),__name(VerifyComponent_ng_template_20_Template,"VerifyComponent_ng_template_20_Template"),__name(VerifyComponent_form_21_Template,"VerifyComponent_form_21_Template");const _c1=__name(function(a2){return{"background-position":"center","background-size":"cover","background-image":a2}},"_c1");class VerifyComponent{constructor(fb,router,us,bs,ds,gs,activatedRoute,as,wb){this.fb=fb,this.router=router,this.us=us,this.bs=bs,this.ds=ds,this.gs=gs,this.activatedRoute=activatedRoute,this.as=as,this.wb=wb,this.captchaRef=null,this.submitted=!1,this.returnUrl="/",this.verifyImg="/assets/img/verify.png",this.verifyInfo="Verifikasi akunmu dan dapatkan fitur menarik lainnya~",this.kpuRiUserData=null,this.subsCekNik=null,this.subsVerify1=null,this.subsVerify2=null,this.subsSosmed=null,this.subsDialog=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get ENV(){return environment_1.environment}ngOnDestroy(){var _a,_b,_c,_d,_e;null===(_a=this.subsCekNik)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsVerify1)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsVerify2)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsSosmed)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsDialog)||void 0===_e||_e.unsubscribe()}ngOnInit(){var _a,_b;if(this.returnUrl=this.activatedRoute.snapshot.queryParamMap.get("returnUrl")||"/",this.returnUrl.includes("/login")&&(this.returnUrl="/"),this.gs.isBrowser){this.initKTP();const app=this.activatedRoute.snapshot.queryParamMap.get("app"),code2=this.activatedRoute.snapshot.queryParamMap.get("code")||"";app&&code2?this.sosmedVerify(app,code2):(null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.verified)?this.router.navigateByUrl(this.returnUrl):this.verifyByKtpDisabled()}}get G_CAPTCHA_SITE_KEY(){return constants_1.CONSTANTS.gCaptchaSiteKey}sosmedVerify(sosmedApp,oAuthCode){this.bs.busy(),this.subsSosmed=this.us.sosmedLogin({app:sosmedApp.toUpperCase(),code:oAuthCode}).subscribe({next:res=>{this.gs.log("[SOSMED]",res),this.bs.idle(),this.sosmedVerifyResult(res,sosmedApp)},error:err=>{this.gs.log("[SOSMED]",err,"error"),this.bs.idle(),this.sosmedVerifyResult(err,sosmedApp)}})}sosmedVerifyResult(res,sosmedApp){var _a;this.subsDialog=this.ds.openInfoDialog({data:{title:(null===(_a=res.result)||void 0===_a?void 0:_a.title)||"Whoops, Terjadi Kesalahan!",htmlMessage:res.result.message,confirmText:"Tutup",cancelText:"Ulangi"}}).afterClosed().subscribe({next:re=>{if(this.gs.log("[INFO_DIALOG_CLOSED]",re),!0===re)this.as.removeUser(),this.router.navigate(["/login"],{queryParams:{returnUrl:this.returnUrl}});else if(!1===re){const app=sosmedApp.toUpperCase();app===req_res_model_1.SosMedModel.DISCORD?this.openVerifyDiscordUrl():app===req_res_model_1.SosMedModel.GOOGLE&&this.openVerifyGoogleUrl()}this.subsDialog.unsubscribe()}})}verifyByKtpDisabled(){var _this=this;return _asyncToGenerator(function*(){_this.subsDialog=(yield _this.ds.openVerifikasiSosmed()).afterClosed().subscribe({next:re=>{_this.gs.log("[INFO_DIALOG_CLOSED]",re),!0===re?_this.openVerifyDiscordUrl():!1===re?_this.openVerifyGoogleUrl():_this.router.navigateByUrl(_this.returnUrl),_this.subsDialog.unsubscribe()}})})()}openVerifyDiscordUrl(){this.wb.winboxOpenUri(`${environment_1.environment.baseUrl}/api/discord-verifikasi`,"_self")}openVerifyGoogleUrl(){this.wb.winboxOpenUri(`${environment_1.environment.baseUrl}/api/google-verifikasi`,"_self")}initKTP(){this.fg1=this.fb.group({nik:[null,[forms_1.Validators.required,forms_1.Validators.pattern(/^\d+$/)]],nama:[null,[forms_1.Validators.required,forms_1.Validators.pattern("^[a-zA-Z. ]+$")]],completed:[null,[forms_1.Validators.required]],"g-recaptcha-response":[null,[forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]]}),this.fg2=this.fb.group({nik:[null,[forms_1.Validators.pattern(/^\d+$/)]],nama:[null,[forms_1.Validators.pattern("^[a-zA-Z. ]+$")]],tempat_lahir:[null,[forms_1.Validators.pattern("^[a-zA-Z ]+$")]],tanggal_lahir:[null,[forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]],jenis_kelamin:[null,[forms_1.Validators.pattern("^[LP]+$")]],golongan_darah:[null,[forms_1.Validators.pattern("^[ABO]+$")]],alamat:[null,[forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]],rt:[null,[forms_1.Validators.pattern(/^\d+$/)]],rw:[null,[forms_1.Validators.pattern(/^\d+$/)]],kelurahan_desa:[null,[forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]],kecamatan:[null,[forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]],agama:[null,[forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]],status_perkawinan:[null,[forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]],pekerjaan:[null,[forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]],kewarganegaraan:[null,[forms_1.Validators.pattern("^[WNIA]+$")]]})}captcha(captchaResponse,captchaRef){this.gs.log(`[GOOGLE_CAPTCHA] ${captchaResponse}`),captchaResponse?(this.captchaRef=captchaRef,this.fg1.controls["g-recaptcha-response"].patchValue(captchaResponse)):this.fg1.value["g-recaptcha-response"]&&this.fg1.controls["g-recaptcha-response"].patchValue(null)}findNik(){this.bs.busy(),this.submitted=!0,this.subsCekNik=this.us.cekNik({nik:this.fg1.value.nik,nama:this.fg1.value.nama,"g-recaptcha-response":this.fg1.value["g-recaptcha-response"]}).subscribe({next:res=>{this.gs.log("[KPU_RI_CEK_NIK]",res),this.bs.idle(),this.submitted=!1,"success"===res.result.message?(this.kpuRiUserData={...res.result.data,nik:this.fg1.value.nik},this.verifyInfo=`\n ${this.kpuRiUserData.nama} - ${this.kpuRiUserData.jenis_kelamin} - ${this.kpuRiUserData.tempat_lahir} -\n ${this.kpuRiUserData.nik} - ${this.kpuRiUserData.namaKel} - ${this.kpuRiUserData.namaKec} -\n ${this.kpuRiUserData.namaKabko} - ${this.kpuRiUserData.namaPropinsi}\n `.replace(/\n/g," ").replace(/ +(?= )/g,"").trim(),this.fg2.controls.nik.patchValue(this.kpuRiUserData.nik),this.fg2.controls.nama.patchValue(this.kpuRiUserData.nama),this.fg2.controls.jenis_kelamin.patchValue(this.kpuRiUserData.jenis_kelamin),this.fg2.controls.tempat_lahir.patchValue(this.kpuRiUserData.tempat_lahir),this.fg2.controls.kelurahan_desa.patchValue(this.kpuRiUserData.namaKel),this.fg2.controls.kecamatan.patchValue(this.kpuRiUserData.namaKec),this.fg1.controls.completed.patchValue(!0),this.stepper.next(),this.captchaRef.reset()):(this.verifyInfo=res.result.data.pesan,this.fg1.controls["g-recaptcha-response"].patchValue(null),this.fg1.controls.completed.patchValue(null),this.kpuRiUserData=null,this.captchaRef.reset())},error:err=>{var _a;this.gs.log("[KPU_RI_CEK_NIK_ERROR]",err),this.bs.idle(),this.submitted=!1,this.verifyInfo=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info,this.captchaRef.reset()}})}submitKTP(stepper){this.bs.busy(),this.submitted=!0;const body=this.fg2.value;for(const propName in body)(null===body[propName]||void 0===body[propName])&&delete body[propName];this.subsVerify1=this.us.verifyKTP({...body}).subscribe({next:res=>{this.gs.log("[USER_VERIFIKASI_SUCCESS]",res),this.bs.idle(),this.submitted=!1,this.as.removeUser(),this.bs.busy(),this.subsVerify2=this.as.verify(this.as.token).subscribe({next:success=>{this.gs.log("[VERIFY_LOGIN_SUCCESS]",success),this.bs.idle(),this.router.navigateByUrl(this.returnUrl)},error:error=>{this.gs.log("[VERIFY_LOGIN_ERROR]",error,"error"),this.bs.idle(),this.as.removeUser(),this.router.navigateByUrl(this.returnUrl)}})},error:err=>{var _a;this.gs.log("[USER_VERIFIKASI_ERROR]",err,"error"),this.bs.idle(),this.submitted=!1,this.verifyInfo=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info,stepper.reset()}})}}__name(VerifyComponent,"VerifyComponent"),exports2.VerifyComponent=VerifyComponent,VerifyComponent.\u0275fac=__name(function(t){return new(t||VerifyComponent)(i0.\u0275\u0275directiveInject(i1.FormBuilder),i0.\u0275\u0275directiveInject(i2.Router),i0.\u0275\u0275directiveInject(i3.UserService),i0.\u0275\u0275directiveInject(i4.BusyService),i0.\u0275\u0275directiveInject(i5.DialogService),i0.\u0275\u0275directiveInject(i6.GlobalService),i0.\u0275\u0275directiveInject(i2.ActivatedRoute),i0.\u0275\u0275directiveInject(i7.AuthService),i0.\u0275\u0275directiveInject(i8.WinboxService))},"VerifyComponent_Factory"),VerifyComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:VerifyComponent,selectors:[["app-verify"]],viewQuery:__name(function(rf,ctx){if(1&rf&&i0.\u0275\u0275viewQuery(_c0,7),2&rf){let _t;i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.stepper=_t.first)}},"VerifyComponent_Query"),decls:22,vars:11,consts:[[1,"container-fluid","align-items-center","w-100","h-100"],[1,"row","align-items-center","h-100","m-0"],[1,"col-12","col-md-10","m-auto","py-3"],[1,"row","rgb-border","rounded","bg-bifeldy"],[1,"col-lg-5","col-md-3","ms-auto","p-0",3,"ngStyle"],[1,"col-lg-7","col-md-9","me-auto","p-0"],[1,"card","bg-transparent","border-0"],[1,"card-body","p-0"],[1,"text-center","p-3"],[1,"mb-4",2,"max-width","128px",3,"src"],[1,"h3","mb-3","font-weight-normal"],[1,"text-warning"],["linear","",2,"background-color","transparent"],["stepper",""],[3,"stepControl","editable"],["matStepLabel",""],["class","m-2",3,"formGroup",4,"ngIf"],[1,"m-2",3,"formGroup"],[1,"form-group","row","py-2"],["for","nik",1,"col-md-4","col-form-label","text-md-end"],[1,"col-md-8"],["type","text","id","nik","placeholder","Nomor Induk Kependudukan","required","","formControlName","nik","autocomplete","nik"],["role","alert",1,"invalid-feedback"],[4,"ngIf"],["for","nama",1,"col-md-4","col-form-label","text-md-end"],["type","text","id","nama","placeholder","Nama Depan","required","","formControlName","nama","autocomplete","nama"],[1,"form-group","row","mb-0","py-2"],[1,"col","offset-md-4"],["formControlName","g-recaptcha-response",3,"siteKey","resolved"],["captchaRef",""],[1,"col-md-8","offset-md-4"],[1,"row"],[1,"col-12"],["mat-flat-button","","color","primary","type","button",1,"w-100",3,"disabled","click"],[1,"ms-1"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),i0.\u0275\u0275element(4,"div",4),i0.\u0275\u0275elementStart(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8),i0.\u0275\u0275element(9,"img",9),i0.\u0275\u0275elementStart(10,"h1",10),i0.\u0275\u0275text(11,'Yuhu~, Ayo Verifikasi! >_<"'),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(12,"p",11),i0.\u0275\u0275text(13),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(14,"mat-vertical-stepper",12,13)(16,"mat-step",14),i0.\u0275\u0275template(17,VerifyComponent_ng_template_17_Template,1,0,"ng-template",15),i0.\u0275\u0275template(18,VerifyComponent_form_18_Template,29,13,"form",16),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(19,"mat-step",14),i0.\u0275\u0275template(20,VerifyComponent_ng_template_20_Template,1,0,"ng-template",15),i0.\u0275\u0275template(21,VerifyComponent_form_21_Template,7,2,"form",16),i0.\u0275\u0275elementEnd()()()()()()()()()),2&rf&&(i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngStyle",i0.\u0275\u0275pureFunction1(9,_c1,"url("+ctx.verifyImg+")")),i0.\u0275\u0275advance(5),i0.\u0275\u0275propertyInterpolate1("src","",ctx.ENV.baseUrl,"/assets/img/logo/verify.png",i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate(ctx.verifyInfo),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("stepControl",ctx.fg1)("editable",!1),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx.fg1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("stepControl",ctx.fg2)("editable",!1),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx.fg2))},"VerifyComponent_Template"),directives:[i9.NgStyle,i10.MatStepper,i10.MatStep,i10.MatStepLabel,i9.NgIf,i1.\u0275NgNoValidate,i1.NgControlStatusGroup,i1.FormGroupDirective,i1.DefaultValueAccessor,i1.RequiredValidator,i1.NgControlStatus,i1.FormControlName,i11.RecaptchaComponent,i11.RecaptchaValueAccessorDirective,i12.MatButton,i13.MatIcon],styles:[""]})},92548:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.VerifyModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),ng_recaptcha_1=__webpack_require__2(3290),shared_material_module_1=__webpack_require__2(20210),verify_component_1=__webpack_require__2(14359),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",component:verify_component_1.VerifyComponent}]);class VerifyModule{}__name(VerifyModule,"VerifyModule"),exports2.VerifyModule=VerifyModule,VerifyModule.\u0275fac=__name(function(t){return new(t||VerifyModule)},"VerifyModule_Factory"),VerifyModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:VerifyModule}),VerifyModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule.forChild(routes),forms_1.FormsModule,forms_1.ReactiveFormsModule,shared_material_module_1.SharedMaterialModule,ng_recaptcha_1.RecaptchaModule,ng_recaptcha_1.RecaptchaFormsModule]]})},40746:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.animateText=exports2.onMainContentChange=exports2.onSideNavChange=void 0;const animations_1=__webpack_require__2(41777);exports2.onSideNavChange=(0,animations_1.trigger)("onSideNavChange",[(0,animations_1.state)("close",(0,animations_1.style)({"min-width":"50px"})),(0,animations_1.state)("open",(0,animations_1.style)({"min-width":"200px"})),(0,animations_1.transition)("close => open",(0,animations_1.animate)("250ms ease-in")),(0,animations_1.transition)("open => close",(0,animations_1.animate)("250ms ease-out"))]),exports2.onMainContentChange=(0,animations_1.trigger)("onMainContentChange",[(0,animations_1.state)("close",(0,animations_1.style)({"margin-left":"62px"})),(0,animations_1.state)("open",(0,animations_1.style)({"margin-left":"200px"})),(0,animations_1.transition)("close => open",(0,animations_1.animate)("250ms ease-in")),(0,animations_1.transition)("open => close",(0,animations_1.animate)("250ms ease-out"))]),exports2.animateText=(0,animations_1.trigger)("animateText",[(0,animations_1.state)("hide",(0,animations_1.style)({display:"none",opacity:0})),(0,animations_1.state)("show",(0,animations_1.style)({display:"block",opacity:1})),(0,animations_1.transition)("close => open",(0,animations_1.animate)("350ms ease-in")),(0,animations_1.transition)("open => close",(0,animations_1.animate)("200ms ease-out"))])},49933:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BannerDiscordComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=__webpack_require__2(15934),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855));class BannerDiscordComponent{constructor(gs){this.gs=gs,this.gs.isBrowser}get GS(){return this.gs}ngOnInit(){this.gs.isBrowser}get discordUrl(){return environment_1.environment.discord.join_url}get discordGuildId(){return environment_1.environment.discord.guild_id}}__name(BannerDiscordComponent,"BannerDiscordComponent"),exports2.BannerDiscordComponent=BannerDiscordComponent,BannerDiscordComponent.\u0275fac=__name(function(t){return new(t||BannerDiscordComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService))},"BannerDiscordComponent_Factory"),BannerDiscordComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:BannerDiscordComponent,selectors:[["app-banner-discord"]],decls:9,vars:3,consts:[[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12"],[1,"gradient-border","rgb-border","mx-2","mb-2"],["target","_blank",3,"href"],[1,"w-100",3,"src"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h2",2)(3,"b",3),i0.\u0275\u0275text(4,"Yuk Gabung Obrolan!"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",4)(6,"p",5)(7,"a",6),i0.\u0275\u0275element(8,"img",7),i0.\u0275\u0275elementEnd()()()()),2&rf&&(i0.\u0275\u0275advance(7),i0.\u0275\u0275propertyInterpolate("href",ctx.discordUrl,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate2("src","https://discord.com/api/guilds/",ctx.discordGuildId,"/widget.png?style=banner",ctx.GS.gridListBreakpoint,"",i0.\u0275\u0275sanitizeUrl))},"BannerDiscordComponent_Template"),styles:[""]})},54854:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BannerDiscordModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),i0=tslib_1.__importStar(__webpack_require__2(5e3));class BannerDiscordModule{}__name(BannerDiscordModule,"BannerDiscordModule"),exports2.BannerDiscordModule=BannerDiscordModule,BannerDiscordModule.\u0275fac=__name(function(t){return new(t||BannerDiscordModule)},"BannerDiscordModule_Factory"),BannerDiscordModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:BannerDiscordModule}),BannerDiscordModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule]]})},15694:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BannerNihongoComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(69808)),i3=tslib_1.__importStar(__webpack_require__2(9224)),i4=tslib_1.__importStar(__webpack_require__2(74202));function BannerNihongoComponent_div_3_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",4)(1,"mat-card",5),i0.\u0275\u0275element(2,"img",6),i0.\u0275\u0275elementStart(3,"mat-card-content",7)(4,"h3")(5,"b"),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd()()()()()),2&rf){const n_r1=ctx.$implicit;i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate1("routerLink","/nihongo/",n_r1.url,""),i0.\u0275\u0275property("src",n_r1.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate1("routerLink","/nihongo/",n_r1.url,""),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(n_r1.title)}}__name(BannerNihongoComponent_div_3_Template,"BannerNihongoComponent_div_3_Template");class BannerNihongoComponent{constructor(gs){this.gs=gs,this.nihongoMenu=[{url:"belajar",title:"Pengenalan Aksara",image_url:"/assets/img/nihongo/hirakata.png"},{url:"kanji",title:"Pengayaan Kanji (* JP-EN)",image_url:"/assets/img/nihongo/jlpt.png"}],this.gs.isBrowser}ngOnInit(){this.gs.isBrowser}}__name(BannerNihongoComponent,"BannerNihongoComponent"),exports2.BannerNihongoComponent=BannerNihongoComponent,BannerNihongoComponent.\u0275fac=__name(function(t){return new(t||BannerNihongoComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService))},"BannerNihongoComponent_Factory"),BannerNihongoComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:BannerNihongoComponent,selectors:[["app-banner-nihongo"]],decls:4,vars:1,consts:[[1,"row"],[1,"col-12"],[1,"row","px-3"],["class","col-12 col-md-6 p-2",4,"ngFor","ngForOf"],[1,"col-12","col-md-6","p-2"],[1,"gradient-border","rgb-border"],["mat-card-image","",2,"height","128px","object-fit","cover","cursor","pointer",3,"src","routerLink"],[2,"cursor","pointer",3,"routerLink"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),i0.\u0275\u0275template(3,BannerNihongoComponent_div_3_Template,7,4,"div",3),i0.\u0275\u0275elementEnd()()()),2&rf&&(i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngForOf",ctx.nihongoMenu))},"BannerNihongoComponent_Template"),directives:[i2.NgForOf,i3.MatCard,i3.MatCardImage,i4.RouterLink,i3.MatCardContent],styles:[""]})},50913:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BannerNihongoModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),shared_material_module_1=__webpack_require__2(20210),i0=tslib_1.__importStar(__webpack_require__2(5e3));class BannerNihongoModule{}__name(BannerNihongoModule,"BannerNihongoModule"),exports2.BannerNihongoModule=BannerNihongoModule,BannerNihongoModule.\u0275fac=__name(function(t){return new(t||BannerNihongoModule)},"BannerNihongoModule_Factory"),BannerNihongoModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:BannerNihongoModule}),BannerNihongoModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule,shared_material_module_1.SharedMaterialModule]]})},876:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CardAnimeDoramaComponent=void 0;const tslib_1=__webpack_require__2(70655),core_1=__webpack_require__2(5e3),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(69808)),i3=tslib_1.__importStar(__webpack_require__2(53609));function CardAnimeDoramaComponent_swiper_0_div_1_Template(rf,ctx){if(1&rf){const _r4=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",3),i0.\u0275\u0275listener("click",__name(function(){const ad_r2=i0.\u0275\u0275restoreView(_r4).$implicit;return i0.\u0275\u0275nextContext(2).onCardClicked(ad_r2)},"CardAnimeDoramaComponent_swiper_0_div_1_Template_div_click_0_listener")),i0.\u0275\u0275elementStart(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),i0.\u0275\u0275text(5),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"div",8),i0.\u0275\u0275text(7),i0.\u0275\u0275elementEnd()()()()()}if(2&rf){const ad_r2=ctx.$implicit;i0.\u0275\u0275styleProp("background-image","url("+ad_r2.image_url+") !important"),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1("",ad_r2.episodes||ad_r2.num_episodes?ad_r2.episodes||ad_r2.num_episodes:"?"," Eps"),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate1("",ad_r2.namaFansubs.length," Grup")}}function CardAnimeDoramaComponent_swiper_0_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"swiper",1),i0.\u0275\u0275template(1,CardAnimeDoramaComponent_swiper_0_div_1_Template,8,4,"div",2),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("config",ctx_r0.swiperConfig),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r0.animeDoramaData)}}__name(CardAnimeDoramaComponent_swiper_0_div_1_Template,"CardAnimeDoramaComponent_swiper_0_div_1_Template"),__name(CardAnimeDoramaComponent_swiper_0_Template,"CardAnimeDoramaComponent_swiper_0_Template");class CardAnimeDoramaComponent{constructor(gs){this.gs=gs,this.swiperConfig={slidesPerView:1.75,spaceBetween:25,grabCursor:!0,breakpoints:{576:{slidesPerView:2.75},768:{slidesPerView:3.75},992:{slidesPerView:4.75},1200:{slidesPerView:5.75},1400:{slidesPerView:6.75}}},this.animeDoramaData=[],this.cardClicked=new core_1.EventEmitter,this.gs.isBrowser}ngOnInit(){this.gs.isBrowser}onCardClicked(data){this.cardClicked.emit(data)}}__name(CardAnimeDoramaComponent,"CardAnimeDoramaComponent"),exports2.CardAnimeDoramaComponent=CardAnimeDoramaComponent,CardAnimeDoramaComponent.\u0275fac=__name(function(t){return new(t||CardAnimeDoramaComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService))},"CardAnimeDoramaComponent_Factory"),CardAnimeDoramaComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:CardAnimeDoramaComponent,selectors:[["app-card-anime-dorama"]],inputs:{animeDoramaData:"animeDoramaData"},outputs:{cardClicked:"cardClicked"},decls:1,vars:1,consts:[[3,"config",4,"ngIf"],[3,"config"],["class","card shadow align-items-center","style","height: 240px; background-size: cover !important; background-position: center !important;",3,"background-image","click",4,"ngFor","ngForOf"],[1,"card","shadow","align-items-center",2,"height","240px","background-size","cover !important","background-position","center !important",3,"click"],[1,"row","align-items-center","w-100","h-100"],[1,"mt-auto","text-bifeldy","p-0","col-12","bg-bifeldy",2,"opacity","0.75"],[1,"row","m-0","p-0"],[1,"col-6","m-0","p-1"],[1,"col-6","m-0","p-1","text-end"]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275template(0,CardAnimeDoramaComponent_swiper_0_Template,2,2,"swiper",0),2&rf&&i0.\u0275\u0275property("ngIf",ctx.animeDoramaData.length>0)},"CardAnimeDoramaComponent_Template"),directives:[i2.NgIf,i3.SwiperComponent,i2.NgForOf],styles:[""]})},42323:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CardAnimeDoramaModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),ngx_swiper_wrapper_1=__webpack_require__2(53609),shared_material_module_1=__webpack_require__2(20210),i0=tslib_1.__importStar(__webpack_require__2(5e3));class CardAnimeDoramaModule{}__name(CardAnimeDoramaModule,"CardAnimeDoramaModule"),exports2.CardAnimeDoramaModule=CardAnimeDoramaModule,CardAnimeDoramaModule.\u0275fac=__name(function(t){return new(t||CardAnimeDoramaModule)},"CardAnimeDoramaModule_Factory"),CardAnimeDoramaModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:CardAnimeDoramaModule}),CardAnimeDoramaModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,shared_material_module_1.SharedMaterialModule,ngx_swiper_wrapper_1.SwiperModule]]})},34537:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CommentComponent=void 0;const tslib_1=__webpack_require__2(70655),router_1=(__webpack_require__2(69287),__webpack_require__2(74202)),environment_1=(__webpack_require__2(57261),__webpack_require__2(15934)),i0=(__webpack_require__2(80855),__webpack_require__2(47559),__webpack_require__2(4137),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(69287)),i2=tslib_1.__importStar(__webpack_require__2(74202)),i3=tslib_1.__importStar(__webpack_require__2(57261)),i4=tslib_1.__importStar(__webpack_require__2(47559)),i5=tslib_1.__importStar(__webpack_require__2(80855)),i6=tslib_1.__importStar(__webpack_require__2(4137)),i7=tslib_1.__importStar(__webpack_require__2(69808)),i8=tslib_1.__importStar(__webpack_require__2(67322)),i9=tslib_1.__importStar(__webpack_require__2(77531)),i10=tslib_1.__importStar(__webpack_require__2(93075)),i11=tslib_1.__importStar(__webpack_require__2(25245)),i12=tslib_1.__importStar(__webpack_require__2(47423)),i13=tslib_1.__importStar(__webpack_require__2(49321)),i14=tslib_1.__importStar(__webpack_require__2(87238)),i15=tslib_1.__importStar(__webpack_require__2(92181)),i16=tslib_1.__importStar(__webpack_require__2(40192)),i17=tslib_1.__importStar(__webpack_require__2(86766));function CommentComponent_div_0_Template(rf,ctx){if(1&rf){const _r5=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",4)(1,"mat-form-field",5)(2,"mat-label"),i0.\u0275\u0275text(3,"Buat Komentar Baru"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"input",6),i0.\u0275\u0275listener("ngModelChange",__name(function($event){i0.\u0275\u0275restoreView(_r5);return i0.\u0275\u0275nextContext().commentToSend=$event},"CommentComponent_div_0_Template_input_ngModelChange_4_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"mat-icon",7),i0.\u0275\u0275text(6,"quickreply"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(7,"div",8)(8,"button",9),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r5),i0.\u0275\u0275nextContext().sendComment(null)},"CommentComponent_div_0_Template_button_click_8_listener")),i0.\u0275\u0275text(9," Kirim "),i0.\u0275\u0275elementStart(10,"mat-icon",10),i0.\u0275\u0275text(11,"send"),i0.\u0275\u0275elementEnd()()()()}if(2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngModel",ctx_r0.commentToSend)}}function CommentComponent_div_2_mat_form_field_27_Template(rf,ctx){if(1&rf){const _r15=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-form-field",31)(1,"mat-label"),i0.\u0275\u0275text(2,"Balas / Tanggapi"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"input",32),i0.\u0275\u0275listener("ngModelChange",__name(function($event){i0.\u0275\u0275restoreView(_r15);return i0.\u0275\u0275nextContext().$implicit.reply_to_send=$event},"CommentComponent_div_2_mat_form_field_27_Template_input_ngModelChange_3_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"mat-icon",7),i0.\u0275\u0275text(5,"quickreply"),i0.\u0275\u0275elementEnd()()}if(2&rf){const k_r7=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngModel",k_r7.reply_to_send)}}function CommentComponent_div_2_button_31_mat_icon_1_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",23),i0.\u0275\u0275text(1,"expand_more"),i0.\u0275\u0275elementEnd())}function CommentComponent_div_2_button_31_mat_icon_2_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",23),i0.\u0275\u0275text(1,"expand_less"),i0.\u0275\u0275elementEnd())}function CommentComponent_div_2_button_31_Template(rf,ctx){if(1&rf){const _r21=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",33),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r21);const k_r7=i0.\u0275\u0275nextContext().$implicit;return i0.\u0275\u0275nextContext().showHideComment(k_r7)},"CommentComponent_div_2_button_31_Template_button_click_0_listener")),i0.\u0275\u0275template(1,CommentComponent_div_2_button_31_mat_icon_1_Template,2,0,"mat-icon",34),i0.\u0275\u0275template(2,CommentComponent_div_2_button_31_mat_icon_2_Template,2,0,"mat-icon",34),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()}if(2&rf){const k_r7=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!k_r7.show_reply),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",k_r7.show_reply),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate2(" ",k_r7.show_reply?"Sembunyikan":"Tampilkan"," ",k_r7.reply_count," balasan ")}}function CommentComponent_div_2_button_33_Template(rf,ctx){if(1&rf){const _r25=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",9),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r25);const k_r7=i0.\u0275\u0275nextContext().$implicit;return i0.\u0275\u0275nextContext().sendComment(k_r7)},"CommentComponent_div_2_button_33_Template_button_click_0_listener")),i0.\u0275\u0275text(1," Kirim "),i0.\u0275\u0275elementStart(2,"mat-icon",10),i0.\u0275\u0275text(3,"send"),i0.\u0275\u0275elementEnd()()}}function CommentComponent_div_2_app_comment_34_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"app-comment",35),2&rf){const k_r7=i0.\u0275\u0275nextContext().$implicit,ctx_r12=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("parent",k_r7)("komentar",k_r7.reply)("recursionCount",ctx_r12.recursionCount+1)}}function CommentComponent_div_2_Template(rf,ctx){if(1&rf){const _r28=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",11)(1,"div",12),i0.\u0275\u0275element(2,"img",13),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"div")(4,"div",14),i0.\u0275\u0275listener("click",__name(function(){const k_r7=i0.\u0275\u0275restoreView(_r28).$implicit;return i0.\u0275\u0275nextContext().showHideCommentBox(k_r7)},"CommentComponent_div_2_Template_div_click_4_listener")),i0.\u0275\u0275elementStart(5,"p",15)(6,"b",16),i0.\u0275\u0275listener("click",__name(function($event){const k_r7=i0.\u0275\u0275restoreView(_r28).$implicit,ctx_r29=i0.\u0275\u0275nextContext();return $event.stopPropagation(),ctx_r29.openUserProfile(k_r7)},"CommentComponent_div_2_Template_b_click_6_listener")),i0.\u0275\u0275text(7),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(8,"small",17),i0.\u0275\u0275pipe(9,"date"),i0.\u0275\u0275text(10),i0.\u0275\u0275pipe(11,"dateAgo"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275element(12,"p",18),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(13,"div",19)(14,"button",20)(15,"mat-icon"),i0.\u0275\u0275text(16,"more_vert"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(17,"mat-menu",null,21)(19,"button",22),i0.\u0275\u0275listener("click",__name(function(){const k_r7=i0.\u0275\u0275restoreView(_r28).$implicit;return i0.\u0275\u0275nextContext().deleteComment(k_r7)},"CommentComponent_div_2_Template_button_click_19_listener")),i0.\u0275\u0275elementStart(20,"mat-icon",23),i0.\u0275\u0275text(21,"delete"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(22," Hapus "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(23,"button",22),i0.\u0275\u0275listener("click",__name(function(){const k_r7=i0.\u0275\u0275restoreView(_r28).$implicit;return i0.\u0275\u0275nextContext().copyCommentLink(k_r7)},"CommentComponent_div_2_Template_button_click_23_listener")),i0.\u0275\u0275elementStart(24,"mat-icon",23),i0.\u0275\u0275text(25,"link"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(26," Salin URL "),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(27,CommentComponent_div_2_mat_form_field_27_Template,6,2,"mat-form-field",24),i0.\u0275\u0275elementStart(28,"div",25)(29,"div",4)(30,"div",26),i0.\u0275\u0275template(31,CommentComponent_div_2_button_31_Template,4,4,"button",27),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(32,"div",28),i0.\u0275\u0275template(33,CommentComponent_div_2_button_33_Template,4,0,"button",29),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(34,CommentComponent_div_2_app_comment_34_Template,1,3,"app-comment",30),i0.\u0275\u0275elementEnd()()}if(2&rf){const k_r7=ctx.$implicit,_r8=i0.\u0275\u0275reference(18),ctx_r1=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate("src",k_r7.user_.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(1),i0.\u0275\u0275classMapInterpolate1("flex-grow-1 ms-3 row ",0===ctx_r1.recursionCount?"me-2":"",""),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate1(" ",k_r7.user_.username," "),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("matTooltip",i0.\u0275\u0275pipeBind2(9,13,k_r7.created_at,"d MMMM y, hh:mm:ss a z")),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate1(" ",i0.\u0275\u0275pipeBind1(11,16,k_r7.created_at)," "),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("innerHTML",k_r7.comment,i0.\u0275\u0275sanitizeHtml),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("matMenuTriggerFor",_r8),i0.\u0275\u0275advance(13),i0.\u0275\u0275property("ngIf",k_r7.reply_mode&&(null==ctx_r1.AS.currentUserSubject?null:ctx_r1.AS.currentUserSubject.value)&&0===ctx_r1.recursionCount),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",k_r7.reply_count>0),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",k_r7.reply_mode&&(null==ctx_r1.AS.currentUserSubject?null:ctx_r1.AS.currentUserSubject.value)&&0===ctx_r1.recursionCount),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",k_r7.show_reply)}}function CommentComponent_div_3_Template(rf,ctx){if(1&rf){const _r33=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",36)(1,"button",9),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r33),i0.\u0275\u0275nextContext().loadNextPage()},"CommentComponent_div_3_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",23),i0.\u0275\u0275text(3,"subdirectory_arrow_right"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Load More ... "),i0.\u0275\u0275elementEnd()()}}function CommentComponent_div_4_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",4),i0.\u0275\u0275element(1,"app-no-data",37),i0.\u0275\u0275elementEnd())}__name(CommentComponent_div_0_Template,"CommentComponent_div_0_Template"),__name(CommentComponent_div_2_mat_form_field_27_Template,"CommentComponent_div_2_mat_form_field_27_Template"),__name(CommentComponent_div_2_button_31_mat_icon_1_Template,"CommentComponent_div_2_button_31_mat_icon_1_Template"),__name(CommentComponent_div_2_button_31_mat_icon_2_Template,"CommentComponent_div_2_button_31_mat_icon_2_Template"),__name(CommentComponent_div_2_button_31_Template,"CommentComponent_div_2_button_31_Template"),__name(CommentComponent_div_2_button_33_Template,"CommentComponent_div_2_button_33_Template"),__name(CommentComponent_div_2_app_comment_34_Template,"CommentComponent_div_2_app_comment_34_Template"),__name(CommentComponent_div_2_Template,"CommentComponent_div_2_Template"),__name(CommentComponent_div_3_Template,"CommentComponent_div_3_Template"),__name(CommentComponent_div_4_Template,"CommentComponent_div_4_Template");class CommentComponent{constructor(clipboard,router,snackBar,komen,gs,as){this.clipboard=clipboard,this.router=router,this.snackBar=snackBar,this.komen=komen,this.gs=gs,this.as=as,this.urlPath=null,this.count=0,this.page=1,this.row=10,this.pageFinished=!1,this.recursionCount=0,this.rootCommentBox=!1,this.commentToSend=null,this.parent=null,this.komentar=[],this.subsKomenSend=null,this.subsKomenGetKomen=null,this.subsKomenGetReply=null,this.subsDelete=null,this.subsRouter=null,this.gs.isBrowser}get AS(){return this.as}ngOnInit(){this.gs.isBrowser&&(0===this.recursionCount&&this.reloadComponent(),this.subsRouter=this.router.events.subscribe({next:evt=>{evt instanceof router_1.NavigationEnd&&this.reloadComponent()}}))}ngOnDestroy(){var _a,_b,_c,_d,_e;null===(_a=this.subsKomenSend)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsKomenGetKomen)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsKomenGetReply)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsDelete)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsRouter)||void 0===_e||_e.unsubscribe(),this.urlPath=null}reloadComponent(){this.urlPath=this.router.url.split("?")[0],this.getComment(!0)}sendComment(k){this.gs.log("[KOMENTAR_PARENT_CREATE_REPLY]",k);const commentData=k?{path:this.urlPath,comment:k.reply_to_send,parent:k.id}:{path:this.urlPath,comment:this.commentToSend};this.subsKomenSend=this.komen.sendComment(commentData).subscribe({next:res=>{this.gs.log("[KOMENTAR_CREATE_REPLY_SUCCESS]",res),k?(k.reply_to_send=null,k.reply_mode=!1,this.getReply(k,!0)):(this.commentToSend=null,this.getComment(!0))},error:err=>{this.gs.log("[KOMENTAR_CREATE_REPLY_ERROR]",err,"error")}})}getComment(fresh=!1){this.parent||(fresh&&(this.page=1,this.pageFinished=!1),this.subsKomenGetKomen=this.komen.getComment(this.urlPath,"",this.page,this.row).subscribe({next:res=>{this.gs.log("[KOMENTAR_LIST_SUCCESS]",res),this.count=res.count,this.komentar=fresh?res.results:[...this.komentar,...res.results],res.results.length<=0&&(this.pageFinished=!0)},error:err=>{this.gs.log("[KOMENTAR_LIST_ERROR]",err,"error")}}))}getReply(k,fresh=!1){this.gs.log("[KOMENTAR_PARENT_LOAD_REPLY]",k),fresh&&(k.reply_page=1,k.reply_page_finised=!1),this.subsKomenGetReply=this.komen.getReply(k.id,"",k.reply_page,this.row).subscribe({next:res=>{this.gs.log("[REPLY_LIST_SUCCESS]",res),k.reply=fresh?res.results:[...k.reply,...res.results],k.reply_count=res.count,res.results.length<=0&&(k.reply_page_finised=!0)},error:err=>{this.gs.log("[REPLY_LIST_ERROR]",err,"error"),k.reply=[]}})}showHideComment(k){void 0===k.show_reply||null===k.show_reply?k.show_reply=!0:k.show_reply=!k.show_reply,k.show_reply&&this.getReply(k,!0)}showHideCommentBox(k){void 0===k.reply_mode||null===k.reply_mode?k.reply_mode=!0:k.reply_mode=!k.reply_mode}loadNextPage(){this.parent?this.loadNextPageReply(this.parent):this.loadNextPageComment()}loadNextPageComment(){this.pageFinished||(this.page++,this.getComment())}loadNextPageReply(k){k.reply_page_finised||(k.reply_page||(k.reply_page=1),k.reply_page++,this.getReply(k))}openUserProfile(k){this.router.navigateByUrl(`/user/${k.user_.username}`)}copyCommentLink(k){const url=(k.path.startsWith("/")?environment_1.environment.baseUrl:"")+k.path;this.clipboard.copy(`${url}?comment=${k.id}`)&&this.snackBar.open("URL Komentar :: Telah Di Salin Pada Clipboard","Ok")}deleteComment(k){this.gs.log("[KOMENTAR_DELETE_COMMENT]",k),this.subsDelete=this.komen.deleteComment(k.id).subscribe({next:res=>{this.gs.log("[KOMENTAR_DELETE_SUCCESS]",res),this.parent?this.getReply(this.parent,!0):this.getComment(!0)},error:err=>{this.gs.log("[KOMENTAR_DELETE_ERROR]",err,"error"),this.parent?this.getReply(this.parent,!0):this.getComment(!0)}})}}__name(CommentComponent,"CommentComponent"),exports2.CommentComponent=CommentComponent,CommentComponent.\u0275fac=__name(function(t){return new(t||CommentComponent)(i0.\u0275\u0275directiveInject(i1.Clipboard),i0.\u0275\u0275directiveInject(i2.Router),i0.\u0275\u0275directiveInject(i3.MatSnackBar),i0.\u0275\u0275directiveInject(i4.KomentarService),i0.\u0275\u0275directiveInject(i5.GlobalService),i0.\u0275\u0275directiveInject(i6.AuthService))},"CommentComponent_Factory"),CommentComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:CommentComponent,selectors:[["app-comment"]],inputs:{row:"row",recursionCount:"recursionCount",rootCommentBox:"rootCommentBox",parent:"parent",komentar:"komentar"},decls:5,vars:4,consts:[["class","row",4,"ngIf"],["appDomChange","",1,"row"],["class","d-flex my-1",4,"ngFor","ngForOf"],["class","col-12",4,"ngIf"],[1,"row"],["appearance","outline",1,"col-12",3,"color"],["matInput","","placeholder","Buat Baru ...",3,"ngModel","ngModelChange"],["matSuffix",""],[1,"col-12","text-end","pe-0","mb-3"],["mat-button","","color","accent",3,"click"],[1,"ms-1"],[1,"d-flex","my-1"],[1,"flex-shrink-0"],["width","40","height","40",2,"object-fit","cover","object-position","center",3,"src"],[1,"col-8","p-0",3,"click"],[1,"m-0"],[1,"text-warning",2,"cursor","pointer",3,"click"],[1,"ms-3","text-bifeldy",3,"matTooltip"],[1,"mb-1",2,"line-height","normal",3,"innerHTML"],[1,"col","p-0","text-end"],["mat-icon-button","","color","accent","matTooltip","Opsi",3,"matMenuTriggerFor"],["komentarMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"me-1"],["appearance","outline","class","mt-2 col-12",3,"color",4,"ngIf"],[1,"col-12","p-0"],[1,"col-6"],["mat-button","","class","ps-1 pe-2","color","accent",3,"click",4,"ngIf"],[1,"col-6","text-end"],["mat-button","","color","accent",3,"click",4,"ngIf"],[3,"parent","komentar","recursionCount",4,"ngIf"],["appearance","outline",1,"mt-2","col-12",3,"color"],["matInput","","placeholder","Balas ...",3,"ngModel","ngModelChange"],["mat-button","","color","accent",1,"ps-1","pe-2",3,"click"],["class","me-1",4,"ngIf"],[3,"parent","komentar","recursionCount"],[1,"col-12"],[1,"col-12","p-3"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275template(0,CommentComponent_div_0_Template,12,2,"div",0),i0.\u0275\u0275elementStart(1,"div",1),i0.\u0275\u0275template(2,CommentComponent_div_2_Template,35,18,"div",2),i0.\u0275\u0275template(3,CommentComponent_div_3_Template,5,0,"div",3),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(4,CommentComponent_div_4_Template,2,0,"div",0)),2&rf&&(i0.\u0275\u0275property("ngIf",ctx.rootCommentBox&&(null==ctx.AS.currentUserSubject?null:ctx.AS.currentUserSubject.value)),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngForOf",ctx.komentar),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.count>=10&&!ctx.pageFinished||(null==ctx.parent?null:ctx.parent.reply_count)>=10&&!(null!=ctx.parent&&ctx.parent.reply_page_finised)),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.komentar&&ctx.komentar.length<=0))},"CommentComponent_Template"),directives:[i7.NgIf,i8.MatFormField,i8.MatLabel,i9.MatInput,i10.DefaultValueAccessor,i10.NgControlStatus,i10.NgModel,i11.MatIcon,i8.MatSuffix,i12.MatButton,i13.DomChangeDirective,i7.NgForOf,i14.MatTooltip,i15.MatMenuTrigger,i15.MatMenu,i15.MatMenuItem,CommentComponent,i16.NoDataComponent],pipes:[i7.DatePipe,i17.DateAgoPipe],styles:[""]})},78838:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DiscussionComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(71803)),i3=tslib_1.__importStar(__webpack_require__2(34537));class DiscussionComponent{constructor(gs){this.gs=gs,this.gs.isBrowser}ngOnInit(){}}__name(DiscussionComponent,"DiscussionComponent"),exports2.DiscussionComponent=DiscussionComponent,DiscussionComponent.\u0275fac=__name(function(t){return new(t||DiscussionComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService))},"DiscussionComponent_Factory"),DiscussionComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:DiscussionComponent,selectors:[["app-discussion"]],decls:2,vars:1,consts:[[3,"rootCommentBox"]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"app-highlight")(1,"app-comment",0),2&rf&&(i0.\u0275\u0275advance(1),i0.\u0275\u0275property("rootCommentBox",!0))},"DiscussionComponent_Template"),directives:[i2.HighlightComponent,i3.CommentComponent],styles:[""]})},78764:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DiscussionModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),forms_1=__webpack_require__2(93075),custom_pipe_module_1=__webpack_require__2(67355),shared_material_module_1=__webpack_require__2(20210),no_data_module_1=__webpack_require__2(12438),custom_directive_module_1=__webpack_require__2(17956),i0=tslib_1.__importStar(__webpack_require__2(5e3));class DiscussionModule{}__name(DiscussionModule,"DiscussionModule"),exports2.DiscussionModule=DiscussionModule,DiscussionModule.\u0275fac=__name(function(t){return new(t||DiscussionModule)},"DiscussionModule_Factory"),DiscussionModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:DiscussionModule}),DiscussionModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,forms_1.FormsModule,forms_1.ReactiveFormsModule,shared_material_module_1.SharedMaterialModule,custom_pipe_module_1.CustomPipeModule,custom_directive_module_1.CustomDirectivesModule,no_data_module_1.NoDataModule]]})},71803:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HighlightComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=(__webpack_require__2(74202),__webpack_require__2(69287),__webpack_require__2(57261),__webpack_require__2(15934)),i0=(__webpack_require__2(80855),__webpack_require__2(47559),__webpack_require__2(4137),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(69287)),i2=tslib_1.__importStar(__webpack_require__2(74202)),i3=tslib_1.__importStar(__webpack_require__2(57261)),i4=tslib_1.__importStar(__webpack_require__2(47559)),i5=tslib_1.__importStar(__webpack_require__2(80855)),i6=tslib_1.__importStar(__webpack_require__2(4137)),i7=tslib_1.__importStar(__webpack_require__2(69808)),i8=tslib_1.__importStar(__webpack_require__2(49321)),i9=tslib_1.__importStar(__webpack_require__2(87238)),i10=tslib_1.__importStar(__webpack_require__2(47423)),i11=tslib_1.__importStar(__webpack_require__2(92181)),i12=tslib_1.__importStar(__webpack_require__2(25245)),i13=tslib_1.__importStar(__webpack_require__2(67322)),i14=tslib_1.__importStar(__webpack_require__2(77531)),i15=tslib_1.__importStar(__webpack_require__2(93075)),i16=tslib_1.__importStar(__webpack_require__2(34537)),i17=tslib_1.__importStar(__webpack_require__2(86766));function HighlightComponent_div_0_div_1_div_28_Template(rf,ctx){if(1&rf){const _r12=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",21)(1,"div",27)(2,"div",5),i0.\u0275\u0275element(3,"img",6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"div",7)(5,"div",28)(6,"p",9)(7,"b",10),i0.\u0275\u0275listener("click",__name(function($event){i0.\u0275\u0275restoreView(_r12);const ctx_r11=i0.\u0275\u0275nextContext(3);return $event.stopPropagation(),ctx_r11.openUserProfile(ctx_r11.komentarHighlight)},"HighlightComponent_div_0_div_1_div_28_Template_b_click_7_listener")),i0.\u0275\u0275text(8),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(9,"small",11),i0.\u0275\u0275pipe(10,"date"),i0.\u0275\u0275text(11),i0.\u0275\u0275pipe(12,"dateAgo"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275element(13,"p",12),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(14,"div",13)(15,"button",14)(16,"mat-icon"),i0.\u0275\u0275text(17,"more_vert"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(18,"mat-menu",null,15)(20,"button",16),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r12);const k_r3=i0.\u0275\u0275nextContext().$implicit;return i0.\u0275\u0275nextContext(2).deleteComment(k_r3)},"HighlightComponent_div_0_div_1_div_28_Template_button_click_20_listener")),i0.\u0275\u0275elementStart(21,"mat-icon",17),i0.\u0275\u0275text(22,"delete"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(23," Hapus "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(24,"button",16),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r12);const k_r3=i0.\u0275\u0275nextContext().$implicit;return i0.\u0275\u0275nextContext(2).copyCommentLink(k_r3)},"HighlightComponent_div_0_div_1_div_28_Template_button_click_24_listener")),i0.\u0275\u0275elementStart(25,"mat-icon",17),i0.\u0275\u0275text(26,"link"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(27," Salin URL "),i0.\u0275\u0275elementEnd()()()()()()}if(2&rf){const _r10=i0.\u0275\u0275reference(19),ctx_r5=i0.\u0275\u0275nextContext(3);i0.\u0275\u0275advance(3),i0.\u0275\u0275propertyInterpolate("src",ctx_r5.komentarHighlight.user_.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1(" ",ctx_r5.komentarHighlight.user_.username," "),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("matTooltip",i0.\u0275\u0275pipeBind2(10,6,ctx_r5.komentarHighlight.created_at,"d MMMM y, hh:mm:ss a z")),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate1(" ",i0.\u0275\u0275pipeBind1(12,9,ctx_r5.komentarHighlight.created_at)," "),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("innerHTML",ctx_r5.komentarHighlight.comment,i0.\u0275\u0275sanitizeHtml),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("matMenuTriggerFor",_r10)}}function HighlightComponent_div_0_div_1_mat_form_field_29_Template(rf,ctx){if(1&rf){const _r19=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-form-field",29)(1,"mat-label"),i0.\u0275\u0275text(2,"Balas / Tanggapi"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"input",30),i0.\u0275\u0275listener("ngModelChange",__name(function($event){i0.\u0275\u0275restoreView(_r19);return i0.\u0275\u0275nextContext().$implicit.reply_to_send=$event},"HighlightComponent_div_0_div_1_mat_form_field_29_Template_input_ngModelChange_3_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"mat-icon",31),i0.\u0275\u0275text(5,"quickreply"),i0.\u0275\u0275elementEnd()()}if(2&rf){const k_r3=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngModel",k_r3.reply_to_send)}}function HighlightComponent_div_0_div_1_button_33_mat_icon_1_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",17),i0.\u0275\u0275text(1,"expand_more"),i0.\u0275\u0275elementEnd())}function HighlightComponent_div_0_div_1_button_33_mat_icon_2_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",17),i0.\u0275\u0275text(1,"expand_less"),i0.\u0275\u0275elementEnd())}function HighlightComponent_div_0_div_1_button_33_Template(rf,ctx){if(1&rf){const _r25=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",32),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r25);const k_r3=i0.\u0275\u0275nextContext().$implicit;return i0.\u0275\u0275nextContext(2).showHideComment(k_r3)},"HighlightComponent_div_0_div_1_button_33_Template_button_click_0_listener")),i0.\u0275\u0275template(1,HighlightComponent_div_0_div_1_button_33_mat_icon_1_Template,2,0,"mat-icon",33),i0.\u0275\u0275template(2,HighlightComponent_div_0_div_1_button_33_mat_icon_2_Template,2,0,"mat-icon",33),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()}if(2&rf){const k_r3=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!k_r3.show_reply),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",k_r3.show_reply),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate2(" ",k_r3.show_reply?"Sembunyikan":"Tampilkan"," ",k_r3.reply_count," balasan ")}}function HighlightComponent_div_0_div_1_button_35_Template(rf,ctx){if(1&rf){const _r29=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",34),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r29);const k_r3=i0.\u0275\u0275nextContext().$implicit;return i0.\u0275\u0275nextContext(2).sendComment(k_r3)},"HighlightComponent_div_0_div_1_button_35_Template_button_click_0_listener")),i0.\u0275\u0275text(1," Kirim "),i0.\u0275\u0275elementStart(2,"mat-icon",35),i0.\u0275\u0275text(3,"send"),i0.\u0275\u0275elementEnd()()}}function HighlightComponent_div_0_div_1_app_comment_36_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"app-comment",36),2&rf){const k_r3=i0.\u0275\u0275nextContext().$implicit,ctx_r9=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("parent",k_r3)("komentar",k_r3.reply)("recursionCount",ctx_r9.recursionCount+1)("row",5)}}function HighlightComponent_div_0_div_1_Template(rf,ctx){if(1&rf){const _r32=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",4)(1,"div",5),i0.\u0275\u0275element(2,"img",6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"div",7)(4,"div",8),i0.\u0275\u0275listener("click",__name(function(){const k_r3=i0.\u0275\u0275restoreView(_r32).$implicit;return i0.\u0275\u0275nextContext(2).showHideCommentBox(k_r3)},"HighlightComponent_div_0_div_1_Template_div_click_4_listener")),i0.\u0275\u0275elementStart(5,"p",9)(6,"b",10),i0.\u0275\u0275listener("click",__name(function($event){const k_r3=i0.\u0275\u0275restoreView(_r32).$implicit,ctx_r33=i0.\u0275\u0275nextContext(2);return $event.stopPropagation(),ctx_r33.openUserProfile(k_r3)},"HighlightComponent_div_0_div_1_Template_b_click_6_listener")),i0.\u0275\u0275text(7),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(8,"small",11),i0.\u0275\u0275pipe(9,"date"),i0.\u0275\u0275text(10),i0.\u0275\u0275pipe(11,"dateAgo"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275element(12,"p",12),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(13,"div",13)(14,"button",14)(15,"mat-icon"),i0.\u0275\u0275text(16,"more_vert"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(17,"mat-menu",null,15)(19,"button",16),i0.\u0275\u0275listener("click",__name(function(){const k_r3=i0.\u0275\u0275restoreView(_r32).$implicit;return i0.\u0275\u0275nextContext(2).deleteComment(k_r3)},"HighlightComponent_div_0_div_1_Template_button_click_19_listener")),i0.\u0275\u0275elementStart(20,"mat-icon",17),i0.\u0275\u0275text(21,"delete"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(22," Hapus "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(23,"button",16),i0.\u0275\u0275listener("click",__name(function(){const k_r3=i0.\u0275\u0275restoreView(_r32).$implicit;return i0.\u0275\u0275nextContext(2).copyCommentLink(k_r3)},"HighlightComponent_div_0_div_1_Template_button_click_23_listener")),i0.\u0275\u0275elementStart(24,"mat-icon",17),i0.\u0275\u0275text(25,"link"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(26," Salin URL "),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(27,"div",18),i0.\u0275\u0275template(28,HighlightComponent_div_0_div_1_div_28_Template,28,11,"div",19),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(29,HighlightComponent_div_0_div_1_mat_form_field_29_Template,6,2,"mat-form-field",20),i0.\u0275\u0275elementStart(30,"div",18)(31,"div",21)(32,"div",22),i0.\u0275\u0275template(33,HighlightComponent_div_0_div_1_button_33_Template,4,4,"button",23),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(34,"div",24),i0.\u0275\u0275template(35,HighlightComponent_div_0_div_1_button_35_Template,4,0,"button",25),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(36,HighlightComponent_div_0_div_1_app_comment_36_Template,1,4,"app-comment",26),i0.\u0275\u0275elementEnd()()}if(2&rf){const k_r3=ctx.$implicit,_r4=i0.\u0275\u0275reference(18),ctx_r1=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate("src",k_r3.user_.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1(" ",k_r3.user_.username," "),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("matTooltip",i0.\u0275\u0275pipeBind2(9,11,k_r3.created_at,"d MMMM y, hh:mm:ss a z")),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate1(" ",i0.\u0275\u0275pipeBind1(11,14,k_r3.created_at)," "),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("innerHTML",k_r3.comment,i0.\u0275\u0275sanitizeHtml),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("matMenuTriggerFor",_r4),i0.\u0275\u0275advance(14),i0.\u0275\u0275property("ngIf",ctx_r1.komentarHighlight),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",k_r3.reply_mode&&(null==ctx_r1.AS.currentUserSubject?null:ctx_r1.AS.currentUserSubject.value)&&0===ctx_r1.recursionCount),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",k_r3.reply_count>0),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",k_r3.reply_mode&&(null==ctx_r1.AS.currentUserSubject?null:ctx_r1.AS.currentUserSubject.value)&&0===ctx_r1.recursionCount),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",k_r3.show_reply)}}function HighlightComponent_div_0_div_2_Template(rf,ctx){if(1&rf){const _r37=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",37)(1,"button",34),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r37),i0.\u0275\u0275nextContext(2).loadNextPage()},"HighlightComponent_div_0_div_2_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",17),i0.\u0275\u0275text(3,"subdirectory_arrow_right"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Load More ... "),i0.\u0275\u0275elementEnd()()}}function HighlightComponent_div_0_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",1),i0.\u0275\u0275template(1,HighlightComponent_div_0_div_1_Template,37,16,"div",2),i0.\u0275\u0275template(2,HighlightComponent_div_0_div_2_Template,5,0,"div",3),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r0.komentar),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.count>=10&&!ctx_r0.pageFinished||(null==ctx_r0.parent?null:ctx_r0.parent.reply_count)>=10&&!(null!=ctx_r0.parent&&ctx_r0.parent.reply_page_finised))}}__name(HighlightComponent_div_0_div_1_div_28_Template,"HighlightComponent_div_0_div_1_div_28_Template"),__name(HighlightComponent_div_0_div_1_mat_form_field_29_Template,"HighlightComponent_div_0_div_1_mat_form_field_29_Template"),__name(HighlightComponent_div_0_div_1_button_33_mat_icon_1_Template,"HighlightComponent_div_0_div_1_button_33_mat_icon_1_Template"),__name(HighlightComponent_div_0_div_1_button_33_mat_icon_2_Template,"HighlightComponent_div_0_div_1_button_33_mat_icon_2_Template"),__name(HighlightComponent_div_0_div_1_button_33_Template,"HighlightComponent_div_0_div_1_button_33_Template"),__name(HighlightComponent_div_0_div_1_button_35_Template,"HighlightComponent_div_0_div_1_button_35_Template"),__name(HighlightComponent_div_0_div_1_app_comment_36_Template,"HighlightComponent_div_0_div_1_app_comment_36_Template"),__name(HighlightComponent_div_0_div_1_Template,"HighlightComponent_div_0_div_1_Template"),__name(HighlightComponent_div_0_div_2_Template,"HighlightComponent_div_0_div_2_Template"),__name(HighlightComponent_div_0_Template,"HighlightComponent_div_0_Template");class HighlightComponent{constructor(clipboard,activatedRoute,router,snackBar,komen,gs,as){this.clipboard=clipboard,this.activatedRoute=activatedRoute,this.router=router,this.snackBar=snackBar,this.komen=komen,this.gs=gs,this.as=as,this.highlightId=0,this.komentarHighlight=null,this.urlPath=null,this.count=0,this.page=1,this.pageFinished=!1,this.recursionCount=0,this.commentToSend=null,this.parent=null,this.komentar=[],this.subsHighlight=null,this.subsKomenSend=null,this.subsKomenGetKomen=null,this.subsKomenGetReply=null,this.subsDelete=null,this.subsQueryParam=null,this.gs.isBrowser}get AS(){return this.as}ngOnInit(){this.gs.isBrowser&&this.watchUrlRoute()}ngOnDestroy(){var _a,_b,_c,_d,_e,_f;null===(_a=this.subsKomenSend)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsKomenGetKomen)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsKomenGetReply)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsHighlight)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsDelete)||void 0===_e||_e.unsubscribe(),null===(_f=this.subsQueryParam)||void 0===_f||_f.unsubscribe(),this.urlPath=null}watchUrlRoute(){this.subsQueryParam=this.activatedRoute.queryParams.subscribe({next:qp=>{this.komentarHighlight=null,this.komentar=[],this.urlPath=this.router.url.split("?")[0],this.highlightId=Number(qp.comment||""),this.highlightId>0&&this.getHighlight()}})}getHighlight(id=this.highlightId){this.subsHighlight=this.komen.getHighlight({id,path:this.urlPath}).subscribe({next:res=>{this.gs.log("[KOMENTAR_HIGHLIGHT_SUCCESS]",res),res.result.parent_komentar_?(this.komentarHighlight=res.result,this.getHighlight(res.result.parent_komentar_.id)):this.komentar=[res.result]},error:err=>{this.gs.log("[KOMENTAR_HIGHLIGHT_ERROR]",err,"error")}})}sendComment(k){this.gs.log("[KOMENTAR_PARENT_CREATE_REPLY]",k);const commentData=k?{path:this.urlPath,comment:k.reply_to_send,parent:k.id}:{path:this.urlPath,comment:this.commentToSend};this.subsKomenSend=this.komen.sendComment(commentData).subscribe({next:res=>{this.gs.log("[KOMENTAR_CREATE_REPLY_SUCCESS]",res),k?(k.reply_to_send=null,k.reply_mode=!1,this.getReply(k,!0)):(this.commentToSend=null,this.getComment(!0))},error:err=>{this.gs.log("[KOMENTAR_CREATE_REPLY_ERROR]",err,"error")}})}getComment(fresh=!1){this.parent||(fresh&&(this.page=1,this.pageFinished=!1),this.subsKomenGetKomen=this.komen.getComment(this.urlPath,"",this.page,5).subscribe({next:res=>{this.gs.log("[KOMENTAR_LIST_SUCCESS]",res),this.count=res.count,this.komentar=fresh?res.results:[...this.komentar,...res.results],res.results.length<=0&&(this.pageFinished=!0)},error:err=>{this.gs.log("[KOMENTAR_LIST_ERROR]",err,"error")}}))}getReply(k,fresh=!1){this.gs.log("[KOMENTAR_PARENT_LOAD_REPLY]",k),fresh&&(k.reply_page=1,k.reply_page_finised=!1),this.subsKomenGetReply=this.komen.getReply(k.id,"",k.reply_page,5).subscribe({next:res=>{this.gs.log("[REPLY_LIST_SUCCESS]",res),k.reply=fresh?res.results:[...k.reply,...res.results],k.reply_count=res.count,res.results.length<=0&&(k.reply_page_finised=!0)},error:err=>{this.gs.log("[REPLY_LIST_ERROR]",err,"error"),k.reply=[]}})}showHideComment(k){void 0===k.show_reply||null===k.show_reply?k.show_reply=!0:k.show_reply=!k.show_reply,k.show_reply&&this.getReply(k,!0)}showHideCommentBox(k){void 0===k.reply_mode||null===k.reply_mode?k.reply_mode=!0:k.reply_mode=!k.reply_mode}loadNextPage(){this.parent?this.loadNextPageReply(this.parent):this.loadNextPageComment()}loadNextPageComment(){this.pageFinished||(this.page++,this.getComment())}loadNextPageReply(k){k.reply_page_finised||(k.reply_page||(k.reply_page=1),k.reply_page++,this.getReply(k))}openUserProfile(k){this.router.navigateByUrl(`/user/${k.user_.username}`)}copyCommentLink(k){const url=(k.path.startsWith("/")?environment_1.environment.baseUrl:"")+k.path;this.clipboard.copy(`${url}?comment=${k.id}`)&&this.snackBar.open("URL Komentar :: Telah Di Salin Pada Clipboard","Ok")}deleteComment(k){this.gs.log("[KOMENTAR_DELETE_HIGHLIGHT]",k),this.subsDelete=this.komen.deleteComment(k.id).subscribe({next:res=>{this.gs.log("[KOMENTAR_DELETE_SUCCESS]",res),this.getHighlight()},error:err=>{this.gs.log("[KOMENTAR_DELETE_ERROR]",err,"error"),this.getHighlight()}})}}__name(HighlightComponent,"HighlightComponent"),exports2.HighlightComponent=HighlightComponent,HighlightComponent.\u0275fac=__name(function(t){return new(t||HighlightComponent)(i0.\u0275\u0275directiveInject(i1.Clipboard),i0.\u0275\u0275directiveInject(i2.ActivatedRoute),i0.\u0275\u0275directiveInject(i2.Router),i0.\u0275\u0275directiveInject(i3.MatSnackBar),i0.\u0275\u0275directiveInject(i4.KomentarService),i0.\u0275\u0275directiveInject(i5.GlobalService),i0.\u0275\u0275directiveInject(i6.AuthService))},"HighlightComponent_Factory"),HighlightComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:HighlightComponent,selectors:[["app-highlight"]],inputs:{recursionCount:"recursionCount",parent:"parent",komentar:"komentar"},decls:1,vars:1,consts:[["class","row pt-3 pb-2 mb-4 gradient-border rgb-border","appDomChange","",4,"ngIf"],["appDomChange","",1,"row","pt-3","pb-2","mb-4","gradient-border","rgb-border"],["class","d-flex my-1",4,"ngFor","ngForOf"],["class","col-12",4,"ngIf"],[1,"d-flex","my-1"],[1,"flex-shrink-0"],["width","40","height","40",2,"object-fit","cover","object-position","center",3,"src"],[1,"flex-grow-1","ms-3","me-2","row"],[1,"col-8","p-0",3,"click"],[1,"m-0"],[1,"text-warning",2,"cursor","pointer",3,"click"],[1,"ms-3","text-bifeldy",3,"matTooltip"],[1,"mb-1",2,"line-height","normal",3,"innerHTML"],[1,"col","p-0","text-end"],["mat-icon-button","","color","accent","matTooltip","Opsi",3,"matMenuTriggerFor"],["komentarMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"me-1"],[1,"col-12","p-0"],["class","row",4,"ngIf"],["appearance","outline","class","mt-2 col-12",3,"color",4,"ngIf"],[1,"row"],[1,"col-6"],["mat-button","","class","ps-1 pe-2","color","accent",3,"click",4,"ngIf"],[1,"col-6","text-end"],["mat-button","","color","accent",3,"click",4,"ngIf"],[3,"parent","komentar","recursionCount","row",4,"ngIf"],[1,"ms-2","ps-3","d-flex","my-1"],[1,"col-8","p-0"],["appearance","outline",1,"mt-2","col-12",3,"color"],["matInput","","placeholder","Balas ...",3,"ngModel","ngModelChange"],["matSuffix",""],["mat-button","","color","accent",1,"ps-1","pe-2",3,"click"],["class","me-1",4,"ngIf"],["mat-button","","color","accent",3,"click"],[1,"ms-1"],[3,"parent","komentar","recursionCount","row"],[1,"col-12"]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275template(0,HighlightComponent_div_0_Template,3,2,"div",0),2&rf&&i0.\u0275\u0275property("ngIf",ctx.komentar.length>0)},"HighlightComponent_Template"),directives:[i7.NgIf,i8.DomChangeDirective,i7.NgForOf,i9.MatTooltip,i10.MatButton,i11.MatMenuTrigger,i12.MatIcon,i11.MatMenu,i11.MatMenuItem,i13.MatFormField,i13.MatLabel,i14.MatInput,i15.DefaultValueAccessor,i15.NgControlStatus,i15.NgModel,i13.MatSuffix,i16.CommentComponent],pipes:[i7.DatePipe,i17.DateAgoPipe],styles:[""]})},44732:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FooterComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=__webpack_require__2(15934),i0=(__webpack_require__2(80855),__webpack_require__2(28381),__webpack_require__2(88020),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(28381)),i3=tslib_1.__importStar(__webpack_require__2(88020)),i4=tslib_1.__importStar(__webpack_require__2(34594)),i5=tslib_1.__importStar(__webpack_require__2(9957)),i6=tslib_1.__importStar(__webpack_require__2(69808));class FooterComponent{constructor(gs,ss,wb){this.gs=gs,this.ss=ss,this.wb=wb,this.gs.isBrowser}get SS(){return this.ss}ngOnInit(){this.gs.isBrowser}get discordUrl(){return environment_1.environment.discord.join_url}get author(){return environment_1.environment.author}get siteName(){return environment_1.environment.siteName}openGithub(){this.wb.winboxOpenUri(`https://github.com/${this.author}/${this.siteName}`)}}__name(FooterComponent,"FooterComponent"),exports2.FooterComponent=FooterComponent,FooterComponent.\u0275fac=__name(function(t){return new(t||FooterComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService),i0.\u0275\u0275directiveInject(i2.StatsServerService),i0.\u0275\u0275directiveInject(i3.WinboxService))},"FooterComponent_Factory"),FooterComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:FooterComponent,selectors:[["app-footer"]],decls:14,vars:6,consts:[["color","primary",2,"height","32px","padding","0 12px"],[2,"font-size","small"],[2,"text-decoration","none","color","whitesmoke","cursor","pointer",3,"click"],[2,"display","inline-block","transform","rotateY(180deg)"],[2,"display","inline-block"],[1,"spacer","px-1"],["target","_blank",2,"text-decoration","none","color","whitesmoke",3,"href"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-toolbar",0)(1,"span",1)(2,"div",2),i0.\u0275\u0275listener("click",__name(function(){return ctx.openGithub()},"FooterComponent_Template_div_click_2_listener")),i0.\u0275\u0275elementStart(3,"div",3),i0.\u0275\u0275text(4,"\xa9"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"div",4),i0.\u0275\u0275text(6),i0.\u0275\u0275pipe(7,"slice"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275element(8,"span",5)(9,"xng-breadcrumb")(10,"span",5),i0.\u0275\u0275elementStart(11,"span",1)(12,"a",6),i0.\u0275\u0275text(13," With \u{1f498} Just For You~ "),i0.\u0275\u0275elementEnd()()()),2&rf&&(i0.\u0275\u0275advance(6),i0.\u0275\u0275textInterpolate1("\xa0 2013 | ",i0.\u0275\u0275pipeBind3(7,2,null==ctx.SS.github?null:ctx.SS.github.sha,0,7),""),i0.\u0275\u0275advance(6),i0.\u0275\u0275propertyInterpolate("href",ctx.discordUrl,i0.\u0275\u0275sanitizeUrl))},"FooterComponent_Template"),directives:[i4.MatToolbar,i5.BreadcrumbComponent],pipes:[i6.SlicePipe],styles:[""]})},88369:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FooterModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),xng_breadcrumb_1=__webpack_require__2(9957),shared_material_module_1=__webpack_require__2(20210),i0=tslib_1.__importStar(__webpack_require__2(5e3));class FooterModule{}__name(FooterModule,"FooterModule"),exports2.FooterModule=FooterModule,FooterModule.\u0275fac=__name(function(t){return new(t||FooterModule)},"FooterModule_Factory"),FooterModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:FooterModule}),FooterModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,shared_material_module_1.SharedMaterialModule,xng_breadcrumb_1.BreadcrumbModule]]})},45009:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HeaderComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=(__webpack_require__2(74202),__webpack_require__2(57261),__webpack_require__2(15934)),i0=(__webpack_require__2(18745),__webpack_require__2(70007),__webpack_require__2(80855),__webpack_require__2(56514),__webpack_require__2(28381),__webpack_require__2(33e3),__webpack_require__2(53379),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(57261)),i2=tslib_1.__importStar(__webpack_require__2(70007)),i3=tslib_1.__importStar(__webpack_require__2(56514)),i4=tslib_1.__importStar(__webpack_require__2(74202)),i5=tslib_1.__importStar(__webpack_require__2(18745)),i6=tslib_1.__importStar(__webpack_require__2(80855)),i7=tslib_1.__importStar(__webpack_require__2(28381)),i8=tslib_1.__importStar(__webpack_require__2(33e3)),i9=tslib_1.__importStar(__webpack_require__2(53379)),i10=tslib_1.__importStar(__webpack_require__2(34594)),i11=tslib_1.__importStar(__webpack_require__2(47423)),i12=tslib_1.__importStar(__webpack_require__2(87238)),i13=tslib_1.__importStar(__webpack_require__2(25245)),i14=tslib_1.__importStar(__webpack_require__2(90508)),i15=tslib_1.__importStar(__webpack_require__2(69808)),i16=tslib_1.__importStar(__webpack_require__2(27544));function HeaderComponent_button_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"button",12)(1,"mat-icon",13),i0.\u0275\u0275text(2,"sports_score"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",ctx_r0.myPoints," ")}}function HeaderComponent_button_8_Template(rf,ctx){if(1&rf){const _r5=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",14),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r5),i0.\u0275\u0275nextContext().toggleWeather()},"HeaderComponent_button_8_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"filter_vintage"),i0.\u0275\u0275elementEnd()()}}function HeaderComponent_button_15_Template(rf,ctx){if(1&rf){const _r7=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",15),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r7),i0.\u0275\u0275nextContext().openAdminNavigation()},"HeaderComponent_button_15_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"apps"),i0.\u0275\u0275elementEnd()()}}function HeaderComponent_button_19_Template(rf,ctx){if(1&rf){const _r9=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",16),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r9),i0.\u0275\u0275nextContext().reloadPage()},"HeaderComponent_button_19_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"replay"),i0.\u0275\u0275elementEnd()()}}__name(HeaderComponent_button_7_Template,"HeaderComponent_button_7_Template"),__name(HeaderComponent_button_8_Template,"HeaderComponent_button_8_Template"),__name(HeaderComponent_button_15_Template,"HeaderComponent_button_15_Template"),__name(HeaderComponent_button_19_Template,"HeaderComponent_button_19_Template");class HeaderComponent{constructor(snackBar,lms,rps,router,pi,gs,ss,bs,ls){this.snackBar=snackBar,this.lms=lms,this.rps=rps,this.router=router,this.pi=pi,this.gs=gs,this.ss=ss,this.bs=bs,this.ls=ls,this.myPoints=0,this.subsGlobalRoom=null,this.gs.isBrowser}get GS(){return this.gs}get ROUTER(){return this.router}get PI(){return this.pi}get SS(){return this.ss}ngOnInit(){if(this.gs.isBrowser){const osTheme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;this.gs.isDarkMode=osTheme||"true"===this.ls.getItem(this.gs.localStorageKeys.DarkMode),this.toggleDarkTheme(!0),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",event=>{this.gs.isDarkMode=event.matches,this.toggleDarkTheme(!0)}),this.subsGlobalRoom=this.ss.globalRoom.subscribe({next:global2=>{var _a,_b;this.myPoints=(null===(_b=null===(_a=null==global2?void 0:global2.member_list[this.ss.mySocket.id])||void 0===_a?void 0:_a.profile_)||void 0===_b?void 0:_b.points)||0}})}}ngOnDestroy(){var _a;null===(_a=this.subsGlobalRoom)||void 0===_a||_a.unsubscribe()}get discordUrl(){return environment_1.environment.discord.join_url}toggleSideNav(){this.lms.onSideNavToggleView()}toggleWeather(){this.gs.weatherToggle(),this.snackBar.open(`Berhasil ${this.gs.weatherRunning?"Menyalakan":"Mematikan"} Efek Musiman`,"Ok")}reloadPage(){this.bs.busy(),window.location.reload()}openSearch(){this.rps.toggleSidePanel("SearchAllComponent")}openLiveChat(){this.rps.toggleSidePanel("LiveChatComponent")}openAdminNavigation(){this.rps.toggleSidePanel("AdminNavigationComponent")}toggleDarkTheme(firstRun=!1){this.gs.toggleDarkTheme(firstRun),this.ls.setItem(this.gs.localStorageKeys.DarkMode,JSON.stringify(this.gs.isDarkMode)),this.pi.updateStatusBarTheme(this.gs.isDarkMode),this.snackBar.open("Menggunakan Mode "+(this.gs.isDarkMode?"Gelap":"Terang"),"Ok")}}__name(HeaderComponent,"HeaderComponent"),exports2.HeaderComponent=HeaderComponent,HeaderComponent.\u0275fac=__name(function(t){return new(t||HeaderComponent)(i0.\u0275\u0275directiveInject(i1.MatSnackBar),i0.\u0275\u0275directiveInject(i2.LeftMenuService),i0.\u0275\u0275directiveInject(i3.RightPanelService),i0.\u0275\u0275directiveInject(i4.Router),i0.\u0275\u0275directiveInject(i5.PageInfoService),i0.\u0275\u0275directiveInject(i6.GlobalService),i0.\u0275\u0275directiveInject(i7.StatsServerService),i0.\u0275\u0275directiveInject(i8.BusyService),i0.\u0275\u0275directiveInject(i9.LocalStorageService))},"HeaderComponent_Factory"),HeaderComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:HeaderComponent,selectors:[["app-header"]],decls:20,vars:7,consts:[["color","primary",2,"height","56px","padding","0 12px"],["mat-icon-button","","matTooltip","Menu",1,"shiny",3,"click"],["matLine","",1,"text-truncate",2,"margin-left","1rem","margin-right","1rem"],[1,"spacer"],["mat-stroked-button","","matTooltip","Points",4,"ngIf"],["class","animate__animated animate__tada animate__infinite animate__slower","mat-icon-button","","matTooltip","Weather Effect",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Ganti Warna",1,"animate__animated","animate__flash","animate__infinite","animate__slower",3,"click"],["mat-icon-button","","matTooltip","Obrolan",3,"click"],["matBadgePosition","before",3,"matBadge","matBadgeColor"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Pencarian",1,"animate__animated","animate__heartBeat","animate__infinite","animate__slower",3,"click"],["mat-icon-button","","matTooltip","Refresh",3,"click",4,"ngIf"],["mat-stroked-button","","matTooltip","Points"],[1,"me-1"],["mat-icon-button","","matTooltip","Weather Effect",1,"animate__animated","animate__tada","animate__infinite","animate__slower",3,"click"],["mat-icon-button","",3,"click"],["mat-icon-button","","matTooltip","Refresh",3,"click"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-toolbar",0)(1,"button",1),i0.\u0275\u0275listener("click",__name(function(){return ctx.toggleSideNav()},"HeaderComponent_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon"),i0.\u0275\u0275text(3,"menu"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(4,"span",2),i0.\u0275\u0275text(5),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(6,"span",3),i0.\u0275\u0275template(7,HeaderComponent_button_7_Template,4,1,"button",4),i0.\u0275\u0275template(8,HeaderComponent_button_8_Template,3,0,"button",5),i0.\u0275\u0275elementStart(9,"button",6),i0.\u0275\u0275listener("click",__name(function(){return ctx.toggleDarkTheme()},"HeaderComponent_Template_button_click_9_listener")),i0.\u0275\u0275elementStart(10,"mat-icon"),i0.\u0275\u0275text(11,"nights_stay"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(12,"button",7),i0.\u0275\u0275listener("click",__name(function(){return ctx.openLiveChat()},"HeaderComponent_Template_button_click_12_listener")),i0.\u0275\u0275elementStart(13,"mat-icon",8),i0.\u0275\u0275text(14," forum "),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(15,HeaderComponent_button_15_Template,3,0,"button",9),i0.\u0275\u0275elementStart(16,"button",10),i0.\u0275\u0275listener("click",__name(function(){return ctx.openSearch()},"HeaderComponent_Template_button_click_16_listener")),i0.\u0275\u0275elementStart(17,"mat-icon"),i0.\u0275\u0275text(18,"search"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(19,HeaderComponent_button_19_Template,3,0,"button",11),i0.\u0275\u0275elementEnd()),2&rf&&(i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1(" ",ctx.PI.getTitle," "),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx.ROUTER.url.includes("/nihongo")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.GS.weatherEffect),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("matBadge",ctx.SS.messageChatUnreadCount)("matBadgeColor","warn"),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx.ROUTER.url.includes("/admin-mod/")),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",!(null!=ctx.SS.mySocket&&ctx.SS.mySocket.id)))},"HeaderComponent_Template"),directives:[i10.MatToolbar,i11.MatButton,i12.MatTooltip,i13.MatIcon,i14.MatLine,i15.NgIf,i16.MatBadge],styles:[""]})},48084:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HeaderModule=void 0;const tslib_1=__webpack_require__2(70655),router_1=__webpack_require__2(74202),common_1=__webpack_require__2(69808),shared_material_module_1=__webpack_require__2(20210),i0=tslib_1.__importStar(__webpack_require__2(5e3));class HeaderModule{}__name(HeaderModule,"HeaderModule"),exports2.HeaderModule=HeaderModule,HeaderModule.\u0275fac=__name(function(t){return new(t||HeaderModule)},"HeaderModule_Factory"),HeaderModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:HeaderModule}),HeaderModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule,shared_material_module_1.SharedMaterialModule]]})},89741:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LeaderboardComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(80855),__webpack_require__2(61270),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(61270)),i3=tslib_1.__importStar(__webpack_require__2(14623)),i4=tslib_1.__importStar(__webpack_require__2(69808)),i5=tslib_1.__importStar(__webpack_require__2(74202)),i6=tslib_1.__importStar(__webpack_require__2(47423)),i7=tslib_1.__importStar(__webpack_require__2(25245));function LeaderboardComponent_mat_list_option_9_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option",10),i0.\u0275\u0275element(1,"img",11),i0.\u0275\u0275elementStart(2,"a",12)(3,"span",13),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"span",14),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"span",15),i0.\u0275\u0275text(8),i0.\u0275\u0275elementEnd()()()),2&rf){const l_r1=ctx.$implicit;i0.\u0275\u0275propertyInterpolate1("routerLink","/user/",l_r1.username,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",l_r1.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",l_r1.points," "),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(l_r1.rank),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(l_r1.username)}}__name(LeaderboardComponent_mat_list_option_9_Template,"LeaderboardComponent_mat_list_option_9_Template");class LeaderboardComponent{constructor(gs,qs){this.gs=gs,this.qs=qs,this.leaderboardData=[],this.leaderBoardTotalPages=1,this.leaderboardPage=1,this.subsLeaderboard=null,this.gs.isBrowser}ngOnInit(){this.gs.isBrowser&&this.getLeaderboard()}ngOnDestroy(){var _a;null===(_a=this.subsLeaderboard)||void 0===_a||_a.unsubscribe()}getLeaderboard(){this.subsLeaderboard=this.qs.getQuizLeaderboard("",this.leaderboardPage).subscribe({next:res=>{this.gs.log("[LEADERBOARD_LIST_SUCCESS]",res),this.leaderBoardTotalPages=res.pages,this.leaderboardData=res.results},error:err=>{this.gs.log("[LEADERBOARD_LIST_ERROR]",err,"error")}})}prevBoard(){this.leaderboardPage--,this.leaderboardPage<=0&&(this.leaderboardPage=1),this.getLeaderboard()}nextBoard(){this.leaderboardPage++,this.getLeaderboard()}}__name(LeaderboardComponent,"LeaderboardComponent"),exports2.LeaderboardComponent=LeaderboardComponent,LeaderboardComponent.\u0275fac=__name(function(t){return new(t||LeaderboardComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService),i0.\u0275\u0275directiveInject(i2.QuizService))},"LeaderboardComponent_Factory"),LeaderboardComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:LeaderboardComponent,selectors:[["app-leaderboard"]],decls:19,vars:8,consts:[[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"float-end","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[1,"text-bifeldy"],[1,"col-12"],[3,"multiple"],["class","h-100",3,"routerLink",4,"ngFor","ngForOf"],[1,"col-12","text-end"],["mat-button","","color","accent",3,"disabled","click"],[1,"h-100",3,"routerLink"],["matListAvatar","",1,"ms-3",2,"border-radius","0",3,"src"],[1,"text-truncate","text-decoration-none"],[1,"bg-bifeldy","px-2","me-1","text-warning",2,"position","absolute","right","0"],[1,"me-3","text-danger"],[1,"text-success"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h2",2)(3,"span",3),i0.\u0275\u0275listener("click",__name(function(){return ctx.getLeaderboard()},"LeaderboardComponent_Template_span_click_3_listener")),i0.\u0275\u0275text(4," Refresh "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"b",4),i0.\u0275\u0275text(6,"Rank Points"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(7,"div",5)(8,"mat-selection-list",6),i0.\u0275\u0275template(9,LeaderboardComponent_mat_list_option_9_Template,9,5,"mat-list-option",7),i0.\u0275\u0275pipe(10,"slice"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(11,"div",0)(12,"div",8)(13,"button",9),i0.\u0275\u0275listener("click",__name(function(){return ctx.prevBoard()},"LeaderboardComponent_Template_button_click_13_listener")),i0.\u0275\u0275elementStart(14,"mat-icon"),i0.\u0275\u0275text(15,"navigate_before"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(16,"button",9),i0.\u0275\u0275listener("click",__name(function(){return ctx.nextBoard()},"LeaderboardComponent_Template_button_click_16_listener")),i0.\u0275\u0275elementStart(17,"mat-icon"),i0.\u0275\u0275text(18,"navigate_next"),i0.\u0275\u0275elementEnd()()()()()()),2&rf&&(i0.\u0275\u0275advance(8),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind3(10,4,ctx.leaderboardData,0,10)),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("disabled",ctx.leaderboardPage<=1),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("disabled",ctx.leaderboardPage>=ctx.leaderBoardTotalPages))},"LeaderboardComponent_Template"),directives:[i3.MatSelectionList,i4.NgForOf,i3.MatListOption,i5.RouterLink,i3.MatListAvatarCssMatStyler,i6.MatButton,i7.MatIcon],pipes:[i4.SlicePipe],styles:[""]})},74920:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LeaderboardModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),shared_material_module_1=__webpack_require__2(20210),i0=tslib_1.__importStar(__webpack_require__2(5e3));class LeaderboardModule{}__name(LeaderboardModule,"LeaderboardModule"),exports2.LeaderboardModule=LeaderboardModule,LeaderboardModule.\u0275fac=__name(function(t){return new(t||LeaderboardModule)},"LeaderboardModule_Factory"),LeaderboardModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:LeaderboardModule}),LeaderboardModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,shared_material_module_1.SharedMaterialModule,router_1.RouterModule]]})},33679:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LeftMenuComponent=void 0;const tslib_1=__webpack_require__2(70655),anim_side_menu_1=(__webpack_require__2(74202),__webpack_require__2(40746)),i0=(__webpack_require__2(70007),__webpack_require__2(4137),__webpack_require__2(80855),__webpack_require__2(53379),__webpack_require__2(55393),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(70007)),i3=tslib_1.__importStar(__webpack_require__2(4137)),i4=tslib_1.__importStar(__webpack_require__2(80855)),i5=tslib_1.__importStar(__webpack_require__2(55393)),i6=tslib_1.__importStar(__webpack_require__2(53379)),i7=tslib_1.__importStar(__webpack_require__2(69808)),i8=tslib_1.__importStar(__webpack_require__2(14623)),i9=tslib_1.__importStar(__webpack_require__2(25245)),i10=tslib_1.__importStar(__webpack_require__2(4834)),i11=tslib_1.__importStar(__webpack_require__2(27544)),i12=tslib_1.__importStar(__webpack_require__2(32368)),i13=tslib_1.__importStar(__webpack_require__2(93075));function LeftMenuComponent_div_3_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"div")}function LeftMenuComponent_ng_template_4_Template(rf,ctx){if(1&rf){const _r11=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"a",12),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r11),i0.\u0275\u0275nextContext().forceCloseSideNav()},"LeftMenuComponent_ng_template_4_Template_a_click_0_listener")),i0.\u0275\u0275element(1,"img",13),i0.\u0275\u0275elementStart(2,"span",14),i0.\u0275\u0275text(3),i0.\u0275\u0275element(4,"br"),i0.\u0275\u0275text(5),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(6,"a",15),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r11),i0.\u0275\u0275nextContext().logout()},"LeftMenuComponent_ng_template_4_Template_a_click_6_listener")),i0.\u0275\u0275elementStart(7,"mat-icon",8),i0.\u0275\u0275text(8,"power_settings_new"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(9,"span",9),i0.\u0275\u0275text(10,"Keluar"),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r2=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",null==ctx_r2.AS.currentUserSubject||null==ctx_r2.AS.currentUserSubject.value?null:ctx_r2.AS.currentUserSubject.value.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("@animateText",ctx_r2.linkText?"show":"hide"),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",null==ctx_r2.AS.currentUserSubject||null==ctx_r2.AS.currentUserSubject.value?null:ctx_r2.AS.currentUserSubject.value.kartu_tanda_penduduk_.nama," "),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate1(" ",null==ctx_r2.AS.currentUserSubject||null==ctx_r2.AS.currentUserSubject.value?null:ctx_r2.AS.currentUserSubject.value._email," "),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("@animateText",ctx_r2.linkText?"show":"hide")}}function LeftMenuComponent_ng_template_6_Template(rf,ctx){if(1&rf){const _r14=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"a",16),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r14),i0.\u0275\u0275nextContext().forceCloseSideNav()},"LeftMenuComponent_ng_template_6_Template_a_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",8),i0.\u0275\u0275text(2,"login"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"span",9),i0.\u0275\u0275text(4,"Masuk"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(5,"a",17),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r14),i0.\u0275\u0275nextContext().forceCloseSideNav()},"LeftMenuComponent_ng_template_6_Template_a_click_5_listener")),i0.\u0275\u0275elementStart(6,"mat-icon",8),i0.\u0275\u0275text(7,"group_add"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(8,"span",9),i0.\u0275\u0275text(9,"Daftar"),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r4=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(3),i0.\u0275\u0275property("@animateText",ctx_r4.linkText?"show":"hide"),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("@animateText",ctx_r4.linkText?"show":"hide")}}function LeftMenuComponent_a_10_Template(rf,ctx){if(1&rf){const _r18=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"a",18),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r18),i0.\u0275\u0275nextContext().forceCloseSideNav()},"LeftMenuComponent_a_10_Template_a_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",19),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"span",9),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd()()}if(2&rf){const menu_r16=ctx.$implicit,ctx_r5=i0.\u0275\u0275nextContext();i0.\u0275\u0275propertyInterpolate("routerLink",menu_r16.link),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matBadge",menu_r16.badge),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(menu_r16.icon),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("@animateText",ctx_r5.linkText?"show":"hide"),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(menu_r16.name)}}function LeftMenuComponent_a_13_Template(rf,ctx){if(1&rf){const _r21=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"a",18),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r21),i0.\u0275\u0275nextContext().forceCloseSideNav()},"LeftMenuComponent_a_13_Template_a_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",19),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"span",9),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd()()}if(2&rf){const menu_r19=ctx.$implicit,ctx_r6=i0.\u0275\u0275nextContext();i0.\u0275\u0275propertyInterpolate("routerLink",menu_r19.link),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matBadge",menu_r19.badge),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(menu_r19.icon),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("@animateText",ctx_r6.linkText?"show":"hide"),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(menu_r19.name)}}function LeftMenuComponent_a_16_Template(rf,ctx){if(1&rf){const _r24=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"a",18),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r24),i0.\u0275\u0275nextContext().forceCloseSideNav()},"LeftMenuComponent_a_16_Template_a_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",19),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"span",9),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd()()}if(2&rf){const menu_r22=ctx.$implicit,ctx_r7=i0.\u0275\u0275nextContext();i0.\u0275\u0275propertyInterpolate("routerLink",menu_r22.link),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matBadge",menu_r22.badge),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(menu_r22.icon),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("@animateText",ctx_r7.linkText?"show":"hide"),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(menu_r22.name)}}function LeftMenuComponent_a_24_Template(rf,ctx){if(1&rf){const _r27=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"a",18),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r27),i0.\u0275\u0275nextContext().forceCloseSideNav()},"LeftMenuComponent_a_24_Template_a_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",19),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"span",9),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd()()}if(2&rf){const menu_r25=ctx.$implicit,ctx_r8=i0.\u0275\u0275nextContext();i0.\u0275\u0275propertyInterpolate("routerLink",menu_r25.link),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matBadge",menu_r25.badge),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(menu_r25.icon),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("@animateText",ctx_r8.linkText?"show":"hide"),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(menu_r25.name)}}function LeftMenuComponent_a_27_Template(rf,ctx){if(1&rf){const _r30=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"a",18),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r30),i0.\u0275\u0275nextContext().forceCloseSideNav()},"LeftMenuComponent_a_27_Template_a_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",19),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"span",9),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd()()}if(2&rf){const menu_r28=ctx.$implicit,ctx_r9=i0.\u0275\u0275nextContext();i0.\u0275\u0275propertyInterpolate("routerLink",menu_r28.link),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matBadge",menu_r28.badge),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(menu_r28.icon),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("@animateText",ctx_r9.linkText?"show":"hide"),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(menu_r28.name)}}__name(LeftMenuComponent_div_3_Template,"LeftMenuComponent_div_3_Template"),__name(LeftMenuComponent_ng_template_4_Template,"LeftMenuComponent_ng_template_4_Template"),__name(LeftMenuComponent_ng_template_6_Template,"LeftMenuComponent_ng_template_6_Template"),__name(LeftMenuComponent_a_10_Template,"LeftMenuComponent_a_10_Template"),__name(LeftMenuComponent_a_13_Template,"LeftMenuComponent_a_13_Template"),__name(LeftMenuComponent_a_16_Template,"LeftMenuComponent_a_16_Template"),__name(LeftMenuComponent_a_24_Template,"LeftMenuComponent_a_24_Template"),__name(LeftMenuComponent_a_27_Template,"LeftMenuComponent_a_27_Template");const _c0=__name(function(a0){return{"overflow-y":a0}},"_c0");class LeftMenuComponent{constructor(router,lms,as,gs,ds,ls){this.router=router,this.lms=lms,this.as=as,this.gs=gs,this.ds=ds,this.ls=ls,this.subsDialog=null,this.gs.isBrowser}get AS(){return this.as}get GS(){return this.gs}get mainMenus(){return this.lms.mainMenus}get contentMenus(){return this.lms.contentMenus}get additionalMenus(){return this.lms.additionalMenus}get miscMenus(){return this.lms.miscMenus}get otherMenus(){return this.lms.otherMenus}ngOnDestroy(){var _a;null===(_a=this.subsDialog)||void 0===_a||_a.unsubscribe()}ngOnInit(){this.gs.isBrowser}get sideNavExpanded(){return this.lms.sideNavExpanded}get linkText(){return this.lms.linkText}onMouseHoverIn(){this.gs.isDesktop&&this.lms.onMouseHoverIn()}onMouseHoverOut(){this.gs.isDesktop&&this.lms.onMouseHoverOut()}forceCloseSideNav(){this.lms.forceCloseSideNav()}logout(){this.as.logout()}openDocumentation(){this.forceCloseSideNav(),this.router.navigateByUrl("/docs")}openWebTorrent(){this.forceCloseSideNav(),this.gs.isDesktop?this.router.navigateByUrl("/torrent"):this.subsDialog=this.ds.openInfoDialog({data:{title:".: Web-Torrent :.",htmlMessage:"Fitur Ini Tergolong Cukup Berat Karena Dikhususkan Untuk Pengguna Desktop, Akan Ada Kemungkinan Juga Tampilan Menjadi Berantakan, Yakin Ingin Melanjutkan ?",confirmText:"Ya, Lanjutkan",cancelText:"Tidak, Batal"},disableClose:!1}).afterClosed().subscribe({next:re=>{this.gs.log("[INFO_DIALOG_CLOSED]",re),!0===re&&this.router.navigateByUrl("/torrent"),this.subsDialog.unsubscribe()}})}toggleDebugLog($event){this.gs.forceEnableDebugLog=$event.checked,this.ls.setItem(this.gs.localStorageKeys.DebugLogs,JSON.stringify($event.checked))}}__name(LeftMenuComponent,"LeftMenuComponent"),exports2.LeftMenuComponent=LeftMenuComponent,LeftMenuComponent.\u0275fac=__name(function(t){return new(t||LeftMenuComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.LeftMenuService),i0.\u0275\u0275directiveInject(i3.AuthService),i0.\u0275\u0275directiveInject(i4.GlobalService),i0.\u0275\u0275directiveInject(i5.DialogService),i0.\u0275\u0275directiveInject(i6.LocalStorageService))},"LeftMenuComponent_Factory"),LeftMenuComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:LeftMenuComponent,selectors:[["app-left-menu"]],decls:36,vars:15,consts:[[1,"sidenav_container",3,"ngStyle","mouseenter","mouseleave"],["fxLayout","column"],[4,"ngIf","ngIfThen","ngIfElse"],["sudahLogin",""],["belumLogin",""],[2,"margin-top","8px"],["mat-list-item","","routerLinkActive","side-menu-link-active",3,"routerLink","click",4,"ngFor","ngForOf"],["mat-list-item","","routerLinkActive","side-menu-link-active",3,"click"],[2,"padding-left","0.2em"],[2,"padding-left","1.75em","padding-right","0.2em"],[2,"right","1em !important","position","absolute"],[3,"ngModel","ngModelChange","click","change"],["mat-list-item","","routerLink","/user","routerLinkActive","side-menu-link-active",3,"click"],[1,"jim",3,"src"],[1,"text-truncate",2,"padding-left","1.2em","padding-right","0.2em"],["mat-list-item","",3,"click"],["mat-list-item","","routerLink","/login","routerLinkActive","side-menu-link-active",3,"click"],["mat-list-item","","routerLink","/register","routerLinkActive","side-menu-link-active",3,"click"],["mat-list-item","","routerLinkActive","side-menu-link-active",3,"routerLink","click"],["matBadgeColor","warn","matBadgePosition","before",2,"padding-left","0.2em",3,"matBadge"]],template:__name(function(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",0),i0.\u0275\u0275listener("mouseenter",__name(function(){return ctx.onMouseHoverIn()},"LeftMenuComponent_Template_div_mouseenter_0_listener"))("mouseleave",__name(function(){return ctx.onMouseHoverOut()},"LeftMenuComponent_Template_div_mouseleave_0_listener")),i0.\u0275\u0275elementStart(1,"div",1)(2,"mat-nav-list"),i0.\u0275\u0275template(3,LeftMenuComponent_div_3_Template,1,0,"div",2),i0.\u0275\u0275template(4,LeftMenuComponent_ng_template_4_Template,11,5,"ng-template",null,3,i0.\u0275\u0275templateRefExtractor),i0.\u0275\u0275template(6,LeftMenuComponent_ng_template_6_Template,10,2,"ng-template",null,4,i0.\u0275\u0275templateRefExtractor),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(8,"mat-divider",5),i0.\u0275\u0275elementStart(9,"mat-nav-list"),i0.\u0275\u0275template(10,LeftMenuComponent_a_10_Template,5,5,"a",6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(11,"mat-divider",5),i0.\u0275\u0275elementStart(12,"mat-nav-list"),i0.\u0275\u0275template(13,LeftMenuComponent_a_13_Template,5,5,"a",6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(14,"mat-divider",5),i0.\u0275\u0275elementStart(15,"mat-nav-list"),i0.\u0275\u0275template(16,LeftMenuComponent_a_16_Template,5,5,"a",6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(17,"mat-divider",5),i0.\u0275\u0275elementStart(18,"mat-nav-list")(19,"a",7),i0.\u0275\u0275listener("click",__name(function(){return ctx.openWebTorrent()},"LeftMenuComponent_Template_a_click_19_listener")),i0.\u0275\u0275elementStart(20,"mat-icon",8),i0.\u0275\u0275text(21,"sailing"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(22,"span",9),i0.\u0275\u0275text(23,"Web Torrent"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(24,LeftMenuComponent_a_24_Template,5,5,"a",6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(25,"mat-divider",5),i0.\u0275\u0275elementStart(26,"mat-nav-list"),i0.\u0275\u0275template(27,LeftMenuComponent_a_27_Template,5,5,"a",6),i0.\u0275\u0275elementStart(28,"a",7),i0.\u0275\u0275listener("click",__name(function(){return ctx.openDocumentation()},"LeftMenuComponent_Template_a_click_28_listener")),i0.\u0275\u0275elementStart(29,"mat-icon",8),i0.\u0275\u0275text(30,"settings_ethernet"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(31,"span",9),i0.\u0275\u0275text(32," Dev. Mode "),i0.\u0275\u0275elementStart(33,"span",10)(34,"mat-slide-toggle",11),i0.\u0275\u0275listener("ngModelChange",__name(function($event){return ctx.GS.forceEnableDebugLog=$event},"LeftMenuComponent_Template_mat_slide_toggle_ngModelChange_34_listener"))("click",__name(function($event){return $event.stopPropagation()},"LeftMenuComponent_Template_mat_slide_toggle_click_34_listener"))("change",__name(function($event){return ctx.toggleDebugLog($event)},"LeftMenuComponent_Template_mat_slide_toggle_change_34_listener")),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275element(35,"div",5),i0.\u0275\u0275elementEnd()()),2&rf){const _r1=i0.\u0275\u0275reference(5),_r3=i0.\u0275\u0275reference(7);i0.\u0275\u0275property("@onSideNavChange",ctx.sideNavExpanded?"open":"close")("ngStyle",i0.\u0275\u0275pureFunction1(13,_c0,ctx.sideNavExpanded?"auto":"hidden")),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngIf",null==ctx.AS.currentUserSubject?null:ctx.AS.currentUserSubject.value)("ngIfThen",_r1)("ngIfElse",_r3),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngForOf",ctx.mainMenus),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngForOf",ctx.contentMenus),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngForOf",ctx.additionalMenus),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("@animateText",ctx.linkText?"show":"hide"),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngForOf",ctx.miscMenus),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngForOf",ctx.otherMenus),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("@animateText",ctx.linkText?"show":"hide"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngModel",ctx.GS.forceEnableDebugLog)}},"LeftMenuComponent_Template"),directives:[i7.NgStyle,i8.MatNavList,i7.NgIf,i8.MatListItem,i1.RouterLinkWithHref,i1.RouterLinkActive,i9.MatIcon,i10.MatDivider,i7.NgForOf,i11.MatBadge,i12.MatSlideToggle,i13.NgControlStatus,i13.NgModel],styles:[".sidenav_container[_ngcontent-%COMP%]{min-width:64px!important;max-width:320px;height:calc(100vh - 88px)}.jim[_ngcontent-%COMP%]{width:32px;height:32px;object-fit:cover;border-radius:50%}.side-menu-link-active[_ngcontent-%COMP%]{background:rgba(255,64,129,.15);color:#ff4081!important;font-weight:700}.mat-list-item-content[_ngcontent-%COMP%]{padding:0!important}"],data:{animation:[anim_side_menu_1.onSideNavChange,anim_side_menu_1.animateText]}})},94203:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LeftMenuModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),shared_material_module_1=__webpack_require__2(20210),i0=tslib_1.__importStar(__webpack_require__2(5e3));class LeftMenuModule{}__name(LeftMenuModule,"LeftMenuModule"),exports2.LeftMenuModule=LeftMenuModule,LeftMenuModule.\u0275fac=__name(function(t){return new(t||LeftMenuModule)},"LeftMenuModule_Factory"),LeftMenuModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:LeftMenuModule}),LeftMenuModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule,shared_material_module_1.SharedMaterialModule,forms_1.FormsModule]]})},24028:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialChipComponent=void 0;const tslib_1=__webpack_require__2(70655),core_1=__webpack_require__2(5e3),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(26688)),i3=tslib_1.__importStar(__webpack_require__2(69808)),_c0=__name(function(a0){return{"background-color":a0}},"_c0");function MaterialChipComponent_mat_chip_1_Template(rf,ctx){if(1&rf){const _r3=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-chip",1),i0.\u0275\u0275listener("click",__name(function($event){const chip_r1=i0.\u0275\u0275restoreView(_r3).$implicit,ctx_r2=i0.\u0275\u0275nextContext();return $event.stopPropagation(),ctx_r2.onChipClicked(chip_r1)},"MaterialChipComponent_mat_chip_1_Template_mat_chip_click_0_listener")),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()}if(2&rf){const chip_r1=ctx.$implicit;i0.\u0275\u0275property("ngStyle",i0.\u0275\u0275pureFunction1(3,_c0,chip_r1.color))("selected",chip_r1.selected),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",chip_r1.name," ")}}__name(MaterialChipComponent_mat_chip_1_Template,"MaterialChipComponent_mat_chip_1_Template");class MaterialChipComponent{constructor(gs){this.gs=gs,this.chipData=[],this.chipClicked=new core_1.EventEmitter,this.gs.isBrowser}ngOnInit(){this.gs.isBrowser}onChipClicked(data){this.chipClicked.emit(data)}}__name(MaterialChipComponent,"MaterialChipComponent"),exports2.MaterialChipComponent=MaterialChipComponent,MaterialChipComponent.\u0275fac=__name(function(t){return new(t||MaterialChipComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService))},"MaterialChipComponent_Factory"),MaterialChipComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:MaterialChipComponent,selectors:[["app-material-chip"]],inputs:{chipData:"chipData"},outputs:{chipClicked:"chipClicked"},decls:2,vars:1,consts:[[3,"ngStyle","selected","click",4,"ngFor","ngForOf"],[3,"ngStyle","selected","click"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-chip-list"),i0.\u0275\u0275template(1,MaterialChipComponent_mat_chip_1_Template,2,5,"mat-chip",0),i0.\u0275\u0275elementEnd()),2&rf&&(i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx.chipData))},"MaterialChipComponent_Template"),directives:[i2.MatChipList,i3.NgForOf,i2.MatChip,i3.NgStyle],styles:[""]})},54946:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialChipModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),shared_material_module_1=__webpack_require__2(20210),i0=tslib_1.__importStar(__webpack_require__2(5e3));class MaterialChipModule{}__name(MaterialChipModule,"MaterialChipModule"),exports2.MaterialChipModule=MaterialChipModule,MaterialChipModule.\u0275fac=__name(function(t){return new(t||MaterialChipModule)},"MaterialChipModule_Factory"),MaterialChipModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:MaterialChipModule}),MaterialChipModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,shared_material_module_1.SharedMaterialModule]]})},95961:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialDialogBelajarComponent=void 0;const tslib_1=__webpack_require__2(70655),forms_1=__webpack_require__2(93075),dialog_1=__webpack_require__2(48966),constants_1=__webpack_require__2(26271),i0=(__webpack_require__2(80855),__webpack_require__2(67902),__webpack_require__2(33e3),__webpack_require__2(52663),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(93075)),i2=tslib_1.__importStar(__webpack_require__2(33e3)),i3=tslib_1.__importStar(__webpack_require__2(67902)),i4=tslib_1.__importStar(__webpack_require__2(52663)),i5=tslib_1.__importStar(__webpack_require__2(48966)),i6=tslib_1.__importStar(__webpack_require__2(80855)),i7=tslib_1.__importStar(__webpack_require__2(69808)),i8=tslib_1.__importStar(__webpack_require__2(67322)),i9=tslib_1.__importStar(__webpack_require__2(21385)),i10=tslib_1.__importStar(__webpack_require__2(25245)),i11=tslib_1.__importStar(__webpack_require__2(47423)),i12=tslib_1.__importStar(__webpack_require__2(77531)),i13=tslib_1.__importStar(__webpack_require__2(74202)),i14=tslib_1.__importStar(__webpack_require__2(23626));function MaterialDialogBelajarComponent_form_3_div_15_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"bytes"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Ukuran Upload Melebihi Batas ",i0.\u0275\u0275pipeBind1(2,1,ctx_r3.imageLimitExceeded)," !")}}function MaterialDialogBelajarComponent_form_3_div_16_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r4=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r4.imageErrorText)}}function MaterialDialogBelajarComponent_form_3_div_17_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Gambar Wajib Ada!"),i0.\u0275\u0275elementEnd())}function MaterialDialogBelajarComponent_form_3_div_18_Template(rf,ctx){if(1&rf){const _r15=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",7)(1,"button",22),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r15),i0.\u0275\u0275nextContext(2).submitImage()},"MaterialDialogBelajarComponent_form_3_div_18_Template_button_click_1_listener")),i0.\u0275\u0275elementStart(2,"mat-icon",23),i0.\u0275\u0275text(3,"add_photo_alternate"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(4," Unggah "),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r6=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",ctx_r6.submitted)}}function MaterialDialogBelajarComponent_form_3_div_28_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Kana Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function MaterialDialogBelajarComponent_form_3_div_29_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Kana Hanya Boleh Huruf Jepang"),i0.\u0275\u0275elementEnd())}function MaterialDialogBelajarComponent_form_3_div_37_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Romaji Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function MaterialDialogBelajarComponent_form_3_div_38_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Romaji Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function MaterialDialogBelajarComponent_form_3_div_46_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Arti Tidak Boleh Kosong"),i0.\u0275\u0275elementEnd())}function MaterialDialogBelajarComponent_form_3_div_47_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1,"Arti Hanya Boleh Huruf Standar Papan Ketik"),i0.\u0275\u0275elementEnd())}function MaterialDialogBelajarComponent_form_3_div_48_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",5)(1,"div",24),i0.\u0275\u0275text(2," Last Edit By :: "),i0.\u0275\u0275elementStart(3,"a",25),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r13=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(3),i0.\u0275\u0275propertyInterpolate1("routerLink","/user/",null==ctx_r13.DATA.dataset||null==ctx_r13.DATA.dataset.user_?null:ctx_r13.DATA.dataset.user_.username,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",null==ctx_r13.DATA.dataset||null==ctx_r13.DATA.dataset.user_?null:ctx_r13.DATA.dataset.user_.username," ")}}function MaterialDialogBelajarComponent_form_3_Template(rf,ctx){if(1&rf){const _r17=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"form",4)(1,"div",5)(2,"div",6)(3,"div",5)(4,"div",7),i0.\u0275\u0275element(5,"img",8),i0.\u0275\u0275elementStart(6,"mat-form-field",9)(7,"mat-label"),i0.\u0275\u0275text(8,"Gambar"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(9,"ngx-mat-file-input",10,11),i0.\u0275\u0275listener("change",__name(function($event){i0.\u0275\u0275restoreView(_r17);const _r2=i0.\u0275\u0275reference(10);return i0.\u0275\u0275nextContext().uploadImage($event,_r2)},"MaterialDialogBelajarComponent_form_3_Template_ngx_mat_file_input_change_9_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(11,"mat-icon",12),i0.\u0275\u0275text(12,"image"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(13,"mat-error",13)(14,"small"),i0.\u0275\u0275template(15,MaterialDialogBelajarComponent_form_3_div_15_Template,3,3,"div",14),i0.\u0275\u0275template(16,MaterialDialogBelajarComponent_form_3_div_16_Template,2,1,"div",14),i0.\u0275\u0275template(17,MaterialDialogBelajarComponent_form_3_div_17_Template,2,0,"div",14),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(18,MaterialDialogBelajarComponent_form_3_div_18_Template,5,1,"div",15),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(19,"div",16)(20,"div",5)(21,"mat-form-field",17)(22,"mat-label"),i0.\u0275\u0275text(23,"Kana"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(24,"input",18),i0.\u0275\u0275elementStart(25,"mat-icon",12),i0.\u0275\u0275text(26,"translate"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(27,"mat-error"),i0.\u0275\u0275template(28,MaterialDialogBelajarComponent_form_3_div_28_Template,2,0,"div",14),i0.\u0275\u0275template(29,MaterialDialogBelajarComponent_form_3_div_29_Template,2,0,"div",14),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(30,"mat-form-field",17)(31,"mat-label"),i0.\u0275\u0275text(32,"Romaji"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(33,"input",19),i0.\u0275\u0275elementStart(34,"mat-icon",12),i0.\u0275\u0275text(35,"text_fields"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(36,"mat-error"),i0.\u0275\u0275template(37,MaterialDialogBelajarComponent_form_3_div_37_Template,2,0,"div",14),i0.\u0275\u0275template(38,MaterialDialogBelajarComponent_form_3_div_38_Template,2,0,"div",14),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(39,"mat-form-field",17)(40,"mat-label"),i0.\u0275\u0275text(41,"Arti Terjemahan"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(42,"input",20),i0.\u0275\u0275elementStart(43,"mat-icon",12),i0.\u0275\u0275text(44,"g_translate"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(45,"mat-error"),i0.\u0275\u0275template(46,MaterialDialogBelajarComponent_form_3_div_46_Template,2,0,"div",14),i0.\u0275\u0275template(47,MaterialDialogBelajarComponent_form_3_div_47_Template,2,0,"div",14),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(48,MaterialDialogBelajarComponent_form_3_div_48_Template,5,2,"div",21),i0.\u0275\u0275elementEnd()()()}if(2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("formGroup",ctx_r0.fg),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("src",ctx_r0.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("disabled",ctx_r0.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",ctx_r0.imageLimitExceeded),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.imageErrorText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("image").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.image&&!ctx_r0.fg.value.image),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("kana").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("kana").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("romaji").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("romaji").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(7),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("meaning").hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r0.fg.get("meaning").hasError("pattern")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",null==ctx_r0.DATA.dataset?null:ctx_r0.DATA.dataset.user_)}}function MaterialDialogBelajarComponent_div_4_button_3_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"button",29),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r18=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("mat-dialog-close",null),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r18.DATA.cancelText)}}function MaterialDialogBelajarComponent_div_4_Template(rf,ctx){if(1&rf){const _r20=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",26)(1,"button",27),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r20),i0.\u0275\u0275nextContext().saveData()},"MaterialDialogBelajarComponent_div_4_Template_button_click_1_listener")),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(3,MaterialDialogBelajarComponent_div_4_button_3_Template,2,2,"button",28),i0.\u0275\u0275elementEnd()}if(2&rf){const ctx_r1=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",ctx_r1.submitted||ctx_r1.fg.invalid||!ctx_r1.fg.dirty),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",ctx_r1.DATA.confirmText," "),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r1.DATA.cancelText)}}__name(MaterialDialogBelajarComponent_form_3_div_15_Template,"MaterialDialogBelajarComponent_form_3_div_15_Template"),__name(MaterialDialogBelajarComponent_form_3_div_16_Template,"MaterialDialogBelajarComponent_form_3_div_16_Template"),__name(MaterialDialogBelajarComponent_form_3_div_17_Template,"MaterialDialogBelajarComponent_form_3_div_17_Template"),__name(MaterialDialogBelajarComponent_form_3_div_18_Template,"MaterialDialogBelajarComponent_form_3_div_18_Template"),__name(MaterialDialogBelajarComponent_form_3_div_28_Template,"MaterialDialogBelajarComponent_form_3_div_28_Template"),__name(MaterialDialogBelajarComponent_form_3_div_29_Template,"MaterialDialogBelajarComponent_form_3_div_29_Template"),__name(MaterialDialogBelajarComponent_form_3_div_37_Template,"MaterialDialogBelajarComponent_form_3_div_37_Template"),__name(MaterialDialogBelajarComponent_form_3_div_38_Template,"MaterialDialogBelajarComponent_form_3_div_38_Template"),__name(MaterialDialogBelajarComponent_form_3_div_46_Template,"MaterialDialogBelajarComponent_form_3_div_46_Template"),__name(MaterialDialogBelajarComponent_form_3_div_47_Template,"MaterialDialogBelajarComponent_form_3_div_47_Template"),__name(MaterialDialogBelajarComponent_form_3_div_48_Template,"MaterialDialogBelajarComponent_form_3_div_48_Template"),__name(MaterialDialogBelajarComponent_form_3_Template,"MaterialDialogBelajarComponent_form_3_Template"),__name(MaterialDialogBelajarComponent_div_4_button_3_Template,"MaterialDialogBelajarComponent_div_4_button_3_Template"),__name(MaterialDialogBelajarComponent_div_4_Template,"MaterialDialogBelajarComponent_div_4_Template");class MaterialDialogBelajarComponent{constructor(fb,bs,imgbb,nihongo,dialogRef,data,gs){this.fb=fb,this.bs=bs,this.imgbb=imgbb,this.nihongo=nihongo,this.dialogRef=dialogRef,this.data=data,this.gs=gs,this.submitted=!1,this.image=null,this.imageErrorText=null,this.imageLimitExceeded=null,this.image_url="/assets/img/form/no-image.png",this.image_url_original=null,this.gambar=null,this.subsNihongo=null,this.subsImgbb=null,this.gs.isBrowser}get DATA(){return this.data}ngOnInit(){var _a;this.gs.isBrowser&&(this.gs.log("[DIALOG_DATA_IN]",this.data),this.initForm(null===(_a=this.data)||void 0===_a?void 0:_a.dataset))}ngOnDestroy(){var _a,_b;null===(_a=this.subsImgbb)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsNihongo)||void 0===_b||_b.unsubscribe()}initForm(data){this.fg=this.fb.group({kana:[null==data?void 0:data.kana,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexJapaneseKeyboardKeys)])],romaji:[null==data?void 0:data.romaji,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],meaning:[null==data?void 0:data.meaning,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],category:[(null==data?void 0:data.category)||this.data.modeTampilan,forms_1.Validators.compose([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)])],image:[null,forms_1.Validators.compose([forms_1.Validators.pattern(constants_1.CONSTANTS.regexUrl)])]}),data?this.image_url=null==data?void 0:data.image_url:this.fg.controls.image.setValidators([forms_1.Validators.required,forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)]),this.image_url_original=this.image_url}uploadImage(event,gambar){this.gambar=gambar,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine();const file2=event.target.files[0];try{const reader=new FileReader;reader.readAsDataURL(file2),reader.onload=e=>{if(this.gs.log("[IMAGE_SELECTED]",e),file2.size<=constants_1.CONSTANTS.fileSizeImageLimit){const img=this.gs.document.createElement("img");img.onload=()=>{this.image=file2,this.image_url=reader.result.toString()},img.src=reader.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=constants_1.CONSTANTS.fileSizeImageLimit,this.gambar.clear(event)}}catch{this.image=null,this.image_url=this.image_url_original,this.gambar.clear(event)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:res=>{this.gs.log("[IMAGE_SUCCESS]",res),this.fg.controls.image.patchValue(res.result.url),this.fg.controls.image.markAsDirty(),this.submitted=!1},error:err=>{var _a;this.gs.log("[IMAGE_ERROR]",err,"error"),this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine(),this.submitted=!1,this.imageErrorText=(null===(_a=err.result)||void 0===_a?void 0:_a.message)||err.info}})}saveData(){var _a;this.bs.busy(),this.submitted=!0;let body=null;if((null===(_a=this.data)||void 0===_a?void 0:_a.dataset)&&(body=this.gs.getDirtyValues(this.fg),this.gs.log("[NIHONGO_ADD_OR_EDIT_DIRTY]",body)),this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsNihongo=body?this.nihongo.updateNihongo(this.data.dataset.id,{...body}):this.nihongo.createNihongo({image:this.fg.value.image,kana:this.fg.value.kana,romaji:this.fg.value.romaji,meaning:this.fg.value.meaning,category:this.fg.value.category}),this.subsNihongo=this.subsNihongo.subscribe({next:res=>{this.gs.log("[NIHONGO_ADD_OR_EDIT_SUCCESS]",res),this.submitted=!1,this.bs.idle(),this.dialogRef.close(res)},error:err=>{this.gs.log("[NIHONGO_ADD_OR_EDIT_ERROR]",err,"error"),this.submitted=!1,this.bs.idle()}})}}__name(MaterialDialogBelajarComponent,"MaterialDialogBelajarComponent"),exports2.MaterialDialogBelajarComponent=MaterialDialogBelajarComponent,MaterialDialogBelajarComponent.\u0275fac=__name(function(t){return new(t||MaterialDialogBelajarComponent)(i0.\u0275\u0275directiveInject(i1.FormBuilder),i0.\u0275\u0275directiveInject(i2.BusyService),i0.\u0275\u0275directiveInject(i3.ImgbbService),i0.\u0275\u0275directiveInject(i4.NihongoService),i0.\u0275\u0275directiveInject(i5.MatDialogRef),i0.\u0275\u0275directiveInject(dialog_1.MAT_DIALOG_DATA),i0.\u0275\u0275directiveInject(i6.GlobalService))},"MaterialDialogBelajarComponent_Factory"),MaterialDialogBelajarComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:MaterialDialogBelajarComponent,selectors:[["app-material-dialog-belajar"]],decls:5,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"text-break","text-warning"],[3,"formGroup",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],[1,"col-12"],[1,"w-100","border",3,"src"],["appearance","outline",1,"pt-3","w-100",3,"color"],[1,"w-100",3,"disabled","accept","change"],["gambar",""],["matSuffix",""],[1,"px-3","pb-3","w-100"],[4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-12","col-md-7","col-xl-8","pt-3"],["appearance","outline",1,"p-3","col-12",3,"color"],["matInput","","formControlName","kana","placeholder","\u8910\u8272"],["matInput","","formControlName","romaji","placeholder","Kasshoku"],["matInput","","formControlName","meaning","placeholder","Coklat"],["class","row",4,"ngIf"],["mat-raised-button","","color","primary","type","button",1,"w-100",3,"disabled","click"],[1,"me-1"],[1,"col","text-end"],[1,"text-success",2,"text-decoration","none",3,"routerLink"],["mat-dialog-actions",""],["mat-button","",1,"ms-auto","text-success",3,"disabled","click"],["mat-button","",3,"mat-dialog-close",4,"ngIf"],["mat-button","",3,"mat-dialog-close"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"h1",0),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(2,"div",1),i0.\u0275\u0275template(3,MaterialDialogBelajarComponent_form_3_Template,49,19,"form",2),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(4,MaterialDialogBelajarComponent_div_4_Template,4,3,"div",3)),2&rf&&(i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate2("",ctx.DATA.title," '",ctx.DATA.dataset?ctx.DATA.dataset.kana:ctx.DATA.modeTampilan,"'"),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx.fg),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.fg))},"MaterialDialogBelajarComponent_Template"),directives:[i5.MatDialogTitle,i5.MatDialogContent,i7.NgIf,i1.\u0275NgNoValidate,i1.NgControlStatusGroup,i1.FormGroupDirective,i8.MatFormField,i8.MatLabel,i9.FileInputComponent,i10.MatIcon,i8.MatSuffix,i8.MatError,i11.MatButton,i12.MatInput,i1.DefaultValueAccessor,i1.NgControlStatus,i1.FormControlName,i13.RouterLinkWithHref,i5.MatDialogActions,i5.MatDialogClose],pipes:[i14.BytesPipe],styles:[""]})},35248:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialDialogDmakComponent=void 0;const tslib_1=__webpack_require__2(70655),dialog_1=(__webpack_require__2(5e3),__webpack_require__2(48966)),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(48966)),i3=tslib_1.__importStar(__webpack_require__2(47423)),i4=tslib_1.__importStar(__webpack_require__2(87238)),i5=tslib_1.__importStar(__webpack_require__2(25245)),_c0=["dmakElement"];class MaterialDialogDmakComponent{constructor(data,gs){this.data=data,this.gs=gs,this.dmak=null,this.dmakUrl="/assets/kanji/",this.charToDraw="NO DATA",this.gs.isBrowser}get DATA(){return this.data}ngOnInit(){this.gs.log("[DIALOG_DATA_IN]",this.data),"hiragana_katakana_kanji"in this.data&&this.data.hiragana_katakana_kanji&&(this.charToDraw=this.data.hiragana_katakana_kanji)}ngAfterViewInit(){this.dmak=new Dmak(this.charToDraw,{element:"dmakElement",uri:this.dmakUrl,stroke:{order:{visible:!0},attr:{active:"#f44336",stroke:"#28a745"}}})}play(){this.dmak.render()}pause(){this.dmak.pause()}next(){this.pause(),this.dmak.renderNextStrokes(1)}back(){this.pause(),this.dmak.eraseLastStrokes(1)}reset(){this.pause(),this.dmak.erase()}}__name(MaterialDialogDmakComponent,"MaterialDialogDmakComponent"),exports2.MaterialDialogDmakComponent=MaterialDialogDmakComponent,MaterialDialogDmakComponent.\u0275fac=__name(function(t){return new(t||MaterialDialogDmakComponent)(i0.\u0275\u0275directiveInject(dialog_1.MAT_DIALOG_DATA),i0.\u0275\u0275directiveInject(i1.GlobalService))},"MaterialDialogDmakComponent_Factory"),MaterialDialogDmakComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:MaterialDialogDmakComponent,selectors:[["app-material-dialog-dmak"]],viewQuery:__name(function(rf,ctx){if(1&rf&&i0.\u0275\u0275viewQuery(_c0,5),2&rf){let _t;i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.dmakElement=_t.first)}},"MaterialDialogDmakComponent_Query"),decls:12,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"text-break"],["id","dmakElement",1,"text-center"],["dmakElement",""],["mat-dialog-actions",""],["mat-button","","matTooltip","Back",1,"ms-auto",3,"click"],["mat-button","","matTooltip","Next",3,"click"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"h1",0),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(2,"div",1),i0.\u0275\u0275element(3,"div",2,3),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"div",4)(6,"button",5),i0.\u0275\u0275listener("click",__name(function(){return ctx.back()},"MaterialDialogDmakComponent_Template_button_click_6_listener")),i0.\u0275\u0275elementStart(7,"mat-icon"),i0.\u0275\u0275text(8,"chevron_left"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(9,"button",6),i0.\u0275\u0275listener("click",__name(function(){return ctx.next()},"MaterialDialogDmakComponent_Template_button_click_9_listener")),i0.\u0275\u0275elementStart(10,"mat-icon"),i0.\u0275\u0275text(11,"chevron_right"),i0.\u0275\u0275elementEnd()()()),2&rf&&(i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Cara Penulisan '",ctx.DATA.romaji,"'"))},"MaterialDialogDmakComponent_Template"),directives:[i2.MatDialogTitle,i2.MatDialogContent,i2.MatDialogActions,i3.MatButton,i4.MatTooltip,i5.MatIcon],styles:[""]})},86529:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialDialogEdictComponent=void 0;const tslib_1=__webpack_require__2(70655),dialog_1=(__webpack_require__2(5e3),__webpack_require__2(48966)),wanakana_1=__webpack_require__2(40828),i0=(__webpack_require__2(80855),__webpack_require__2(52663),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(52663)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(48966)),i4=tslib_1.__importStar(__webpack_require__2(69808)),i5=tslib_1.__importStar(__webpack_require__2(14623)),i6=tslib_1.__importStar(__webpack_require__2(90508)),i7=tslib_1.__importStar(__webpack_require__2(40192)),i8=tslib_1.__importStar(__webpack_require__2(47423)),_c0=["dmakElement"];function MaterialDialogEdictComponent_li_24_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"li"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const v_r6=ctx.$implicit,ctx_r1=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate2(" ",v_r6," (",ctx_r1.getRomaji(v_r6),") ")}}function MaterialDialogEdictComponent_li_28_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"li"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const v_r7=ctx.$implicit,ctx_r2=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate2(" ",v_r7," (",ctx_r2.getRomaji(v_r7),") ")}}function MaterialDialogEdictComponent_div_36_mat_list_option_2_Template(rf,ctx){if(1&rf){const _r11=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-list-option",25),i0.\u0275\u0275listener("click",__name(function(){const e_r9=i0.\u0275\u0275restoreView(_r11).$implicit;return i0.\u0275\u0275nextContext(2).openVocab(e_r9)},"MaterialDialogEdictComponent_div_36_mat_list_option_2_Template_mat_list_option_click_0_listener")),i0.\u0275\u0275elementStart(1,"h4",26),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"h5",27),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"p",28),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd()()}if(2&rf){const e_r9=ctx.$implicit,ctx_r8=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(e_r9.kanji),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate2("",e_r9.reading," (",ctx_r8.getRomaji(e_r9.reading),")"),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(e_r9.meaning)}}function MaterialDialogEdictComponent_div_36_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div")(1,"mat-selection-list",23),i0.\u0275\u0275template(2,MaterialDialogEdictComponent_div_36_mat_list_option_2_Template,7,4,"mat-list-option",24),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r3.edict)}}function MaterialDialogEdictComponent_app_no_data_37_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"app-no-data")}function MaterialDialogEdictComponent_div_38_Template(rf,ctx){if(1&rf){const _r13=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",29)(1,"button",30),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r13),i0.\u0275\u0275nextContext().loadNextPage()},"MaterialDialogEdictComponent_div_38_Template_button_click_1_listener")),i0.\u0275\u0275text(2,"Load More ..."),i0.\u0275\u0275elementEnd()()}}__name(MaterialDialogEdictComponent_li_24_Template,"MaterialDialogEdictComponent_li_24_Template"),__name(MaterialDialogEdictComponent_li_28_Template,"MaterialDialogEdictComponent_li_28_Template"),__name(MaterialDialogEdictComponent_div_36_mat_list_option_2_Template,"MaterialDialogEdictComponent_div_36_mat_list_option_2_Template"),__name(MaterialDialogEdictComponent_div_36_Template,"MaterialDialogEdictComponent_div_36_Template"),__name(MaterialDialogEdictComponent_app_no_data_37_Template,"MaterialDialogEdictComponent_app_no_data_37_Template"),__name(MaterialDialogEdictComponent_div_38_Template,"MaterialDialogEdictComponent_div_38_Template");class MaterialDialogEdictComponent{constructor(data,nihon,gs){this.data=data,this.nihon=nihon,this.gs=gs,this.dmak=null,this.dmakUrl="/assets/kanji/",this.charToDraw="NO DATA",this.edict=[],this.page=1,this.pageFinished=!1,this.subsEdict=null,this.gs.isBrowser}get DATA(){return this.data}getRomaji(kana){return(0,wanakana_1.toRomaji)(kana)}ngOnInit(){this.gs.log("[DIALOG_DATA_IN]",this.data),"character"in this.data&&this.data.character&&(this.charToDraw=this.data.character),this.loadEdict()}ngOnDestroy(){var _a;null===(_a=this.subsEdict)||void 0===_a||_a.unsubscribe()}ngAfterViewInit(){this.dmak=new Dmak(this.charToDraw,{element:"dmakElement",uri:this.dmakUrl,stroke:{order:{visible:!0},attr:{active:"#f44336",stroke:"#28a745"}}})}loadEdict(){this.subsEdict=this.nihon.getAllEdict(this.charToDraw,this.page).subscribe({next:res=>{this.gs.log("[EDICT_LIST_SUCCESS]",res),this.edict=[...this.edict,...res.results],res.results.length<=0&&(this.pageFinished=!0)},error:err=>{this.gs.log("[EDICT_LIST_ERROR]",err,"error")}})}loadNextPage(){this.pageFinished||(this.page++,this.loadEdict())}openVocab(data){this.gs.log("[EDICT_LIST_CLICK_VOCAB]",data)}}__name(MaterialDialogEdictComponent,"MaterialDialogEdictComponent"),exports2.MaterialDialogEdictComponent=MaterialDialogEdictComponent,MaterialDialogEdictComponent.\u0275fac=__name(function(t){return new(t||MaterialDialogEdictComponent)(i0.\u0275\u0275directiveInject(dialog_1.MAT_DIALOG_DATA),i0.\u0275\u0275directiveInject(i1.NihongoService),i0.\u0275\u0275directiveInject(i2.GlobalService))},"MaterialDialogEdictComponent_Factory"),MaterialDialogEdictComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:MaterialDialogEdictComponent,selectors:[["app-material-dialog-edict"]],viewQuery:__name(function(rf,ctx){if(1&rf&&i0.\u0275\u0275viewQuery(_c0,5),2&rf){let _t;i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.dmakElement=_t.first)}},"MaterialDialogEdictComponent_Query"),decls:42,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"text-break"],[1,"row"],[1,"col-md-4","col-xl-3"],[1,"row","sticky-top","p-3"],[1,"col-12"],["id","dmakElement",1,"text-center"],["dmakElement",""],[1,"col-12","mt-3"],[1,"text-warning"],[1,"text-truncate"],[1,"text-success"],[1,"text-truncate","mt-3"],[1,"text-success","m-0"],[4,"ngFor","ngForOf"],[1,"col-md-8","col-xl-9"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"border-bottom-dotted"],[1,"text-bifeldy"],[4,"ngIf"],["class","col-12 text-center p-3",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"ms-auto",3,"mat-dialog-close"],[3,"multiple"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["matLine","",1,"px-3"],["matLine","",1,"px-3","text-success"],["matLine","",1,"px-3","text-warning"],[1,"col-12","text-center","p-3"],["mat-button","",3,"click"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"h1",0),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5),i0.\u0275\u0275element(7,"div",6,7),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(9,"div",8)(10,"p",9),i0.\u0275\u0275text(11),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(12,"div",5)(13,"div",10),i0.\u0275\u0275text(14," JLPT Level :: "),i0.\u0275\u0275elementStart(15,"span",11),i0.\u0275\u0275text(16),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(17,"div",10),i0.\u0275\u0275text(18," School Level :: "),i0.\u0275\u0275elementStart(19,"span",11),i0.\u0275\u0275text(20),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(21,"div",12),i0.\u0275\u0275text(22," Kunyomi :: "),i0.\u0275\u0275elementStart(23,"ul",13),i0.\u0275\u0275template(24,MaterialDialogEdictComponent_li_24_Template,2,2,"li",14),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(25,"div",10),i0.\u0275\u0275text(26," Onyomi :: "),i0.\u0275\u0275elementStart(27,"ul",13),i0.\u0275\u0275template(28,MaterialDialogEdictComponent_li_28_Template,2,2,"li",14),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275elementStart(29,"div",15)(30,"div",2)(31,"div",16)(32,"h2",17)(33,"b",18),i0.\u0275\u0275text(34,"Kosa Kata"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(35,"div",5),i0.\u0275\u0275template(36,MaterialDialogEdictComponent_div_36_Template,3,2,"div",19),i0.\u0275\u0275template(37,MaterialDialogEdictComponent_app_no_data_37_Template,1,0,"app-no-data",19),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(38,MaterialDialogEdictComponent_div_38_Template,3,0,"div",20),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(39,"div",21)(40,"button",22),i0.\u0275\u0275text(41,"Tutup"),i0.\u0275\u0275elementEnd()()),2&rf&&(i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("Kamus Dictionary '",ctx.DATA.character,"'"),i0.\u0275\u0275advance(10),i0.\u0275\u0275textInterpolate(ctx.DATA.translate),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1("N",ctx.DATA.jlpt,""),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate(ctx.DATA.school),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngForOf",ctx.DATA.v_kunyomi.split(",")),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngForOf",ctx.DATA.v_onyomi.split(",")),i0.\u0275\u0275advance(8),i0.\u0275\u0275property("ngIf",ctx.edict.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.edict.length<=0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!ctx.pageFinished),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("mat-dialog-close",!0))},"MaterialDialogEdictComponent_Template"),directives:[i3.MatDialogTitle,i3.MatDialogContent,i4.NgForOf,i4.NgIf,i5.MatSelectionList,i5.MatListOption,i6.MatLine,i7.NoDataComponent,i8.MatButton,i3.MatDialogActions,i3.MatDialogClose],styles:[""]})},35070:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialDialogInfoComponent=void 0;const tslib_1=__webpack_require__2(70655),dialog_1=__webpack_require__2(48966),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(48966)),i3=tslib_1.__importStar(__webpack_require__2(69808)),i4=tslib_1.__importStar(__webpack_require__2(47423)),i5=tslib_1.__importStar(__webpack_require__2(11861));function MaterialDialogInfoComponent_small_5_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"small",6)(1,"i"),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate1("* ",ctx_r0.DATA.infoText,"")}}function MaterialDialogInfoComponent_button_8_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"button",7),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r1=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("mat-dialog-close",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r1.DATA.cancelText)}}__name(MaterialDialogInfoComponent_small_5_Template,"MaterialDialogInfoComponent_small_5_Template"),__name(MaterialDialogInfoComponent_button_8_Template,"MaterialDialogInfoComponent_button_8_Template");class MaterialDialogInfoComponent{constructor(data,gs){this.data=data,this.gs=gs,this.gs.isBrowser}get DATA(){return this.data}ngOnInit(){this.gs.log("[DIALOG_DATA_IN]",this.data)}}__name(MaterialDialogInfoComponent,"MaterialDialogInfoComponent"),exports2.MaterialDialogInfoComponent=MaterialDialogInfoComponent,MaterialDialogInfoComponent.\u0275fac=__name(function(t){return new(t||MaterialDialogInfoComponent)(i0.\u0275\u0275directiveInject(dialog_1.MAT_DIALOG_DATA),i0.\u0275\u0275directiveInject(i1.GlobalService))},"MaterialDialogInfoComponent_Factory"),MaterialDialogInfoComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:MaterialDialogInfoComponent,selectors:[["app-material-dialog-info"]],decls:9,vars:8,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"text-break","text-warning",3,"innerHTML"],["mat-dialog-actions",""],["class","text-start m-2",4,"ngIf"],["mat-button","",1,"ms-auto","text-success","shiny",3,"mat-dialog-close"],["mat-button","",3,"mat-dialog-close",4,"ngIf"],[1,"text-start","m-2"],["mat-button","",3,"mat-dialog-close"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"h1",0),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(2,"div",1),i0.\u0275\u0275pipe(3,"safeInnerHtml"),i0.\u0275\u0275elementStart(4,"div",2),i0.\u0275\u0275template(5,MaterialDialogInfoComponent_small_5_Template,3,1,"small",3),i0.\u0275\u0275elementStart(6,"button",4),i0.\u0275\u0275text(7),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(8,MaterialDialogInfoComponent_button_8_Template,2,2,"button",5),i0.\u0275\u0275elementEnd()),2&rf&&(i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx.DATA.title),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("innerHTML",i0.\u0275\u0275pipeBind1(3,6,ctx.DATA.htmlMessage),i0.\u0275\u0275sanitizeHtml),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngIf",ctx.DATA.infoText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("mat-dialog-close",!0),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx.DATA.confirmText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.DATA.cancelText))},"MaterialDialogInfoComponent_Template"),directives:[i2.MatDialogTitle,i2.MatDialogContent,i2.MatDialogActions,i3.NgIf,i4.MatButton,i2.MatDialogClose],pipes:[i5.SafeInnerHtmlPipe],styles:[""]})},84807:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialDialogInputComponent=void 0;const tslib_1=__webpack_require__2(70655),dialog_1=__webpack_require__2(48966),forms_1=__webpack_require__2(93075),constants_1=__webpack_require__2(26271),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(93075)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(48966)),i4=tslib_1.__importStar(__webpack_require__2(69808)),i5=tslib_1.__importStar(__webpack_require__2(67322)),i6=tslib_1.__importStar(__webpack_require__2(77531)),i7=tslib_1.__importStar(__webpack_require__2(25245)),i8=tslib_1.__importStar(__webpack_require__2(47423));function MaterialDialogInputComponent_form_3_mat_form_field_1_div_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const item_r4=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("",item_r4.value.inputLabel," Tidak Boleh Kosong")}}function MaterialDialogInputComponent_form_3_mat_form_field_1_div_8_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const item_r4=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("",item_r4.value.inputLabel," Hanya Boleh Huruf Standar Papan Ketik")}}function MaterialDialogInputComponent_form_3_mat_form_field_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-form-field",9)(1,"mat-label"),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(3,"input",10),i0.\u0275\u0275elementStart(4,"mat-icon",11),i0.\u0275\u0275text(5,"wysiwyg"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"mat-error"),i0.\u0275\u0275template(7,MaterialDialogInputComponent_form_3_mat_form_field_1_div_7_Template,2,1,"div",12),i0.\u0275\u0275template(8,MaterialDialogInputComponent_form_3_mat_form_field_1_div_8_Template,2,1,"div",12),i0.\u0275\u0275elementEnd()()),2&rf){const item_r4=ctx.$implicit,ctx_r3=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(item_r4.value.inputLabel),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("placeholder",item_r4.value.inputPlaceholder),i0.\u0275\u0275property("formControlName",item_r4.key)("required",item_r4.value.inputRequired),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",ctx_r3.fg.get(item_r4.key).hasError("required")),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx_r3.fg.get(item_r4.key).hasError("pattern"))}}function MaterialDialogInputComponent_form_3_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"form",7),i0.\u0275\u0275template(1,MaterialDialogInputComponent_form_3_mat_form_field_1_Template,9,7,"mat-form-field",8),i0.\u0275\u0275pipe(2,"keyvalue"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("formGroup",ctx_r0.fg),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind1(2,2,ctx_r0.DATA.input))}}function MaterialDialogInputComponent_small_5_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"small",13)(1,"i"),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r1=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate1("* ",ctx_r1.DATA.infoText,"")}}function MaterialDialogInputComponent_button_8_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"button",14),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r2=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("mat-dialog-close",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx_r2.DATA.cancelText)}}__name(MaterialDialogInputComponent_form_3_mat_form_field_1_div_7_Template,"MaterialDialogInputComponent_form_3_mat_form_field_1_div_7_Template"),__name(MaterialDialogInputComponent_form_3_mat_form_field_1_div_8_Template,"MaterialDialogInputComponent_form_3_mat_form_field_1_div_8_Template"),__name(MaterialDialogInputComponent_form_3_mat_form_field_1_Template,"MaterialDialogInputComponent_form_3_mat_form_field_1_Template"),__name(MaterialDialogInputComponent_form_3_Template,"MaterialDialogInputComponent_form_3_Template"),__name(MaterialDialogInputComponent_small_5_Template,"MaterialDialogInputComponent_small_5_Template"),__name(MaterialDialogInputComponent_button_8_Template,"MaterialDialogInputComponent_button_8_Template");class MaterialDialogInputComponent{constructor(data,fb,gs){this.data=data,this.fb=fb,this.gs=gs,this.gs.isBrowser}get DATA(){return this.data}get BALIKAN(){return this.fg.value}ngOnInit(){this.gs.log("[DIALOG_DATA_IN]",this.data);const dataFormGroup={};for(const[key,value]of Object.entries(this.data.input)){const defVal=[forms_1.Validators.pattern(constants_1.CONSTANTS.regexEnglishKeyboardKeys)];value.inputRequired&&defVal.push(forms_1.Validators.required),dataFormGroup[key]=[value.inputValue,forms_1.Validators.compose(defVal)]}this.fg=this.fb.group(dataFormGroup)}}__name(MaterialDialogInputComponent,"MaterialDialogInputComponent"),exports2.MaterialDialogInputComponent=MaterialDialogInputComponent,MaterialDialogInputComponent.\u0275fac=__name(function(t){return new(t||MaterialDialogInputComponent)(i0.\u0275\u0275directiveInject(dialog_1.MAT_DIALOG_DATA),i0.\u0275\u0275directiveInject(i1.FormBuilder),i0.\u0275\u0275directiveInject(i2.GlobalService))},"MaterialDialogInputComponent_Factory"),MaterialDialogInputComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:MaterialDialogInputComponent,selectors:[["app-material-dialog-input"]],decls:9,vars:7,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"text-break","text-warning"],[3,"formGroup",4,"ngIf"],["mat-dialog-actions",""],["class","text-start m-2",4,"ngIf"],["mat-button","",1,"ms-auto","text-success","shiny",3,"mat-dialog-close","disabled"],["mat-button","",3,"mat-dialog-close",4,"ngIf"],[3,"formGroup"],["appearance","outline","class","p-3 col-12",3,"color",4,"ngFor","ngForOf"],["appearance","outline",1,"p-3","col-12",3,"color"],["matInput","",3,"formControlName","placeholder","required"],["matSuffix",""],[4,"ngIf"],[1,"text-start","m-2"],["mat-button","",3,"mat-dialog-close"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"h1",0),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(2,"div",1),i0.\u0275\u0275template(3,MaterialDialogInputComponent_form_3_Template,3,4,"form",2),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"div",3),i0.\u0275\u0275template(5,MaterialDialogInputComponent_small_5_Template,3,1,"small",4),i0.\u0275\u0275elementStart(6,"button",5),i0.\u0275\u0275text(7),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(8,MaterialDialogInputComponent_button_8_Template,2,2,"button",6),i0.\u0275\u0275elementEnd()),2&rf&&(i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx.DATA.title),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx.fg),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx.DATA.infoText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("mat-dialog-close",ctx.BALIKAN)("disabled",ctx.fg.invalid),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(ctx.DATA.confirmText),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.DATA.cancelText))},"MaterialDialogInputComponent_Template"),directives:[i3.MatDialogTitle,i3.MatDialogContent,i4.NgIf,i1.\u0275NgNoValidate,i1.NgControlStatusGroup,i1.FormGroupDirective,i4.NgForOf,i5.MatFormField,i5.MatLabel,i6.MatInput,i1.DefaultValueAccessor,i1.NgControlStatus,i1.FormControlName,i1.RequiredValidator,i7.MatIcon,i5.MatSuffix,i5.MatError,i3.MatDialogActions,i8.MatButton,i3.MatDialogClose],pipes:[i4.KeyValuePipe],styles:[""]})},68821:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialDialogModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),forms_1=__webpack_require__2(93075),router_1=__webpack_require__2(74202),ngx_material_file_input_1=__webpack_require__2(21385),shared_material_module_1=__webpack_require__2(20210),custom_pipe_module_1=__webpack_require__2(67355),no_data_module_1=__webpack_require__2(12438),i0=tslib_1.__importStar(__webpack_require__2(5e3));class MaterialDialogModule{}__name(MaterialDialogModule,"MaterialDialogModule"),exports2.MaterialDialogModule=MaterialDialogModule,MaterialDialogModule.\u0275fac=__name(function(t){return new(t||MaterialDialogModule)},"MaterialDialogModule_Factory"),MaterialDialogModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:MaterialDialogModule}),MaterialDialogModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule,shared_material_module_1.SharedMaterialModule,forms_1.FormsModule,forms_1.ReactiveFormsModule,ngx_material_file_input_1.MaterialFileInputModule,no_data_module_1.NoDataModule,custom_pipe_module_1.CustomPipeModule]]})},97567:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialExpansionPanelComponent=void 0;const tslib_1=__webpack_require__2(70655),expansion_1=__webpack_require__2(81125),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(69808)),i3=tslib_1.__importStar(__webpack_require__2(81125)),i4=tslib_1.__importStar(__webpack_require__2(87238)),i5=tslib_1.__importStar(__webpack_require__2(25245));function MaterialExpansionPanelComponent_mat_accordion_0_mat_expansion_panel_1_ng_template_8_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"h3",8),2&rf){const d_r2=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275property("innerHTML",d_r2.text,i0.\u0275\u0275sanitizeHtml)}}function MaterialExpansionPanelComponent_mat_accordion_0_mat_expansion_panel_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title",4)(3,"span",5),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(5,"mat-panel-description")(6,"mat-icon",6),i0.\u0275\u0275text(7),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275template(8,MaterialExpansionPanelComponent_mat_accordion_0_mat_expansion_panel_1_ng_template_8_Template,1,1,"ng-template",7),i0.\u0275\u0275elementEnd()),2&rf){const d_r2=ctx.$implicit,isFirst_r3=ctx.first,ctx_r1=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("expanded",ctx_r1.GS.isDesktop&&isFirst_r3),i0.\u0275\u0275advance(3),i0.\u0275\u0275propertyInterpolate("matTooltip",d_r2.tooltip),i0.\u0275\u0275property("matTooltipPosition","above"),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",d_r2.title," "),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(d_r2.icon)}}function MaterialExpansionPanelComponent_mat_accordion_0_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-accordion",1),i0.\u0275\u0275template(1,MaterialExpansionPanelComponent_mat_accordion_0_mat_expansion_panel_1_Template,9,5,"mat-expansion-panel",2),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx_r0.panelData)}}__name(MaterialExpansionPanelComponent_mat_accordion_0_mat_expansion_panel_1_ng_template_8_Template,"MaterialExpansionPanelComponent_mat_accordion_0_mat_expansion_panel_1_ng_template_8_Template"),__name(MaterialExpansionPanelComponent_mat_accordion_0_mat_expansion_panel_1_Template,"MaterialExpansionPanelComponent_mat_accordion_0_mat_expansion_panel_1_Template"),__name(MaterialExpansionPanelComponent_mat_accordion_0_Template,"MaterialExpansionPanelComponent_mat_accordion_0_Template");class MaterialExpansionPanelComponent{constructor(gs){this.gs=gs,this.panelData=[{title:"Title",icon:"warning",text:"Lorem ipsum ...",tooltip:"Info"}],this.gs.isBrowser}onResize(event){this.gs.onResize(event,"MATERIAL_EXPANSION_PANEL"),this.gs.isDesktop?this.accordion.openAll():this.accordion.closeAll()}get GS(){return this.gs}ngOnInit(){this.gs.isBrowser}}__name(MaterialExpansionPanelComponent,"MaterialExpansionPanelComponent"),exports2.MaterialExpansionPanelComponent=MaterialExpansionPanelComponent,MaterialExpansionPanelComponent.\u0275fac=__name(function(t){return new(t||MaterialExpansionPanelComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService))},"MaterialExpansionPanelComponent_Factory"),MaterialExpansionPanelComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:MaterialExpansionPanelComponent,selectors:[["app-material-expansion-panel"]],viewQuery:__name(function(rf,ctx){if(1&rf&&i0.\u0275\u0275viewQuery(expansion_1.MatAccordion,5),2&rf){let _t;i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.accordion=_t.first)}},"MaterialExpansionPanelComponent_Query"),hostBindings:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275listener("resize",__name(function($event){return ctx.onResize($event)},"MaterialExpansionPanelComponent_resize_HostBindingHandler"),!1,i0.\u0275\u0275resolveWindow)},"MaterialExpansionPanelComponent_HostBindings"),inputs:{panelData:"panelData"},decls:1,vars:1,consts:[["class","example-headers-align","multi","",4,"ngIf"],["multi","",1,"example-headers-align"],[3,"expanded",4,"ngFor","ngForOf"],[3,"expanded"],[1,"font-weight-bold"],[3,"matTooltip","matTooltipPosition"],[1,"ms-auto"],["matExpansionPanelContent",""],[1,"m-0","text-justify",2,"white-space","pre-line !important",3,"innerHTML"]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275template(0,MaterialExpansionPanelComponent_mat_accordion_0_Template,2,1,"mat-accordion",0),2&rf&&i0.\u0275\u0275property("ngIf",ctx.panelData.length>0)},"MaterialExpansionPanelComponent_Template"),directives:[i2.NgIf,i3.MatAccordion,i2.NgForOf,i3.MatExpansionPanel,i3.MatExpansionPanelHeader,i3.MatExpansionPanelTitle,i4.MatTooltip,i3.MatExpansionPanelDescription,i5.MatIcon,i3.MatExpansionPanelContent],styles:[""]})},6020:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialExpansionPanelModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),shared_material_module_1=__webpack_require__2(20210),i0=tslib_1.__importStar(__webpack_require__2(5e3));class MaterialExpansionPanelModule{}__name(MaterialExpansionPanelModule,"MaterialExpansionPanelModule"),exports2.MaterialExpansionPanelModule=MaterialExpansionPanelModule,MaterialExpansionPanelModule.\u0275fac=__name(function(t){return new(t||MaterialExpansionPanelModule)},"MaterialExpansionPanelModule_Factory"),MaterialExpansionPanelModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:MaterialExpansionPanelModule}),MaterialExpansionPanelModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,shared_material_module_1.SharedMaterialModule]]})},34990:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialFabComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(96382),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(96382)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(47423)),i4=tslib_1.__importStar(__webpack_require__2(87238)),i5=tslib_1.__importStar(__webpack_require__2(25245));class MaterialFabComponent{constructor(fs,gs){this.fs=fs,this.gs=gs,this.gs.isBrowser}ngOnInit(){this.gs.isBrowser}get isHidden(){return this.fs.isHidden}get tooltipText(){return this.fs.tooltipText}get backgroundImage(){return this.fs.backgroundImage}get backgroundIcon(){return this.fs.backgroundIcon}buttonClicked(){this.fs.buttonClicked()}}__name(MaterialFabComponent,"MaterialFabComponent"),exports2.MaterialFabComponent=MaterialFabComponent,MaterialFabComponent.\u0275fac=__name(function(t){return new(t||MaterialFabComponent)(i0.\u0275\u0275directiveInject(i1.FabService),i0.\u0275\u0275directiveInject(i2.GlobalService))},"MaterialFabComponent_Factory"),MaterialFabComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:MaterialFabComponent,selectors:[["app-material-fab"]],decls:3,vars:6,consts:[["mat-fab","","color","warn",1,"me-3","mb-5","fab-button","animate__animated","animate__bounce","animate__infinite","animate__slow",3,"matTooltip","click"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"button",0),i0.\u0275\u0275listener("click",__name(function(){return ctx.buttonClicked()},"MaterialFabComponent_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd()()),2&rf&&(i0.\u0275\u0275styleProp("display",ctx.isHidden?"none":"")("background-image",ctx.backgroundImage?"url("+ctx.backgroundImage+")":""),i0.\u0275\u0275propertyInterpolate("matTooltip",ctx.tooltipText),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(ctx.backgroundIcon))},"MaterialFabComponent_Template"),directives:[i3.MatButton,i4.MatTooltip,i5.MatIcon],styles:[".fab-button[_ngcontent-%COMP%]{z-index:9999;position:fixed;bottom:0;right:0;background-size:contain;background-position:center}"]})},28198:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialFabModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),shared_material_module_1=__webpack_require__2(20210),i0=tslib_1.__importStar(__webpack_require__2(5e3));class MaterialFabModule{}__name(MaterialFabModule,"MaterialFabModule"),exports2.MaterialFabModule=MaterialFabModule,MaterialFabModule.\u0275fac=__name(function(t){return new(t||MaterialFabModule)},"MaterialFabModule_Factory"),MaterialFabModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:MaterialFabModule}),MaterialFabModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,shared_material_module_1.SharedMaterialModule]]})},18757:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialTabComponent=void 0;const tslib_1=__webpack_require__2(70655),core_1=__webpack_require__2(5e3),tabs_1=__webpack_require__2(53251),i0=(__webpack_require__2(74202),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(53251)),i4=tslib_1.__importStar(__webpack_require__2(69808)),i5=tslib_1.__importStar(__webpack_require__2(25245)),i6=tslib_1.__importStar(__webpack_require__2(14623)),i7=tslib_1.__importStar(__webpack_require__2(43954)),i8=tslib_1.__importStar(__webpack_require__2(90508)),i9=tslib_1.__importStar(__webpack_require__2(47423)),i10=tslib_1.__importStar(__webpack_require__2(30578)),i11=tslib_1.__importStar(__webpack_require__2(78838)),i12=tslib_1.__importStar(__webpack_require__2(40192)),i13=tslib_1.__importStar(__webpack_require__2(11861));function MaterialTabComponent_mat_tab_1_div_1_ng_template_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",7),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(2,"h3",8),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()),2&rf){const tab_r5=i0.\u0275\u0275nextContext(2).$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(tab_r5.icon),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(tab_r5.name)}}function MaterialTabComponent_mat_tab_1_div_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275template(1,MaterialTabComponent_mat_tab_1_div_1_ng_template_1_Template,4,2,"ng-template",2),i0.\u0275\u0275element(2,"div",6),i0.\u0275\u0275pipe(3,"safeInnerHtml"),i0.\u0275\u0275elementEnd()),2&rf){const tab_r5=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(2),i0.\u0275\u0275property("innerHTML",i0.\u0275\u0275pipeBind1(3,1,tab_r5.data),i0.\u0275\u0275sanitizeHtml)}}function MaterialTabComponent_mat_tab_1_div_2_ng_template_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",7),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(2,"h3",8),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()),2&rf){const tab_r5=i0.\u0275\u0275nextContext(2).$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(tab_r5.icon),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(tab_r5.name)}}function MaterialTabComponent_mat_tab_1_div_2_div_2_mat_grid_tile_3_Template(rf,ctx){if(1&rf){const _r20=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-grid-tile")(1,"mat-list-option",14),i0.\u0275\u0275listener("click",__name(function(){const d_r18=i0.\u0275\u0275restoreView(_r20).$implicit;return i0.\u0275\u0275nextContext(4).onGridClicked(d_r18)},"MaterialTabComponent_mat_tab_1_div_2_div_2_mat_grid_tile_3_Template_mat_list_option_click_1_listener")),i0.\u0275\u0275element(2,"img",15),i0.\u0275\u0275elementStart(3,"h4",16),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"p",16),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd()()()}if(2&rf){const d_r18=ctx.$implicit;i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate("src",d_r18.image,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(d_r18.title),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(d_r18.description)}}function MaterialTabComponent_mat_tab_1_div_2_div_2_div_4_Template(rf,ctx){if(1&rf){const _r22=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",17)(1,"button",18),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r22),i0.\u0275\u0275nextContext(4).onGridLoadNextPage()},"MaterialTabComponent_mat_tab_1_div_2_div_2_div_4_Template_button_click_1_listener")),i0.\u0275\u0275text(2,"Load More ..."),i0.\u0275\u0275elementEnd()()}}function MaterialTabComponent_mat_tab_1_div_2_div_2_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",10)(1,"mat-selection-list",11)(2,"mat-grid-list",12),i0.\u0275\u0275template(3,MaterialTabComponent_mat_tab_1_div_2_div_2_mat_grid_tile_3_Template,7,3,"mat-grid-tile",1),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(4,MaterialTabComponent_mat_tab_1_div_2_div_2_div_4_Template,3,0,"div",13),i0.\u0275\u0275elementEnd()),2&rf){const tab_r5=i0.\u0275\u0275nextContext(2).$implicit,ctx_r14=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("cols",ctx_r14.GS.gridListBreakpoint),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",tab_r5.data),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!ctx_r14.gridPageFinished)}}function MaterialTabComponent_mat_tab_1_div_2_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275template(1,MaterialTabComponent_mat_tab_1_div_2_ng_template_1_Template,4,2,"ng-template",2),i0.\u0275\u0275template(2,MaterialTabComponent_mat_tab_1_div_2_div_2_Template,5,4,"div",9),i0.\u0275\u0275elementEnd()),2&rf){const tab_r5=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275nextContext();const _r3=i0.\u0275\u0275reference(6);i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",tab_r5.data.length>0)("ngIfElse",_r3)}}function MaterialTabComponent_mat_tab_1_div_3_ng_template_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",7),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(2,"h3",8),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()),2&rf){const tab_r5=i0.\u0275\u0275nextContext(2).$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(tab_r5.icon),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(tab_r5.name)}}function MaterialTabComponent_mat_tab_1_div_3_div_2_mat_list_option_2_Template(rf,ctx){if(1&rf){const _r32=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-list-option",14),i0.\u0275\u0275listener("click",__name(function(){const d_r30=i0.\u0275\u0275restoreView(_r32).$implicit;return i0.\u0275\u0275nextContext(4).onListClicked(d_r30)},"MaterialTabComponent_mat_tab_1_div_3_div_2_mat_list_option_2_Template_mat_list_option_click_0_listener")),i0.\u0275\u0275element(1,"img",15),i0.\u0275\u0275elementStart(2,"h4",16),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"p",16),i0.\u0275\u0275text(5),i0.\u0275\u0275elementEnd()()}if(2&rf){const d_r30=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",d_r30.image,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(d_r30.title),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(d_r30.description)}}function MaterialTabComponent_mat_tab_1_div_3_div_2_div_3_Template(rf,ctx){if(1&rf){const _r34=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",17)(1,"button",18),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r34),i0.\u0275\u0275nextContext(4).onListLoadNextPage()},"MaterialTabComponent_mat_tab_1_div_3_div_2_div_3_Template_button_click_1_listener")),i0.\u0275\u0275text(2,"Load More ..."),i0.\u0275\u0275elementEnd()()}}function MaterialTabComponent_mat_tab_1_div_3_div_2_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",10)(1,"mat-selection-list",19),i0.\u0275\u0275template(2,MaterialTabComponent_mat_tab_1_div_3_div_2_mat_list_option_2_Template,6,3,"mat-list-option",20),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(3,MaterialTabComponent_mat_tab_1_div_3_div_2_div_3_Template,3,0,"div",13),i0.\u0275\u0275elementEnd()),2&rf){const tab_r5=i0.\u0275\u0275nextContext(2).$implicit,ctx_r26=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",tab_r5.data),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!ctx_r26.listPageFinished)}}function MaterialTabComponent_mat_tab_1_div_3_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275template(1,MaterialTabComponent_mat_tab_1_div_3_ng_template_1_Template,4,2,"ng-template",2),i0.\u0275\u0275template(2,MaterialTabComponent_mat_tab_1_div_3_div_2_Template,4,3,"div",9),i0.\u0275\u0275elementEnd()),2&rf){const tab_r5=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275nextContext();const _r3=i0.\u0275\u0275reference(6);i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",tab_r5.data.length>0)("ngIfElse",_r3)}}function MaterialTabComponent_mat_tab_1_div_4_ng_template_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",7),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(2,"h3",8),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()),2&rf){const tab_r5=i0.\u0275\u0275nextContext(2).$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(tab_r5.icon),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(tab_r5.name)}}function MaterialTabComponent_mat_tab_1_div_4_Template(rf,ctx){if(1&rf){const _r40=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275template(1,MaterialTabComponent_mat_tab_1_div_4_ng_template_1_Template,4,2,"ng-template",2),i0.\u0275\u0275elementStart(2,"div",10)(3,"app-material-table",21),i0.\u0275\u0275listener("serverSideFilter",__name(function($event){return i0.\u0275\u0275restoreView(_r40),i0.\u0275\u0275nextContext(2).onServerSideFilter($event)},"MaterialTabComponent_mat_tab_1_div_4_Template_app_material_table_serverSideFilter_3_listener"))("buttonClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r40),i0.\u0275\u0275nextContext(2).onButtonClicked($event)},"MaterialTabComponent_mat_tab_1_div_4_Template_app_material_table_buttonClicked_3_listener"))("chipClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r40),i0.\u0275\u0275nextContext(2).onChipClicked($event)},"MaterialTabComponent_mat_tab_1_div_4_Template_app_material_table_chipClicked_3_listener"))("rowClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r40),i0.\u0275\u0275nextContext(2).onTableRowClicked($event)},"MaterialTabComponent_mat_tab_1_div_4_Template_app_material_table_rowClicked_3_listener"))("paginatorClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r40),i0.\u0275\u0275nextContext(2).onPaginatorClicked($event)},"MaterialTabComponent_mat_tab_1_div_4_Template_app_material_table_paginatorClicked_3_listener"))("serverSideOrder",__name(function($event){return i0.\u0275\u0275restoreView(_r40),i0.\u0275\u0275nextContext(2).onServerSideOrder($event)},"MaterialTabComponent_mat_tab_1_div_4_Template_app_material_table_serverSideOrder_3_listener")),i0.\u0275\u0275elementEnd()()()}if(2&rf){const tab_r5=i0.\u0275\u0275nextContext().$implicit,ctx_r9=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(3),i0.\u0275\u0275property("tableDataColumn",tab_r5.data.column)("tableDataRow",tab_r5.data.row)("count",ctx_r9.count)("serverSide",ctx_r9.serverSide)}}function MaterialTabComponent_mat_tab_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-tab"),i0.\u0275\u0275template(1,MaterialTabComponent_mat_tab_1_div_1_Template,4,3,"div",5),i0.\u0275\u0275template(2,MaterialTabComponent_mat_tab_1_div_2_Template,3,2,"div",5),i0.\u0275\u0275template(3,MaterialTabComponent_mat_tab_1_div_3_Template,3,2,"div",5),i0.\u0275\u0275template(4,MaterialTabComponent_mat_tab_1_div_4_Template,4,4,"div",5),i0.\u0275\u0275elementEnd()),2&rf){const tab_r5=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","html"===tab_r5.type),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","grid"===tab_r5.type),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","list"===tab_r5.type),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","table"===tab_r5.type)}}function MaterialTabComponent_ng_template_3_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",7),i0.\u0275\u0275text(1,"comment"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(2,"h3",8),i0.\u0275\u0275text(3,"Komentar"),i0.\u0275\u0275elementEnd())}function MaterialTabComponent_ng_template_4_Template(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",10),i0.\u0275\u0275element(1,"app-discussion"),i0.\u0275\u0275elementEnd())}function MaterialTabComponent_ng_template_5_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"app-no-data",10)}__name(MaterialTabComponent_mat_tab_1_div_1_ng_template_1_Template,"MaterialTabComponent_mat_tab_1_div_1_ng_template_1_Template"),__name(MaterialTabComponent_mat_tab_1_div_1_Template,"MaterialTabComponent_mat_tab_1_div_1_Template"),__name(MaterialTabComponent_mat_tab_1_div_2_ng_template_1_Template,"MaterialTabComponent_mat_tab_1_div_2_ng_template_1_Template"),__name(MaterialTabComponent_mat_tab_1_div_2_div_2_mat_grid_tile_3_Template,"MaterialTabComponent_mat_tab_1_div_2_div_2_mat_grid_tile_3_Template"),__name(MaterialTabComponent_mat_tab_1_div_2_div_2_div_4_Template,"MaterialTabComponent_mat_tab_1_div_2_div_2_div_4_Template"),__name(MaterialTabComponent_mat_tab_1_div_2_div_2_Template,"MaterialTabComponent_mat_tab_1_div_2_div_2_Template"),__name(MaterialTabComponent_mat_tab_1_div_2_Template,"MaterialTabComponent_mat_tab_1_div_2_Template"),__name(MaterialTabComponent_mat_tab_1_div_3_ng_template_1_Template,"MaterialTabComponent_mat_tab_1_div_3_ng_template_1_Template"),__name(MaterialTabComponent_mat_tab_1_div_3_div_2_mat_list_option_2_Template,"MaterialTabComponent_mat_tab_1_div_3_div_2_mat_list_option_2_Template"),__name(MaterialTabComponent_mat_tab_1_div_3_div_2_div_3_Template,"MaterialTabComponent_mat_tab_1_div_3_div_2_div_3_Template"),__name(MaterialTabComponent_mat_tab_1_div_3_div_2_Template,"MaterialTabComponent_mat_tab_1_div_3_div_2_Template"),__name(MaterialTabComponent_mat_tab_1_div_3_Template,"MaterialTabComponent_mat_tab_1_div_3_Template"),__name(MaterialTabComponent_mat_tab_1_div_4_ng_template_1_Template,"MaterialTabComponent_mat_tab_1_div_4_ng_template_1_Template"),__name(MaterialTabComponent_mat_tab_1_div_4_Template,"MaterialTabComponent_mat_tab_1_div_4_Template"),__name(MaterialTabComponent_mat_tab_1_Template,"MaterialTabComponent_mat_tab_1_Template"),__name(MaterialTabComponent_ng_template_3_Template,"MaterialTabComponent_ng_template_3_Template"),__name(MaterialTabComponent_ng_template_4_Template,"MaterialTabComponent_ng_template_4_Template"),__name(MaterialTabComponent_ng_template_5_Template,"MaterialTabComponent_ng_template_5_Template");class MaterialTabComponent{constructor(activatedRoute,gs){this.activatedRoute=activatedRoute,this.gs=gs,this.count=0,this.serverSide=!1,this.serverSideFilter=new core_1.EventEmitter,this.serverSideOrder=new core_1.EventEmitter,this.SWIPE_ACTION={LEFT:"swipeleft",RIGHT:"swiperight"},this.selectedIndexTab=0,this.totalTabsCount=2,this.tabData=[],this.gridPageFinished=!1,this.listPageFinished=!1,this.chipClicked=new core_1.EventEmitter,this.buttonClicked=new core_1.EventEmitter,this.gridClicked=new core_1.EventEmitter,this.listClicked=new core_1.EventEmitter,this.gridLoadNextPage=new core_1.EventEmitter,this.listLoadNextPage=new core_1.EventEmitter,this.tableRowClicked=new core_1.EventEmitter,this.paginatorClicked=new core_1.EventEmitter,this.subsQueryParam=null,this.gs.isBrowser}get GS(){return this.gs}ngOnInit(){this.gs.isBrowser&&this.watchUrlRoute()}ngAfterViewInit(){this.totalTabsCount=this.tabData.length}ngOnDestroy(){var _a;null===(_a=this.subsQueryParam)||void 0===_a||_a.unsubscribe()}get backgroundColor(){return this.gs.isDarkMode?"gelap":"terang"}watchUrlRoute(){this.subsQueryParam=this.activatedRoute.queryParams.subscribe({next:qp=>{Number(qp.comment||"")>0&&this.openCommentTab()}})}openCommentTab(){this.tabData.length>0&&(this.selectedIndexTab=this.tabData.length)}swipe(eType){eType===this.SWIPE_ACTION.RIGHT&&this.selectedIndexTab>0?this.selectedIndexTab--:eType===this.SWIPE_ACTION.LEFT&&this.selectedIndexTab{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialTabModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),shared_material_module_1=__webpack_require__2(20210),material_table_module_1=__webpack_require__2(617),discussion_module_1=__webpack_require__2(78764),no_data_module_1=__webpack_require__2(12438),custom_pipe_module_1=__webpack_require__2(67355),i0=tslib_1.__importStar(__webpack_require__2(5e3));class MaterialTabModule{}__name(MaterialTabModule,"MaterialTabModule"),exports2.MaterialTabModule=MaterialTabModule,MaterialTabModule.\u0275fac=__name(function(t){return new(t||MaterialTabModule)},"MaterialTabModule_Factory"),MaterialTabModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:MaterialTabModule}),MaterialTabModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,shared_material_module_1.SharedMaterialModule,material_table_module_1.MaterialTableModule,discussion_module_1.DiscussionModule,no_data_module_1.NoDataModule,custom_pipe_module_1.CustomPipeModule]]})},30578:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialTableComponent=void 0;const tslib_1=__webpack_require__2(70655),core_1=__webpack_require__2(5e3),paginator_1=(__webpack_require__2(74202),__webpack_require__2(86087)),sort_1=__webpack_require__2(84847),table_1=__webpack_require__2(32075),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(67322)),i4=tslib_1.__importStar(__webpack_require__2(77531)),i5=tslib_1.__importStar(__webpack_require__2(93075)),i6=tslib_1.__importStar(__webpack_require__2(25245)),i7=tslib_1.__importStar(__webpack_require__2(32075)),i8=tslib_1.__importStar(__webpack_require__2(84847)),i9=tslib_1.__importStar(__webpack_require__2(69808)),i10=tslib_1.__importStar(__webpack_require__2(14623)),i11=tslib_1.__importStar(__webpack_require__2(87238)),i12=tslib_1.__importStar(__webpack_require__2(24028)),i13=tslib_1.__importStar(__webpack_require__2(47423)),i14=tslib_1.__importStar(__webpack_require__2(90508)),i15=tslib_1.__importStar(__webpack_require__2(86087)),i16=tslib_1.__importStar(__webpack_require__2(86766));function MaterialTableComponent_ng_container_10_th_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"th",14)(1,"h3",15),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd()()),2&rf){const tdc_r5=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275property("disabled","NAMA BERKAS"!==tdc_r5.toUpperCase()&&"NAMA LAMPIRAN"!==tdc_r5.toUpperCase()&&"TANGGAL"!==tdc_r5.toUpperCase()&&"NAMA FANSUB"!==tdc_r5.toUpperCase()&&"JUDUL DORAMA"!==tdc_r5.toUpperCase()&&"TOPIK"!==tdc_r5.toUpperCase()&&"JUDUL ANIME"!==tdc_r5.toUpperCase()&&"ANIME"!==tdc_r5.toUpperCase()&&"DORAMA"!==tdc_r5.toUpperCase()&&"EXT"!==tdc_r5.toUpperCase()&&"JENIS"!==tdc_r5.toUpperCase()&&"DEADLINE"!==tdc_r5.toUpperCase()&&"JUDUL"!==tdc_r5.toUpperCase()&&"KONTEN"!==tdc_r5.toUpperCase()&&"SIZE"!==tdc_r5.toUpperCase()&&"ID"!==tdc_r5.toUpperCase()&&"ALASAN"!==tdc_r5.toUpperCase()&&"NAMA API"!==tdc_r5.toUpperCase()&&"IP DOMAIN"!==tdc_r5.toUpperCase()&&"MIME"!==tdc_r5.toUpperCase()&&"API KEY"!==tdc_r5.toUpperCase()&&"USERNAME"!==tdc_r5.toUpperCase()&&"EMAIL"!==tdc_r5.toUpperCase()&&"ROLE"!==tdc_r5.toUpperCase()&&"KETERANGAN"!==tdc_r5.toUpperCase()),i0.\u0275\u0275advance(1),i0.\u0275\u0275styleProp("color","#ff4081"),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(tdc_r5.toUpperCase())}}function MaterialTableComponent_ng_container_10_td_2_div_1_img_2_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"img",25),2&rf){const row_r9=i0.\u0275\u0275nextContext(2).$implicit;i0.\u0275\u0275property("src",row_r9.foto,i0.\u0275\u0275sanitizeUrl)}}function MaterialTableComponent_ng_container_10_td_2_div_1_img_3_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"img",25),2&rf){const row_r9=i0.\u0275\u0275nextContext(2).$implicit;i0.\u0275\u0275property("src",row_r9.foto_korban,i0.\u0275\u0275sanitizeUrl)}}function MaterialTableComponent_ng_container_10_td_2_div_1_img_4_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"img",25),2&rf){const row_r9=i0.\u0275\u0275nextContext(2).$implicit;i0.\u0275\u0275property("src",row_r9.foto_pelaku,i0.\u0275\u0275sanitizeUrl)}}function MaterialTableComponent_ng_container_10_td_2_div_1_img_5_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"img",25),2&rf){const row_r9=i0.\u0275\u0275nextContext(2).$implicit;i0.\u0275\u0275property("src",row_r9.foto_fansub,i0.\u0275\u0275sanitizeUrl)}}function MaterialTableComponent_ng_container_10_td_2_div_1_img_6_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"img",25),2&rf){const row_r9=i0.\u0275\u0275nextContext(2).$implicit;i0.\u0275\u0275property("src",row_r9.foto_anggota,i0.\u0275\u0275sanitizeUrl)}}function MaterialTableComponent_ng_container_10_td_2_div_1_img_7_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"img",26),2&rf){const row_r9=i0.\u0275\u0275nextContext(2).$implicit,tdc_r5=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275property("src",row_r9[tdc_r5],i0.\u0275\u0275sanitizeUrl)}}function MaterialTableComponent_ng_container_10_td_2_div_1_img_8_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"img",27),2&rf){const row_r9=i0.\u0275\u0275nextContext(2).$implicit,tdc_r5=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275property("src",row_r9[tdc_r5],i0.\u0275\u0275sanitizeUrl)}}function MaterialTableComponent_ng_container_10_td_2_div_1_img_9_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"img",28),2&rf){const row_r9=i0.\u0275\u0275nextContext(2).$implicit,tdc_r5=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275property("src",row_r9[tdc_r5],i0.\u0275\u0275sanitizeUrl)}}function MaterialTableComponent_ng_container_10_td_2_div_1_span_10_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span",29),i0.\u0275\u0275pipe(1,"date"),i0.\u0275\u0275text(2),i0.\u0275\u0275pipe(3,"dateAgo"),i0.\u0275\u0275elementEnd()),2&rf){const row_r9=i0.\u0275\u0275nextContext(2).$implicit,tdc_r5=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275propertyInterpolate("matTooltip",i0.\u0275\u0275pipeBind2(1,2,row_r9[tdc_r5],"d MMMM y, hh:mm:ss a z")),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind1(3,5,row_r9[tdc_r5]))}}function MaterialTableComponent_ng_container_10_td_2_div_1_span_11_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1),i0.\u0275\u0275pipe(2,"date"),i0.\u0275\u0275elementEnd()),2&rf){const row_r9=i0.\u0275\u0275nextContext(2).$implicit,tdc_r5=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind2(2,1,row_r9[tdc_r5],"d/M/yy, HH:mm:ss"))}}function MaterialTableComponent_ng_container_10_td_2_div_1_span_12_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const row_r9=i0.\u0275\u0275nextContext(2).$implicit,tdc_r5=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("",row_r9[tdc_r5]||0," Anime")}}function MaterialTableComponent_ng_container_10_td_2_div_1_span_13_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const row_r9=i0.\u0275\u0275nextContext(2).$implicit,tdc_r5=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("",row_r9[tdc_r5]||0," Dorama")}}function MaterialTableComponent_ng_container_10_td_2_div_1_span_14_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const row_r9=i0.\u0275\u0275nextContext(2).$implicit,tdc_r5=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1("",row_r9[tdc_r5],"x Dilihat")}}function MaterialTableComponent_ng_container_10_td_2_div_1_span_15_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"span"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const row_r9=i0.\u0275\u0275nextContext(2).$implicit,tdc_r5=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",row_r9[tdc_r5]," ")}}function MaterialTableComponent_ng_container_10_td_2_div_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div")(1,"h3",15),i0.\u0275\u0275template(2,MaterialTableComponent_ng_container_10_td_2_div_1_img_2_Template,1,1,"img",20),i0.\u0275\u0275template(3,MaterialTableComponent_ng_container_10_td_2_div_1_img_3_Template,1,1,"img",20),i0.\u0275\u0275template(4,MaterialTableComponent_ng_container_10_td_2_div_1_img_4_Template,1,1,"img",20),i0.\u0275\u0275template(5,MaterialTableComponent_ng_container_10_td_2_div_1_img_5_Template,1,1,"img",20),i0.\u0275\u0275template(6,MaterialTableComponent_ng_container_10_td_2_div_1_img_6_Template,1,1,"img",20),i0.\u0275\u0275template(7,MaterialTableComponent_ng_container_10_td_2_div_1_img_7_Template,1,1,"img",21),i0.\u0275\u0275template(8,MaterialTableComponent_ng_container_10_td_2_div_1_img_8_Template,1,1,"img",22),i0.\u0275\u0275template(9,MaterialTableComponent_ng_container_10_td_2_div_1_img_9_Template,1,1,"img",23),i0.\u0275\u0275template(10,MaterialTableComponent_ng_container_10_td_2_div_1_span_10_Template,4,7,"span",24),i0.\u0275\u0275template(11,MaterialTableComponent_ng_container_10_td_2_div_1_span_11_Template,3,4,"span",19),i0.\u0275\u0275template(12,MaterialTableComponent_ng_container_10_td_2_div_1_span_12_Template,2,1,"span",19),i0.\u0275\u0275template(13,MaterialTableComponent_ng_container_10_td_2_div_1_span_13_Template,2,1,"span",19),i0.\u0275\u0275template(14,MaterialTableComponent_ng_container_10_td_2_div_1_span_14_Template,2,1,"span",19),i0.\u0275\u0275template(15,MaterialTableComponent_ng_container_10_td_2_div_1_span_15_Template,2,1,"span",19),i0.\u0275\u0275elementEnd()()),2&rf){const tdc_r5=i0.\u0275\u0275nextContext(2).$implicit,ctx_r10=i0.\u0275\u0275nextContext();i0.\u0275\u0275classMap("Anggota"===tdc_r5||"Pelaku"===tdc_r5||"Korban"===tdc_r5||"Fansub"===tdc_r5||"Tanggal"===tdc_r5||"Pemilik"===tdc_r5||"Penulis"===tdc_r5?"fixed-single":""),i0.\u0275\u0275advance(1),i0.\u0275\u0275styleProp("color","Pemilik"===tdc_r5||"Penulis"===tdc_r5||"Status"===tdc_r5||"Korban"===tdc_r5||"Fansub"===tdc_r5?ctx_r10.GS.isDarkMode?"#ffc107":"#0d6efd":"Tanggal"===tdc_r5||"Pelaku"===tdc_r5||"Judul"===tdc_r5||"Anggota"===tdc_r5?"#28a745":"Jenis"===tdc_r5||"Proyek"===tdc_r5?"#7289da":ctx_r10.GS.isDarkMode?"#acacac":"#000000"),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","Pemilik"===tdc_r5||"Penulis"===tdc_r5),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","Korban"===tdc_r5),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","Pelaku"===tdc_r5),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","Fansub"===tdc_r5),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","Anggota"===tdc_r5),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","Logo"===tdc_r5),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","Image"===tdc_r5),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","Poster"===tdc_r5),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","Tanggal"===tdc_r5),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","Deadline"===tdc_r5),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","Anime"===tdc_r5),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","Dorama"===tdc_r5),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","Kunjungan"===tdc_r5),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf","Poster"!==tdc_r5&&"Logo"!==tdc_r5&&"Image"!==tdc_r5&&"Tanggal"!==tdc_r5&&"Deadline"!==tdc_r5&&"Anime"!==tdc_r5&&"Dorama"!==tdc_r5&&"Kunjungan"!==tdc_r5)}}function MaterialTableComponent_ng_container_10_td_2_div_2_Template(rf,ctx){if(1&rf){const _r52=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",30)(1,"app-material-chip",31),i0.\u0275\u0275listener("chipClicked",__name(function($event){return i0.\u0275\u0275restoreView(_r52),i0.\u0275\u0275nextContext(3).onChipClicked($event)},"MaterialTableComponent_ng_container_10_td_2_div_2_Template_app_material_chip_chipClicked_1_listener")),i0.\u0275\u0275elementEnd()()}if(2&rf){const row_r9=i0.\u0275\u0275nextContext().$implicit,tdc_r5=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("chipData",row_r9[tdc_r5])}}function MaterialTableComponent_ng_container_10_td_2_div_3_button_1_mat_icon_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon"),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const rt_r56=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(rt_r56.icon)}}function MaterialTableComponent_ng_container_10_td_2_div_3_button_1_img_2_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"img",35),2&rf){const rt_r56=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275propertyInterpolate("src",rt_r56.image,i0.\u0275\u0275sanitizeUrl)}}function MaterialTableComponent_ng_container_10_td_2_div_3_button_1_Template(rf,ctx){if(1&rf){const _r62=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",33),i0.\u0275\u0275listener("click",__name(function($event){const rt_r56=i0.\u0275\u0275restoreView(_r62).$implicit,ctx_r61=i0.\u0275\u0275nextContext(4);return $event.stopPropagation(),ctx_r61.onButtonClicked(rt_r56)},"MaterialTableComponent_ng_container_10_td_2_div_3_button_1_Template_button_click_0_listener")),i0.\u0275\u0275template(1,MaterialTableComponent_ng_container_10_td_2_div_3_button_1_mat_icon_1_Template,2,1,"mat-icon",19),i0.\u0275\u0275template(2,MaterialTableComponent_ng_container_10_td_2_div_3_button_1_img_2_Template,1,1,"img",34),i0.\u0275\u0275elementEnd()}if(2&rf){const rt_r56=ctx.$implicit;i0.\u0275\u0275propertyInterpolate("matTooltip",rt_r56.name),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",rt_r56.icon),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",rt_r56.image)}}function MaterialTableComponent_ng_container_10_td_2_div_3_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275template(1,MaterialTableComponent_ng_container_10_td_2_div_3_button_1_Template,3,3,"button",32),i0.\u0275\u0275elementEnd()),2&rf){const row_r9=i0.\u0275\u0275nextContext().$implicit,tdc_r5=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",row_r9[tdc_r5])}}function MaterialTableComponent_ng_container_10_td_2_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"td",16),i0.\u0275\u0275template(1,MaterialTableComponent_ng_container_10_td_2_div_1_Template,16,19,"div",17),i0.\u0275\u0275template(2,MaterialTableComponent_ng_container_10_td_2_div_2_Template,2,1,"div",18),i0.\u0275\u0275template(3,MaterialTableComponent_ng_container_10_td_2_div_3_Template,2,1,"div",19),i0.\u0275\u0275elementEnd()),2&rf){const row_r9=ctx.$implicit,tdc_r5=i0.\u0275\u0275nextContext().$implicit,ctx_r7=i0.\u0275\u0275nextContext();i0.\u0275\u0275styleProp("background-color",row_r9.pending||row_r9.private||row_r9.banned?ctx_r7.GS.isDarkMode?"#2f4f4f80":"#2f4f4f20":""),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!1===ctx_r7.checkIsArray(row_r9[tdc_r5])),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!0===ctx_r7.checkIsArray(row_r9[tdc_r5])&&row_r9[tdc_r5].length>0&&"chip"===row_r9[tdc_r5][0].type),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!0===ctx_r7.checkIsArray(row_r9[tdc_r5])&&row_r9[tdc_r5].length>0&&"button"===row_r9[tdc_r5][0].type)}}function MaterialTableComponent_ng_container_10_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementContainerStart(0,11),i0.\u0275\u0275template(1,MaterialTableComponent_ng_container_10_th_1_Template,3,4,"th",12),i0.\u0275\u0275template(2,MaterialTableComponent_ng_container_10_td_2_Template,4,5,"td",13),i0.\u0275\u0275elementContainerEnd()),2&rf){const tdc_r5=ctx.$implicit;i0.\u0275\u0275propertyInterpolate("matColumnDef",tdc_r5)}}function MaterialTableComponent_tr_11_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"tr",36)}function MaterialTableComponent_tr_12_Template(rf,ctx){if(1&rf){const _r68=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"tr",37),i0.\u0275\u0275listener("click",__name(function(){const row_r66=i0.\u0275\u0275restoreView(_r68).$implicit;return i0.\u0275\u0275nextContext().onRowClicked(row_r66)},"MaterialTableComponent_tr_12_Template_tr_click_0_listener")),i0.\u0275\u0275elementEnd()}if(2&rf){const ctx_r3=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("matRippleDisabled",ctx_r3.GS.isDesktop)}}function MaterialTableComponent_tr_13_br_6_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"br")}function MaterialTableComponent_tr_13_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"tr",38)(1,"td",39)(2,"div",40)(3,"div",41)(4,"h3",15),i0.\u0275\u0275text(5," Tidak Ada Data "),i0.\u0275\u0275template(6,MaterialTableComponent_tr_13_br_6_Template,1,0,"br",19),i0.\u0275\u0275text(7," \xaf\\_(\u30c4)_/\xaf "),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(8,"h3",15),i0.\u0275\u0275text(9),i0.\u0275\u0275elementEnd()()()()()),2&rf){const ctx_r4=i0.\u0275\u0275nextContext(),_r0=i0.\u0275\u0275reference(4);i0.\u0275\u0275property("matRippleDisabled",ctx_r4.GS.isDesktop),i0.\u0275\u0275advance(1),i0.\u0275\u0275attribute("colspan",ctx_r4.tableDataColumn.length),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngIf",!ctx_r4.GS.isDesktop),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(_r0.value?'"'+_r0.value+'"':"")}}__name(MaterialTableComponent_ng_container_10_th_1_Template,"MaterialTableComponent_ng_container_10_th_1_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_1_img_2_Template,"MaterialTableComponent_ng_container_10_td_2_div_1_img_2_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_1_img_3_Template,"MaterialTableComponent_ng_container_10_td_2_div_1_img_3_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_1_img_4_Template,"MaterialTableComponent_ng_container_10_td_2_div_1_img_4_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_1_img_5_Template,"MaterialTableComponent_ng_container_10_td_2_div_1_img_5_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_1_img_6_Template,"MaterialTableComponent_ng_container_10_td_2_div_1_img_6_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_1_img_7_Template,"MaterialTableComponent_ng_container_10_td_2_div_1_img_7_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_1_img_8_Template,"MaterialTableComponent_ng_container_10_td_2_div_1_img_8_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_1_img_9_Template,"MaterialTableComponent_ng_container_10_td_2_div_1_img_9_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_1_span_10_Template,"MaterialTableComponent_ng_container_10_td_2_div_1_span_10_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_1_span_11_Template,"MaterialTableComponent_ng_container_10_td_2_div_1_span_11_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_1_span_12_Template,"MaterialTableComponent_ng_container_10_td_2_div_1_span_12_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_1_span_13_Template,"MaterialTableComponent_ng_container_10_td_2_div_1_span_13_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_1_span_14_Template,"MaterialTableComponent_ng_container_10_td_2_div_1_span_14_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_1_span_15_Template,"MaterialTableComponent_ng_container_10_td_2_div_1_span_15_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_1_Template,"MaterialTableComponent_ng_container_10_td_2_div_1_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_2_Template,"MaterialTableComponent_ng_container_10_td_2_div_2_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_3_button_1_mat_icon_1_Template,"MaterialTableComponent_ng_container_10_td_2_div_3_button_1_mat_icon_1_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_3_button_1_img_2_Template,"MaterialTableComponent_ng_container_10_td_2_div_3_button_1_img_2_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_3_button_1_Template,"MaterialTableComponent_ng_container_10_td_2_div_3_button_1_Template"),__name(MaterialTableComponent_ng_container_10_td_2_div_3_Template,"MaterialTableComponent_ng_container_10_td_2_div_3_Template"),__name(MaterialTableComponent_ng_container_10_td_2_Template,"MaterialTableComponent_ng_container_10_td_2_Template"),__name(MaterialTableComponent_ng_container_10_Template,"MaterialTableComponent_ng_container_10_Template"),__name(MaterialTableComponent_tr_11_Template,"MaterialTableComponent_tr_11_Template"),__name(MaterialTableComponent_tr_12_Template,"MaterialTableComponent_tr_12_Template"),__name(MaterialTableComponent_tr_13_br_6_Template,"MaterialTableComponent_tr_13_br_6_Template"),__name(MaterialTableComponent_tr_13_Template,"MaterialTableComponent_tr_13_Template");class MaterialTableComponent{constructor(activatedRoute,router,gs){this.activatedRoute=activatedRoute,this.router=router,this.gs=gs,this.count=0,this.serverSide=!1,this.serverSideFilter=new core_1.EventEmitter,this.serverSideOrder=new core_1.EventEmitter,this.tableDataRow=[],this.tableDataColumn=[],this.chipClicked=new core_1.EventEmitter,this.buttonClicked=new core_1.EventEmitter,this.rowClicked=new core_1.EventEmitter,this.paginatorClicked=new core_1.EventEmitter,this.pageSizeOptions=[10,25,50,75,100],this.urlPath=null,this.searchQuery="",this.subsQueryParam=null,this.timedOut=null,this.gs.isBrowser}get GS(){return this.gs}checkIsArray(data){return Array.isArray(data)}ngOnInit(){this.dataSource=new table_1.MatTableDataSource(this.tableDataRow),this.gs.isBrowser&&(this.urlPath=this.router.url.split("?")[0],this.serverSide||(this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort))}ngOnChanges(){this.dataSource&&(this.dataSource.data=this.tableDataRow,this.serverSide||(this.paginator._changePageSize(this.pageSizeOptions[0]),this.paginator.firstPage()))}ngOnDestroy(){var _a,_b,_c;null===(_b=null===(_a=this.sort)||void 0===_a?void 0:_a.sortChange)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsQueryParam)||void 0===_c||_c.unsubscribe(),this.timedOut&&(clearTimeout(this.timedOut),this.timedOut=null)}ngAfterViewInit(){this.sort.sortChange.subscribe({next:data=>{this.paginator.pageIndex=0,this.onServerSideOrder(data)}}),this.timedOut=setTimeout(()=>{this.searchQuery=this.activatedRoute.snapshot.queryParamMap.get("q")||"",this.search(),this.subsQueryParam=this.activatedRoute.queryParams.subscribe({next:qp=>{this.searchQuery=qp.q||"",this.search()}})},0)}search(){this.serverSide?this.onServerSideFilter(this.searchQuery):(this.dataSource.filter=this.searchQuery,this.dataSource.paginator&&this.dataSource.paginator.firstPage())}applyFilter(event){this.searchQuery=event.target.value.trim().toLowerCase(),this.router.navigate([this.urlPath],{queryParams:{...this.activatedRoute.snapshot.queryParams,q:this.searchQuery}})}onServerSideOrder(data){data.direction?"NAMA BERKAS"===data.active.toUpperCase()||"NAMA LAMPIRAN"===data.active.toUpperCase()||"NAMA API"===data.active.toUpperCase()?data.active="name":"TANGGAL"===data.active.toUpperCase()?data.active="created_at":"TOPIK"===data.active.toUpperCase()||"JUDUL"===data.active.toUpperCase()?data.active="title":"KONTEN"===data.active.toUpperCase()?data.active="content":"DEADLINE"===data.active.toUpperCase()?data.active="deadline":"ID"===data.active.toUpperCase()?data.active="id":"ALASAN"===data.active.toUpperCase()?data.active="reason":"IP DOMAIN"===data.active.toUpperCase()?data.active="ip_domain":"API KEY"===data.active.toUpperCase()?data.active="api_key":"USERNAME"===data.active.toUpperCase()?data.active="username":"EMAIL"===data.active.toUpperCase()?data.active="email":"ROLE"===data.active.toUpperCase()?data.active="role":"KETERANGAN"===data.active.toUpperCase()?data.active="keterangan":"EXT"===data.active.toUpperCase()?data.active="ext":"SIZE"===data.active.toUpperCase()?data.active="size":"MIME"===data.active.toUpperCase()?data.active="mime":(data.active="",data.direction=""):data.active="",this.serverSideOrder.emit({q:this.searchQuery,...data})}onServerSideFilter(data){this.serverSideFilter.emit(data),this.paginator.firstPage()}onPaginatorClicked(data){this.paginatorClicked.emit(data)}onRowClicked(data){this.rowClicked.emit(data)}onChipClicked(data){this.chipClicked.emit(data)}onButtonClicked(data){this.buttonClicked.emit(data)}}__name(MaterialTableComponent,"MaterialTableComponent"),exports2.MaterialTableComponent=MaterialTableComponent,MaterialTableComponent.\u0275fac=__name(function(t){return new(t||MaterialTableComponent)(i0.\u0275\u0275directiveInject(i1.ActivatedRoute),i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.GlobalService))},"MaterialTableComponent_Factory"),MaterialTableComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:MaterialTableComponent,selectors:[["app-material-table"]],viewQuery:__name(function(rf,ctx){if(1&rf&&(i0.\u0275\u0275viewQuery(paginator_1.MatPaginator,7),i0.\u0275\u0275viewQuery(sort_1.MatSort,7)),2&rf){let _t;i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.paginator=_t.first),i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.sort=_t.first)}},"MaterialTableComponent_Query"),inputs:{count:"count",serverSide:"serverSide",tableDataRow:"tableDataRow",tableDataColumn:"tableDataColumn"},outputs:{serverSideFilter:"serverSideFilter",serverSideOrder:"serverSideOrder",chipClicked:"chipClicked",buttonClicked:"buttonClicked",rowClicked:"rowClicked",paginatorClicked:"paginatorClicked"},features:[i0.\u0275\u0275NgOnChangesFeature],decls:15,vars:10,consts:[["hintLabel","Anime / Fansub / Uploader / etc.",1,"px-3","mb-3",3,"color"],["matInput","","maxlength","200","placeholder","Ex. [Fansub] Judul - 00 [BD 4K x265 FLAC][CRC32]",3,"ngModel","keyup.enter","ngModelChange"],["input",""],["matSuffix",""],["align","end"],["mat-table","","matSort","",1,"bg-transparent",2,"overflow-wrap","anywhere",3,"dataSource"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","matRipple","",3,"matRippleDisabled","click",4,"matRowDef","matRowDefColumns"],["class","mat-row","matRipple","",3,"matRippleDisabled",4,"matNoDataRow"],["showFirstLastButtons","",1,"bg-transparent",3,"color","pageSizeOptions","length","page"],[3,"matColumnDef"],["mat-header-cell","","class","px-3","mat-sort-header","",3,"disabled",4,"matHeaderCellDef"],["mat-cell","","class","px-3","style","cursor: pointer;",3,"background-color",4,"matCellDef"],["mat-header-cell","","mat-sort-header","",1,"px-3",3,"disabled"],[1,"m-0"],["mat-cell","",1,"px-3",2,"cursor","pointer"],[3,"class",4,"ngIf"],["class","p-1",4,"ngIf"],[4,"ngIf"],["matListAvatar","","style","width: 32px; height: 32px; object-fit: cover; border-radius: 0;","class","me-1",3,"src",4,"ngIf"],["matListAvatar","","style","width: 64px; height: 64px; object-fit: cover; border-radius: 0;",3,"src",4,"ngIf"],["matListAvatar","","style","width: 64px; height: 48px; object-fit: cover; border-radius: 0;",3,"src",4,"ngIf"],["matListAvatar","","style","width: 64px; height: 100%; object-fit: cover; border-radius: 0;",3,"src",4,"ngIf"],[3,"matTooltip",4,"ngIf"],["matListAvatar","",1,"me-1",2,"width","32px","height","32px","object-fit","cover","border-radius","0",3,"src"],["matListAvatar","",2,"width","64px","height","64px","object-fit","cover","border-radius","0",3,"src"],["matListAvatar","",2,"width","64px","height","48px","object-fit","cover","border-radius","0",3,"src"],["matListAvatar","",2,"width","64px","height","100%","object-fit","cover","border-radius","0",3,"src"],[3,"matTooltip"],[1,"p-1"],[3,"chipData","chipClicked"],["mat-icon-button","","color","primary",3,"matTooltip","click",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary",3,"matTooltip","click"],["width","24px",3,"src",4,"ngIf"],["width","24px",3,"src"],["mat-header-row",""],["mat-row","","matRipple","",3,"matRippleDisabled","click"],["matRipple","",1,"mat-row",3,"matRippleDisabled"],[1,"mat-cell","text-center","align-items-center","p-0",2,"background-image","url('/assets/img/404/no-data.png')","background-size","contain","background-position","center","background-repeat","no-repeat","height","256px"],[1,"row","align-items-center","h-100"],[1,"col-8","mx-auto","text-light","text-center","rounded","py-3",2,"background-color","rgba(128, 128, 128, 0.875)"]],template:__name(function(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-form-field",0)(1,"mat-label"),i0.\u0275\u0275text(2,"Filter Dan Pencarian"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"input",1,2),i0.\u0275\u0275listener("keyup.enter",__name(function($event){return ctx.applyFilter($event)},"MaterialTableComponent_Template_input_keyup_enter_3_listener"))("ngModelChange",__name(function($event){return ctx.searchQuery=$event},"MaterialTableComponent_Template_input_ngModelChange_3_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"mat-icon",3),i0.\u0275\u0275text(6,"search"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"mat-hint",4),i0.\u0275\u0275text(8),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(9,"table",5),i0.\u0275\u0275template(10,MaterialTableComponent_ng_container_10_Template,3,1,"ng-container",6),i0.\u0275\u0275template(11,MaterialTableComponent_tr_11_Template,1,0,"tr",7),i0.\u0275\u0275template(12,MaterialTableComponent_tr_12_Template,1,1,"tr",8),i0.\u0275\u0275template(13,MaterialTableComponent_tr_13_Template,10,4,"tr",9),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(14,"mat-paginator",10),i0.\u0275\u0275listener("page",__name(function($event){return ctx.onPaginatorClicked($event)},"MaterialTableComponent_Template_mat_paginator_page_14_listener")),i0.\u0275\u0275elementEnd()),2&rf){const _r0=i0.\u0275\u0275reference(4);i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngModel",ctx.searchQuery),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1("",(null==_r0.value?null:_r0.value.length)||0," / 200 Huruf"),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("dataSource",ctx.dataSource),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",ctx.tableDataColumn),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matHeaderRowDef",ctx.tableDataColumn),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("matRowDefColumns",ctx.tableDataColumn),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("color","accent")("pageSizeOptions",ctx.pageSizeOptions)("length",ctx.count)}},"MaterialTableComponent_Template"),directives:[i3.MatFormField,i3.MatLabel,i4.MatInput,i5.DefaultValueAccessor,i5.MaxLengthValidator,i5.NgControlStatus,i5.NgModel,i6.MatIcon,i3.MatSuffix,i3.MatHint,i7.MatTable,i8.MatSort,i9.NgForOf,i7.MatColumnDef,i7.MatHeaderCellDef,i7.MatHeaderCell,i8.MatSortHeader,i7.MatCellDef,i7.MatCell,i9.NgIf,i10.MatListAvatarCssMatStyler,i11.MatTooltip,i12.MaterialChipComponent,i13.MatButton,i7.MatHeaderRowDef,i7.MatHeaderRow,i7.MatRowDef,i7.MatRow,i14.MatRipple,i7.MatNoDataRow,i15.MatPaginator],pipes:[i9.DatePipe,i16.DateAgoPipe],styles:["table[_ngcontent-%COMP%]{width:100%}td.mat-column-star[_ngcontent-%COMP%]{width:20px;padding-right:8px!important}.mat-row[_ngcontent-%COMP%]:hover{background-color:#ffffffdf}.mat-row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#7289da;text-decoration:none}.mat-row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:100%}.mat-icon[_ngcontent-%COMP%]{color:#7289da}@media screen and (min-width: 992px){.fixed-single[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:128px}}@media screen and (max-width: 992px){.mat-elevation-z8[_ngcontent-%COMP%]{background:transparent;box-shadow:none}.mat-header-row[_ngcontent-%COMP%]{display:none}tbody[_ngcontent-%COMP%]{display:block;width:100%}.mat-table[_ngcontent-%COMP%]{background:transparent}.mat-table[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{display:block;overflow:hidden;height:auto;position:relative;clear:both;background-color:#ffffffdf;border-radius:3px}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] + .mat-row[_ngcontent-%COMP%]{margin-top:24px}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{display:block;width:100%;padding:8px 16px;margin:0;border:0 none}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child a[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{font-size:20px;color:inherit}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child:before, .mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child:before{display:none}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child{padding:16px 48px 8px 16px}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child{padding:8px 48px 16px 16px}.mat-table[_ngcontent-%COMP%] .mat-cell.m-card-sub-title[_ngcontent-%COMP%]{margin-top:-8px;padding:0 48px 0 16px;color:#00000080}.mat-table[_ngcontent-%COMP%] .has_label_on_mobile[_ngcontent-%COMP%]:before{content:attr(data-label);display:inline;font-weight:400}.mat-table[_ngcontent-%COMP%] .mat-column-star[_ngcontent-%COMP%]{width:auto;padding:8px 0 0!important;margin:0;position:absolute;top:0;right:0}.mat-table[_ngcontent-%COMP%] .mat-column-star[_ngcontent-%COMP%]:before{display:none}.mat-paginator[_ngcontent-%COMP%]{margin-top:24px}}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:none}"]})},617:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MaterialTableModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),forms_1=__webpack_require__2(93075),shared_material_module_1=__webpack_require__2(20210),material_chip_module_1=__webpack_require__2(54946),custom_pipe_module_1=__webpack_require__2(67355),i0=tslib_1.__importStar(__webpack_require__2(5e3));class MaterialTableModule{}__name(MaterialTableModule,"MaterialTableModule"),exports2.MaterialTableModule=MaterialTableModule,MaterialTableModule.\u0275fac=__name(function(t){return new(t||MaterialTableModule)},"MaterialTableModule_Factory"),MaterialTableModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:MaterialTableModule}),MaterialTableModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,shared_material_module_1.SharedMaterialModule,material_chip_module_1.MaterialChipModule,forms_1.FormsModule,custom_pipe_module_1.CustomPipeModule]]})},40192:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NoDataComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855));class NoDataComponent{constructor(gs){this.gs=gs,this.gs.isBrowser}ngOnInit(){this.gs.isBrowser}}__name(NoDataComponent,"NoDataComponent"),exports2.NoDataComponent=NoDataComponent,NoDataComponent.\u0275fac=__name(function(t){return new(t||NoDataComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService))},"NoDataComponent_Factory"),NoDataComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:NoDataComponent,selectors:[["app-no-data"]],decls:5,vars:0,consts:[[2,"background-image","url('/assets/img/404/no-data.png')","background-size","contain","background-position","center","background-repeat","no-repeat","height","256px","overflow","hidden"],[1,"row","align-items-center","h-100"],[1,"col-8","mx-auto","text-light","text-center","rounded","py-3",2,"background-color","rgba(128, 128, 128, 0.875)"],[1,"m-0"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),i0.\u0275\u0275text(4," Tidak Ada Data \xaf\\_(\u30c4)_/\xaf "),i0.\u0275\u0275elementEnd()()()())},"NoDataComponent_Template"),styles:[""]})},12438:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NoDataModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),i0=tslib_1.__importStar(__webpack_require__2(5e3));class NoDataModule{}__name(NoDataModule,"NoDataModule"),exports2.NoDataModule=NoDataModule,NoDataModule.\u0275fac=__name(function(t){return new(t||NoDataModule)},"NoDataModule_Factory"),NoDataModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:NoDataModule}),NoDataModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule]]})},8616:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NotificationsComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(74202),__webpack_require__2(80855),__webpack_require__2(37140),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(37140)),i4=tslib_1.__importStar(__webpack_require__2(69808)),i5=tslib_1.__importStar(__webpack_require__2(11861));function NotificationsComponent_div_0_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"div",4),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275styleProp("background-size",ctx_r0.GS.sizeContain?"contain":"cover")("background-image","url("+ctx_r0.GS.bannerImg+")")("background-repeat",ctx_r0.GS.bgRepeat?"repeat-x":"no-repeat")("height","/news"===ctx_r0.ROUTER.url||ctx_r0.ROUTER.url.includes("/news?")||"/berkas"===ctx_r0.ROUTER.url||ctx_r0.ROUTER.url.includes("/berkas?")||"/fansub"===ctx_r0.ROUTER.url||ctx_r0.ROUTER.url.includes("/fansub?")?"192px":"128px")("background-position-y","/berkas"===ctx_r0.ROUTER.url||ctx_r0.ROUTER.url.includes("/berkas?")?"22.5%":"")}}function NotificationsComponent_div_3_strong_6_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"strong",10),i0.\u0275\u0275text(1," -- "),i0.\u0275\u0275elementStart(2,"i")(3,"a",11),i0.\u0275\u0275text(4),i0.\u0275\u0275elementEnd()()()),2&rf){const n_r2=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(3),i0.\u0275\u0275propertyInterpolate1("routerLink","/user/",n_r2.notifCreator,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",n_r2.notifCreator," ")}}function NotificationsComponent_div_3_button_7_Template(rf,ctx){if(1&rf){const _r9=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",12),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r9);const n_r2=i0.\u0275\u0275nextContext().$implicit;return i0.\u0275\u0275nextContext().removeNotif(n_r2.notifData.id)},"NotificationsComponent_div_3_button_7_Template_button_click_0_listener")),i0.\u0275\u0275elementEnd()}}function NotificationsComponent_div_3_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",5)(1,"div")(2,"strong",6),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(4,"span",7),i0.\u0275\u0275pipe(5,"safeInnerHtml"),i0.\u0275\u0275template(6,NotificationsComponent_div_3_strong_6_Template,5,2,"strong",8),i0.\u0275\u0275template(7,NotificationsComponent_div_3_button_7_Template,1,0,"button",9),i0.\u0275\u0275elementEnd()()),2&rf){const n_r2=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275classMapInterpolate1("alert alert-",n_r2.notifData.type," alert-dismissible fade show"),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(n_r2.notifData.title),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("innerHTML",i0.\u0275\u0275pipeBind1(5,7,n_r2.notifData.content),i0.\u0275\u0275sanitizeHtml),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",n_r2.notifCreator),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",n_r2.notifData.dismissible)}}__name(NotificationsComponent_div_0_Template,"NotificationsComponent_div_0_Template"),__name(NotificationsComponent_div_3_strong_6_Template,"NotificationsComponent_div_3_strong_6_Template"),__name(NotificationsComponent_div_3_button_7_Template,"NotificationsComponent_div_3_button_7_Template"),__name(NotificationsComponent_div_3_Template,"NotificationsComponent_div_3_Template");class NotificationsComponent{constructor(router,gs,notif){this.router=router,this.gs=gs,this.notif=notif,this.gs.isBrowser}ngOnInit(){this.gs.isBrowser}get GS(){return this.gs}get ROUTER(){return this.router}get NOTIF(){return this.notif}removeNotif(id){this.notif.removeNotif(id)}}__name(NotificationsComponent,"NotificationsComponent"),exports2.NotificationsComponent=NotificationsComponent,NotificationsComponent.\u0275fac=__name(function(t){return new(t||NotificationsComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.NotificationsService))},"NotificationsComponent_Factory"),NotificationsComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:NotificationsComponent,selectors:[["app-notifications"]],decls:4,vars:2,consts:[["class","container-fluid notif-banner align-items-center",3,"background-size","background-image","background-repeat","height","background-position-y",4,"ngIf"],[1,"container"],[1,"row","pt-3"],["class","col-12",4,"ngFor","ngForOf"],[1,"container-fluid","notif-banner","align-items-center"],[1,"col-12"],[1,"me-1"],[3,"innerHTML"],["class","ms-1",4,"ngIf"],["type","button","class","btn-close","data-dismiss","alert",3,"click",4,"ngIf"],[1,"ms-1"],[1,"text-decoration-none",3,"routerLink"],["type","button","data-dismiss","alert",1,"btn-close",3,"click"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275template(0,NotificationsComponent_div_0_Template,1,10,"div",0),i0.\u0275\u0275elementStart(1,"div",1)(2,"div",2),i0.\u0275\u0275template(3,NotificationsComponent_div_3_Template,8,9,"div",3),i0.\u0275\u0275elementEnd()()),2&rf&&(i0.\u0275\u0275property("ngIf",ctx.GS.bannerImg&&("/news"===ctx.ROUTER.url||ctx.ROUTER.url.includes("/news?")||"/berkas"===ctx.ROUTER.url||ctx.ROUTER.url.includes("/berkas?")||"/fansub"===ctx.ROUTER.url||ctx.ROUTER.url.includes("/fansub?")||"/anime"===ctx.ROUTER.url||ctx.ROUTER.url.includes("/anime?")||"/dorama"===ctx.ROUTER.url||ctx.ROUTER.url.includes("/dorama?"))),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngForOf",ctx.NOTIF.notifications))},"NotificationsComponent_Template"),directives:[i4.NgIf,i4.NgForOf,i1.RouterLinkWithHref],pipes:[i5.SafeInnerHtmlPipe],styles:[".notif-banner[_ngcontent-%COMP%]{width:100%;background-size:cover;background-position:75% 50%}"]})},88613:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NotificationsModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),custom_pipe_module_1=__webpack_require__2(67355),i0=tslib_1.__importStar(__webpack_require__2(5e3));class NotificationsModule{}__name(NotificationsModule,"NotificationsModule"),exports2.NotificationsModule=NotificationsModule,NotificationsModule.\u0275fac=__name(function(t){return new(t||NotificationsModule)},"NotificationsModule_Factory"),NotificationsModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:NotificationsModule}),NotificationsModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule,custom_pipe_module_1.CustomPipeModule]]})},91240:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.QuizComponent=void 0;const tslib_1=__webpack_require__2(70655),environment_1=(__webpack_require__2(74202),__webpack_require__2(15934)),i0=(__webpack_require__2(80855),__webpack_require__2(61270),__webpack_require__2(56514),__webpack_require__2(55393),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(56514)),i4=tslib_1.__importStar(__webpack_require__2(61270)),i5=tslib_1.__importStar(__webpack_require__2(55393)),i6=tslib_1.__importStar(__webpack_require__2(69808)),i7=tslib_1.__importStar(__webpack_require__2(27544)),i8=tslib_1.__importStar(__webpack_require__2(87238)),i9=tslib_1.__importStar(__webpack_require__2(71617));function QuizComponent_div_0_div_3_Template(rf,ctx){if(1&rf){const _r12=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",23)(1,"div",6)(2,"div",7),i0.\u0275\u0275listener("click",__name(function(){const p_r9=i0.\u0275\u0275restoreView(_r12).$implicit;return i0.\u0275\u0275nextContext(2).openProfile(p_r9.value.username)},"QuizComponent_div_0_div_3_Template_div_click_2_listener")),i0.\u0275\u0275element(3,"div",24),i0.\u0275\u0275elementStart(4,"div"),i0.\u0275\u0275text(5),i0.\u0275\u0275elementEnd()()()()}if(2&rf){const p_r9=ctx.$implicit,idx_r10=ctx.index;i0.\u0275\u0275advance(3),i0.\u0275\u0275styleMapInterpolate1("\n background-image: url('",p_r9.value.image_url,"');\n width: 64px;\n height: 64px;\n background-size: cover;\n background-position: center;\n "),i0.\u0275\u0275property("matBadge",null==p_r9||null==p_r9.value?null:p_r9.value.profile_.points)("matBadgeColor",0===idx_r10?"warn":1===idx_r10?"primary":"accent"),i0.\u0275\u0275advance(1),i0.\u0275\u0275classMapInterpolate1("pt-1 ",0===idx_r10?"gradient-text":"",""),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(p_r9.value.username)}}function QuizComponent_div_0_div_19_Template(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"div")}function QuizComponent_div_0_ng_template_20_Template(rf,ctx){if(1&rf&&i0.\u0275\u0275element(0,"div",25),2&rf){const ctx_r4=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275styleMapInterpolate1("\n background-size: contain;\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url('",ctx_r4.getQuiz.question[ctx_r4.question],"');\n ")}}function QuizComponent_div_0_ng_template_22_Template(rf,ctx){if(1&rf){const _r14=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",26),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r14),i0.\u0275\u0275nextContext(2).openEdict()},"QuizComponent_div_0_ng_template_22_Template_div_click_0_listener")),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()}if(2&rf){const ctx_r6=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",ctx_r6.swapOptions?ctx_r6.getQuiz.question[ctx_r6.question]:ctx_r6.getQuiz.question[ctx_r6.options]," ")}}function QuizComponent_div_0_div_27_Template(rf,ctx){if(1&rf){const _r17=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div")(1,"div",27),i0.\u0275\u0275listener("click",__name(function(){const o_r15=i0.\u0275\u0275restoreView(_r17).$implicit;return i0.\u0275\u0275nextContext(2).selectAnswer(o_r15)},"QuizComponent_div_0_div_27_Template_div_click_1_listener")),i0.\u0275\u0275elementStart(2,"div"),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()()}if(2&rf){const o_r15=ctx.$implicit,ctx_r7=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275classMapInterpolate1("",ctx_r7.ROUTER.url.includes("/kelas-")||ctx_r7.ROUTER.url.includes("/jlpt-")||ctx_r7.ROUTER.url.includes("/semua-kanji")||ctx_r7.ROUTER.url.includes("/latihan-")?"col-md-6 col-12":"col-md-4 col-6"," p-2"),i0.\u0275\u0275advance(2),i0.\u0275\u0275classMapInterpolate1("card-body ",ctx_r7.ROUTER.url.includes("/kelas-")||ctx_r7.ROUTER.url.includes("/jlpt-")||ctx_r7.ROUTER.url.includes("/semua-kanji")?"p-0":"px-0",""),i0.\u0275\u0275styleProp("font-size",ctx_r7.ROUTER.url.includes("/kelas-")||ctx_r7.ROUTER.url.includes("/jlpt-")||ctx_r7.ROUTER.url.includes("/semua-kanji")?"100%":"250%"),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",ctx_r7.swapOptions?o_r15[ctx_r7.options]:o_r15[ctx_r7.question]," ")}}function QuizComponent_div_0_div_28_Template(rf,ctx){if(1&rf){const _r19=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",28)(1,"div",29),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r19),i0.\u0275\u0275nextContext(2).swapCharacter()},"QuizComponent_div_0_div_28_Template_div_click_1_listener")),i0.\u0275\u0275elementStart(2,"div",30),i0.\u0275\u0275text(3,"\u{1f38c}"),i0.\u0275\u0275elementEnd()()()}}function QuizComponent_div_0_Template(rf,ctx){if(1&rf){const _r21=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div",3),i0.\u0275\u0275template(3,QuizComponent_div_0_div_3_Template,6,9,"div",4),i0.\u0275\u0275pipe(4,"keyvalue"),i0.\u0275\u0275elementStart(5,"div",5)(6,"div",6)(7,"div",7),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r21),i0.\u0275\u0275nextContext().openLiveChat()},"QuizComponent_div_0_Template_div_click_7_listener")),i0.\u0275\u0275element(8,"div",8),i0.\u0275\u0275elementStart(9,"div",9),i0.\u0275\u0275text(10,"Semua Peserta"),i0.\u0275\u0275elementEnd()()()()(),i0.\u0275\u0275elementStart(11,"div",10)(12,"div",2),i0.\u0275\u0275element(13,"hr",11),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(14,"div",10)(15,"div",12)(16,"div",10)(17,"div",13)(18,"div",14),i0.\u0275\u0275template(19,QuizComponent_div_0_div_19_Template,1,0,"div",15),i0.\u0275\u0275template(20,QuizComponent_div_0_ng_template_20_Template,1,3,"ng-template",null,16,i0.\u0275\u0275templateRefExtractor),i0.\u0275\u0275template(22,QuizComponent_div_0_ng_template_22_Template,2,1,"ng-template",null,17,i0.\u0275\u0275templateRefExtractor),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(24,"div",10)(25,"div",13)(26,"div",18),i0.\u0275\u0275template(27,QuizComponent_div_0_div_27_Template,4,9,"div",19),i0.\u0275\u0275template(28,QuizComponent_div_0_div_28_Template,4,0,"div",20),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(29,"div",21),i0.\u0275\u0275element(30,"app-live-chat",22),i0.\u0275\u0275elementEnd()()()()}if(2&rf){const _r3=i0.\u0275\u0275reference(21),_r5=i0.\u0275\u0275reference(23),ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind2(4,10,ctx_r0.participants,ctx_r0.scoreOrder)),i0.\u0275\u0275advance(5),i0.\u0275\u0275styleMapInterpolate1("\n background-image: url('",ctx_r0.ENV.baseUrl,"/assets/img/favicon.png');\n width: 64px;\n height: 64px;\n background-size: cover;\n background-position: center;\n "),i0.\u0275\u0275advance(11),i0.\u0275\u0275property("ngIf","image_url"===ctx_r0.question)("ngIfThen",_r3)("ngIfElse",_r5),i0.\u0275\u0275advance(8),i0.\u0275\u0275property("ngForOf",ctx_r0.getQuiz.options),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!(ctx_r0.ROUTER.url.includes("/kelas-")||ctx_r0.ROUTER.url.includes("/jlpt-")||ctx_r0.ROUTER.url.includes("/semua-kanji")||ctx_r0.ROUTER.url.includes("/latihan-"))),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("chatOnly",!0)}}__name(QuizComponent_div_0_div_3_Template,"QuizComponent_div_0_div_3_Template"),__name(QuizComponent_div_0_div_19_Template,"QuizComponent_div_0_div_19_Template"),__name(QuizComponent_div_0_ng_template_20_Template,"QuizComponent_div_0_ng_template_20_Template"),__name(QuizComponent_div_0_ng_template_22_Template,"QuizComponent_div_0_ng_template_22_Template"),__name(QuizComponent_div_0_div_27_Template,"QuizComponent_div_0_div_27_Template"),__name(QuizComponent_div_0_div_28_Template,"QuizComponent_div_0_div_28_Template"),__name(QuizComponent_div_0_Template,"QuizComponent_div_0_Template");class QuizComponent{constructor(router,gs,rps,quiz,ds){this.router=router,this.gs=gs,this.rps=rps,this.quiz=quiz,this.ds=ds,this.question="hiragana",this.options="romaji",this.swapOptions=!0,this.participants=null,this.subsParticipant=null,this.subsDialog=null,this.scoreOrder=(a,b2)=>a.value.profile_.points>b2.value.profile_.points?-1:b2.value.profile_.points>a.value.profile_.points?1:0,this.gs.isBrowser}get ENV(){return environment_1.environment}get ROUTER(){return this.router}get getQuiz(){return this.quiz.getCurrentQuizQuestion(this.router.url.split("?")[0])}ngOnDestroy(){var _a,_b;null===(_a=this.subsParticipant)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsDialog)||void 0===_b||_b.unsubscribe()}ngOnInit(){this.gs.isBrowser&&(this.subsParticipant=this.quiz.getCurrentQuizRoom().subscribe({next:currentRoom=>{this.participants=null==currentRoom?void 0:currentRoom.member_list}}))}selectAnswer(data){this.quiz.answerQuestion({roomId:this.router.url.split("?")[0],randomInteger:this.getQuiz.randomInteger,answer:data})}swapCharacter(){this.swapOptions=!this.swapOptions}openLiveChat(){this.rps.toggleSidePanel("LiveChatComponent")}openProfile(username){this.router.navigateByUrl(`/user/${username}`)}openEdict(){this.gs.log("[QUIZ_OPEN_EDICT]",this.getQuiz),this.getQuiz.question.character&&(this.subsDialog=this.ds.openEdictDialog({data:this.getQuiz.question,disableClose:!1}).afterClosed().subscribe({next:re=>{this.gs.log("[EDICT_DIALOG_CLOSED]",re),this.subsDialog.unsubscribe()}}))}}__name(QuizComponent,"QuizComponent"),exports2.QuizComponent=QuizComponent,QuizComponent.\u0275fac=__name(function(t){return new(t||QuizComponent)(i0.\u0275\u0275directiveInject(i1.Router),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.RightPanelService),i0.\u0275\u0275directiveInject(i4.QuizService),i0.\u0275\u0275directiveInject(i5.DialogService))},"QuizComponent_Factory"),QuizComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:QuizComponent,selectors:[["app-quiz"]],inputs:{question:"question",options:"options"},decls:1,vars:1,consts:[["class","row px-0",4,"ngIf"],[1,"row","px-0"],[1,"col-12"],[1,"row","w-100","ps-3",2,"display","inline-flex","flex-wrap","nowrap","overflow-x","hidden"],["class","p-2","style","width: auto;",4,"ngFor","ngForOf"],[1,"ms-auto","p-2","bg-bifeldy",2,"width","auto","position","sticky","right","0"],[1,"card","text-center","border-0",2,"width","64px","background","transparent !important"],[1,"card-body","p-0",2,"cursor","pointer",3,"click"],[1,"rounded-3"],[1,"pt-1"],[1,"row"],[1,"my-1","border-bottom-dotted",2,"height","4px","background","url(/assets/img/stripe.png)"],[1,"col-lg-8","col-xl-9","p-3","text-center"],[1,"col-12","p-4"],[1,"mx-auto","card","p-3"],[4,"ngIf","ngIfThen","ngIfElse"],["menengah",""],["bukanMenengah",""],[1,"row","text-center"],[3,"class",4,"ngFor","ngForOf"],["class","col-6 col-md-4 p-2",4,"ngIf"],[1,"col-lg-4","col-xl-3","d-none","d-lg-block","d-xl-block"],[3,"chatOnly"],[1,"p-2",2,"width","auto"],["matBadgePosition","below",1,"rounded-3",3,"matBadge","matBadgeColor"],[1,"card-body","p-3","py-5"],[1,"card-body","p-3","py-5",2,"cursor","pointer","font-size","500%",3,"click"],[1,"card","p-3","m-1",2,"cursor","pointer",3,"click"],[1,"col-6","col-md-4","p-2"],["matTooltip","Tukar Huruf",1,"card","p-3","m-1",2,"cursor","pointer",3,"click"],[1,"card-body","px-0",2,"font-size","250%"]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275template(0,QuizComponent_div_0_Template,31,13,"div",0),2&rf&&i0.\u0275\u0275property("ngIf",ctx.getQuiz)},"QuizComponent_Template"),directives:[i6.NgIf,i6.NgForOf,i7.MatBadge,i8.MatTooltip,i9.LiveChatComponent],pipes:[i6.KeyValuePipe],styles:[""]})},39369:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.QuizModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),shared_material_module_1=__webpack_require__2(20210),right_panel_module_1=__webpack_require__2(85116),i0=tslib_1.__importStar(__webpack_require__2(5e3));class QuizModule{}__name(QuizModule,"QuizModule"),exports2.QuizModule=QuizModule,QuizModule.\u0275fac=__name(function(t){return new(t||QuizModule)},"QuizModule_Factory"),QuizModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:QuizModule}),QuizModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule,shared_material_module_1.SharedMaterialModule,right_panel_module_1.RightPanelModule]]})},16647:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ReportComponent=void 0;const tslib_1=__webpack_require__2(70655),router_1=__webpack_require__2(74202),ng2_charts_1=__webpack_require__2(89215),req_res_model_1=__webpack_require__2(14249),i0=(__webpack_require__2(80855),__webpack_require__2(4137),__webpack_require__2(28381),__webpack_require__2(31216),__webpack_require__2(33e3),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(4137)),i2=tslib_1.__importStar(__webpack_require__2(74202)),i3=tslib_1.__importStar(__webpack_require__2(80855)),i4=tslib_1.__importStar(__webpack_require__2(28381)),i5=tslib_1.__importStar(__webpack_require__2(31216)),i6=tslib_1.__importStar(__webpack_require__2(33e3)),i7=tslib_1.__importStar(__webpack_require__2(69808)),i8=tslib_1.__importStar(__webpack_require__2(89215)),i9=tslib_1.__importStar(__webpack_require__2(47423)),i10=tslib_1.__importStar(__webpack_require__2(25245));function ReportComponent_span_3_Template(rf,ctx){if(1&rf){const _r10=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"span",14),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r10),i0.\u0275\u0275nextContext().toggleAllStats()},"ReportComponent_span_3_Template_span_click_0_listener")),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()}if(2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",ctx_r0.toggleAllStatsValue?"Sederhana":"Lengkap"," ")}}function ReportComponent_div_8_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",15),i0.\u0275\u0275element(1,"canvas",16),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r1=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("data",ctx_r1.doughnutChartKetertarikanData)("labels",ctx_r1.doughnutChartKetertarikanLabels)("chartType",ctx_r1.doughnutChartType)("options",ctx_r1.doughnutChartKetertarikanOptions)("plugins",ctx_r1.chartPlugins)("legend",!0)}}function ReportComponent_div_9_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",15),i0.\u0275\u0275element(1,"canvas",16),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r2=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("data",ctx_r2.barChartUniqueData)("labels",ctx_r2.barChartUniqueLabels)("chartType",ctx_r2.barChartType)("options",ctx_r2.barChartUniqueOptions)("plugins",ctx_r2.chartPlugins)("legend",!1)}}function ReportComponent_div_10_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",15),i0.\u0275\u0275element(1,"canvas",16),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(1),i0.\u0275\u0275property("data",ctx_r3.lineChartVisitorData)("labels",ctx_r3.lineChartVisitorLabels)("chartType",ctx_r3.lineChartType)("options",ctx_r3.lineChartVisitorOptions)("plugins",ctx_r3.chartPlugins)("legend",!1)}}function ReportComponent_button_16_Template(rf,ctx){if(1&rf){const _r12=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",17),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r12),i0.\u0275\u0275nextContext().login()},"ReportComponent_button_16_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",18),i0.\u0275\u0275text(2,"vpn_key"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3," Klik Untuk Login "),i0.\u0275\u0275elementEnd()}}function ReportComponent_button_17_Template(rf,ctx){if(1&rf){const _r14=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",19),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r14);const ctx_r13=i0.\u0275\u0275nextContext();return ctx_r13.likeOrDislike(ctx_r13.LIKE)},"ReportComponent_button_17_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",18),i0.\u0275\u0275text(2,"thumb_up_off_alt"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()}if(2&rf){const ctx_r5=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" Suka (",ctx_r5.summary.like,") ")}}function ReportComponent_button_18_Template(rf,ctx){if(1&rf){const _r16=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",20),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r16);const ctx_r15=i0.\u0275\u0275nextContext();return ctx_r15.likeOrDislike(ctx_r15.LIKE)},"ReportComponent_button_18_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",18),i0.\u0275\u0275text(2,"thumb_up_off_alt"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()}if(2&rf){const ctx_r6=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" Suka (",ctx_r6.summary.like,") ")}}function ReportComponent_button_19_Template(rf,ctx){if(1&rf){const _r18=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",17),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r18);const ctx_r17=i0.\u0275\u0275nextContext();return ctx_r17.likeOrDislike(ctx_r17.DISLIKE)},"ReportComponent_button_19_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",18),i0.\u0275\u0275text(2,"thumb_down_off_alt"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3," Tidak Suka "),i0.\u0275\u0275elementEnd()}}function ReportComponent_button_20_Template(rf,ctx){if(1&rf){const _r20=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",21),i0.\u0275\u0275listener("click",__name(function(){i0.\u0275\u0275restoreView(_r20);const ctx_r19=i0.\u0275\u0275nextContext();return ctx_r19.likeOrDislike(ctx_r19.DISLIKE)},"ReportComponent_button_20_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",18),i0.\u0275\u0275text(2,"thumb_down_off_alt"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3," Tidak Suka "),i0.\u0275\u0275elementEnd()}}__name(ReportComponent_span_3_Template,"ReportComponent_span_3_Template"),__name(ReportComponent_div_8_Template,"ReportComponent_div_8_Template"),__name(ReportComponent_div_9_Template,"ReportComponent_div_9_Template"),__name(ReportComponent_div_10_Template,"ReportComponent_div_10_Template"),__name(ReportComponent_button_16_Template,"ReportComponent_button_16_Template"),__name(ReportComponent_button_17_Template,"ReportComponent_button_17_Template"),__name(ReportComponent_button_18_Template,"ReportComponent_button_18_Template"),__name(ReportComponent_button_19_Template,"ReportComponent_button_19_Template"),__name(ReportComponent_button_20_Template,"ReportComponent_button_20_Template");class ReportComponent{constructor(as,router,gs,ss,rs,bs){this.as=as,this.router=router,this.gs=gs,this.ss=ss,this.rs=rs,this.bs=bs,this.toggleAllStatsValue=!1,this.summary={like:0,dislike:0,unique_ip:0,unique_user:0,verified_user:0,un_verified_user:0},this.doughnutChartKetertarikanOptions={title:{display:!0,text:"Total Ketertarikan Pengguna"},responsive:!0,legend:{position:"right"}},this.lineChartVisitorOptions={title:{display:!0,text:"Riwayat Jumlah Pengunjung"},responsive:!0,legend:{position:"right"},scales:{xAxes:[{gridLines:{color:"rgba(92,92,92,1)"}}],yAxes:[{ticks:{beginAtZero:!0},gridLines:{color:"rgba(92,92,92,1)"}}]}},this.barChartUniqueOptions={title:{display:!0,text:"Total Kunjungan Unik"},responsive:!0,legend:{position:"right"},scales:{xAxes:[{gridLines:{color:"rgba(92,92,92,1)"}}],yAxes:[{ticks:{beginAtZero:!0},gridLines:{color:"rgba(92,92,92,1)"}}]}},this.chartPlugins=[],this.doughnutChartKetertarikanData=[],this.doughnutChartKetertarikanLabels=[],this.lineChartVisitorData=[],this.lineChartVisitorLabels=[],this.barChartUniqueData=[],this.barChartUniqueLabels=[],this.doughnutChartType="doughnut",this.lineChartType="line",this.barChartType="bar",this.reportTrackType=null,this.idSlugUsername=null,this.subsGetReport=null,this.subsSetReport=null,this.subsRouter=null,this.myReport=null,this.gs.isBrowser&&((0,ng2_charts_1.monkeyPatchChartJsTooltip)(),(0,ng2_charts_1.monkeyPatchChartJsLegend)())}get AS(){return this.as}ngOnDestroy(){var _a,_b,_c;null===(_a=this.subsGetReport)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsSetReport)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsRouter)||void 0===_c||_c.unsubscribe()}get LIKE(){return req_res_model_1.LikeAndDislikeModel.LIKE}get DISLIKE(){return req_res_model_1.LikeAndDislikeModel.DISLIKE}get SHOWALLSTATS(){return this.toggleAllStatsValue}get SHOWALLSTATSVERIFIEDONLY(){var _a,_b;const role=null===(_b=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||void 0===_b?void 0:_b.role;return!!role&&((role===req_res_model_1.RoleModel.ADMIN||role===req_res_model_1.RoleModel.MODERATOR||role===req_res_model_1.RoleModel.FANSUBBER)&&this.SHOWALLSTATS)}ngOnInit(){this.gs.isBrowser&&(this.reloadComponent(),this.subsRouter=this.router.events.subscribe({next:evt=>{evt instanceof router_1.NavigationEnd&&this.reloadComponent()}}))}reloadComponent(){this.reportTrackType=this.router.url.split("?")[0].split("/")[1],this.idSlugUsername=this.router.url.split("?")[0].split("/")[2],this.ss.socketEmit("track-get",{trackType:this.reportTrackType,idSlugUsername:this.idSlugUsername},response=>{this.gs.log("[SOCKET_TRACK-GET]",response),this.barChartUniqueLabels=["Alamat IP","Akun Pengguna","Terverifikasi","Belum Verifikasi"],this.barChartUniqueData=[response.unique_ip,response.unique_user,response.verified_user,response.un_verified_user],this.summary.unique_ip=response.unique_ip,this.summary.unique_user=response.unique_user,this.summary.verified_user=response.verified_user,this.summary.un_verified_user=response.un_verified_user,this.lineChartVisitorData=[],this.lineChartVisitorLabels=[];for(const v of response.visitor)this.lineChartVisitorData.push(v.visitor_count||0),this.lineChartVisitorLabels.push(new Date(new Date(v.visitor_date).getTime()-60*new Date(v.visitor_date).getTimezoneOffset()*1e3).toISOString().split("T")[0])}),this.getReport()}toggleAllStats(){this.toggleAllStatsValue=!this.toggleAllStatsValue}login(){this.router.navigate(["/login"],{queryParams:{returnUrl:`/${this.reportTrackType}/${this.idSlugUsername}`}})}likeOrDislike(like){var _a,_b;let tempReport=null;(null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)&&(tempReport=like===(null===(_b=this.myReport)||void 0===_b?void 0:_b.type)?null:like,this.setReport(tempReport,!0))}setReport(tempReport,refreshReport=!1){this.bs.busy(),this.rs.setReport(this.reportTrackType,this.idSlugUsername,{likedislike:tempReport}).subscribe({next:res=>{this.gs.log("[LIKE-DISLIKE_SET_REPORT_SUCCESS]",res),this.myReport=res.result,this.bs.idle(),refreshReport&&this.getReport()},error:err=>{this.gs.log("[LIKE-DISLIKE_SET_REPORT_ERROR]",err,"error"),this.bs.idle()}})}getReport(){this.bs.busy(),this.rs.getReport(this.reportTrackType,this.idSlugUsername).subscribe({next:res=>{this.gs.log("[LIKE-DISLIKE_GET_REPORT_SUCCESS]",res),this.doughnutChartKetertarikanLabels=[],this.doughnutChartKetertarikanData=[],this.summary.like=0,this.summary.dislike=0;for(const s of res.result.statistics)s.type===this.LIKE?(this.doughnutChartKetertarikanLabels.push("Suka"),this.summary.like=s.count):(this.doughnutChartKetertarikanLabels.push("Tidak Suka"),this.summary.dislike=s.count),this.doughnutChartKetertarikanData.push(s.count);this.myReport=res.result.myReport,this.bs.idle()},error:err=>{this.gs.log("[LIKE-DISLIKE_GET_REPORT_ERROR]",err,"error"),this.bs.idle()}})}}__name(ReportComponent,"ReportComponent"),exports2.ReportComponent=ReportComponent,ReportComponent.\u0275fac=__name(function(t){return new(t||ReportComponent)(i0.\u0275\u0275directiveInject(i1.AuthService),i0.\u0275\u0275directiveInject(i2.Router),i0.\u0275\u0275directiveInject(i3.GlobalService),i0.\u0275\u0275directiveInject(i4.StatsServerService),i0.\u0275\u0275directiveInject(i5.ReportService),i0.\u0275\u0275directiveInject(i6.BusyService))},"ReportComponent_Factory"),ReportComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:ReportComponent,selectors:[["app-report"]],decls:21,vars:9,consts:[[1,"row","p-0"],[1,"col-12","pt-3","sticky-top","bg-bifeldy"],[1,"border-bottom-dotted"],["class","float-end text-warning","style","font-size: small; cursor: pointer;",3,"click",4,"ngIf"],[1,"text-bifeldy"],[1,"col-12"],["class","col-12 col-md-6 py-1 bg-bifeldy",4,"ngIf"],[1,"col","py-1","bg-bifeldy"],[1,"row","align-items-center","h-100"],[1,"col-12","mx-auto","text-center"],["mat-stroked-button","","color","accent","class","mx-1",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mx-1 shiny",3,"click",4,"ngIf"],["mat-stroked-button","","color","accent","class","mx-1 shiny",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mx-1",3,"click",4,"ngIf"],[1,"float-end","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[1,"col-12","col-md-6","py-1","bg-bifeldy"],["baseChart","",3,"data","labels","chartType","options","plugins","legend"],["mat-stroked-button","","color","accent",1,"mx-1",3,"click"],[1,"me-1"],["mat-flat-button","","color","accent",1,"mx-1","shiny",3,"click"],["mat-stroked-button","","color","accent",1,"mx-1","shiny",3,"click"],["mat-flat-button","","color","accent",1,"mx-1",3,"click"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h2",2),i0.\u0275\u0275template(3,ReportComponent_span_3_Template,2,1,"span",3),i0.\u0275\u0275elementStart(4,"b",4),i0.\u0275\u0275text(5,"Data Statistik"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(6,"div",5)(7,"div",0),i0.\u0275\u0275template(8,ReportComponent_div_8_Template,2,6,"div",6),i0.\u0275\u0275template(9,ReportComponent_div_9_Template,2,6,"div",6),i0.\u0275\u0275template(10,ReportComponent_div_10_Template,2,6,"div",6),i0.\u0275\u0275elementStart(11,"div",7)(12,"div",8)(13,"div",9)(14,"h2"),i0.\u0275\u0275text(15,"Penilaian Saya"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(16,ReportComponent_button_16_Template,4,0,"button",10),i0.\u0275\u0275template(17,ReportComponent_button_17_Template,4,1,"button",11),i0.\u0275\u0275template(18,ReportComponent_button_18_Template,4,1,"button",12),i0.\u0275\u0275template(19,ReportComponent_button_19_Template,4,0,"button",10),i0.\u0275\u0275template(20,ReportComponent_button_20_Template,4,0,"button",13),i0.\u0275\u0275elementEnd()()()()()()),2&rf&&(i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngIf",null==ctx.AS.currentUserSubject?null:ctx.AS.currentUserSubject.value),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("ngIf",ctx.SHOWALLSTATSVERIFIEDONLY&&ctx.doughnutChartKetertarikanData.length>0&&ctx.doughnutChartKetertarikanLabels.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.SHOWALLSTATSVERIFIEDONLY&&ctx.barChartUniqueData.length>0&&ctx.barChartUniqueLabels.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.lineChartVisitorData.length>0&&ctx.lineChartVisitorLabels.length>0),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",!(null!=ctx.AS.currentUserSubject&&ctx.AS.currentUserSubject.value)),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",(null==ctx.AS.currentUserSubject?null:ctx.AS.currentUserSubject.value)&&(null==ctx.myReport?null:ctx.myReport.type)===ctx.LIKE),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",(null==ctx.AS.currentUserSubject?null:ctx.AS.currentUserSubject.value)&&(null==ctx.myReport?null:ctx.myReport.type)!==ctx.LIKE),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",(null==ctx.AS.currentUserSubject?null:ctx.AS.currentUserSubject.value)&&(null==ctx.myReport?null:ctx.myReport.type)!==ctx.DISLIKE),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",(null==ctx.AS.currentUserSubject?null:ctx.AS.currentUserSubject.value)&&(null==ctx.myReport?null:ctx.myReport.type)===ctx.DISLIKE))},"ReportComponent_Template"),directives:[i7.NgIf,i8.BaseChartDirective,i9.MatButton,i10.MatIcon],styles:[""]})},54167:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ReportModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),ng2_charts_1=__webpack_require__2(89215),shared_material_module_1=__webpack_require__2(20210),i0=tslib_1.__importStar(__webpack_require__2(5e3));class ReportModule{}__name(ReportModule,"ReportModule"),exports2.ReportModule=ReportModule,ReportModule.\u0275fac=__name(function(t){return new(t||ReportModule)},"ReportModule_Factory"),ReportModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:ReportModule}),ReportModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,ng2_charts_1.ChartsModule,shared_material_module_1.SharedMaterialModule]]})},93380:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AdminNavigationComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(33070),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(33070)),i3=tslib_1.__importStar(__webpack_require__2(69808)),i4=tslib_1.__importStar(__webpack_require__2(9224)),i5=tslib_1.__importStar(__webpack_require__2(74202)),i6=tslib_1.__importStar(__webpack_require__2(25245));function AdminNavigationComponent_div_6_mat_icon_4_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-icon",12),i0.\u0275\u0275text(1),i0.\u0275\u0275elementEnd()),2&rf){const m_r1=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate(m_r1.icon)}}function AdminNavigationComponent_div_6_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",6)(1,"mat-card")(2,"mat-card-header",7)(3,"div",8),i0.\u0275\u0275template(4,AdminNavigationComponent_div_6_mat_icon_4_Template,2,1,"mat-icon",9),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"mat-card-title",10)(6,"h3",11),i0.\u0275\u0275text(7),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(8,"mat-card-subtitle",11),i0.\u0275\u0275text(9),i0.\u0275\u0275elementEnd()()()()),2&rf){const m_r1=ctx.$implicit;i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate1("routerLink","/admin-mod/",m_r1.url,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275styleProp("background-image","url("+(m_r1.image_url?m_r1.image_url:"")+")"),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",m_r1.icon),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(m_r1.name),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(m_r1.deskripsi)}}__name(AdminNavigationComponent_div_6_mat_icon_4_Template,"AdminNavigationComponent_div_6_mat_icon_4_Template"),__name(AdminNavigationComponent_div_6_Template,"AdminNavigationComponent_div_6_Template");class AdminNavigationComponent{constructor(gs,adm){this.gs=gs,this.adm=adm,this.gs.isBrowser}get ADM(){return this.adm}ngOnInit(){this.gs.isBrowser}}__name(AdminNavigationComponent,"AdminNavigationComponent"),exports2.AdminNavigationComponent=AdminNavigationComponent,AdminNavigationComponent.\u0275fac=__name(function(t){return new(t||AdminNavigationComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService),i0.\u0275\u0275directiveInject(i2.AdminService))},"AdminNavigationComponent_Factory"),AdminNavigationComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:AdminNavigationComponent,selectors:[["app-admin-navigation"]],decls:7,vars:1,consts:[[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12","px-3"],["class","col-12 p-2",4,"ngFor","ngForOf"],[1,"col-12","p-2"],[2,"cursor","pointer",3,"routerLink"],["mat-card-avatar","",2,"background-size","cover","border-radius","0"],["style","font-size: 300%;",4,"ngIf"],[1,"text-warning","mb-1",2,"cursor","pointer"],[1,"mb-0"],[2,"font-size","300%"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h2",2)(3,"b",3),i0.\u0275\u0275text(4,"Menu Admin Lainnya"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",4),i0.\u0275\u0275template(6,AdminNavigationComponent_div_6_Template,10,6,"div",5),i0.\u0275\u0275elementEnd()()),2&rf&&(i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngForOf",ctx.ADM.menuList))},"AdminNavigationComponent_Template"),directives:[i3.NgForOf,i4.MatCard,i4.MatCardHeader,i5.RouterLink,i4.MatCardAvatar,i3.NgIf,i6.MatIcon,i4.MatCardTitle,i4.MatCardSubtitle],styles:[""]})},71617:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LiveChatComponent=void 0;const tslib_1=__webpack_require__2(70655),constants_1=(__webpack_require__2(5e3),__webpack_require__2(74202),__webpack_require__2(26271)),req_res_model_1=__webpack_require__2(14249),i0=(__webpack_require__2(80855),__webpack_require__2(4137),__webpack_require__2(53379),__webpack_require__2(28381),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(4137)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(28381)),i4=tslib_1.__importStar(__webpack_require__2(53379)),i5=tslib_1.__importStar(__webpack_require__2(74202)),i6=tslib_1.__importStar(__webpack_require__2(69808)),i7=tslib_1.__importStar(__webpack_require__2(67322)),i8=tslib_1.__importStar(__webpack_require__2(74107)),i9=tslib_1.__importStar(__webpack_require__2(90508)),i10=tslib_1.__importStar(__webpack_require__2(77531)),i11=tslib_1.__importStar(__webpack_require__2(93075)),i12=tslib_1.__importStar(__webpack_require__2(25245)),i13=tslib_1.__importStar(__webpack_require__2(47423)),_c0=["liveChatScroll"];function LiveChatComponent_div_2_mat_option_11_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-option",17),i0.\u0275\u0275text(1,"Global Fansubber"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r5=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275property("value",ctx_r5.CONSTANTS.socketRoomNameGlobalFansub)}}function LiveChatComponent_div_2_div_14_div_1_div_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",26)(1,"div",27),i0.\u0275\u0275element(2,"img",28),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"div",29)(4,"h4",30)(5,"span"),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd()()()()),2&rf){const u_r8=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275propertyInterpolate1("routerLink","/user/",u_r8.value.username,""),i0.\u0275\u0275advance(2),i0.\u0275\u0275propertyInterpolate("src",u_r8.value.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate(u_r8.value.username)}}function LiveChatComponent_div_2_div_14_div_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",24),i0.\u0275\u0275template(1,LiveChatComponent_div_2_div_14_div_1_div_1_Template,7,3,"div",25),i0.\u0275\u0275elementEnd()),2&rf){const u_r8=ctx.$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",u_r8.value)}}function LiveChatComponent_div_2_div_14_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",22),i0.\u0275\u0275template(1,LiveChatComponent_div_2_div_14_div_1_Template,2,1,"div",23),i0.\u0275\u0275pipe(2,"keyvalue"),i0.\u0275\u0275elementEnd()),2&rf){const ctx_r6=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind1(2,1,ctx_r6.roomCurrentOrGlobal.member_list))}}function LiveChatComponent_div_2_Template(rf,ctx){if(1&rf){const _r12=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div",13)(1,"div",3)(2,"h3",14)(3,"mat-form-field",15)(4,"mat-label"),i0.\u0275\u0275text(5,"Ruang Obrolan"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"mat-select",16),i0.\u0275\u0275listener("valueChange",__name(function($event){i0.\u0275\u0275restoreView(_r12);return i0.\u0275\u0275nextContext().liveChatResult.roomId=$event},"LiveChatComponent_div_2_Template_mat_select_valueChange_6_listener"))("valueChange",__name(function($event){return i0.\u0275\u0275restoreView(_r12),i0.\u0275\u0275nextContext().changeRoom($event)},"LiveChatComponent_div_2_Template_mat_select_valueChange_6_listener")),i0.\u0275\u0275elementStart(7,"mat-option",17),i0.\u0275\u0275text(8,"Halaman Ini"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(9,"mat-option",17),i0.\u0275\u0275text(10,"Global Publik"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275template(11,LiveChatComponent_div_2_mat_option_11_Template,2,1,"mat-option",18),i0.\u0275\u0275elementEnd()()()(),i0.\u0275\u0275elementStart(12,"div",19)(13,"div",20),i0.\u0275\u0275template(14,LiveChatComponent_div_2_div_14_Template,3,3,"div",21),i0.\u0275\u0275elementEnd()()()}if(2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(3),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("value",ctx_r0.liveChatResult.roomId),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("value",ctx_r0.ROUTER.url),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("value",ctx_r0.CONSTANTS.socketRoomNameGlobalPublic),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",ctx_r0.isAdminModFansubber),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngIf",ctx_r0.roomCurrentOrGlobal)}}function LiveChatComponent_div_11_div_1_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",27),i0.\u0275\u0275element(1,"img",28),i0.\u0275\u0275elementEnd()),2&rf){const c_r14=i0.\u0275\u0275nextContext().$implicit;i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",c_r14.sender.image_url,i0.\u0275\u0275sanitizeUrl)}}function LiveChatComponent_div_11_Template(rf,ctx){if(1&rf){const _r19=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"div"),i0.\u0275\u0275template(1,LiveChatComponent_div_11_div_1_Template,2,1,"div",31),i0.\u0275\u0275elementStart(2,"div",32)(3,"h5",30)(4,"span",33),i0.\u0275\u0275listener("click",__name(function(){const c_r14=i0.\u0275\u0275restoreView(_r19).$implicit;return i0.\u0275\u0275nextContext().openUserProfile(c_r14.sender.username)},"LiveChatComponent_div_11_Template_span_click_4_listener")),i0.\u0275\u0275text(5),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(6,"span",34),i0.\u0275\u0275elementEnd()()()}if(2&rf){const c_r14=ctx.$implicit,i_r15=ctx.index,ctx_r2=i0.\u0275\u0275nextContext();i0.\u0275\u0275classMapInterpolate1("d-flex py-1 ",i_r15===ctx_r2.chatCurrentOrGlobal.length-ctx_r2.SS.messageChatUnreadCount?"border-top":"",""),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",c_r14.sender.image_url),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate1(" ",c_r14.sender.username," "),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("innerHtml",ctx_r2.innerHtml(c_r14.message),i0.\u0275\u0275sanitizeHtml)}}function LiveChatComponent_mat_form_field_13_Template(rf,ctx){if(1&rf){const _r21=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-form-field",35)(1,"mat-label"),i0.\u0275\u0275text(2,"Kirim Pesan Obrolan Disini ..."),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"input",36),i0.\u0275\u0275listener("keyup.enter",__name(function($event){return i0.\u0275\u0275restoreView(_r21),i0.\u0275\u0275nextContext().applyFilter($event)},"LiveChatComponent_mat_form_field_13_Template_input_keyup_enter_3_listener"))("ngModelChange",__name(function($event){i0.\u0275\u0275restoreView(_r21);return i0.\u0275\u0275nextContext().liveChatResult.messageToSend=$event},"LiveChatComponent_mat_form_field_13_Template_input_ngModelChange_3_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"mat-icon",37),i0.\u0275\u0275text(5,"send"),i0.\u0275\u0275elementEnd()()}if(2&rf){const ctx_r3=i0.\u0275\u0275nextContext();i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngModel",ctx_r3.liveChatResult.messageToSend)("disabled",!ctx_r3.canChat)}}function LiveChatComponent_button_14_Template(rf,ctx){if(1&rf){const _r24=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"button",38),i0.\u0275\u0275listener("click",__name(function(){return i0.\u0275\u0275restoreView(_r24),i0.\u0275\u0275nextContext().login()},"LiveChatComponent_button_14_Template_button_click_0_listener")),i0.\u0275\u0275elementStart(1,"mat-icon",39),i0.\u0275\u0275text(2,"vpn_key"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(3," Login Untuk Bisa Mengobrol "),i0.\u0275\u0275elementEnd()}}__name(LiveChatComponent_div_2_mat_option_11_Template,"LiveChatComponent_div_2_mat_option_11_Template"),__name(LiveChatComponent_div_2_div_14_div_1_div_1_Template,"LiveChatComponent_div_2_div_14_div_1_div_1_Template"),__name(LiveChatComponent_div_2_div_14_div_1_Template,"LiveChatComponent_div_2_div_14_div_1_Template"),__name(LiveChatComponent_div_2_div_14_Template,"LiveChatComponent_div_2_div_14_Template"),__name(LiveChatComponent_div_2_Template,"LiveChatComponent_div_2_Template"),__name(LiveChatComponent_div_11_div_1_Template,"LiveChatComponent_div_11_div_1_Template"),__name(LiveChatComponent_div_11_Template,"LiveChatComponent_div_11_Template"),__name(LiveChatComponent_mat_form_field_13_Template,"LiveChatComponent_mat_form_field_13_Template"),__name(LiveChatComponent_button_14_Template,"LiveChatComponent_button_14_Template");const _c1=__name(function(a0){return{height:a0}},"_c1");class LiveChatComponent{constructor(as,gs,ss,ls,router){this.as=as,this.gs=gs,this.ss=ss,this.ls=ls,this.router=router,this.chatOnly=!1,this.liveChatResult={messageToSend:"",roomId:""},this.globalRoom=null,this.fansubRoom=null,this.currentRoom=null,this.messageHistory=[],this.subsCurrentRoom=null,this.subsGlobalRoom=null,this.subsFansubRoom=null,this.firstTimeOpen=!0,this.timedOut=null,this.gs.isBrowser}get AS(){return this.as}get ROUTER(){return this.router}get SS(){return this.ss}ngOnInit(){this.gs.isBrowser&&(this.liveChatResult=this.ls.getItem(this.gs.localStorageKeys.LiveChatResults,!0)||this.liveChatResult,this.liveChatResult.roomId=this.router.url.split("?")[0],this.subsCurrentRoom=this.ss.currentRoom.subscribe({next:current=>{this.currentRoom=current}}),this.subsGlobalRoom=this.ss.globalRoom.subscribe({next:global2=>{this.globalRoom=global2}}),this.subsFansubRoom=this.ss.fansubRoom.subscribe({next:fansub=>{this.fansubRoom=fansub}}))}get CONSTANTS(){return constants_1.CONSTANTS}get isAdminModFansubber(){var _a,_b,_c,_d,_e,_f,_g;return!(!(null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)||(null===(_c=null===(_b=this.as.currentUserSubject)||void 0===_b?void 0:_b.value)||void 0===_c?void 0:_c.role)!==req_res_model_1.RoleModel.ADMIN&&(null===(_e=null===(_d=this.as.currentUserSubject)||void 0===_d?void 0:_d.value)||void 0===_e?void 0:_e.role)!==req_res_model_1.RoleModel.MODERATOR&&(null===(_g=null===(_f=this.as.currentUserSubject)||void 0===_f?void 0:_f.value)||void 0===_g?void 0:_g.role)!==req_res_model_1.RoleModel.FANSUBBER)}get roomCurrentOrGlobal(){return this.liveChatResult.roomId===constants_1.CONSTANTS.socketRoomNameGlobalPublic?this.globalRoom:this.liveChatResult.roomId===constants_1.CONSTANTS.socketRoomNameGlobalFansub?this.fansubRoom:this.currentRoom}get chatCurrentOrGlobal(){return this.liveChatResult.roomId===constants_1.CONSTANTS.socketRoomNameGlobalPublic?this.messageHistory=this.ss.globalChatRoom:this.liveChatResult.roomId===constants_1.CONSTANTS.socketRoomNameGlobalFansub?this.messageHistory=this.ss.fansubChatRoom:this.messageHistory=this.ss.currentChatRoom,this.ss.messageChatUnreadCount>0&&this.scrollMessage(),this.messageHistory}get canChat(){var _a;return!!(null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value)&&(this.liveChatResult.roomId!==constants_1.CONSTANTS.socketRoomNameGlobalFansub||this.isAdminModFansubber)}ngAfterViewInit(){this.gs.isBrowser&&this.scrollMessage()}ngOnDestroy(){var _a,_b;this.ls.setItem(this.gs.localStorageKeys.LiveChatResults,this.liveChatResult),null===(_a=this.subsCurrentRoom)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsGlobalRoom)||void 0===_b||_b.unsubscribe(),this.timedOut&&(clearTimeout(this.timedOut),this.timedOut=null)}innerHtml(text){return this.gs.linkify(this.gs.htmlToText(text))}scrollToBottom(){this.timedOut=setTimeout(()=>{this.ss.messageChatUnreadCount=0,this.liveChatScroll.nativeElement.scrollTop=this.liveChatScroll.nativeElement.scrollHeight},0)}scrollMessage(){this.liveChatScroll&&(this.firstTimeOpen?(this.firstTimeOpen=!1,this.scrollToBottom()):this.liveChatScroll.nativeElement.scrollTop+this.liveChatScroll.nativeElement.clientHeight===this.liveChatScroll.nativeElement.scrollHeight&&this.scrollToBottom())}sendMessage(){this.ss.socketEmit("send-chat",{roomId:this.roomCurrentOrGlobal.room_id,message:this.gs.htmlToText(this.liveChatResult.messageToSend)}),this.liveChatResult.messageToSend=null}applyFilter(event){this.gs.log("[MESSAGE_VALUE_CHANGED]",event),this.liveChatResult.messageToSend=event.target.value.trim().toLowerCase(),this.liveChatResult.messageToSend&&this.sendMessage()}changeRoom(data){this.gs.log("[MESSAGE_ROOM_CHANGED]",data),this.liveChatResult.roomId=data,this.scrollMessage()}login(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url.split("?")[0]}})}openUserProfile(username){this.router.navigateByUrl(`/user/${username}`)}}__name(LiveChatComponent,"LiveChatComponent"),exports2.LiveChatComponent=LiveChatComponent,LiveChatComponent.\u0275fac=__name(function(t){return new(t||LiveChatComponent)(i0.\u0275\u0275directiveInject(i1.AuthService),i0.\u0275\u0275directiveInject(i2.GlobalService),i0.\u0275\u0275directiveInject(i3.StatsServerService),i0.\u0275\u0275directiveInject(i4.LocalStorageService),i0.\u0275\u0275directiveInject(i5.Router))},"LiveChatComponent_Factory"),LiveChatComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:LiveChatComponent,selectors:[["app-live-chat"]],viewQuery:__name(function(rf,ctx){if(1&rf&&i0.\u0275\u0275viewQuery(_c0,5),2&rf){let _t;i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.liveChatScroll=_t.first)}},"LiveChatComponent_Query"),inputs:{chatOnly:"chatOnly"},decls:15,vars:13,consts:[[1,"row",3,"ngStyle"],[1,"col-12","h-100"],["class","row","style","height: 40%!important;",4,"ngIf"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12"],[2,"overflow-y","auto",3,"ngStyle"],["liveChatScroll",""],[3,"class",4,"ngFor","ngForOf"],[1,"col-12","mt-auto"],["class","mt-3 col-12",3,"color",4,"ngIf"],["class","mt-4 col-12 text-light","mat-flat-button","","color","accent",3,"click",4,"ngIf"],[1,"row",2,"height","40%!important"],[1,"border-bottom-dotted","row"],[1,"pt-3","col-12",3,"color"],[3,"value","valueChange"],[3,"value"],[3,"value",4,"ngIf"],[1,"col-12",2,"height","calc(100% - 105px)"],[1,"h-100",2,"overflow-y","auto"],["class","row m-0",4,"ngIf"],[1,"row","m-0"],["class","col-6 p-0",4,"ngFor","ngForOf"],[1,"col-6","p-0"],["class","card d-flex py-1 align-items-center p-1 text-success",3,"routerLink",4,"ngIf"],[1,"card","d-flex","py-1","align-items-center","p-1","text-success",3,"routerLink"],[1,"flex-shrink-0"],["height","24","width","24",1,"ms-1","mt-1",3,"src"],[1,"flex-grow-1","mx-1","text-truncate"],["matLine","",1,"m-0"],["class","flex-shrink-0",4,"ngIf"],[1,"flex-grow-1","mx-1","my-auto"],[1,"me-1","text-success",2,"cursor","pointer",3,"click"],[1,"text-warning",2,"word-break","break-word",3,"innerHtml"],[1,"mt-3","col-12",3,"color"],["matInput","","maxlength","200","placeholder","Ex. Hello \u4e16\u754c\uff01",3,"ngModel","disabled","keyup.enter","ngModelChange"],["matSuffix",""],["mat-flat-button","","color","accent",1,"mt-4","col-12","text-light",3,"click"],[1,"me-1"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i0.\u0275\u0275template(2,LiveChatComponent_div_2_Template,15,6,"div",2),i0.\u0275\u0275elementStart(3,"div",0)(4,"div",3)(5,"h2",4)(6,"b",5),i0.\u0275\u0275text(7,"Obrolan"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(8,"div",6)(9,"div",7,8),i0.\u0275\u0275template(11,LiveChatComponent_div_11_Template,7,6,"div",9),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(12,"div",10),i0.\u0275\u0275template(13,LiveChatComponent_mat_form_field_13_Template,6,3,"mat-form-field",11),i0.\u0275\u0275template(14,LiveChatComponent_button_14_Template,4,0,"button",12),i0.\u0275\u0275elementEnd()()()()),2&rf&&(i0.\u0275\u0275property("ngStyle",i0.\u0275\u0275pureFunction1(7,_c1,ctx.chatOnly?"":"calc(100vh - 120px)")),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",!ctx.chatOnly),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngStyle",i0.\u0275\u0275pureFunction1(9,_c1,ctx.chatOnly?"100%!important":"60%!important")),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngStyle",i0.\u0275\u0275pureFunction1(11,_c1,ctx.chatOnly?"320px":"calc(50vh - 139px)")),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngForOf",ctx.chatCurrentOrGlobal),i0.\u0275\u0275advance(2),i0.\u0275\u0275property("ngIf",null==ctx.AS.currentUserSubject?null:ctx.AS.currentUserSubject.value),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",!(null!=ctx.AS.currentUserSubject&&ctx.AS.currentUserSubject.value)))},"LiveChatComponent_Template"),directives:[i6.NgStyle,i6.NgIf,i7.MatFormField,i7.MatLabel,i8.MatSelect,i9.MatOption,i6.NgForOf,i5.RouterLink,i9.MatLine,i10.MatInput,i11.DefaultValueAccessor,i11.MaxLengthValidator,i11.NgControlStatus,i11.NgModel,i12.MatIcon,i7.MatSuffix,i13.MatButton],pipes:[i6.KeyValuePipe],styles:[".card[_ngcontent-%COMP%]{position:inherit;display:flex;flex-direction:row;min-width:0;overflow-wrap:anywhere;background-color:#0000!important;background-clip:border-box;border:none;border-radius:.25rem;cursor:pointer}.card[_ngcontent-%COMP%]:hover{color:#ffc107!important}"]})},13223:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RightPanelComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(56514),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(56514)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(69808));function RightPanelComponent_ng_container_3_Template(rf,ctx){1&rf&&i0.\u0275\u0275elementContainer(0,4)}__name(RightPanelComponent_ng_container_3_Template,"RightPanelComponent_ng_container_3_Template");class RightPanelComponent{constructor(rps,gs){this.rps=rps,this.gs=gs,this.gs.isBrowser}get RPS(){return this.rps}ngOnInit(){}}__name(RightPanelComponent,"RightPanelComponent"),exports2.RightPanelComponent=RightPanelComponent,RightPanelComponent.\u0275fac=__name(function(t){return new(t||RightPanelComponent)(i0.\u0275\u0275directiveInject(i1.RightPanelService),i0.\u0275\u0275directiveInject(i2.GlobalService))},"RightPanelComponent_Factory"),RightPanelComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:RightPanelComponent,selectors:[["app-right-panel"]],decls:4,vars:1,consts:[[1,"sidepanel_container","p-3"],[1,"row"],[1,"col-12"],["ngIf","rps.component",4,"ngComponentOutlet"],["ngIf","rps.component"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),i0.\u0275\u0275template(3,RightPanelComponent_ng_container_3_Template,1,0,"ng-container",3),i0.\u0275\u0275elementEnd()()()),2&rf&&(i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngComponentOutlet",ctx.RPS.componentView))},"RightPanelComponent_Template"),directives:[i3.NgComponentOutlet,i3.NgIf],styles:[".sidepanel_container[_ngcontent-%COMP%]{max-width:320px}.mat-list-item-content[_ngcontent-%COMP%]{padding:0!important}"]})},85116:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RightPanelModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),router_1=__webpack_require__2(74202),forms_1=__webpack_require__2(93075),shared_material_module_1=__webpack_require__2(20210),i0=tslib_1.__importStar(__webpack_require__2(5e3));class RightPanelModule{}__name(RightPanelModule,"RightPanelModule"),exports2.RightPanelModule=RightPanelModule,RightPanelModule.\u0275fac=__name(function(t){return new(t||RightPanelModule)},"RightPanelModule_Factory"),RightPanelModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:RightPanelModule}),RightPanelModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,router_1.RouterModule,forms_1.FormsModule,shared_material_module_1.SharedMaterialModule]]})},62644:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SearchAllComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(80855),__webpack_require__2(49618),__webpack_require__2(55393),__webpack_require__2(52663),__webpack_require__2(80519),__webpack_require__2(18439),__webpack_require__2(76781),__webpack_require__2(8987),__webpack_require__2(8058),__webpack_require__2(53379),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(49618)),i3=tslib_1.__importStar(__webpack_require__2(55393)),i4=tslib_1.__importStar(__webpack_require__2(52663)),i5=tslib_1.__importStar(__webpack_require__2(80519)),i6=tslib_1.__importStar(__webpack_require__2(18439)),i7=tslib_1.__importStar(__webpack_require__2(76781)),i8=tslib_1.__importStar(__webpack_require__2(8987)),i9=tslib_1.__importStar(__webpack_require__2(8058)),i10=tslib_1.__importStar(__webpack_require__2(53379)),i11=tslib_1.__importStar(__webpack_require__2(67322)),i12=tslib_1.__importStar(__webpack_require__2(77531)),i13=tslib_1.__importStar(__webpack_require__2(93075)),i14=tslib_1.__importStar(__webpack_require__2(25245)),i15=tslib_1.__importStar(__webpack_require__2(69808)),i16=tslib_1.__importStar(__webpack_require__2(14623)),i17=tslib_1.__importStar(__webpack_require__2(74202)),i18=tslib_1.__importStar(__webpack_require__2(90508));function SearchAllComponent_div_9_mat_list_option_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option",11),i0.\u0275\u0275element(1,"img",12),i0.\u0275\u0275elementStart(2,"h4",13),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"h5",13)(5,"span",14),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(7," \xa0 "),i0.\u0275\u0275elementStart(8,"span",15),i0.\u0275\u0275text(9),i0.\u0275\u0275pipe(10,"date"),i0.\u0275\u0275elementEnd()()()),2&rf){const b_r8=ctx.$implicit;i0.\u0275\u0275propertyInterpolate1("routerLink","/news/",b_r8.id,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",b_r8.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(b_r8.title),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(b_r8.user_.username),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind2(10,5,b_r8.created_at,"d-MM-y"))}}function SearchAllComponent_div_9_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),i0.\u0275\u0275text(4,"Berita"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",5)(6,"mat-selection-list",9),i0.\u0275\u0275template(7,SearchAllComponent_div_9_mat_list_option_7_Template,11,8,"mat-list-option",10),i0.\u0275\u0275pipe(8,"slice"),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(6),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind3(8,2,ctx_r0.searchResult.beritaResults,0,5))}}function SearchAllComponent_div_10_mat_list_option_7_Template(rf,ctx){if(1&rf){const _r12=i0.\u0275\u0275getCurrentView();i0.\u0275\u0275elementStart(0,"mat-list-option",17),i0.\u0275\u0275listener("click",__name(function(){const k_r10=i0.\u0275\u0275restoreView(_r12).$implicit;return i0.\u0275\u0275nextContext(2).openEdict(k_r10)},"SearchAllComponent_div_10_mat_list_option_7_Template_mat_list_option_click_0_listener")),i0.\u0275\u0275elementStart(1,"h4",18),i0.\u0275\u0275text(2),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"h5",18)(4,"span",14),i0.\u0275\u0275text(5),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(6," \xa0 "),i0.\u0275\u0275elementStart(7,"span",15),i0.\u0275\u0275text(8),i0.\u0275\u0275elementEnd()()()}if(2&rf){const k_r10=ctx.$implicit;i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate3(" ",k_r10.character," | ",k_r10.v_kunyomi,"| ",k_r10.v_onyomi," "),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1("N",k_r10.jlpt,""),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(k_r10.translate)}}function SearchAllComponent_div_10_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),i0.\u0275\u0275text(4,"Kanji"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",5)(6,"mat-selection-list",9),i0.\u0275\u0275template(7,SearchAllComponent_div_10_mat_list_option_7_Template,9,5,"mat-list-option",16),i0.\u0275\u0275pipe(8,"slice"),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r1=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(6),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind3(8,2,ctx_r1.searchResult.kanjiResults,0,5))}}function SearchAllComponent_div_11_mat_list_option_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option",11),i0.\u0275\u0275element(1,"img",12),i0.\u0275\u0275elementStart(2,"h4",13),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"h5",13)(5,"span",14),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(7," \xa0 "),i0.\u0275\u0275elementStart(8,"span",15),i0.\u0275\u0275text(9),i0.\u0275\u0275elementEnd()()()),2&rf){const a_r14=ctx.$implicit,ctx_r13=i0.\u0275\u0275nextContext(2);i0.\u0275\u0275propertyInterpolate2("routerLink","/anime/",a_r14.id,"-",ctx_r13.getAnimeTitle(a_r14.title),""),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",a_r14.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(a_r14.title),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(a_r14.id),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate2("",a_r14.num_episodes," Eps ",null==a_r14.media_type?null:a_r14.media_type.toUpperCase(),"")}}function SearchAllComponent_div_11_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),i0.\u0275\u0275text(4,"Anime"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",5)(6,"mat-selection-list",9),i0.\u0275\u0275template(7,SearchAllComponent_div_11_mat_list_option_7_Template,10,7,"mat-list-option",10),i0.\u0275\u0275pipe(8,"slice"),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r2=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(6),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind3(8,2,ctx_r2.searchResult.animeResults,0,5))}}function SearchAllComponent_div_12_mat_list_option_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option",11),i0.\u0275\u0275element(1,"img",12),i0.\u0275\u0275elementStart(2,"h4",13),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"h5",13)(5,"span",14),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(7," \xa0 "),i0.\u0275\u0275elementStart(8,"span",15),i0.\u0275\u0275text(9),i0.\u0275\u0275elementEnd()()()),2&rf){const d_r16=ctx.$implicit;i0.\u0275\u0275propertyInterpolate1("routerLink","/dorama/",d_r16.slug,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",d_r16.thumb,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(d_r16.title),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(d_r16.mdl_id),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(d_r16.type)}}function SearchAllComponent_div_12_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),i0.\u0275\u0275text(4,"Dorama"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",5)(6,"mat-selection-list",9),i0.\u0275\u0275template(7,SearchAllComponent_div_12_mat_list_option_7_Template,10,5,"mat-list-option",10),i0.\u0275\u0275pipe(8,"slice"),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(6),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind3(8,2,ctx_r3.searchResult.doramaResults,0,5))}}function SearchAllComponent_div_13_mat_list_option_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option",11),i0.\u0275\u0275element(1,"img",12),i0.\u0275\u0275elementStart(2,"h4",13),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"h5",13)(5,"span",14),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(7," \xa0 "),i0.\u0275\u0275elementStart(8,"span",15),i0.\u0275\u0275text(9),i0.\u0275\u0275pipe(10,"date"),i0.\u0275\u0275elementEnd()()()),2&rf){const f_r18=ctx.$implicit;i0.\u0275\u0275propertyInterpolate1("routerLink","/fansub/",f_r18.slug,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",f_r18.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(f_r18.name),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(f_r18.active?"Aktif":"Tidak Aktif"),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind2(10,5,f_r18.born,"d-MM-y"))}}function SearchAllComponent_div_13_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),i0.\u0275\u0275text(4,"Fansub"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",5)(6,"mat-selection-list",9),i0.\u0275\u0275template(7,SearchAllComponent_div_13_mat_list_option_7_Template,11,8,"mat-list-option",10),i0.\u0275\u0275pipe(8,"slice"),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r4=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(6),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind3(8,2,ctx_r4.searchResult.fansubResults,0,5))}}function SearchAllComponent_div_14_mat_list_option_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option",11),i0.\u0275\u0275element(1,"img",12),i0.\u0275\u0275elementStart(2,"h4",13),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"h5",13)(5,"span",14),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(7," \xa0 "),i0.\u0275\u0275elementStart(8,"span",15),i0.\u0275\u0275text(9),i0.\u0275\u0275pipe(10,"date"),i0.\u0275\u0275elementEnd()()()),2&rf){const b_r20=ctx.$implicit;i0.\u0275\u0275propertyInterpolate1("routerLink","/berkas/",b_r20.id,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",b_r20.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(b_r20.name),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(b_r20.user_.username),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind2(10,5,b_r20.created_at,"d-MM-y"))}}function SearchAllComponent_div_14_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),i0.\u0275\u0275text(4,"Berkas"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",5)(6,"mat-selection-list",9),i0.\u0275\u0275template(7,SearchAllComponent_div_14_mat_list_option_7_Template,11,8,"mat-list-option",10),i0.\u0275\u0275pipe(8,"slice"),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r5=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(6),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind3(8,2,ctx_r5.searchResult.berkasResults,0,5))}}function SearchAllComponent_div_15_mat_list_option_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"mat-list-option",11),i0.\u0275\u0275element(1,"img",12),i0.\u0275\u0275elementStart(2,"h4",13),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(4,"h5",13)(5,"span",14),i0.\u0275\u0275text(6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275text(7," \xa0 "),i0.\u0275\u0275elementStart(8,"span",15),i0.\u0275\u0275text(9),i0.\u0275\u0275pipe(10,"date"),i0.\u0275\u0275elementEnd()()()),2&rf){const p_r22=ctx.$implicit;i0.\u0275\u0275propertyInterpolate1("routerLink","/user/",p_r22.username,""),i0.\u0275\u0275advance(1),i0.\u0275\u0275propertyInterpolate("src",p_r22.image_url,i0.\u0275\u0275sanitizeUrl),i0.\u0275\u0275advance(2),i0.\u0275\u0275textInterpolate(p_r22.kartu_tanda_penduduk_.nama),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(p_r22.id),i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate(i0.\u0275\u0275pipeBind2(10,5,p_r22.created_at,"d-MM-y"))}}function SearchAllComponent_div_15_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),i0.\u0275\u0275text(4,"Pengguna"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",5)(6,"mat-selection-list",9),i0.\u0275\u0275template(7,SearchAllComponent_div_15_mat_list_option_7_Template,11,8,"mat-list-option",10),i0.\u0275\u0275pipe(8,"slice"),i0.\u0275\u0275elementEnd()()()),2&rf){const ctx_r6=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(6),i0.\u0275\u0275property("multiple",!1),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngForOf",i0.\u0275\u0275pipeBind3(8,2,ctx_r6.searchResult.penggunaResults,0,5))}}__name(SearchAllComponent_div_9_mat_list_option_7_Template,"SearchAllComponent_div_9_mat_list_option_7_Template"),__name(SearchAllComponent_div_9_Template,"SearchAllComponent_div_9_Template"),__name(SearchAllComponent_div_10_mat_list_option_7_Template,"SearchAllComponent_div_10_mat_list_option_7_Template"),__name(SearchAllComponent_div_10_Template,"SearchAllComponent_div_10_Template"),__name(SearchAllComponent_div_11_mat_list_option_7_Template,"SearchAllComponent_div_11_mat_list_option_7_Template"),__name(SearchAllComponent_div_11_Template,"SearchAllComponent_div_11_Template"),__name(SearchAllComponent_div_12_mat_list_option_7_Template,"SearchAllComponent_div_12_mat_list_option_7_Template"),__name(SearchAllComponent_div_12_Template,"SearchAllComponent_div_12_Template"),__name(SearchAllComponent_div_13_mat_list_option_7_Template,"SearchAllComponent_div_13_mat_list_option_7_Template"),__name(SearchAllComponent_div_13_Template,"SearchAllComponent_div_13_Template"),__name(SearchAllComponent_div_14_mat_list_option_7_Template,"SearchAllComponent_div_14_mat_list_option_7_Template"),__name(SearchAllComponent_div_14_Template,"SearchAllComponent_div_14_Template"),__name(SearchAllComponent_div_15_mat_list_option_7_Template,"SearchAllComponent_div_15_mat_list_option_7_Template"),__name(SearchAllComponent_div_15_Template,"SearchAllComponent_div_15_Template");class SearchAllComponent{constructor(gs,news,ds,nihon,anime,dorama,fansub,berkas,user,ls){this.gs=gs,this.news=news,this.ds=ds,this.nihon=nihon,this.anime=anime,this.dorama=dorama,this.fansub=fansub,this.berkas=berkas,this.user=user,this.ls=ls,this.searchResult={q:"",beritaResults:[],kanjiResults:[],animeResults:[],doramaResults:[],fansubResults:[],berkasResults:[],penggunaResults:[]},this.subsBerita=null,this.subsKanji=null,this.subsAnime=null,this.subsDorama=null,this.subsFansub=null,this.subsBerkas=null,this.subsPengguna=null,this.subsDialog=null,this.timedOut1=null,this.timedOut2=null,this.timedOut3=null,this.timedOut4=null,this.timedOut5=null,this.timedOut6=null,this.timedOut7=null,this.gs.isBrowser}ngOnInit(){this.gs.isBrowser&&(this.searchResult=this.ls.getItem(this.gs.localStorageKeys.SearchResults,!0)||this.searchResult)}ngOnDestroy(){var _a,_b,_c,_d,_e,_f,_g,_h;this.ls.setItem(this.gs.localStorageKeys.SearchResults,this.searchResult),null===(_a=this.subsBerita)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsKanji)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsAnime)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsDorama)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsFansub)||void 0===_e||_e.unsubscribe(),null===(_f=this.subsBerkas)||void 0===_f||_f.unsubscribe(),null===(_g=this.subsPengguna)||void 0===_g||_g.unsubscribe(),null===(_h=this.subsDialog)||void 0===_h||_h.unsubscribe(),this.timedOut1&&(clearTimeout(this.timedOut1),this.timedOut1=null),this.timedOut2&&(clearTimeout(this.timedOut2),this.timedOut2=null),this.timedOut3&&(clearTimeout(this.timedOut3),this.timedOut3=null),this.timedOut4&&(clearTimeout(this.timedOut4),this.timedOut4=null),this.timedOut5&&(clearTimeout(this.timedOut5),this.timedOut5=null),this.timedOut6&&(clearTimeout(this.timedOut6),this.timedOut6=null),this.timedOut7&&(clearTimeout(this.timedOut7),this.timedOut7=null)}applyFilter(event){this.gs.log("[SEARCH_VALUE_CHANGED]",event),this.searchResult.q=event.target.value.trim().toLowerCase(),this.searchResult.beritaResults=[],this.searchResult.kanjiResults=[],this.searchResult.animeResults=[],this.searchResult.doramaResults=[],this.searchResult.fansubResults=[],this.searchResult.berkasResults=[],this.searchResult.penggunaResults=[],this.searchResult.q&&(this.timedOut1=setTimeout(()=>{this.getNews()},250),this.timedOut2=setTimeout(()=>{this.getKanji()},500),this.timedOut3=setTimeout(()=>{this.getAnime()},750),this.timedOut4=setTimeout(()=>{this.getDorama()},1e3),this.timedOut5=setTimeout(()=>{this.getFansub()},1250),this.timedOut6=setTimeout(()=>{this.getBerkas()},1500),this.timedOut7=setTimeout(()=>{this.getPengguna()},1750))}openEdict(kana){this.gs.log("[HIRAKATA_OPEN_EDICT]",kana),this.subsDialog=this.ds.openEdictDialog({data:{character:kana.character,context:kana.context,freq:kana.freq,gakken:kana.gakken,harlpern_kkld:kana.harlpern_kkld,harlpern_njecd:kana.harlpern_njecd,jlpt:kana.jlpt,maniette:kana.maniette,nelson_c:kana.nelson_c,nelson_n:kana.nelson_n,remember:kana.remember,school:kana.school,skip:kana.skip,stroke:kana.stroke,translate:kana.translate,v_kunyomi:kana.v_kunyomi,v_onyomi:kana.v_onyomi},disableClose:!1}).afterClosed().subscribe({next:re=>{this.gs.log("[EDICT_DIALOG_CLOSED]",re),this.subsDialog.unsubscribe()}})}getNews(){this.subsBerita&&this.subsBerita.unsubscribe(),this.subsBerita=this.news.getAllNews(this.searchResult.q,1,5).subscribe({next:res=>{this.gs.log("[NEWS_SEARCH_SUCCESS]",res),this.searchResult.beritaResults=res.results},error:err=>{this.gs.log("[NEWS_SEARCH_ERROR]",err,"error")}})}getKanji(){this.subsKanji&&this.subsKanji.unsubscribe(),this.subsKanji=this.nihon.getAllKanji("","",this.searchResult.q,1,5).subscribe({next:res=>{this.gs.log("[KANJI_SEARCH_SUCCESS]",res),this.searchResult.kanjiResults=res.results},error:err=>{this.gs.log("[KANJI_SEARCH_ERROR]",err,"error")}})}getAnimeTitle(title){return title.replace(/[^a-zA-Z0-9]/g,"-")}getAnime(){this.subsAnime&&this.subsAnime.unsubscribe(),this.subsAnime=this.anime.searchAnime(this.searchResult.q).subscribe({next:res=>{this.gs.log("[ANIME_SEARCH_SUCCESS]",res),this.searchResult.animeResults=res.results},error:err=>{this.gs.log("[ANIME_SEARCH_ERROR]",err,"error")}})}getDorama(){this.subsDorama&&this.subsDorama.unsubscribe(),this.subsDorama=this.dorama.searchDorama(this.searchResult.q).subscribe({next:res=>{this.gs.log("[DORAMA_SEARCH_SUCCESS]",res),this.searchResult.doramaResults=res.results},error:err=>{this.gs.log("[DORAMA_SEARCH_ERROR]",err,"error")}})}getFansub(){this.subsFansub&&this.subsFansub.unsubscribe(),this.subsFansub=this.fansub.searchFansub(this.searchResult.q,1,5).subscribe({next:res=>{this.gs.log("[FANSUB_SEARCH_SUCCESS]",res),this.searchResult.fansubResults=res.results},error:err=>{this.gs.log("[FANSUB_SEARCH_ERROR]",err,"error")}})}getBerkas(){this.subsBerkas&&this.subsBerkas.unsubscribe(),this.subsBerkas=this.berkas.getAllBerkas(this.searchResult.q,1,5).subscribe({next:res=>{this.gs.log("[BERKAS_SEARCH_SUCCESS]",res),this.searchResult.berkasResults=res.results},error:err=>{this.gs.log("[BERKAS_SEARCH_ERROR]",err,"error")}})}getPengguna(){this.subsPengguna&&this.subsPengguna.unsubscribe(),this.subsPengguna=this.user.getAllUser(this.searchResult.q,1,5).subscribe({next:res=>{this.gs.log("[PENGGUNA_SEARCH_SUCCESS]",res),this.searchResult.penggunaResults=res.results},error:err=>{this.gs.log("[PENGGUNA_SEARCH_ERROR]",err,"error")}})}}__name(SearchAllComponent,"SearchAllComponent"),exports2.SearchAllComponent=SearchAllComponent,SearchAllComponent.\u0275fac=__name(function(t){return new(t||SearchAllComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService),i0.\u0275\u0275directiveInject(i2.NewsService),i0.\u0275\u0275directiveInject(i3.DialogService),i0.\u0275\u0275directiveInject(i4.NihongoService),i0.\u0275\u0275directiveInject(i5.AnimeService),i0.\u0275\u0275directiveInject(i6.DoramaService),i0.\u0275\u0275directiveInject(i7.FansubService),i0.\u0275\u0275directiveInject(i8.BerkasService),i0.\u0275\u0275directiveInject(i9.UserService),i0.\u0275\u0275directiveInject(i10.LocalStorageService))},"SearchAllComponent_Factory"),SearchAllComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:SearchAllComponent,selectors:[["app-search-all"]],decls:16,vars:9,consts:[[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"ms-auto","pt-3","col-12",3,"color"],["matInput","","maxlength","200","placeholder","Ex. \u3070\u30fc\u304b\u30fc\uff01",3,"ngModel","keyup.enter","ngModelChange"],["matSuffix",""],[1,"col-12"],["class","row",4,"ngIf"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"pt-0",3,"multiple"],[3,"routerLink",4,"ngFor","ngForOf"],[3,"routerLink"],["matListAvatar","",1,"ms-3",2,"border-radius","0",3,"src"],["matLine",""],[1,"text-warning"],[1,"text-success"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["matLine","",1,"ms-3"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),i0.\u0275\u0275text(4,"Cari Apapun Di Sini ..."),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(5,"input",3),i0.\u0275\u0275listener("keyup.enter",__name(function($event){return ctx.applyFilter($event)},"SearchAllComponent_Template_input_keyup_enter_5_listener"))("ngModelChange",__name(function($event){return ctx.searchResult.q=$event},"SearchAllComponent_Template_input_ngModelChange_5_listener")),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"mat-icon",4),i0.\u0275\u0275text(7,"search"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(8,"div",5),i0.\u0275\u0275template(9,SearchAllComponent_div_9_Template,9,6,"div",6),i0.\u0275\u0275template(10,SearchAllComponent_div_10_Template,9,6,"div",6),i0.\u0275\u0275template(11,SearchAllComponent_div_11_Template,9,6,"div",6),i0.\u0275\u0275template(12,SearchAllComponent_div_12_Template,9,6,"div",6),i0.\u0275\u0275template(13,SearchAllComponent_div_13_Template,9,6,"div",6),i0.\u0275\u0275template(14,SearchAllComponent_div_14_Template,9,6,"div",6),i0.\u0275\u0275template(15,SearchAllComponent_div_15_Template,9,6,"div",6),i0.\u0275\u0275elementEnd()()),2&rf&&(i0.\u0275\u0275advance(2),i0.\u0275\u0275property("color","accent"),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("ngModel",ctx.searchResult.q),i0.\u0275\u0275advance(4),i0.\u0275\u0275property("ngIf",ctx.searchResult.beritaResults.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.searchResult.kanjiResults.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.searchResult.animeResults.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.searchResult.doramaResults.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.searchResult.fansubResults.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.searchResult.berkasResults.length>0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.searchResult.penggunaResults.length>0))},"SearchAllComponent_Template"),directives:[i11.MatFormField,i11.MatLabel,i12.MatInput,i13.DefaultValueAccessor,i13.MaxLengthValidator,i13.NgControlStatus,i13.NgModel,i14.MatIcon,i11.MatSuffix,i15.NgIf,i16.MatSelectionList,i15.NgForOf,i16.MatListOption,i17.RouterLink,i16.MatListAvatarCssMatStyler,i18.MatLine],pipes:[i15.SlicePipe,i15.DatePipe],styles:[""]})},8921:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.StatsServerComponent=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(80855),__webpack_require__2(28381),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(28381)),i3=tslib_1.__importStar(__webpack_require__2(69808)),i4=tslib_1.__importStar(__webpack_require__2(23626));function StatsServerComponent_p_6_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"p",6),i0.\u0275\u0275text(1," Portal :: "),i0.\u0275\u0275elementStart(2,"span",8),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r0=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",null==ctx_r0.SS.github?null:ctx_r0.SS.github.sha," ")}}function StatsServerComponent_p_7_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"p",6),i0.\u0275\u0275text(1," Date :: "),i0.\u0275\u0275elementStart(2,"span",8),i0.\u0275\u0275text(3),i0.\u0275\u0275pipe(4,"date"),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r1=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",i0.\u0275\u0275pipeBind2(4,1,null==ctx_r1.SS.github||null==ctx_r1.SS.github.commit||null==ctx_r1.SS.github.commit.author?null:ctx_r1.SS.github.commit.author.date,"d MMM y, hh:mm:ss a z")," ")}}function StatsServerComponent_p_8_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"p",6),i0.\u0275\u0275text(1," Message :: "),i0.\u0275\u0275elementStart(2,"span",7),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r2=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",null==ctx_r2.SS.github||null==ctx_r2.SS.github.commit?null:ctx_r2.SS.github.commit.message," ")}}function StatsServerComponent_p_13_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"p",6),i0.\u0275\u0275text(1," Socket :: "),i0.\u0275\u0275elementStart(2,"span",8),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r3=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",null!=ctx_r3.SS.mySocket&&ctx_r3.SS.mySocket.id?ctx_r3.SS.mySocket.id:"Sambungan Terputus"," ")}}function StatsServerComponent_p_14_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"p",6),i0.\u0275\u0275text(1," Latency :: "),i0.\u0275\u0275elementStart(2,"span"),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r4=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(2),i0.\u0275\u0275classMapInterpolate1("text-",ctx_r4.SS.latency>75?"warning":"success",""),i0.\u0275\u0275advance(1),i0.\u0275\u0275textInterpolate1(" ",ctx_r4.SS.latency," ms ")}}function StatsServerComponent_p_15_Template(rf,ctx){if(1&rf&&(i0.\u0275\u0275elementStart(0,"p",6),i0.\u0275\u0275text(1," Nodes :: "),i0.\u0275\u0275elementStart(2,"span",8),i0.\u0275\u0275text(3),i0.\u0275\u0275elementEnd()()),2&rf){const ctx_r5=i0.\u0275\u0275nextContext();i0.\u0275\u0275advance(3),i0.\u0275\u0275textInterpolate1(" ",ctx_r5.SS.visitor," Koneksi ")}}__name(StatsServerComponent_p_6_Template,"StatsServerComponent_p_6_Template"),__name(StatsServerComponent_p_7_Template,"StatsServerComponent_p_7_Template"),__name(StatsServerComponent_p_8_Template,"StatsServerComponent_p_8_Template"),__name(StatsServerComponent_p_13_Template,"StatsServerComponent_p_13_Template"),__name(StatsServerComponent_p_14_Template,"StatsServerComponent_p_14_Template"),__name(StatsServerComponent_p_15_Template,"StatsServerComponent_p_15_Template");class StatsServerComponent{constructor(gs,ss){this.gs=gs,this.ss=ss,this.currentServer=null,this.subsServer=null,this.gs.isBrowser}get SS(){return this.ss}ngOnInit(){this.gs.isBrowser&&(this.subsServer=this.ss.currentServer.subscribe({next:server=>this.currentServer=server}))}ngOnDestroy(){var _a;null===(_a=this.subsServer)||void 0===_a||_a.unsubscribe()}}__name(StatsServerComponent,"StatsServerComponent"),exports2.StatsServerComponent=StatsServerComponent,StatsServerComponent.\u0275fac=__name(function(t){return new(t||StatsServerComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService),i0.\u0275\u0275directiveInject(i2.StatsServerService))},"StatsServerComponent_Factory"),StatsServerComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:StatsServerComponent,selectors:[["app-stats-server"]],decls:37,vars:27,consts:[[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12"],["class","px-2 text-truncate",4,"ngIf"],[1,"px-2","text-truncate"],[1,"text-warning"],[1,"text-success"]],template:__name(function(rf,ctx){1&rf&&(i0.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h2",2)(3,"b",3),i0.\u0275\u0275text(4,"Statistik Server"),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(5,"div",4),i0.\u0275\u0275template(6,StatsServerComponent_p_6_Template,4,1,"p",5),i0.\u0275\u0275template(7,StatsServerComponent_p_7_Template,5,4,"p",5),i0.\u0275\u0275template(8,StatsServerComponent_p_8_Template,4,1,"p",5),i0.\u0275\u0275elementStart(9,"p",6),i0.\u0275\u0275text(10," Server :: "),i0.\u0275\u0275elementStart(11,"span",7),i0.\u0275\u0275text(12),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275template(13,StatsServerComponent_p_13_Template,4,1,"p",5),i0.\u0275\u0275template(14,StatsServerComponent_p_14_Template,4,4,"p",5),i0.\u0275\u0275template(15,StatsServerComponent_p_15_Template,4,1,"p",5),i0.\u0275\u0275elementStart(16,"p",6),i0.\u0275\u0275text(17," CPUs Load :: "),i0.\u0275\u0275elementStart(18,"span",7),i0.\u0275\u0275text(19),i0.\u0275\u0275pipe(20,"number"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(21,"p",6),i0.\u0275\u0275text(22," RAM Usage :: "),i0.\u0275\u0275elementStart(23,"span",7),i0.\u0275\u0275text(24),i0.\u0275\u0275pipe(25,"bytes"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(26,"p",6),i0.\u0275\u0275text(27," Disk IO (/s) :: "),i0.\u0275\u0275elementStart(28,"span",7),i0.\u0275\u0275text(29),i0.\u0275\u0275pipe(30,"bytes"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(31,"p",6),i0.\u0275\u0275text(32," Net UD (/s) :: "),i0.\u0275\u0275elementStart(33,"span",7),i0.\u0275\u0275text(34),i0.\u0275\u0275pipe(35,"bytes"),i0.\u0275\u0275pipe(36,"bytes"),i0.\u0275\u0275elementEnd()()()()),2&rf&&(i0.\u0275\u0275advance(6),i0.\u0275\u0275property("ngIf",null==ctx.SS.github?null:ctx.SS.github.sha),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",null==ctx.SS.github||null==ctx.SS.github.commit||null==ctx.SS.github.commit.author?null:ctx.SS.github.commit.author.date),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",null==ctx.SS.github||null==ctx.SS.github.commit?null:ctx.SS.github.commit.message),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate1(" ",null!=ctx.currentServer&&ctx.currentServer.isMaintenance?"Dalam Perbaikan":"Berjalan Normal"," "),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.SS.mySocket),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.SS.latency),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("ngIf",ctx.SS.visitor),i0.\u0275\u0275advance(4),i0.\u0275\u0275textInterpolate1(" ",i0.\u0275\u0275pipeBind2(20,12,ctx.SS.statsServer.mainSite.cpus,"1.2-2")," % "),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1(" ",i0.\u0275\u0275pipeBind2(25,15,ctx.SS.statsServer.mainSite.mem_ram,2)," "),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate1(" ",i0.\u0275\u0275pipeBind2(30,18,ctx.SS.statsServer.mainSite.disk_io,2)," "),i0.\u0275\u0275advance(5),i0.\u0275\u0275textInterpolate2(" ",i0.\u0275\u0275pipeBind2(35,21,ctx.SS.statsServer.mainSite.net_tx,2)," / ",i0.\u0275\u0275pipeBind2(36,24,ctx.SS.statsServer.mainSite.net_rx,2)," "))},"StatsServerComponent_Template"),directives:[i3.NgIf],pipes:[i3.DatePipe,i3.DecimalPipe,i4.BytesPipe],styles:[""]})},10669:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.StatsServerModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),custom_pipe_module_1=__webpack_require__2(67355),i0=tslib_1.__importStar(__webpack_require__2(5e3));class StatsServerModule{}__name(StatsServerModule,"StatsServerModule"),exports2.StatsServerModule=StatsServerModule,StatsServerModule.\u0275fac=__name(function(t){return new(t||StatsServerModule)},"StatsServerModule_Factory"),StatsServerModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:StatsServerModule}),StatsServerModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule,custom_pipe_module_1.CustomPipeModule]]})},34567:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.VjsPlayerComponent=void 0;const tslib_1=__webpack_require__2(70655),video_js_1=tslib_1.__importDefault(__webpack_require__2(37914)),i0=(__webpack_require__2(5e3),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),_c0=["target"];class VjsPlayerComponent{constructor(gs){this.gs=gs,this.subtitlesOctopus=null,this.videoUrl=null,this.videoThumb=null,this.subtitleUrl=null,this.subtitleFonts=[],this.gs.isBrowser}ngOnInit(){this.gs.isBrowser&&this.target&&this.videoUrl&&(this.gs.log("[VIDEO-JS_INIT_URL]",this.videoUrl),this.player=(0,video_js_1.default)(this.target.nativeElement,{autoplay:!1,controls:!0,fluid:!0,muted:!1,sources:[{src:this.videoUrl,type:"video/mp4"}],poster:this.videoThumb},()=>{this.gs.log("[VIDEO-JS_READY]",this.player),this.initSubtitle()}))}ngOnDestroy(){var _a,_b;null===(_a=this.subtitlesOctopus)||void 0===_a||_a.dispose(),null===(_b=this.player)||void 0===_b||_b.dispose()}ngOnChanges(){this.subtitlesOctopus?this.subtitleUrl&&this.subtitlesOctopus.setTrackByUrl(this.subtitleUrl):this.initSubtitle()}initSubtitle(){this.subtitleUrl&&(this.subtitlesOctopus=new SubtitlesOctopus({video:this.target.nativeElement,subUrl:this.subtitleUrl,fonts:this.subtitleFonts,workerUrl:"/assets/lib/subtitles-octopus-worker.js",legacyWorkerUrl:"/assets/lib/subtitles-octopus-worker-legacy.js"}),this.gs.log("[SUBTITLE_INIT]",this.subtitlesOctopus))}}__name(VjsPlayerComponent,"VjsPlayerComponent"),exports2.VjsPlayerComponent=VjsPlayerComponent,VjsPlayerComponent.\u0275fac=__name(function(t){return new(t||VjsPlayerComponent)(i0.\u0275\u0275directiveInject(i1.GlobalService))},"VjsPlayerComponent_Factory"),VjsPlayerComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:VjsPlayerComponent,selectors:[["app-vjs-player"]],viewQuery:__name(function(rf,ctx){if(1&rf&&i0.\u0275\u0275viewQuery(_c0,7),2&rf){let _t;i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.target=_t.first)}},"VjsPlayerComponent_Query"),inputs:{videoUrl:"videoUrl",videoThumb:"videoThumb",subtitleUrl:"subtitleUrl",subtitleFonts:"subtitleFonts"},features:[i0.\u0275\u0275NgOnChangesFeature],decls:2,vars:0,consts:[["controls","","muted","","playsinline","","preload","none",1,"video-js","w-100"],["target",""]],template:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275element(0,"video",0,1)},"VjsPlayerComponent_Template"),styles:[""]})},75290:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.VjsPlayerModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),i0=tslib_1.__importStar(__webpack_require__2(5e3));class VjsPlayerModule{}__name(VjsPlayerModule,"VjsPlayerModule"),exports2.VjsPlayerModule=VjsPlayerModule,VjsPlayerModule.\u0275fac=__name(function(t){return new(t||VjsPlayerModule)},"VjsPlayerModule_Factory"),VjsPlayerModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:VjsPlayerModule}),VjsPlayerModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule]]})},40765:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MyHammerConfig=void 0;const tslib_1=__webpack_require__2(70655),platform_browser_1=__webpack_require__2(22313),i0=tslib_1.__importStar(__webpack_require__2(5e3));class MyHammerConfig extends platform_browser_1.HammerGestureConfig{constructor(){super(...arguments),this.overrides={pinch:{enable:!1},rotate:{enable:!1}}}}__name(MyHammerConfig,"MyHammerConfig"),exports2.MyHammerConfig=MyHammerConfig,MyHammerConfig.\u0275fac=function(){let \u0275MyHammerConfig_BaseFactory;return __name(function(t){return(\u0275MyHammerConfig_BaseFactory||(\u0275MyHammerConfig_BaseFactory=i0.\u0275\u0275getInheritedFactory(MyHammerConfig)))(t||MyHammerConfig)},"MyHammerConfig_Factory")}(),MyHammerConfig.\u0275prov=i0.\u0275\u0275defineInjectable({token:MyHammerConfig,factory:MyHammerConfig.\u0275fac,providedIn:"root"})},17956:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CustomDirectivesModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),i0=tslib_1.__importStar(__webpack_require__2(5e3));class CustomDirectivesModule{}__name(CustomDirectivesModule,"CustomDirectivesModule"),exports2.CustomDirectivesModule=CustomDirectivesModule,CustomDirectivesModule.\u0275fac=__name(function(t){return new(t||CustomDirectivesModule)},"CustomDirectivesModule_Factory"),CustomDirectivesModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:CustomDirectivesModule}),CustomDirectivesModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule]]})},49321:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DomChangeDirective=void 0;const tslib_1=__webpack_require__2(70655),core_1=__webpack_require__2(5e3),i0=(__webpack_require__2(80855),__webpack_require__2(33e3),__webpack_require__2(75979),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(33e3)),i3=tslib_1.__importStar(__webpack_require__2(75979));class DomChangeDirective{constructor(elementRef,gs,bs,furi){var _this=this;if(this.elementRef=elementRef,this.gs=gs,this.bs=bs,this.furi=furi,this.changes=null,this.domChange=new core_1.EventEmitter,this.gs.isBrowser){const element=this.elementRef.nativeElement;this.gs.log("[DOM_NATIVE]",element),this.changes=new MutationObserver(function(){var _ref=_asyncToGenerator(function*(mutations){_this.bs.busyRequestCount>0||(_this.gs.log("[DOM_CHANGE]",mutations),_this.domChange.emit(mutations),_this.processDom(mutations))});return function(_x){return _ref.apply(this,arguments)}}()),this.changes.observe(element,{subtree:!0,childList:!0})}}ngOnDestroy(){var _a;null===(_a=this.changes)||void 0===_a||_a.disconnect()}processDom(mutationsList){for(const mutation of mutationsList)this.furi.watch(mutation)}}__name(DomChangeDirective,"DomChangeDirective"),exports2.DomChangeDirective=DomChangeDirective,DomChangeDirective.\u0275fac=__name(function(t){return new(t||DomChangeDirective)(i0.\u0275\u0275directiveInject(i0.ElementRef),i0.\u0275\u0275directiveInject(i1.GlobalService),i0.\u0275\u0275directiveInject(i2.BusyService),i0.\u0275\u0275directiveInject(i3.FuriganaService))},"DomChangeDirective_Factory"),DomChangeDirective.\u0275dir=i0.\u0275\u0275defineDirective({type:DomChangeDirective,selectors:[["","appDomChange",""]],outputs:{domChange:"domChange"}})},85152:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DragDropDirective=void 0;const tslib_1=__webpack_require__2(70655),core_1=__webpack_require__2(5e3),i0=tslib_1.__importStar(__webpack_require__2(5e3));class DragDropDirective{constructor(){this.fileDropped=new core_1.EventEmitter}onDragOver(evt){evt.preventDefault(),evt.stopPropagation(),this.fileOver=!0}onDragLeave(evt){evt.preventDefault(),evt.stopPropagation(),this.fileOver=!1}ondrop(evt){evt.preventDefault(),evt.stopPropagation(),this.fileOver=!1;let files=evt.dataTransfer.files;files.length>0&&this.fileDropped.emit(files)}}__name(DragDropDirective,"DragDropDirective"),exports2.DragDropDirective=DragDropDirective,DragDropDirective.\u0275fac=__name(function(t){return new(t||DragDropDirective)},"DragDropDirective_Factory"),DragDropDirective.\u0275dir=i0.\u0275\u0275defineDirective({type:DragDropDirective,selectors:[["","appDragDrop",""]],hostVars:2,hostBindings:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275listener("dragover",__name(function($event){return ctx.onDragOver($event)},"DragDropDirective_dragover_HostBindingHandler"))("dragleave",__name(function($event){return ctx.onDragLeave($event)},"DragDropDirective_dragleave_HostBindingHandler"))("drop",__name(function($event){return ctx.ondrop($event)},"DragDropDirective_drop_HostBindingHandler")),2&rf&&i0.\u0275\u0275classProp("fileover",ctx.fileOver)},"DragDropDirective_HostBindings"),outputs:{fileDropped:"fileDropped"}})},2777:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RolesGuard=void 0;const tslib_1=__webpack_require__2(70655),constants_1=(__webpack_require__2(74202),__webpack_require__2(26271)),i0=(__webpack_require__2(4137),__webpack_require__2(33e3),__webpack_require__2(80855),__webpack_require__2(96925),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(4137)),i3=tslib_1.__importStar(__webpack_require__2(96925)),i4=tslib_1.__importStar(__webpack_require__2(80855)),i5=tslib_1.__importStar(__webpack_require__2(33e3));class RolesGuard{constructor(router,as,toast,gs,bs){this.router=router,this.as=as,this.toast=toast,this.gs=gs,this.bs=bs,this.gs.isBrowser}canActivate(route,state){var _a;const requiredRoles=route.data[constants_1.CONSTANTS.decoratorRoles];if(!requiredRoles)return!0;if(this.gs.isBrowser){const user=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value;if(user)return!!requiredRoles.includes(user.role)||(this.bs.clear(),this.toast.error(`Membutuhkan Role :: ${requiredRoles.join(" / ")}`,"Whoops, Akses Ditolak!",null,!0),this.router.navigateByUrl(this.gs.previousUrl||"/"),!1);this.bs.clear(),this.toast.error("Harap Login Terlebih Dahulu~","Whoops, Akses Ditolak!",null,!0)}return this.router.navigate(["/login"],{queryParams:{returnUrl:state.url}}),!1}}__name(RolesGuard,"RolesGuard"),exports2.RolesGuard=RolesGuard,RolesGuard.\u0275fac=__name(function(t){return new(t||RolesGuard)(i0.\u0275\u0275inject(i1.Router),i0.\u0275\u0275inject(i2.AuthService),i0.\u0275\u0275inject(i3.ToastService),i0.\u0275\u0275inject(i4.GlobalService),i0.\u0275\u0275inject(i5.BusyService))},"RolesGuard_Factory"),RolesGuard.\u0275prov=i0.\u0275\u0275defineInjectable({token:RolesGuard,factory:RolesGuard.\u0275fac,providedIn:"root"})},55094:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.VerifiedGuard=void 0;const tslib_1=__webpack_require__2(70655),constants_1=(__webpack_require__2(74202),__webpack_require__2(26271)),i0=(__webpack_require__2(4137),__webpack_require__2(33e3),__webpack_require__2(80855),__webpack_require__2(96925),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(4137)),i3=tslib_1.__importStar(__webpack_require__2(96925)),i4=tslib_1.__importStar(__webpack_require__2(80855)),i5=tslib_1.__importStar(__webpack_require__2(33e3));class VerifiedGuard{constructor(router,as,toast,gs,bs){this.router=router,this.as=as,this.toast=toast,this.gs=gs,this.bs=bs,this.gs.isBrowser}canActivate(route,state){var _a;if(!route.data[constants_1.CONSTANTS.decoratorVerifiedOnly])return!0;if(this.gs.isBrowser){const user=null===(_a=this.as.currentUserSubject)||void 0===_a?void 0:_a.value;if(user)return!!user.verified||(this.bs.clear(),this.toast.error("Khusus Pengguna Terverifikasi","Whoops, Akses Ditolak!",null,!0),this.router.navigateByUrl("/verify"),!1);this.bs.clear(),this.toast.error("Harap Login Terlebih Dahulu~","Whoops, Akses Ditolak!",null,!0)}return this.router.navigate(["/login"],{queryParams:{returnUrl:state.url}}),!1}}__name(VerifiedGuard,"VerifiedGuard"),exports2.VerifiedGuard=VerifiedGuard,VerifiedGuard.\u0275fac=__name(function(t){return new(t||VerifiedGuard)(i0.\u0275\u0275inject(i1.Router),i0.\u0275\u0275inject(i2.AuthService),i0.\u0275\u0275inject(i3.ToastService),i0.\u0275\u0275inject(i4.GlobalService),i0.\u0275\u0275inject(i5.BusyService))},"VerifiedGuard_Factory"),VerifiedGuard.\u0275prov=i0.\u0275\u0275defineInjectable({token:VerifiedGuard,factory:VerifiedGuard.\u0275fac,providedIn:"root"})},41139:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CUSTOM_DATE_FORMATS=exports2.MY_FORMATS=exports2.moment=void 0;const tslib_1=__webpack_require__2(70655),moment_1=tslib_1.__importDefault(__webpack_require__2(8268)),moment_2=tslib_1.__importDefault(__webpack_require__2(8268));exports2.moment=moment_2.default||moment_1.default,exports2.MY_FORMATS={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"YYYY"}},exports2.CUSTOM_DATE_FORMATS={parse:{dateInput:"l, LTS"},display:{dateInput:"l, LTS",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}}},32220:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MyTooltipConfig=void 0,exports2.MyTooltipConfig={showDelay:250,hideDelay:0,touchendHideDelay:0,touchGestures:"off"}},66072:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HttpCancelInterceptor=void 0;const tslib_1=__webpack_require__2(70655),rxjs_1=(__webpack_require__2(40520),__webpack_require__2(76477)),i0=(__webpack_require__2(80855),__webpack_require__2(33e3),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(33e3));class HttpCancelInterceptor{constructor(gs,bs){this.gs=gs,this.bs=bs,this.gs.isBrowser}intercept(request,next){return next.handle(request).pipe((0,rxjs_1.takeUntil)(this.bs.onCancelPendingRequests))}}__name(HttpCancelInterceptor,"HttpCancelInterceptor"),exports2.HttpCancelInterceptor=HttpCancelInterceptor,HttpCancelInterceptor.\u0275fac=__name(function(t){return new(t||HttpCancelInterceptor)(i0.\u0275\u0275inject(i1.GlobalService),i0.\u0275\u0275inject(i2.BusyService))},"HttpCancelInterceptor_Factory"),HttpCancelInterceptor.\u0275prov=i0.\u0275\u0275defineInjectable({token:HttpCancelInterceptor,factory:HttpCancelInterceptor.\u0275fac})},51313:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HttpRequestInterceptor=void 0;const tslib_1=__webpack_require__2(70655),environment_1=(__webpack_require__2(40520),__webpack_require__2(80855),__webpack_require__2(28381),__webpack_require__2(4137),__webpack_require__2(15934)),i0=tslib_1.__importStar(__webpack_require__2(5e3)),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(28381)),i3=tslib_1.__importStar(__webpack_require__2(4137));class HttpRequestInterceptor{constructor(gs,ss,as){this.gs=gs,this.ss=ss,this.as=as,this.gs.isBrowser}intercept(request,next){var _a;const urlTarget=request.url,intercept=urlTarget.startsWith(environment_1.environment.baseUrl)||urlTarget.startsWith(environment_1.environment.apiUrl);if(this.gs.isBrowser&&intercept){if(request=request.clone({withCredentials:!this.gs.isDevMode}),this.as.token){const tokenLength=this.as.token.length,shortToken=this.as.token.slice(0,5)+"....."+this.as.token.slice(tokenLength-5,tokenLength);this.gs.log("[INTERCEPT_JWT]",shortToken),request=request.clone({headers:request.headers.append("Authorization",`Bearer ${this.as.token}`)})}(null===(_a=this.ss.mySocket)||void 0===_a?void 0:_a.id)&&(this.gs.log("[INTERCEPT_SOCKET]",this.ss.mySocket.id),request=request.clone({headers:request.headers.append("x-socket-id",this.ss.mySocket.id)}))}return next.handle(request)}}__name(HttpRequestInterceptor,"HttpRequestInterceptor"),exports2.HttpRequestInterceptor=HttpRequestInterceptor,HttpRequestInterceptor.\u0275fac=__name(function(t){return new(t||HttpRequestInterceptor)(i0.\u0275\u0275inject(i1.GlobalService),i0.\u0275\u0275inject(i2.StatsServerService),i0.\u0275\u0275inject(i3.AuthService))},"HttpRequestInterceptor_Factory"),HttpRequestInterceptor.\u0275prov=i0.\u0275\u0275defineInjectable({token:HttpRequestInterceptor,factory:HttpRequestInterceptor.\u0275fac})},71485:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.HttpResponseInterceptor=void 0;const tslib_1=__webpack_require__2(70655),http_1=__webpack_require__2(40520),operators_1=(__webpack_require__2(74202),__webpack_require__2(83292)),rxjs_1=__webpack_require__2(76477),environment_1=(__webpack_require__2(80855),__webpack_require__2(4137),__webpack_require__2(33e3),__webpack_require__2(28381),__webpack_require__2(53379),__webpack_require__2(96925),__webpack_require__2(15934)),i0=tslib_1.__importStar(__webpack_require__2(5e3)),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(74202)),i3=tslib_1.__importStar(__webpack_require__2(4137)),i4=tslib_1.__importStar(__webpack_require__2(96925)),i5=tslib_1.__importStar(__webpack_require__2(33e3)),i6=tslib_1.__importStar(__webpack_require__2(28381)),i7=tslib_1.__importStar(__webpack_require__2(53379));class HttpResponseInterceptor{constructor(gs,router,as,toast,bs,ss,ls,activatedRoute){this.gs=gs,this.router=router,this.as=as,this.toast=toast,this.bs=bs,this.ss=ss,this.ls=ls,this.activatedRoute=activatedRoute,this.gs.isBrowser}intercept(request,next){return next.handle(request).pipe((0,operators_1.tap)(res=>{if(res instanceof http_1.HttpResponse&&this.gs.isBrowser){let okMessage="UwUu~ Berhasil~",okTitle="Yeay, Selesai!";switch(res&&res.body&&(res.body.info&&(okTitle=res.body.info),res.body.result&&res.body.result.message&&(okMessage=res.body.result.message)),res.status){case 200:this.toast.success(okMessage,okTitle);break;case 201:case 202:this.toast.info(okMessage,okTitle);break;default:this.toast.warning(okMessage,okTitle)}if("GET"===request.method){this.gs.log("[SOCKET_TRACK-SET]",request.url);let pathUrl=request.url;pathUrl.startsWith(environment_1.environment.baseUrl)&&(pathUrl=pathUrl.slice(environment_1.environment.baseUrl.length)),pathUrl.startsWith(environment_1.environment.apiUrl)&&(pathUrl=pathUrl.slice(environment_1.environment.apiUrl.length)),this.ss.socketEmitVolatile("track-set",{pathUrl:pathUrl.split("?")[0]})}}}),(0,operators_1.catchError)(e=>{var _a;if(this.gs.log(`[INTERCEPT_ERROR-${e.status}]`,e.statusText,"error"),this.gs.isBrowser){let errorMessage="Terjadi Kesalahan Pada Jaringan~",errorTitle="Whoops, Server Sibuk T.T";switch(e&&e.error&&(e.error.info&&(errorTitle=e.error.info),e.error.result&&e.error.result.message&&(errorMessage=e.error.result.message)),this.toast.error(errorMessage,errorTitle,null,!0),e.status){case 401:this.as.removeUser(),this.ls.clear(),this.bs.idle(),this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url.split("?")[0]||"/"}});break;case 404:this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:(null===(_a=this.activatedRoute.snapshot.parent)||void 0===_a?void 0:_a.url)||"/"}});break;case 418:this.bs.idle(),this.router.navigate(["/verify"],{queryParams:{returnUrl:this.router.url.split("?")[0]||"/"}})}}return(0,rxjs_1.throwError)(()=>e.error)}))}}__name(HttpResponseInterceptor,"HttpResponseInterceptor"),exports2.HttpResponseInterceptor=HttpResponseInterceptor,HttpResponseInterceptor.\u0275fac=__name(function(t){return new(t||HttpResponseInterceptor)(i0.\u0275\u0275inject(i1.GlobalService),i0.\u0275\u0275inject(i2.Router),i0.\u0275\u0275inject(i3.AuthService),i0.\u0275\u0275inject(i4.ToastService),i0.\u0275\u0275inject(i5.BusyService),i0.\u0275\u0275inject(i6.StatsServerService),i0.\u0275\u0275inject(i7.LocalStorageService),i0.\u0275\u0275inject(i2.ActivatedRoute))},"HttpResponseInterceptor_Factory"),HttpResponseInterceptor.\u0275prov=i0.\u0275\u0275defineInjectable({token:HttpResponseInterceptor,factory:HttpResponseInterceptor.\u0275fac})},20210:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SharedMaterialModule=void 0;const tslib_1=__webpack_require__2(70655),stepper_1=__webpack_require__2(41555),autocomplete_1=__webpack_require__2(91079),badge_1=__webpack_require__2(27544),button_1=__webpack_require__2(47423),card_1=__webpack_require__2(9224),chips_1=__webpack_require__2(26688),datepicker_1=__webpack_require__2(86856),dialog_1=__webpack_require__2(48966),divider_1=__webpack_require__2(4834),expansion_1=__webpack_require__2(81125),grid_list_1=__webpack_require__2(43954),icon_1=__webpack_require__2(25245),input_1=__webpack_require__2(77531),list_1=__webpack_require__2(14623),menu_1=__webpack_require__2(92181),core_1=__webpack_require__2(90508),paginator_1=__webpack_require__2(86087),progress_bar_1=__webpack_require__2(85899),select_1=__webpack_require__2(74107),sidenav_1=__webpack_require__2(2638),slide_toggle_1=__webpack_require__2(32368),stepper_2=__webpack_require__2(55615),table_1=__webpack_require__2(32075),tabs_1=__webpack_require__2(53251),toolbar_1=__webpack_require__2(34594),tooltip_1=__webpack_require__2(87238),snack_bar_1=__webpack_require__2(57261),sort_1=__webpack_require__2(84847),i0=tslib_1.__importStar(__webpack_require__2(5e3));class SharedMaterialModule{}__name(SharedMaterialModule,"SharedMaterialModule"),exports2.SharedMaterialModule=SharedMaterialModule,SharedMaterialModule.\u0275fac=__name(function(t){return new(t||SharedMaterialModule)},"SharedMaterialModule_Factory"),SharedMaterialModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:SharedMaterialModule}),SharedMaterialModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[stepper_1.CdkStepperModule,autocomplete_1.MatAutocompleteModule,badge_1.MatBadgeModule,button_1.MatButtonModule,card_1.MatCardModule,chips_1.MatChipsModule,datepicker_1.MatDatepickerModule,dialog_1.MatDialogModule,divider_1.MatDividerModule,expansion_1.MatExpansionModule,grid_list_1.MatGridListModule,icon_1.MatIconModule,input_1.MatInputModule,list_1.MatListModule,menu_1.MatMenuModule,core_1.MatNativeDateModule,paginator_1.MatPaginatorModule,progress_bar_1.MatProgressBarModule,core_1.MatRippleModule,select_1.MatSelectModule,sidenav_1.MatSidenavModule,slide_toggle_1.MatSlideToggleModule,stepper_2.MatStepperModule,table_1.MatTableModule,tabs_1.MatTabsModule,toolbar_1.MatToolbarModule,tooltip_1.MatTooltipModule,snack_bar_1.MatSnackBarModule,sort_1.MatSortModule]})},23626:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BytesPipe=void 0;const i0=__webpack_require__2(70655).__importStar(__webpack_require__2(5e3));class BytesPipe{static formatResult(result,unit){return`${result} ${unit}`}static calculateResult(format,bytes){const prev=format.prev?BytesPipe.formats[format.prev]:void 0;return prev?bytes/prev.max:bytes}isNumber(value){return"number"==typeof value}isNumberFinite(value){return this.isNumber(value)&&isFinite(value)}isPositive(value){return value>=0}isInteger(value){return value%1==0}toDecimal(value,decimal){return Math.round(value*Math.pow(10,decimal))/Math.pow(10,decimal)}transform(input,decimal=0,from="B",to){if(!(this.isNumberFinite(input)&&this.isNumberFinite(decimal)&&this.isInteger(decimal)&&this.isPositive(decimal)))return input;let bytes=input,unit=from;for(;"B"!==unit;)bytes*=1024,unit=BytesPipe.formats[unit].prev;if(to){const format=BytesPipe.formats[to],result=this.toDecimal(BytesPipe.calculateResult(format,bytes),decimal);return BytesPipe.formatResult(result,to)}for(const key in BytesPipe.formats)if(BytesPipe.formats.hasOwnProperty(key)){const format=BytesPipe.formats[key];if(bytes{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CustomPipeModule=void 0;const tslib_1=__webpack_require__2(70655),common_1=__webpack_require__2(69808),i0=tslib_1.__importStar(__webpack_require__2(5e3));class CustomPipeModule{}__name(CustomPipeModule,"CustomPipeModule"),exports2.CustomPipeModule=CustomPipeModule,CustomPipeModule.\u0275fac=__name(function(t){return new(t||CustomPipeModule)},"CustomPipeModule_Factory"),CustomPipeModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:CustomPipeModule}),CustomPipeModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[common_1.CommonModule]]})},86766:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DateAgoPipe=void 0;const i0=__webpack_require__2(70655).__importStar(__webpack_require__2(5e3));class DateAgoPipe{transform(value,args2){if(value){const detik=Math.floor((+new Date-+new Date(value))/1e3),intervals={tahun:31536e3,bulan:2592e3,minggu:604800,hari:86400,jam:3600,menit:60,detik:1};let counter;for(const i2 of Object.keys(intervals))if(counter=Math.floor(detik/intervals[i2]),counter>0)return counter+" "+i2+" lalu"}return value}}__name(DateAgoPipe,"DateAgoPipe"),exports2.DateAgoPipe=DateAgoPipe,DateAgoPipe.\u0275fac=__name(function(t){return new(t||DateAgoPipe)},"DateAgoPipe_Factory"),DateAgoPipe.\u0275pipe=i0.\u0275\u0275definePipe({name:"dateAgo",type:DateAgoPipe,pure:!0})},11861:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SafeInnerHtmlPipe=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(22313),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(22313));class SafeInnerHtmlPipe{constructor(domSanitizer){this.domSanitizer=domSanitizer}transform(html){return this.domSanitizer.bypassSecurityTrustHtml(html)}}__name(SafeInnerHtmlPipe,"SafeInnerHtmlPipe"),exports2.SafeInnerHtmlPipe=SafeInnerHtmlPipe,SafeInnerHtmlPipe.\u0275fac=__name(function(t){return new(t||SafeInnerHtmlPipe)(i0.\u0275\u0275directiveInject(i1.DomSanitizer,16))},"SafeInnerHtmlPipe_Factory"),SafeInnerHtmlPipe.\u0275pipe=i0.\u0275\u0275definePipe({name:"safeInnerHtml",type:SafeInnerHtmlPipe,pure:!0})},33070:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AdminService=void 0;const tslib_1=__webpack_require__2(70655),environment_1=__webpack_require__2(15934),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class AdminService{constructor(api,gs){this.api=api,this.gs=gs,this.menuList=[{url:"banned-list",name:"Banned List",image_url:null,icon:"lock_open",deskripsi:"Kelola Banned User"},{url:"ddl-list",name:"DDL Lampiran",image_url:null,icon:"insert_drive_file",deskripsi:"Kelola DDL Lampiran"},{url:"dns",name:"CNAME / A Record",image_url:null,icon:"badge",deskripsi:`sub-domain.${environment_1.environment.domain}`},{url:"cors-list",name:"CORS & API Key",image_url:null,icon:"privacy_tip",deskripsi:"Cross-Origin API"},{url:"email",name:"Email",image_url:null,icon:"alternate_email",deskripsi:`email.address@${environment_1.environment.domain}`},{url:"fansub-member",name:"Fansub Members",image_url:null,icon:"stars",deskripsi:"Keanggotaan Fansub"},{url:"information",name:"Informasi Dialog",image_url:null,icon:"live_help",deskripsi:"Popup Info Dialog"},{url:"project-type",name:"Project Type",image_url:null,icon:"loyalty",deskripsi:"Kategori Garapan"},{url:"push-notification",name:"Push Notification",image_url:null,icon:"notifications_active",deskripsi:"Pengumuman Dadakan"},{url:"user-list",name:"User List",image_url:null,icon:"supervisor_account",deskripsi:"Seluruh Member"}],this.gs.isBrowser}getAllNotif(q="",page=1,row=10,sort="",order=""){return this.api.getData(`/notification?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}createNotif(notifData){return this.api.postData("/notification",notifData)}deleteNotif(notifId){return this.api.deleteData(`/notification/${notifId}`)}getAllBanned(q="",page=1,row=10,sort="",order=""){return this.api.getData(`/banned?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}getBanned(bannedUsername){return this.api.patchData("/banned",bannedUsername)}unBan(bannedId){return this.api.deleteData(`/banned/${bannedId}`)}ban(bannedData){return this.api.postData("/banned",bannedData)}proDemote(promoteData){return this.api.postData("/promote",promoteData)}getAllCors(q="",page=1,row=10,sort="",order=""){return this.api.getData(`/api-key?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}revokeCors(corsId){return this.api.deleteData(`/api-key/${corsId}`)}}__name(AdminService,"AdminService"),exports2.AdminService=AdminService,AdminService.\u0275fac=__name(function(t){return new(t||AdminService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"AdminService_Factory"),AdminService.\u0275prov=i0.\u0275\u0275defineInjectable({token:AdminService,factory:AdminService.\u0275fac,providedIn:"root"})},80519:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AnimeService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class AnimeService{constructor(api,gs){this.api=api,this.gs=gs,this.gs.isBrowser}searchAnime(q){return this.api.getData(`/anime?q=${q}`)}getAnime(animeId){return this.api.getData(`/anime/${animeId}`)}addNewAnime(animeData){return this.api.patchData("/anime",animeData)}getSeasonalAnime(year,season){return this.api.getData(`/anime-seasonal?year=${year}&season=${season}`)}getBerkasAnime(animeId=[],q="",page=1,row=10,sort="",order=""){return this.api.patchData(`/anime-berkas?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`,{id:animeId})}getFansubAnime(animeId=[],page=1,row=10){return this.api.patchData(`/anime-fansub?page=${page}&row=${row}`,{id:animeId})}}__name(AnimeService,"AnimeService"),exports2.AnimeService=AnimeService,AnimeService.\u0275fac=__name(function(t){return new(t||AnimeService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"AnimeService_Factory"),AnimeService.\u0275prov=i0.\u0275\u0275defineInjectable({token:AnimeService,factory:AnimeService.\u0275fac,providedIn:"root"})},80698:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ApiKeyService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class ApiKeyService{constructor(api,gs){this.api=api,this.gs=gs,this.gs.isBrowser}getUserApiKey(username){return this.api.getData(`/api-key?username=${username}`)}createApiKey(apiKeyData){return this.api.postData("/api-key",apiKeyData)}editApiKey(apiKeyId,apiKeyData){return this.api.putData(`/api-key/${apiKeyId}`,apiKeyData)}revokeApiKey(apiKeyId){return this.api.deleteData(`/api-key/${apiKeyId}`)}}__name(ApiKeyService,"ApiKeyService"),exports2.ApiKeyService=ApiKeyService,ApiKeyService.\u0275fac=__name(function(t){return new(t||ApiKeyService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"ApiKeyService_Factory"),ApiKeyService.\u0275prov=i0.\u0275\u0275defineInjectable({token:ApiKeyService,factory:ApiKeyService.\u0275fac,providedIn:"root"})},10916:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ApiService=void 0;const tslib_1=__webpack_require__2(70655),http_1=__webpack_require__2(40520),operators_1=__webpack_require__2(83292),environment_1=__webpack_require__2(15934),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(40520)),i2=tslib_1.__importStar(__webpack_require__2(80855));class ApiService{constructor(http,gs){this.http=http,this.gs=gs,this.gs.isBrowser}HTTP_REQ_URL(path){if(path.startsWith("/")){let reqUrl=environment_1.environment.baseUrl;path.startsWith("/api/")||(reqUrl+=environment_1.environment.apiUrl),path=reqUrl+path}return path}getData(path,options={},timedOut=2e4,retryCount=3){return this.gs.log("[API_GET]",path),this.prepareOptions(options),this.http.get(this.HTTP_REQ_URL(path),options).pipe((0,operators_1.timeout)(timedOut),(0,operators_1.retry)(retryCount))}postData(path,model={},multipart=!1,options={},timedOut=3e4){this.gs.log("[API_POST]",path);let body=model;return multipart&&(body=this.prepareFormData(model)),this.prepareOptions(options),this.http.post(this.HTTP_REQ_URL(path),body,options).pipe((0,operators_1.timeout)(timedOut))}putData(path,model={},multipart=!1,options={},timedOut=3e4){this.gs.log("[API_PUT]",path);let body=model;return multipart&&(body=this.prepareFormData(model)),this.prepareOptions(options),this.http.put(this.HTTP_REQ_URL(path),body,options).pipe((0,operators_1.timeout)(timedOut))}patchData(path,model={},multipart=!1,options={},timedOut=3e4){this.gs.log("[API_PATCH]",path);let body=model;return multipart&&(body=this.prepareFormData(model)),this.prepareOptions(options),this.http.patch(this.HTTP_REQ_URL(path),body,options).pipe((0,operators_1.timeout)(timedOut))}deleteData(path,options={},timedOut=2e4,retryCount=3){return this.gs.log("[API_DELETE]",path),this.prepareOptions(options),this.http.delete(this.HTTP_REQ_URL(path),options).pipe((0,operators_1.timeout)(timedOut),(0,operators_1.retry)(retryCount))}prepareOptions(options){options.headers instanceof http_1.HttpHeaders||(options.headers=new http_1.HttpHeaders(options.headers))}prepareFormData(data){const formData=new FormData;for(const key in data)data.hasOwnProperty(key)&&formData.append(key,data[key]);return formData}}__name(ApiService,"ApiService"),exports2.ApiService=ApiService,ApiService.\u0275fac=__name(function(t){return new(t||ApiService)(i0.\u0275\u0275inject(i1.HttpClient),i0.\u0275\u0275inject(i2.GlobalService))},"ApiService_Factory"),ApiService.\u0275prov=i0.\u0275\u0275defineInjectable({token:ApiService,factory:ApiService.\u0275fac,providedIn:"root"})},4137:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AuthService=void 0;const tslib_1=__webpack_require__2(70655),rxjs_1=(__webpack_require__2(74202),__webpack_require__2(76477)),operators_1=__webpack_require__2(83292),i0=(__webpack_require__2(80855),__webpack_require__2(10916),__webpack_require__2(33e3),__webpack_require__2(53379),__webpack_require__2(38379),__webpack_require__2(96925),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(53379)),i5=tslib_1.__importStar(__webpack_require__2(10916)),i6=tslib_1.__importStar(__webpack_require__2(38379)),i7=tslib_1.__importStar(__webpack_require__2(96925));class AuthService{constructor(router,gs,bs,ls,api,cs,toast){var _a;this.router=router,this.gs=gs,this.bs=bs,this.ls=ls,this.api=api,this.cs=cs,this.toast=toast,this.currentUserSubject=new rxjs_1.BehaviorSubject(null),this.currentUser=null===(_a=this.currentUserSubject)||void 0===_a?void 0:_a.asObservable(),this.token=null,this.timeOut=null,this.timeoutToast=null,this.gs.isBrowser&&(this.token=this.ls.getItem(this.gs.localStorageKeys.token),this.ls.removeItem(this.gs.localStorageKeys.token))}verify(token){return this.gs.log("[AUTH_VERIFY]",token),this.api.patchData("/verify",{token}).pipe((0,operators_1.tap)(respVerify=>{var _a;if(null===(_a=this.currentUserSubject)||void 0===_a||_a.next(respVerify.result),this.token=respVerify.token,this.token){this.timeOut&&(clearTimeout(this.timeOut),this.timeOut=null),this.timeoutToast&&(this.toast.remove(this.timeoutToast.toastId),this.timeoutToast=null);const expires=new Date(1e3*this.cs.jwtView(this.token).exp),minBefore=3e5,notifTime=expires.getTime()-minBefore;this.timeOut=setTimeout(()=>{this.timeoutToast=this.toast.warning("Sesi Akun Akan Habis!","Silahkan Logout & Login Ulang ...",{closeButton:!1,timeOut:minBefore,disableTimeOut:"extendedTimeOut",tapToDismiss:!1,progressAnimation:"decreasing"},!0)},notifTime-Date.now())}}))}resendActivation(id){return this.gs.log("[AUTH_ACTIVATION]",id),this.api.postData("/aktivasi",{id})}login(loginData){return this.gs.log("[AUTH_LOGIN]",loginData),this.api.postData("/login",loginData).pipe((0,operators_1.tap)(respLogin=>{this.token=respLogin.result.token}))}register(registerData){return this.gs.log("[AUTH_REGISTER]",registerData),this.api.postData("/register",registerData)}removeUser(){var _a;null===(_a=this.currentUserSubject)||void 0===_a||_a.next(null),this.token=null}logout(){this.gs.log("[AUTH_LOGOUT]",this.token),this.bs.busy(),this.api.deleteData("/logout").subscribe({next:res=>{this.gs.log("[LOGOUT_SUCCESS]",res),this.bs.idle(),this.removeUser(),this.ls.clear(),this.router.navigateByUrl("/")},error:err=>{this.gs.log("[LOGOUT_ERROR]",err,"error"),this.bs.idle()}})}}__name(AuthService,"AuthService"),exports2.AuthService=AuthService,AuthService.\u0275fac=__name(function(t){return new(t||AuthService)(i0.\u0275\u0275inject(i1.Router),i0.\u0275\u0275inject(i2.GlobalService),i0.\u0275\u0275inject(i3.BusyService),i0.\u0275\u0275inject(i4.LocalStorageService),i0.\u0275\u0275inject(i5.ApiService),i0.\u0275\u0275inject(i6.CryptoService),i0.\u0275\u0275inject(i7.ToastService))},"AuthService_Factory"),AuthService.\u0275prov=i0.\u0275\u0275defineInjectable({token:AuthService,factory:AuthService.\u0275fac,providedIn:"root"})},8987:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BerkasService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class BerkasService{constructor(api,gs){this.api=api,this.gs=gs,this.gs.isBrowser}getAllBerkas(q="",page=1,row=10,sort="",order=""){return this.api.getData(`/berkas?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}getBerkas(berkasId){return this.api.getData(`/berkas/${berkasId}`)}createBerkas(berkasData){return this.api.postData("/berkas",berkasData)}updateBerkas(berkasId,berkasData){return this.api.putData(`/berkas/${berkasId}`,berkasData)}}__name(BerkasService,"BerkasService"),exports2.BerkasService=BerkasService,BerkasService.\u0275fac=__name(function(t){return new(t||BerkasService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"BerkasService_Factory"),BerkasService.\u0275prov=i0.\u0275\u0275defineInjectable({token:BerkasService,factory:BerkasService.\u0275fac,providedIn:"root"})},33e3:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BusyService=void 0;const tslib_1=__webpack_require__2(70655),rxjs_1=__webpack_require__2(76477),i0=(__webpack_require__2(50072),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(50072)),i2=tslib_1.__importStar(__webpack_require__2(80855));class BusyService{constructor(spinnerService,gs){this.spinnerService=spinnerService,this.gs=gs,this.cancelPendingRequests$=new rxjs_1.Subject,this.busyRequestCount=0,this.gs.isBrowser}get onCancelPendingRequests(){return this.cancelPendingRequests$.asObservable()}busy(){this.gs.isBrowser&&(this.busyRequestCount<=0&&this.spinnerService.show(),this.busyRequestCount++,this.gs.log("[BUSY_STATE_COUNTER_BUSY]",this.busyRequestCount))}idle(){this.gs.isBrowser&&(this.busyRequestCount--,this.busyRequestCount<=0&&(this.busyRequestCount=0,this.spinnerService.hide()),this.gs.log("[BUSY_STATE_COUNTER_IDLE]",this.busyRequestCount))}clear(){if(this.gs.isBrowser)for(;this.busyRequestCount>0;)this.idle(),this.cancelPendingRequests$.next()}}__name(BusyService,"BusyService"),exports2.BusyService=BusyService,BusyService.\u0275fac=__name(function(t){return new(t||BusyService)(i0.\u0275\u0275inject(i1.NgxSpinnerService),i0.\u0275\u0275inject(i2.GlobalService))},"BusyService_Factory"),BusyService.\u0275prov=i0.\u0275\u0275defineInjectable({token:BusyService,factory:BusyService.\u0275fac,providedIn:"root"})},38379:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CryptoService=void 0;const tslib_1=__webpack_require__2(70655),buffer_1=__webpack_require__2(14300),crypto_js_1=__webpack_require__2(7206),environment_1=__webpack_require__2(15934),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855));class CryptoService{constructor(gs){this.gs=gs,this.keySize=256,this.ivSize=128,this.iterations=100,this.gs.isBrowser}universalBtoa(str){return this.convertToBase64(str)}universalAtob(b64Encoded){return this.convertFromBase64(b64Encoded)}convertToBase64(str){return this.convertEncoding(str).toString("base64")}convertFromBase64(b64Encoded){return this.convertEncoding(b64Encoded,"base64").toString()}convertEncoding(obj,enc=null){return enc?buffer_1.Buffer.from(obj,enc):buffer_1.Buffer.from(obj)}msgEncrypt(message2,keyPass=environment_1.environment.apiKey){const salt=crypto_js_1.lib.WordArray.random(16),key=(0,crypto_js_1.PBKDF2)(keyPass,salt,{keySize:this.keySize/32,iterations:this.iterations}),iv=crypto_js_1.lib.WordArray.random(16),transitMessage=crypto_js_1.AES.encrypt(message2,key,{iv,padding:crypto_js_1.pad.Pkcs7,mode:crypto_js_1.mode.CBC});return salt.toString()+iv.toString()+transitMessage.toString()}msgDecrypt(encryptedMessage,keyPass=environment_1.environment.apiKey){const salt=crypto_js_1.enc.Hex.parse(encryptedMessage.substr(0,32)),iv=crypto_js_1.enc.Hex.parse(encryptedMessage.substr(32,32)),transitMessage=encryptedMessage.substring(64),key=(0,crypto_js_1.PBKDF2)(keyPass,salt,{keySize:this.keySize/32,iterations:this.iterations});return crypto_js_1.AES.decrypt(transitMessage,key,{iv,padding:crypto_js_1.pad.Pkcs7,mode:crypto_js_1.mode.CBC}).toString(crypto_js_1.enc.Utf8)}hashPassword(password){return(0,crypto_js_1.SHA512)(password).toString()}jwtView(jwt){const base64=jwt.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),jsonPayload=decodeURIComponent(this.universalAtob(base64).split("").map(c=>"%"+("00"+c.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(jsonPayload)}}__name(CryptoService,"CryptoService"),exports2.CryptoService=CryptoService,CryptoService.\u0275fac=__name(function(t){return new(t||CryptoService)(i0.\u0275\u0275inject(i1.GlobalService))},"CryptoService_Factory"),CryptoService.\u0275prov=i0.\u0275\u0275defineInjectable({token:CryptoService,factory:CryptoService.\u0275fac,providedIn:"root"})},40197:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DdlLampiranService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class DdlLampiranService{constructor(api,gs){this.api=api,this.gs=gs,this.gs.isBrowser}getAttachmentNotUploaded(q="",page=1,row=10,sort="",order=""){return this.api.getData(`/attachment?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}&ngsw-bypass=true`)}reUpload(attachmentData){return this.api.patchData("/attachment",attachmentData)}downloadLampiran(attachmentId){return this.api.getData(`/attachment/${attachmentId}`,{responseType:"blob",observe:"events",reportProgress:!0,headers:{"ngsw-bypass":"true"}})}getListDdl(attachmentId){return this.api.getData(`/attachment/${attachmentId}?ngsw-bypass=true`)}downloadDdlProxy(ddlId){return this.api.getData(`/ddl-part/${ddlId}`,{responseType:"blob",observe:"events",reportProgress:!0,headers:{"ngsw-bypass":"true"}})}downloadDdlDirect(url){return this.api.getData(url,{responseType:"blob",observe:"events",reportProgress:!0,headers:{"ngsw-bypass":"true"}})}}__name(DdlLampiranService,"DdlLampiranService"),exports2.DdlLampiranService=DdlLampiranService,DdlLampiranService.\u0275fac=__name(function(t){return new(t||DdlLampiranService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"DdlLampiranService_Factory"),DdlLampiranService.\u0275prov=i0.\u0275\u0275defineInjectable({token:DdlLampiranService,factory:DdlLampiranService.\u0275fac,providedIn:"root"})},55393:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DialogService=void 0;const tslib_1=__webpack_require__2(70655),rxjs_1=(__webpack_require__2(48966),__webpack_require__2(76477)),material_dialog_info_component_1=__webpack_require__2(35070),material_dialog_dmak_component_1=__webpack_require__2(35248),material_dialog_edict_component_1=__webpack_require__2(86529),material_dialog_belajar_component_1=__webpack_require__2(95961),material_dialog_input_component_1=__webpack_require__2(84807),i0=(__webpack_require__2(80855),__webpack_require__2(17635),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(48966)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(17635));class DialogService{constructor(dialog,gs,info){this.dialog=dialog,this.gs=gs,this.info=info,this.maxWidth="80vw",this.gs.isBrowser&&(this.maxWidth=4===this.gs.gridListBreakpoint?"45vw":3===this.gs.gridListBreakpoint?"50vw":2===this.gs.gridListBreakpoint?"60vw":"80vw")}openInputDialog(dataInfo){return"disableClose"in dataInfo||(dataInfo.disableClose=!0),this.dialog.open(material_dialog_input_component_1.MaterialDialogInputComponent,dataInfo)}openInfoDialog(dataInfo){return"disableClose"in dataInfo||(dataInfo.disableClose=!0),"maxWidth"in dataInfo||(dataInfo.maxWidth=this.maxWidth),this.dialog.open(material_dialog_info_component_1.MaterialDialogInfoComponent,dataInfo)}openDmakDialog(dataInfo){return"disableClose"in dataInfo||(dataInfo.disableClose=!0),this.dialog.open(material_dialog_dmak_component_1.MaterialDialogDmakComponent,dataInfo)}openEdictDialog(dataInfo){return"disableClose"in dataInfo||(dataInfo.disableClose=!0),this.dialog.open(material_dialog_edict_component_1.MaterialDialogEdictComponent,dataInfo)}openBelajarDialog(dataInfo){return"disableClose"in dataInfo||(dataInfo.disableClose=!0),this.dialog.open(material_dialog_belajar_component_1.MaterialDialogBelajarComponent,dataInfo)}openKonfirmasiDialog(title,htmlMessage,disableClose=!0){var _this=this;return _asyncToGenerator(function*(){const defaultData={data:{title,htmlMessage,confirmText:"Ya",cancelText:"Tidak"},disableClose,maxWidth:_this.maxWidth};return _this.openInfoDialog(defaultData)})()}fetchInformationRegisterMode(defaultData,registerMode=!1){var _this2=this;return _asyncToGenerator(function*(){try{const res=yield(0,rxjs_1.lastValueFrom)(_this2.info.getInfo(defaultData.id));defaultData.data.title=res.result.title,defaultData.data.htmlMessage=res.result.content,defaultData.disableClose=res.result.close,registerMode&&(defaultData.data.confirmText=res.result.confirm,defaultData.data.cancelText=res.result.cancel,defaultData.disableClose=!0)}catch(e){_this2.gs.log("[DIALOG_SERVICE-FETCH_DIALOG_ERROR]",e.error,"error")}return _this2.openInfoDialog(defaultData)})()}fetchInformation(defaultData){var _this3=this;return _asyncToGenerator(function*(){try{const res=yield(0,rxjs_1.lastValueFrom)(_this3.info.getInfo(defaultData.id));defaultData.data.title=res.result.title,defaultData.data.htmlMessage=res.result.content,defaultData.data.confirmText=res.result.confirm,defaultData.data.cancelText=res.result.cancel,defaultData.disableClose=res.result.close}catch(e){_this3.gs.log("[DIALOG_SERVICE-FETCH_DIALOG_ERROR]",e.error,"error")}})()}openMaintenanceDialog(){var _this4=this;return _asyncToGenerator(function*(){const defaultData={id:"MAINTENANCE",data:{title:"Informasi Perbaikan Web & Server",htmlMessage:"Gagal Memuat Perbaikan Web & Server",confirmText:"Ok, Saya Mengerti!",cancelText:null},disableClose:!1,maxWidth:_this4.maxWidth};return yield _this4.fetchInformation(defaultData),_this4.openInfoDialog(defaultData)})()}openVerifikasiSosmed(){var _this5=this;return _asyncToGenerator(function*(){const defaultData={id:"VERIFIKASI-SOSMED",data:{title:"Metode Verifikasi Baru (\uff61>\ufe4f<\uff61)",htmlMessage:"Gagal Memuat Metode Verifikasi",confirmText:"Via Discord",cancelText:"Batal"},disableClose:!1,maxWidth:_this5.maxWidth};return yield _this5.fetchInformation(defaultData),_this5.openInfoDialog(defaultData)})()}openCorsExtension(){var _this6=this;return _asyncToGenerator(function*(){const defaultData={id:"CORS-EXTENSION",data:{title:"Ekstensi CORS Unblock",htmlMessage:"Gagal Memuat Metode Verifikasi",confirmText:"Ya",cancelText:"Tidak"},disableClose:!1,maxWidth:_this6.maxWidth};return yield _this6.fetchInformation(defaultData),_this6.openInfoDialog(defaultData)})()}}__name(DialogService,"DialogService"),exports2.DialogService=DialogService,DialogService.\u0275fac=__name(function(t){return new(t||DialogService)(i0.\u0275\u0275inject(i1.MatDialog),i0.\u0275\u0275inject(i2.GlobalService),i0.\u0275\u0275inject(i3.InformationService))},"DialogService_Factory"),DialogService.\u0275prov=i0.\u0275\u0275defineInjectable({token:DialogService,factory:DialogService.\u0275fac,providedIn:"root"})},18439:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DoramaService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class DoramaService{constructor(api,gs){this.api=api,this.gs=gs,this.gs.isBrowser}searchDorama(q,type=""){return this.api.getData(`/dorama?q=${q}&type=${type}`)}getDorama(doramaId){return this.api.getData(`/dorama/${doramaId}`)}addNewDorama(doramaData){return this.api.patchData("/dorama",doramaData)}getSeasonalDorama(year,season){return this.api.getData(`/dorama-seasonal?year=${year}&season=${season}`)}getBerkasDorama(doramaId=[],q="",page=1,row=10,sort="",order=""){return this.api.patchData(`/dorama-berkas?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`,{id:doramaId})}getFansubDorama(doramaId=[],page=1,row=10){return this.api.patchData(`/dorama-fansub?page=${page}&row=${row}`,{id:doramaId})}}__name(DoramaService,"DoramaService"),exports2.DoramaService=DoramaService,DoramaService.\u0275fac=__name(function(t){return new(t||DoramaService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"DoramaService_Factory"),DoramaService.\u0275prov=i0.\u0275\u0275defineInjectable({token:DoramaService,factory:DoramaService.\u0275fac,providedIn:"root"})},17232:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DownloadManagerService=void 0;const tslib_1=__webpack_require__2(70655),http_1=__webpack_require__2(40520),rxjs_1=__webpack_require__2(76477),file_saver_1=__webpack_require__2(94327),i0=(__webpack_require__2(80855),__webpack_require__2(40197),__webpack_require__2(96925),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(96925)),i3=tslib_1.__importStar(__webpack_require__2(40197));class DownloadManagerService{constructor(gs,toast,dls){this.gs=gs,this.toast=toast,this.dls=dls,this.attachmentsDownload={},this.gs.isBrowser}getAttachmentDownloadFile(attachment){return this.attachmentsDownload[attachment.id]||(this.attachmentsDownload[attachment.id]={},this.attachmentsDownload[attachment.id].name=attachment.name,this.attachmentsDownload[attachment.id].size=attachment.size,this.attachmentsDownload[attachment.id].ext=attachment.ext,this.attachmentsDownload[attachment.id].download_count=attachment.download_count,this.attachmentsDownload[attachment.id].google_drive=attachment.google_drive,this.attachmentsDownload[attachment.id].discord=attachment.discord,this.attachmentsDownload[attachment.id].mode="indeterminate",this.attachmentsDownload[attachment.id].isDownloading=!1,this.attachmentsDownload[attachment.id].isCompleted=!1,this.attachmentsDownload[attachment.id].data=null,this.attachmentsDownload[attachment.id].handler=null,this.attachmentsDownload[attachment.id].toast=null,this.attachmentsDownload[attachment.id].totals=0,this.attachmentsDownload[attachment.id].percentage=0,this.attachmentsDownload[attachment.id].speed=0,this.attachmentsDownload[attachment.id].loaded=0),this.attachmentsDownload[attachment.id]}stopFail(attachment){attachment.isDownloading=!1,attachment.isCompleted=!1,attachment.toast&&this.toast.remove(attachment.toast.toastId)}onProgress(attachment,evt){if(evt.loaded){this.gs.log("[DOWNLOAD_PROGRESS]",evt),attachment.mode="determinate";const selisih=evt.loaded-attachment.loaded;attachment.totals+=selisih,attachment.speed=selisih/1e3,attachment.percentage=Math.round(attachment.totals/attachment.size*100),attachment.loaded=evt.loaded,attachment.toast.toastRef.componentInstance.message=`${attachment.percentage}% @ ${attachment.speed} KB/s`}}startDownload(attachmentId,directDownload=!0){var _this=this;const attachment=this.attachmentsDownload[attachmentId];var _ref;attachment.toast=this.toast.warning(`${attachment.percentage}% @ ${attachment.speed} KB/s`,"Mengunduh ...",{closeButton:!1,timeOut:0,disableTimeOut:"extendedTimeOut",tapToDismiss:!1}),attachment.isCompleted?this.saveFileAs(attachmentId):(attachment.isDownloading=!0,attachment.discord?this.dls.getListDdl(attachmentId).subscribe({next:(_ref=_asyncToGenerator(function*(res){_this.gs.log("[DOWNLOAD_LIST_DDL]",res);const sortedResults=res.results.sort((a,b2)=>a.chunk_idx-b2.chunk_idx),handlers=[];for(const sr of sortedResults){let handler=null;handler=directDownload?_this.dls.downloadDdlDirect(sr.url):_this.dls.downloadDdlProxy(sr.id),handlers.push(handler)}const chunks=[];var _ref2;attachment.handler=(0,rxjs_1.concat)(...handlers).subscribe({next:(_ref2=_asyncToGenerator(function*(evt){if(evt.type===http_1.HttpEventType.DownloadProgress&&_this.onProgress(attachment,evt),evt.type===http_1.HttpEventType.Response){attachment.loaded=0;const partBuff=yield evt.body.arrayBuffer(),chunk=new Uint8Array(partBuff);_this.gs.log("[DOWNLOAD_CHUNK_APPEND]",partBuff.byteLength),chunks.push(chunk)}if(evt.type===http_1.HttpEventType.Response&&chunks.length===sortedResults.length){_this.gs.log("[DOWNLOAD_CHUNK_COMPLETED]",chunks);const fullBlob=new Blob(chunks);attachment.mode="determinate",attachment.isDownloading=!1,attachment.isCompleted=!0,attachment.data=fullBlob,_this.toast.remove(attachment.toast.toastId),_this.saveFileAs(attachmentId)}}),__name(function(_x2){return _ref2.apply(this,arguments)},"next")),error:err=>{_this.gs.log("[DOWNLOAD_CHUNK_ERROR]",err,"error"),_this.stopFail(attachment)}})}),__name(function(_x){return _ref.apply(this,arguments)},"next")),error:err=>{this.gs.log("[DOWNLOAD_ERROR]",err,"error"),this.stopFail(attachment)}}):attachment.handler=this.dls.downloadLampiran(attachmentId).subscribe({next:evt=>{evt.type===http_1.HttpEventType.DownloadProgress&&this.onProgress(attachment,evt),evt.type===http_1.HttpEventType.Response&&(this.gs.log("[DOWNLOAD_COMPLETED]",evt),attachment.mode="determinate",attachment.isDownloading=!1,attachment.isCompleted=!0,attachment.data=evt.body,this.toast.remove(attachment.toast.toastId),this.saveFileAs(attachmentId))},error:err=>{this.gs.log("[DOWNLOAD_ERROR]",err,"error"),this.stopFail(attachment)}}))}cancelDownload(attachmentId){const attachment=this.attachmentsDownload[attachmentId];attachment.mode="indeterminate",attachment.percentage=0,attachment.speed=0,attachment.totals=0,attachment.loaded=0,attachment.isDownloading=!1,attachment.isCompleted=!1,attachment.handler&&attachment.handler.unsubscribe(),attachment.toast&&this.toast.remove(attachment.toast.toastId)}saveFileAs(attachmentId){this.gs.log("[SAVE_FILE]",attachmentId);const attachment=this.attachmentsDownload[attachmentId];(0,file_saver_1.saveAs)(attachment.data,`${attachment.name}.${attachment.ext}`)}}__name(DownloadManagerService,"DownloadManagerService"),exports2.DownloadManagerService=DownloadManagerService,DownloadManagerService.\u0275fac=__name(function(t){return new(t||DownloadManagerService)(i0.\u0275\u0275inject(i1.GlobalService),i0.\u0275\u0275inject(i2.ToastService),i0.\u0275\u0275inject(i3.DdlLampiranService))},"DownloadManagerService_Factory"),DownloadManagerService.\u0275prov=i0.\u0275\u0275defineInjectable({token:DownloadManagerService,factory:DownloadManagerService.\u0275fac,providedIn:"root"})},96382:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FabService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(74202),__webpack_require__2(80855),__webpack_require__2(88020),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(74202)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(88020));class FabService{constructor(router,gs,wb){this.router=router,this.gs=gs,this.wb=wb,this.isHidden=!0,this.newTab=!0,this.targetUrl=null,this.backgroundImage=null,this.backgroundIcon=null,this.tooltipText=null,this.gs.isBrowser}toggleFab(){this.isHidden=!this.isHidden}showFab(){this.isHidden=!1}hideFab(){this.isHidden=!0}removeFab(){this.isHidden=!0,this.tooltipText=null,this.backgroundIcon=null,this.backgroundImage=null,this.targetUrl=null,this.newTab=null}initializeFab(icon,image,text,url,openInNewTab){this.backgroundIcon=icon,this.backgroundImage=image,this.tooltipText=text,this.targetUrl=url,this.newTab=openInNewTab,this.isHidden=!1}setTooltipText(text){this.tooltipText=text}setNewTab(openInNewTab){this.newTab=openInNewTab}setTargetUrl(url){this.targetUrl=url}setBackgroundImage(urlImage){this.backgroundImage=urlImage}setBackgroundIcon(iconName){this.backgroundIcon=iconName}buttonClicked(){this.newTab?this.wb.winboxOpenUri(this.targetUrl):this.router.navigateByUrl(this.targetUrl)}}__name(FabService,"FabService"),exports2.FabService=FabService,FabService.\u0275fac=__name(function(t){return new(t||FabService)(i0.\u0275\u0275inject(i1.Router),i0.\u0275\u0275inject(i2.GlobalService),i0.\u0275\u0275inject(i3.WinboxService))},"FabService_Factory"),FabService.\u0275prov=i0.\u0275\u0275defineInjectable({token:FabService,factory:FabService.\u0275fac,providedIn:"root"})},76781:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FansubService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class FansubService{constructor(api,gs){this.api=api,this.gs=gs,this.gs.isBrowser}searchFansub(q="",page=1,row=10,sort="",order=""){return this.api.getData(`/fansub?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}createFansub(fansubData){return this.api.postData("/fansub",fansubData)}updateFansub(fansubSlug,fansubData){return this.api.putData(`/fansub/${fansubSlug}`,fansubData)}getFansub(fansubSlug){return this.api.getData(`/fansub/${fansubSlug}`)}getAllFansub(){return this.api.getData("/fansub-all")}cekSlug(fansubData){return this.api.patchData("/fansub-slug",fansubData)}getBerkasFansub(fansubId=[],q="",page=1,row=10,sort="",order=""){return this.api.patchData(`/fansub-berkas?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`,{id:fansubId})}getAnimeFansub(fansubId=[],page=1,row=10){return this.api.patchData(`/fansub-anime?page=${page}&row=${row}`,{id:fansubId})}getDoramaFansub(fansubId=[],page=1,row=10){return this.api.patchData(`/fansub-dorama?page=${page}&row=${row}`,{id:fansubId})}getRssFeedFansubAllActiveOnly(){return this.api.getData("/fansub-rss-feed-active")}getRssFeedFansubAll(){return this.api.getData("/fansub-rss-feed-all")}getRssFeedFansub(fansubSlug){return this.api.getData(`/fansub/${fansubSlug}/rss`)}getFansubMember(fansubSlug){return this.api.getData(`/fansub/${fansubSlug}/member`)}getAllFansubMember(q="",page=1,row=10,sort="",order=""){return this.api.getData(`/fansub-member?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}requestJoinFansubMember(fansubMemberData){return this.api.postData("/fansub-member",fansubMemberData)}approveRejectFansubMember(fansubMemberId,fansubMemberData){return this.api.putData(`/fansub-member/${fansubMemberId}`,fansubMemberData)}leaveFansubMember(fansubMemberId){return this.api.deleteData(`/fansub-member/${fansubMemberId}`)}getAllSubDomain(q="",page=1,row=12,sort="",order=""){return this.api.getData(`/fansub-dns?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}claimSubDomain(dnsData){return this.api.postData("/fansub-dns",dnsData)}getSubDomain(fansubSlug){return this.api.getData(`/fansub-dns/${fansubSlug}?ngsw-bypass=true`)}updateSubDomain(fansubSlug,dnsData){return this.api.putData(`/fansub-dns/${fansubSlug}`,dnsData)}}__name(FansubService,"FansubService"),exports2.FansubService=FansubService,FansubService.\u0275fac=__name(function(t){return new(t||FansubService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"FansubService_Factory"),FansubService.\u0275prov=i0.\u0275\u0275defineInjectable({token:FansubService,factory:FansubService.\u0275fac,providedIn:"root"})},75979:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FuriganaService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(33e3),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(33e3));class FuriganaService{constructor(gs,bs){this.gs=gs,this.bs=bs,this.enabled=!0,this.kuroshiro=null,this.observer=null,this.ignoreNodes=[],this.gs.isBrowser&&(this.kuroshiro=new Kuroshiro,this.kuroshiro.init(new KuromojiAnalyzer({dictPath:"/assets/furigana/"})))}convert(message2){return this.gs.log("[KUROSHIRO_CONVERT]",message2),this.kuroshiro.convert(message2,{mode:"furigana",to:"hiragana"})}replace(node,html){var _a;const e=this.gs.document.createRange().createContextualFragment(html),newNodes=[];return e.childNodes.forEach(node2=>newNodes.push(node2)),null===(_a=node.parentNode)||void 0===_a||_a.replaceChild(e,node),newNodes}convertAndReplace(node){var _this=this;return _asyncToGenerator(function*(){if(!_this.enabled||_this.bs.busyRequestCount>0||!node.nodeValue.trim()||"RUBY"===node.parentNode.nodeName||!node.nodeValue.match(/[\u3400-\u9FBF]/))return;const result=yield _this.convert(node.nodeValue);_this.ignoreNodes.push(..._this.replace(node,result))})()}watch(mutation){if("childList"===mutation.type)for(const node of mutation.addedNodes){if(this.gs.log("[KUROSHIRO_NODE_WATCHER]",node),this.ignoreNodes.includes(node)){this.ignoreNodes.splice(this.ignoreNodes.indexOf(node),1);continue}if(node instanceof Text)this.convertAndReplace(node);else{const nodeList=[],walk=this.gs.document.createTreeWalker(node,NodeFilter.SHOW_TEXT,null);for(;walk.nextNode();)nodeList.push(walk.currentNode);this.gs.log("[KUROSHIRO_NODE_WATCHER_LIST]",nodeList);for(const node2 of nodeList)this.convertAndReplace(node2)}}else"characterData"===mutation.type&&this.convertAndReplace(mutation.target)}}__name(FuriganaService,"FuriganaService"),exports2.FuriganaService=FuriganaService,FuriganaService.\u0275fac=__name(function(t){return new(t||FuriganaService)(i0.\u0275\u0275inject(i1.GlobalService),i0.\u0275\u0275inject(i2.BusyService))},"FuriganaService_Factory"),FuriganaService.\u0275prov=i0.\u0275\u0275defineInjectable({token:FuriganaService,factory:FuriganaService.\u0275fac,providedIn:"root"})},80855:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.GlobalService=void 0;const tslib_1=__webpack_require__2(70655),core_1=__webpack_require__2(5e3),common_1=__webpack_require__2(69808),keycodes_1=__webpack_require__2(91159),string_strip_html_1=__webpack_require__2(23078),environment_1=__webpack_require__2(15934),seasons_1=__webpack_require__2(76022),i0=tslib_1.__importStar(__webpack_require__2(5e3));class GlobalService{constructor(platformId,document2){this.localStorageKeys={AturanTatib:`${environment_1.environment.siteName}_AturanTatib`,DebugLogs:`${environment_1.environment.siteName}_DebugLogs`,DarkMode:`${environment_1.environment.siteName}_DarkMode`,token:`${environment_1.environment.siteName}_Token`,LiveChatResults:`${environment_1.environment.siteName}_LiveChatResults`,SearchResults:`${environment_1.environment.siteName}_SearchResults`,Torrents:`${environment_1.environment.siteName}_Torrents`},this.forceEnableDebugLog=null,this.separatorKeysCodes=[keycodes_1.ENTER,keycodes_1.COMMA],this.routerData=null,this.previousUrl=null,this.bgImgUrlPath=null,this.bannerImg=null,this.sizeContain=!1,this.bgRepeat=!1,this.leftMenuImage=null,this.rightMenuImage=null,this.isBrowser=null,this.document=null,this.gridListBreakpoint=1,this.isDesktop=!0,this.isDevMode=!0,this.isDarkMode=!1,this.weatherEffect=null,this.weatherRunning=!1,this.angularEditorConfig={editable:!0,minHeight:"256px",placeholder:"Deskripsi, Informasi, Atau Keterangan Lainnya ...",uploadUrl:`${environment_1.environment.apiUrl}/image`,uploadWithCredentials:!0,defaultParagraphSeparator:"div",toolbarHiddenButtons:[[],[]],customClasses:[{name:"white-space-normal-important",class:"white-space-normal-important"},{name:"text-decoration-none",class:"text-decoration-none"}]},this.seasonalWeather=[{id:1,name:seasons_1.SEASONS.WINTER,cssClassName:"snow",img:"/assets/img/season/winter.png"},{id:2,name:seasons_1.SEASONS.SPRING,cssClassName:"sakura",img:"/assets/img/season/spring.png"},{id:3,name:seasons_1.SEASONS.SUMMER,cssClassName:null,img:"/assets/img/season/summer.png"},{id:4,name:seasons_1.SEASONS.FALL,cssClassName:"fall",img:"/assets/img/season/fall.png"}],this.isBrowser=(0,common_1.isPlatformBrowser)(platformId),this.document=document2,this.isDevMode=(0,core_1.isDevMode)(),this.isBrowser&&(this.onResize(null),this.weatherJS())}log(message2,data=null,type="log"){if(this.isBrowser&&(this.forceEnableDebugLog="true"===localStorage.getItem(this.localStorageKeys.DebugLogs)),this.isDevMode||this.forceEnableDebugLog){let logger=null;logger="warn"===type?console.warn:"error"===type?console.error:"table"===type?console.table:console.log,data?logger(message2,data):logger(message2)}}getDirtyValues(formGroup){const dirtyValues={};for(const control of Object.keys(formGroup.controls)){const currentControl=formGroup.get(control);currentControl.dirty&&(dirtyValues[control]=currentControl.value)}return dirtyValues}get randomColor(){return(16777215*Math.random()<<0).toString(16)}get bgImgUrl(){return this.isDesktop?this.bgImgUrlPath:null}onResize(event,source="APP_COMPONENT"){var _a;if(event&&this.log(`[WINDOW_RESIZE-${source}]`,event),this.isBrowser){const browserWindow=(null===(_a=null==event?void 0:event.target)||void 0===_a?void 0:_a.window)||window;this.isDesktop=!0,this.leftMenuImage="/assets/img/background/left-menu.png",this.rightMenuImage="/assets/img/background/right-panel.png",browserWindow.innerWidth>=1200?this.gridListBreakpoint=4:browserWindow.innerWidth>=992?this.gridListBreakpoint=3:browserWindow.innerWidth>=767?this.gridListBreakpoint=2:(this.isDesktop=!1,this.gridListBreakpoint=1,this.leftMenuImage=null,this.rightMenuImage="")}}htmlToText(htmlElementString){return htmlElementString?(0,string_strip_html_1.stripHtml)(htmlElementString).result:""}shuffle(array){let currentIndex=array.length,temporaryValue=0,randomIndex=0;for(;0!==currentIndex;)randomIndex=Math.floor(Math.random()*currentIndex),currentIndex-=1,temporaryValue=array[currentIndex],array[currentIndex]=array[randomIndex],array[randomIndex]=temporaryValue;return array}cleanObject(objData){for(const o in objData)objData[o]||delete objData[o]}includesOneOf(text,arr){for(const a of arr)if(null==text?void 0:text.includes(a))return!0;return!1}linkify(text){if(text){const urlPattern=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,pseudoUrlPattern=/(^|[^\/])(www\.[\S]+(\b|$))/gim,emailAddressPattern=/[\w.]+@[a-zA-Z_-]+?(?:\.[a-zA-Z]{2,6})+/gim;return text=text.replace(urlPattern,'$&').replace(pseudoUrlPattern,'$1$2').replace(emailAddressPattern,'$&')}return""}toggleDarkTheme(firstRun=!1){firstRun?this.isDarkMode?this.document.body.classList.add("bifeldy-dark-theme"):this.document.body.classList.remove("bifeldy-dark-theme"):this.isDarkMode?(this.isDarkMode=!1,this.document.body.classList.remove("bifeldy-dark-theme")):(this.isDarkMode=!0,this.document.body.classList.add("bifeldy-dark-theme"))}rssLink(links){if("string"==typeof links)return links;let idx=links.findIndex(l=>"alternate"===l.rel&&"text/html"===l.type);return idx<0?links.length>0?links[links.length-1].href:"":links[idx].href}weatherJS(){const currentMonth=(new Date).getMonth()+1,weather=this.seasonalWeather.find(sB=>sB.id===Math.ceil(currentMonth/3));(null==weather?void 0:weather.cssClassName)&&(this.weatherEffect=new Sakura("body",{className:weather.cssClassName,lifeTime:5e3}),this.weatherRunning=!0)}weatherToggle(){this.weatherRunning?(this.weatherEffect.stop(!0),this.weatherRunning=!1):(this.weatherEffect.start(),this.weatherRunning=!0)}}__name(GlobalService,"GlobalService"),exports2.GlobalService=GlobalService,GlobalService.\u0275fac=__name(function(t){return new(t||GlobalService)(i0.\u0275\u0275inject(core_1.PLATFORM_ID),i0.\u0275\u0275inject(common_1.DOCUMENT))},"GlobalService_Factory"),GlobalService.\u0275prov=i0.\u0275\u0275defineInjectable({token:GlobalService,factory:GlobalService.\u0275fac,providedIn:"root"})},67902:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ImgbbService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class ImgbbService{constructor(api,gs){this.api=api,this.gs=gs,this.gs.isBrowser}uploadImage(image){return this.api.postData("/image",image,!0,{headers:{"ngsw-bypass":"true"}})}}__name(ImgbbService,"ImgbbService"),exports2.ImgbbService=ImgbbService,ImgbbService.\u0275fac=__name(function(t){return new(t||ImgbbService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"ImgbbService_Factory"),ImgbbService.\u0275prov=i0.\u0275\u0275defineInjectable({token:ImgbbService,factory:ImgbbService.\u0275fac,providedIn:"root"})},17635:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.InformationService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class InformationService{constructor(api,gs){this.api=api,this.gs=gs,this.gs.isBrowser}getAllInfo(q,page,row,sort,order){return this.api.getData(`/information?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}getInfo(infoId){return this.api.getData(`/information/${infoId}`)}createUpdateInfo(infoData){return this.api.postData("/information",infoData)}deleteInfo(infoId){return this.api.deleteData(`/information/${infoId}`)}}__name(InformationService,"InformationService"),exports2.InformationService=InformationService,InformationService.\u0275fac=__name(function(t){return new(t||InformationService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"InformationService_Factory"),InformationService.\u0275prov=i0.\u0275\u0275defineInjectable({token:InformationService,factory:InformationService.\u0275fac,providedIn:"root"})},47559:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.KomentarService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class KomentarService{constructor(api,gs){this.api=api,this.gs=gs,this.gs.isBrowser}getAllComment(q="",page=1,row=10,sort="",order=""){return this.api.getData(`/comment?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}getComment(path="",q="",page=1,row=10,sort="",order=""){return this.api.getData(`/comment?path=${path}&q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}getReply(parentId,q="",page=1,row=10,sort="",order=""){return this.api.getData(`/comment/${parentId}?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}sendComment(commentData){return this.api.postData("/comment",commentData)}getHighlight(commentData){return this.api.patchData("/comment",commentData)}deleteComment(commentId){return this.api.deleteData(`/comment/${commentId}`)}}__name(KomentarService,"KomentarService"),exports2.KomentarService=KomentarService,KomentarService.\u0275fac=__name(function(t){return new(t||KomentarService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"KomentarService_Factory"),KomentarService.\u0275prov=i0.\u0275\u0275defineInjectable({token:KomentarService,factory:KomentarService.\u0275fac,providedIn:"root"})},70007:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LeftMenuService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855));class LeftMenuService{constructor(gs){this.gs=gs,this.sideNav=null,this.sideNavExpanded=!1,this.linkText=!1,this.opened=!0,this.mainMenus=[{name:"Beranda",link:"/home",icon:"dashboard",badge:null},{name:"Berita & Informasi",link:"/news",icon:"receipt_long",badge:null}],this.contentMenus=[{name:"Anime Musiman",link:"/anime",icon:"live_tv",badge:null},{name:"Film Drama",link:"/dorama",icon:"movie",badge:null},{name:"Katalog Fansub",link:"/fansub",icon:"closed_caption",badge:null},{name:"Berbagi Garapan",link:"/berkas",icon:"file_copy",badge:null}],this.additionalMenus=[{name:"E-Mail@FanSub.ID",link:"/mailbox",icon:"mail_outline",badge:null},{name:"Nihongo \u65e5\u672c\u8a9e",link:"/nihongo",icon:"translate",badge:null},{name:"Admin & Mod Panel",link:"/admin-mod",icon:"admin_panel_settings",badge:null}],this.miscMenus=[{name:"RSS Feed",link:"/rss-feed",icon:"rss_feed",badge:null}],this.otherMenus=[{name:"Kebijakan Privasi",link:"/privacy-policy",icon:"policy",badge:null}],this.gs.isBrowser&&(this.opened=window.innerWidth>=992)}changeSideNavState(){this.linkText=this.sideNavExpanded}forceCloseSideNav(){!this.gs.isDesktop&&this.sideNav.opened&&this.sideNav.close(),this.onMouseHoverOut()}onSideNavToggleView(){this.sideNav.opened?(this.sideNav.close(),this.gs.isDesktop||this.onMouseHoverOut()):(this.sideNav.open(),this.gs.isDesktop||this.onMouseHoverIn())}onSideNavToggleExpanded(){this.sideNavExpanded=!this.sideNavExpanded,this.changeSideNavState()}onMouseHoverIn(){!1===this.sideNavExpanded&&(this.sideNavExpanded=!0,this.changeSideNavState())}onMouseHoverOut(){!0===this.sideNavExpanded&&(this.sideNavExpanded=!1,this.changeSideNavState())}}__name(LeftMenuService,"LeftMenuService"),exports2.LeftMenuService=LeftMenuService,LeftMenuService.\u0275fac=__name(function(t){return new(t||LeftMenuService)(i0.\u0275\u0275inject(i1.GlobalService))},"LeftMenuService_Factory"),LeftMenuService.\u0275prov=i0.\u0275\u0275defineInjectable({token:LeftMenuService,factory:LeftMenuService.\u0275fac,providedIn:"root"})},53379:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LocalStorageService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(38379),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(38379)),i2=tslib_1.__importStar(__webpack_require__2(80855));class LocalStorageService{constructor(cs,gs){this.cs=cs,this.gs=gs,this.gs.isBrowser}getItem(key,isObject=!1){if(!this.gs.isBrowser)return null;if(!isObject)return localStorage.getItem(key);try{const encryptedString=localStorage.getItem(key),jsonString=this.cs.msgDecrypt(encryptedString);return JSON.parse(jsonString)}catch{return this.removeItem(key),null}}setItem(key,value){if(this.gs.isBrowser)if("string"==typeof value)localStorage.setItem(key,value);else{const jsonString=JSON.stringify(value),encryptedString=this.cs.msgEncrypt(jsonString);localStorage.setItem(key,encryptedString)}}removeItem(key){this.gs.isBrowser&&localStorage.removeItem(key)}clear(){if(this.gs.isBrowser)for(const lsKey of Object.keys(this.gs.localStorageKeys))"Torrents"!==lsKey&&this.removeItem(this.gs.localStorageKeys[lsKey])}}__name(LocalStorageService,"LocalStorageService"),exports2.LocalStorageService=LocalStorageService,LocalStorageService.\u0275fac=__name(function(t){return new(t||LocalStorageService)(i0.\u0275\u0275inject(i1.CryptoService),i0.\u0275\u0275inject(i2.GlobalService))},"LocalStorageService_Factory"),LocalStorageService.\u0275prov=i0.\u0275\u0275defineInjectable({token:LocalStorageService,factory:LocalStorageService.\u0275fac,providedIn:"root"})},27358:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.MailService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class MailService{constructor(api,gs){this.api=api,this.gs=gs,this.gs.isBrowser}getMailbox(type="inbox",q="",page=1,row=10,sort="",order=""){return this.api.getData(`/mail-${type}?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}getAllMail(q="",page=1,row=10,sort="",order=""){return this.api.getData(`/mail?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}getMail(mailId){return this.api.getData(`/mail/${mailId}`)}sendMail(mailData){return this.api.postData("/mail",mailData)}}__name(MailService,"MailService"),exports2.MailService=MailService,MailService.\u0275fac=__name(function(t){return new(t||MailService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"MailService_Factory"),MailService.\u0275prov=i0.\u0275\u0275defineInjectable({token:MailService,factory:MailService.\u0275fac,providedIn:"root"})},49618:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NewsService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class NewsService{constructor(api,gs){this.api=api,this.gs=gs,this.gs.isBrowser}getAllNews(q="",page=1,row=10,sort="",order=""){return this.api.getData(`/news?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}createNews(newsData){return this.api.postData("/news",newsData)}updateNews(newsId,newsData){return this.api.putData(`/news/${newsId}`,newsData)}getNews(newsId){return this.api.getData(`/news/${newsId}`)}}__name(NewsService,"NewsService"),exports2.NewsService=NewsService,NewsService.\u0275fac=__name(function(t){return new(t||NewsService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"NewsService_Factory"),NewsService.\u0275prov=i0.\u0275\u0275defineInjectable({token:NewsService,factory:NewsService.\u0275fac,providedIn:"root"})},52663:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NihongoService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class NihongoService{constructor(api,gs){this.api=api,this.gs=gs,this.gs.isBrowser}getAllNihongo(category="",q="",page=1,row=10,sort="",order=""){return this.api.getData(`/nihongo?category=${category}&q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}getAllKategori(){return this.api.patchData("/nihongo")}createNihongo(nihongoData){return this.api.postData("/nihongo",nihongoData)}updateNihongo(nihongoId,nihongoData){return this.api.putData(`/nihongo/${nihongoId}`,nihongoData)}getHirakata(){return this.api.getData("/nihongo-hirakata-all")}getAllKanji(jlpt="",school="",q="",page=1,row=10,sort="",order=""){return this.api.getData(`/nihongo-kanji?jlpt=${jlpt}&school=${school}&q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}getAllEdict(q="",page=1,row=10,sort="",order=""){return this.api.getData(`/nihongo-edict?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}}__name(NihongoService,"NihongoService"),exports2.NihongoService=NihongoService,NihongoService.\u0275fac=__name(function(t){return new(t||NihongoService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"NihongoService_Factory"),NihongoService.\u0275prov=i0.\u0275\u0275defineInjectable({token:NihongoService,factory:NihongoService.\u0275fac,providedIn:"root"})},37140:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.NotificationsService=void 0;const tslib_1=__webpack_require__2(70655),environment_1=__webpack_require__2(15934),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855));class NotificationsService{constructor(gs){this.gs=gs,this.notifications=[],this.dissmissTimeout={},this.timedOut=null,this.gs.isBrowser&&this.notifications.push({notifCreator:null,notifData:{id:`${environment_1.environment.siteName.toUpperCase()}_UNDER_DEVELOPMENT`,type:"info",title:"Pemberitahuan!",content:'\n Jika ingin request fitur baru ataupun melaporkan Bug dapat menulis pesan di kanal Discord\n \'#dev-prog\'.\n Terima kasih. ^_^\n ',dismissible:!0}})}addNotif(notifCreator,notifId,notifType,notifTitle,notifContent,dismissible=!0){dismissible&&(this.dissmissTimeout[notifId]=setTimeout(()=>this.removeNotif(notifId),1e4)),this.notifications.splice(0,0,{notifCreator,notifData:{id:notifId,type:notifType,title:notifTitle,content:notifContent,dismissible}})}removeNotif(id){this.dissmissTimeout[id]&&(clearTimeout(this.dissmissTimeout[id]),this.dissmissTimeout[id]=null,delete this.dissmissTimeout[id]),this.timedOut=setTimeout(()=>{const verifyNotifIdx=this.notifications.findIndex(n=>n.notifData.id===id);verifyNotifIdx>=0&&(this.notifications=this.notifications.slice(0,verifyNotifIdx).concat(this.notifications.slice(verifyNotifIdx+1,this.notifications.length)))},500)}}__name(NotificationsService,"NotificationsService"),exports2.NotificationsService=NotificationsService,NotificationsService.\u0275fac=__name(function(t){return new(t||NotificationsService)(i0.\u0275\u0275inject(i1.GlobalService))},"NotificationsService_Factory"),NotificationsService.\u0275prov=i0.\u0275\u0275defineInjectable({token:NotificationsService,factory:NotificationsService.\u0275fac,providedIn:"root"})},18745:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.PageInfoService=void 0;const tslib_1=__webpack_require__2(70655),environment_1=(__webpack_require__2(22313),__webpack_require__2(74202),__webpack_require__2(15934)),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(22313)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(74202));class PageInfoService{constructor(t,m,gs,router){this.t=t,this.m=m,this.gs=gs,this.router=router,this.siteName=environment_1.environment.siteName,this.title="",this.description="",this.keywords="",this.image="",this.author="",this.gs.isBrowser}get getTitle(){return this.title}get getDescription(){return this.description}get getKeywords(){return this.keywords}updatePageMetaData(newTitle,newDescription,newKeywords,newImage=`${environment_1.environment.baseUrl}/assets/img/favicon.png`,newAuthor="\u300c\u{1f4a4} Fansub \u2728 ID \u{1f31e}\u300d"){this.title=newTitle,this.description=this.gs.htmlToText(newDescription),this.keywords=newKeywords,this.image=newImage.startsWith("/")?environment_1.environment.baseUrl+newImage:newImage,this.author=newAuthor,this.t.setTitle(`${this.title} | ${this.siteName}`),this.m.updateTag({name:"keywords",content:this.keywords}),this.m.updateTag({name:"author",content:this.author}),this.m.updateTag({property:"og:title",content:`${this.title} | ${this.siteName}`}),this.m.updateTag({property:"og:image",content:this.image}),this.m.updateTag({name:"twitter:title",content:`${this.title} | ${this.siteName}`}),this.description&&(this.m.updateTag({name:"description",content:this.description}),this.m.updateTag({property:"og:description",content:this.description}),this.m.updateTag({name:"twitter:description",content:this.description})),this.m.updateTag({name:"twitter:image",content:this.image}),this.router.url.split("?")[0].includes("/berkas/")&&!this.image.includes(environment_1.environment.baseUrl)&&this.m.updateTag({name:"twitter:card",content:"summary_large_image"})}updateStatusBarTheme(isDarkMode){isDarkMode?this.m.updateTag({name:"theme-color",content:"#673ab7"}):this.m.updateTag({name:"theme-color",content:"#3f51b5"})}}__name(PageInfoService,"PageInfoService"),exports2.PageInfoService=PageInfoService,PageInfoService.\u0275fac=__name(function(t){return new(t||PageInfoService)(i0.\u0275\u0275inject(i1.Title),i0.\u0275\u0275inject(i1.Meta),i0.\u0275\u0275inject(i2.GlobalService),i0.\u0275\u0275inject(i3.Router))},"PageInfoService_Factory"),PageInfoService.\u0275prov=i0.\u0275\u0275defineInjectable({token:PageInfoService,factory:PageInfoService.\u0275fac,providedIn:"root"})},65679:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ProjectService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class ProjectService{constructor(api,gs){this.api=api,this.gs=gs,this.gs.isBrowser}getProject(){return this.api.getData("/project-type")}createProject(notifData){return this.api.postData("/project-type",notifData)}deleteProject(notifId){return this.api.deleteData(`/project-type/${notifId}`)}}__name(ProjectService,"ProjectService"),exports2.ProjectService=ProjectService,ProjectService.\u0275fac=__name(function(t){return new(t||ProjectService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"ProjectService_Factory"),ProjectService.\u0275prov=i0.\u0275\u0275defineInjectable({token:ProjectService,factory:ProjectService.\u0275fac,providedIn:"root"})},61270:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.QuizService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),__webpack_require__2(28381),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(28381));class QuizService{constructor(api,gs,ss){this.api=api,this.gs=gs,this.ss=ss,this.gs.isBrowser}getCurrentQuizRoom(){return this.ss.currentRoom}getCurrentQuizQuestion(roomId){return this.ss.quizRoom[roomId]}answerQuestion(data){this.ss.socketEmit("quiz-answer",data)}getQuizLeaderboard(q="",page=1,row=10,sort="",order=""){return this.api.getData(`/quiz-leaderboard?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}}__name(QuizService,"QuizService"),exports2.QuizService=QuizService,QuizService.\u0275fac=__name(function(t){return new(t||QuizService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService),i0.\u0275\u0275inject(i3.StatsServerService))},"QuizService_Factory"),QuizService.\u0275prov=i0.\u0275\u0275defineInjectable({token:QuizService,factory:QuizService.\u0275fac,providedIn:"root"})},31216:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ReportService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class ReportService{constructor(api,gs){this.api=api,this.gs=gs,this.gs.isBrowser}getAllReport(){return this.api.getData("/likedislike")}getReport(type,idSludUsername){return this.api.getData(`/likedislike/${type}/${idSludUsername}`)}setReport(type,idSludUsername,reportData){return this.api.postData(`/likedislike/${type}/${idSludUsername}`,reportData)}deleteReport(reportId){return this.api.deleteData(`/likedislike/${reportId}`)}}__name(ReportService,"ReportService"),exports2.ReportService=ReportService,ReportService.\u0275fac=__name(function(t){return new(t||ReportService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"ReportService_Factory"),ReportService.\u0275prov=i0.\u0275\u0275defineInjectable({token:ReportService,factory:ReportService.\u0275fac,providedIn:"root"})},56514:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.RightPanelService=void 0;const tslib_1=__webpack_require__2(70655),search_all_component_1=(__webpack_require__2(80855),__webpack_require__2(28381),__webpack_require__2(62644)),admin_navigation_component_1=__webpack_require__2(93380),live_chat_component_1=__webpack_require__2(71617),i0=tslib_1.__importStar(__webpack_require__2(5e3)),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(28381));class RightPanelService{constructor(gs,ss){this.gs=gs,this.ss=ss,this.sidePanel=null,this.componentView=null,this.gs.isBrowser}toggleSidePanel(view){this.componentView?this.closeSidePanel():this.openSidePanel(view)}closeSidePanel(){this.sidePanel.close()}onClose(){this.componentView=null}openSidePanel(view){if("string"!=typeof view)this.componentView=view;else if("SearchAllComponent"===view)this.componentView=search_all_component_1.SearchAllComponent;else if("AdminNavigationComponent"===view)this.componentView=admin_navigation_component_1.AdminNavigationComponent;else if("LiveChatComponent"===view){if(!this.ss.mySocket.id)return;this.componentView=live_chat_component_1.LiveChatComponent}this.sidePanel.open()}}__name(RightPanelService,"RightPanelService"),exports2.RightPanelService=RightPanelService,RightPanelService.\u0275fac=__name(function(t){return new(t||RightPanelService)(i0.\u0275\u0275inject(i1.GlobalService),i0.\u0275\u0275inject(i2.StatsServerService))},"RightPanelService_Factory"),RightPanelService.\u0275prov=i0.\u0275\u0275defineInjectable({token:RightPanelService,factory:RightPanelService.\u0275fac,providedIn:"root"})},75101:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ServerResponseService=void 0;const tslib_1=__webpack_require__2(70655),tokens_1=__webpack_require__2(50888),i0=tslib_1.__importStar(__webpack_require__2(5e3));class ServerResponseService{constructor(res){this.response=res}setStatus(code2,message2){return this.response&&(this.response.statusCode=code2,message2&&(this.response.statusMessage=message2)),this}setNotFound(message2="Not Found"){return this.setStatus(404,message2)}}__name(ServerResponseService,"ServerResponseService"),exports2.ServerResponseService=ServerResponseService,ServerResponseService.\u0275fac=__name(function(t){return new(t||ServerResponseService)(i0.\u0275\u0275inject(tokens_1.RESPONSE,8))},"ServerResponseService_Factory"),ServerResponseService.\u0275prov=i0.\u0275\u0275defineInjectable({token:ServerResponseService,factory:ServerResponseService.\u0275fac,providedIn:"root"})},79775:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ServiceWorkerService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(59802),__webpack_require__2(80855),__webpack_require__2(55393),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(59802)),i2=tslib_1.__importStar(__webpack_require__2(80855)),i3=tslib_1.__importStar(__webpack_require__2(55393));class ServiceWorkerService{constructor(su,sp,gs,ds){this.su=su,this.sp=sp,this.gs=gs,this.ds=ds,this.isUpdateAvailable=!1,this.swuVerUpd=null,this.swuUnRecv=null,this.dialogRef=null,this.subsDialog=null,this.gs.isBrowser&&this.initialize()}get swEnabled(){return this.su.isEnabled&&this.sp.isEnabled}checkForUpdate(){var _this=this;return _asyncToGenerator(function*(){if(!_this.isUpdateAvailable){_this.isUpdateAvailable=!0;try{_this.isUpdateAvailable=yield _this.su.checkForUpdate()}catch(e){_this.gs.log("[SERVICE_WORKER_CHECK_FOR_UPDATE_ERROR]",e,"error")}}return _this.gs.log("[SERVICE_WORKER_UPDATE_AVAILABLE]",_this.isUpdateAvailable),_this.isUpdateAvailable})()}activateUpdate(){var _this2=this;return _asyncToGenerator(function*(){var _a,_b,_c;let au=!1;if(_this2.isUpdateAvailable)try{au=yield _this2.su.activateUpdate(),_this2.isUpdateAvailable=!1,null===(_a=_this2.dialogRef)||void 0===_a||_a.close(null),null===(_b=_this2.subsDialog)||void 0===_b||_b.unsubscribe(),_this2.dialogRef=_this2.ds.openInfoDialog({data:{title:"Pembaharuan "+(au?"Berhasil":"Gagal"),htmlMessage:"Ingin Refresh Halaman (?)",confirmText:"Ya",cancelText:"Tidak"}}),_this2.subsDialog=null===(_c=_this2.dialogRef)||void 0===_c?void 0:_c.afterClosed().subscribe({next:re=>{_this2.gs.log("[INFO_DIALOG_CLOSED]",re),_this2.dialogRef=null,_this2.subsDialog.unsubscribe(),!0===re&&window.location.reload()}})}catch(e){_this2.gs.log("[SERVICE_WORKER_ACTIVATE_UPDATE_ERROR]",e,"error")}return _this2.gs.log("[SERVICE_WORKER_UPDATE_FINISH]",au),au})()}initialize(){var _this3=this;return _asyncToGenerator(function*(){var _ref;_this3.swuVerUpd=_this3.su.versionUpdates.subscribe({next:(_ref=_asyncToGenerator(function*(event){var _a,_b,_c,_d,_e,_f,_g,_h,_j;_this3.gs.log(`[SERVICE_WORKER_${event.type}]`,event),"VERSION_DETECTED"===event.type&&(null===(_a=_this3.dialogRef)||void 0===_a||_a.close(null),null===(_b=_this3.subsDialog)||void 0===_b||_b.unsubscribe()),"VERSION_READY"===event.type&&(_this3.dialogRef=_this3.ds.openInfoDialog({data:{title:"Ada Pembaharuan Tersedia",htmlMessage:`\n
Sekarang :: ${null===(_d=null===(_c=event.currentVersion)||void 0===_c?void 0:_c.hash)||void 0===_d?void 0:_d.slice(0,8)}
\n
Tersedia :: ${null===(_f=null===(_e=event.latestVersion)||void 0===_e?void 0:_e.hash)||void 0===_f?void 0:_f.slice(0,8)}
\n `,confirmText:"OK"}})),"VERSION_INSTALLATION_FAILED"===event.type&&(_this3.dialogRef=_this3.ds.openInfoDialog({data:{title:"Pembaharuan Gagal",htmlMessage:`\n
Versi :: ${null===(_h=null===(_g=event.version)||void 0===_g?void 0:_g.hash)||void 0===_h?void 0:_h.slice(0,8)}
\n
Error :: ${event.error}
\n `,confirmText:"Ulangi",cancelText:"Lewati"}})),_this3.subsDialog=null===(_j=_this3.dialogRef)||void 0===_j?void 0:_j.afterClosed().subscribe({next:re=>{_this3.gs.log("[INFO_DIALOG_CLOSED]",re),!0===re&&_this3.activateUpdate(),_this3.dialogRef=null,_this3.subsDialog.unsubscribe()}})}),__name(function(_x){return _ref.apply(this,arguments)},"next"))}),_this3.swuUnRecv=_this3.su.unrecoverable.subscribe({next:event=>{var _a,_b,_c;_this3.gs.log(`[SERVICE_WORKER_${event.type}]`,event.reason),null===(_a=_this3.dialogRef)||void 0===_a||_a.close(null),null===(_b=_this3.subsDialog)||void 0===_b||_b.unsubscribe(),_this3.dialogRef=_this3.ds.openInfoDialog({data:{title:"Service Worker Bermasalah",htmlMessage:`Kesalahan :: ${event.reason}`,confirmText:"Refresh Halaman"}}),_this3.subsDialog=null===(_c=_this3.dialogRef)||void 0===_c?void 0:_c.afterClosed().subscribe({next:re=>{_this3.gs.log("[INFO_DIALOG_CLOSED]",re),_this3.dialogRef=null,_this3.subsDialog.unsubscribe(),window.location.reload()}})}})})()}}__name(ServiceWorkerService,"ServiceWorkerService"),exports2.ServiceWorkerService=ServiceWorkerService,ServiceWorkerService.\u0275fac=__name(function(t){return new(t||ServiceWorkerService)(i0.\u0275\u0275inject(i1.SwUpdate),i0.\u0275\u0275inject(i1.SwPush),i0.\u0275\u0275inject(i2.GlobalService),i0.\u0275\u0275inject(i3.DialogService))},"ServiceWorkerService_Factory"),ServiceWorkerService.\u0275prov=i0.\u0275\u0275defineInjectable({token:ServiceWorkerService,factory:ServiceWorkerService.\u0275fac,providedIn:"root"})},28381:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.StatsServerService=void 0;const tslib_1=__webpack_require__2(70655),socket_io_client_1=tslib_1.__importDefault(__webpack_require__2(50685)),rxjs_1=(__webpack_require__2(74202),__webpack_require__2(76477)),constants_1=__webpack_require__2(26271),environment_1=__webpack_require__2(15934),i0=(__webpack_require__2(80855),__webpack_require__2(37140),__webpack_require__2(70007),__webpack_require__2(4137),__webpack_require__2(55393),__webpack_require__2(79775),__webpack_require__2(96925),__webpack_require__2(33e3),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(4137)),i2=tslib_1.__importStar(__webpack_require__2(74202)),i3=tslib_1.__importStar(__webpack_require__2(80855)),i4=tslib_1.__importStar(__webpack_require__2(33e3)),i5=tslib_1.__importStar(__webpack_require__2(37140)),i6=tslib_1.__importStar(__webpack_require__2(70007)),i7=tslib_1.__importStar(__webpack_require__2(96925)),i8=tslib_1.__importStar(__webpack_require__2(55393)),i9=tslib_1.__importStar(__webpack_require__2(79775));class StatsServerService{constructor(as,router,gs,bs,notif,lms,toast,ds,sw){this.as=as,this.router=router,this.gs=gs,this.bs=bs,this.notif=notif,this.lms=lms,this.toast=toast,this.ds=ds,this.sw=sw,this.mySocket=null,this.visitor=0,this.latency=0,this.statsServer={mainSite:{cpus:0,mem_ram:0,disk_io:0,net_tx:0,net_rx:0}},this.messageChatUnreadCount=0,this.badgeNews=[],this.badgeBerkas=[],this.badgeFansub=[],this.github=null,this.currentServerSubject=new rxjs_1.BehaviorSubject(null),this.currentServer=this.currentServerSubject.asObservable(),this.currentServerValue=null,this.currentRoomSubject=new rxjs_1.BehaviorSubject(null),this.currentRoom=this.currentRoomSubject.asObservable(),this.currentChatRoom=[],this.globalRoomSubject=new rxjs_1.BehaviorSubject(null),this.globalRoom=this.globalRoomSubject.asObservable(),this.globalChatRoom=[],this.fansubRoomSubject=new rxjs_1.BehaviorSubject(null),this.fansubRoom=this.fansubRoomSubject.asObservable(),this.fansubChatRoom=[],this.serverLog="// Tidak Ada Catatan Log~",this.quizRoom={},this.subsServer=null,this.subsDialog=null,this.timedOut=null,this.gs.isBrowser&&(this.mySocket=(0,socket_io_client_1.default)("//",{query:{"ngsw-bypass":!0,token:this.as.token},transports:["websocket","polling"],transportOptions:{polling:{extraHeaders:{"x-access-token":this.as.token}}}}),this.socketListen(),this.checkServerMaintenance())}get currentRoomValue(){var _a;return(null===(_a=this.currentRoomSubject)||void 0===_a?void 0:_a.value)||null}get globalRoomValue(){var _a;return(null===(_a=this.globalRoomSubject)||void 0===_a?void 0:_a.value)||null}checkServerMaintenance(){var _ref,_this=this;this.subsServer=this.currentServer.subscribe({next:(_ref=_asyncToGenerator(function*(server){var _a;server&&server.isMaintenance&&(null===(_a=_this.currentServerValue)||void 0===_a?void 0:_a.isMaintenance)!==server.isMaintenance&&(_this.subsDialog=(yield _this.ds.openMaintenanceDialog()).afterClosed().subscribe({next:re=>{_this.gs.log("[INFO_DIALOG_CLOSED]",re),_this.subsDialog.unsubscribe()}})),_this.currentServerValue=server}),__name(function(_x){return _ref.apply(this,arguments)},"next"))})}pingPong(){this.socketEmitVolatile("ping-pong",{},response=>{this.gs.log("[SOCKET_PING_PONG]",response),"github"in response&&response.github&&(this.github=response.github),"server"in response&&response.server&&this.currentServerSubject.next(response.server)}),this.socketEmitVolatile("stats-server",{},response=>{this.gs.log("[SOCKET_STATS_SERVER]",response),this.statsServer=response})}socketListen(){var _this2=this;this.mySocket.on("connect",()=>{this.gs.log("[SOCKET_CONNECTED]",this.mySocket.id),this.pingPong(),this.notif.removeNotif(`${environment_1.environment.siteName.toUpperCase()}_SOCKET_DISCONNECTED`),this.timedOut=setTimeout(()=>{this.socketLeaveAndJoinNewRoom(null,this.router.url.split("?")[0])},1234)}),this.mySocket.on("connect_error",()=>{this.gs.log("[SOCKET_CONNECT_ERROR]",this.mySocket.io.opts,"error"),this.mySocket.io.opts.transports=["polling","websocket"]}),this.mySocket.on("disconnect",reason=>{this.gs.log("[SOCKET_DISCONNECTED]",reason),this.notif.addNotif(null,`${environment_1.environment.siteName.toUpperCase()}_SOCKET_DISCONNECTED`,"warning","Sambungan Terputus","Tidak dapat terhubung dengan Server melalui WebSocket !!",!1),this.sw.isUpdateAvailable=!1}),this.mySocket.on("ping",()=>{this.gs.log("[SOCKET_PING]",Date.now())}),this.mySocket.on("server-config",data=>{this.currentServerSubject.next(data)}),this.mySocket.on("pong",data=>{this.latency=data,this.gs.log("[SOCKET_PONG]",`${Date.now()} => ${data} ms`),this.pingPong(),this.sw.checkForUpdate()}),this.mySocket.on("visitors",visitors=>{this.gs.log("[SOCKET_VISITOR]",this.visitor),this.visitor=visitors}),this.mySocket.on("console-log",log2=>{this.gs.log("[SOCKET_CONSOLE_LOG]",log2),this.serverLog=`${log2}\r\n${this.serverLog}`}),this.mySocket.on("force-redirect",data=>{this.gs.log("[SOCKET_REDIRECT]",data.message),this.toast.info(data.message,data.title,null,!0),this.router.navigateByUrl(data.url)}),this.mySocket.on("force-logout",reason=>{this.gs.log("[SOCKET_EXIT]",reason),this.toast.info(reason,"Keluar Paksa!",null,!0),this.as.logout()}),this.mySocket.on("new-notification",notifObj=>{this.gs.log("[SOCKET_NOTIFICATION]",notifObj),this.notif.addNotif(notifObj.notifCreator,notifObj.notifData.id,notifObj.notifData.type,notifObj.notifData.title,notifObj.notifData.content,notifObj.notifData.dismissible)}),this.mySocket.on("new-information",function(){var _ref2=_asyncToGenerator(function*(notifObj){_this2.gs.log("[SOCKET_INFORMATION]",notifObj),_this2.subsDialog=_this2.ds.openInfoDialog({data:{title:notifObj.infoData.title,htmlMessage:notifObj.infoData.content,confirmText:notifObj.infoData.confirm,cancelText:notifObj.infoData.cancel},disableClose:notifObj.infoData.close}).afterClosed().subscribe({next:re=>{_this2.gs.log("[INFO_DIALOG_CLOSED]",re),_this2.subsDialog.unsubscribe()}})});return function(_x2){return _ref2.apply(this,arguments)}}()),this.mySocket.on("new-berkas",berkasObj=>{this.gs.log("[SOCKET_BERKAS]",berkasObj),this.badgeBerkas.push(berkasObj);const berkas=this.lms.contentMenus.find(m=>"/berkas"===m.link);berkas&&(this.badgeBerkas.length>0?berkas.badge=this.badgeBerkas.length:berkas.badge=null)}),this.mySocket.on("new-fansub",fansubObj=>{this.gs.log("[SOCKET_FANSUB]",fansubObj),this.badgeFansub.push(fansubObj);const fansub=this.lms.contentMenus.find(m=>"/fansub"===m.link);fansub&&(this.badgeFansub.length>0?fansub.badge=this.badgeFansub.length:fansub.badge=null)}),this.mySocket.on("new-news",newsObj=>{this.gs.log("[SOCKET_NEWS]",newsObj),this.badgeNews.push(newsObj);const news=this.lms.mainMenus.find(m=>"/news"===m.link);news&&(this.badgeNews.length>0?news.badge=this.badgeNews.length:news.badge=null)}),this.mySocket.on("receive-chat",msg=>{this.gs.log("[SOCKET_RECEIVE-CHAT]",msg),msg.room_id===constants_1.CONSTANTS.socketRoomNameGlobalPublic?this.globalChatRoom.push(msg):msg.room_id===constants_1.CONSTANTS.socketRoomNameGlobalFansub?this.fansubChatRoom.push(msg):msg.room_id!==constants_1.CONSTANTS.socketRoomNameServerLogs&&this.currentChatRoom.push(msg),this.messageChatUnreadCount++}),this.mySocket.on("room-info",roomInfo=>{this.gs.log("[SOCKET_ROOM-INFO]",roomInfo),this.gs.cleanObject(null==roomInfo?void 0:roomInfo.member_list),roomInfo.room_id===constants_1.CONSTANTS.socketRoomNameGlobalPublic?this.globalRoomSubject.next(roomInfo):roomInfo.room_id===constants_1.CONSTANTS.socketRoomNameGlobalFansub?this.fansubRoomSubject.next(roomInfo):roomInfo.room_id!==constants_1.CONSTANTS.socketRoomNameServerLogs&&this.currentRoomSubject.next(roomInfo)}),this.mySocket.on("multiple-connection",(multipleConnection,callback)=>{this.gs.log("[SOCKET_MULTIPLE-CONNECTION]",multipleConnection),this.toast.warning("Sesi lain telah aktif!","Koneksi Duplikat",null,!0),this.mySocket.io.reconnection(!1),this.bs.clear(),callback&&callback()}),this.mySocket.on("quiz-question",quizQuestion=>{if(this.gs.log("[SOCKET_QUIZ]",quizQuestion),this.gs.routerData.question&&this.gs.routerData.options){const{room_id,...quiz}=quizQuestion;this.quizRoom[room_id]=quiz,this.quizRoom[room_id].options=this.gs.shuffle(this.quizRoom[room_id].options)}})}socketEmit(eventName,eventData={},callback=null){var _a,_b;this.as.token&&(eventData.token=this.as.token),callback?null===(_a=this.mySocket)||void 0===_a||_a.emit(eventName,eventData,callback):null===(_b=this.mySocket)||void 0===_b||_b.emit(eventName,eventData)}socketEmitVolatile(eventName,eventData={},callback=null){this.socketEmit(eventName,eventData,callback)}socketLeaveAndJoinNewRoom(previousUrl,currentNewUrl){this.gs.log(`[SOCKET_LEAVE-JOIN-ROOM] ${previousUrl} => ${currentNewUrl}`),this.socketEmit("leave-join-room",{oldRoom:previousUrl,newRoom:currentNewUrl})}}__name(StatsServerService,"StatsServerService"),exports2.StatsServerService=StatsServerService,StatsServerService.\u0275fac=__name(function(t){return new(t||StatsServerService)(i0.\u0275\u0275inject(i1.AuthService),i0.\u0275\u0275inject(i2.Router),i0.\u0275\u0275inject(i3.GlobalService),i0.\u0275\u0275inject(i4.BusyService),i0.\u0275\u0275inject(i5.NotificationsService),i0.\u0275\u0275inject(i6.LeftMenuService),i0.\u0275\u0275inject(i7.ToastService),i0.\u0275\u0275inject(i8.DialogService),i0.\u0275\u0275inject(i9.ServiceWorkerService))},"StatsServerService_Factory"),StatsServerService.\u0275prov=i0.\u0275\u0275defineInjectable({token:StatsServerService,factory:StatsServerService.\u0275fac,providedIn:"root"})},91924:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.TaskCronJobService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(10916),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(80855));class TaskCronJobService{constructor(api,gs){this.api=api,this.gs=gs,this.gs.isBrowser}getAllTaskCronJobs(){return this.api.getData("/task-cron-job?ngsw-bypass=true")}toggleOnOffTaskCronJob(tcrId){return this.api.putData(`/task-cron-job/${tcrId}`)}}__name(TaskCronJobService,"TaskCronJobService"),exports2.TaskCronJobService=TaskCronJobService,TaskCronJobService.\u0275fac=__name(function(t){return new(t||TaskCronJobService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.GlobalService))},"TaskCronJobService_Factory"),TaskCronJobService.\u0275prov=i0.\u0275\u0275defineInjectable({token:TaskCronJobService,factory:TaskCronJobService.\u0275fac,providedIn:"root"})},96925:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ToastService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(22290),__webpack_require__2(80855),__webpack_require__2(37140),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(22290)),i3=tslib_1.__importStar(__webpack_require__2(37140));class ToastService{constructor(gs,toast,notif){this.gs=gs,this.toast=toast,this.notif=notif,this.gs.isBrowser}remove(toastId){return this.toast.remove(toastId)}success(message2,title,override,force=!1){return force&&this.notif.addNotif(null,(new Date).getTime(),"success",title,message2),this.gs.isDesktop||force?this.toast.success(message2,title,override):null}warning(message2,title,override,force=!1){return force&&this.notif.addNotif(null,(new Date).getTime(),"warning",title,message2),this.gs.isDesktop||force?this.toast.warning(message2,title,override):null}info(message2,title,override,force=!1){return force&&this.notif.addNotif(null,(new Date).getTime(),"info",title,message2),this.gs.isDesktop||force?this.toast.info(message2,title,override):null}error(message2,title,override,force=!1){return force&&this.notif.addNotif(null,(new Date).getTime(),"danger",title,message2),this.gs.isDesktop||force?this.toast.error(message2,title,override):null}}__name(ToastService,"ToastService"),exports2.ToastService=ToastService,ToastService.\u0275fac=__name(function(t){return new(t||ToastService)(i0.\u0275\u0275inject(i1.GlobalService),i0.\u0275\u0275inject(i2.ToastrService),i0.\u0275\u0275inject(i3.NotificationsService))},"ToastService_Factory"),ToastService.\u0275prov=i0.\u0275\u0275defineInjectable({token:ToastService,factory:ToastService.\u0275fac,providedIn:"root"})},11189:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.TorrentService=void 0;const tslib_1=__webpack_require__2(70655),idb_chunk_store_1=tslib_1.__importDefault(__webpack_require__2(9076)),rxjs_1=__webpack_require__2(76477),idb_1=__webpack_require__2(98202),buffer_1=__webpack_require__2(14300),environment_1=__webpack_require__2(15934),i0=(__webpack_require__2(80855),__webpack_require__2(53379),__webpack_require__2(10916),__webpack_require__2(96925),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(10916)),i3=tslib_1.__importStar(__webpack_require__2(96925)),i4=tslib_1.__importStar(__webpack_require__2(53379));class TorrentService{constructor(gs,api,toast,ls){this.gs=gs,this.api=api,this.toast=toast,this.ls=ls,this.trackerAnnounce=environment_1.environment.torrent.trackerAnnounce,this.clientOptions={maxConns:64,tracker:{announce:this.trackerAnnounce,rtcConfig:{iceServers:environment_1.environment.torrent.iceServers}}},this.torrentsQueue={},this.torrentOptions={announce:this.trackerAnnounce,maxWebConns:16,store:idb_chunk_store_1.default},this.webClient=null,this.expandedRow=null,this.tableDataRowSubject=new rxjs_1.BehaviorSubject([]),this.tableDataRow=this.tableDataRowSubject.asObservable(),this.error=null,this.refCallback=null,this.flagResurrected=!1,this.gs.isBrowser&&(this.torrentsQueue=this.ls.getItem(this.gs.localStorageKeys.Torrents,!0)||this.torrentsQueue,WebTorrent.WEBRTC_SUPPORT?(this.webClient=new WebTorrent(this.clientOptions),this.gs.log("[TORRENT_CLIENT_WEB_MODE_INITIALIZED]",this.webClient),this.handleWebClient()):this.toast.error("WebRTC Not Supported!","Whoops!",null,!0))}get tableDataRowValue(){var _a;return(null===(_a=this.tableDataRowSubject)||void 0===_a?void 0:_a.value)||[]}checkHealthOnTracker(torrentInfo){return this.api.postData("/torrent",torrentInfo)}handleWebClient(){this.webClient.on("torrent",torrent=>{this.gs.log("[TORRENT_CLIENT_ADD_TORRENT_FILE]",torrent),this.toast.info(torrent.infoHash,"Woaw, Antrian Baru!",null,!0),this.tableDataRowValue.push(torrent),this.tableDataRowSubject.next(this.tableDataRowValue),this.refCallback&&this.refCallback(null,torrent)}),this.webClient.on("error",err=>{this.gs.log("[TORRENT_CLIENT_ERROR]",err,"error"),this.toast.error(err.toString(),"Whoops!",null,!0),this.error=err,this.refCallback&&this.refCallback(this.error,null)})}handleWebTorrent(torrent,callback){torrent.on("done",()=>{this.gs.log("[TORRENT_FILE_DONE]",torrent),this.toast.success("Ada Torrent Yang Sudah Selesai Di Download","Yeay, Selesai!",null,!0),this.torrentsQueue[torrent.infoHash].completed=!0,this.ls.setItem(this.gs.localStorageKeys.Torrents,this.torrentsQueue),callback&&callback(null,null)}),torrent.on("warning",warn=>{this.gs.log("[TORRENT_FILE_WARNING]",warn),this.toast.info(warn.toString(),"Yuhuu!",null,!0),callback&&callback(warn,null)}),torrent.on("error",err=>{this.gs.log("[TORRENT_FILE_ERROR]",err,"error"),this.toast.error(err.toString(),"Whoops!",null,!0),callback&&callback(err,null)})}handleWebWire(wire,callback){this.gs.log("[TORRENT_WIRE_CONNECT]",wire);let wireName=wire.peerId||"Unknown!";wire.remoteAddress&&wire.remotePort&&(wireName=`${wire.remoteAddress}:${wire.remotePort}`),wire.on("close",()=>{this.gs.log("[TORRENT_WIRE_DISCONNECT]",wireName),callback&&callback(null,wire)}),callback&&callback(null,wire)}resurrectFiles(callback){var _this=this;if(!this.flagResurrected){this.flagResurrected=!0;for(const key in this.torrentsQueue)this.gs.log("[TORRENT_CLIENT_QUEUE_RESURRECT]",this.torrentsQueue[key]),this.torrentsQueue[key].completed?(0,idb_1.openDB)(this.torrentsQueue[key].indexedDb,1).then(function(){var _ref=_asyncToGenerator(function*(db){const uint8Array=yield db.transaction("chunks","readonly").objectStore("chunks").getAll(),buffer=buffer_1.Buffer.concat(uint8Array),files=[];for(const file2 of _this.torrentsQueue[key].files){const tf=file2;files.push(new File([buffer.slice(tf.offset,tf.offset+tf.length)],tf.name))}_this.uploadFiles(_this.torrentsQueue[key].name,files,callback)});return function(_x){return _ref.apply(this,arguments)}}()).catch(err=>this.gs.log("[INDEXDB-OPEN_FAILED]",err,"error")):this.downloadFiles(this.torrentsQueue[key].infoHash,callback,{...this.torrentOptions,name:this.torrentsQueue[key].name})}callback(null,null)}processTorrent(torrent,completed,callback){torrent.on("wire",wire=>this.handleWebWire(wire,callback)),this.torrentsQueue[torrent.infoHash]={completed,indexedDb:torrent.name+" - "+torrent.infoHash.slice(0,8),infoHash:torrent.infoHash,name:torrent.name,files:[]};for(const file2 of torrent.files){const tf=file2;this.torrentsQueue[torrent.infoHash].files.push({name:tf.name,offset:tf.offset,length:tf.length})}this.ls.setItem(this.gs.localStorageKeys.Torrents,this.torrentsQueue),this.handleWebTorrent(torrent,callback)}downloadFiles(magnetHash,callback,opts=this.torrentOptions){this.gs.log("[TORRENT_CLIENT_QUEUE_DOWNLOAD]",magnetHash),this.refCallback=callback,this.checkHealthOnTracker({magnetHash,trackTimeout:1234}).subscribe({next:res=>{this.gs.log("[TORRENT_CLIENT_HEALTH_SUCCESS]",res.result),res.result.seeds<=0?(this.toast.info("Tidak Ada Seeder!","Whoops!",null,!0),callback&&callback(null,res.result)):this.webClient.add(magnetHash,opts,torrent=>{this.gs.log("[TORRENT_FILE_DOWNLOAD_READY]",torrent),this.toast.info("Memulai Download ...","Download!",null,!0),this.processTorrent(torrent,!1,callback)})},error:err=>{this.gs.log("[TORRENT_CLIENT_HEALTH_ERROR]",err,"error"),callback&&callback(err,null)}})}uploadFiles(torrentName,files,callback){this.gs.log("[TORRENT_CLIENT_QUEUE_UPLOAD]",files),this.gs.log("[TORRENT_CLIENT_QUEUE_UPLOAD]",torrentName),this.refCallback=callback,this.webClient.seed(files,{...this.torrentOptions,name:torrentName},torrent=>{this.gs.log("[TORRENT_FILE_SEED_READY]",torrent),this.toast.info("Memulai Seeding ...","Seeding",null,!0),this.processTorrent(torrent,!0,callback)})}removeTorrent(torrentId,callback,saveLocalStorage=!0){this.tableDataRowSubject.next(this.tableDataRowValue.filter(el=>el.infoHash!==torrentId)),this.webClient.remove(torrentId,{destroyStore:!0},err=>{err&&this.gs.log("[TORRENT_FILE_REMOVE_ERROR]",err,"error"),delete this.torrentsQueue[torrentId],saveLocalStorage&&this.ls.setItem(this.gs.localStorageKeys.Torrents,this.torrentsQueue),callback&&callback(err)})}pauseTorrent(torrentId,callback){const torrent=this.webClient.get(torrentId);torrent&&(torrent.pause(),callback&&callback(torrent))}resumeTorrent(torrentId,callback){const torrent=this.webClient.get(torrentId);torrent&&(torrent.resume(),callback&&callback(torrent))}removeAll(){for(const t of this.webClient.torrents)this.removeTorrent(t.infoHash,error=>{error||this.gs.log("[TORRENT_FILE_REMOVE_SUCCESS]",t.infoHash)},!1)}}__name(TorrentService,"TorrentService"),exports2.TorrentService=TorrentService,TorrentService.\u0275fac=__name(function(t){return new(t||TorrentService)(i0.\u0275\u0275inject(i1.GlobalService),i0.\u0275\u0275inject(i2.ApiService),i0.\u0275\u0275inject(i3.ToastService),i0.\u0275\u0275inject(i4.LocalStorageService))},"TorrentService_Factory"),TorrentService.\u0275prov=i0.\u0275\u0275defineInjectable({token:TorrentService,factory:TorrentService.\u0275fac,providedIn:"root"})},8058:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.UserService=void 0;const tslib_1=__webpack_require__2(70655),operators_1=__webpack_require__2(83292),i0=(__webpack_require__2(10916),__webpack_require__2(4137),__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(10916)),i2=tslib_1.__importStar(__webpack_require__2(4137)),i3=tslib_1.__importStar(__webpack_require__2(80855));class UserService{constructor(api,as,gs){this.api=api,this.as=as,this.gs=gs,this.gs.isBrowser}checkBanned(username){return this.api.getData(`/banned?username=${username}`)}getAllUser(q="",page=1,row=10,sort="",order=""){return this.api.getData(`/user?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}getUserData(username){return this.api.getData(`/user/${username}`)}updateUser(username,userData){return this.api.putData(`/user/${username}`,userData).pipe((0,operators_1.tap)(respUpdateUser=>{this.as.token=respUpdateUser.result.token}))}getUserBerkas(username,q="",page=1,row=10,sort="",order=""){return this.api.getData(`/user/${username}/feed-berkas?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}getUserFeedComment(username,q="",page=1,row=10,sort="",order=""){return this.api.getData(`/user/${username}/feed-comment?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}getUserFeedLikeDislike(username,q="",page=1,row=10,sort="",order=""){return this.api.getData(`/user/${username}/feed-likedislike?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}getUserFeedVisit(username,q="",page=1,row=10,sort="",order=""){return this.api.getData(`/user/${username}/feed-visit?q=${q}&page=${page}&row=${row}&sort=${sort}&order=${order}`)}cekNik(userData){return this.api.postData("/verify-nik",userData)}verifyKTP(userData){return this.api.postData("/verify-ktp",userData).pipe((0,operators_1.tap)(respVerifyKTP=>{this.as.token=respVerifyKTP.result.token}))}sosmedLogin(data){return this.api.postData("/verify-sosmed",data)}getUserGroup(username){return this.api.getData(`/user/${username}/group`)}findLostAccount(data){return this.api.postData("/lost-account-find",data)}resetLostAccount(data){return this.api.postData("/lost-account-reset",data)}}__name(UserService,"UserService"),exports2.UserService=UserService,UserService.\u0275fac=__name(function(t){return new(t||UserService)(i0.\u0275\u0275inject(i1.ApiService),i0.\u0275\u0275inject(i2.AuthService),i0.\u0275\u0275inject(i3.GlobalService))},"UserService_Factory"),UserService.\u0275prov=i0.\u0275\u0275defineInjectable({token:UserService,factory:UserService.\u0275fac,providedIn:"root"})},74868:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ViewerService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(80855),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855));class ViewerService{constructor(gs){this.gs=gs,this.currentViewer=null,this.gs.isBrowser}viewImage(htmlElement){this.currentViewer=new Viewer(htmlElement,{url:"src",navbar:!1,title:!0,toolbar:{zoomIn:!0,zoomOut:!0,oneToOne:!0,reset:!0,prev:!1,play:{show:!1,size:"large"},next:!1,rotateLeft:!0,rotateRight:!0,flipHorizontal:!0,flipVertical:!0},ready:e=>{this.gs.log("[VIEWERJS]",e.type),this.currentViewer.show()},show:e=>{this.gs.log("[VIEWERJS]",e.type)},shown:e=>{this.gs.log("[VIEWERJS]",e.type)},view:e=>{this.gs.log("[VIEWERJS]",e.type)},viewed:e=>{this.gs.log("[VIEWERJS]",e.type)},move:e=>{this.gs.log("[VIEWERJS]",e.type)},moved:e=>{this.gs.log("[VIEWERJS]",e.type)},rotate:e=>{this.gs.log("[VIEWERJS]",e.type)},rotated:e=>{this.gs.log("[VIEWERJS]",e.type)},scale:e=>{this.gs.log("[VIEWERJS]",e.type)},scaled:e=>{this.gs.log("[VIEWERJS]",e.type)},play:e=>{this.gs.log("[VIEWERJS]",e.type)},stop:e=>{this.gs.log("[VIEWERJS]",e.type)},hide:e=>{this.gs.log("[VIEWERJS]",e.type)},zoom:e=>{this.gs.log("[VIEWERJS]",e.type)},zoomed:e=>{this.gs.log("[VIEWERJS]",e.type)},hidden:e=>{this.gs.log("[VIEWERJS]",e.type),this.currentViewer.destroy(),this.currentViewer=null}})}}__name(ViewerService,"ViewerService"),exports2.ViewerService=ViewerService,ViewerService.\u0275fac=__name(function(t){return new(t||ViewerService)(i0.\u0275\u0275inject(i1.GlobalService))},"ViewerService_Factory"),ViewerService.\u0275prov=i0.\u0275\u0275defineInjectable({token:ViewerService,factory:ViewerService.\u0275fac,providedIn:"root"})},88020:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.WinboxService=void 0;const tslib_1=__webpack_require__2(70655),i0=(__webpack_require__2(80855),__webpack_require__2(55393),__webpack_require__2(28381),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(80855)),i2=tslib_1.__importStar(__webpack_require__2(55393)),i3=tslib_1.__importStar(__webpack_require__2(28381));class WinboxService{constructor(gs,ds,ss){this.gs=gs,this.ds=ds,this.ss=ss,this.currentServer=null,this.openedWindow={},this.subsDialog=null,this.subsServer=null,this.gs.isBrowser&&(this.subsServer=this.ss.currentServer.subscribe({next:server=>this.currentServer=server}))}confirmationOpenUrl(uriUrl,windowTarget){var _this=this;return _asyncToGenerator(function*(){_this.subsDialog=(yield _this.ds.openKonfirmasiDialog(`Ingin Buka Di Tab ${"_self"===windowTarget?"Ini":"Baru"} ?`,uriUrl,!1)).afterClosed().subscribe({next:re=>{_this.gs.log("[INFO_DIALOG_CLOSED]",re),!0===re&&window.open(uriUrl,windowTarget),_this.subsDialog.unsubscribe()}})})()}winboxOpenUri(uriUrl,windowTarget="_blank",force=!1){var _a;if(uriUrl.startsWith("http://")&&(uriUrl="https://"+uriUrl.slice(7,uriUrl.length)),uriUrl.startsWith("/api/"))this.confirmationOpenUrl(uriUrl,"_self");else if((null===(_a=this.currentServer)||void 0===_a?void 0:_a.winboxOpenLink)&&!this.gs.includesOneOf(uriUrl,["ftp://","mailto:"])||force){const currentDateTime=(new Date).getTime();this.openedWindow[currentDateTime]=new WinBox(uriUrl,{id:currentDateTime,title:uriUrl,url:uriUrl,class:"no-full no-shadow no-max",background:"#7b1fa2",x:"center",y:"center",top:56,right:0,bottom:32,left:64,onclose:force2=>(this.confirmationOpenUrl(uriUrl,windowTarget),!1)})}else this.confirmationOpenUrl(uriUrl,windowTarget)}}__name(WinboxService,"WinboxService"),exports2.WinboxService=WinboxService,WinboxService.\u0275fac=__name(function(t){return new(t||WinboxService)(i0.\u0275\u0275inject(i1.GlobalService),i0.\u0275\u0275inject(i2.DialogService),i0.\u0275\u0275inject(i3.StatsServerService))},"WinboxService_Factory"),WinboxService.\u0275prov=i0.\u0275\u0275defineInjectable({token:WinboxService,factory:WinboxService.\u0275fac,providedIn:"root"})},90158:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AppRoutingModule=void 0;const tslib_1=__webpack_require__2(70655),router_1=__webpack_require__2(74202),constants_1=__webpack_require__2(26271),req_res_model_1=__webpack_require__2(14249),roles_guard_1=__webpack_require__2(2777),verified_guard_1=__webpack_require__2(55094),i0=tslib_1.__importStar(__webpack_require__2(5e3)),routes=(tslib_1.__importStar(__webpack_require__2(74202)),[{path:"",pathMatch:"full",redirectTo:"home"},{path:"admin-mod",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(79511))).then(m=>m.AdminModule),canActivate:[verified_guard_1.VerifiedGuard,roles_guard_1.RolesGuard],data:{title:"Admin & Moderator Panel Management",description:"Halaman Khusus Untuk Administrasi & Moderasi",keywords:"Admin Moderator Fansub Database",[constants_1.CONSTANTS.decoratorVerifiedOnly]:!0,[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR]}},{path:"create",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(955))).then(m=>m.CreateModule),canActivate:[roles_guard_1.RolesGuard],data:{title:"Membuat Konten Baru",description:"Membuat Konten Baru",keywords:"Add New Content",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER]}},{path:"login",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(94541))).then(m=>m.LoginModule),data:{title:"Masuk",description:"Halaman Login",keywords:"Login"}},{path:"register",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(84992))).then(m=>m.RegisterModule),data:{title:"Pendaftaran",description:"Halaman Pembuatan Akun Baru",keywords:"Register"}},{path:"reset-password",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(2420))).then(m=>m.ResetPasswordModule),data:{title:"Reset Akun",description:"Halaman Atur Ulang Kata Sandi",keywords:"Reset Password"}},{path:"privacy-policy",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(18999))).then(m=>m.PrivacyPolicyModule),data:{title:"Privacy Policy",description:"Halaman Kebijakan Privasi",keywords:"privacy-policy"}},{path:"verify",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(92548))).then(m=>m.VerifyModule),canActivate:[roles_guard_1.RolesGuard],data:{title:"Verifikasi",description:"Halaman Verifikasi Akun",keywords:"Verify",[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER]}},{path:"home",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(27379))).then(m=>m.HomeModule),data:{title:"Database Fansub Indonesia",description:"Database Fansub Indonesia",keywords:"Fansub DB"}},{path:"news",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(6577))).then(m=>m.NewsModule),data:{title:"Berita & Informasi",description:"Papan Pengumuman",keywords:"News"}},{path:"mailbox",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(41309))).then(m=>m.MailboxModule),canActivate:[roles_guard_1.RolesGuard,verified_guard_1.VerifiedGuard],data:{title:"Surat Elektronik",description:"E-Mail & DM's",keywords:"Surel Email DM",[constants_1.CONSTANTS.decoratorVerifiedOnly]:!0,[constants_1.CONSTANTS.decoratorRoles]:[req_res_model_1.RoleModel.ADMIN,req_res_model_1.RoleModel.MODERATOR,req_res_model_1.RoleModel.FANSUBBER,req_res_model_1.RoleModel.USER]}},{path:"nihongo",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(24440))).then(m=>m.NihongoModule),data:{title:"Belajar Bahasa Jepang",description:"Jejepangan Lebih Seru Dengan Bahasa Aslinya",keywords:"Bahasa Jepang"}},{path:"berkas",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(64045))).then(m=>m.BerkasModule),data:{title:"Semua Berkas",description:"Kelola Arsip Berkas",keywords:"Berkas File"}},{path:"anime",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(16037))).then(m=>m.AnimeModule),data:{title:"List Anime & Garapan Musiman",description:"Daftar Isi Anime Musiman Yang Baru Saja Rilis Subtitle Indonesianya",keywords:"Anime Subtitle Indonesia"}},{path:"dorama",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(26796))).then(m=>m.DoramaModule),data:{title:"List Dorama & Garapan Musiman",description:"Daftar Isi Dorama Musiman Yang Baru Saja Rilis Subtitle Indonesianya",keywords:"Dorama Subtitle Indonesia"}},{path:"fansub",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(26139))).then(m=>m.FansubModule),data:{title:"Katalog Informasi Seluruh Fansub Indonesia",description:"Daftar Isi Seluruh Fansub Indonesia",keywords:"Fansub Indonesia"}},{path:"user",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(79058))).then(m=>m.UserModule),data:{title:"User Profile",description:"Halaman Informasi Pengguna",keywords:"User"}},{path:"rss-feed",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(73728))).then(m=>m.RssFeedModule),data:{title:"Loper Koran RSS Feed",description:"Halaman Rangkuman Berita Acara Fansub Indonesia",keywords:"RSS Feed"}},{path:"torrent",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(39692))).then(m=>m.TorrentModule),data:{title:"Web-SocketRTC Torrent",description:"Halaman Peer-to-Peer Berbagi Berkas",keywords:"Web Torrent"}},{path:"docs",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(52327))).then(m=>m.DocsModule),data:{title:"Developers Documentation",description:"For Developers Only",keywords:"Domain & API Keys"}},{path:"error",loadChildren:()=>Promise.resolve().then(()=>tslib_1.__importStar(__webpack_require__2(63218))).then(m=>m.NotFoundModule),data:{title:"Error - 404",description:"Whoops! Halaman Tidak Ditemukan",keywords:"404 - Not Found"}},{path:"**",redirectTo:"error"}]);class AppRoutingModule{}__name(AppRoutingModule,"AppRoutingModule"),exports2.AppRoutingModule=AppRoutingModule,AppRoutingModule.\u0275fac=__name(function(t){return new(t||AppRoutingModule)},"AppRoutingModule_Factory"),AppRoutingModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:AppRoutingModule}),AppRoutingModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[router_1.RouterModule.forRoot(routes,{initialNavigation:"enabledBlocking",scrollPositionRestoration:"enabled",relativeLinkResolution:"corrected"})],router_1.RouterModule]})},55041:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AppComponent=void 0;const tslib_1=__webpack_require__2(70655),router_1=(__webpack_require__2(5e3),__webpack_require__2(74202)),anim_side_menu_1=(__webpack_require__2(2638),__webpack_require__2(57261),__webpack_require__2(40746)),environment_1=__webpack_require__2(15934),i0=(__webpack_require__2(70007),__webpack_require__2(56514),__webpack_require__2(18745),__webpack_require__2(4137),__webpack_require__2(96382),__webpack_require__2(33e3),__webpack_require__2(80855),__webpack_require__2(28381),__webpack_require__2(88020),__webpack_require__2(53379),__webpack_require__2(55393),__webpack_require__2(79775),__webpack_require__2(74868),tslib_1.__importStar(__webpack_require__2(5e3))),i1=tslib_1.__importStar(__webpack_require__2(57261)),i2=tslib_1.__importStar(__webpack_require__2(74202)),i3=tslib_1.__importStar(__webpack_require__2(33e3)),i4=tslib_1.__importStar(__webpack_require__2(18745)),i5=tslib_1.__importStar(__webpack_require__2(4137)),i6=tslib_1.__importStar(__webpack_require__2(96382)),i7=tslib_1.__importStar(__webpack_require__2(53379)),i8=tslib_1.__importStar(__webpack_require__2(80855)),i9=tslib_1.__importStar(__webpack_require__2(70007)),i10=tslib_1.__importStar(__webpack_require__2(56514)),i11=tslib_1.__importStar(__webpack_require__2(28381)),i12=tslib_1.__importStar(__webpack_require__2(88020)),i13=tslib_1.__importStar(__webpack_require__2(55393)),i14=tslib_1.__importStar(__webpack_require__2(79775)),i15=tslib_1.__importStar(__webpack_require__2(74868)),i16=tslib_1.__importStar(__webpack_require__2(45009)),i17=tslib_1.__importStar(__webpack_require__2(86147)),i18=tslib_1.__importStar(__webpack_require__2(2638)),i19=tslib_1.__importStar(__webpack_require__2(69808)),i20=tslib_1.__importStar(__webpack_require__2(23322)),i21=tslib_1.__importStar(__webpack_require__2(33679)),i22=tslib_1.__importStar(__webpack_require__2(13223)),i23=tslib_1.__importStar(__webpack_require__2(34990)),i24=tslib_1.__importStar(__webpack_require__2(44732)),i25=tslib_1.__importStar(__webpack_require__2(50072)),_c0=["leftSideNav"],_c1=["rightSidePanel"],_c2=["siteContent"],_c3=__name(function(a0){return{"background-image":a0}},"_c3");class AppComponent{constructor(snackBar,renderer,router,activatedRoute,bs,pi,as,fs,ls,gs,lms,rps,ss,wb,ds,sw,viewer){this.snackBar=snackBar,this.renderer=renderer,this.router=router,this.activatedRoute=activatedRoute,this.bs=bs,this.pi=pi,this.as=as,this.fs=fs,this.ls=ls,this.gs=gs,this.lms=lms,this.rps=rps,this.ss=ss,this.wb=wb,this.ds=ds,this.sw=sw,this.viewer=viewer,this.subsRouter=null,this.subsRouterChild=null,this.subsUrl=null,this.subsVerify=null,this.subsDialog=null,this.timedOut=null,this.gs.isBrowser}get sideNavType(){return this.gs.isDesktop?"side":"over"}onResize(event){this.gs.onResize(event)}get ROUTER(){return this.router}get GS(){return this.gs}get LMS(){return this.lms}get RPS(){return this.rps}ngOnDestroy(){var _a,_b,_c,_d,_e;null===(_a=this.subsRouter)||void 0===_a||_a.unsubscribe(),null===(_b=this.subsRouterChild)||void 0===_b||_b.unsubscribe(),null===(_c=this.subsUrl)||void 0===_c||_c.unsubscribe(),null===(_d=this.subsVerify)||void 0===_d||_d.unsubscribe(),null===(_e=this.subsDialog)||void 0===_e||_e.unsubscribe(),this.timedOut&&(clearTimeout(this.timedOut),this.timedOut=null)}ngAfterViewInit(){if(this.lms.sideNav=this.leftSideNav,this.rps.sidePanel=this.rightSidePanel,this.gs.isBrowser){const appLoading=this.renderer.selectRootElement("#app-loading");appLoading&&(appLoading.style.visibility="hidden",appLoading.style.opacity=0)}}ngOnInit(){var _this=this;this.gs.log(`[APP_BUILD_STATUS] \u{1f498} ${environment_1.environment.siteName} :: ${environment_1.environment.production?"Production":"Development"} With Logging Enabled \u{1f4cc}`),this.gs.log(`[SERVICE_WORKER_STATUS] \u{1f498} isEnabled :: ${this.sw.swEnabled} \u{1f4cc}`),this.pi.updatePageMetaData(`\u300c\u{1f4a4} ${environment_1.environment.siteName}\u300d`,`\u300c\u2728 ${environment_1.environment.siteDescription}\u300d`,`\u300c\u{1f4a4} ${environment_1.environment.siteName} \u2728\u{1f31e}\u300d`,`${environment_1.environment.baseUrl}/assets/img/favicon.png`),this.subsRouter=this.router.events.subscribe({next:e1=>{if(e1 instanceof router_1.RouteConfigLoadStart)this.gs.isBrowser&&this.bs.busy();else if(e1 instanceof router_1.RouteConfigLoadEnd)this.gs.isBrowser&&this.bs.idle();else if(e1 instanceof router_1.NavigationStart){if(this.gs.isBrowser&&e1.url){const str=e1.url.split("/")[1];if(str){const stringBadge=`badge${str[0].toUpperCase()}${str.slice(1)}`;if(this.ss[stringBadge]){this.ss[stringBadge]=[];const mainMenu=this.lms.mainMenus.find(m=>m.link===e1.url),contentMenu=this.lms.contentMenus.find(m=>m.link===e1.url),miscMenu=this.lms.miscMenus.find(m=>m.link===e1.url);mainMenu&&(mainMenu.badge=null),contentMenu&&(contentMenu.badge=null),miscMenu&&(miscMenu.badge=null)}}this.gs.previousUrl=this.router.url.split("?")[0]}}else if(e1 instanceof router_1.NavigationEnd){let activatedRouteChild=this.activatedRoute.firstChild;for(const aRC of activatedRouteChild.children)activatedRouteChild=aRC;this.subsRouterChild=activatedRouteChild.data.subscribe({next:e2=>{if(this.updateBackgroundImage(),this.gs.routerData=e2,this.pi.updatePageMetaData(e2.title,e2.description,e2.keywords,this.gs.bgImgUrl||`${environment_1.environment.baseUrl}/assets/img/favicon.png`),this.fs.removeFab(),this.gs.isBrowser){this.siteContent&&(this.siteContent.elementRef.nativeElement.scrollTop=0);const nextUrl=e1.url.split("?")[0];this.gs.previousUrl!==nextUrl&&(this.ss.currentChatRoom=[]),this.ss.socketLeaveAndJoinNewRoom(this.gs.previousUrl,nextUrl)}}})}}}),this.gs.isBrowser&&(this.checkStorage(),this.windowRightClick=this.onWindowRightClick,this.windowLeftClick=this.onWindowLeftClick,this.windowDoubleClick=this.onWindowDoubleClick,this.windowBeforeUnloaded=this.onWindowBeforeUnloaded,this.timedOut=setTimeout(_asyncToGenerator(function*(){if("true"!==_this.ls.getItem(_this.gs.localStorageKeys.AturanTatib)){const defaultData={id:"ATURAN-TATA-TERTIB",data:{title:"Aturan Dan Tata Tertib Komunitas",htmlMessage:"Gagal Memuat Aturan Dan Tata Tertib Komunitas",confirmText:"Ok, Saya Mengerti!",cancelText:null},disableClose:!1,maxWidth:_this.ds.maxWidth};_this.subsDialog=(yield _this.ds.fetchInformationRegisterMode(defaultData)).afterClosed().subscribe({next:re=>{_this.gs.log("[ATURAN_TATA_TERTIB_DIALOG_CLOSED]",re),"boolean"==typeof re&&_this.ls.setItem(_this.gs.localStorageKeys.AturanTatib,JSON.stringify(re)),_this.subsDialog.unsubscribe()}})}_this.injectServerTimeClock(),_this.gs.weatherEffect&&_this.snackBar.open("Gunakan Menu Di Kanan Atas (Gambar Bunga) Untuk Mematikan Animasi Efek Musiman!","Ok")}),1234))}updateBackgroundImage(){const urlPath=this.router.url.split("?")[0].substring(1).split("/")[0];this.gs.bgImgUrlPath=urlPath?`/assets/img/router/${urlPath}.png`:""}checkStorage(){this.bs.busy(),this.subsVerify=this.as.verify(this.as.token).subscribe({next:success=>{this.gs.log("[VERIFY_SUCCESS]",success),this.ss.socketLeaveAndJoinNewRoom(this.gs.previousUrl,this.router.url.split("?")[0]),this.bs.idle()},error:error=>{this.gs.log("[VERIFY_ERROR]",error,"error"),this.bs.idle(),this.as.removeUser()}})}resetLoading(){this.bs.clear()}onWindowRightClick(ev){this.gs.log("[MOUSE_RIGHT_CLICK]",ev)}onWindowLeftClick(ev){this.gs.log("[MOUSE_LEFT_CLICK]",ev);const e=ev||window.event,el=e.target||e.srcElement;if("A"===el.tagName||"a"===el.tagName){const externalUri=el.getAttribute("href");if(externalUri&&this.gs.isDesktop&&this.gs.includesOneOf(externalUri,["http","ftp","mailto"])&&!externalUri.includes(environment_1.environment.baseUrl))return e.preventDefault(),e.stopPropagation(),this.winboxOpenUri(externalUri),!1}return!0}onWindowDoubleClick(ev){this.gs.log("[MOUSE_DOUBLE_CLICK]",ev);const e=ev||window.event,el=e.target||e.srcElement;("IMG"===el.tagName||"img"===el.tagName)&&this.gs.isDesktop&&this.viewer.viewImage(el)}onWindowBeforeUnloaded(ev){this.as.token&&(this.gs.log("[BROWSER_EXIT_CLOSE_SAVE_JWT]",this.as.token),this.ls.setItem(this.gs.localStorageKeys.token,this.as.token))}winboxOpenUri(uri){this.wb.winboxOpenUri(uri)}injectServerTimeClock(){if(this.gs.isDesktop){const backdrop=this.gs.document.getElementsByClassName("mat-drawer-backdrop");if(backdrop.length>0){backdrop[0].innerHTML='\n
\n
\n

~ Kalender (\uff61>\ufe4f<\uff61) Server ~

\n

\n

\n
\n
\n ';const script=this.gs.document.createElement("script");script.type="text/javascript",script.textContent="\n function runCalendar() {\n const calendar = new Date();\n const serverTime = document.getElementById('serverTime');\n serverTime.innerHTML = calendar.toLocaleTimeString('ja-JP', {\n timeZone: 'Asia/Tokyo',\n timeZoneName: 'longGeneric'\n });\n const serverDate = document.getElementById('serverDate');\n serverDate.innerHTML = calendar.toLocaleDateString('id-ID', {\n weekday: 'long',\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n timeZone: 'Asia/Tokyo'\n });\n setTimeout(runCalendar, 1000);\n }\n runCalendar();\n ",this.gs.document.head.appendChild(script)}}}}__name(AppComponent,"AppComponent"),exports2.AppComponent=AppComponent,AppComponent.\u0275fac=__name(function(t){return new(t||AppComponent)(i0.\u0275\u0275directiveInject(i1.MatSnackBar),i0.\u0275\u0275directiveInject(i0.Renderer2),i0.\u0275\u0275directiveInject(i2.Router),i0.\u0275\u0275directiveInject(i2.ActivatedRoute),i0.\u0275\u0275directiveInject(i3.BusyService),i0.\u0275\u0275directiveInject(i4.PageInfoService),i0.\u0275\u0275directiveInject(i5.AuthService),i0.\u0275\u0275directiveInject(i6.FabService),i0.\u0275\u0275directiveInject(i7.LocalStorageService),i0.\u0275\u0275directiveInject(i8.GlobalService),i0.\u0275\u0275directiveInject(i9.LeftMenuService),i0.\u0275\u0275directiveInject(i10.RightPanelService),i0.\u0275\u0275directiveInject(i11.StatsServerService),i0.\u0275\u0275directiveInject(i12.WinboxService),i0.\u0275\u0275directiveInject(i13.DialogService),i0.\u0275\u0275directiveInject(i14.ServiceWorkerService),i0.\u0275\u0275directiveInject(i15.ViewerService))},"AppComponent_Factory"),AppComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:AppComponent,selectors:[["app-root"]],viewQuery:__name(function(rf,ctx){if(1&rf&&(i0.\u0275\u0275viewQuery(_c0,7),i0.\u0275\u0275viewQuery(_c1,7),i0.\u0275\u0275viewQuery(_c2,7)),2&rf){let _t;i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.leftSideNav=_t.first),i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.rightSidePanel=_t.first),i0.\u0275\u0275queryRefresh(_t=i0.\u0275\u0275loadQuery())&&(ctx.siteContent=_t.first)}},"AppComponent_Query"),hostBindings:__name(function(rf,ctx){1&rf&&i0.\u0275\u0275listener("contextmenu",__name(function($event){return ctx.windowRightClick($event)},"AppComponent_contextmenu_HostBindingHandler"),!1,i0.\u0275\u0275resolveWindow)("click",__name(function($event){return ctx.windowLeftClick($event)},"AppComponent_click_HostBindingHandler"),!1,i0.\u0275\u0275resolveWindow)("dblclick",__name(function($event){return ctx.windowDoubleClick($event)},"AppComponent_dblclick_HostBindingHandler"),!1,i0.\u0275\u0275resolveWindow)("beforeunload",__name(function($event){return ctx.windowBeforeUnloaded($event)},"AppComponent_beforeunload_HostBindingHandler"),!1,i0.\u0275\u0275resolveWindow)("resize",__name(function($event){return ctx.onResize($event)},"AppComponent_resize_HostBindingHandler"),!1,i0.\u0275\u0275resolveWindow)},"AppComponent_HostBindings"),decls:24,vars:27,consts:[[3,"color","fixed","meteor","thick"],[1,"sidenav-container",3,"hasBackdrop"],["disableClose","",2,"background-position","bottom center","background-size","128px","background-repeat","no-repeat",3,"mode","opened","ngStyle"],["leftSideNav",""],["position","end",1,"bg-bifeldy",2,"background-position","bottom center","background-size","128px","background-repeat","no-repeat",3,"mode","opened","ngStyle","closedStart"],["rightSidePanel",""],["siteContent",""],[1,"main_content"],[3,"bdColor","type","size","color"],[1,"text-light","text-center"],[1,"text-info","text-decoration-none",3,"click"],[2,"cursor","pointer"]],template:__name(function(rf,ctx){if(1&rf&&(i0.\u0275\u0275element(0,"app-header")(1,"ng-progress",0),i0.\u0275\u0275elementStart(2,"mat-sidenav-container",1)(3,"mat-sidenav",2,3),i0.\u0275\u0275element(5,"app-left-menu"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"mat-sidenav",4,5),i0.\u0275\u0275listener("closedStart",__name(function(){return ctx.RPS.onClose()},"AppComponent_Template_mat_sidenav_closedStart_6_listener")),i0.\u0275\u0275element(8,"app-right-panel"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(9,"mat-sidenav-content",null,6)(11,"div",7),i0.\u0275\u0275element(12,"router-outlet"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275element(13,"app-material-fab"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275element(14,"app-footer"),i0.\u0275\u0275elementStart(15,"ngx-spinner",8)(16,"p",9),i0.\u0275\u0275text(17," Sedang Memuat Data ^_^ "),i0.\u0275\u0275element(18,"br"),i0.\u0275\u0275text(19," Mohon Menunggu ... "),i0.\u0275\u0275element(20,"br"),i0.\u0275\u0275elementStart(21,"span",10),i0.\u0275\u0275listener("click",__name(function(){return ctx.resetLoading()},"AppComponent_Template_span_click_21_listener")),i0.\u0275\u0275elementStart(22,"b",11),i0.\u0275\u0275text(23,"Batalkan"),i0.\u0275\u0275elementEnd()()()()),2&rf){const _r1=i0.\u0275\u0275reference(7);i0.\u0275\u0275advance(1),i0.\u0275\u0275property("color","#ff4081")("fixed",!1)("meteor",!1)("thick",!0),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("hasBackdrop",ctx.LMS.sideNavExpanded||_r1.isOpen),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("mode",ctx.sideNavType)("opened",ctx.LMS.opened)("ngStyle",i0.\u0275\u0275pureFunction1(23,_c3,"url("+ctx.GS.leftMenuImage+")")),i0.\u0275\u0275advance(3),i0.\u0275\u0275property("mode","over")("opened",!1)("ngStyle",i0.\u0275\u0275pureFunction1(25,_c3,"url("+ctx.GS.rightMenuImage+")")),i0.\u0275\u0275advance(3),i0.\u0275\u0275styleProp("background-repeat","no-repeat")("background-size","128px"+("/login"===ctx.ROUTER.url||"/register"===ctx.ROUTER.url||"/home"===ctx.ROUTER.url||"/verify"===ctx.ROUTER.url||"/privacy-policy"===ctx.ROUTER.url||"/reset-password"===ctx.ROUTER.url?", cover":""))("background-position","bottom right"+("/login"===ctx.ROUTER.url||"/register"===ctx.ROUTER.url||"/home"===ctx.ROUTER.url||"/verify"===ctx.ROUTER.url||"/privacy-policy"===ctx.ROUTER.url||"/reset-password"===ctx.ROUTER.url?", center":""))("background-image","url("+ctx.GS.bgImgUrl+")"+("/login"===ctx.ROUTER.url||"/register"===ctx.ROUTER.url||"/home"===ctx.ROUTER.url||"/verify"===ctx.ROUTER.url||"/privacy-policy"===ctx.ROUTER.url||"/reset-password"===ctx.ROUTER.url?", url(/assets/img/background/paint.svg)":"")),i0.\u0275\u0275advance(6),i0.\u0275\u0275property("bdColor","#0000007f")("type","square-jelly-box")("size","medium")("color","#e84360")}},"AppComponent_Template"),directives:[i16.HeaderComponent,i17.NgProgressComponent,i18.MatSidenavContainer,i18.MatSidenav,i19.NgStyle,i20.DefaultStyleDirective,i21.LeftMenuComponent,i22.RightPanelComponent,i18.MatSidenavContent,i2.RouterOutlet,i23.MaterialFabComponent,i24.FooterComponent,i25.NgxSpinnerComponent],styles:[".main_content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 88px)}"],data:{animation:[anim_side_menu_1.onMainContentChange]}})},36747:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AppModule=void 0;const tslib_1=__webpack_require__2(70655),platform_browser_1=__webpack_require__2(22313),common_1=__webpack_require__2(92480),animations_1=__webpack_require__2(3646),flex_layout_1=__webpack_require__2(37898),platform_browser_2=__webpack_require__2(22313),forms_1=__webpack_require__2(93075),http_1=__webpack_require__2(40520),snack_bar_1=__webpack_require__2(57261),form_field_1=__webpack_require__2(67322),tooltip_1=__webpack_require__2(87238),service_worker_1=__webpack_require__2(59802),ngx_spinner_1=__webpack_require__2(50072),ngx_toastr_1=__webpack_require__2(22290),ngx_progressbar_1=__webpack_require__2(86147),http_2=__webpack_require__2(20545),ngx_uploadx_1=__webpack_require__2(16493),constants_1=__webpack_require__2(26271),app_routing_module_1=__webpack_require__2(90158),my_hammer_config_1=__webpack_require__2(40765),tooltip_2=__webpack_require__2(32220),shared_material_module_1=__webpack_require__2(20210),http_cancel_interceptor_1=__webpack_require__2(66072),http_request_interceptor_1=__webpack_require__2(51313),http_response_interceptor_1=__webpack_require__2(71485),app_component_1=__webpack_require__2(55041),header_module_1=__webpack_require__2(48084),left_menu_module_1=__webpack_require__2(94203),right_panel_module_1=__webpack_require__2(85116),material_fab_module_1=__webpack_require__2(28198),footer_module_1=__webpack_require__2(88369),material_dialog_module_1=__webpack_require__2(68821),environment_1=__webpack_require__2(15934),i0=tslib_1.__importStar(__webpack_require__2(5e3));tslib_1.__importStar(__webpack_require__2(22313)),tslib_1.__importStar(__webpack_require__2(22290)),tslib_1.__importStar(__webpack_require__2(59802)),tslib_1.__importStar(__webpack_require__2(16493));class AppModule{}__name(AppModule,"AppModule"),exports2.AppModule=AppModule,AppModule.\u0275fac=__name(function(t){return new(t||AppModule)},"AppModule_Factory"),AppModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:AppModule,bootstrap:[app_component_1.AppComponent]}),AppModule.\u0275inj=i0.\u0275\u0275defineInjector({providers:[{provide:platform_browser_2.HAMMER_GESTURE_CONFIG,useClass:my_hammer_config_1.MyHammerConfig},{provide:tooltip_1.MAT_TOOLTIP_DEFAULT_OPTIONS,useValue:tooltip_2.MyTooltipConfig},{provide:form_field_1.MAT_FORM_FIELD_DEFAULT_OPTIONS,useValue:{floatLabel:"always"}},{provide:snack_bar_1.MAT_SNACK_BAR_DEFAULT_OPTIONS,useValue:{duration:1e4}},{provide:http_1.HTTP_INTERCEPTORS,useClass:http_request_interceptor_1.HttpRequestInterceptor,multi:!0},{provide:http_1.HTTP_INTERCEPTORS,useClass:http_response_interceptor_1.HttpResponseInterceptor,multi:!0},{provide:http_1.HTTP_INTERCEPTORS,useClass:http_cancel_interceptor_1.HttpCancelInterceptor,multi:!0}],imports:[[platform_browser_1.BrowserModule.withServerTransition({appId:"serverApp"}),app_routing_module_1.AppRoutingModule,animations_1.BrowserAnimationsModule,flex_layout_1.FlexLayoutModule,common_1.TransferHttpCacheModule,forms_1.ReactiveFormsModule,http_1.HttpClientModule,shared_material_module_1.SharedMaterialModule,platform_browser_1.HammerModule,ngx_spinner_1.NgxSpinnerModule,ngx_toastr_1.ToastrModule.forRoot({timeOut:3e3,positionClass:"toast-top-right",closeButton:!0,progressBar:!0,progressAnimation:"increasing"}),ngx_progressbar_1.NgProgressModule,http_2.NgProgressHttpModule,header_module_1.HeaderModule,left_menu_module_1.LeftMenuModule,right_panel_module_1.RightPanelModule,material_fab_module_1.MaterialFabModule,footer_module_1.FooterModule,material_dialog_module_1.MaterialDialogModule,service_worker_1.ServiceWorkerModule.register("/ngsw-worker.js",{enabled:environment_1.environment.production,registrationStrategy:"registerWhenStable:30000"}),ngx_uploadx_1.UploadxModule.withConfig({autoUpload:!1,concurrency:1,endpoint:`${environment_1.environment.apiUrl}/attachment`,headers:{"ngsw-bypass":"true"},retryConfig:{maxAttempts:3},maxChunkSize:constants_1.CONSTANTS.fileSizeAttachmentChunkCloudflareLimit})]]})},28061:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.AppServerModule=void 0;const tslib_1=__webpack_require__2(70655),platform_server_1=__webpack_require__2(47656),server_1=__webpack_require__2(55507),app_module_1=__webpack_require__2(36747),app_component_1=__webpack_require__2(55041),i0=tslib_1.__importStar(__webpack_require__2(5e3));class AppServerModule{}__name(AppServerModule,"AppServerModule"),exports2.AppServerModule=AppServerModule,AppServerModule.\u0275fac=__name(function(t){return new(t||AppServerModule)},"AppServerModule_Factory"),AppServerModule.\u0275mod=i0.\u0275\u0275defineNgModule({type:AppServerModule,bootstrap:[app_component_1.AppComponent]}),AppServerModule.\u0275inj=i0.\u0275\u0275defineInjector({imports:[[app_module_1.AppModule,platform_server_1.ServerModule,platform_server_1.ServerTransferStateModule,server_1.FlexLayoutServerModule]]})},26271:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.CONSTANTS=void 0,exports2.CONSTANTS={apiTagAnime:"Anime",apiTagApiKey:"API Key",apiTagAttachment:"Attachment",apiTagBanned:"Banned",apiTagBerkas:"Berkas",apiTagDorama:"Dorama",apiTagDdlFile:"DDL File",apiTagFansub:"Fansub",apiTagMail:"Surat Elektronik",apiTagNews:"News",apiTagNihongo:"Nihongo",apiTagQuiz:"Quiz",apiTagSession:"Session",apiTagUser:"User",attachmentSpeedLimiterBps:256e3,blacklistedWords:["*","www","fansub","fansub.id","fansubid","fansub-id","crawl","crawler","localhost","mail","email","e-mail","tracker","fansub","fansubber","ferdion","bifeldy","dev","api","docs","cs","help","support","proxy","admin","administrator","info","information","noreply","mod","moderator"],cronFansubRssFeed:"CRON_FANSUB_RSS_FEED",cronTrackerStatistics:"CRON_TRACKER_STATISTICS",cronSitemap:"CRON_SITEMAP",cronStatsServer:"CRON_STATS_SERVER",decoratorFilterApiKeyAccess:"filter-api-key-access",decoratorRoles:"roles",decoratorVerifiedOnly:"verified-only",extSubs:["ass","srt"],extFonts:["ttf","otf","woff","woff2"],fileTypeAttachmentAllowed:["video/x-msvideo","video/x-matroska","video/mp4","application/zip","application/zip-compressed","application/x-zip","application/x-zip-compressed"],fileSizeAttachmentChunkCloudflareLimit:64e6,fileSizeAttachmentChunkDiscordLimit:8e6,fileTypeAttachmentStreamable:["mkv","mp4"],fileSizeAttachmentTotalLimit:1e9,fileSizeImageLimit:256e3,freeTimeStart:"02:00:00",freeTimeEnd:"02:30:00",gCaptchaSiteKey:"6Ld4Bt4UAAAAAKJQ_jfqtWdsq9BuARLHag2DBvqK",jwtAlgorithm:"HS512",jwtExpiredIn:86400,quizOptionsCountHirakata:5,quizOptionsCountCategory:6,quizOptionsCountKanji:6,regexIpAddress:/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,regexAllKeyboardKeys:/^[\P{Cc}\P{Cn}\P{Cs}]*$/,regexEmail:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$/,regexEmailMulti:/^[^a-z0-9_]*([a-z0-9_+\-.%]+@[a-z0-9_\-.]+\.[a-z]+[^a-z0-9_]*,{1}[^a-z0-9_]*)*([a-z0-9_+\-.%]+@[a-z0-9_\-.]+\.[a-z]+)[^a-z0-9_]*$/,regexEnglishKeyboardKeys:/^[a-zA-Z0-9~`!@#\$%\^&\*\(\)_\-\+={\[\}\]\|\\:;"'<,>\.\?\/ \n]*$/,regexJapaneseKeyboardKeys:/[\u4e00-\u9fa0\u3041-\u3094\u30a1-\u30f4\u30fc\uff41-\uff5a\uff21-\uff3a\uff10-\uff19\u3005\u3006\u3024\u3001\u3002]+/u,regexUrl:/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/,retryDdlUploadMaxCount:5,socketRoomNameGlobalPublic:"GLOBAL_PUBLIK",socketRoomNameGlobalFansub:"GLOBAL_FANSUB",socketRoomNameServerLogs:"SERVER_LOGS",timeoutCancelRegisterKey:"TIMEOUT_CANCEL_REGISTER",timeoutCancelRegisterTime:3e5,timeoutDeleteTempAttachmentKey:"TIMEOUT_DELETE_TEMP_ATTACHMENT",timeoutDeleteTempAttachmentTime:18e4,timeoutMailWebhookTime:6e4,timeoutReconnectSocketKey:"TIMEOUT_RECONNECT_SOCKET",timeoutReconnectSocketTime:5e3,timeJwtEncryption:180,timeLoginRememberMe:604800,timeResetAccount:300,timeMaxDaysNotification:6048e5,verificationDomain:["ghs.google.com"]}},17482:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.environment=void 0;const secrets_1=__webpack_require__2(50770),Anime_1=__webpack_require__2(50363),Attachment_1=__webpack_require__2(93595),ApiKey_1=__webpack_require__2(54472),Banned_1=__webpack_require__2(94756),Berkas_1=__webpack_require__2(56115),DdlFile_1=__webpack_require__2(54875),Dorama_1=__webpack_require__2(26138),Edict_1=__webpack_require__2(98335),Fansub_1=__webpack_require__2(7460),FansubMember_1=__webpack_require__2(71469),Hirakata_1=__webpack_require__2(66098),HirakataStats_1=__webpack_require__2(31542),Information_1=__webpack_require__2(42014),Kanji_1=__webpack_require__2(75092),Kanjivg_1=__webpack_require__2(70185),KanjiStats_1=__webpack_require__2(85490),KartuTandaPenduduk_1=__webpack_require__2(32175),Komentar_1=__webpack_require__2(12214),LikeDislike_1=__webpack_require__2(3692),Mailbox_1=__webpack_require__2(45139),News_1=__webpack_require__2(1224),Nihongo_1=__webpack_require__2(90053),Notification_1=__webpack_require__2(60115),Profile_1=__webpack_require__2(86836),ProjectType_1=__webpack_require__2(98778),Registration_1=__webpack_require__2(18143),SocialMedia_1=__webpack_require__2(48234),Tatoeba_1=__webpack_require__2(82535),TempAttachment_1=__webpack_require__2(88808),Track_1=__webpack_require__2(75337),User_1=__webpack_require__2(20945);exports2.environment={production:(0,secrets_1.SECRETS)().IS_PRODUCTION,siteName:"FansubID",siteDescription:"Di Kamar Saja!",author:"Bifeldy",jwtSecretKey:(0,secrets_1.SECRETS)().JWT_SECRET_KEY,apiKeyName:"FansubID_ApiKey",tokenName:"FansubID_Token",domain:(0,secrets_1.SECRETS)().DOMAIN,domain_alt:(0,secrets_1.SECRETS)().DOMAIN_ALT,ip:(0,secrets_1.SECRETS)().IP,baseUrl:(0,secrets_1.SECRETS)().BASE_URL,typeorm:{type:"postgres",host:"localhost",port:5432,database:"fansubid",username:"postgres",password:(0,secrets_1.SECRETS)().DB_PASSWORD,synchronize:!0,logging:!(0,secrets_1.SECRETS)().IS_PRODUCTION,entities:[Anime_1.Anime,Attachment_1.Attachment,ApiKey_1.ApiKey,Banned_1.Banned,Berkas_1.Berkas,DdlFile_1.DdlFile,Dorama_1.Dorama,Edict_1.Edict,Fansub_1.Fansub,FansubMember_1.FansubMember,Hirakata_1.Hirakata,HirakataStats_1.HirakataStats,Information_1.Information,Kanji_1.Kanji,Kanjivg_1.Kanjivg,KanjiStats_1.KanjiStats,KartuTandaPenduduk_1.KartuTandaPenduduk,Komentar_1.Komentar,LikeDislike_1.LikeDislike,Mailbox_1.Mailbox,News_1.News,Nihongo_1.Nihongo,Notification_1.Notification,Profile_1.Profile,ProjectType_1.ProjectType,Registration_1.Registration,SocialMedia_1.SocialMedia,Tatoeba_1.Tatoeba,TempAttachment_1.TempAttachment,Track_1.Track,User_1.User]},viewFolder:"dist/fansubid/browser",tempFolder:"dist/fansubid/temp",uploadFolder:"dist/fansubid/uploads",jsonCacheFolder:"dist/fansubid/caches",apiPemerintahKTPUrl:(0,secrets_1.SECRETS)().API_PEMERINTAH_KTP_URL,apiPemerintahKTPSecretKey:(0,secrets_1.SECRETS)().API_PEMERINTAH_KTP_SECRET_KEY,imgbbKey:(0,secrets_1.SECRETS)().IMGBB_KEY,reCaptcha:{api_url:"https://www.google.com/recaptcha/api/siteverify",secret_key:(0,secrets_1.SECRETS)().RECAPTCHA_SECRET_KEY},gCloudPlatform:{token_uri:"https://oauth2.googleapis.com/token",app:{auth_uri:"https://accounts.google.com/o/oauth2/v2/auth/oauthchooseaccount",client_id:"955612959719-q9i4dtl0qp5icvc341q0cef6ul7ujov0.apps.googleusercontent.com",client_secret:(0,secrets_1.SECRETS)().GCP_APP_CLIENT_SECRET,profile_uri:"https://www.googleapis.com/oauth2/v1/userinfo",scopes:["https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/userinfo.profile"]},gDrive:{client_id:(0,secrets_1.SECRETS)().GCP_PERSONAL_ACCOUNT_CLIENT_ID,client_secret:(0,secrets_1.SECRETS)().GCP_PERSONAL_ACCOUNT_CLIENT_SECRET,client_email:(0,secrets_1.SECRETS)().GCP_PERSONAL_ACCOUNT_CLIENT_EMAIL,folder_id:"1DEiBMKDMZzSzhnlRi92tuyL2dh56tZLa",refresh_token:(0,secrets_1.SECRETS)().GCP_PERSONAL_ACCOUNT_REFRESH_TOKEN,scopes:["https://www.googleapis.com/auth/drive"]},serviceAccount:{client_email:(0,secrets_1.SECRETS)().GCP_SERVICE_ACCOUNT_CLIENT_EMAIL,private_key:(0,secrets_1.SECRETS)().GCP_SERVICE_ACCOUNT_PRIVATE_KEY}},mailTrap:{clientOptions:{username:"noreply",key:(0,secrets_1.SECRETS)().MAILTRAP_KEY,url:"https://send.api.mailtrap.io"},fullName:"FansubID | No-Reply",domain:"fansub.id"},cloudflare:{url:"https://api.cloudflare.com/client/v4",key:(0,secrets_1.SECRETS)().CLOUDFLARE_KEY,zoneId:"804863012d6a7700333d781170c4dd95",domain:"fansub.id",comment:"DOMAIN_KLAIM"},discord:{api_uri:"https://discord.com/api",client_id:"789831990433153034",guild_id:"342220398022098944",client_secret:(0,secrets_1.SECRETS)().DISCORD_CLIENT_SECRET,channelEventId:"790158935045701652",channelBotId:"426384107795251206",laboratoryRatsRoleId:"479208130534703108",loginToken:(0,secrets_1.SECRETS)().DISCORD_BOT_LOGIN_TOKEN,channelDdlId:"1087668627718803557"},nodeJsXhrHeader:{Accept:"application/json",Connection:"keep-alive","User-Agent":"node.js"},externalApiCacheTime:1800,externalApiAnime:"https://api.myanimelist.net/v2",externalApiDorama:"https://kuryana.vercel.app",externalApiImage:"https://api.imgbb.com/1/upload",torrent:{trackerAnnounce:["wss://tracker.fansub.id"]},malClientId:(0,secrets_1.SECRETS)().MAL_CLIENT_ID,idCloudHost:{url:"wss://api.idcloudhost.com/v1",apiKey:(0,secrets_1.SECRETS)().ID_CLOUD_HOST_API_KEY,mainSite:"01b00d5a-905d-4328-bc8d-bf748f1fc3dc"}}},15934:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.environment=void 0,exports2.environment={production:!0,siteName:"FansubID",siteDescription:"Di Kamar Saja!",author:"Bifeldy",domain:"fansub.id",baseUrl:"https://www.fansub.id",apiUrl:"/api",apiKey:"00000000-0000-0000-0000-000000000000",discord:{client_id:"789831990433153034",join_url:"https://discord.gg/xGWdExk",guild_id:"342220398022098944"},torrent:{trackerAnnounce:["wss://tracker.fansub.id","wss://tracker.btorrent.xyz","wss://tracker.openwebtorrent.com"],iceServers:[{urls:["stun:tracker.fansub.id:11111","stun:openrelay.metered.ca:80","stun:stun.l.google.com:19302"]}]}}},81789:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.renderModule=exports2.AppServerModule=void 0,__webpack_require__2(41369);const core_1=__webpack_require__2(5e3);__webpack_require__2(17482).environment.production&&(0,core_1.enableProdMode)();var app_server_module_1=__webpack_require__2(28061);Object.defineProperty(exports2,"AppServerModule",{enumerable:!0,get:function(){return app_server_module_1.AppServerModule}});var platform_server_1=__webpack_require__2(47656);Object.defineProperty(exports2,"renderModule",{enumerable:!0,get:function(){return platform_server_1.renderModule}})},14249:(__unused_webpack_module,exports2)=>{"use strict";var RoleModel2,JenisKelaminModel2,GolonganDarahModel2,AgamaModel2,WargaNegaraModel2,LikeAndDislikeModel2,SosMedModel2;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SosMedModel=exports2.LikeAndDislikeModel=exports2.WargaNegaraModel=exports2.AgamaModel=exports2.GolonganDarahModel=exports2.JenisKelaminModel=exports2.RoleModel=void 0,(RoleModel2=exports2.RoleModel||(exports2.RoleModel={})).ADMIN="ADMIN",RoleModel2.MODERATOR="MODERATOR",RoleModel2.FANSUBBER="FANSUBBER",RoleModel2.USER="USER",(JenisKelaminModel2=exports2.JenisKelaminModel||(exports2.JenisKelaminModel={})).LAKI="L",JenisKelaminModel2.PEREMPUAN="P",(GolonganDarahModel2=exports2.GolonganDarahModel||(exports2.GolonganDarahModel={})).A="A",GolonganDarahModel2.B="B",GolonganDarahModel2.AB="AB",GolonganDarahModel2.O="O",(AgamaModel2=exports2.AgamaModel||(exports2.AgamaModel={})).BUDDHA="Buddha",AgamaModel2.HINDU="Hindu",AgamaModel2.ISLAM="Islam",AgamaModel2.KATHOLIK="Katholik",AgamaModel2.KONG_HU_CU="Kong Hu Cu",AgamaModel2.KRISTEN_PROTESTAN="Kristen Protestan",(WargaNegaraModel2=exports2.WargaNegaraModel||(exports2.WargaNegaraModel={})).WNA="WNA",WargaNegaraModel2.WNI="WNI",(LikeAndDislikeModel2=exports2.LikeAndDislikeModel||(exports2.LikeAndDislikeModel={})).LIKE="LIKE",LikeAndDislikeModel2.DISLIKE="DISLIKE",(SosMedModel2=exports2.SosMedModel||(exports2.SosMedModel={})).DISCORD="DISCORD",SosMedModel2.DISQUS="DISQUS",SosMedModel2.FACEBOOK="FACEBOOK",SosMedModel2.GOOGLE="GOOGLE"},76022:(__unused_webpack_module,exports2)=>{"use strict";var SEASONS2;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SEASONS=void 0,(SEASONS2=exports2.SEASONS||(exports2.SEASONS={})).WINTER="winter",SEASONS2.SPRING="spring",SEASONS2.SUMMER="summer",SEASONS2.FALL="fall"},87623:(__unused_webpack_module,exports2)=>{"use strict";var WARNA2;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.WARNA=void 0,(WARNA2=exports2.WARNA||(exports2.WARNA={})).BIRU="#7289DA",WARNA2.UNGU="#3F51B5",WARNA2.HITAM="#343A40",WARNA2.ABU="#A9A9A9",WARNA2.MERAH="#DC3545",WARNA2.PINK="#FF4081",WARNA2.OREN="#F44336",WARNA2.KUNING="#FFC107",WARNA2.HIJAU="#28A745"},50770:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.SECRETS=void 0;const node_fs_1=__webpack_require__2(35404);let SECRETS_DATA=null;function SECRETS(){if(!SECRETS_DATA)try{const jsonFile=(0,node_fs_1.readFileSync)("secret.json","utf8");SECRETS_DATA=JSON.parse(jsonFile)}catch(e){console.error("[NODE_FS_READ_FILE_SYNC-ERROR] \u{1f4d6}",e),process.exit(1)}return SECRETS_DATA}__name(SECRETS,"SECRETS"),exports2.SECRETS=SECRETS},26207:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2=__webpack_require__2.nmd(module2);const wrapAnsi16=__name((fn2,offset)=>(...args2)=>`\x1b[${fn2(...args2)+offset}m`,"wrapAnsi16"),wrapAnsi256=__name((fn2,offset)=>(...args2)=>{const code2=fn2(...args2);return`\x1b[${38+offset};5;${code2}m`},"wrapAnsi256"),wrapAnsi16m=__name((fn2,offset)=>(...args2)=>{const rgb=fn2(...args2);return`\x1b[${38+offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`},"wrapAnsi16m"),ansi2ansi=__name(n=>n,"ansi2ansi"),rgb2rgb=__name((r,g,b2)=>[r,g,b2],"rgb2rgb"),setLazyProperty=__name((object,property,get)=>{Object.defineProperty(object,property,{get:()=>{const value=get();return Object.defineProperty(object,property,{value,enumerable:!0,configurable:!0}),value},enumerable:!0,configurable:!0})},"setLazyProperty");let colorConvert;const makeDynamicStyles=__name((wrap,targetSpace,identity,isBackground)=>{void 0===colorConvert&&(colorConvert=__webpack_require__2(25281));const offset=isBackground?10:0,styles={};for(const[sourceSpace,suite]of Object.entries(colorConvert)){const name="ansi16"===sourceSpace?"ansi":sourceSpace;sourceSpace===targetSpace?styles[name]=wrap(identity,offset):"object"==typeof suite&&(styles[name]=wrap(suite[targetSpace],offset))}return styles},"makeDynamicStyles");function assembleStyles(){const codes=new Map,styles={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};styles.color.gray=styles.color.blackBright,styles.bgColor.bgGray=styles.bgColor.bgBlackBright,styles.color.grey=styles.color.blackBright,styles.bgColor.bgGrey=styles.bgColor.bgBlackBright;for(const[groupName,group]of Object.entries(styles)){for(const[styleName,style]of Object.entries(group))styles[styleName]={open:`\x1b[${style[0]}m`,close:`\x1b[${style[1]}m`},group[styleName]=styles[styleName],codes.set(style[0],style[1]);Object.defineProperty(styles,groupName,{value:group,enumerable:!1})}return Object.defineProperty(styles,"codes",{value:codes,enumerable:!1}),styles.color.close="\x1b[39m",styles.bgColor.close="\x1b[49m",setLazyProperty(styles.color,"ansi",()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,!1)),setLazyProperty(styles.color,"ansi256",()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,!1)),setLazyProperty(styles.color,"ansi16m",()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,!1)),setLazyProperty(styles.bgColor,"ansi",()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,!0)),setLazyProperty(styles.bgColor,"ansi256",()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,!0)),setLazyProperty(styles.bgColor,"ansi16m",()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,!0)),styles}__name(assembleStyles,"assembleStyles"),Object.defineProperty(module2,"exports",{enumerable:!0,get:assembleStyles})},41091:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const ansiStyles=__webpack_require__2(26207),{stdout:stdoutColor,stderr:stderrColor}=__webpack_require__2(80572),{stringReplaceAll,stringEncaseCRLFWithFirstIndex}=__webpack_require__2(40072),{isArray}=Array,levelMapping=["ansi","ansi","ansi256","ansi16m"],styles=Object.create(null),applyOptions=__name((object,options={})=>{if(options.level&&!(Number.isInteger(options.level)&&options.level>=0&&options.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const colorLevel=stdoutColor?stdoutColor.level:0;object.level=void 0===options.level?colorLevel:options.level},"applyOptions");class ChalkClass{constructor(options){return chalkFactory(options)}}__name(ChalkClass,"ChalkClass");const chalkFactory=__name(options=>{const chalk2={};return applyOptions(chalk2,options),chalk2.template=(...arguments_)=>chalkTag(chalk2.template,...arguments_),Object.setPrototypeOf(chalk2,Chalk.prototype),Object.setPrototypeOf(chalk2.template,chalk2),chalk2.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},chalk2.template.Instance=ChalkClass,chalk2.template},"chalkFactory");function Chalk(options){return chalkFactory(options)}__name(Chalk,"Chalk");for(const[styleName,style]of Object.entries(ansiStyles))styles[styleName]={get(){const builder=createBuilder(this,createStyler(style.open,style.close,this._styler),this._isEmpty);return Object.defineProperty(this,styleName,{value:builder}),builder}};styles.visible={get(){const builder=createBuilder(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:builder}),builder}};const usedModels=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const model of usedModels)styles[model]={get(){const{level}=this;return function(...arguments_){const styler=createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_),ansiStyles.color.close,this._styler);return createBuilder(this,styler,this._isEmpty)}}};for(const model of usedModels){styles["bg"+model[0].toUpperCase()+model.slice(1)]={get(){const{level}=this;return function(...arguments_){const styler=createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_),ansiStyles.bgColor.close,this._styler);return createBuilder(this,styler,this._isEmpty)}}}}const proto=Object.defineProperties(()=>{},{...styles,level:{enumerable:!0,get(){return this._generator.level},set(level){this._generator.level=level}}}),createStyler=__name((open2,close,parent)=>{let openAll,closeAll;return void 0===parent?(openAll=open2,closeAll=close):(openAll=parent.openAll+open2,closeAll=close+parent.closeAll),{open:open2,close,openAll,closeAll,parent}},"createStyler"),createBuilder=__name((self2,_styler,_isEmpty)=>{const builder=__name((...arguments_)=>isArray(arguments_[0])&&isArray(arguments_[0].raw)?applyStyle(builder,chalkTag(builder,...arguments_)):applyStyle(builder,1===arguments_.length?""+arguments_[0]:arguments_.join(" ")),"builder");return Object.setPrototypeOf(builder,proto),builder._generator=self2,builder._styler=_styler,builder._isEmpty=_isEmpty,builder},"createBuilder"),applyStyle=__name((self2,string)=>{if(self2.level<=0||!string)return self2._isEmpty?"":string;let styler=self2._styler;if(void 0===styler)return string;const{openAll,closeAll}=styler;if(-1!==string.indexOf("\x1b"))for(;void 0!==styler;)string=stringReplaceAll(string,styler.close,styler.open),styler=styler.parent;const lfIndex=string.indexOf("\n");return-1!==lfIndex&&(string=stringEncaseCRLFWithFirstIndex(string,closeAll,openAll,lfIndex)),openAll+string+closeAll},"applyStyle");let template;const chalkTag=__name((chalk2,...strings)=>{const[firstString]=strings;if(!isArray(firstString)||!isArray(firstString.raw))return strings.join(" ");const arguments_=strings.slice(1),parts=[firstString.raw[0]];for(let i2=1;i2{"use strict";const TEMPLATE_REGEX=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,STYLE_REGEX=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,STRING_REGEX=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ESCAPE_REGEX=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,ESCAPES=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function unescape2(c){const u="u"===c[0],bracket="{"===c[1];return u&&!bracket&&5===c.length||"x"===c[0]&&3===c.length?String.fromCharCode(parseInt(c.slice(1),16)):u&&bracket?String.fromCodePoint(parseInt(c.slice(2,-1),16)):ESCAPES.get(c)||c}function parseArguments(name,arguments_){const results=[],chunks=arguments_.trim().split(/\s*,\s*/g);let matches;for(const chunk of chunks){const number=Number(chunk);if(Number.isNaN(number)){if(!(matches=chunk.match(STRING_REGEX)))throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);results.push(matches[2].replace(ESCAPE_REGEX,(m,escape2,character)=>escape2?unescape2(escape2):character))}else results.push(number)}return results}function parseStyle(style){STYLE_REGEX.lastIndex=0;const results=[];let matches;for(;null!==(matches=STYLE_REGEX.exec(style));){const name=matches[1];if(matches[2]){const args2=parseArguments(name,matches[2]);results.push([name].concat(args2))}else results.push([name])}return results}function buildStyle(chalk,styles){const enabled={};for(const layer of styles)for(const style of layer.styles)enabled[style[0]]=layer.inverse?null:style.slice(1);let current=chalk;for(const[styleName,styles2]of Object.entries(enabled))if(Array.isArray(styles2)){if(!(styleName in current))throw new Error(`Unknown Chalk style: ${styleName}`);current=styles2.length>0?current[styleName](...styles2):current[styleName]}return current}__name(unescape2,"unescape"),__name(parseArguments,"parseArguments"),__name(parseStyle,"parseStyle"),__name(buildStyle,"buildStyle"),module2.exports=(chalk,temporary)=>{const styles=[],chunks=[];let chunk=[];if(temporary.replace(TEMPLATE_REGEX,(m,escapeCharacter,inverse,style,close,character)=>{if(escapeCharacter)chunk.push(unescape2(escapeCharacter));else if(style){const string=chunk.join("");chunk=[],chunks.push(0===styles.length?string:buildStyle(chalk,styles)(string)),styles.push({inverse,styles:parseStyle(style)})}else if(close){if(0===styles.length)throw new Error("Found extraneous } in Chalk template literal");chunks.push(buildStyle(chalk,styles)(chunk.join(""))),chunk=[],styles.pop()}else chunk.push(character)}),chunks.push(chunk.join("")),styles.length>0){const errMessage=`Chalk template literal is missing ${styles.length} closing bracket${1===styles.length?"":"s"} (\`}\`)`;throw new Error(errMessage)}return chunks.join("")}},40072:module2=>{"use strict";const stringReplaceAll=__name((string,substring,replacer)=>{let index=string.indexOf(substring);if(-1===index)return string;const substringLength=substring.length;let endIndex=0,returnValue="";do{returnValue+=string.substr(endIndex,index-endIndex)+substring+replacer,endIndex=index+substringLength,index=string.indexOf(substring,endIndex)}while(-1!==index);return returnValue+=string.substr(endIndex),returnValue},"stringReplaceAll"),stringEncaseCRLFWithFirstIndex=__name((string,prefix,postfix,index)=>{let endIndex=0,returnValue="";do{const gotCR="\r"===string[index-1];returnValue+=string.substr(endIndex,(gotCR?index-1:index)-endIndex)+prefix+(gotCR?"\r\n":"\n")+postfix,endIndex=index+1,index=string.indexOf("\n",endIndex)}while(-1!==index);return returnValue+=string.substr(endIndex),returnValue},"stringEncaseCRLFWithFirstIndex");module2.exports={stringReplaceAll,stringEncaseCRLFWithFirstIndex}},68225:(module2,__unused_webpack_exports2,__webpack_require__2)=>{const cssKeywords=__webpack_require__2(4901),reverseKeywords={};for(const key of Object.keys(cssKeywords))reverseKeywords[cssKeywords[key]]=key;const convert={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};module2.exports=convert;for(const model of Object.keys(convert)){if(!("channels"in convert[model]))throw new Error("missing channels property: "+model);if(!("labels"in convert[model]))throw new Error("missing channel labels property: "+model);if(convert[model].labels.length!==convert[model].channels)throw new Error("channel and label counts mismatch: "+model);const{channels,labels}=convert[model];delete convert[model].channels,delete convert[model].labels,Object.defineProperty(convert[model],"channels",{value:channels}),Object.defineProperty(convert[model],"labels",{value:labels})}function comparativeDistance(x,y){return(x[0]-y[0])**2+(x[1]-y[1])**2+(x[2]-y[2])**2}convert.rgb.hsl=function(rgb){const r=rgb[0]/255,g=rgb[1]/255,b2=rgb[2]/255,min=Math.min(r,g,b2),max=Math.max(r,g,b2),delta=max-min;let h,s;max===min?h=0:r===max?h=(g-b2)/delta:g===max?h=2+(b2-r)/delta:b2===max&&(h=4+(r-g)/delta),h=Math.min(60*h,360),h<0&&(h+=360);const l=(min+max)/2;return s=max===min?0:l<=.5?delta/(max+min):delta/(2-max-min),[h,100*s,100*l]},convert.rgb.hsv=function(rgb){let rdif,gdif,bdif,h,s;const r=rgb[0]/255,g=rgb[1]/255,b2=rgb[2]/255,v=Math.max(r,g,b2),diff=v-Math.min(r,g,b2),diffc=__name(function(c){return(v-c)/6/diff+.5},"diffc");return 0===diff?(h=0,s=0):(s=diff/v,rdif=diffc(r),gdif=diffc(g),bdif=diffc(b2),r===v?h=bdif-gdif:g===v?h=.3333333333333333+rdif-bdif:b2===v&&(h=.6666666666666666+gdif-rdif),h<0?h+=1:h>1&&(h-=1)),[360*h,100*s,100*v]},convert.rgb.hwb=function(rgb){const r=rgb[0],g=rgb[1];let b2=rgb[2];const h=convert.rgb.hsl(rgb)[0],w=1/255*Math.min(r,Math.min(g,b2));return b2=1-.00392156862745098*Math.max(r,Math.max(g,b2)),[h,100*w,100*b2]},convert.rgb.cmyk=function(rgb){const r=rgb[0]/255,g=rgb[1]/255,b2=rgb[2]/255,k=Math.min(1-r,1-g,1-b2);return[100*((1-r-k)/(1-k)||0),100*((1-g-k)/(1-k)||0),100*((1-b2-k)/(1-k)||0),100*k]},__name(comparativeDistance,"comparativeDistance"),convert.rgb.keyword=function(rgb){const reversed=reverseKeywords[rgb];if(reversed)return reversed;let currentClosestKeyword,currentClosestDistance=1/0;for(const keyword of Object.keys(cssKeywords)){const distance=comparativeDistance(rgb,cssKeywords[keyword]);distance.04045?((r+.055)/1.055)**2.4:r/12.92,g=g>.04045?((g+.055)/1.055)**2.4:g/12.92,b2=b2>.04045?((b2+.055)/1.055)**2.4:b2/12.92;return[100*(.4124*r+.3576*g+.1805*b2),100*(.2126*r+.7152*g+.0722*b2),100*(.0193*r+.1192*g+.9505*b2)]},convert.rgb.lab=function(rgb){const xyz=convert.rgb.xyz(rgb);let x=xyz[0],y=xyz[1],z=xyz[2];x/=95.047,y/=100,z/=108.883,x=x>.008856?x**.3333333333333333:7.787*x+.13793103448275862,y=y>.008856?y**.3333333333333333:7.787*y+.13793103448275862,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862;return[116*y-16,500*(x-y),200*(y-z)]},convert.hsl.rgb=function(hsl){const h=hsl[0]/360,s=hsl[1]/100,l=hsl[2]/100;let t2,t3,val;if(0===s)return val=255*l,[val,val,val];t2=l<.5?l*(1+s):l+s-l*s;const t1=2*l-t2,rgb=[0,0,0];for(let i2=0;i2<3;i2++)t3=h+.3333333333333333*-(i2-1),t3<0&&t3++,t3>1&&t3--,val=6*t3<1?t1+6*(t2-t1)*t3:2*t3<1?t2:3*t3<2?t1+(t2-t1)*(.6666666666666666-t3)*6:t1,rgb[i2]=255*val;return rgb},convert.hsl.hsv=function(hsl){const h=hsl[0];let s=hsl[1]/100,l=hsl[2]/100,smin=s;const lmin=Math.max(l,.01);l*=2,s*=l<=1?l:2-l,smin*=lmin<=1?lmin:2-lmin;return[h,100*(0===l?2*smin/(lmin+smin):2*s/(l+s)),100*((l+s)/2)]},convert.hsv.rgb=function(hsv){const h=hsv[0]/60,s=hsv[1]/100;let v=hsv[2]/100;const hi=Math.floor(h)%6,f2=h-Math.floor(h),p=255*v*(1-s),q=255*v*(1-s*f2),t=255*v*(1-s*(1-f2));switch(v*=255,hi){case 0:return[v,t,p];case 1:return[q,v,p];case 2:return[p,v,t];case 3:return[p,q,v];case 4:return[t,p,v];case 5:return[v,p,q]}},convert.hsv.hsl=function(hsv){const h=hsv[0],s=hsv[1]/100,v=hsv[2]/100,vmin=Math.max(v,.01);let sl,l;l=(2-s)*v;const lmin=(2-s)*vmin;return sl=s*vmin,sl/=lmin<=1?lmin:2-lmin,sl=sl||0,l/=2,[h,100*sl,100*l]},convert.hwb.rgb=function(hwb){const h=hwb[0]/360;let wh=hwb[1]/100,bl=hwb[2]/100;const ratio=wh+bl;let f2;ratio>1&&(wh/=ratio,bl/=ratio);const i2=Math.floor(6*h),v=1-bl;f2=6*h-i2,0!=(1&i2)&&(f2=1-f2);const n=wh+f2*(v-wh);let r,g,b2;switch(i2){default:case 6:case 0:r=v,g=n,b2=wh;break;case 1:r=n,g=v,b2=wh;break;case 2:r=wh,g=v,b2=n;break;case 3:r=wh,g=n,b2=v;break;case 4:r=n,g=wh,b2=v;break;case 5:r=v,g=wh,b2=n}return[255*r,255*g,255*b2]},convert.cmyk.rgb=function(cmyk){const c=cmyk[0]/100,m=cmyk[1]/100,y=cmyk[2]/100,k=cmyk[3]/100;return[255*(1-Math.min(1,c*(1-k)+k)),255*(1-Math.min(1,m*(1-k)+k)),255*(1-Math.min(1,y*(1-k)+k))]},convert.xyz.rgb=function(xyz){const x=xyz[0]/100,y=xyz[1]/100,z=xyz[2]/100;let r,g,b2;return r=3.2406*x+-1.5372*y+-.4986*z,g=-.9689*x+1.8758*y+.0415*z,b2=.0557*x+-.204*y+1.057*z,r=r>.0031308?1.055*r**.4166666666666667-.055:12.92*r,g=g>.0031308?1.055*g**.4166666666666667-.055:12.92*g,b2=b2>.0031308?1.055*b2**.4166666666666667-.055:12.92*b2,r=Math.min(Math.max(0,r),1),g=Math.min(Math.max(0,g),1),b2=Math.min(Math.max(0,b2),1),[255*r,255*g,255*b2]},convert.xyz.lab=function(xyz){let x=xyz[0],y=xyz[1],z=xyz[2];x/=95.047,y/=100,z/=108.883,x=x>.008856?x**.3333333333333333:7.787*x+.13793103448275862,y=y>.008856?y**.3333333333333333:7.787*y+.13793103448275862,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862;return[116*y-16,500*(x-y),200*(y-z)]},convert.lab.xyz=function(lab){let x,y,z;y=(lab[0]+16)/116,x=lab[1]/500+y,z=y-lab[2]/200;const y2=y**3,x2=x**3,z2=z**3;return y=y2>.008856?y2:(y-.13793103448275862)/7.787,x=x2>.008856?x2:(x-.13793103448275862)/7.787,z=z2>.008856?z2:(z-.13793103448275862)/7.787,x*=95.047,y*=100,z*=108.883,[x,y,z]},convert.lab.lch=function(lab){const l=lab[0],a=lab[1],b2=lab[2];let h;h=360*Math.atan2(b2,a)/2/Math.PI,h<0&&(h+=360);return[l,Math.sqrt(a*a+b2*b2),h]},convert.lch.lab=function(lch){const l=lch[0],c=lch[1],hr=lch[2]/360*2*Math.PI;return[l,c*Math.cos(hr),c*Math.sin(hr)]},convert.rgb.ansi16=function(args2,saturation=null){const[r,g,b2]=args2;let value=null===saturation?convert.rgb.hsv(args2)[2]:saturation;if(value=Math.round(value/50),0===value)return 30;let ansi=30+(Math.round(b2/255)<<2|Math.round(g/255)<<1|Math.round(r/255));return 2===value&&(ansi+=60),ansi},convert.hsv.ansi16=function(args2){return convert.rgb.ansi16(convert.hsv.rgb(args2),args2[2])},convert.rgb.ansi256=function(args2){const r=args2[0],g=args2[1],b2=args2[2];return r===g&&g===b2?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(g/255*5)+Math.round(b2/255*5)},convert.ansi16.rgb=function(args2){let color=args2%10;if(0===color||7===color)return args2>50&&(color+=3.5),color=color/10.5*255,[color,color,color];const mult=.5*(1+~~(args2>50));return[(1&color)*mult*255,(color>>1&1)*mult*255,(color>>2&1)*mult*255]},convert.ansi256.rgb=function(args2){if(args2>=232){const c=10*(args2-232)+8;return[c,c,c]}let rem;args2-=16;return[Math.floor(args2/36)/5*255,Math.floor((rem=args2%36)/6)/5*255,rem%6/5*255]},convert.rgb.hex=function(args2){const string=(((255&Math.round(args2[0]))<<16)+((255&Math.round(args2[1]))<<8)+(255&Math.round(args2[2]))).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert.hex.rgb=function(args2){const match=args2.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match)return[0,0,0];let colorString=match[0];3===match[0].length&&(colorString=colorString.split("").map(char=>char+char).join(""));const integer=parseInt(colorString,16);return[integer>>16&255,integer>>8&255,255&integer]},convert.rgb.hcg=function(rgb){const r=rgb[0]/255,g=rgb[1]/255,b2=rgb[2]/255,max=Math.max(Math.max(r,g),b2),min=Math.min(Math.min(r,g),b2),chroma=max-min;let grayscale,hue;return grayscale=chroma<1?min/(1-chroma):0,hue=chroma<=0?0:max===r?(g-b2)/chroma%6:max===g?2+(b2-r)/chroma:4+(r-g)/chroma,hue/=6,hue%=1,[360*hue,100*chroma,100*grayscale]},convert.hsl.hcg=function(hsl){const s=hsl[1]/100,l=hsl[2]/100,c=l<.5?2*s*l:2*s*(1-l);let f2=0;return c<1&&(f2=(l-.5*c)/(1-c)),[hsl[0],100*c,100*f2]},convert.hsv.hcg=function(hsv){const s=hsv[1]/100,v=hsv[2]/100,c=s*v;let f2=0;return c<1&&(f2=(v-c)/(1-c)),[hsv[0],100*c,100*f2]},convert.hcg.rgb=function(hcg){const h=hcg[0]/360,c=hcg[1]/100,g=hcg[2]/100;if(0===c)return[255*g,255*g,255*g];const pure=[0,0,0],hi=h%1*6,v=hi%1,w=1-v;let mg=0;switch(Math.floor(hi)){case 0:pure[0]=1,pure[1]=v,pure[2]=0;break;case 1:pure[0]=w,pure[1]=1,pure[2]=0;break;case 2:pure[0]=0,pure[1]=1,pure[2]=v;break;case 3:pure[0]=0,pure[1]=w,pure[2]=1;break;case 4:pure[0]=v,pure[1]=0,pure[2]=1;break;default:pure[0]=1,pure[1]=0,pure[2]=w}return mg=(1-c)*g,[255*(c*pure[0]+mg),255*(c*pure[1]+mg),255*(c*pure[2]+mg)]},convert.hcg.hsv=function(hcg){const c=hcg[1]/100,v=c+hcg[2]/100*(1-c);let f2=0;return v>0&&(f2=c/v),[hcg[0],100*f2,100*v]},convert.hcg.hsl=function(hcg){const c=hcg[1]/100,l=hcg[2]/100*(1-c)+.5*c;let s=0;return l>0&&l<.5?s=c/(2*l):l>=.5&&l<1&&(s=c/(2*(1-l))),[hcg[0],100*s,100*l]},convert.hcg.hwb=function(hcg){const c=hcg[1]/100,v=c+hcg[2]/100*(1-c);return[hcg[0],100*(v-c),100*(1-v)]},convert.hwb.hcg=function(hwb){const w=hwb[1]/100,v=1-hwb[2]/100,c=v-w;let g=0;return c<1&&(g=(v-c)/(1-c)),[hwb[0],100*c,100*g]},convert.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]},convert.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]},convert.gray.rgb=function(args2){return[args2[0]/100*255,args2[0]/100*255,args2[0]/100*255]},convert.gray.hsl=function(args2){return[0,0,args2[0]]},convert.gray.hsv=convert.gray.hsl,convert.gray.hwb=function(gray){return[0,100,gray[0]]},convert.gray.cmyk=function(gray){return[0,0,0,gray[0]]},convert.gray.lab=function(gray){return[gray[0],0,0]},convert.gray.hex=function(gray){const val=255&Math.round(gray[0]/100*255),string=((val<<16)+(val<<8)+val).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert.rgb.gray=function(rgb){return[(rgb[0]+rgb[1]+rgb[2])/3/255*100]}},25281:(module2,__unused_webpack_exports2,__webpack_require__2)=>{const conversions=__webpack_require__2(68225),route=__webpack_require__2(6017),convert={},models=Object.keys(conversions);function wrapRaw(fn2){const wrappedFn=__name(function(...args2){const arg0=args2[0];return null==arg0?arg0:(arg0.length>1&&(args2=arg0),fn2(args2))},"wrappedFn");return"conversion"in fn2&&(wrappedFn.conversion=fn2.conversion),wrappedFn}function wrapRounded(fn2){const wrappedFn=__name(function(...args2){const arg0=args2[0];if(null==arg0)return arg0;arg0.length>1&&(args2=arg0);const result=fn2(args2);if("object"==typeof result)for(let len=result.length,i2=0;i2{convert[fromModel]={},Object.defineProperty(convert[fromModel],"channels",{value:conversions[fromModel].channels}),Object.defineProperty(convert[fromModel],"labels",{value:conversions[fromModel].labels});const routes=route(fromModel);Object.keys(routes).forEach(toModel=>{const fn2=routes[toModel];convert[fromModel][toModel]=wrapRounded(fn2),convert[fromModel][toModel].raw=wrapRaw(fn2)})}),module2.exports=convert},6017:(module2,__unused_webpack_exports2,__webpack_require__2)=>{const conversions=__webpack_require__2(68225);function buildGraph(){const graph={},models=Object.keys(conversions);for(let len=models.length,i2=0;i2{"use strict";module2.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},32247:module2=>{"use strict";module2.exports=(flag,argv=process.argv)=>{const prefix=flag.startsWith("-")?"":1===flag.length?"-":"--",position=argv.indexOf(prefix+flag),terminatorPosition=argv.indexOf("--");return-1!==position&&(-1===terminatorPosition||position{"use strict";const os=__webpack_require__2(22037),tty=__webpack_require__2(76224),hasFlag=__webpack_require__2(32247),{env}=process;let forceColor;function translateLevel(level){return 0!==level&&{level,hasBasic:!0,has256:level>=2,has16m:level>=3}}function supportsColor(haveStream,streamIsTTY){if(0===forceColor)return 0;if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor"))return 3;if(hasFlag("color=256"))return 2;if(haveStream&&!streamIsTTY&&void 0===forceColor)return 0;const min=forceColor||0;if("dumb"===env.TERM)return min;if("win32"===process.platform){const osRelease=os.release().split(".");return Number(osRelease[0])>=10&&Number(osRelease[2])>=10586?Number(osRelease[2])>=14931?3:2:1}if("CI"in env)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(sign=>sign in env)||"codeship"===env.CI_NAME?1:min;if("TEAMCITY_VERSION"in env)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION)?1:0;if("truecolor"===env.COLORTERM)return 3;if("TERM_PROGRAM"in env){const version=parseInt((env.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(env.TERM_PROGRAM){case"iTerm.app":return version>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(env.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)||"COLORTERM"in env?1:min}function getSupportLevel(stream){return translateLevel(supportsColor(stream,stream&&stream.isTTY))}hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")?forceColor=0:(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always"))&&(forceColor=1),"FORCE_COLOR"in env&&(forceColor="true"===env.FORCE_COLOR?1:"false"===env.FORCE_COLOR?0:0===env.FORCE_COLOR.length?1:Math.min(parseInt(env.FORCE_COLOR,10),3)),__name(translateLevel,"translateLevel"),__name(supportsColor,"supportsColor"),__name(getSupportLevel,"getSupportLevel"),module2.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(!0,tty.isatty(1))),stderr:translateLevel(supportsColor(!0,tty.isatty(2)))}},52882:(module2,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const typedArrayTypeNames=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function isTypedArrayName(name){return typedArrayTypeNames.includes(name)}__name(isTypedArrayName,"isTypedArrayName");const objectTypeNames=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...typedArrayTypeNames];function isObjectTypeName(name){return objectTypeNames.includes(name)}__name(isObjectTypeName,"isObjectTypeName");const primitiveTypeNames=["null","undefined","string","number","bigint","boolean","symbol"];function isPrimitiveTypeName(name){return primitiveTypeNames.includes(name)}function isOfType(type){return value=>typeof value===type}__name(isPrimitiveTypeName,"isPrimitiveTypeName"),__name(isOfType,"isOfType");const{toString}=Object.prototype,getObjectType=__name(value=>{const objectTypeName=toString.call(value).slice(8,-1);return/HTML\w+Element/.test(objectTypeName)&&is.domElement(value)?"HTMLElement":isObjectTypeName(objectTypeName)?objectTypeName:void 0},"getObjectType"),isObjectOfType=__name(type=>value=>getObjectType(value)===type,"isObjectOfType");function is(value){if(null===value)return"null";switch(typeof value){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol"}if(is.observable(value))return"Observable";if(is.array(value))return"Array";if(is.buffer(value))return"Buffer";const tagType=getObjectType(value);if(tagType)return tagType;if(value instanceof String||value instanceof Boolean||value instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}__name(is,"is"),is.undefined=isOfType("undefined"),is.string=isOfType("string");const isNumberType=isOfType("number");is.number=value=>isNumberType(value)&&!is.nan(value),is.bigint=isOfType("bigint"),is.function_=isOfType("function"),is.null_=value=>null===value,is.class_=value=>is.function_(value)&&value.toString().startsWith("class "),is.boolean=value=>!0===value||!1===value,is.symbol=isOfType("symbol"),is.numericString=value=>is.string(value)&&!is.emptyStringOrWhitespace(value)&&!Number.isNaN(Number(value)),is.array=(value,assertion)=>!!Array.isArray(value)&&(!is.function_(assertion)||value.every(assertion)),is.buffer=value=>{var _a,_b,_c,_d;return null!==(_d=null===(_c=null===(_b=null===(_a=value)||void 0===_a?void 0:_a.constructor)||void 0===_b?void 0:_b.isBuffer)||void 0===_c?void 0:_c.call(_b,value))&&void 0!==_d&&_d},is.blob=value=>isObjectOfType("Blob")(value),is.nullOrUndefined=value=>is.null_(value)||is.undefined(value),is.object=value=>!is.null_(value)&&("object"==typeof value||is.function_(value)),is.iterable=value=>{var _a;return is.function_(null===(_a=value)||void 0===_a?void 0:_a[Symbol.iterator])},is.asyncIterable=value=>{var _a;return is.function_(null===(_a=value)||void 0===_a?void 0:_a[Symbol.asyncIterator])},is.generator=value=>{var _a,_b;return is.iterable(value)&&is.function_(null===(_a=value)||void 0===_a?void 0:_a.next)&&is.function_(null===(_b=value)||void 0===_b?void 0:_b.throw)},is.asyncGenerator=value=>is.asyncIterable(value)&&is.function_(value.next)&&is.function_(value.throw),is.nativePromise=value=>isObjectOfType("Promise")(value);const hasPromiseAPI=__name(value=>{var _a,_b;return is.function_(null===(_a=value)||void 0===_a?void 0:_a.then)&&is.function_(null===(_b=value)||void 0===_b?void 0:_b.catch)},"hasPromiseAPI");is.promise=value=>is.nativePromise(value)||hasPromiseAPI(value),is.generatorFunction=isObjectOfType("GeneratorFunction"),is.asyncGeneratorFunction=value=>"AsyncGeneratorFunction"===getObjectType(value),is.asyncFunction=value=>"AsyncFunction"===getObjectType(value),is.boundFunction=value=>is.function_(value)&&!value.hasOwnProperty("prototype"),is.regExp=isObjectOfType("RegExp"),is.date=isObjectOfType("Date"),is.error=isObjectOfType("Error"),is.map=value=>isObjectOfType("Map")(value),is.set=value=>isObjectOfType("Set")(value),is.weakMap=value=>isObjectOfType("WeakMap")(value),is.weakSet=value=>isObjectOfType("WeakSet")(value),is.int8Array=isObjectOfType("Int8Array"),is.uint8Array=isObjectOfType("Uint8Array"),is.uint8ClampedArray=isObjectOfType("Uint8ClampedArray"),is.int16Array=isObjectOfType("Int16Array"),is.uint16Array=isObjectOfType("Uint16Array"),is.int32Array=isObjectOfType("Int32Array"),is.uint32Array=isObjectOfType("Uint32Array"),is.float32Array=isObjectOfType("Float32Array"),is.float64Array=isObjectOfType("Float64Array"),is.bigInt64Array=isObjectOfType("BigInt64Array"),is.bigUint64Array=isObjectOfType("BigUint64Array"),is.arrayBuffer=isObjectOfType("ArrayBuffer"),is.sharedArrayBuffer=isObjectOfType("SharedArrayBuffer"),is.dataView=isObjectOfType("DataView"),is.enumCase=(value,targetEnum)=>Object.values(targetEnum).includes(value),is.directInstanceOf=(instance,class_)=>Object.getPrototypeOf(instance)===class_.prototype,is.urlInstance=value=>isObjectOfType("URL")(value),is.urlString=value=>{if(!is.string(value))return!1;try{return new URL(value),!0}catch{return!1}},is.truthy=value=>Boolean(value),is.falsy=value=>!value,is.nan=value=>Number.isNaN(value),is.primitive=value=>is.null_(value)||isPrimitiveTypeName(typeof value),is.integer=value=>Number.isInteger(value),is.safeInteger=value=>Number.isSafeInteger(value),is.plainObject=value=>{if("[object Object]"!==toString.call(value))return!1;const prototype=Object.getPrototypeOf(value);return null===prototype||prototype===Object.getPrototypeOf({})},is.typedArray=value=>isTypedArrayName(getObjectType(value));const isValidLength=__name(value=>is.safeInteger(value)&&value>=0,"isValidLength");is.arrayLike=value=>!is.nullOrUndefined(value)&&!is.function_(value)&&isValidLength(value.length),is.inRange=(value,range)=>{if(is.number(range))return value>=Math.min(0,range)&&value<=Math.max(range,0);if(is.array(range)&&2===range.length)return value>=Math.min(...range)&&value<=Math.max(...range);throw new TypeError(`Invalid range: ${JSON.stringify(range)}`)};const DOM_PROPERTIES_TO_CHECK=["innerHTML","ownerDocument","style","attributes","nodeValue"];is.domElement=value=>is.object(value)&&1===value.nodeType&&is.string(value.nodeName)&&!is.plainObject(value)&&DOM_PROPERTIES_TO_CHECK.every(property=>property in value),is.observable=value=>{var _a,_b,_c,_d;return!!value&&(value===(null===(_b=(_a=value)[Symbol.observable])||void 0===_b?void 0:_b.call(_a))||value===(null===(_d=(_c=value)["@@observable"])||void 0===_d?void 0:_d.call(_c)))},is.nodeStream=value=>is.object(value)&&is.function_(value.pipe)&&!is.observable(value),is.infinite=value=>value===1/0||value===-1/0;const isAbsoluteMod2=__name(remainder=>value=>is.integer(value)&&Math.abs(value%2)===remainder,"isAbsoluteMod2");is.evenInteger=isAbsoluteMod2(0),is.oddInteger=isAbsoluteMod2(1),is.emptyArray=value=>is.array(value)&&0===value.length,is.nonEmptyArray=value=>is.array(value)&&value.length>0,is.emptyString=value=>is.string(value)&&0===value.length;const isWhiteSpaceString=__name(value=>is.string(value)&&!/\S/.test(value),"isWhiteSpaceString");is.emptyStringOrWhitespace=value=>is.emptyString(value)||isWhiteSpaceString(value),is.nonEmptyString=value=>is.string(value)&&value.length>0,is.nonEmptyStringAndNotWhitespace=value=>is.string(value)&&!is.emptyStringOrWhitespace(value),is.emptyObject=value=>is.object(value)&&!is.map(value)&&!is.set(value)&&0===Object.keys(value).length,is.nonEmptyObject=value=>is.object(value)&&!is.map(value)&&!is.set(value)&&Object.keys(value).length>0,is.emptySet=value=>is.set(value)&&0===value.size,is.nonEmptySet=value=>is.set(value)&&value.size>0,is.emptyMap=value=>is.map(value)&&0===value.size,is.nonEmptyMap=value=>is.map(value)&&value.size>0,is.propertyKey=value=>is.any([is.string,is.number,is.symbol],value),is.formData=value=>isObjectOfType("FormData")(value),is.urlSearchParams=value=>isObjectOfType("URLSearchParams")(value);const predicateOnArray=__name((method,predicate,values)=>{if(!is.function_(predicate))throw new TypeError(`Invalid predicate: ${JSON.stringify(predicate)}`);if(0===values.length)throw new TypeError("Invalid number of values");return method.call(values,predicate)},"predicateOnArray");is.any=(predicate,...values)=>(is.array(predicate)?predicate:[predicate]).some(singlePredicate=>predicateOnArray(Array.prototype.some,singlePredicate,values)),is.all=(predicate,...values)=>predicateOnArray(Array.prototype.every,predicate,values);const assertType=__name((condition,description,value,options={})=>{if(!condition){const{multipleValues}=options,valuesMessage=multipleValues?`received values of types ${[...new Set(value.map(singleValue=>`\`${is(singleValue)}\``))].join(", ")}`:`received value of type \`${is(value)}\``;throw new TypeError(`Expected value which is \`${description}\`, ${valuesMessage}.`)}},"assertType");exports2.assert={undefined:value=>assertType(is.undefined(value),"undefined",value),string:value=>assertType(is.string(value),"string",value),number:value=>assertType(is.number(value),"number",value),bigint:value=>assertType(is.bigint(value),"bigint",value),function_:value=>assertType(is.function_(value),"Function",value),null_:value=>assertType(is.null_(value),"null",value),class_:value=>assertType(is.class_(value),"Class",value),boolean:value=>assertType(is.boolean(value),"boolean",value),symbol:value=>assertType(is.symbol(value),"symbol",value),numericString:value=>assertType(is.numericString(value),"string with a number",value),array:(value,assertion)=>{assertType(is.array(value),"Array",value),assertion&&value.forEach(assertion)},buffer:value=>assertType(is.buffer(value),"Buffer",value),blob:value=>assertType(is.blob(value),"Blob",value),nullOrUndefined:value=>assertType(is.nullOrUndefined(value),"null or undefined",value),object:value=>assertType(is.object(value),"Object",value),iterable:value=>assertType(is.iterable(value),"Iterable",value),asyncIterable:value=>assertType(is.asyncIterable(value),"AsyncIterable",value),generator:value=>assertType(is.generator(value),"Generator",value),asyncGenerator:value=>assertType(is.asyncGenerator(value),"AsyncGenerator",value),nativePromise:value=>assertType(is.nativePromise(value),"native Promise",value),promise:value=>assertType(is.promise(value),"Promise",value),generatorFunction:value=>assertType(is.generatorFunction(value),"GeneratorFunction",value),asyncGeneratorFunction:value=>assertType(is.asyncGeneratorFunction(value),"AsyncGeneratorFunction",value),asyncFunction:value=>assertType(is.asyncFunction(value),"AsyncFunction",value),boundFunction:value=>assertType(is.boundFunction(value),"Function",value),regExp:value=>assertType(is.regExp(value),"RegExp",value),date:value=>assertType(is.date(value),"Date",value),error:value=>assertType(is.error(value),"Error",value),map:value=>assertType(is.map(value),"Map",value),set:value=>assertType(is.set(value),"Set",value),weakMap:value=>assertType(is.weakMap(value),"WeakMap",value),weakSet:value=>assertType(is.weakSet(value),"WeakSet",value),int8Array:value=>assertType(is.int8Array(value),"Int8Array",value),uint8Array:value=>assertType(is.uint8Array(value),"Uint8Array",value),uint8ClampedArray:value=>assertType(is.uint8ClampedArray(value),"Uint8ClampedArray",value),int16Array:value=>assertType(is.int16Array(value),"Int16Array",value),uint16Array:value=>assertType(is.uint16Array(value),"Uint16Array",value),int32Array:value=>assertType(is.int32Array(value),"Int32Array",value),uint32Array:value=>assertType(is.uint32Array(value),"Uint32Array",value),float32Array:value=>assertType(is.float32Array(value),"Float32Array",value),float64Array:value=>assertType(is.float64Array(value),"Float64Array",value),bigInt64Array:value=>assertType(is.bigInt64Array(value),"BigInt64Array",value),bigUint64Array:value=>assertType(is.bigUint64Array(value),"BigUint64Array",value),arrayBuffer:value=>assertType(is.arrayBuffer(value),"ArrayBuffer",value),sharedArrayBuffer:value=>assertType(is.sharedArrayBuffer(value),"SharedArrayBuffer",value),dataView:value=>assertType(is.dataView(value),"DataView",value),enumCase:(value,targetEnum)=>assertType(is.enumCase(value,targetEnum),"EnumCase",value),urlInstance:value=>assertType(is.urlInstance(value),"URL",value),urlString:value=>assertType(is.urlString(value),"string with a URL",value),truthy:value=>assertType(is.truthy(value),"truthy",value),falsy:value=>assertType(is.falsy(value),"falsy",value),nan:value=>assertType(is.nan(value),"NaN",value),primitive:value=>assertType(is.primitive(value),"primitive",value),integer:value=>assertType(is.integer(value),"integer",value),safeInteger:value=>assertType(is.safeInteger(value),"integer",value),plainObject:value=>assertType(is.plainObject(value),"plain object",value),typedArray:value=>assertType(is.typedArray(value),"TypedArray",value),arrayLike:value=>assertType(is.arrayLike(value),"array-like",value),domElement:value=>assertType(is.domElement(value),"HTMLElement",value),observable:value=>assertType(is.observable(value),"Observable",value),nodeStream:value=>assertType(is.nodeStream(value),"Node.js Stream",value),infinite:value=>assertType(is.infinite(value),"infinite number",value),emptyArray:value=>assertType(is.emptyArray(value),"empty array",value),nonEmptyArray:value=>assertType(is.nonEmptyArray(value),"non-empty array",value),emptyString:value=>assertType(is.emptyString(value),"empty string",value),emptyStringOrWhitespace:value=>assertType(is.emptyStringOrWhitespace(value),"empty string or whitespace",value),nonEmptyString:value=>assertType(is.nonEmptyString(value),"non-empty string",value),nonEmptyStringAndNotWhitespace:value=>assertType(is.nonEmptyStringAndNotWhitespace(value),"non-empty string and not whitespace",value),emptyObject:value=>assertType(is.emptyObject(value),"empty object",value),nonEmptyObject:value=>assertType(is.nonEmptyObject(value),"non-empty object",value),emptySet:value=>assertType(is.emptySet(value),"empty set",value),nonEmptySet:value=>assertType(is.nonEmptySet(value),"non-empty set",value),emptyMap:value=>assertType(is.emptyMap(value),"empty map",value),nonEmptyMap:value=>assertType(is.nonEmptyMap(value),"non-empty map",value),propertyKey:value=>assertType(is.propertyKey(value),"PropertyKey",value),formData:value=>assertType(is.formData(value),"FormData",value),urlSearchParams:value=>assertType(is.urlSearchParams(value),"URLSearchParams",value),evenInteger:value=>assertType(is.evenInteger(value),"even integer",value),oddInteger:value=>assertType(is.oddInteger(value),"odd integer",value),directInstanceOf:(instance,class_)=>assertType(is.directInstanceOf(instance,class_),"T",instance),inRange:(value,range)=>assertType(is.inRange(value,range),"in range",value),any:(predicate,...values)=>assertType(is.any(predicate,...values),"predicate returns truthy for any value",values,{multipleValues:!0}),all:(predicate,...values)=>assertType(is.all(predicate,...values),"predicate returns truthy for all values",values,{multipleValues:!0})},Object.defineProperties(is,{class:{value:is.class_},function:{value:is.function_},null:{value:is.null_}}),Object.defineProperties(exports2.assert,{class:{value:exports2.assert.class_},function:{value:exports2.assert.function_},null:{value:exports2.assert.null_}}),exports2.default=is,module2.exports=is,module2.exports.default=is,module2.exports.assert=exports2.assert},77924:(module2,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});const defer_to_connect_1=__webpack_require__2(14978),util_1=__webpack_require__2(73837),nodejsMajorVersion=Number(process.versions.node.split(".")[0]),timer=__name(request=>{if(request.timings)return request.timings;const timings={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};request.timings=timings;const handleError=__name(origin=>{const emit=origin.emit.bind(origin);origin.emit=(event,...args2)=>("error"===event&&(timings.error=Date.now(),timings.phases.total=timings.error-timings.start,origin.emit=emit),emit(event,...args2))},"handleError");handleError(request);const onAbort=__name(()=>{timings.abort=Date.now(),(!timings.response||nodejsMajorVersion>=13)&&(timings.phases.total=Date.now()-timings.start)},"onAbort");request.prependOnceListener("abort",onAbort);const onSocket=__name(socket=>{if(timings.socket=Date.now(),timings.phases.wait=timings.socket-timings.start,util_1.types.isProxy(socket))return;const lookupListener=__name(()=>{timings.lookup=Date.now(),timings.phases.dns=timings.lookup-timings.socket},"lookupListener");socket.prependOnceListener("lookup",lookupListener),defer_to_connect_1.default(socket,{connect:()=>{timings.connect=Date.now(),void 0===timings.lookup&&(socket.removeListener("lookup",lookupListener),timings.lookup=timings.connect,timings.phases.dns=timings.lookup-timings.socket),timings.phases.tcp=timings.connect-timings.lookup},secureConnect:()=>{timings.secureConnect=Date.now(),timings.phases.tls=timings.secureConnect-timings.connect}})},"onSocket");request.socket?onSocket(request.socket):request.prependOnceListener("socket",onSocket);const onUpload=__name(()=>{var _a;timings.upload=Date.now(),timings.phases.request=timings.upload-(null!==(_a=timings.secureConnect)&&void 0!==_a?_a:timings.connect)},"onUpload");return __name(()=>"boolean"==typeof request.writableFinished?request.writableFinished:request.finished&&0===request.outputSize&&(!request.socket||0===request.socket.writableLength),"writableFinished")()?onUpload():request.prependOnceListener("finish",onUpload),request.prependOnceListener("response",response=>{timings.response=Date.now(),timings.phases.firstByte=timings.response-timings.upload,response.timings=timings,handleError(response),response.prependOnceListener("end",()=>{timings.end=Date.now(),timings.phases.download=timings.end-timings.response,timings.phases.total=timings.end-timings.start}),response.prependOnceListener("aborted",onAbort)}),timings},"timer");exports2.default=timer,module2.exports=timer,module2.exports.default=timer},90691:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BaseHandler=void 0;const events_1=__webpack_require__2(82361),url=__webpack_require__2(57310),storages_1=__webpack_require__2(17024),utils_1=__webpack_require__2(20819),cors_1=__webpack_require__2(69975);class BaseHandler extends events_1.EventEmitter{constructor(config={}){var _this;super(),_this=this,this.responseType="json",this.registeredHandlers=new Map,this._errorResponses={},this.handle=(req,res)=>this.upload(req,res),this.upload=(req,res,next)=>{req.on("error",err=>this.logger.error("[request error]: %o",err)),this.cors.preflight(req,res),this.logger.debug("[request]: %s %s",req.method,req.url);const handler=this.registeredHandlers.get(req.method);return handler?this.storage.isReady?void handler.call(this,req,res).then(function(){var _ref=_asyncToGenerator(function*(file2){if("status"in file2&&file2.status){if(_this.logger.debug("[%s]: %s: %d/%d",file2.status,file2.name,file2.bytesWritten,file2.size),_this.listenerCount(file2.status)&&_this.emit(file2.status,{...file2,request:(0,utils_1.pick)(req,["headers","method","url"])}),"completed"===file2.status){req._body=!0,req.body=file2;const completed=yield _this.storage.onComplete(file2);next?next():_this.finish(req,res,completed||file2)}}else"GET"===req.method&&(req.body=file2,next?next():_this.send(res,{body:file2}))});return function(_x){return _ref.apply(this,arguments)}}()).catch(error=>{const errorEvent={...(0,utils_1.pick)(error,["name",...Object.getOwnPropertyNames(error)]),request:(0,utils_1.pick)(req,["headers","method","url"])};if(this.listenerCount("error")&&this.emit("error",errorEvent),this.logger.error("[error]: %o",errorEvent),!("aborted"in req)||!req.aborted)return this.sendError(res,error)}):this.sendError(res,{uploadxErrorCode:utils_1.ERRORS.STORAGE_ERROR}):this.sendError(res,{uploadxErrorCode:utils_1.ERRORS.METHOD_NOT_ALLOWED})},this.getUserId=(req,_res)=>{var _a,_b;return(null===(_a=req.user)||void 0===_a?void 0:_a.id)||(null===(_b=req.user)||void 0===_b?void 0:_b._id)},this.cors=new cors_1.Cors,this.storage="storage"in config?config.storage:new storages_1.DiskStorage(config),config.userIdentifier&&(this.getUserId=config.userIdentifier),this.logger=this.storage.logger,this.assembleErrors(),this.compose(),this.logger.debug("Config:",config)}set errorResponses(value){this.assembleErrors(value)}compose(){(this.constructor.methods||BaseHandler.methods).forEach(method=>{const handler=this[method];handler&&this.registeredHandlers.set(method.toUpperCase(),handler)}),this.logger.debug("Registered handlers: %s",[...this.registeredHandlers.keys()].join(", "))}assembleErrors(customErrors={}){this._errorResponses={...utils_1.ErrorMap,...this._errorResponses,...this.storage.errorResponses,...customErrors}}options(req,res){var _this2=this;return _asyncToGenerator(function*(){return _this2.send(res,{statusCode:204}),{}})()}get(req,res){const userId=this.getUserId(req,res);return userId?this.storage.list((0,utils_1.hash)(userId)):(0,utils_1.fail)(utils_1.ERRORS.FILE_NOT_FOUND)}send(res,{statusCode=200,headers={},body=""}){let data;(0,utils_1.setHeaders)(res,headers),"string"!=typeof body?(data=JSON.stringify(body),headers["Content-Type"]||res.setHeader("Content-Type","application/json")):data=body,res.setHeader("Content-Length",Buffer.byteLength(data)),res.setHeader("Cache-Control","no-store"),res.writeHead(statusCode),res.end(data)}sendError(res,error){const httpError=(0,utils_1.isUploadxError)(error)?this._errorResponses[error.uploadxErrorCode]:(0,utils_1.isValidationError)(error)?error:this.storage.normalizeError(error),{statusCode=200,headers,...rest}=httpError,response={statusCode,body:httpError.body?httpError.body:rest,headers};this.send(res,this.storage.onError(response)||response)}getId(req){const pathname=url.parse(req.url).pathname||"",path=req.originalUrl?`/${pathname}`.replace("//",""):`/${pathname}`.replace(`/${this.storage.path}/`,"");return path.startsWith("/")?"":path}getAndVerifyId(req,res){var _this3=this;return _asyncToGenerator(function*(){const uid=_this3.getUserId(req,res)||"",id=_this3.getId(req);return id&&id.startsWith(uid&&(0,utils_1.hash)(uid))?id:(0,utils_1.fail)(utils_1.ERRORS.FORBIDDEN)})()}buildFileUrl(req,file2){const{query,pathname=""}=url.parse(req.originalUrl||req.url,!0),relative2=url.format({pathname:`${pathname}/${file2.id}`,query});return this.storage.config.useRelativeLocation?relative2:(0,utils_1.getBaseUrl)(req)+relative2}finish(req,res,response){const{statusCode,headers,...body}=response;return this.send(res,{statusCode,body,headers})}}__name(BaseHandler,"BaseHandler"),exports2.BaseHandler=BaseHandler,BaseHandler.methods=["delete","get","head","options","patch","post","put"]},69975:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Cors=void 0;const utils_1=__webpack_require__2(20819);class Cors{constructor(){this.allowedMethods=[],this.allowedHeaders=[],this.maxAge=600,this.origin="",this.credentials=!1}preflight(req,res){const origin=(0,utils_1.getHeader)(req,"origin");if(!origin||res.getHeader("Access-Control-Allow-Origin"))return;res.setHeader("Access-Control-Allow-Origin",this.origin||origin),this.credentials&&res.setHeader("Access-Control-Allow-Credentials","true");const accessControlRequestMethod=(0,utils_1.getHeader)(req,"access-control-request-method");if(!accessControlRequestMethod||"OPTIONS"!==req.method)return;res.setHeader("Access-Control-Allow-Methods",this.allowedMethods.toString()||accessControlRequestMethod);const allowedHeaders=this.allowedHeaders.toString()||(0,utils_1.getHeader)(req,"access-control-request-headers",!0);allowedHeaders&&res.setHeader("Access-Control-Allow-Headers",allowedHeaders),res.setHeader("Access-Control-Max-Age",this.maxAge)}}__name(Cors,"Cors"),exports2.Cors=Cors},75006:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports3){for(var p in m)"default"!==p&&!Object.prototype.hasOwnProperty.call(exports3,p)&&__createBinding(exports3,m,p)};Object.defineProperty(exports2,"__esModule",{value:!0}),__exportStar(__webpack_require__2(90691),exports2),__exportStar(__webpack_require__2(69975),exports2),__exportStar(__webpack_require__2(83192),exports2),__exportStar(__webpack_require__2(28999),exports2),__exportStar(__webpack_require__2(91807),exports2)},83192:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.multipart=exports2.Multipart=void 0;const multiparty=__webpack_require__2(12988),utils_1=__webpack_require__2(20819),base_handler_1=__webpack_require__2(90691);class Multipart extends base_handler_1.BaseHandler{post(req,res){var _this=this;return _asyncToGenerator(function*(){return new Promise((resolve,reject)=>{const form=new multiparty.Form,config={metadata:{}};form.on("field",(key,value)=>{Object.assign(config.metadata,"metadata"===key?JSON.parse(value):{[key]:value})}),form.on("error",error=>reject(error)),form.on("part",part=>{config.size=part.byteCount,config.originalName=part.filename,config.contentType=part.headers["content-type"],config.userId=_this.getUserId(req,res),part.on("error",_=>null),_this.storage.create(req,config).then(({id})=>_this.storage.write({start:0,contentLength:part.byteCount,body:part,id})).then(file2=>{if("completed"===file2.status){const headers={Location:_this.buildFileUrl(req,file2)};(0,utils_1.setHeaders)(res,headers)}return resolve(file2)}).catch(err=>reject(err))}),form.parse(req)})})()}delete(req,res){var _this2=this;return _asyncToGenerator(function*(){const id=yield _this2.getAndVerifyId(req,res),[file2]=yield _this2.storage.delete({id});return _this2.send(res,{statusCode:204}),file2})()}}function multipart(options={}){return new Multipart(options).handle}__name(Multipart,"Multipart"),exports2.Multipart=Multipart,__name(multipart,"multipart"),exports2.multipart=multipart,multipart.upload=(options={})=>new Multipart(options).upload},28999:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.tus=exports2.Tus=exports2.parseMetadata=exports2.serializeMetadata=exports2.TUS_VERSION=exports2.TUS_RESUMABLE=void 0;const storages_1=__webpack_require__2(17024),utils_1=__webpack_require__2(20819),base_handler_1=__webpack_require__2(90691);function serializeMetadata(obj){return Object.entries(obj).map(([key,value])=>`${key} ${Buffer.from(String(value)).toString("base64")}`).toString()}function parseMetadata(encoded=""){const kvPairs=encoded.split(",").map(kv=>kv.split(" ")),metadata2=Object.create(storages_1.Metadata.prototype);for(const[key,value]of kvPairs)key&&(metadata2[key]=value?Buffer.from(value,"base64").toString():"");return metadata2}exports2.TUS_RESUMABLE="1.0.0",exports2.TUS_VERSION="1.0.0",__name(serializeMetadata,"serializeMetadata"),exports2.serializeMetadata=serializeMetadata,__name(parseMetadata,"parseMetadata"),exports2.parseMetadata=parseMetadata;class Tus extends base_handler_1.BaseHandler{get extension(){const _extensions=["creation","creation-with-upload","termination","checksum"];return this.storage.config.expiration&&_extensions.push("expiration"),_extensions}options(req,res){var _this=this;return _asyncToGenerator(function*(){const headers={"Tus-Extension":_this.extension.toString(),"Tus-Max-Size":_this.storage.maxUploadSize,"Tus-Checksum-Algorithm":_this.storage.checksumTypes.toString()};return _this.send(res,{statusCode:204,headers}),{}})()}post(req,res){var _this2=this;return _asyncToGenerator(function*(){const config={metadata:parseMetadata((0,utils_1.getHeader)(req,"upload-metadata",!0))};config.userId=_this2.getUserId(req,res),config.size=(0,utils_1.getHeader)(req,"upload-length");let file2=yield _this2.storage.create(req,config);if((0,utils_1.typeis)(req,["application/offset+octet-stream"])){const contentLength=+(0,utils_1.getHeader)(req,"content-length");file2=yield _this2.storage.write({...file2,start:0,body:req,contentLength})}const headers=_this2.buildHeaders(file2,{Location:_this2.buildFileUrl(req,file2)});if(file2.bytesWritten>0&&(headers["Upload-Offset"]=file2.bytesWritten),(0,utils_1.setHeaders)(res,headers),"completed"===file2.status)return file2;const statusCode=file2.bytesWritten>0?200:201;return _this2.send(res,{statusCode}),file2})()}patch(req,res){var _this3=this;return _asyncToGenerator(function*(){const id=yield _this3.getAndVerifyId(req,res),metadataHeader=(0,utils_1.getHeader)(req,"upload-metadata",!0),metadata2=metadataHeader&&parseMetadata(metadataHeader);metadata2&&(yield _this3.storage.update({id},{metadata:metadata2,id}));const start=Number((0,utils_1.getHeader)(req,"upload-offset")),contentLength=+(0,utils_1.getHeader)(req,"content-length"),{checksumAlgorithm,checksum}=_this3.extractChecksum(req),file2=yield _this3.storage.write({start,id,body:req,contentLength,checksumAlgorithm,checksum}),headers=_this3.buildHeaders(file2,{"Upload-Offset":file2.bytesWritten});return(0,utils_1.setHeaders)(res,headers),"completed"===file2.status||_this3.send(res,{statusCode:204}),file2})()}head(req,res){var _this4=this;return _asyncToGenerator(function*(){const id=yield _this4.getAndVerifyId(req,res),file2=yield _this4.storage.write({id}),headers=_this4.buildHeaders(file2,{"Upload-Offset":file2.bytesWritten,"Upload-Length":file2.size,"Upload-Metadata":serializeMetadata(file2.metadata)});return _this4.send(res,{statusCode:200,headers}),{}})()}delete(req,res){var _this5=this;return _asyncToGenerator(function*(){const id=yield _this5.getAndVerifyId(req,res),[file2]=yield _this5.storage.delete({id});return _this5.send(res,{statusCode:204}),file2})()}buildHeaders(file2,headers={}){return file2.expiredAt&&(headers["Upload-Expires"]=new Date(file2.expiredAt).toUTCString()),headers}send(res,{statusCode,headers={},body}){headers["Tus-Resumable"]=exports2.TUS_RESUMABLE,super.send(res,{statusCode,headers,body})}extractChecksum(req){const[checksumAlgorithm,checksum]=(0,utils_1.getHeader)(req,"upload-checksum").split(/\s+/).filter(Boolean);return{checksumAlgorithm,checksum}}}function tus(options={}){return new Tus(options).handle}__name(Tus,"Tus"),exports2.Tus=Tus,__name(tus,"tus"),exports2.tus=tus,tus.upload=(options={})=>new Tus(options).upload},91807:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.uploadx=exports2.Uploadx=exports2.rangeParser=void 0;const url=__webpack_require__2(57310),utils_1=__webpack_require__2(20819),base_handler_1=__webpack_require__2(90691);function rangeParser(rangeHeader=""){const parts=rangeHeader.split(/\s+|\//),size=parseInt(parts[2]);return{start:parseInt(parts[1]),size}}__name(rangeParser,"rangeParser"),exports2.rangeParser=rangeParser;class Uploadx extends base_handler_1.BaseHandler{post(req,res){var _this=this;return _asyncToGenerator(function*(){const config={metadata:yield _this.getMetadata(req)};config.userId=_this.getUserId(req,res),config.size=(0,utils_1.getHeader)(req,"x-upload-content-length"),config.contentType=(0,utils_1.getHeader)(req,"x-upload-content-type");const file2=yield _this.storage.create(req,config),headers=_this.buildHeaders(file2,{Location:_this.buildFileUrl(req,file2)});if(file2.bytesWritten>0&&(headers.Range="bytes=0-"+(file2.bytesWritten-1)),(0,utils_1.setHeaders)(res,headers),"completed"===file2.status)return file2;const statusCode=file2.bytesWritten>0?200:201;return _this.send(res,{statusCode}),file2})()}patch(req,res){var _this2=this;return _asyncToGenerator(function*(){const id=yield _this2.getAndVerifyId(req,res),metadata2=yield _this2.getMetadata(req),file2=yield _this2.storage.update({id},{metadata:metadata2,id}),headers=_this2.buildHeaders(file2,{Location:_this2.buildFileUrl(req,file2)});return _this2.send(res,{body:file2.metadata,headers}),file2})()}put(req,res){var _this3=this;return _asyncToGenerator(function*(){const id=yield _this3.getAndVerifyId(req,res),contentRange=(0,utils_1.getHeader)(req,"content-range"),contentLength=+(0,utils_1.getHeader)(req,"content-length"),{start,size=NaN}=contentRange?rangeParser(contentRange):{start:0},{checksumAlgorithm,checksum}=_this3.extractChecksum(req),file2=yield _this3.storage.write({start,id,body:req,size,contentLength,checksumAlgorithm,checksum}),headers=_this3.buildHeaders(file2);return"completed"===file2.status||(headers.Range="bytes=0-"+(file2.bytesWritten-1),res.statusMessage="Resume Incomplete",_this3.send(res,{statusCode:Uploadx.RESUME_STATUS_CODE,headers})),file2})()}delete(req,res){var _this4=this;return _asyncToGenerator(function*(){const id=yield _this4.getAndVerifyId(req,res),[file2]=yield _this4.storage.delete({id});return _this4.send(res,{statusCode:204}),file2})()}getId(req){const{query}=url.parse(req.url||"",!0);return query.upload_id||query.prefix||super.getId(req)}buildHeaders(file2,headers={}){return file2.expiredAt&&(headers["X-Upload-Expires"]=new Date(file2.expiredAt).toISOString()),headers}buildFileUrl(req,file2){if(file2.GCSUploadURI)return file2.GCSUploadURI;const{query,pathname}=url.parse(req.originalUrl||req.url,!0);query.upload_id=file2.id;const relative2=url.format({pathname,query});return this.storage.config.useRelativeLocation?relative2:(0,utils_1.getBaseUrl)(req)+relative2}getMetadata(req){var _this5=this;return _asyncToGenerator(function*(){const metadata2=yield(0,utils_1.getMetadata)(req,_this5.storage.maxMetadataSize).catch(err=>(0,utils_1.fail)(utils_1.ERRORS.BAD_REQUEST,err));if(Object.keys(metadata2).length)return metadata2;const{query}=url.parse(decodeURI(req.url||""),!0);return{...metadata2,...query}})()}extractChecksum(req){const contentMD5=(0,utils_1.getHeader)(req,"content-md5");if(contentMD5)return{checksumAlgorithm:"md5",checksum:contentMD5};const[type,checksum]=(0,utils_1.getHeader)(req,"digest").split(/=(.*)/s);return{checksumAlgorithm:{sha:"sha1","sha-256":"sha256"}[type]||type,checksum}}}function uploadx(options={}){return new Uploadx(options).handle}__name(Uploadx,"Uploadx"),exports2.Uploadx=Uploadx,Uploadx.RESUME_STATUS_CODE=308,__name(uploadx,"uploadx"),exports2.uploadx=uploadx,uploadx.upload=(options={})=>new Uploadx(options).upload},20664:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports3){for(var p in m)"default"!==p&&!Object.prototype.hasOwnProperty.call(exports3,p)&&__createBinding(exports3,m,p)};Object.defineProperty(exports2,"__esModule",{value:!0}),__exportStar(__webpack_require__2(75006),exports2),__exportStar(__webpack_require__2(17024),exports2),__exportStar(__webpack_require__2(20819),exports2)},39544:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.ConfigHandler=void 0;const utils_1=__webpack_require__2(20819);class ConfigHandler{constructor(){this._config=this.set(ConfigHandler.defaults)}set(config={}){var _a;return Object.assign(null!==(_a=this._config)&&void 0!==_a?_a:{},config)}get(){return this._config}}__name(ConfigHandler,"ConfigHandler"),exports2.ConfigHandler=ConfigHandler,ConfigHandler.defaults={allowMIME:["*/*"],maxUploadSize:"5TB",filename:({id})=>id,useRelativeLocation:!1,onComplete:()=>null,onError:({statusCode,body,headers})=>({statusCode,body:{error:body},headers}),path:"/files",validation:{},maxMetadataSize:"4MB",logger:utils_1.logger}},48219:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DiskStorage=exports2.DiskFile=void 0;const path_1=__webpack_require__2(71017),utils_1=__webpack_require__2(20819),file_1=__webpack_require__2(13350),storage_1=__webpack_require__2(79113),local_meta_storage_1=__webpack_require__2(85332);class DiskFile extends file_1.File{}__name(DiskFile,"DiskFile"),exports2.DiskFile=DiskFile;class DiskStorage extends storage_1.BaseStorage{constructor(config={}){if(super(config),this.config=config,this.checksumTypes=["md5","sha1","sha256"],this.directory=config.directory||this.path.replace(/^\//,""),config.metaStorage)this.meta=config.metaStorage;else{const metaConfig={...config,...config.metaStorageConfig||{},logger:this.logger};this.meta=new local_meta_storage_1.LocalMetaStorage(metaConfig)}this.accessCheck().catch(err=>{this.isReady=!1,this.logger.error("[error]: Could not write to directory: %o",err)})}normalizeError(err){return super.normalizeError(err)}create(req,fileInit){var _this=this;return _asyncToGenerator(function*(){const file2=new DiskFile(fileInit);file2.name=_this.namingFunction(file2,req),file2.size=Number.isNaN(file2.size)?_this.maxUploadSize:file2.size,yield _this.validate(file2);const path=_this.getFilePath(file2.name);return file2.bytesWritten=yield(0,utils_1.ensureFile)(path).catch(err=>(0,utils_1.fail)(utils_1.ERRORS.FILE_ERROR,err)),file2.status=(0,file_1.getFileStatus)(file2),yield _this.saveMeta(file2),file2})()}write(part){var _this2=this;return _asyncToGenerator(function*(){const file2=yield _this2.getMeta(part.id);if(yield _this2.checkIfExpired(file2),"completed"===file2.status)return file2;if(part.size&&(0,file_1.updateSize)(file2,part.size),!(0,file_1.partMatch)(part,file2))return(0,utils_1.fail)(utils_1.ERRORS.FILE_CONFLICT);const path=_this2.getFilePath(file2.name);yield _this2.lock(path);try{if((0,file_1.hasContent)(part)){if(_this2.isUnsupportedChecksum(part.checksumAlgorithm))return(0,utils_1.fail)(utils_1.ERRORS.UNSUPPORTED_CHECKSUM_ALGORITHM);const[bytesWritten,errorCode]=yield _this2._write({...file2,...part});if(errorCode)return yield(0,utils_1.truncateFile)(path,part.start),(0,utils_1.fail)(errorCode);file2.bytesWritten=bytesWritten,file2.status=(0,file_1.getFileStatus)(file2),yield _this2.saveMeta(file2)}else file2.bytesWritten=yield(0,utils_1.ensureFile)(path);return file2}catch(err){return(0,utils_1.fail)(utils_1.ERRORS.FILE_ERROR,err)}finally{yield _this2.unlock(path)}})()}delete({id}){var _this3=this;return _asyncToGenerator(function*(){try{const file2=yield _this3.getMeta(id);return yield(0,utils_1.removeFile)(_this3.getFilePath(file2.name)),yield _this3.deleteMeta(id),[{...file2,status:"deleted"}]}catch{}return[{id}]})()}getFilePath(filename){return(0,path_1.join)(this.directory,filename)}_write(part){return new Promise((resolve,reject)=>{const dest=(0,utils_1.getWriteStream)(this.getFilePath(part.name),part.start),lengthChecker=(0,utils_1.streamLength)(part.contentLength||part.size-part.start),checksumChecker=(0,utils_1.streamChecksum)(part.checksum,part.checksumAlgorithm),keepPartial=!part.checksum,failWithCode=__name(code2=>{dest.close(),resolve([NaN,code2])},"failWithCode");lengthChecker.on("error",()=>failWithCode(utils_1.ERRORS.FILE_CONFLICT)),checksumChecker.on("error",()=>failWithCode(utils_1.ERRORS.CHECKSUM_MISMATCH)),part.body.on("aborted",()=>failWithCode(keepPartial?void 0:utils_1.ERRORS.REQUEST_ABORTED)),part.body.pipe(lengthChecker).pipe(checksumChecker).pipe(dest).on("error",reject).on("finish",()=>resolve([part.start+dest.bytesWritten]))})}accessCheck(){return(0,utils_1.accessCheck)(this.directory)}}__name(DiskStorage,"DiskStorage"),exports2.DiskStorage=DiskStorage},13350:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FileName=exports2.getFileStatus=exports2.updateMetadata=exports2.isMetadata=exports2.Metadata=exports2.updateSize=exports2.partMatch=exports2.hasContent=exports2.File=exports2.extractMimeType=exports2.extractOriginalName=exports2.isExpired=void 0;const utils_1=__webpack_require__2(20819),path_1=__webpack_require__2(71017);function isExpired(file2){return!!file2.expiredAt&&Date.now()>+new Date(file2.expiredAt)}function extractOriginalName(meta){return meta.name||meta.title||meta.originalName||meta.filename}function extractMimeType(meta){return meta.mimeType||meta.contentType||meta.type||meta.filetype}__name(isExpired,"isExpired"),exports2.isExpired=isExpired,__name(extractOriginalName,"extractOriginalName"),exports2.extractOriginalName=extractOriginalName,__name(extractMimeType,"extractMimeType"),exports2.extractMimeType=extractMimeType;const generateFileId=__name(file2=>{const{originalName,size,userId,metadata:metadata2}=file2;return[userId,originalName,size,String(metadata2.lastModified||Date.now())].filter(Boolean).map(String).map(utils_1.hash).join("-")},"generateFileId");class File2{constructor({metadata:metadata2={},originalName,contentType,size,userId}){this.bytesWritten=NaN,this.name="",this.metadata=metadata2,this.originalName=originalName||extractOriginalName(metadata2)||(this.id=(0,utils_1.uid)()),this.contentType=contentType||extractMimeType(metadata2)||"application/octet-stream",this.size=Number(size||metadata2.size),this.userId=userId,this.id||(this.id=generateFileId(this))}}function hasContent(part){return"number"==typeof part.start&&part.start>=0&&!!part.body}function partMatch(part,file2){return!(part.size&&part.size>file2.size)&&(part.start||0)+(part.contentLength||0)<=file2.size}function updateSize(file2,size){return sizeFileName.MAX_LENGTH||(0,path_1.isAbsolute)(name))return!1;{const upperCase=name.toUpperCase();return!(FileName.INVALID_CHARS.filter(Boolean).some(chars=>upperCase.includes(chars))||FileName.INVALID_PREFIXES.filter(Boolean).some(chars=>upperCase.startsWith(chars))||FileName.INVALID_SUFFIXES.filter(Boolean).some(chars=>upperCase.endsWith(chars)))}}}__name(FileName,"FileName"),exports2.FileName=FileName,FileName.INVALID_CHARS=['"',"*",":","<",">","?","\\","|","../"],FileName.INVALID_PREFIXES=[],FileName.INVALID_SUFFIXES=[],FileName.MAX_LENGTH=255,FileName.MIN_LENGTH=3},17024:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports3){for(var p in m)"default"!==p&&!Object.prototype.hasOwnProperty.call(exports3,p)&&__createBinding(exports3,m,p)};Object.defineProperty(exports2,"__esModule",{value:!0}),__exportStar(__webpack_require__2(48219),exports2),__exportStar(__webpack_require__2(13350),exports2),__exportStar(__webpack_require__2(79113),exports2),__exportStar(__webpack_require__2(85332),exports2),__exportStar(__webpack_require__2(37798),exports2),__exportStar(__webpack_require__2(39544),exports2)},85332:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.LocalMetaStorage=void 0;const path_1=__webpack_require__2(71017),utils_1=__webpack_require__2(20819),meta_storage_1=__webpack_require__2(37798),os_1=__webpack_require__2(22037);class LocalMetaStorage extends meta_storage_1.MetaStorage{constructor(config){super(config),this.getMetaPath=id=>`${this.directory}/${this.prefix+id+this.suffix}`,this.getIdFromPath=metaFilePath=>metaFilePath.slice(`${this.directory}/${this.prefix}`.length,-this.suffix.length),this.directory=((null==config?void 0:config.directory)||(0,path_1.join)((0,os_1.tmpdir)(),"uploadx_meta")).replace(/\\/g,"/"),this.accessCheck().catch(err=>{this.logger.error("[error]: Could not write to directory: %o",err)})}save(id,file2){var _this=this;return _asyncToGenerator(function*(){return yield utils_1.fsp.writeFile(_this.getMetaPath(id),JSON.stringify(file2,null,2)),file2})()}touch(id,file2){var _this2=this;return _asyncToGenerator(function*(){const time=new Date;return yield utils_1.fsp.utimes(_this2.getMetaPath(id),time,time),file2})()}get(id){var _this3=this;return _asyncToGenerator(function*(){const json=yield utils_1.fsp.readFile(_this3.getMetaPath(id),{encoding:"utf8"});return JSON.parse(json)})()}delete(id){var _this4=this;return _asyncToGenerator(function*(){yield(0,utils_1.removeFile)(_this4.getMetaPath(id))})()}list(prefix=""){var _this5=this;return _asyncToGenerator(function*(){const uploads=[],files=yield(0,utils_1.getFiles)(`${_this5.directory}/${_this5.prefix+prefix}`);for(const name of files)if(name.endsWith(_this5.suffix)){const{birthtime,ctime,mtime}=yield utils_1.fsp.stat(name),id=_this5.getIdFromPath(name);uploads.push({id,createdAt:birthtime||ctime,modifiedAt:mtime})}return{items:uploads}})()}accessCheck(){return(0,utils_1.accessCheck)(this.directory)}}__name(LocalMetaStorage,"LocalMetaStorage"),exports2.LocalMetaStorage=LocalMetaStorage},37798:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.METAFILE_EXTNAME=exports2.MetaStorage=void 0;const file_1=__webpack_require__2(13350),utils_1=__webpack_require__2(20819);class MetaStorage{constructor(config){this.prefix="",this.suffix="",this.prefix=(null==config?void 0:config.prefix)||"",this.suffix=(null==config?void 0:config.suffix)||exports2.METAFILE_EXTNAME,this.prefix&&file_1.FileName.INVALID_PREFIXES.push(this.prefix),this.suffix&&file_1.FileName.INVALID_SUFFIXES.push(this.suffix),this.logger=(null==config?void 0:config.logger)||utils_1.logger}save(id,file2){return _asyncToGenerator(function*(){return file2})()}delete(id){return _asyncToGenerator(function*(){})()}get(id){return _asyncToGenerator(function*(){return Promise.reject()})()}touch(id,file2){return _asyncToGenerator(function*(){return file2})()}list(prefix=""){return _asyncToGenerator(function*(){return{items:[]}})()}getMetaName(id){return this.prefix+id+this.suffix}getIdFromMetaName(name){return name.slice(this.prefix.length,-this.suffix.length)}}__name(MetaStorage,"MetaStorage"),exports2.MetaStorage=MetaStorage,exports2.METAFILE_EXTNAME=".META"},79113:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.BaseStorage=exports2.locker=void 0;const bytes=__webpack_require__2(61220),utils_1=__webpack_require__2(20819),file_1=__webpack_require__2(13350),timers_1=__webpack_require__2(39512),config_1=__webpack_require__2(39544);exports2.locker=new utils_1.Locker(1e3,300);class BaseStorage{constructor(config){var _a;this.config=config,this.isReady=!0,this.checksumTypes=[],this.errorResponses={},this.validation=new utils_1.Validator;const opts=(new config_1.ConfigHandler).set(config);this.path=opts.path,this.onComplete=opts.onComplete,this.onError=opts.onError,this.namingFunction=opts.filename,this.maxUploadSize=bytes.parse(opts.maxUploadSize),this.maxMetadataSize=bytes.parse(opts.maxMetadataSize),this.cache=new utils_1.Cache(1e3,300),this.logger=opts.logger,opts.logLevel&&"logLevel"in this.logger&&(this.logger.logLevel=opts.logLevel);const purgeInterval=(0,utils_1.toMilliseconds)(null===(_a=opts.expiration)||void 0===_a?void 0:_a.purgeInterval);purgeInterval&&this.startAutoPurge(purgeInterval);const size={value:this.maxUploadSize,isValid(file2){return file2.size<=this.value},response:utils_1.ErrorMap.RequestEntityTooLarge},mime={value:opts.allowMIME,isValid(file2){return!!utils_1.typeis.is(file2.contentType,this.value)},response:utils_1.ErrorMap.UnsupportedMediaType},filename={isValid:file2=>file_1.FileName.isValid(file2.name),response:utils_1.ErrorMap.InvalidFileName};this.validation.add({size,mime,filename}),this.validation.add({...opts.validation})}validate(file2){var _this=this;return _asyncToGenerator(function*(){return _this.validation.verify(file2)})()}normalizeError(error){return{message:"Generic Uploadx Error",statusCode:500,code:"GenericUploadxError"}}saveMeta(file2){var _this2=this;return _asyncToGenerator(function*(){_this2.updateTimestamps(file2);const prev={..._this2.cache.get(file2.id)};return _this2.cache.set(file2.id,file2),(0,utils_1.isEqual)(prev,file2,"bytesWritten","expiredAt")?_this2.meta.touch(file2.id,file2):_this2.meta.save(file2.id,file2)})()}deleteMeta(id){var _this3=this;return _asyncToGenerator(function*(){return _this3.cache.delete(id),_this3.meta.delete(id)})()}getMeta(id){var _this4=this;return _asyncToGenerator(function*(){let file2=_this4.cache.get(id);if(!file2)try{file2=yield _this4.meta.get(id),_this4.cache.set(file2.id,file2)}catch{return(0,utils_1.fail)(utils_1.ERRORS.FILE_NOT_FOUND)}return{...file2}})()}checkIfExpired(file2){return(0,file_1.isExpired)(file2)?(this.delete(file2).catch(()=>null),(0,utils_1.fail)(utils_1.ERRORS.GONE)):Promise.resolve(file2)}purge(maxAge,prefix){var _this5=this;return _asyncToGenerator(function*(){var _a;const maxAgeMs=(0,utils_1.toMilliseconds)(maxAge||(null===(_a=_this5.config.expiration)||void 0===_a?void 0:_a.maxAge)),purged={items:[],maxAgeMs,prefix};if(maxAgeMs){const before=Date.now()-maxAgeMs,expired=(yield _this5.list(prefix)).items.filter(item=>{var _a2;return+new Date((null===(_a2=_this5.config.expiration)||void 0===_a2?void 0:_a2.rolling)&&item.modifiedAt||item.createdAt)=2147483647)throw Error("\u201cpurgeInterval\u201d must be less than 2147483647 ms");(0,timers_1.setInterval)(()=>{this.purge().catch(e=>this.logger.error(e))},purgeInterval)}updateTimestamps(file2){var _a,_b,_c;null!==(_a=file2.createdAt)&&void 0!==_a||(file2.createdAt=(new Date).toISOString());const maxAgeMs=(0,utils_1.toMilliseconds)(null===(_b=this.config.expiration)||void 0===_b?void 0:_b.maxAge);return maxAgeMs&&(file2.expiredAt=(null===(_c=this.config.expiration)||void 0===_c?void 0:_c.rolling)?new Date(Date.now()+maxAgeMs).toISOString():new Date(+new Date(file2.createdAt)+maxAgeMs).toISOString()),file2}}__name(BaseStorage,"BaseStorage"),exports2.BaseStorage=BaseStorage},55595:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Cache=void 0;class Cache{constructor(maxEntries=1e3,maxAge=0){this.maxEntries=maxEntries,this.maxAge=maxAge,this._map=new Map,this._ttl=1e3*maxAge}get _expiry(){return this._ttl&&Date.now()+this._ttl}get(key){const[value,expiresAt]=this._map.get(key)||[];if(value){if(this._map.delete(key),expiresAt&&Date.now()>expiresAt)return;this._map.set(key,[value,this._expiry])}return value}delete(key){return this._map.delete(key)}set(key,value){return this._map.has(key)?this._map.delete(key):this._map.size===this.maxEntries&&this._map.delete(this._map.keys().next().value),this._map.set(key,[value,this._expiry]),value}}__name(Cache,"Cache"),exports2.Cache=Cache},44683:function(__unused_webpack_module,exports2){"use strict";var ERRORS,ERRORS2,__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i2=decorators.length-1;i2>=0;i2--)(d=decorators[i2])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.fail=exports2.isUploadxError=exports2.UploadxError=exports2.ErrorMap=exports2.ERRORS=void 0,(ERRORS2=ERRORS=exports2.ERRORS||(exports2.ERRORS={})).BAD_REQUEST="BadRequest",ERRORS2.FILE_CONFLICT="FileConflict",ERRORS2.FILE_ERROR="FileError",ERRORS2.FILE_NOT_ALLOWED="FileNotAllowed",ERRORS2.FILE_NOT_FOUND="FileNotFound",ERRORS2.FORBIDDEN="Forbidden",ERRORS2.GONE="Gone",ERRORS2.INVALID_CONTENT_TYPE="InvalidContentType",ERRORS2.INVALID_FILE_NAME="InvalidFileName",ERRORS2.INVALID_FILE_SIZE="InvalidFileSize",ERRORS2.INVALID_RANGE="InvalidRange",ERRORS2.METHOD_NOT_ALLOWED="MethodNotAllowed",ERRORS2.REQUEST_ENTITY_TOO_LARGE="RequestEntityTooLarge",ERRORS2.STORAGE_ERROR="StorageError",ERRORS2.TOO_MANY_REQUESTS="TooManyRequests",ERRORS2.UNKNOWN_ERROR="UnknownError",ERRORS2.UNPROCESSABLE_ENTITY="UnprocessableEntity",ERRORS2.UNSUPPORTED_MEDIA_TYPE="UnsupportedMediaType",ERRORS2.CHECKSUM_MISMATCH="ChecksumMismatch",ERRORS2.UNSUPPORTED_CHECKSUM_ALGORITHM="UnsupportedChecksumAlgorithm",ERRORS2.REQUEST_ABORTED="RequestAborted",ERRORS2.FILE_LOCKED="FileLocked";class E_{}__name(E_,"E_"),E_.errors={},E_._errors={BadRequest:[400,"Bad request"],FileConflict:[409,"File conflict"],FileError:[500,"Something went wrong writing the file"],FileNotAllowed:[403,"File not allowed"],FileNotFound:[404,"Not found"],Forbidden:[403,"Authenticated user is not allowed access"],Gone:[410,"Gone"],InvalidContentType:[400,'Invalid or missing "content-type" header'],InvalidFileName:[400,"Invalid file name or it cannot be retrieved"],InvalidFileSize:[400,"File size cannot be retrieved"],InvalidRange:[400,"Invalid or missing content-range header"],MethodNotAllowed:[405,"Method not allowed"],RequestEntityTooLarge:[413,"Request entity too large"],ChecksumMismatch:[460,"Checksum mismatch"],UnsupportedChecksumAlgorithm:[400,"Unsupported checksum algorithm"],StorageError:[503,"Storage error"],TooManyRequests:[429,"Too many requests"],UnknownError:[500,"Something went wrong"],UnprocessableEntity:[422,"Validation failed"],UnsupportedMediaType:[415,"Unsupported media type"],RequestAborted:[499,"Request aborted"],FileLocked:[423,"File locked"]},E_._buildErrorBody=(target,_)=>{Object.keys(target._errors).forEach(code2=>{const[statusCode,message2]=target._errors[code2];target.errors[code2]={code:code2,message:message2,statusCode}})},__decorate([E_._buildErrorBody],E_,"_errors",void 0),exports2.ErrorMap=E_.errors;class UploadxError extends Error{constructor(){super(...arguments),this.uploadxErrorCode=ERRORS.UNKNOWN_ERROR}}function isUploadxError(err){return!!err.uploadxErrorCode}function fail(uploadxErrorCode,detail=""){return Promise.reject({name:"UploadxError",message:uploadxErrorCode,uploadxErrorCode,detail})}__name(UploadxError,"UploadxError"),exports2.UploadxError=UploadxError,__name(isUploadxError,"isUploadxError"),exports2.isUploadxError=isUploadxError,__name(fail,"fail"),exports2.fail=fail},93482:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.fsp=exports2.getFiles=exports2.getWriteStream=exports2.truncateFile=exports2.removeFile=exports2.accessCheck=exports2.ensureFile=exports2.ensureDir=void 0;const fs_1=__webpack_require__2(57147);Object.defineProperty(exports2,"fsp",{enumerable:!0,get:function(){return fs_1.promises}});const path_1=__webpack_require__2(71017);function ensureDir(_x){return _ensureDir.apply(this,arguments)}function _ensureDir(){return(_ensureDir=_asyncToGenerator(function*(dir){yield fs_1.promises.mkdir(dir,{recursive:!0})})).apply(this,arguments)}function ensureFile(_x2){return _ensureFile.apply(this,arguments)}function _ensureFile(){return(_ensureFile=_asyncToGenerator(function*(path,overwrite=!1){return yield fs_1.promises.mkdir((0,path_1.dirname)(path),{recursive:!0}),yield(yield fs_1.promises.open(path,overwrite?"w":"a")).close(),(yield fs_1.promises.stat(path)).size})).apply(this,arguments)}function accessCheck(_x3){return _accessCheck.apply(this,arguments)}function _accessCheck(){return(_accessCheck=_asyncToGenerator(function*(dir){yield fs_1.promises.mkdir(dir,{recursive:!0})})).apply(this,arguments)}function removeFile(_x4){return _removeFile.apply(this,arguments)}function _removeFile(){return(_removeFile=_asyncToGenerator(function*(path){return fs_1.promises.rm?fs_1.promises.rm(path,{force:!0}):fs_1.promises.unlink(path).catch(err=>{if("ENOENT"!==err.code)throw err})})).apply(this,arguments)}function truncateFile(path,length=0){return fs_1.promises.truncate(path,length)}function getWriteStream(path,start){return(0,fs_1.createWriteStream)(path,{flags:"r+",start})}function getFiles(prefix){const prefix_=prefix.replace(/\\/g,"/"),_getFiles=function(){var _ref=_asyncToGenerator(function*(current){try{if((yield fs_1.promises.stat(current)).isFile())return _getFiles((0,path_1.dirname)(current))}catch{return _getFiles((0,path_1.dirname)(current))}const dirents=yield fs_1.promises.readdir(current,{withFileTypes:!0});return(yield Promise.all(dirents.map(function(){var _ref2=_asyncToGenerator(function*(dirent){const path=path_1.posix.join(current,dirent.name);return path.startsWith(prefix_)?dirent.isDirectory()?_getFiles(path):path:null});return function(_x6){return _ref2.apply(this,arguments)}}()))).flat().filter(Boolean).sort()});return __name(function(_x5){return _ref.apply(this,arguments)},"_getFiles")}();return _getFiles(prefix_)}__name(ensureDir,"ensureDir"),__name(_ensureDir,"_ensureDir"),exports2.ensureDir=ensureDir,__name(ensureFile,"ensureFile"),__name(_ensureFile,"_ensureFile"),exports2.ensureFile=ensureFile,__name(accessCheck,"accessCheck"),__name(_accessCheck,"_accessCheck"),exports2.accessCheck=accessCheck,__name(removeFile,"removeFile"),__name(_removeFile,"_removeFile"),exports2.removeFile=removeFile,__name(truncateFile,"truncateFile"),exports2.truncateFile=truncateFile,__name(getWriteStream,"getWriteStream"),exports2.getWriteStream=getWriteStream,__name(getFiles,"getFiles"),exports2.getFiles=getFiles},55226:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.tupleToResponse=exports2.responseToTuple=exports2.extractProto=exports2.extractHost=exports2.getBaseUrl=exports2.setHeaders=exports2.appendHeader=exports2.getHeader=exports2.getMetadata=exports2.readBody=exports2.typeis=void 0;const primitives_1=__webpack_require__2(31075),typeis=__name((req,types)=>{const contentType=req.headers["content-type"]||"";return exports2.typeis.is(contentType,types)},"typeis");function readBody(req,encoding="utf8",limit){return new Promise((resolve,reject)=>{let body="";req.setEncoding(encoding),req.on("data",chunk=>{if(limit&&body.length>limit)return reject("body length limit");body+=chunk}),req.once("end",()=>resolve(body))})}function getMetadata(_x){return _getMetadata.apply(this,arguments)}function _getMetadata(){return(_getMetadata=_asyncToGenerator(function*(req,limit=16777216){if(!(0,exports2.typeis)(req,["json"]))return{};if(req.body)return{...req.body};if(exports2.typeis.hasBody(req)>limit)return Promise.reject("body length limit");const raw=yield readBody(req,"utf8",limit);return{...JSON.parse(raw)}})).apply(this,arguments)}function getHeader(req,name,all=!1){var _a;const raw=null===(_a=req.headers)||void 0===_a?void 0:_a[name.toLowerCase()];return raw&&0!==raw.length?all?raw.toString().trim():(0,primitives_1.getLastOne)(Array.isArray(raw)?raw:raw.split(",")).trim():""}function appendHeader(res,name,value){const s=[res.getHeader(name),value].flat().filter(Boolean).toString();res.setHeader(name,s)}function setHeaders(res,headers={}){const keys=Object.keys(headers);keys.length&&appendHeader(res,"Access-Control-Expose-Headers",keys);for(const key of keys)["location","link"].includes(key.toLowerCase())?res.setHeader(key,encodeURI(headers[key].toString())):res.setHeader(key,headers[key])}function getBaseUrl(req){const host=extractHost(req);if(!host)return"";const proto=extractProto(req);return proto?`${proto}://${host}`:`//${host}`}function extractHost(req){return getHeader(req,"host")}function extractProto(req){return getHeader(req,"x-forwarded-proto").toLowerCase()}function responseToTuple(response){if(Array.isArray(response))return response;const{statusCode=200,headers,...rest}=response;return[statusCode,response.body?response.body:rest,headers||{}]}function tupleToResponse(response){if(!Array.isArray(response))return response;const[statusCode,body,headers]=response;return{statusCode,body,headers}}exports2.typeis=typeis,exports2.typeis.is=(mime,types=["/"])=>{const re=new RegExp(types.map(str=>str.replace(/[*+]/g,"")).join("|"));return-1!==mime.replace(/[*+]/g,"").search(re)&&mime},exports2.typeis.hasBody=req=>{const bodySize=Number(req.headers["content-length"]);return!isNaN(bodySize)&&bodySize},__name(readBody,"readBody"),exports2.readBody=readBody,__name(getMetadata,"getMetadata"),__name(_getMetadata,"_getMetadata"),exports2.getMetadata=getMetadata,__name(getHeader,"getHeader"),exports2.getHeader=getHeader,__name(appendHeader,"appendHeader"),exports2.appendHeader=appendHeader,__name(setHeaders,"setHeaders"),exports2.setHeaders=setHeaders,__name(getBaseUrl,"getBaseUrl"),exports2.getBaseUrl=getBaseUrl,__name(extractHost,"extractHost"),exports2.extractHost=extractHost,__name(extractProto,"extractProto"),exports2.extractProto=extractProto,__name(responseToTuple,"responseToTuple"),exports2.responseToTuple=responseToTuple,__name(tupleToResponse,"tupleToResponse"),exports2.tupleToResponse=tupleToResponse},20819:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports3){for(var p in m)"default"!==p&&!Object.prototype.hasOwnProperty.call(exports3,p)&&__createBinding(exports3,m,p)};Object.defineProperty(exports2,"__esModule",{value:!0}),__exportStar(__webpack_require__2(55595),exports2),__exportStar(__webpack_require__2(44683),exports2),__exportStar(__webpack_require__2(93482),exports2),__exportStar(__webpack_require__2(55226),exports2),__exportStar(__webpack_require__2(95376),exports2),__exportStar(__webpack_require__2(56106),exports2),__exportStar(__webpack_require__2(11142),exports2),__exportStar(__webpack_require__2(31075),exports2),__exportStar(__webpack_require__2(38908),exports2)},95376:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Locker=void 0;const index_1=__webpack_require__2(20819);class Locker extends index_1.Cache{lock(key){if(this.get(key))throw new Error(`${key} is locked`);return this.set(key,key),key}unlock(key){this.delete(key)}}__name(Locker,"Locker"),exports2.Locker=Locker},56106:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.logger=exports2.BasicLogger=void 0;const util_1=__webpack_require__2(73837),levels=["debug","info","warn","error","none"];var PriorityOf,PriorityOf2;(PriorityOf2=PriorityOf||(PriorityOf={}))[PriorityOf2.debug=0]="debug",PriorityOf2[PriorityOf2.info=1]="info",PriorityOf2[PriorityOf2.warn=2]="warn",PriorityOf2[PriorityOf2.error=3]="error",PriorityOf2[PriorityOf2.none=4]="none";class BasicLogger{constructor(options={}){var _a;this.options=options,this._logLevel="none",this.write=(data,level)=>{if(PriorityOf[level]>=PriorityOf[this._logLevel]){const message2=(0,util_1.formatWithOptions)({colors:!0,depth:1,maxStringLength:80},...data),timestamp=(new Date).toISOString();this.logger[level](`${timestamp} ${level.toUpperCase()} ${this.label} ${message2}`)}},this.logger=options.logger||console,this.label=null!==(_a=options.label)&&void 0!==_a?_a:"uploadx:",options.logLevel&&(this.logLevel=options.logLevel),options.write&&(this.write=options.write)}get logLevel(){return this._logLevel}set logLevel(value){if(value&&!levels.includes(value))throw new Error(`Invalid log level: ${value}, supported levels are: ${levels.join(", ")}.`);this._logLevel=value}info(...data){this.write(data,"info")}warn(...data){this.write(data,"warn")}error(...data){this.write(data,"error")}debug(...data){this.write(data,"debug")}}__name(BasicLogger,"BasicLogger"),exports2.BasicLogger=BasicLogger,exports2.logger=new BasicLogger({})},11142:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.streamChecksum=exports2.StreamChecksum=exports2.streamLength=exports2.StreamLength=void 0;const stream_1=__webpack_require__2(12781),crypto_1=__webpack_require__2(6113);class StreamLength extends stream_1.Transform{constructor(limit=1/0){super(),this.limit=limit,this.length=0}_transform(chunk,encoding,cb){const expected=this.length+chunk.length;this.limit>=expected?(this.push(chunk),this.length=expected,cb()):cb(new Error("Stream length limit exceeded"))}}function streamLength(limit=1/0){return new StreamLength(limit)}__name(StreamLength,"StreamLength"),exports2.StreamLength=StreamLength,__name(streamLength,"streamLength"),exports2.streamLength=streamLength;class StreamChecksum extends stream_1.Transform{constructor(checksum,algorithm,encoding="base64"){super(),this.checksum=checksum,this.algorithm=algorithm,this.encoding=encoding,this.length=0,this.digest="",this.hash=(0,crypto_1.createHash)(algorithm)}_transform(chunk,encoding,done){this.push(chunk),this.hash.update(chunk),this.length+=chunk.length,done()}_flush(cb){this.digest=this.hash.digest(this.encoding),this.checksum&&this.checksum!==this.digest?cb(new Error("Checksum mismatch")):cb()}}function streamChecksum(checksum="",algorithm,encoding="base64"){return algorithm?new StreamChecksum(checksum,algorithm,encoding):new stream_1.PassThrough}__name(StreamChecksum,"StreamChecksum"),exports2.StreamChecksum=StreamChecksum,__name(streamChecksum,"streamChecksum"),exports2.streamChecksum=streamChecksum},31075:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.hash=exports2.memoize=exports2.getLastOne=exports2.getFirstOne=exports2.toMilliseconds=exports2.isRecord=exports2.isNumber=exports2.isEqual=exports2.mapValues=exports2.fnv64=exports2.fnv=exports2.md5=exports2.uid=exports2.pick=void 0;const crypto_1=__webpack_require__2(6113),parse_duration_1=__webpack_require__2(39775),util_1=__webpack_require__2(73837),cache_1=__webpack_require__2(55595),pick=__name((obj,whitelist)=>{const result={};return whitelist.forEach(key=>result[key]=obj[key]),result},"pick");exports2.pick=pick;const uid=__name(()=>(0,crypto_1.randomBytes)(16).toString("hex"),"uid");function md5(str){return(0,crypto_1.createHash)("md5").update(str).digest("hex")}function fnv(str){let hash=2166136261;const len=str.length;for(let i2=0;i2>>0).toString(16)}function fnv64(str){let hash=BigInt("14695981039346656037");const offset=BigInt(1099511628211),len=str.length;for(let i2=0;i2!keysToIgnore.includes(e[0])),Object.entries(b2).filter(e=>!keysToIgnore.includes(e[0])))}function isNumber(x){return x===Number(x)}function isRecord(x){return null!==x&&"object"==typeof x&&!Array.isArray(x)}function toMilliseconds(value){return isNumber(value)?value:value?(0,parse_duration_1.default)(value):null}function getFirstOne(val){return val[0]}function getLastOne(val){return val[val.length-1]}exports2.uid=uid,__name(md5,"md5"),exports2.md5=md5,__name(fnv,"fnv"),exports2.fnv=fnv,__name(fnv64,"fnv64"),exports2.fnv64=fnv64,__name(mapValues,"mapValues"),exports2.mapValues=mapValues,__name(isEqual,"isEqual"),exports2.isEqual=isEqual,__name(isNumber,"isNumber"),exports2.isNumber=isNumber,__name(isRecord,"isRecord"),exports2.isRecord=isRecord,__name(toMilliseconds,"toMilliseconds"),exports2.toMilliseconds=toMilliseconds,__name(getFirstOne,"getFirstOne"),exports2.getFirstOne=getFirstOne,__name(getLastOne,"getLastOne"),exports2.getLastOne=getLastOne;const memoize=__name(fn2=>{const cache=new cache_1.Cache(1e3,0),cached=__name(val=>{const key=JSON.stringify(val);return cache.get(key)||cache.set(key,fn2.call(this,val))},"cached");return cached.cache=cache,cached},"memoize");exports2.memoize=memoize,exports2.hash=(0,exports2.memoize)(fnv64)},38908:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Validator=exports2.isValidationError=void 0;const errors_1=__webpack_require__2(44683),http_1=__webpack_require__2(55226),capitalize=__name(s=>s&&s[0].toUpperCase()+s.slice(1),"capitalize");function isValidationError(error){return"ValidationError"===error.name}__name(isValidationError,"isValidationError"),exports2.isValidationError=isValidationError;class Validator{constructor(prefix="ValidationError"){this.prefix=prefix,this._validators={}}add(config){for(const[key,validator]of Object.entries(config)){const code2=`${this.prefix}${capitalize(key)}`;if(this._validators[code2]={...this._validators[code2],...validator},"function"!=typeof this._validators[code2].isValid)throw new Error('Validation config "isValid" is missing, or it is not a function!')}}verify(t){var _this=this;return _asyncToGenerator(function*(){for(const[code2,validator]of Object.entries(_this._validators))if(!(yield validator.isValid(t)))return Promise.reject({name:"ValidationError",code:code2,...(0,http_1.tupleToResponse)(validator.response||errors_1.ErrorMap.UnprocessableEntity)})})()}}__name(Validator,"Validator"),exports2.Validator=Validator},3992:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var window2=__webpack_require__2(69226),httpResponseHandler=__name(function(callback,decodeResponseBody){return void 0===decodeResponseBody&&(decodeResponseBody=!1),function(err,response,responseBody){if(err)callback(err);else if(response.statusCode>=400&&response.statusCode<=599){var cause=responseBody;if(decodeResponseBody)if(window2.TextDecoder){var charset=getCharset(response.headers&&response.headers["content-type"]);try{cause=new TextDecoder(charset).decode(responseBody)}catch{}}else cause=String.fromCharCode.apply(null,new Uint8Array(responseBody));callback({cause})}else callback(null,responseBody)}},"httpResponseHandler");function getCharset(contentTypeHeader){return void 0===contentTypeHeader&&(contentTypeHeader=""),contentTypeHeader.toLowerCase().split(";").reduce(function(charset,contentType){var _contentType$split=contentType.split("="),type=_contentType$split[0],value=_contentType$split[1];return"charset"===type.trim()?value.trim():charset},"utf-8")}__name(getCharset,"getCharset"),module2.exports=httpResponseHandler},30745:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var window2=__webpack_require__2(69226),_extends=__webpack_require__2(67154),isFunction=__webpack_require__2(72703);createXHR.httpHandler=__webpack_require__2(3992);var parseHeaders=__name(function(headers){var result={};return headers&&headers.trim().split("\n").forEach(function(row){var index=row.indexOf(":"),key=row.slice(0,index).trim().toLowerCase(),value=row.slice(index+1).trim();void 0===result[key]?result[key]=value:Array.isArray(result[key])?result[key].push(value):result[key]=[result[key],value]}),result},"parseHeaders");function forEachArray(array,iterator){for(var i2=0;i20&&(timeoutTimer=setTimeout(function(){if(!aborted){aborted=!0,xhr.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",errorFunc(e)}},options.timeout)),xhr.setRequestHeader)for(key in headers)headers.hasOwnProperty(key)&&xhr.setRequestHeader(key,headers[key]);else if(options.headers&&!isEmpty(options.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in options&&(xhr.responseType=options.responseType),"beforeSend"in options&&"function"==typeof options.beforeSend&&options.beforeSend(xhr),xhr.send(body||null),xhr}function getXml(xhr){try{if("document"===xhr.responseType)return xhr.responseXML;var firefoxBugTakenEffect=xhr.responseXML&&"parsererror"===xhr.responseXML.documentElement.nodeName;if(""===xhr.responseType&&!firefoxBugTakenEffect)return xhr.responseXML}catch{}return null}function noop(){}module2.exports=createXHR,module2.exports.default=createXHR,createXHR.XMLHttpRequest=window2.XMLHttpRequest||noop,createXHR.XDomainRequest="withCredentials"in new createXHR.XMLHttpRequest?createXHR.XMLHttpRequest:window2.XDomainRequest,forEachArray(["get","put","post","patch","head","delete"],function(method){createXHR["delete"===method?"del":method]=function(uri,options,callback){return(options=initParams(uri,options,callback)).method=method.toUpperCase(),_createXHR(options)}}),__name(forEachArray,"forEachArray"),__name(isEmpty,"isEmpty"),__name(initParams,"initParams"),__name(createXHR,"createXHR"),__name(_createXHR,"_createXHR"),__name(getXml,"getXml"),__name(noop,"noop")},59401:(__unused_webpack_module,exports2)=>{"use strict";function freeze(object,oc){return void 0===oc&&(oc=Object),oc&&"function"==typeof oc.freeze?oc.freeze(object):object}__name(freeze,"freeze");var MIME_TYPE=freeze({HTML:"text/html",isHTML:function(value){return value===MIME_TYPE.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),NAMESPACE=freeze({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(uri){return uri===NAMESPACE.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});exports2.freeze=freeze,exports2.MIME_TYPE=MIME_TYPE,exports2.NAMESPACE=NAMESPACE},91991:(__unused_webpack_module,exports2,__webpack_require__2)=>{var conventions=__webpack_require__2(59401),dom=__webpack_require__2(26853),entities=__webpack_require__2(64436),sax=__webpack_require__2(68702),DOMImplementation=dom.DOMImplementation,NAMESPACE=conventions.NAMESPACE,ParseError=sax.ParseError,XMLReader=sax.XMLReader;function DOMParser(options){this.options=options||{locator:{}}}function buildErrorHandler(errorImpl,domBuilder,locator){if(!errorImpl){if(domBuilder instanceof DOMHandler)return domBuilder;errorImpl=domBuilder}var errorHandler={},isCallback=errorImpl instanceof Function;function build2(key){var fn2=errorImpl[key];!fn2&&isCallback&&(fn2=2==errorImpl.length?function(msg){errorImpl(key,msg)}:errorImpl),errorHandler[key]=fn2&&function(msg){fn2("[xmldom "+key+"]\t"+msg+_locator(locator))}||function(){}}return locator=locator||{},__name(build2,"build"),build2("warning"),build2("error"),build2("fatalError"),errorHandler}function DOMHandler(){this.cdata=!1}function position(locator,node){node.lineNumber=locator.lineNumber,node.columnNumber=locator.columnNumber}function _locator(l){if(l)return"\n@"+(l.systemId||"")+"#[line:"+l.lineNumber+",col:"+l.columnNumber+"]"}function _toString(chars,start,length){return"string"==typeof chars?chars.substr(start,length):chars.length>=start+length||start?new java.lang.String(chars,start,length)+"":chars}function appendElement(hander,node){hander.currentElement?hander.currentElement.appendChild(node):hander.doc.appendChild(node)}__name(DOMParser,"DOMParser"),DOMParser.prototype.parseFromString=function(source,mimeType){var options=this.options,sax2=new XMLReader,domBuilder=options.domBuilder||new DOMHandler,errorHandler=options.errorHandler,locator=options.locator,defaultNSMap=options.xmlns||{},isHTML=/\/x?html?$/.test(mimeType),entityMap=isHTML?entities.HTML_ENTITIES:entities.XML_ENTITIES;return locator&&domBuilder.setDocumentLocator(locator),sax2.errorHandler=buildErrorHandler(errorHandler,domBuilder,locator),sax2.domBuilder=options.domBuilder||domBuilder,isHTML&&(defaultNSMap[""]=NAMESPACE.HTML),defaultNSMap.xml=defaultNSMap.xml||NAMESPACE.XML,source&&"string"==typeof source?sax2.parse(source,defaultNSMap,entityMap):sax2.errorHandler.error("invalid doc source"),domBuilder.doc},__name(buildErrorHandler,"buildErrorHandler"),__name(DOMHandler,"DOMHandler"),__name(position,"position"),DOMHandler.prototype={startDocument:function(){this.doc=(new DOMImplementation).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(namespaceURI,localName,qName,attrs){var doc=this.doc,el=doc.createElementNS(namespaceURI,qName||localName),len=attrs.length;appendElement(this,el),this.currentElement=el,this.locator&&position(this.locator,el);for(var i2=0;i2{var NAMESPACE=__webpack_require__2(59401).NAMESPACE;function notEmptyString(input){return""!==input}function splitOnASCIIWhitespace(input){return input?input.split(/[\t\n\f\r ]+/).filter(notEmptyString):[]}function orderedSetReducer(current,element){return current.hasOwnProperty(element)||(current[element]=!0),current}function toOrderedSet(input){if(!input)return[];var list=splitOnASCIIWhitespace(input);return Object.keys(list.reduce(orderedSetReducer,{}))}function arrayIncludes(list){return function(element){return list&&-1!==list.indexOf(element)}}function copy(src,dest){for(var p in src)dest[p]=src[p]}function _extends(Class,Super){var pt=Class.prototype;if(!(pt instanceof Super)){let t2=function(){};__name(t2,"t"),t2.prototype=Super.prototype,t2=new t2,copy(pt,t2),Class.prototype=pt=t2}pt.constructor!=Class&&("function"!=typeof Class&&console.error("unknown Class:"+Class),pt.constructor=Class)}__name(notEmptyString,"notEmptyString"),__name(splitOnASCIIWhitespace,"splitOnASCIIWhitespace"),__name(orderedSetReducer,"orderedSetReducer"),__name(toOrderedSet,"toOrderedSet"),__name(arrayIncludes,"arrayIncludes"),__name(copy,"copy"),__name(_extends,"_extends");var NodeType={},ELEMENT_NODE=NodeType.ELEMENT_NODE=1,ATTRIBUTE_NODE=NodeType.ATTRIBUTE_NODE=2,TEXT_NODE=NodeType.TEXT_NODE=3,CDATA_SECTION_NODE=NodeType.CDATA_SECTION_NODE=4,ENTITY_REFERENCE_NODE=NodeType.ENTITY_REFERENCE_NODE=5,ENTITY_NODE=NodeType.ENTITY_NODE=6,PROCESSING_INSTRUCTION_NODE=NodeType.PROCESSING_INSTRUCTION_NODE=7,COMMENT_NODE=NodeType.COMMENT_NODE=8,DOCUMENT_NODE=NodeType.DOCUMENT_NODE=9,DOCUMENT_TYPE_NODE=NodeType.DOCUMENT_TYPE_NODE=10,DOCUMENT_FRAGMENT_NODE=NodeType.DOCUMENT_FRAGMENT_NODE=11,NOTATION_NODE=NodeType.NOTATION_NODE=12,ExceptionCode={},ExceptionMessage={},HIERARCHY_REQUEST_ERR=(ExceptionCode.INDEX_SIZE_ERR=(ExceptionMessage[1]="Index size error",1),ExceptionCode.DOMSTRING_SIZE_ERR=(ExceptionMessage[2]="DOMString size error",2),ExceptionCode.HIERARCHY_REQUEST_ERR=(ExceptionMessage[3]="Hierarchy request error",3)),NOT_FOUND_ERR=(ExceptionCode.WRONG_DOCUMENT_ERR=(ExceptionMessage[4]="Wrong document",4),ExceptionCode.INVALID_CHARACTER_ERR=(ExceptionMessage[5]="Invalid character",5),ExceptionCode.NO_DATA_ALLOWED_ERR=(ExceptionMessage[6]="No data allowed",6),ExceptionCode.NO_MODIFICATION_ALLOWED_ERR=(ExceptionMessage[7]="No modification allowed",7),ExceptionCode.NOT_FOUND_ERR=(ExceptionMessage[8]="Not found",8)),INUSE_ATTRIBUTE_ERR=(ExceptionCode.NOT_SUPPORTED_ERR=(ExceptionMessage[9]="Not supported",9),ExceptionCode.INUSE_ATTRIBUTE_ERR=(ExceptionMessage[10]="Attribute in use",10));ExceptionCode.INVALID_STATE_ERR=(ExceptionMessage[11]="Invalid state",11),ExceptionCode.SYNTAX_ERR=(ExceptionMessage[12]="Syntax error",12),ExceptionCode.INVALID_MODIFICATION_ERR=(ExceptionMessage[13]="Invalid modification",13),ExceptionCode.NAMESPACE_ERR=(ExceptionMessage[14]="Invalid namespace",14),ExceptionCode.INVALID_ACCESS_ERR=(ExceptionMessage[15]="Invalid access",15);function DOMException2(code2,message2){if(message2 instanceof Error)var error=message2;else error=this,Error.call(this,ExceptionMessage[code2]),this.message=ExceptionMessage[code2],Error.captureStackTrace&&Error.captureStackTrace(this,DOMException2);return error.code=code2,message2&&(this.message=this.message+": "+message2),error}function NodeList(){}function LiveNodeList(node,refresh){this._node=node,this._refresh=refresh,_updateLiveList(this)}function _updateLiveList(list){var inc=list._node._inc||list._node.ownerDocument._inc;if(list._inc!=inc){var ls=list._refresh(list._node);__set__(list,"length",ls.length),copy(ls,list),list._inc=inc}}function NamedNodeMap(){}function _findNodeIndex(list,node){for(var i2=list.length;i2--;)if(list[i2]===node)return i2}function _addNamedNode(el,list,newAttr,oldAttr){if(oldAttr?list[_findNodeIndex(list,oldAttr)]=newAttr:list[list.length++]=newAttr,el){newAttr.ownerElement=el;var doc=el.ownerDocument;doc&&(oldAttr&&_onRemoveAttribute(doc,el,oldAttr),_onAddAttribute(doc,el,newAttr))}}function _removeNamedNode(el,list,attr){var i2=_findNodeIndex(list,attr);if(!(i2>=0))throw DOMException2(NOT_FOUND_ERR,new Error(el.tagName+"@"+attr));for(var lastIndex=list.length-1;i2"==c&&">")||"&"==c&&"&"||'"'==c&&"""||"&#"+c.charCodeAt()+";"}function _visitNode(node,callback){if(callback(node))return!0;if(node=node.firstChild)do{if(_visitNode(node,callback))return!0}while(node=node.nextSibling)}function Document2(){}function _onAddAttribute(doc,el,newAttr){doc&&doc._inc++,newAttr.namespaceURI===NAMESPACE.XMLNS&&(el._nsMap[newAttr.prefix?newAttr.localName:""]=newAttr.value)}function _onRemoveAttribute(doc,el,newAttr,remove){doc&&doc._inc++,newAttr.namespaceURI===NAMESPACE.XMLNS&&delete el._nsMap[newAttr.prefix?newAttr.localName:""]}function _onUpdateChild(doc,el,newChild){if(doc&&doc._inc){doc._inc++;var cs=el.childNodes;if(newChild)cs[cs.length++]=newChild;else{for(var child=el.firstChild,i2=0;child;)cs[i2++]=child,child=child.nextSibling;cs.length=i2}}}function _removeChild(parentNode,child){var previous=child.previousSibling,next=child.nextSibling;return previous?previous.nextSibling=next:parentNode.firstChild=next,next?next.previousSibling=previous:parentNode.lastChild=previous,_onUpdateChild(parentNode.ownerDocument,parentNode),child}function _insertBefore(parentNode,newChild,nextChild){var cp=newChild.parentNode;if(cp&&cp.removeChild(newChild),newChild.nodeType===DOCUMENT_FRAGMENT_NODE){var newFirst=newChild.firstChild;if(null==newFirst)return newChild;var newLast=newChild.lastChild}else newFirst=newLast=newChild;var pre=nextChild?nextChild.previousSibling:parentNode.lastChild;newFirst.previousSibling=pre,newLast.nextSibling=nextChild,pre?pre.nextSibling=newFirst:parentNode.firstChild=newFirst,null==nextChild?parentNode.lastChild=newLast:nextChild.previousSibling=newLast;do{newFirst.parentNode=parentNode}while(newFirst!==newLast&&(newFirst=newFirst.nextSibling));return _onUpdateChild(parentNode.ownerDocument||parentNode,parentNode),newChild.nodeType==DOCUMENT_FRAGMENT_NODE&&(newChild.firstChild=newChild.lastChild=null),newChild}function _appendSingleChild(parentNode,newChild){var cp=newChild.parentNode;if(cp){var pre=parentNode.lastChild;cp.removeChild(newChild);pre=parentNode.lastChild}pre=parentNode.lastChild;return newChild.parentNode=parentNode,newChild.previousSibling=pre,newChild.nextSibling=null,pre?pre.nextSibling=newChild:parentNode.firstChild=newChild,parentNode.lastChild=newChild,_onUpdateChild(parentNode.ownerDocument,parentNode,newChild),newChild}function Element2(){this._nsMap={}}function Attr(){}function CharacterData(){}function Text2(){}function Comment(){}function CDATASection(){}function DocumentType(){}function Notation(){}function Entity(){}function EntityReference(){}function DocumentFragment2(){}function ProcessingInstruction(){}function XMLSerializer(){}function nodeSerializeToString(isHtml,nodeFilter){var buf=[],refNode=9==this.nodeType&&this.documentElement||this,prefix=refNode.prefix,uri=refNode.namespaceURI;if(uri&&null==prefix&&null==(prefix=refNode.lookupPrefix(uri)))var visibleNamespaces=[{namespace:uri,prefix:null}];return serializeToString(this,buf,isHtml,nodeFilter,visibleNamespaces),buf.join("")}function needNamespaceDefine(node,isHTML,visibleNamespaces){var prefix=node.prefix||"",uri=node.namespaceURI;if(!uri||"xml"===prefix&&uri===NAMESPACE.XML||uri===NAMESPACE.XMLNS)return!1;for(var i2=visibleNamespaces.length;i2--;){var ns=visibleNamespaces[i2];if(ns.prefix===prefix)return ns.namespace!==uri}return!0}function addSerializedAttribute(buf,qualifiedName,value){buf.push(" ",qualifiedName,'="',value.replace(/[<&"]/g,_xmlEncoder),'"')}function serializeToString(node,buf,isHTML,nodeFilter,visibleNamespaces){if(visibleNamespaces||(visibleNamespaces=[]),nodeFilter){if(!(node=nodeFilter(node)))return;if("string"==typeof node)return void buf.push(node)}switch(node.nodeType){case ELEMENT_NODE:var attrs=node.attributes,len=attrs.length,child=node.firstChild,nodeName=node.tagName,prefixedNodeName=nodeName;if(!(isHTML=NAMESPACE.isHTML(node.namespaceURI)||isHTML)&&!node.prefix&&node.namespaceURI){for(var defaultNS,ai=0;ai=0;nsi--){if(""===(namespace=visibleNamespaces[nsi]).prefix&&namespace.namespace===node.namespaceURI){defaultNS=namespace.namespace;break}}if(defaultNS!==node.namespaceURI)for(nsi=visibleNamespaces.length-1;nsi>=0;nsi--){var namespace;if((namespace=visibleNamespaces[nsi]).namespace===node.namespaceURI){namespace.prefix&&(prefixedNodeName=namespace.prefix+":"+nodeName);break}}}buf.push("<",prefixedNodeName);for(var i2=0;i2"),isHTML&&/^script$/i.test(nodeName))for(;child;)child.data?buf.push(child.data):serializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces.slice()),child=child.nextSibling;else for(;child;)serializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces.slice()),child=child.nextSibling;buf.push("")}else buf.push("/>");return;case DOCUMENT_NODE:case DOCUMENT_FRAGMENT_NODE:for(child=node.firstChild;child;)serializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces.slice()),child=child.nextSibling;return;case ATTRIBUTE_NODE:return addSerializedAttribute(buf,node.name,node.value);case TEXT_NODE:return buf.push(node.data.replace(/[<&]/g,_xmlEncoder).replace(/]]>/g,"]]>"));case CDATA_SECTION_NODE:return buf.push("");case COMMENT_NODE:return buf.push("\x3c!--",node.data,"--\x3e");case DOCUMENT_TYPE_NODE:var pubid=node.publicId,sysid=node.systemId;if(buf.push("");else if(sysid&&"."!=sysid)buf.push(" SYSTEM ",sysid,">");else{var sub=node.internalSubset;sub&&buf.push(" [",sub,"]"),buf.push(">")}return;case PROCESSING_INSTRUCTION_NODE:return buf.push("");case ENTITY_REFERENCE_NODE:return buf.push("&",node.nodeName,";");default:buf.push("??",node.nodeName)}}function importNode(doc,node,deep){var node2;switch(node.nodeType){case ELEMENT_NODE:(node2=node.cloneNode(!1)).ownerDocument=doc;case DOCUMENT_FRAGMENT_NODE:break;case ATTRIBUTE_NODE:deep=!0}if(node2||(node2=node.cloneNode(!1)),node2.ownerDocument=doc,node2.parentNode=null,deep)for(var child=node.firstChild;child;)node2.appendChild(importNode(doc,child,deep)),child=child.nextSibling;return node2}function cloneNode(doc,node,deep){var node2=new node.constructor;for(var n in node){var v=node[n];"object"!=typeof v&&v!=node2[n]&&(node2[n]=v)}switch(node.childNodes&&(node2.childNodes=new NodeList),node2.ownerDocument=doc,node2.nodeType){case ELEMENT_NODE:var attrs=node.attributes,attrs2=node2.attributes=new NamedNodeMap,len=attrs.length;attrs2._ownerElement=node2;for(var i2=0;i20},lookupPrefix:function(namespaceURI){for(var el=this;el;){var map=el._nsMap;if(map)for(var n in map)if(map[n]==namespaceURI)return n;el=el.nodeType==ATTRIBUTE_NODE?el.ownerDocument:el.parentNode}return null},lookupNamespaceURI:function(prefix){for(var el=this;el;){var map=el._nsMap;if(map&&prefix in map)return map[prefix];el=el.nodeType==ATTRIBUTE_NODE?el.ownerDocument:el.parentNode}return null},isDefaultNamespace:function(namespaceURI){return null==this.lookupPrefix(namespaceURI)}},__name(_xmlEncoder,"_xmlEncoder"),copy(NodeType,Node2),copy(NodeType,Node2.prototype),__name(_visitNode,"_visitNode"),__name(Document2,"Document"),__name(_onAddAttribute,"_onAddAttribute"),__name(_onRemoveAttribute,"_onRemoveAttribute"),__name(_onUpdateChild,"_onUpdateChild"),__name(_removeChild,"_removeChild"),__name(_insertBefore,"_insertBefore"),__name(_appendSingleChild,"_appendSingleChild"),Document2.prototype={nodeName:"#document",nodeType:DOCUMENT_NODE,doctype:null,documentElement:null,_inc:1,insertBefore:function(newChild,refChild){if(newChild.nodeType==DOCUMENT_FRAGMENT_NODE){for(var child=newChild.firstChild;child;){var next=child.nextSibling;this.insertBefore(child,refChild),child=next}return newChild}return null==this.documentElement&&newChild.nodeType==ELEMENT_NODE&&(this.documentElement=newChild),_insertBefore(this,newChild,refChild),newChild.ownerDocument=this,newChild},removeChild:function(oldChild){return this.documentElement==oldChild&&(this.documentElement=null),_removeChild(this,oldChild)},importNode:function(importedNode,deep){return importNode(this,importedNode,deep)},getElementById:function(id){var rtv=null;return _visitNode(this.documentElement,function(node){if(node.nodeType==ELEMENT_NODE&&node.getAttribute("id")==id)return rtv=node,!0}),rtv},getElementsByClassName:function(classNames){var classNamesSet=toOrderedSet(classNames);return new LiveNodeList(this,function(base){var ls=[];return classNamesSet.length>0&&_visitNode(base.documentElement,function(node){if(node!==base&&node.nodeType===ELEMENT_NODE){var nodeClassNames=node.getAttribute("class");if(nodeClassNames){var matches=classNames===nodeClassNames;if(!matches){var nodeClassNamesSet=toOrderedSet(nodeClassNames);matches=classNamesSet.every(arrayIncludes(nodeClassNamesSet))}matches&&ls.push(node)}}}),ls})},createElement:function(tagName){var node=new Element2;return node.ownerDocument=this,node.nodeName=tagName,node.tagName=tagName,node.localName=tagName,node.childNodes=new NodeList,(node.attributes=new NamedNodeMap)._ownerElement=node,node},createDocumentFragment:function(){var node=new DocumentFragment2;return node.ownerDocument=this,node.childNodes=new NodeList,node},createTextNode:function(data){var node=new Text2;return node.ownerDocument=this,node.appendData(data),node},createComment:function(data){var node=new Comment;return node.ownerDocument=this,node.appendData(data),node},createCDATASection:function(data){var node=new CDATASection;return node.ownerDocument=this,node.appendData(data),node},createProcessingInstruction:function(target,data){var node=new ProcessingInstruction;return node.ownerDocument=this,node.tagName=node.target=target,node.nodeValue=node.data=data,node},createAttribute:function(name){var node=new Attr;return node.ownerDocument=this,node.name=name,node.nodeName=name,node.localName=name,node.specified=!0,node},createEntityReference:function(name){var node=new EntityReference;return node.ownerDocument=this,node.nodeName=name,node},createElementNS:function(namespaceURI,qualifiedName){var node=new Element2,pl=qualifiedName.split(":"),attrs=node.attributes=new NamedNodeMap;return node.childNodes=new NodeList,node.ownerDocument=this,node.nodeName=qualifiedName,node.tagName=qualifiedName,node.namespaceURI=namespaceURI,2==pl.length?(node.prefix=pl[0],node.localName=pl[1]):node.localName=qualifiedName,attrs._ownerElement=node,node},createAttributeNS:function(namespaceURI,qualifiedName){var node=new Attr,pl=qualifiedName.split(":");return node.ownerDocument=this,node.nodeName=qualifiedName,node.name=qualifiedName,node.namespaceURI=namespaceURI,node.specified=!0,2==pl.length?(node.prefix=pl[0],node.localName=pl[1]):node.localName=qualifiedName,node}},_extends(Document2,Node2),__name(Element2,"Element"),Element2.prototype={nodeType:ELEMENT_NODE,hasAttribute:function(name){return null!=this.getAttributeNode(name)},getAttribute:function(name){var attr=this.getAttributeNode(name);return attr&&attr.value||""},getAttributeNode:function(name){return this.attributes.getNamedItem(name)},setAttribute:function(name,value){var attr=this.ownerDocument.createAttribute(name);attr.value=attr.nodeValue=""+value,this.setAttributeNode(attr)},removeAttribute:function(name){var attr=this.getAttributeNode(name);attr&&this.removeAttributeNode(attr)},appendChild:function(newChild){return newChild.nodeType===DOCUMENT_FRAGMENT_NODE?this.insertBefore(newChild,null):_appendSingleChild(this,newChild)},setAttributeNode:function(newAttr){return this.attributes.setNamedItem(newAttr)},setAttributeNodeNS:function(newAttr){return this.attributes.setNamedItemNS(newAttr)},removeAttributeNode:function(oldAttr){return this.attributes.removeNamedItem(oldAttr.nodeName)},removeAttributeNS:function(namespaceURI,localName){var old=this.getAttributeNodeNS(namespaceURI,localName);old&&this.removeAttributeNode(old)},hasAttributeNS:function(namespaceURI,localName){return null!=this.getAttributeNodeNS(namespaceURI,localName)},getAttributeNS:function(namespaceURI,localName){var attr=this.getAttributeNodeNS(namespaceURI,localName);return attr&&attr.value||""},setAttributeNS:function(namespaceURI,qualifiedName,value){var attr=this.ownerDocument.createAttributeNS(namespaceURI,qualifiedName);attr.value=attr.nodeValue=""+value,this.setAttributeNode(attr)},getAttributeNodeNS:function(namespaceURI,localName){return this.attributes.getNamedItemNS(namespaceURI,localName)},getElementsByTagName:function(tagName){return new LiveNodeList(this,function(base){var ls=[];return _visitNode(base,function(node){node!==base&&node.nodeType==ELEMENT_NODE&&("*"===tagName||node.tagName==tagName)&&ls.push(node)}),ls})},getElementsByTagNameNS:function(namespaceURI,localName){return new LiveNodeList(this,function(base){var ls=[];return _visitNode(base,function(node){node!==base&&node.nodeType===ELEMENT_NODE&&("*"===namespaceURI||node.namespaceURI===namespaceURI)&&("*"===localName||node.localName==localName)&&ls.push(node)}),ls})}},Document2.prototype.getElementsByTagName=Element2.prototype.getElementsByTagName,Document2.prototype.getElementsByTagNameNS=Element2.prototype.getElementsByTagNameNS,_extends(Element2,Node2),__name(Attr,"Attr"),Attr.prototype.nodeType=ATTRIBUTE_NODE,_extends(Attr,Node2),__name(CharacterData,"CharacterData"),CharacterData.prototype={data:"",substringData:function(offset,count){return this.data.substring(offset,offset+count)},appendData:function(text){text=this.data+text,this.nodeValue=this.data=text,this.length=text.length},insertData:function(offset,text){this.replaceData(offset,0,text)},appendChild:function(newChild){throw new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR])},deleteData:function(offset,count){this.replaceData(offset,count,"")},replaceData:function(offset,count,text){text=this.data.substring(0,offset)+text+this.data.substring(offset+count),this.nodeValue=this.data=text,this.length=text.length}},_extends(CharacterData,Node2),__name(Text2,"Text"),Text2.prototype={nodeName:"#text",nodeType:TEXT_NODE,splitText:function(offset){var text=this.data,newText=text.substring(offset);text=text.substring(0,offset),this.data=this.nodeValue=text,this.length=text.length;var newNode=this.ownerDocument.createTextNode(newText);return this.parentNode&&this.parentNode.insertBefore(newNode,this.nextSibling),newNode}},_extends(Text2,CharacterData),__name(Comment,"Comment"),Comment.prototype={nodeName:"#comment",nodeType:COMMENT_NODE},_extends(Comment,CharacterData),__name(CDATASection,"CDATASection"),CDATASection.prototype={nodeName:"#cdata-section",nodeType:CDATA_SECTION_NODE},_extends(CDATASection,CharacterData),__name(DocumentType,"DocumentType"),DocumentType.prototype.nodeType=DOCUMENT_TYPE_NODE,_extends(DocumentType,Node2),__name(Notation,"Notation"),Notation.prototype.nodeType=NOTATION_NODE,_extends(Notation,Node2),__name(Entity,"Entity"),Entity.prototype.nodeType=ENTITY_NODE,_extends(Entity,Node2),__name(EntityReference,"EntityReference"),EntityReference.prototype.nodeType=ENTITY_REFERENCE_NODE,_extends(EntityReference,Node2),__name(DocumentFragment2,"DocumentFragment"),DocumentFragment2.prototype.nodeName="#document-fragment",DocumentFragment2.prototype.nodeType=DOCUMENT_FRAGMENT_NODE,_extends(DocumentFragment2,Node2),__name(ProcessingInstruction,"ProcessingInstruction"),ProcessingInstruction.prototype.nodeType=PROCESSING_INSTRUCTION_NODE,_extends(ProcessingInstruction,Node2),__name(XMLSerializer,"XMLSerializer"),XMLSerializer.prototype.serializeToString=function(node,isHtml,nodeFilter){return nodeSerializeToString.call(node,isHtml,nodeFilter)},Node2.prototype.toString=nodeSerializeToString,__name(nodeSerializeToString,"nodeSerializeToString"),__name(needNamespaceDefine,"needNamespaceDefine"),__name(addSerializedAttribute,"addSerializedAttribute"),__name(serializeToString,"serializeToString"),__name(importNode,"importNode"),__name(cloneNode,"cloneNode"),__name(__set__,"__set__");try{if(Object.defineProperty){let getTextContent2=function(node){switch(node.nodeType){case ELEMENT_NODE:case DOCUMENT_FRAGMENT_NODE:var buf=[];for(node=node.firstChild;node;)7!==node.nodeType&&8!==node.nodeType&&buf.push(getTextContent2(node)),node=node.nextSibling;return buf.join("");default:return node.nodeValue}};__name(getTextContent2,"getTextContent"),Object.defineProperty(LiveNodeList.prototype,"length",{get:function(){return _updateLiveList(this),this.$$length}}),Object.defineProperty(Node2.prototype,"textContent",{get:function(){return getTextContent2(this)},set:function(data){switch(this.nodeType){case ELEMENT_NODE:case DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(data||String(data))&&this.appendChild(this.ownerDocument.createTextNode(data));break;default:this.data=data,this.value=data,this.nodeValue=data}}}),__set__=__name(function(object,key,value){object["$$"+key]=value},"__set__")}}catch{}exports2.DocumentType=DocumentType,exports2.DOMException=DOMException2,exports2.DOMImplementation=DOMImplementation,exports2.Element=Element2,exports2.Node=Node2,exports2.NodeList=NodeList,exports2.XMLSerializer=XMLSerializer},64436:(__unused_webpack_module,exports2,__webpack_require__2)=>{var freeze=__webpack_require__2(59401).freeze;exports2.XML_ENTITIES=freeze({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),exports2.HTML_ENTITIES=freeze({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",euro:"\u20ac",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),exports2.entityMap=exports2.HTML_ENTITIES},50978:(__unused_webpack_module,exports2,__webpack_require__2)=>{var dom=__webpack_require__2(26853);dom.DOMImplementation,dom.XMLSerializer,exports2.DOMParser=__webpack_require__2(91991).DOMParser},68702:(__unused_webpack_module,exports2,__webpack_require__2)=>{var NAMESPACE=__webpack_require__2(59401).NAMESPACE,nameStartChar=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,nameChar=new RegExp("[\\-\\.0-9"+nameStartChar.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),tagNamePattern=new RegExp("^"+nameStartChar.source+nameChar.source+"*(?::"+nameStartChar.source+nameChar.source+"*)?$");function ParseError(message2,locator){this.message=message2,this.locator=locator,Error.captureStackTrace&&Error.captureStackTrace(this,ParseError)}function XMLReader(){}function parse(source,defaultNSMapCopy,entityMap,domBuilder,errorHandler){function fixedFromCharCode(code2){if(code2>65535){var surrogate1=55296+((code2-=65536)>>10),surrogate2=56320+(1023&code2);return String.fromCharCode(surrogate1,surrogate2)}return String.fromCharCode(code2)}function entityReplacer(a2){var k=a2.slice(1,-1);return k in entityMap?entityMap[k]:"#"===k.charAt(0)?fixedFromCharCode(parseInt(k.substr(1).replace("x","0x"))):(errorHandler.error("entity not found:"+a2),a2)}function appendText(end2){if(end2>start){var xt=source.substring(start,end2).replace(/&#?\w+;/g,entityReplacer);locator&&position(start),domBuilder.characters(xt,0,end2-start),start=end2}}function position(p,m){for(;p>=lineEnd&&(m=linePattern.exec(source));)lineStart=m.index,lineEnd=lineStart+m[0].length,locator.lineNumber++;locator.columnNumber=p-lineStart+1}__name(fixedFromCharCode,"fixedFromCharCode"),__name(entityReplacer,"entityReplacer"),__name(appendText,"appendText"),__name(position,"position");for(var lineStart=0,lineEnd=0,linePattern=/.*(?:\r\n?|\n)|.*$/g,locator=domBuilder.locator,parseStack=[{currentNSMap:defaultNSMapCopy}],closeMap={},start=0;;){try{var tagStart=source.indexOf("<",start);if(tagStart<0){if(!source.substr(start).match(/^\s*$/)){var doc=domBuilder.doc,text=doc.createTextNode(source.substr(start));doc.appendChild(text),domBuilder.currentElement=text}return}switch(tagStart>start&&appendText(tagStart),source.charAt(tagStart+1)){case"/":var end=source.indexOf(">",tagStart+3),tagName=source.substring(tagStart+2,end).replace(/[ \t\n\r]+$/g,""),config=parseStack.pop();end<0?(tagName=source.substring(tagStart+2).replace(/[\s<].*/,""),errorHandler.error("end tag name: "+tagName+" is not complete:"+config.tagName),end=tagStart+1+tagName.length):tagName.match(/\sstart?start=end:appendText(Math.max(tagStart,start)+1)}}function copyLocator(f2,t){return t.lineNumber=f2.lineNumber,t.columnNumber=f2.columnNumber,t}function parseElementStartPart(source,start,el,currentNSMap,entityReplacer,errorHandler){function addAttribute(qname,value2,startIndex){el.attributeNames.hasOwnProperty(qname)&&errorHandler.fatalError("Attribute "+qname+" redefined"),el.addValue(qname,value2,startIndex)}__name(addAttribute,"addAttribute");for(var attrName,p=++start,s=0;;){var c=source.charAt(p);switch(c){case"=":if(1===s)attrName=source.slice(start,p),s=3;else{if(2!==s)throw new Error("attribute equal must after attrName");s=3}break;case"'":case'"':if(3===s||1===s){if(1===s&&(errorHandler.warning('attribute value must after "="'),attrName=source.slice(start,p)),start=p+1,!((p=source.indexOf(c,start))>0))throw new Error("attribute value no end '"+c+"' match");addAttribute(attrName,value=source.slice(start,p).replace(/&#?\w+;/g,entityReplacer),start-1),s=5}else{if(4!=s)throw new Error('attribute value must after "="');addAttribute(attrName,value=source.slice(start,p).replace(/&#?\w+;/g,entityReplacer),start),errorHandler.warning('attribute "'+attrName+'" missed start quot('+c+")!!"),start=p+1,s=5}break;case"/":switch(s){case 0:el.setTagName(source.slice(start,p));case 5:case 6:case 7:s=7,el.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return errorHandler.error("unexpected end of input"),0==s&&el.setTagName(source.slice(start,p)),p;case">":switch(s){case 0:el.setTagName(source.slice(start,p));case 5:case 6:case 7:break;case 4:case 1:"/"===(value=source.slice(start,p)).slice(-1)&&(el.closed=!0,value=value.slice(0,-1));case 2:2===s&&(value=attrName),4==s?(errorHandler.warning('attribute "'+value+'" missed quot(")!'),addAttribute(attrName,value.replace(/&#?\w+;/g,entityReplacer),start)):((!NAMESPACE.isHTML(currentNSMap[""])||!value.match(/^(?:disabled|checked|selected)$/i))&&errorHandler.warning('attribute "'+value+'" missed value!! "'+value+'" instead!!'),addAttribute(value,value,start));break;case 3:throw new Error("attribute value missed!!")}return p;case"\x80":c=" ";default:if(c<=" ")switch(s){case 0:el.setTagName(source.slice(start,p)),s=6;break;case 1:attrName=source.slice(start,p),s=2;break;case 4:var value=source.slice(start,p).replace(/&#?\w+;/g,entityReplacer);errorHandler.warning('attribute "'+value+'" missed quot(")!!'),addAttribute(attrName,value,start);case 5:s=6}else switch(s){case 2:el.tagName;(!NAMESPACE.isHTML(currentNSMap[""])||!attrName.match(/^(?:disabled|checked|selected)$/i))&&errorHandler.warning('attribute "'+attrName+'" missed value!! "'+attrName+'" instead2!!'),addAttribute(attrName,attrName,start),start=p,s=1;break;case 5:errorHandler.warning('attribute space is required"'+attrName+'"!!');case 6:s=1,start=p;break;case 3:s=4,start=p;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}p++}}function appendElement(el,domBuilder,currentNSMap){for(var tagName=el.tagName,localNSMap=null,i2=el.length;i2--;){var a=el[i2],qName=a.qName,value=a.value;if((nsp=qName.indexOf(":"))>0)var prefix=a.prefix=qName.slice(0,nsp),localName=qName.slice(nsp+1),nsPrefix="xmlns"===prefix&&localName;else localName=qName,prefix=null,nsPrefix="xmlns"===qName&&"";a.localName=localName,!1!==nsPrefix&&(null==localNSMap&&(localNSMap={},_copy(currentNSMap,currentNSMap={})),currentNSMap[nsPrefix]=localNSMap[nsPrefix]=value,a.uri=NAMESPACE.XMLNS,domBuilder.startPrefixMapping(nsPrefix,value))}for(i2=el.length;i2--;){(prefix=(a=el[i2]).prefix)&&("xml"===prefix&&(a.uri=NAMESPACE.XML),"xmlns"!==prefix&&(a.uri=currentNSMap[prefix||""]))}var nsp;(nsp=tagName.indexOf(":"))>0?(prefix=el.prefix=tagName.slice(0,nsp),localName=el.localName=tagName.slice(nsp+1)):(prefix=null,localName=el.localName=tagName);var ns=el.uri=currentNSMap[prefix||""];if(domBuilder.startElement(ns,localName,tagName,el),!el.closed)return el.currentNSMap=currentNSMap,el.localNSMap=localNSMap,!0;if(domBuilder.endElement(ns,localName,tagName),localNSMap)for(prefix in localNSMap)domBuilder.endPrefixMapping(prefix)}function parseHtmlSpecialContent(source,elStartEnd,tagName,entityReplacer,domBuilder){if(/^(?:script|textarea)$/i.test(tagName)){var elEndStart=source.indexOf("",elStartEnd),text=source.substring(elStartEnd+1,elEndStart);if(/[&<]/.test(text))return/^script$/i.test(tagName)?(domBuilder.characters(text,0,text.length),elEndStart):(text=text.replace(/&#?\w+;/g,entityReplacer),domBuilder.characters(text,0,text.length),elEndStart)}return elStartEnd+1}function fixSelfClosed(source,elStartEnd,tagName,closeMap){var pos=closeMap[tagName];return null==pos&&((pos=source.lastIndexOf(""))start?(domBuilder.comment(source,start+4,end-start-4),end+3):(errorHandler.error("Unclosed comment"),-1):-1;if("CDATA["==source.substr(start+3,6)){var end=source.indexOf("]]>",start+9);return domBuilder.startCDATA(),domBuilder.characters(source,start+9,end-start-9),domBuilder.endCDATA(),end+3}var matchs=split(source,start),len=matchs.length;if(len>1&&/!doctype/i.test(matchs[0][0])){var name=matchs[1][0],pubid=!1,sysid=!1;len>3&&(/^public$/i.test(matchs[2][0])?(pubid=matchs[3][0],sysid=len>4&&matchs[4][0]):/^system$/i.test(matchs[2][0])&&(sysid=matchs[3][0]));var lastMatch=matchs[len-1];return domBuilder.startDTD(name,pubid,sysid),domBuilder.endDTD(),lastMatch.index+lastMatch[0].length}return-1}function parseInstruction(source,start,domBuilder){var end=source.indexOf("?>",start);if(end){var match=source.substring(start,end).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(match){match[0].length;return domBuilder.processingInstruction(match[1],match[2]),end+2}return-1}return-1}function ElementAttributes(){this.attributeNames={}}function split(source,start){var match,buf=[],reg=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(reg.lastIndex=start,reg.exec(source);match=reg.exec(source);)if(buf.push(match),match[1])return buf}__name(ParseError,"ParseError"),ParseError.prototype=new Error,ParseError.prototype.name=ParseError.name,__name(XMLReader,"XMLReader"),XMLReader.prototype={parse:function(source,defaultNSMap,entityMap){var domBuilder=this.domBuilder;domBuilder.startDocument(),_copy(defaultNSMap,defaultNSMap={}),parse(source,defaultNSMap,entityMap,domBuilder,this.errorHandler),domBuilder.endDocument()}},__name(parse,"parse"),__name(copyLocator,"copyLocator"),__name(parseElementStartPart,"parseElementStartPart"),__name(appendElement,"appendElement"),__name(parseHtmlSpecialContent,"parseHtmlSpecialContent"),__name(fixSelfClosed,"fixSelfClosed"),__name(_copy,"_copy"),__name(parseDCC,"parseDCC"),__name(parseInstruction,"parseInstruction"),__name(ElementAttributes,"ElementAttributes"),ElementAttributes.prototype={setTagName:function(tagName){if(!tagNamePattern.test(tagName))throw new Error("invalid tagName:"+tagName);this.tagName=tagName},addValue:function(qName,value,offset){if(!tagNamePattern.test(qName))throw new Error("invalid attribute:"+qName);this.attributeNames[qName]=this.length,this[this.length++]={qName,value,offset}},length:0,getLocalName:function(i2){return this[i2].localName},getLocator:function(i2){return this[i2].locator},getQName:function(i2){return this[i2].qName},getURI:function(i2){return this[i2].uri},getValue:function(i2){return this[i2].value}},__name(split,"split"),exports2.XMLReader=XMLReader,exports2.ParseError=ParseError},80800:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var Negotiator=__webpack_require__2(2456),mime=__webpack_require__2(10204);function Accepts(req){if(!(this instanceof Accepts))return new Accepts(req);this.headers=req.headers,this.negotiator=new Negotiator(req)}function extToMime(type){return-1===type.indexOf("/")?mime.lookup(type):type}function validMime(type){return"string"==typeof type}module2.exports=Accepts,__name(Accepts,"Accepts"),Accepts.prototype.type=Accepts.prototype.types=function(types_){var types=types_;if(types&&!Array.isArray(types)){types=new Array(arguments.length);for(var i2=0;i2{const ADDR_RE=/^\[?([^\]]+)]?:(\d+)$/;let cache=new Map;module2.exports=__name(function(addr){if(1e5===cache.size&&cache.clear(),!cache.has(addr)){const m=ADDR_RE.exec(addr);if(!m)throw new Error(`invalid addr: ${addr}`);cache.set(addr,[m[1],Number(m[2])])}return cache.get(addr)},"addrToIPPort")},88498:module2=>{function after(count,callback,err_cb){var bail=!1;return err_cb=err_cb||noop,proxy.count=count,0===count?callback():proxy;function proxy(err,result){if(proxy.count<=0)throw new Error("after called too many times");--proxy.count,err?(bail=!0,callback(err),callback=err_cb):0===proxy.count&&!bail&&callback(null,result)}}function noop(){}module2.exports=after,__name(after,"after"),__name(noop,"noop")},59965:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var lib=__webpack_require__2(26696);module2.exports=lib(__dirname)},26696:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=function(dirname){var path=__webpack_require__2(71017),appRootPath=__webpack_require__2(56068)(dirname),publicInterface={resolve:function(pathToModule){return path.join(appRootPath,pathToModule)},require:function(pathToModule){return __webpack_require__2(97021)(publicInterface.resolve(pathToModule))},toString:function(){return appRootPath},setPath:function(explicitlySetPath){appRootPath=path.resolve(explicitlySetPath),publicInterface.path=appRootPath},path:appRootPath};return publicInterface}},56068:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var npmGlobalPrefix,path=__webpack_require__2(71017),globalPaths=__webpack_require__2(98188).globalPaths;npmGlobalPrefix="win32"===process.platform?path.dirname(process.execPath):path.dirname(path.dirname(process.execPath));var npmGlobalModuleDir=path.resolve(npmGlobalPrefix,"lib","node_modules"),sep=path.sep,requireFunction=require;const isInstalledWithPNPM=__name(function(resolved){const pnpmDir=sep+".pnpm";for(const globalPath of globalPaths)if(-1!==globalPath.indexOf(pnpmDir)&&-1!==resolved.indexOf(pnpmDir))return!0;return!1},"isInstalledWithPNPM"),getFirstPartFromNodeModules=__name(function(resolved){const nodeModulesDir=sep+"node_modules";if(-1!==resolved.indexOf(nodeModulesDir)){const parts=resolved.split(nodeModulesDir);if(parts.length)return parts[0]}return null},"getFirstPartFromNodeModules");module2.exports=__name(function(dirname){if(process.env.APP_ROOT_PATH)return path.resolve(process.env.APP_ROOT_PATH);if(process.versions.pnp)try{var pnp=requireFunction("pnpapi");return pnp.getPackageInformation(pnp.topLevel).packageLocation}catch{}if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)try{return requireFunction("electron").remote.require("app-root-path").path}catch{}if(process.env.LAMBDA_TASK_ROOT&&process.env.AWS_EXECUTION_ENV)return process.env.LAMBDA_TASK_ROOT;var resolved=path.resolve(dirname),alternateMethod=!1,appRootPath=null;return isInstalledWithPNPM(resolved)&&(appRootPath=getFirstPartFromNodeModules(resolved))||(globalPaths.forEach(function(globalPath){!alternateMethod&&0===resolved.indexOf(globalPath)&&(alternateMethod=!0)}),alternateMethod||(appRootPath=getFirstPartFromNodeModules(resolved)),(alternateMethod||null==appRootPath)&&(appRootPath=path.dirname(requireFunction.main.filename)),alternateMethod&&-1!==appRootPath.indexOf(npmGlobalModuleDir)&&appRootPath.length-4===appRootPath.indexOf(sep+"bin")&&(appRootPath=appRootPath.slice(0,-4))),appRootPath},"resolve")},47285:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var parsePath=__webpack_require__2(86624),setValue=__webpack_require__2(59803);function appendField(store,key,value){parsePath(key).reduce(function(context,step){return setValue(context,step,context[step.key],value)},store)}__name(appendField,"appendField"),module2.exports=appendField},86624:module2=>{var reFirstKey=/^[^\[]*/,reDigitPath=/^\[(\d+)\]/,reNormalPath=/^\[([^\]]+)\]/;function parsePath(key){function failure(){return[{type:"object",key,last:!0}]}__name(failure,"failure");var firstKey=reFirstKey.exec(key)[0];if(!firstKey)return failure();for(var len=key.length,pos=firstKey.length,tail={type:"object",key:firstKey},steps=[tail];pos{function valueType(value){return void 0===value?"undefined":Array.isArray(value)?"array":"object"==typeof value?"object":"scalar"}function setLastValue(context,step,currentValue,entryValue){switch(valueType(currentValue)){case"undefined":step.append?context[step.key]=[entryValue]:context[step.key]=entryValue;break;case"array":context[step.key].push(entryValue);break;case"object":return setLastValue(currentValue,{type:"object",key:"",last:!0},currentValue[""],entryValue);case"scalar":context[step.key]=[context[step.key],entryValue]}return context}function setValue(context,step,currentValue,entryValue){if(step.last)return setLastValue(context,step,currentValue,entryValue);var obj;switch(valueType(currentValue)){case"undefined":return"array"===step.nextType?context[step.key]=[]:context[step.key]=Object.create(null),context[step.key];case"object":return context[step.key];case"array":return"array"===step.nextType?currentValue:(obj=Object.create(null),context[step.key]=obj,currentValue.forEach(function(item,i2){void 0!==item&&(obj[""+i2]=item)}),obj);case"scalar":return(obj=Object.create(null))[""]=currentValue,context[step.key]=obj,obj}}__name(valueType,"valueType"),__name(setLastValue,"setLastValue"),__name(setValue,"setValue"),module2.exports=setValue},97802:(module2,__unused_webpack_exports2,__webpack_require__2)=>{module2.exports={parallel:__webpack_require__2(19301),serial:__webpack_require__2(94620),serialOrdered:__webpack_require__2(28209)}},41073:module2=>{function abort(state){Object.keys(state.jobs).forEach(clean.bind(state)),state.jobs={}}function clean(key){"function"==typeof this.jobs[key]&&this.jobs[key]()}module2.exports=abort,__name(abort,"abort"),__name(clean,"clean")},14154:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var defer=__webpack_require__2(57270);function async(callback){var isAsync=!1;return defer(function(){isAsync=!0}),__name(function(err,result){isAsync?callback(err,result):defer(__name(function(){callback(err,result)},"nextTick_callback"))},"async_callback")}module2.exports=async,__name(async,"async")},57270:module2=>{function defer(fn2){var nextTick="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;nextTick?nextTick(fn2):setTimeout(fn2,0)}module2.exports=defer,__name(defer,"defer")},56954:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var async=__webpack_require__2(14154),abort=__webpack_require__2(41073);function iterate(list,iterator,state,callback){var key=state.keyedList?state.keyedList[state.index]:state.index;state.jobs[key]=runJob(iterator,key,list[key],function(error,output){key in state.jobs&&(delete state.jobs[key],error?abort(state):state.results[key]=output,callback(error,state.results))})}function runJob(iterator,key,item,callback){return 2==iterator.length?iterator(item,async(callback)):iterator(item,key,async(callback))}module2.exports=iterate,__name(iterate,"iterate"),__name(runJob,"runJob")},66239:module2=>{function state(list,sortMethod){var isNamedList=!Array.isArray(list),initState={index:0,keyedList:isNamedList||sortMethod?Object.keys(list):null,jobs:{},results:isNamedList?{}:[],size:isNamedList?Object.keys(list).length:list.length};return sortMethod&&initState.keyedList.sort(isNamedList?sortMethod:function(a,b2){return sortMethod(list[a],list[b2])}),initState}module2.exports=state,__name(state,"state")},33164:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var abort=__webpack_require__2(41073),async=__webpack_require__2(14154);function terminator(callback){!Object.keys(this.jobs).length||(this.index=this.size,abort(this),async(callback)(null,this.results))}module2.exports=terminator,__name(terminator,"terminator")},19301:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var iterate=__webpack_require__2(56954),initState=__webpack_require__2(66239),terminator=__webpack_require__2(33164);function parallel(list,iterator,callback){for(var state=initState(list);state.index<(state.keyedList||list).length;)iterate(list,iterator,state,function(error,result){error?callback(error,result):0!==Object.keys(state.jobs).length||callback(null,state.results)}),state.index++;return terminator.bind(state,callback)}module2.exports=parallel,__name(parallel,"parallel")},94620:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var serialOrdered=__webpack_require__2(28209);function serial(list,iterator,callback){return serialOrdered(list,iterator,null,callback)}module2.exports=serial,__name(serial,"serial")},28209:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var iterate=__webpack_require__2(56954),initState=__webpack_require__2(66239),terminator=__webpack_require__2(33164);function serialOrdered(list,iterator,sortMethod,callback){var state=initState(list,sortMethod);return iterate(list,iterator,state,__name(function iteratorHandler(error,result){error?callback(error,result):(state.index++,state.index<(state.keyedList||list).length?iterate(list,iterator,state,iteratorHandler):callback(null,state.results))},"iteratorHandler")),terminator.bind(state,callback)}function ascending(a,b2){return ab2?1:0}function descending(a,b2){return-1*ascending(a,b2)}module2.exports=serialOrdered,module2.exports.ascending=ascending,module2.exports.descending=descending,__name(serialOrdered,"serialOrdered"),__name(ascending,"ascending"),__name(descending,"descending")},63014:(module2,__unused_webpack_exports2,__webpack_require__2)=>{module2.exports=__webpack_require__2(77114)},71075:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(4701),settle=__webpack_require__2(20858),buildFullPath=__webpack_require__2(55215),buildURL=__webpack_require__2(61625),http=__webpack_require__2(13685),https=__webpack_require__2(95687),httpFollow=__webpack_require__2(5898).http,httpsFollow=__webpack_require__2(5898).https,url=__webpack_require__2(57310),zlib=__webpack_require__2(59796),VERSION=__webpack_require__2(81773).version,createError=__webpack_require__2(5593),enhanceError=__webpack_require__2(85124),transitionalDefaults=__webpack_require__2(15867),Cancel=__webpack_require__2(1413),isHttps=/https:?/;function setProxy(options,proxy,location2){if(options.hostname=proxy.host,options.host=proxy.host,options.port=proxy.port,options.path=location2,proxy.auth){var base64=Buffer.from(proxy.auth.username+":"+proxy.auth.password,"utf8").toString("base64");options.headers["Proxy-Authorization"]="Basic "+base64}options.beforeRedirect=__name(function(redirection){redirection.headers.host=redirection.host,setProxy(redirection,proxy,redirection.href)},"beforeRedirect")}__name(setProxy,"setProxy"),module2.exports=__name(function(config){return new Promise(__name(function(resolvePromise,rejectPromise){var onCanceled;function done(){config.cancelToken&&config.cancelToken.unsubscribe(onCanceled),config.signal&&config.signal.removeEventListener("abort",onCanceled)}__name(done,"done");var resolve=__name(function(value){done(),resolvePromise(value)},"resolve"),rejected=!1,reject=__name(function(value){done(),rejected=!0,rejectPromise(value)},"reject"),data=config.data,headers=config.headers,headerNames={};if(Object.keys(headers).forEach(__name(function(name){headerNames[name.toLowerCase()]=name},"storeLowerName")),"user-agent"in headerNames?headers[headerNames["user-agent"]]||delete headers[headerNames["user-agent"]]:headers["User-Agent"]="axios/"+VERSION,data&&!utils.isStream(data)){if(!Buffer.isBuffer(data))if(utils.isArrayBuffer(data))data=Buffer.from(new Uint8Array(data));else{if(!utils.isString(data))return reject(createError("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",config));data=Buffer.from(data,"utf-8")}if(config.maxBodyLength>-1&&data.length>config.maxBodyLength)return reject(createError("Request body larger than maxBodyLength limit",config));headerNames["content-length"]||(headers["Content-Length"]=data.length)}var auth=void 0;config.auth&&(auth=(config.auth.username||"")+":"+(config.auth.password||""));var fullPath=buildFullPath(config.baseURL,config.url),parsed=url.parse(fullPath),protocol=parsed.protocol||"http:";if(!auth&&parsed.auth){var urlAuth=parsed.auth.split(":");auth=(urlAuth[0]||"")+":"+(urlAuth[1]||"")}auth&&headerNames.authorization&&delete headers[headerNames.authorization];var isHttpsRequest=isHttps.test(protocol),agent=isHttpsRequest?config.httpsAgent:config.httpAgent;try{buildURL(parsed.path,config.params,config.paramsSerializer).replace(/^\?/,"")}catch(err){var customErr=new Error(err.message);customErr.config=config,customErr.url=config.url,customErr.exists=!0,reject(customErr)}var options={path:buildURL(parsed.path,config.params,config.paramsSerializer).replace(/^\?/,""),method:config.method.toUpperCase(),headers,agent,agents:{http:config.httpAgent,https:config.httpsAgent},auth};config.socketPath?options.socketPath=config.socketPath:(options.hostname=parsed.hostname,options.port=parsed.port);var proxy=config.proxy;if(!proxy&&!1!==proxy){var proxyEnv=protocol.slice(0,-1)+"_proxy",proxyUrl=process.env[proxyEnv]||process.env[proxyEnv.toUpperCase()];if(proxyUrl){var parsedProxyUrl=url.parse(proxyUrl),noProxyEnv=process.env.no_proxy||process.env.NO_PROXY,shouldProxy=!0;if(noProxyEnv)shouldProxy=!noProxyEnv.split(",").map(__name(function(s){return s.trim()},"trim")).some(__name(function(proxyElement){return!!proxyElement&&("*"===proxyElement||"."===proxyElement[0]&&parsed.hostname.substr(parsed.hostname.length-proxyElement.length)===proxyElement||parsed.hostname===proxyElement)},"proxyMatch"));if(shouldProxy&&(proxy={host:parsedProxyUrl.hostname,port:parsedProxyUrl.port,protocol:parsedProxyUrl.protocol},parsedProxyUrl.auth)){var proxyUrlAuth=parsedProxyUrl.auth.split(":");proxy.auth={username:proxyUrlAuth[0],password:proxyUrlAuth[1]}}}}proxy&&(options.headers.host=parsed.hostname+(parsed.port?":"+parsed.port:""),setProxy(options,proxy,protocol+"//"+parsed.hostname+(parsed.port?":"+parsed.port:"")+options.path));var transport,isHttpsProxy=isHttpsRequest&&(!proxy||isHttps.test(proxy.protocol));config.transport?transport=config.transport:0===config.maxRedirects?transport=isHttpsProxy?https:http:(config.maxRedirects&&(options.maxRedirects=config.maxRedirects),transport=isHttpsProxy?httpsFollow:httpFollow),config.maxBodyLength>-1&&(options.maxBodyLength=config.maxBodyLength),config.insecureHTTPParser&&(options.insecureHTTPParser=config.insecureHTTPParser);var req=transport.request(options,__name(function(res){if(!req.aborted){var stream=res,lastRequest=res.req||req;if(204!==res.statusCode&&"HEAD"!==lastRequest.method&&!1!==config.decompress)switch(res.headers["content-encoding"]){case"gzip":case"compress":case"deflate":stream=stream.pipe(zlib.createUnzip()),delete res.headers["content-encoding"]}var response={status:res.statusCode,statusText:res.statusMessage,headers:res.headers,config,request:lastRequest};if("stream"===config.responseType)response.data=stream,settle(resolve,reject,response);else{var responseBuffer=[],totalResponseBytes=0;stream.on("data",__name(function(chunk){responseBuffer.push(chunk),totalResponseBytes+=chunk.length,config.maxContentLength>-1&&totalResponseBytes>config.maxContentLength&&(rejected=!0,stream.destroy(),reject(createError("maxContentLength size of "+config.maxContentLength+" exceeded",config,null,lastRequest)))},"handleStreamData")),stream.on("aborted",__name(function(){rejected||(stream.destroy(),reject(createError("error request aborted",config,"ERR_REQUEST_ABORTED",lastRequest)))},"handlerStreamAborted")),stream.on("error",__name(function(err){req.aborted||reject(enhanceError(err,config,null,lastRequest))},"handleStreamError")),stream.on("end",__name(function(){try{var responseData=1===responseBuffer.length?responseBuffer[0]:Buffer.concat(responseBuffer);"arraybuffer"!==config.responseType&&(responseData=responseData.toString(config.responseEncoding),(!config.responseEncoding||"utf8"===config.responseEncoding)&&(responseData=utils.stripBOM(responseData))),response.data=responseData}catch(err){reject(enhanceError(err,config,err.code,response.request,response))}settle(resolve,reject,response)},"handleStreamEnd"))}}},"handleResponse"));if(req.on("error",__name(function(err){req.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==err.code||reject(enhanceError(err,config,null,req))},"handleRequestError")),req.on("socket",__name(function(socket){socket.setKeepAlive(!0,6e4)},"handleRequestSocket")),config.timeout){var timeout=parseInt(config.timeout,10);if(isNaN(timeout))return void reject(createError("error trying to parse `config.timeout` to int",config,"ERR_PARSE_TIMEOUT",req));req.setTimeout(timeout,__name(function(){req.abort();var timeoutErrorMessage="";timeoutErrorMessage=config.timeoutErrorMessage?config.timeoutErrorMessage:"timeout of "+config.timeout+"ms exceeded";var transitional=config.transitional||transitionalDefaults;reject(createError(timeoutErrorMessage,config,transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",req))},"handleRequestTimeout"))}(config.cancelToken||config.signal)&&(onCanceled=__name(function(cancel){req.aborted||(req.abort(),reject(!cancel||cancel&&cancel.type?new Cancel("canceled"):cancel))},"onCanceled"),config.cancelToken&&config.cancelToken.subscribe(onCanceled),config.signal&&(config.signal.aborted?onCanceled():config.signal.addEventListener("abort",onCanceled))),utils.isStream(data)?data.on("error",__name(function(err){reject(enhanceError(err,config,null,req))},"handleStreamError")).pipe(req):req.end(data)},"dispatchHttpRequest"))},"httpAdapter")},27729:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(4701),settle=__webpack_require__2(20858),cookies=__webpack_require__2(95738),buildURL=__webpack_require__2(61625),buildFullPath=__webpack_require__2(55215),parseHeaders=__webpack_require__2(42099),isURLSameOrigin=__webpack_require__2(56100),createError=__webpack_require__2(5593),transitionalDefaults=__webpack_require__2(15867),Cancel=__webpack_require__2(1413);module2.exports=__name(function(config){return new Promise(__name(function(resolve,reject){var onCanceled,requestData=config.data,requestHeaders=config.headers,responseType=config.responseType;function done(){config.cancelToken&&config.cancelToken.unsubscribe(onCanceled),config.signal&&config.signal.removeEventListener("abort",onCanceled)}__name(done,"done"),utils.isFormData(requestData)&&delete requestHeaders["Content-Type"];var request=new XMLHttpRequest;if(config.auth){var username=config.auth.username||"",password=config.auth.password?unescape(encodeURIComponent(config.auth.password)):"";requestHeaders.Authorization="Basic "+btoa(username+":"+password)}var fullPath=buildFullPath(config.baseURL,config.url);function onloadend(){if(request){var responseHeaders="getAllResponseHeaders"in request?parseHeaders(request.getAllResponseHeaders()):null,response={data:responseType&&"text"!==responseType&&"json"!==responseType?request.response:request.responseText,status:request.status,statusText:request.statusText,headers:responseHeaders,config,request};settle(__name(function(value){resolve(value),done()},"_resolve"),__name(function(err){reject(err),done()},"_reject"),response),request=null}}if(request.open(config.method.toUpperCase(),buildURL(fullPath,config.params,config.paramsSerializer),!0),request.timeout=config.timeout,__name(onloadend,"onloadend"),"onloadend"in request?request.onloadend=onloadend:request.onreadystatechange=__name(function(){!request||4!==request.readyState||0===request.status&&(!request.responseURL||0!==request.responseURL.indexOf("file:"))||setTimeout(onloadend)},"handleLoad"),request.onabort=__name(function(){!request||(reject(createError("Request aborted",config,"ECONNABORTED",request)),request=null)},"handleAbort"),request.onerror=__name(function(){reject(createError("Network Error",config,null,request)),request=null},"handleError"),request.ontimeout=__name(function(){var timeoutErrorMessage=config.timeout?"timeout of "+config.timeout+"ms exceeded":"timeout exceeded",transitional=config.transitional||transitionalDefaults;config.timeoutErrorMessage&&(timeoutErrorMessage=config.timeoutErrorMessage),reject(createError(timeoutErrorMessage,config,transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",request)),request=null},"handleTimeout"),utils.isStandardBrowserEnv()){var xsrfValue=(config.withCredentials||isURLSameOrigin(fullPath))&&config.xsrfCookieName?cookies.read(config.xsrfCookieName):void 0;xsrfValue&&(requestHeaders[config.xsrfHeaderName]=xsrfValue)}"setRequestHeader"in request&&utils.forEach(requestHeaders,__name(function(val,key){void 0===requestData&&"content-type"===key.toLowerCase()?delete requestHeaders[key]:request.setRequestHeader(key,val)},"setRequestHeader")),utils.isUndefined(config.withCredentials)||(request.withCredentials=!!config.withCredentials),responseType&&"json"!==responseType&&(request.responseType=config.responseType),"function"==typeof config.onDownloadProgress&&request.addEventListener("progress",config.onDownloadProgress),"function"==typeof config.onUploadProgress&&request.upload&&request.upload.addEventListener("progress",config.onUploadProgress),(config.cancelToken||config.signal)&&(onCanceled=__name(function(cancel){!request||(reject(!cancel||cancel&&cancel.type?new Cancel("canceled"):cancel),request.abort(),request=null)},"onCanceled"),config.cancelToken&&config.cancelToken.subscribe(onCanceled),config.signal&&(config.signal.aborted?onCanceled():config.signal.addEventListener("abort",onCanceled))),requestData||(requestData=null),request.send(requestData)},"dispatchXhrRequest"))},"xhrAdapter")},77114:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(4701),bind=__webpack_require__2(72414),Axios=__webpack_require__2(26490),mergeConfig=__webpack_require__2(92971),defaults=__webpack_require__2(24498);function createInstance(defaultConfig){var context=new Axios(defaultConfig),instance=bind(Axios.prototype.request,context);return utils.extend(instance,Axios.prototype,context),utils.extend(instance,context),instance.create=__name(function(instanceConfig){return createInstance(mergeConfig(defaultConfig,instanceConfig))},"create"),instance}__name(createInstance,"createInstance");var axios=createInstance(defaults);axios.Axios=Axios,axios.Cancel=__webpack_require__2(1413),axios.CancelToken=__webpack_require__2(93056),axios.isCancel=__webpack_require__2(78827),axios.VERSION=__webpack_require__2(81773).version,axios.all=__name(function(promises){return Promise.all(promises)},"all"),axios.spread=__webpack_require__2(99211),axios.isAxiosError=__webpack_require__2(34603),module2.exports=axios,module2.exports.default=axios},1413:module2=>{"use strict";function Cancel(message2){this.message=message2}__name(Cancel,"Cancel"),Cancel.prototype.toString=__name(function(){return"Cancel"+(this.message?": "+this.message:"")},"toString"),Cancel.prototype.__CANCEL__=!0,module2.exports=Cancel},93056:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var Cancel=__webpack_require__2(1413);function CancelToken(executor){if("function"!=typeof executor)throw new TypeError("executor must be a function.");var resolvePromise;this.promise=new Promise(__name(function(resolve){resolvePromise=resolve},"promiseExecutor"));var token=this;this.promise.then(function(cancel){if(token._listeners){var i2,l=token._listeners.length;for(i2=0;i2{"use strict";module2.exports=__name(function(value){return!(!value||!value.__CANCEL__)},"isCancel")},26490:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(4701),buildURL=__webpack_require__2(61625),InterceptorManager=__webpack_require__2(607),dispatchRequest=__webpack_require__2(10957),mergeConfig=__webpack_require__2(92971),validator=__webpack_require__2(74828),validators=validator.validators;function Axios(instanceConfig){this.defaults=instanceConfig,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}__name(Axios,"Axios"),Axios.prototype.request=__name(function(configOrUrl,config){"string"==typeof configOrUrl?(config=config||{}).url=configOrUrl:config=configOrUrl||{},(config=mergeConfig(this.defaults,config)).method?config.method=config.method.toLowerCase():this.defaults.method?config.method=this.defaults.method.toLowerCase():config.method="get";var transitional=config.transitional;void 0!==transitional&&validator.assertOptions(transitional,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var requestInterceptorChain=[],synchronousRequestInterceptors=!0;this.interceptors.request.forEach(__name(function(interceptor){"function"==typeof interceptor.runWhen&&!1===interceptor.runWhen(config)||(synchronousRequestInterceptors=synchronousRequestInterceptors&&interceptor.synchronous,requestInterceptorChain.unshift(interceptor.fulfilled,interceptor.rejected))},"unshiftRequestInterceptors"));var promise,responseInterceptorChain=[];if(this.interceptors.response.forEach(__name(function(interceptor){responseInterceptorChain.push(interceptor.fulfilled,interceptor.rejected)},"pushResponseInterceptors")),!synchronousRequestInterceptors){var chain=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(chain,requestInterceptorChain),chain=chain.concat(responseInterceptorChain),promise=Promise.resolve(config);chain.length;)promise=promise.then(chain.shift(),chain.shift());return promise}for(var newConfig=config;requestInterceptorChain.length;){var onFulfilled=requestInterceptorChain.shift(),onRejected=requestInterceptorChain.shift();try{newConfig=onFulfilled(newConfig)}catch(error){onRejected(error);break}}try{promise=dispatchRequest(newConfig)}catch(error){return Promise.reject(error)}for(;responseInterceptorChain.length;)promise=promise.then(responseInterceptorChain.shift(),responseInterceptorChain.shift());return promise},"request"),Axios.prototype.getUri=__name(function(config){return config=mergeConfig(this.defaults,config),buildURL(config.url,config.params,config.paramsSerializer).replace(/^\?/,"")},"getUri"),utils.forEach(["delete","get","head","options"],__name(function(method){Axios.prototype[method]=function(url,config){return this.request(mergeConfig(config||{},{method,url,data:(config||{}).data}))}},"forEachMethodNoData")),utils.forEach(["post","put","patch"],__name(function(method){Axios.prototype[method]=function(url,data,config){return this.request(mergeConfig(config||{},{method,url,data}))}},"forEachMethodWithData")),module2.exports=Axios},607:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(4701);function InterceptorManager(){this.handlers=[]}__name(InterceptorManager,"InterceptorManager"),InterceptorManager.prototype.use=__name(function(fulfilled,rejected,options){return this.handlers.push({fulfilled,rejected,synchronous:!!options&&options.synchronous,runWhen:options?options.runWhen:null}),this.handlers.length-1},"use"),InterceptorManager.prototype.eject=__name(function(id){this.handlers[id]&&(this.handlers[id]=null)},"eject"),InterceptorManager.prototype.forEach=__name(function(fn2){utils.forEach(this.handlers,__name(function(h){null!==h&&fn2(h)},"forEachHandler"))},"forEach"),module2.exports=InterceptorManager},55215:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var isAbsoluteURL=__webpack_require__2(38692),combineURLs=__webpack_require__2(4554);module2.exports=__name(function(baseURL,requestedURL){return baseURL&&!isAbsoluteURL(requestedURL)?combineURLs(baseURL,requestedURL):requestedURL},"buildFullPath")},5593:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var enhanceError=__webpack_require__2(85124);module2.exports=__name(function(message2,config,code2,request,response){var error=new Error(message2);return enhanceError(error,config,code2,request,response)},"createError")},10957:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(4701),transformData=__webpack_require__2(75134),isCancel=__webpack_require__2(78827),defaults=__webpack_require__2(24498),Cancel=__webpack_require__2(1413);function throwIfCancellationRequested(config){if(config.cancelToken&&config.cancelToken.throwIfRequested(),config.signal&&config.signal.aborted)throw new Cancel("canceled")}__name(throwIfCancellationRequested,"throwIfCancellationRequested"),module2.exports=__name(function(config){return throwIfCancellationRequested(config),config.headers=config.headers||{},config.data=transformData.call(config,config.data,config.headers,config.transformRequest),config.headers=utils.merge(config.headers.common||{},config.headers[config.method]||{},config.headers),utils.forEach(["delete","get","head","post","put","patch","common"],__name(function(method){delete config.headers[method]},"cleanHeaderConfig")),(config.adapter||defaults.adapter)(config).then(__name(function(response){return throwIfCancellationRequested(config),response.data=transformData.call(config,response.data,response.headers,config.transformResponse),response},"onAdapterResolution"),__name(function(reason){return isCancel(reason)||(throwIfCancellationRequested(config),reason&&reason.response&&(reason.response.data=transformData.call(config,reason.response.data,reason.response.headers,config.transformResponse))),Promise.reject(reason)},"onAdapterRejection"))},"dispatchRequest")},85124:module2=>{"use strict";module2.exports=__name(function(error,config,code2,request,response){return error.config=config,code2&&(error.code=code2),error.request=request,error.response=response,error.isAxiosError=!0,error.toJSON=__name(function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},"toJSON"),error},"enhanceError")},92971:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(4701);module2.exports=__name(function(config1,config2){config2=config2||{};var config={};function getMergedValue(target,source){return utils.isPlainObject(target)&&utils.isPlainObject(source)?utils.merge(target,source):utils.isPlainObject(source)?utils.merge({},source):utils.isArray(source)?source.slice():source}function mergeDeepProperties(prop){return utils.isUndefined(config2[prop])?utils.isUndefined(config1[prop])?void 0:getMergedValue(void 0,config1[prop]):getMergedValue(config1[prop],config2[prop])}function valueFromConfig2(prop){if(!utils.isUndefined(config2[prop]))return getMergedValue(void 0,config2[prop])}function defaultToConfig2(prop){return utils.isUndefined(config2[prop])?utils.isUndefined(config1[prop])?void 0:getMergedValue(void 0,config1[prop]):getMergedValue(void 0,config2[prop])}function mergeDirectKeys(prop){return prop in config2?getMergedValue(config1[prop],config2[prop]):prop in config1?getMergedValue(void 0,config1[prop]):void 0}__name(getMergedValue,"getMergedValue"),__name(mergeDeepProperties,"mergeDeepProperties"),__name(valueFromConfig2,"valueFromConfig2"),__name(defaultToConfig2,"defaultToConfig2"),__name(mergeDirectKeys,"mergeDirectKeys");var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys};return utils.forEach(Object.keys(config1).concat(Object.keys(config2)),__name(function(prop){var merge=mergeMap[prop]||mergeDeepProperties,configValue=merge(prop);utils.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue)},"computeConfigValue")),config},"mergeConfig")},20858:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var createError=__webpack_require__2(5593);module2.exports=__name(function(resolve,reject,response){var validateStatus=response.config.validateStatus;response.status&&validateStatus&&!validateStatus(response.status)?reject(createError("Request failed with status code "+response.status,response.config,null,response.request,response)):resolve(response)},"settle")},75134:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(4701),defaults=__webpack_require__2(24498);module2.exports=__name(function(data,headers,fns){var context=this||defaults;return utils.forEach(fns,__name(function(fn2){data=fn2.call(context,data,headers)},"transform")),data},"transformData")},24498:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(4701),normalizeHeaderName=__webpack_require__2(75620),enhanceError=__webpack_require__2(85124),transitionalDefaults=__webpack_require__2(15867),DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(headers,value){!utils.isUndefined(headers)&&utils.isUndefined(headers["Content-Type"])&&(headers["Content-Type"]=value)}function getDefaultAdapter(){var adapter;return"undefined"!=typeof XMLHttpRequest?adapter=__webpack_require__2(27729):"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(adapter=__webpack_require__2(71075)),adapter}function stringifySafely(rawValue,parser,encoder){if(utils.isString(rawValue))try{return(parser||JSON.parse)(rawValue),utils.trim(rawValue)}catch(e){if("SyntaxError"!==e.name)throw e}return(encoder||JSON.stringify)(rawValue)}__name(setContentTypeIfUnset,"setContentTypeIfUnset"),__name(getDefaultAdapter,"getDefaultAdapter"),__name(stringifySafely,"stringifySafely");var defaults={transitional:transitionalDefaults,adapter:getDefaultAdapter(),transformRequest:[__name(function(data,headers){return normalizeHeaderName(headers,"Accept"),normalizeHeaderName(headers,"Content-Type"),utils.isFormData(data)||utils.isArrayBuffer(data)||utils.isBuffer(data)||utils.isStream(data)||utils.isFile(data)||utils.isBlob(data)?data:utils.isArrayBufferView(data)?data.buffer:utils.isURLSearchParams(data)?(setContentTypeIfUnset(headers,"application/x-www-form-urlencoded;charset=utf-8"),data.toString()):utils.isObject(data)||headers&&"application/json"===headers["Content-Type"]?(setContentTypeIfUnset(headers,"application/json"),stringifySafely(data)):data},"transformRequest")],transformResponse:[__name(function(data){var transitional=this.transitional||defaults.transitional,silentJSONParsing=transitional&&transitional.silentJSONParsing,forcedJSONParsing=transitional&&transitional.forcedJSONParsing,strictJSONParsing=!silentJSONParsing&&"json"===this.responseType;if(strictJSONParsing||forcedJSONParsing&&utils.isString(data)&&data.length)try{return JSON.parse(data)}catch(e){if(strictJSONParsing)throw"SyntaxError"===e.name?enhanceError(e,this,"E_JSON_PARSE"):e}return data},"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:__name(function(status){return status>=200&&status<300},"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*"}}};utils.forEach(["delete","get","head"],__name(function(method){defaults.headers[method]={}},"forEachMethodNoData")),utils.forEach(["post","put","patch"],__name(function(method){defaults.headers[method]=utils.merge(DEFAULT_CONTENT_TYPE)},"forEachMethodWithData")),module2.exports=defaults},15867:module2=>{"use strict";module2.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},81773:module2=>{module2.exports={version:"0.26.1"}},72414:module2=>{"use strict";module2.exports=__name(function(fn2,thisArg){return __name(function(){for(var args2=new Array(arguments.length),i2=0;i2{"use strict";var utils=__webpack_require__2(4701);function encode(val){return encodeURIComponent(val).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}__name(encode,"encode"),module2.exports=__name(function(url,params,paramsSerializer){if(!params)return url;var serializedParams;if(paramsSerializer)serializedParams=paramsSerializer(params);else if(utils.isURLSearchParams(params))serializedParams=params.toString();else{var parts=[];utils.forEach(params,__name(function(val,key){null==val||(utils.isArray(val)?key+="[]":val=[val],utils.forEach(val,__name(function(v){utils.isDate(v)?v=v.toISOString():utils.isObject(v)&&(v=JSON.stringify(v)),parts.push(encode(key)+"="+encode(v))},"parseValue")))},"serialize")),serializedParams=parts.join("&")}if(serializedParams){var hashmarkIndex=url.indexOf("#");-1!==hashmarkIndex&&(url=url.slice(0,hashmarkIndex)),url+=(-1===url.indexOf("?")?"?":"&")+serializedParams}return url},"buildURL")},4554:module2=>{"use strict";module2.exports=__name(function(baseURL,relativeURL){return relativeURL?baseURL.replace(/\/+$/,"")+"/"+relativeURL.replace(/^\/+/,""):baseURL},"combineURLs")},95738:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(4701);module2.exports=utils.isStandardBrowserEnv()?__name(function(){return{write:__name(function(name,value,expires,path,domain,secure){var cookie=[];cookie.push(name+"="+encodeURIComponent(value)),utils.isNumber(expires)&&cookie.push("expires="+new Date(expires).toGMTString()),utils.isString(path)&&cookie.push("path="+path),utils.isString(domain)&&cookie.push("domain="+domain),!0===secure&&cookie.push("secure"),document.cookie=cookie.join("; ")},"write"),read:__name(function(name){var match=document.cookie.match(new RegExp("(^|;\\s*)("+name+")=([^;]*)"));return match?decodeURIComponent(match[3]):null},"read"),remove:__name(function(name){this.write(name,"",Date.now()-864e5)},"remove")}},"standardBrowserEnv")():__name(function(){return{write:__name(function(){},"write"),read:__name(function(){return null},"read"),remove:__name(function(){},"remove")}},"nonStandardBrowserEnv")()},38692:module2=>{"use strict";module2.exports=__name(function(url){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(url)},"isAbsoluteURL")},34603:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(4701);module2.exports=__name(function(payload){return utils.isObject(payload)&&!0===payload.isAxiosError},"isAxiosError")},56100:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(4701);module2.exports=utils.isStandardBrowserEnv()?__name(function(){var originURL,msie=/(msie|trident)/i.test(navigator.userAgent),urlParsingNode=document.createElement("a");function resolveURL(url){var href=url;return msie&&(urlParsingNode.setAttribute("href",href),href=urlParsingNode.href),urlParsingNode.setAttribute("href",href),{href:urlParsingNode.href,protocol:urlParsingNode.protocol?urlParsingNode.protocol.replace(/:$/,""):"",host:urlParsingNode.host,search:urlParsingNode.search?urlParsingNode.search.replace(/^\?/,""):"",hash:urlParsingNode.hash?urlParsingNode.hash.replace(/^#/,""):"",hostname:urlParsingNode.hostname,port:urlParsingNode.port,pathname:"/"===urlParsingNode.pathname.charAt(0)?urlParsingNode.pathname:"/"+urlParsingNode.pathname}}return __name(resolveURL,"resolveURL"),originURL=resolveURL(window.location.href),__name(function(requestURL){var parsed=utils.isString(requestURL)?resolveURL(requestURL):requestURL;return parsed.protocol===originURL.protocol&&parsed.host===originURL.host},"isURLSameOrigin")},"standardBrowserEnv")():__name(function(){return __name(function(){return!0},"isURLSameOrigin")},"nonStandardBrowserEnv")()},75620:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(4701);module2.exports=__name(function(headers,normalizedName){utils.forEach(headers,__name(function(value,name){name!==normalizedName&&name.toUpperCase()===normalizedName.toUpperCase()&&(headers[normalizedName]=value,delete headers[name])},"processHeader"))},"normalizeHeaderName")},42099:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(4701),ignoreDuplicateOf=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];module2.exports=__name(function(headers){var key,val,i2,parsed={};return headers&&utils.forEach(headers.split("\n"),__name(function(line){if(i2=line.indexOf(":"),key=utils.trim(line.substr(0,i2)).toLowerCase(),val=utils.trim(line.substr(i2+1)),key){if(parsed[key]&&ignoreDuplicateOf.indexOf(key)>=0)return;parsed[key]="set-cookie"===key?(parsed[key]?parsed[key]:[]).concat([val]):parsed[key]?parsed[key]+", "+val:val}},"parser")),parsed},"parseHeaders")},99211:module2=>{"use strict";module2.exports=__name(function(callback){return __name(function(arr){return callback.apply(null,arr)},"wrap")},"spread")},74828:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var VERSION=__webpack_require__2(81773).version,validators={};["object","boolean","number","function","string","symbol"].forEach(function(type,i2){validators[type]=__name(function(thing){return typeof thing===type||"a"+(i2<1?"n ":" ")+type},"validator")});var deprecatedWarnings={};function assertOptions(options,schema,allowUnknown){if("object"!=typeof options)throw new TypeError("options must be an object");for(var keys=Object.keys(options),i2=keys.length;i2-- >0;){var opt=keys[i2],validator=schema[opt];if(validator){var value=options[opt],result=void 0===value||validator(value,opt,options);if(!0!==result)throw new TypeError("option "+opt+" must be "+result)}else if(!0!==allowUnknown)throw Error("Unknown option "+opt)}}validators.transitional=__name(function(validator,version,message2){function formatMessage(opt,desc){return"[Axios v"+VERSION+"] Transitional option '"+opt+"'"+desc+(message2?". "+message2:"")}return __name(formatMessage,"formatMessage"),function(value,opt,opts){if(!1===validator)throw new Error(formatMessage(opt," has been removed"+(version?" in "+version:"")));return version&&!deprecatedWarnings[opt]&&(deprecatedWarnings[opt]=!0,console.warn(formatMessage(opt," has been deprecated since v"+version+" and will be removed in the near future"))),!validator||validator(value,opt,opts)}},"transitional"),__name(assertOptions,"assertOptions"),module2.exports={assertOptions,validators}},4701:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var bind=__webpack_require__2(72414),toString=Object.prototype.toString;function isArray(val){return Array.isArray(val)}function isUndefined(val){return void 0===val}function isBuffer(val){return null!==val&&!isUndefined(val)&&null!==val.constructor&&!isUndefined(val.constructor)&&"function"==typeof val.constructor.isBuffer&&val.constructor.isBuffer(val)}function isArrayBuffer(val){return"[object ArrayBuffer]"===toString.call(val)}function isFormData(val){return"[object FormData]"===toString.call(val)}function isArrayBufferView(val){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(val):val&&val.buffer&&isArrayBuffer(val.buffer)}function isString(val){return"string"==typeof val}function isNumber(val){return"number"==typeof val}function isObject(val){return null!==val&&"object"==typeof val}function isPlainObject(val){if("[object Object]"!==toString.call(val))return!1;var prototype=Object.getPrototypeOf(val);return null===prototype||prototype===Object.prototype}function isDate(val){return"[object Date]"===toString.call(val)}function isFile(val){return"[object File]"===toString.call(val)}function isBlob(val){return"[object Blob]"===toString.call(val)}function isFunction(val){return"[object Function]"===toString.call(val)}function isStream(val){return isObject(val)&&isFunction(val.pipe)}function isURLSearchParams(val){return"[object URLSearchParams]"===toString.call(val)}function trim(str){return str.trim?str.trim():str.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function forEach(obj,fn2){if(null!=obj)if("object"!=typeof obj&&(obj=[obj]),isArray(obj))for(var i2=0,l=obj.length;i2{function Backoff(opts){opts=opts||{},this.ms=opts.min||100,this.max=opts.max||1e4,this.factor=opts.factor||2,this.jitter=opts.jitter>0&&opts.jitter<=1?opts.jitter:0,this.attempts=0}module2.exports=Backoff,__name(Backoff,"Backoff"),Backoff.prototype.duration=function(){var ms=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var rand=Math.random(),deviation=Math.floor(rand*this.jitter*ms);ms=0==(1&Math.floor(10*rand))?ms-deviation:ms+deviation}return 0|Math.min(ms,this.max)},Backoff.prototype.reset=function(){this.attempts=0},Backoff.prototype.setMin=function(min){this.ms=min},Backoff.prototype.setMax=function(max){this.max=max},Backoff.prototype.setJitter=function(jitter){this.jitter=jitter}},95818:module2=>{"use strict";function balanced(a,b2,str){a instanceof RegExp&&(a=maybeMatch(a,str)),b2 instanceof RegExp&&(b2=maybeMatch(b2,str));var r=range(a,b2,str);return r&&{start:r[0],end:r[1],pre:str.slice(0,r[0]),body:str.slice(r[0]+a.length,r[1]),post:str.slice(r[1]+b2.length)}}function maybeMatch(reg,str){var m=str.match(reg);return m?m[0]:null}function range(a,b2,str){var begs,beg,left,right,result,ai=str.indexOf(a),bi=str.indexOf(b2,ai+1),i2=ai;if(ai>=0&&bi>0){if(a===b2)return[ai,bi];for(begs=[],left=str.length;i2>=0&&!result;)i2==ai?(begs.push(i2),ai=str.indexOf(a,i2+1)):1==begs.length?result=[begs.pop(),bi]:((beg=begs.pop())=0?ai:bi;begs.length&&(result=[left,right])}return result}module2.exports=balanced,__name(balanced,"balanced"),__name(maybeMatch,"maybeMatch"),balanced.range=range,__name(range,"range")},88665:(module2,exports2,__webpack_require__2)=>{var crypto2=__webpack_require__2(6113),Base64Id=__name(function(){},"Base64Id");Base64Id.prototype.getRandomBytes=function(bytes){var self2=this;if((bytes=bytes||12)>4096)return crypto2.randomBytes(bytes);var bytesInBuffer=parseInt(4096/bytes),threshold=parseInt(.85*bytesInBuffer);if(!threshold||(null==this.bytesBufferIndex&&(this.bytesBufferIndex=-1),this.bytesBufferIndex==bytesInBuffer&&(this.bytesBuffer=null,this.bytesBufferIndex=-1),(-1==this.bytesBufferIndex||this.bytesBufferIndex>threshold)&&(this.isGeneratingBytes||(this.isGeneratingBytes=!0,crypto2.randomBytes(4096,function(err,bytes2){self2.bytesBuffer=bytes2,self2.bytesBufferIndex=0,self2.isGeneratingBytes=!1})),-1==this.bytesBufferIndex)))return crypto2.randomBytes(bytes);var result=this.bytesBuffer.slice(bytes*this.bytesBufferIndex,bytes*(this.bytesBufferIndex+1));return this.bytesBufferIndex++,result},Base64Id.prototype.generateId=function(){var rand=Buffer.alloc(15);return rand.writeInt32BE?(this.sequenceNumber=this.sequenceNumber+1|0,rand.writeInt32BE(this.sequenceNumber,11),crypto2.randomBytes?this.getRandomBytes(12).copy(rand):[0,4,8].forEach(function(i2){rand.writeInt32BE(Math.random()*Math.pow(2,32)|0,i2)}),rand.toString("base64").replace(/\//g,"_").replace(/\+/g,"-")):Math.abs(Math.random()*Math.random()*Date.now()|0).toString()+Math.abs(Math.random()*Math.random()*Date.now()|0).toString()},module2.exports=new Base64Id},80931:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var Buffer2=__webpack_require__2(73502).Buffer;module2.exports=auth,module2.exports.parse=parse;var CREDENTIALS_REGEXP=/^ *(?:[Bb][Aa][Ss][Ii][Cc]) +([A-Za-z0-9._~+/-]+=*) *$/,USER_PASS_REGEXP=/^([^:]*):(.*)$/;function auth(req){if(!req)throw new TypeError("argument req is required");if("object"!=typeof req)throw new TypeError("argument req is required to be an object");return parse(getAuthorization(req))}function decodeBase64(str){return Buffer2.from(str,"base64").toString()}function getAuthorization(req){if(!req.headers||"object"!=typeof req.headers)throw new TypeError("argument req is required to have headers property");return req.headers.authorization}function parse(string){if("string"==typeof string){var match=CREDENTIALS_REGEXP.exec(string);if(match){var userPass=USER_PASS_REGEXP.exec(decodeBase64(match[1]));if(userPass)return new Credentials(userPass[1],userPass[2])}}}function Credentials(name,pass){this.name=name,this.pass=pass}__name(auth,"auth"),__name(decodeBase64,"decodeBase64"),__name(getAuthorization,"getAuthorization"),__name(parse,"parse"),__name(Credentials,"Credentials")},78912:module2=>{function getIntFromBuffer(buffer,start,end){let sum=0,sign=1;for(let i2=start;i2=48)sum=10*sum+(num-48);else if(i2!==start||43!==num){if(i2===start&&45===num){sign=-1;continue}if(46===num)break;throw new Error("not a number: buffer["+i2+"] = "+num)}}return sum*sign}function decode(data,start,end,encoding){return null==data||0===data.length?null:("number"!=typeof start&&null==encoding&&(encoding=start,start=void 0),"number"!=typeof end&&null==encoding&&(encoding=end,end=void 0),decode.position=0,decode.encoding=encoding||null,decode.data=Buffer.isBuffer(data)?data.slice(start,end):Buffer.from(data),decode.bytes=decode.data.length,decode.next())}__name(getIntFromBuffer,"getIntFromBuffer"),__name(decode,"decode"),decode.bytes=0,decode.position=0,decode.data=null,decode.encoding=null,decode.next=function(){switch(decode.data[decode.position]){case 100:return decode.dictionary();case 108:return decode.list();case 105:return decode.integer();default:return decode.buffer()}},decode.find=function(chr){let i2=decode.position;const c=decode.data.length,d=decode.data;for(;i2{const{getType}=__webpack_require__2(39843);function encode(data,buffer,offset){const buffers=[];let result=null;return encode._encode(buffers,data),result=Buffer.concat(buffers),encode.bytes=result.length,Buffer.isBuffer(buffer)?(result.copy(buffer,offset),buffer):result}__name(encode,"encode"),encode.bytes=-1,encode._floatConversionDetected=!1,encode._encode=function(buffers,data){if(null!=data)switch(getType(data)){case"buffer":encode.buffer(buffers,data);break;case"object":encode.dict(buffers,data);break;case"map":encode.dictMap(buffers,data);break;case"array":encode.list(buffers,data);break;case"set":encode.listSet(buffers,data);break;case"string":encode.string(buffers,data);break;case"number":case"boolean":encode.number(buffers,data);break;case"arraybufferview":encode.buffer(buffers,Buffer.from(data.buffer,data.byteOffset,data.byteLength));break;case"arraybuffer":encode.buffer(buffers,Buffer.from(data))}};const buffE=Buffer.from("e"),buffD=Buffer.from("d"),buffL=Buffer.from("l");encode.buffer=function(buffers,data){buffers.push(Buffer.from(data.length+":"),data)},encode.string=function(buffers,data){buffers.push(Buffer.from(Buffer.byteLength(data)+":"+data))},encode.number=function(buffers,data){const val=2147483648*(data/2147483648<<0)+(data%2147483648<<0);buffers.push(Buffer.from("i"+val+"e")),val!==data&&!encode._floatConversionDetected&&(encode._floatConversionDetected=!0,console.warn('WARNING: Possible data corruption detected with value "'+data+'":','Bencoding only defines support for integers, value was converted to "'+val+'"'),console.trace())},encode.dict=function(buffers,data){buffers.push(buffD);let k,j=0;const keys=Object.keys(data).sort(),kl=keys.length;for(;j{const{digitCount,getType}=__webpack_require__2(39843);function listLength(list){let length=2;for(const value of list)length+=encodingLength(value);return length}function mapLength(map){let length=2;for(const[key,value]of map){const keyLength=Buffer.byteLength(key);length+=digitCount(keyLength)+1+keyLength,length+=encodingLength(value)}return length}function objectLength(value){let length=2;const keys=Object.keys(value);for(let i2=0;i2{const bencode=module2.exports;bencode.encode=__webpack_require__2(89579),bencode.decode=__webpack_require__2(78912),bencode.byteLength=bencode.encodingLength=__webpack_require__2(7584)},39843:module2=>{const util=module2.exports;util.digitCount=__name(function(value){const sign=value<0?1:0;return value=Math.abs(Number(value||1)),Math.floor(Math.log10(value))+1+sign},"digitCount"),util.getType=__name(function(value){return Buffer.isBuffer(value)?"buffer":ArrayBuffer.isView(value)?"arraybufferview":Array.isArray(value)?"array":value instanceof Number?"number":value instanceof Boolean?"boolean":value instanceof Set?"set":value instanceof Map?"map":value instanceof String?"string":value instanceof ArrayBuffer?"arraybuffer":typeof value},"getType")},45732:module2=>{function composeRange(range){return range.reduce((acc,cur,idx,arr)=>((0===idx||cur!==arr[idx-1]+1)&&acc.push([]),acc[acc.length-1].push(cur),acc),[]).map(cur=>cur.length>1?`${cur[0]}-${cur[cur.length-1]}`:`${cur[0]}`)}function parseRange(range){const generateRange=__name((start,end=start)=>Array.from({length:end-start+1},(cur,idx)=>idx+start),"generateRange");return range.reduce((acc,cur,idx,arr)=>{const r=cur.split("-").map(cur2=>parseInt(cur2));return acc.concat(generateRange(...r))},[])}module2.exports=parseRange,module2.exports.parse=parseRange,module2.exports.compose=composeRange,__name(composeRange,"composeRange"),__name(parseRange,"parseRange")},77318:(module2,__unused_webpack_exports2,__webpack_require__2)=>{const utils=__webpack_require__2(63069);module2.exports=peerId=>{let buffer;if(Buffer.isBuffer(peerId))buffer=peerId;else{if("string"!=typeof peerId)throw new Error(`Invalid peerId must be Buffer or hex string: ${peerId}`);buffer=Buffer.from(peerId,"utf8"),20!==buffer.length&&(buffer=Buffer.from(peerId,"hex"))}if(20!==buffer.length)throw new Error(`Invalid peerId length (hex buffer must be 20 bytes): ${peerId}`);peerId=buffer.toString("utf8");let client=null;if(utils.isPossibleSpoofClient(peerId))return(client=utils.decodeBitSpiritClient(peerId,buffer))||(client=utils.decodeBitCometClient(peerId,buffer))?client:{client:"BitSpirit?"};if(utils.isAzStyle(peerId)&&(client=getAzStyleClientName(peerId))){const version=getAzStyleClientVersion(client,peerId);return client.startsWith("ZipTorrent")&&peerId.startsWith("bLAde",8)?{client:"Unknown [Fake: ZipTorrent]",version}:"\xb5Torrent"===client&&"6.0 Beta"===version?{client:"Mainline",version:"6.0 Beta"}:client.startsWith("libTorrent (Rakshasa)")?{client:`${client} / rTorrent*`,version}:{client,version}}if(utils.isShadowStyle(peerId)&&(client=getShadowStyleClientName(peerId)))return{client};if(utils.isMainlineStyle(peerId)&&(client=getMainlineStyleClientName(peerId)))return{client};if((client=utils.decodeBitSpiritClient(peerId,buffer))||(client=utils.decodeBitCometClient(peerId,buffer)))return client;const data=getSimpleClient(peerId);return data?(client=data.client,{client,version:data.version}):(client=utils.identifyAwkwardClient(peerId,buffer))?client:{client:"unknown"}};const azStyleClients={},azStyleClientVersions={},shadowStyleClients={},shadowStyleClientVersions={},mainlineStyleClients={},customStyleClients=[],VER_AZ_THREE_DIGITS=__name(v=>`${v[0]}.${v[1]}.${v[2]}`,"VER_AZ_THREE_DIGITS"),VER_AZ_DELUGE=__name(v=>isNaN(v[2])?`${v[0]}.${v[1]}.1${"ABCDE".indexOf(v[2])}`:`${v[0]}.${v[1]}.${v[2]}`,"VER_AZ_DELUGE"),VER_AZ_THREE_DIGITS_PLUS_MNEMONIC=__name(v=>{let mnemonic=v[3];return mnemonic="B"===mnemonic?"Beta":"A"===mnemonic?"Alpha":"",`${v[0]}.${v[1]}.${v[2]} ${mnemonic}`},"VER_AZ_THREE_DIGITS_PLUS_MNEMONIC"),VER_AZ_FOUR_DIGITS=__name(v=>`${v[0]}.${v[1]}.${v[2]}.${v[3]}`,"VER_AZ_FOUR_DIGITS"),VER_AZ_TWO_MAJ_TWO_MIN=__name(v=>`${v[0]+v[1]}.${v[2]}${v[3]}`,"VER_AZ_TWO_MAJ_TWO_MIN"),VER_AZ_SKIP_FIRST_ONE_MAJ_TWO_MIN=__name(v=>`${v[1]}.${v[2]}${v[3]}`,"VER_AZ_SKIP_FIRST_ONE_MAJ_TWO_MIN"),VER_AZ_TRANSMISSION_STYLE=__name(v=>"0"===v[0]&&"0"===v[1]&&"0"===v[2]?`0.${v[3]}`:"0"===v[0]&&"0"===v[1]?`0.${v[2]}${v[3]}`:`${v[0]}.${v[1]}${v[2]}${"Z"===v[3]||"X"===v[3]?"+":""}`,"VER_AZ_TRANSMISSION_STYLE"),VER_AZ_WEBTORRENT_STYLE=__name(v=>{let version="";return"0"===v[0]?version+=`${v[1]}.`:version+=`${v[0]}${v[1]}.`,"0"===v[2]?version+=v[3]:version+=`${v[2]}${v[3]}`,version},"VER_AZ_WEBTORRENT_STYLE");function addAzStyle(id,client,version=VER_AZ_FOUR_DIGITS){azStyleClients[id]=client,azStyleClientVersions[client]=version}function addShadowStyle(id,client,version=VER_AZ_THREE_DIGITS){shadowStyleClients[id]=client,shadowStyleClientVersions[client]=version}function addMainlineStyle(id,client){mainlineStyleClients[id]=client}function addSimpleClient(client,version,id,position){("number"==typeof id||void 0===id)&&(position=id,id=version,version=void 0),customStyleClients.push({id,client,version,position:position||0})}function getAzStyleClientName(peerId){return azStyleClients[peerId.substring(1,3)]}function getShadowStyleClientName(peerId){return shadowStyleClients[peerId.substring(0,1)]}function getMainlineStyleClientName(peerId){return mainlineStyleClients[peerId.substring(0,1)]}function getSimpleClient(peerId){for(let i2=0;i2{function isDigit(s){const code2=s.charCodeAt(0);return code2>="0".charCodeAt(0)&&code2<="9".charCodeAt(0)}function isLetter(s){const code2=s.toLowerCase().charCodeAt(0);return code2>="a".charCodeAt(0)&&code2<="z".charCodeAt(0)}function isAlphaNumeric(s){return isDigit(s)||isLetter(s)||"."===s}function decodeNumericValueOfByte(b2,minDigits=0){let result=""+(255&b2);for(;result.length"-"===peerId.charAt(0)&&!("-"!==peerId.charAt(7)&&!["FG","LH","NE","KT","SP"].includes(peerId.substring(1,3))),isShadowStyle(peerId){if("-"!==peerId.charAt(5)||!isLetter(peerId.charAt(0))||!isDigit(peerId.charAt(1))&&"-"!==peerId.charAt(1))return!1;let lastVersionNumberIndex=4;for(;lastVersionNumberIndex>0&&"-"===peerId.charAt(lastVersionNumberIndex);lastVersionNumberIndex--);for(let i2=1;i2<=lastVersionNumberIndex;i2++){const c=peerId.charAt(i2);if("-"===c||null===isAlphaNumeric(c))return!1}return!0},isMainlineStyle:peerId=>"-"===peerId.charAt(2)&&"-"===peerId.charAt(7)&&("-"===peerId.charAt(4)||"-"===peerId.charAt(5)),isPossibleSpoofClient:peerId=>peerId.endsWith("UDP0")||peerId.endsWith("HTTPBT"),decodeNumericValueOfByte,getAzStyleVersionNumber:(peerId,version)=>"function"==typeof version?version(peerId):null,getShadowStyleVersionNumber:peerId=>null,decodeBitSpiritClient(peerId,buffer){if("BS"!==peerId.substring(2,4))return null;let version=`${buffer[1]}`;return"0"===version&&(version=1),{client:"BitSpirit",version}},decodeBitCometClient(peerId,buffer){let modName="";if(peerId.startsWith("exbc"))modName="";else if(peerId.startsWith("FUTB"))modName="(Solidox Mod)";else{if(!peerId.startsWith("xUTB"))return null;modName="(Mod 2)"}const isBitlord="LORD"===peerId.substring(6,10),clientName=isBitlord?"BitLord":"BitComet",majVersion=decodeNumericValueOfByte(buffer[4]),minVersionLength=isBitlord&&"0"!==majVersion?1:2;return{client:clientName+(modName?` ${modName}`:""),version:`${majVersion}.${decodeNumericValueOfByte(buffer[5],minVersionLength)}`}},identifyAwkwardClient(peerId,buffer){let i2,firstNonZeroIndex=20;for(i2=0;i2<20;++i2)if(buffer[i2]>0){firstNonZeroIndex=i2;break}if(0===firstNonZeroIndex){let isShareaza=!0;for(i2=0;i2<16;++i2)if(0===buffer[i2]){isShareaza=!1;break}if(isShareaza){for(i2=16;i2<20;++i2)if(buffer[i2]!==(buffer[i2%16]^buffer[15-i2%16])){isShareaza=!1;break}if(isShareaza)return{client:"Shareaza"}}}return 9===firstNonZeroIndex&&3===buffer[9]&&3===buffer[10]&&3===buffer[11]?{client:"I2PSnark"}:12===firstNonZeroIndex&&97===buffer[12]&&97===buffer[13]?{client:"Experimental",version:"3.2.1b2"}:12===firstNonZeroIndex&&0===buffer[12]&&0===buffer[13]?{client:"Experimental",version:"3.1"}:12===firstNonZeroIndex?{client:"Mainline"}:null}},__name(isDigit,"isDigit"),__name(isLetter,"isLetter"),__name(isAlphaNumeric,"isAlphaNumeric"),__name(decodeNumericValueOfByte,"decodeNumericValueOfByte")},76923:(module2,__unused_webpack_exports2,__webpack_require__2)=>{const debug=__webpack_require__2(58574)("bittorrent-tracker:client"),EventEmitter=__webpack_require__2(82361),once=__webpack_require__2(46389),parallel=__webpack_require__2(77396),Peer=__webpack_require__2(3647),queueMicrotask2=__webpack_require__2(66643),common=__webpack_require__2(55340),HTTPTracker=__webpack_require__2(7567),UDPTracker=__webpack_require__2(27831),WebSocketTracker=__webpack_require__2(79282);class Client extends EventEmitter{constructor(opts={}){if(super(),!opts.peerId)throw new Error("Option `peerId` is required");if(!opts.infoHash)throw new Error("Option `infoHash` is required");if(!opts.announce)throw new Error("Option `announce` is required");if(!process.browser&&!opts.port)throw new Error("Option `port` is required");this.peerId="string"==typeof opts.peerId?opts.peerId:opts.peerId.toString("hex"),this._peerIdBuffer=Buffer.from(this.peerId,"hex"),this._peerIdBinary=this._peerIdBuffer.toString("binary"),this.infoHash="string"==typeof opts.infoHash?opts.infoHash.toLowerCase():opts.infoHash.toString("hex"),this._infoHashBuffer=Buffer.from(this.infoHash,"hex"),this._infoHashBinary=this._infoHashBuffer.toString("binary"),debug("new client %s",this.infoHash),this.destroyed=!1,this._port=opts.port,this._getAnnounceOpts=opts.getAnnounceOpts,this._rtcConfig=opts.rtcConfig,this._userAgent=opts.userAgent,this._proxyOpts=opts.proxyOpts,this._wrtc="function"==typeof opts.wrtc?opts.wrtc():opts.wrtc;let announce="string"==typeof opts.announce?[opts.announce]:null==opts.announce?[]:opts.announce;announce=announce.map(announceUrl=>("/"===(announceUrl=announceUrl.toString())[announceUrl.length-1]&&(announceUrl=announceUrl.substring(0,announceUrl.length-1)),announceUrl)),announce=Array.from(new Set(announce));const webrtcSupport=!1!==this._wrtc&&(!!this._wrtc||Peer.WEBRTC_SUPPORT),nextTickWarn=__name(err=>{queueMicrotask2(()=>{this.emit("warning",err)})},"nextTickWarn");this._trackers=announce.map(announceUrl=>{let parsedUrl;try{parsedUrl=common.parseUrl(announceUrl)}catch{return nextTickWarn(new Error(`Invalid tracker URL: ${announceUrl}`)),null}const port=parsedUrl.port;if(port<0||port>65535)return nextTickWarn(new Error(`Invalid tracker port: ${announceUrl}`)),null;const protocol=parsedUrl.protocol;return"http:"!==protocol&&"https:"!==protocol||"function"!=typeof HTTPTracker?"udp:"===protocol&&"function"==typeof UDPTracker?new UDPTracker(this,announceUrl):"ws:"!==protocol&&"wss:"!==protocol||!webrtcSupport||"ws:"===protocol&&"undefined"!=typeof window&&"https:"===window.location.protocol?(nextTickWarn(new Error(`Unsupported tracker protocol: ${announceUrl}`)),null):new WebSocketTracker(this,announceUrl):new HTTPTracker(this,announceUrl)}).filter(Boolean)}start(opts){(opts=this._defaultAnnounceOpts(opts)).event="started",debug("send `start` %o",opts),this._announce(opts),this._trackers.forEach(tracker=>{tracker.setInterval()})}stop(opts){(opts=this._defaultAnnounceOpts(opts)).event="stopped",debug("send `stop` %o",opts),this._announce(opts)}complete(opts){opts||(opts={}),(opts=this._defaultAnnounceOpts(opts)).event="completed",debug("send `complete` %o",opts),this._announce(opts)}update(opts){(opts=this._defaultAnnounceOpts(opts)).event&&delete opts.event,debug("send `update` %o",opts),this._announce(opts)}_announce(opts){this._trackers.forEach(tracker=>{tracker.announce(opts)})}scrape(opts){debug("send `scrape`"),opts||(opts={}),this._trackers.forEach(tracker=>{tracker.scrape(opts)})}setInterval(intervalMs){debug("setInterval %d",intervalMs),this._trackers.forEach(tracker=>{tracker.setInterval(intervalMs)})}destroy(cb){if(this.destroyed)return;this.destroyed=!0,debug("destroy");const tasks=this._trackers.map(tracker=>cb2=>{tracker.destroy(cb2)});parallel(tasks,cb),this._trackers=[],this._getAnnounceOpts=null}_defaultAnnounceOpts(opts={}){return null==opts.numwant&&(opts.numwant=common.DEFAULT_ANNOUNCE_PEERS),null==opts.uploaded&&(opts.uploaded=0),null==opts.downloaded&&(opts.downloaded=0),this._getAnnounceOpts&&(opts=Object.assign({},opts,this._getAnnounceOpts())),opts}}__name(Client,"Client"),Client.scrape=(opts,cb)=>{if(cb=once(cb),!opts.infoHash)throw new Error("Option `infoHash` is required");if(!opts.announce)throw new Error("Option `announce` is required");const clientOpts=Object.assign({},opts,{infoHash:Array.isArray(opts.infoHash)?opts.infoHash[0]:opts.infoHash,peerId:Buffer.from("01234567890123456789"),port:6881}),client=new Client(clientOpts);client.once("error",cb),client.once("warning",cb);let len=Array.isArray(opts.infoHash)?opts.infoHash.length:1;const results={};return client.on("scrape",data=>{if(len-=1,results[data.infoHash]=data,0===len){client.destroy();const keys=Object.keys(results);1===keys.length?cb(null,results[keys[0]]):cb(null,results)}}),opts.infoHash=Array.isArray(opts.infoHash)?opts.infoHash.map(infoHash=>Buffer.from(infoHash,"hex")):Buffer.from(opts.infoHash,"hex"),client.scrape({infoHash:opts.infoHash}),client},module2.exports=Client},2739:(module2,__unused_webpack_exports2,__webpack_require__2)=>{const Client=__webpack_require__2(76923),Server=__webpack_require__2(74676);module2.exports=Client,module2.exports.Client=Client,module2.exports.Server=Server},7567:(module2,__unused_webpack_exports2,__webpack_require__2)=>{const arrayRemove=__webpack_require__2(93542),bencode=__webpack_require__2(10760),clone=__webpack_require__2(57388),compact2string=__webpack_require__2(84257),debug=__webpack_require__2(58574)("bittorrent-tracker:http-tracker"),get=__webpack_require__2(44351),Socks=__webpack_require__2(82683),common=__webpack_require__2(55340),Tracker=__webpack_require__2(11765),HTTP_SCRAPE_SUPPORT=/\/(announce)[^/]*$/;class HTTPTracker extends Tracker{constructor(client,announceUrl){super(client,announceUrl),debug("new http tracker %s",announceUrl),this.scrapeUrl=null;const match=this.announceUrl.match(HTTP_SCRAPE_SUPPORT);if(match){const pre=this.announceUrl.slice(0,match.index),post=this.announceUrl.slice(match.index+9);this.scrapeUrl=`${pre}/scrape${post}`}this.cleanupFns=[],this.maybeDestroyCleanup=null}announce(opts){if(this.destroyed)return;const params=Object.assign({},opts,{compact:null==opts.compact?1:opts.compact,info_hash:this.client._infoHashBinary,peer_id:this.client._peerIdBinary,port:this.client._port});this._trackerId&&(params.trackerid=this._trackerId),this._request(this.announceUrl,params,(err,data)=>{if(err)return this.client.emit("warning",err);this._onAnnounceResponse(data)})}scrape(opts){if(this.destroyed)return;if(!this.scrapeUrl)return void this.client.emit("error",new Error(`scrape not supported ${this.announceUrl}`));const params={info_hash:Array.isArray(opts.infoHash)&&opts.infoHash.length>0?opts.infoHash.map(infoHash=>infoHash.toString("binary")):opts.infoHash&&opts.infoHash.toString("binary")||this.client._infoHashBinary};this._request(this.scrapeUrl,params,(err,data)=>{if(err)return this.client.emit("warning",err);this._onScrapeResponse(data)})}destroy(cb){const self2=this;if(this.destroyed)return cb(null);let timeout;if(this.destroyed=!0,clearInterval(this.interval),0===this.cleanupFns.length)return destroyCleanup();function destroyCleanup(){timeout&&(clearTimeout(timeout),timeout=null),self2.maybeDestroyCleanup=null,self2.cleanupFns.slice(0).forEach(cleanup=>{cleanup()}),self2.cleanupFns=[],cb(null)}timeout=setTimeout(destroyCleanup,common.DESTROY_TIMEOUT),this.maybeDestroyCleanup=()=>{0===this.cleanupFns.length&&destroyCleanup()},__name(destroyCleanup,"destroyCleanup")}_request(requestUrl,params,cb){const self2=this,parsedUrl=new URL(requestUrl+(-1===requestUrl.indexOf("?")?"?":"&")+common.querystringStringify(params));let agent;this.client._proxyOpts&&(agent="https:"===parsedUrl.protocol?this.client._proxyOpts.httpsAgent:this.client._proxyOpts.httpAgent,!agent&&this.client._proxyOpts.socksProxy&&(agent=new Socks.Agent(clone(this.client._proxyOpts.socksProxy),"https:"===parsedUrl.protocol))),this.cleanupFns.push(cleanup);let request=get.concat({url:parsedUrl.toString(),agent,timeout:common.REQUEST_TIMEOUT,headers:{"user-agent":this.client._userAgent||""}},onResponse);function cleanup(){request&&(arrayRemove(self2.cleanupFns,self2.cleanupFns.indexOf(cleanup)),request.abort(),request=null),self2.maybeDestroyCleanup&&self2.maybeDestroyCleanup()}function onResponse(err,res,data){if(cleanup(),self2.destroyed)return;if(err)return cb(err);if(200!==res.statusCode)return cb(new Error(`Non-200 response code ${res.statusCode} from ${self2.announceUrl}`));if(!data||0===data.length)return cb(new Error(`Invalid tracker response from${self2.announceUrl}`));try{data=bencode.decode(data)}catch(err2){return cb(new Error(`Error decoding tracker response: ${err2.message}`))}const failure=data["failure reason"];if(failure)return debug(`failure from ${requestUrl} (${failure})`),cb(new Error(failure));const warning=data["warning message"];warning&&(debug(`warning from ${requestUrl} (${warning})`),self2.client.emit("warning",new Error(warning))),debug(`response from ${requestUrl}`),cb(null,data)}__name(cleanup,"cleanup"),__name(onResponse,"onResponse")}_onAnnounceResponse(data){const interval=data.interval||data["min interval"];interval&&this.setInterval(1e3*interval);const trackerId=data["tracker id"];trackerId&&(this._trackerId=trackerId);const response=Object.assign({},data,{announce:this.announceUrl,infoHash:common.binaryToHex(data.info_hash)});let addrs;if(this.client.emit("update",response),Buffer.isBuffer(data.peers)){try{addrs=compact2string.multi(data.peers)}catch(err){return this.client.emit("warning",err)}addrs.forEach(addr=>{this.client.emit("peer",addr)})}else Array.isArray(data.peers)&&data.peers.forEach(peer=>{this.client.emit("peer",`${peer.ip}:${peer.port}`)});if(Buffer.isBuffer(data.peers6)){try{addrs=compact2string.multi6(data.peers6)}catch(err){return this.client.emit("warning",err)}addrs.forEach(addr=>{this.client.emit("peer",addr)})}else Array.isArray(data.peers6)&&data.peers6.forEach(peer=>{const ip=/^\[/.test(peer.ip)||!/:/.test(peer.ip)?peer.ip:`[${peer.ip}]`;this.client.emit("peer",`${ip}:${peer.port}`)})}_onScrapeResponse(data){data=data.files||data.host||{};const keys=Object.keys(data);0!==keys.length?keys.forEach(infoHash=>{const response=Object.assign(data[infoHash],{announce:this.announceUrl,infoHash:common.binaryToHex(infoHash)});this.client.emit("scrape",response)}):this.client.emit("warning",new Error("invalid scrape response"))}}__name(HTTPTracker,"HTTPTracker"),HTTPTracker.prototype.DEFAULT_ANNOUNCE_INTERVAL=18e5,module2.exports=HTTPTracker},11765:(module2,__unused_webpack_exports2,__webpack_require__2)=>{const EventEmitter=__webpack_require__2(82361);class Tracker extends EventEmitter{constructor(client,announceUrl){super(),this.client=client,this.announceUrl=announceUrl,this.interval=null,this.destroyed=!1}setInterval(intervalMs){null==intervalMs&&(intervalMs=this.DEFAULT_ANNOUNCE_INTERVAL),clearInterval(this.interval),intervalMs&&(this.interval=setInterval(()=>{this.announce(this.client._defaultAnnounceOpts())},intervalMs),this.interval.unref&&this.interval.unref())}}__name(Tracker,"Tracker"),module2.exports=Tracker},27831:(module2,__unused_webpack_exports2,__webpack_require__2)=>{const arrayRemove=__webpack_require__2(93542),BN=__webpack_require__2(98538),clone=__webpack_require__2(57388),compact2string=__webpack_require__2(84257),debug=__webpack_require__2(58574)("bittorrent-tracker:udp-tracker"),dgram=__webpack_require__2(71891),randombytes=__webpack_require__2(28560),Socks=__webpack_require__2(82683),common=__webpack_require__2(55340),Tracker=__webpack_require__2(11765);class UDPTracker extends Tracker{constructor(client,announceUrl){super(client,announceUrl),debug("new udp tracker %s",announceUrl),this.cleanupFns=[],this.maybeDestroyCleanup=null}announce(opts){this.destroyed||this._request(opts)}scrape(opts){this.destroyed||(opts._scrape=!0,this._request(opts))}destroy(cb){const self2=this;if(this.destroyed)return cb(null);let timeout;if(this.destroyed=!0,clearInterval(this.interval),0===this.cleanupFns.length)return destroyCleanup();function destroyCleanup(){timeout&&(clearTimeout(timeout),timeout=null),self2.maybeDestroyCleanup=null,self2.cleanupFns.slice(0).forEach(cleanup=>{cleanup()}),self2.cleanupFns=[],cb(null)}timeout=setTimeout(destroyCleanup,common.DESTROY_TIMEOUT),this.maybeDestroyCleanup=()=>{0===this.cleanupFns.length&&destroyCleanup()},__name(destroyCleanup,"destroyCleanup")}_request(opts){const self2=this;opts||(opts={});let{hostname,port}=common.parseUrl(this.announceUrl);""===port&&(port=80);let timeout,proxySocket,socket,relay,transactionId=genTransactionId();const proxyOpts=this.client._proxyOpts&&clone(this.client._proxyOpts.socksProxy);function onGotConnection(err,s,info){if(err)return onError(err);proxySocket=s,socket=dgram.createSocket("udp4"),relay=info,timeout=setTimeout(()=>{"stopped"===opts.event?cleanup():onError(new Error(`tracker request timed out (${opts.event})`)),timeout=null},common.REQUEST_TIMEOUT),timeout.unref&&timeout.unref(),send(Buffer.concat([common.CONNECTION_ID,common.toUInt32(common.ACTIONS.CONNECT),transactionId]),relay),socket.once("error",onError),socket.on("message",onSocketMessage)}function cleanup(){if(timeout&&(clearTimeout(timeout),timeout=null),socket){arrayRemove(self2.cleanupFns,self2.cleanupFns.indexOf(cleanup)),socket.removeListener("error",onError),socket.removeListener("message",onSocketMessage),socket.on("error",noop);try{socket.close()}catch{}if(socket=null,proxySocket){try{proxySocket.close()}catch{}proxySocket=null}}self2.maybeDestroyCleanup&&self2.maybeDestroyCleanup()}function onError(err){if(cleanup(),!self2.destroyed){try{err.message&&(err.message+=` (${self2.announceUrl})`)}catch{}self2.client.emit("warning",err)}}function onSocketMessage(msg){if(proxySocket&&(msg=msg.slice(10)),msg.length<8||msg.readUInt32BE(4)!==transactionId.readUInt32BE(0))return onError(new Error("tracker sent invalid transaction id"));const action=msg.readUInt32BE(0);switch(debug("UDP response %s, action %s",self2.announceUrl,action),action){case 0:if(msg.length<16)return onError(new Error("invalid udp handshake"));opts._scrape?scrape(msg.slice(8,16)):announce(msg.slice(8,16),opts);break;case 1:{if(cleanup(),self2.destroyed)return;if(msg.length<20)return onError(new Error("invalid announce message"));const interval=msg.readUInt32BE(8);let addrs;interval&&self2.setInterval(1e3*interval),self2.client.emit("update",{announce:self2.announceUrl,complete:msg.readUInt32BE(16),incomplete:msg.readUInt32BE(12)});try{addrs=compact2string.multi(msg.slice(20))}catch(err){return self2.client.emit("warning",err)}addrs.forEach(addr=>{self2.client.emit("peer",addr)});break}case 2:{if(cleanup(),self2.destroyed)return;if(msg.length<20||(msg.length-8)%12!=0)return onError(new Error("invalid scrape message"));const infoHashes=Array.isArray(opts.infoHash)&&opts.infoHash.length>0?opts.infoHash.map(infoHash=>infoHash.toString("hex")):[opts.infoHash&&opts.infoHash.toString("hex")||self2.client.infoHash];for(let i2=0,len=(msg.length-8)/12;i20?Buffer.concat(opts.infoHash):opts.infoHash||self2.client._infoHashBuffer;send(Buffer.concat([connectionId,common.toUInt32(common.ACTIONS.SCRAPE),transactionId,infoHash]),relay)}proxyOpts?(proxyOpts.proxy||(proxyOpts.proxy={}),proxyOpts.proxy.command="associate",proxyOpts.target||(proxyOpts.target={host:"0.0.0.0",port:0}),5===proxyOpts.proxy.type?Socks.createConnection(proxyOpts,onGotConnection):(debug("Ignoring Socks proxy for UDP request because type 5 is required"),onGotConnection(null))):onGotConnection(null),this.cleanupFns.push(cleanup),__name(onGotConnection,"onGotConnection"),__name(cleanup,"cleanup"),__name(onError,"onError"),__name(onSocketMessage,"onSocketMessage"),__name(send,"send"),__name(announce,"announce"),__name(scrape,"scrape")}}function genTransactionId(){return randombytes(4)}function toUInt16(n){const buf=Buffer.allocUnsafe(2);return buf.writeUInt16BE(n,0),buf}__name(UDPTracker,"UDPTracker"),UDPTracker.prototype.DEFAULT_ANNOUNCE_INTERVAL=18e5,__name(genTransactionId,"genTransactionId"),__name(toUInt16,"toUInt16");function toUInt64(n){if(n>4294967295||"string"==typeof n){const bytes=new BN(n).toArray();for(;bytes.length<8;)bytes.unshift(0);return Buffer.from(bytes)}return Buffer.concat([common.toUInt32(0),common.toUInt32(n)])}function noop(){}__name(toUInt64,"toUInt64"),__name(noop,"noop"),module2.exports=UDPTracker},79282:(module2,__unused_webpack_exports2,__webpack_require__2)=>{const clone=__webpack_require__2(57388),debug=__webpack_require__2(58574)("bittorrent-tracker:websocket-tracker"),Peer=__webpack_require__2(3647),randombytes=__webpack_require__2(28560),Socket=__webpack_require__2(21808),Socks=__webpack_require__2(82683),common=__webpack_require__2(55340),Tracker=__webpack_require__2(11765),socketPool={};class WebSocketTracker extends Tracker{constructor(client,announceUrl){super(client,announceUrl),debug("new websocket tracker %s",announceUrl),this.peers={},this.socket=null,this.reconnecting=!1,this.retries=0,this.reconnectTimer=null,this.expectingResponse=!1,this._openSocket()}announce(opts){if(this.destroyed||this.reconnecting)return;if(!this.socket.connected)return void this.socket.once("connect",()=>{this.announce(opts)});const params=Object.assign({},opts,{action:"announce",info_hash:this.client._infoHashBinary,peer_id:this.client._peerIdBinary});if(this._trackerId&&(params.trackerid=this._trackerId),"stopped"===opts.event||"completed"===opts.event)this._send(params);else{const numwant=Math.min(opts.numwant,5);this._generateOffers(numwant,offers=>{params.numwant=numwant,params.offers=offers,this._send(params)})}}scrape(opts){if(this.destroyed||this.reconnecting)return;if(!this.socket.connected)return void this.socket.once("connect",()=>{this.scrape(opts)});const params={action:"scrape",info_hash:Array.isArray(opts.infoHash)&&opts.infoHash.length>0?opts.infoHash.map(infoHash=>infoHash.toString("binary")):opts.infoHash&&opts.infoHash.toString("binary")||this.client._infoHashBinary};this._send(params)}destroy(cb=noop){if(this.destroyed)return cb(null);this.destroyed=!0,clearInterval(this.interval),clearTimeout(this.reconnectTimer);for(const peerId in this.peers){const peer=this.peers[peerId];clearTimeout(peer.trackerTimeout),peer.destroy()}if(this.peers=null,this.socket&&(this.socket.removeListener("connect",this._onSocketConnectBound),this.socket.removeListener("data",this._onSocketDataBound),this.socket.removeListener("close",this._onSocketCloseBound),this.socket.removeListener("error",this._onSocketErrorBound),this.socket=null),this._onSocketConnectBound=null,this._onSocketErrorBound=null,this._onSocketDataBound=null,this._onSocketCloseBound=null,socketPool[this.announceUrl]&&(socketPool[this.announceUrl].consumers-=1),socketPool[this.announceUrl].consumers>0)return cb();let timeout,socket=socketPool[this.announceUrl];if(delete socketPool[this.announceUrl],socket.on("error",noop),socket.once("close",cb),!this.expectingResponse)return destroyCleanup();function destroyCleanup(){timeout&&(clearTimeout(timeout),timeout=null),socket.removeListener("data",destroyCleanup),socket.destroy(),socket=null}timeout=setTimeout(destroyCleanup,common.DESTROY_TIMEOUT),socket.once("data",destroyCleanup),__name(destroyCleanup,"destroyCleanup")}_openSocket(){if(this.destroyed=!1,this.peers||(this.peers={}),this._onSocketConnectBound=()=>{this._onSocketConnect()},this._onSocketErrorBound=err=>{this._onSocketError(err)},this._onSocketDataBound=data=>{this._onSocketData(data)},this._onSocketCloseBound=()=>{this._onSocketClose()},this.socket=socketPool[this.announceUrl],this.socket)socketPool[this.announceUrl].consumers+=1,this.socket.connected&&this._onSocketConnectBound();else{const parsedUrl=new URL(this.announceUrl);let agent;this.client._proxyOpts&&(agent="wss:"===parsedUrl.protocol?this.client._proxyOpts.httpsAgent:this.client._proxyOpts.httpAgent,!agent&&this.client._proxyOpts.socksProxy&&(agent=new Socks.Agent(clone(this.client._proxyOpts.socksProxy),"wss:"===parsedUrl.protocol))),this.socket=socketPool[this.announceUrl]=new Socket({url:this.announceUrl,agent}),this.socket.consumers=1,this.socket.once("connect",this._onSocketConnectBound)}this.socket.on("data",this._onSocketDataBound),this.socket.once("close",this._onSocketCloseBound),this.socket.once("error",this._onSocketErrorBound)}_onSocketConnect(){this.destroyed||this.reconnecting&&(this.reconnecting=!1,this.retries=0,this.announce(this.client._defaultAnnounceOpts()))}_onSocketData(data){if(!this.destroyed){this.expectingResponse=!1;try{data=JSON.parse(data)}catch{return void this.client.emit("warning",new Error("Invalid tracker response"))}"announce"===data.action?this._onAnnounceResponse(data):"scrape"===data.action?this._onScrapeResponse(data):this._onSocketError(new Error(`invalid action in WS response: ${data.action}`))}}_onAnnounceResponse(data){if(data.info_hash!==this.client._infoHashBinary)return void debug("ignoring websocket data from %s for %s (looking for %s: reused socket)",this.announceUrl,common.binaryToHex(data.info_hash),this.client.infoHash);if(data.peer_id&&data.peer_id===this.client._peerIdBinary)return;debug("received %s from %s for %s",JSON.stringify(data),this.announceUrl,this.client.infoHash);const failure=data["failure reason"];if(failure)return this.client.emit("warning",new Error(failure));const warning=data["warning message"];warning&&this.client.emit("warning",new Error(warning));const interval=data.interval||data["min interval"];interval&&this.setInterval(1e3*interval);const trackerId=data["tracker id"];if(trackerId&&(this._trackerId=trackerId),null!=data.complete){const response=Object.assign({},data,{announce:this.announceUrl,infoHash:common.binaryToHex(data.info_hash)});this.client.emit("update",response)}let peer;if(data.offer&&data.peer_id&&(debug("creating peer (from remote offer)"),peer=this._createPeer(),peer.id=common.binaryToHex(data.peer_id),peer.once("signal",answer=>{const params={action:"announce",info_hash:this.client._infoHashBinary,peer_id:this.client._peerIdBinary,to_peer_id:data.peer_id,answer,offer_id:data.offer_id};this._trackerId&&(params.trackerid=this._trackerId),this._send(params)}),this.client.emit("peer",peer),peer.signal(data.offer)),data.answer&&data.peer_id){const offerId=common.binaryToHex(data.offer_id);peer=this.peers[offerId],peer?(peer.id=common.binaryToHex(data.peer_id),this.client.emit("peer",peer),peer.signal(data.answer),clearTimeout(peer.trackerTimeout),peer.trackerTimeout=null,delete this.peers[offerId],peer.destroy()):debug(`got unexpected answer: ${JSON.stringify(data.answer)}`)}}_onScrapeResponse(data){data=data.files||{};const keys=Object.keys(data);0!==keys.length?keys.forEach(infoHash=>{const response=Object.assign(data[infoHash],{announce:this.announceUrl,infoHash:common.binaryToHex(infoHash)});this.client.emit("scrape",response)}):this.client.emit("warning",new Error("invalid scrape response"))}_onSocketClose(){this.destroyed||(this.destroy(),this._startReconnectTimer())}_onSocketError(err){this.destroyed||(this.destroy(),this.client.emit("warning",err),this._startReconnectTimer())}_startReconnectTimer(){const ms=Math.floor(3e5*Math.random())+Math.min(1e4*Math.pow(2,this.retries),36e5);this.reconnecting=!0,clearTimeout(this.reconnectTimer),this.reconnectTimer=setTimeout(()=>{this.retries++,this._openSocket()},ms),this.reconnectTimer.unref&&this.reconnectTimer.unref(),debug("reconnecting socket in %s ms",ms)}_send(params){if(this.destroyed)return;this.expectingResponse=!0;const message2=JSON.stringify(params);debug("send %s",message2),this.socket.send(message2)}_generateOffers(numwant,cb){const self2=this,offers=[];debug("generating %s offers",numwant);for(let i2=0;i2{offers.push({offer,offer_id:common.hexToBinary(offerId)}),checkDone()}),peer.trackerTimeout=setTimeout(()=>{debug("tracker timeout: destroying peer"),peer.trackerTimeout=null,delete self2.peers[offerId],peer.destroy()},5e4),peer.trackerTimeout.unref&&peer.trackerTimeout.unref()}function checkDone(){offers.length===numwant&&(debug("generated %s offers",numwant),cb(offers))}checkDone(),__name(generateOffer,"generateOffer"),__name(checkDone,"checkDone")}_createPeer(opts){const self2=this;opts=Object.assign({trickle:!1,config:self2.client._rtcConfig,wrtc:self2.client._wrtc},opts);const peer=new Peer(opts);return peer.once("error",onError),peer.once("connect",onConnect),peer;function onError(err){self2.client.emit("warning",new Error(`Connection error: ${err.message}`)),peer.destroy()}function onConnect(){peer.removeListener("error",onError),peer.removeListener("connect",onConnect)}}}function noop(){}__name(WebSocketTracker,"WebSocketTracker"),WebSocketTracker.prototype.DEFAULT_ANNOUNCE_INTERVAL=3e4,WebSocketTracker._socketPool=socketPool,__name(noop,"noop"),module2.exports=WebSocketTracker},3160:(__unused_webpack_module,exports2,__webpack_require__2)=>{const querystring=__webpack_require__2(63477);function toUInt32(n){const buf=Buffer.allocUnsafe(4);return buf.writeUInt32BE(n,0),buf}exports2.IPV4_RE=/^[\d.]+$/,exports2.IPV6_RE=/^[\da-fA-F:]+$/,exports2.REMOVE_IPV4_MAPPED_IPV6_RE=/^::ffff:/,exports2.CONNECTION_ID=Buffer.concat([toUInt32(1047),toUInt32(655366528)]),exports2.ACTIONS={CONNECT:0,ANNOUNCE:1,SCRAPE:2,ERROR:3},exports2.EVENTS={update:0,completed:1,started:2,stopped:3},exports2.EVENT_IDS={0:"update",1:"completed",2:"started",3:"stopped"},exports2.EVENT_NAMES={update:"update",completed:"complete",started:"start",stopped:"stop"},exports2.REQUEST_TIMEOUT=15e3,exports2.DESTROY_TIMEOUT=1e3,__name(toUInt32,"toUInt32"),exports2.toUInt32=toUInt32,exports2.querystringParse=q=>querystring.parse(q,null,null,{decodeURIComponent:unescape}),exports2.querystringStringify=obj=>{let ret=querystring.stringify(obj,null,null,{encodeURIComponent:escape});return ret=ret.replace(/[@*/+]/g,char=>`%${char.charCodeAt(0).toString(16).toUpperCase()}`),ret}},55340:(__unused_webpack_module,exports2,__webpack_require__2)=>{exports2.DEFAULT_ANNOUNCE_PEERS=50,exports2.MAX_ANNOUNCE_PEERS=82,exports2.binaryToHex=str=>("string"!=typeof str&&(str=String(str)),Buffer.from(str,"binary").toString("hex")),exports2.hexToBinary=str=>("string"!=typeof str&&(str=String(str)),Buffer.from(str,"hex").toString("binary")),exports2.parseUrl=str=>{const url=new URL(str.replace(/^udp:/,"http:"));return str.match(/^udp:/)&&Object.defineProperties(url,{href:{value:url.href.replace(/^http/,"udp")},protocol:{value:url.protocol.replace(/^http/,"udp")},origin:{value:url.origin.replace(/^http/,"udp")}}),url};const config=__webpack_require__2(3160);Object.assign(exports2,config)},18509:(module2,__unused_webpack_exports2,__webpack_require__2)=>{module2.exports=parseHttpRequest;const common=__webpack_require__2(55340);function parseHttpRequest(req,opts){opts||(opts={});const s=req.url.split("?"),params=common.querystringParse(s[1]);if(params.type="http","announce"===opts.action||"/announce"===s[0]){if(params.action=common.ACTIONS.ANNOUNCE,"string"!=typeof params.info_hash||20!==params.info_hash.length)throw new Error("invalid info_hash");if(params.info_hash=common.binaryToHex(params.info_hash),"string"!=typeof params.peer_id||20!==params.peer_id.length)throw new Error("invalid peer_id");if(params.peer_id=common.binaryToHex(params.peer_id),params.port=Number(params.port),!params.port)throw new Error("invalid port");params.left=Number(params.left),Number.isNaN(params.left)&&(params.left=1/0),params.compact=Number(params.compact)||0,params.numwant=Math.min(Number(params.numwant)||common.DEFAULT_ANNOUNCE_PEERS,common.MAX_ANNOUNCE_PEERS),params.ip=opts.trustProxy?req.headers["x-forwarded-for"]||req.connection.remoteAddress:req.connection.remoteAddress.replace(common.REMOVE_IPV4_MAPPED_IPV6_RE,""),params.addr=`${common.IPV6_RE.test(params.ip)?`[${params.ip}]`:params.ip}:${params.port}`,params.headers=req.headers}else{if("scrape"!==opts.action&&"/scrape"!==s[0])throw new Error(`invalid action in HTTP request: ${req.url}`);params.action=common.ACTIONS.SCRAPE,"string"==typeof params.info_hash&&(params.info_hash=[params.info_hash]),Array.isArray(params.info_hash)&&(params.info_hash=params.info_hash.map(binaryInfoHash=>{if("string"!=typeof binaryInfoHash||20!==binaryInfoHash.length)throw new Error("invalid info_hash");return common.binaryToHex(binaryInfoHash)}))}return params}__name(parseHttpRequest,"parseHttpRequest")},67288:(module2,__unused_webpack_exports2,__webpack_require__2)=>{module2.exports=parseUdpRequest;const ipLib=__webpack_require__2(51593),common=__webpack_require__2(55340);function parseUdpRequest(msg,rinfo){if(msg.length<16)throw new Error("received packet is too short");const params={connectionId:msg.slice(0,8),action:msg.readUInt32BE(8),transactionId:msg.readUInt32BE(12),type:"udp"};if(!common.CONNECTION_ID.equals(params.connectionId))throw new Error("received packet with invalid connection id");if(params.action!==common.ACTIONS.CONNECT)if(params.action===common.ACTIONS.ANNOUNCE){if(params.info_hash=msg.slice(16,36).toString("hex"),params.peer_id=msg.slice(36,56).toString("hex"),params.downloaded=fromUInt64(msg.slice(56,64)),params.left=fromUInt64(msg.slice(64,72)),params.uploaded=fromUInt64(msg.slice(72,80)),params.event=common.EVENT_IDS[msg.readUInt32BE(80)],!params.event)throw new Error("invalid event");const ip=msg.readUInt32BE(84);params.ip=ip?ipLib.toString(ip):rinfo.address,params.key=msg.readUInt32BE(88),params.numwant=Math.min(msg.readUInt32BE(92)||common.DEFAULT_ANNOUNCE_PEERS,common.MAX_ANNOUNCE_PEERS),params.port=msg.readUInt16BE(96)||rinfo.port,params.addr=`${params.ip}:${params.port}`,params.compact=1}else{if(params.action!==common.ACTIONS.SCRAPE)throw new Error(`Invalid action in UDP packet: ${params.action}`);if((msg.length-16)%20!=0)throw new Error("invalid scrape message");params.info_hash=[];for(let i2=0,len=(msg.length-16)/20;i2=0?low:131072+low)}__name(fromUInt64,"fromUInt64")},74126:(module2,__unused_webpack_exports2,__webpack_require__2)=>{module2.exports=parseWebSocketRequest;const common=__webpack_require__2(55340);function parseWebSocketRequest(socket,opts,params){if(opts||(opts={}),(params=JSON.parse(params)).type="ws",params.socket=socket,"announce"===params.action){if(params.action=common.ACTIONS.ANNOUNCE,"string"!=typeof params.info_hash||20!==params.info_hash.length)throw new Error("invalid info_hash");if(params.info_hash=common.binaryToHex(params.info_hash),"string"!=typeof params.peer_id||20!==params.peer_id.length)throw new Error("invalid peer_id");if(params.peer_id=common.binaryToHex(params.peer_id),params.answer){if("string"!=typeof params.to_peer_id||20!==params.to_peer_id.length)throw new Error("invalid `to_peer_id` (required with `answer`)");params.to_peer_id=common.binaryToHex(params.to_peer_id)}params.left=Number(params.left),Number.isNaN(params.left)&&(params.left=1/0),params.numwant=Math.min(Number(params.offers&¶ms.offers.length)||0,common.MAX_ANNOUNCE_PEERS),params.compact=-1}else{if("scrape"!==params.action)throw new Error(`invalid action in WS request: ${params.action}`);params.action=common.ACTIONS.SCRAPE,"string"==typeof params.info_hash&&(params.info_hash=[params.info_hash]),Array.isArray(params.info_hash)&&(params.info_hash=params.info_hash.map(binaryInfoHash=>{if("string"!=typeof binaryInfoHash||20!==binaryInfoHash.length)throw new Error("invalid info_hash");return common.binaryToHex(binaryInfoHash)}))}return socket.upgradeReq&&(socket.ip=opts.trustProxy?socket.upgradeReq.headers["x-forwarded-for"]||socket.upgradeReq.connection.remoteAddress:socket.upgradeReq.connection.remoteAddress.replace(common.REMOVE_IPV4_MAPPED_IPV6_RE,""),socket.port=socket.upgradeReq.connection.remotePort,socket.port&&(socket.addr=`${common.IPV6_RE.test(socket.ip)?`[${socket.ip}]`:socket.ip}:${socket.port}`),socket.headers=socket.upgradeReq.headers,socket.upgradeReq=null),params.ip=socket.ip,params.port=socket.port,params.addr=socket.addr,params.headers=socket.headers,params}__name(parseWebSocketRequest,"parseWebSocketRequest")},12146:(module2,__unused_webpack_exports2,__webpack_require__2)=>{const arrayRemove=__webpack_require__2(93542),debug=__webpack_require__2(58574)("bittorrent-tracker:swarm"),LRU=__webpack_require__2(49193),randomIterate=__webpack_require__2(79627);class Swarm{constructor(infoHash,server){const self2=this;self2.infoHash=infoHash,self2.complete=0,self2.incomplete=0,self2.peers=new LRU({max:server.peersCacheLength||1e3,maxAge:server.peersCacheTtl||12e5}),self2.peers.on("evict",data=>{const peer=data.value,params={type:peer.type,event:"stopped",numwant:0,peer_id:peer.peerId};self2._onAnnounceStopped(params,peer,peer.peerId),peer.socket=null})}announce(params,cb){const self2=this,id="ws"===params.type?params.peer_id:params.addr,peer=self2.peers.get(id);if("started"===params.event)self2._onAnnounceStarted(params,peer,id);else if("stopped"===params.event){if(self2._onAnnounceStopped(params,peer,id),!cb)return}else if("completed"===params.event)self2._onAnnounceCompleted(params,peer,id);else{if("update"!==params.event)return void cb(new Error("invalid event"));self2._onAnnounceUpdate(params,peer,id)}cb(null,{complete:self2.complete,incomplete:self2.incomplete,peers:self2._getPeers(params.numwant,params.peer_id,!!params.socket)})}scrape(params,cb){cb(null,{complete:this.complete,incomplete:this.incomplete})}_onAnnounceStarted(params,peer,id){if(peer)return debug("unexpected `started` event from peer that is already in swarm"),this._onAnnounceUpdate(params,peer,id);0===params.left?this.complete+=1:this.incomplete+=1,this.peers.set(id,{type:params.type,complete:0===params.left,peerId:params.peer_id,ip:params.ip,port:params.port,socket:params.socket})}_onAnnounceStopped(params,peer,id){if(peer){if(peer.complete?this.complete-=1:this.incomplete-=1,peer.socket&&!peer.socket.destroyed){const index=peer.socket.infoHashes.indexOf(this.infoHash);arrayRemove(peer.socket.infoHashes,index)}this.peers.remove(id)}else debug("unexpected `stopped` event from peer that is not in swarm")}_onAnnounceCompleted(params,peer,id){return peer?peer.complete?(debug("unexpected `completed` event from peer that is already completed"),this._onAnnounceUpdate(params,peer,id)):(this.complete+=1,this.incomplete-=1,peer.complete=!0,void this.peers.set(id,peer)):(debug("unexpected `completed` event from peer that is not in swarm"),this._onAnnounceStarted(params,peer,id))}_onAnnounceUpdate(params,peer,id){if(!peer)return debug("unexpected `update` event from peer that is not in swarm"),this._onAnnounceStarted(params,peer,id);!peer.complete&&0===params.left&&(this.complete+=1,this.incomplete-=1,peer.complete=!0),this.peers.set(id,peer)}_getPeers(numwant,ownPeerId,isWebRTC){const peers=[],ite=randomIterate(this.peers.keys);let peerId;for(;(peerId=ite())&&peers.length{var clone=function(){"use strict";function _instanceof(obj,type){return null!=type&&obj instanceof type}var nativeMap,nativeSet,nativePromise;__name(_instanceof,"_instanceof");try{nativeMap=Map}catch{nativeMap=__name(function(){},"nativeMap")}try{nativeSet=Set}catch{nativeSet=__name(function(){},"nativeSet")}try{nativePromise=Promise}catch{nativePromise=__name(function(){},"nativePromise")}function clone2(parent,circular,depth,prototype,includeNonEnumerable){"object"==typeof circular&&(depth=circular.depth,prototype=circular.prototype,includeNonEnumerable=circular.includeNonEnumerable,circular=circular.circular);var allParents=[],allChildren=[],useBuffer="undefined"!=typeof Buffer;function _clone(parent2,depth2){if(null===parent2)return null;if(0===depth2)return parent2;var child,proto;if("object"!=typeof parent2)return parent2;if(_instanceof(parent2,nativeMap))child=new nativeMap;else if(_instanceof(parent2,nativeSet))child=new nativeSet;else if(_instanceof(parent2,nativePromise))child=new nativePromise(function(resolve,reject){parent2.then(function(value){resolve(_clone(value,depth2-1))},function(err){reject(_clone(err,depth2-1))})});else if(clone2.__isArray(parent2))child=[];else if(clone2.__isRegExp(parent2))child=new RegExp(parent2.source,__getRegExpFlags(parent2)),parent2.lastIndex&&(child.lastIndex=parent2.lastIndex);else if(clone2.__isDate(parent2))child=new Date(parent2.getTime());else{if(useBuffer&&Buffer.isBuffer(parent2))return child=Buffer.allocUnsafe?Buffer.allocUnsafe(parent2.length):new Buffer(parent2.length),parent2.copy(child),child;_instanceof(parent2,Error)?child=Object.create(parent2):void 0===prototype?(proto=Object.getPrototypeOf(parent2),child=Object.create(proto)):(child=Object.create(prototype),proto=prototype)}if(circular){var index=allParents.indexOf(parent2);if(-1!=index)return allChildren[index];allParents.push(parent2),allChildren.push(child)}for(var i2 in _instanceof(parent2,nativeMap)&&parent2.forEach(function(value,key){var keyChild=_clone(key,depth2-1),valueChild=_clone(value,depth2-1);child.set(keyChild,valueChild)}),_instanceof(parent2,nativeSet)&&parent2.forEach(function(value){var entryChild=_clone(value,depth2-1);child.add(entryChild)}),parent2){var attrs;proto&&(attrs=Object.getOwnPropertyDescriptor(proto,i2)),(!attrs||null!=attrs.set)&&(child[i2]=_clone(parent2[i2],depth2-1))}if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(parent2);for(i2=0;i2{"use strict";const WebSocket2=__webpack_require__2(78804);WebSocket2.createWebSocketStream=__webpack_require__2(85316),WebSocket2.Server=__webpack_require__2(8362),WebSocket2.Receiver=__webpack_require__2(53169),WebSocket2.Sender=__webpack_require__2(5857),module2.exports=WebSocket2},243:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const{EMPTY_BUFFER}=__webpack_require__2(35278);function concat(list,totalLength){if(0===list.length)return EMPTY_BUFFER;if(1===list.length)return list[0];const target=Buffer.allocUnsafe(totalLength);let offset=0;for(let i2=0;i2{"use strict";module2.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),EMPTY_BUFFER:Buffer.alloc(0),NOOP:()=>{}}},57017:module2=>{"use strict";class Event{constructor(type,target){this.target=target,this.type=type}}__name(Event,"Event");class MessageEvent extends Event{constructor(data,target){super("message",target),this.data=data}}__name(MessageEvent,"MessageEvent");class CloseEvent extends Event{constructor(code2,reason,target){super("close",target),this.wasClean=target._closeFrameReceived&&target._closeFrameSent,this.reason=reason,this.code=code2}}__name(CloseEvent,"CloseEvent");class OpenEvent extends Event{constructor(target){super("open",target)}}__name(OpenEvent,"OpenEvent");class ErrorEvent extends Event{constructor(error,target){super("error",target),this.message=error.message,this.error=error}}__name(ErrorEvent,"ErrorEvent");const EventTarget={addEventListener(type,listener,options){if("function"!=typeof listener)return;function onMessage(data){listener.call(this,new MessageEvent(data,this))}function onClose(code2,message2){listener.call(this,new CloseEvent(code2,message2,this))}function onError(error){listener.call(this,new ErrorEvent(error,this))}function onOpen(){listener.call(this,new OpenEvent(this))}__name(onMessage,"onMessage"),__name(onClose,"onClose"),__name(onError,"onError"),__name(onOpen,"onOpen");const method=options&&options.once?"once":"on";"message"===type?(onMessage._listener=listener,this[method](type,onMessage)):"close"===type?(onClose._listener=listener,this[method](type,onClose)):"error"===type?(onError._listener=listener,this[method](type,onError)):"open"===type?(onOpen._listener=listener,this[method](type,onOpen)):this[method](type,listener)},removeEventListener(type,listener){const listeners=this.listeners(type);for(let i2=0;i2{"use strict";const tokenChars=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function push(dest,name,elem){void 0===dest[name]?dest[name]=[elem]:dest[name].push(elem)}function parse(header){const offers=Object.create(null);if(void 0===header||""===header)return offers;let extensionName,paramName,params=Object.create(null),mustUnescape=!1,isEscaping=!1,inQuotes=!1,start=-1,end=-1,i2=0;for(;i2{let configurations=extensions[extension];return Array.isArray(configurations)||(configurations=[configurations]),configurations.map(params=>[extension].concat(Object.keys(params).map(k=>{let values=params[k];return Array.isArray(values)||(values=[values]),values.map(v=>!0===v?k:`${k}=${v}`).join("; ")})).join("; ")).join(", ")}).join(", ")}__name(push,"push"),__name(parse,"parse"),__name(format,"format"),module2.exports={format,parse}},99584:module2=>{"use strict";const kDone=Symbol("kDone"),kRun=Symbol("kRun");class Limiter{constructor(concurrency){this[kDone]=()=>{this.pending--,this[kRun]()},this.concurrency=concurrency||1/0,this.jobs=[],this.pending=0}add(job){this.jobs.push(job),this[kRun]()}[kRun](){if(this.pending!==this.concurrency&&this.jobs.length){const job=this.jobs.shift();this.pending++,job(this[kDone])}}}__name(Limiter,"Limiter"),module2.exports=Limiter},54178:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const zlib=__webpack_require__2(59796),bufferUtil=__webpack_require__2(243),Limiter=__webpack_require__2(99584),{kStatusCode,NOOP}=__webpack_require__2(35278),TRAILER=Buffer.from([0,0,255,255]),kPerMessageDeflate=Symbol("permessage-deflate"),kTotalLength=Symbol("total-length"),kCallback=Symbol("callback"),kBuffers=Symbol("buffers"),kError=Symbol("error");let zlibLimiter;class PerMessageDeflate{constructor(options,isServer,maxPayload){if(this._maxPayload=0|maxPayload,this._options=options||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!isServer,this._deflate=null,this._inflate=null,this.params=null,!zlibLimiter){const concurrency=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;zlibLimiter=new Limiter(concurrency)}}static get extensionName(){return"permessage-deflate"}offer(){const params={};return this._options.serverNoContextTakeover&&(params.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(params.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(params.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?params.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(params.client_max_window_bits=!0),params}accept(configurations){return configurations=this.normalizeParams(configurations),this.params=this._isServer?this.acceptAsServer(configurations):this.acceptAsClient(configurations),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){const callback=this._deflate[kCallback];this._deflate.close(),this._deflate=null,callback&&callback(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(offers){const opts=this._options,accepted=offers.find(params=>!(!1===opts.serverNoContextTakeover&¶ms.server_no_context_takeover||params.server_max_window_bits&&(!1===opts.serverMaxWindowBits||"number"==typeof opts.serverMaxWindowBits&&opts.serverMaxWindowBits>params.server_max_window_bits)||"number"==typeof opts.clientMaxWindowBits&&!params.client_max_window_bits));if(!accepted)throw new Error("None of the extension offers can be accepted");return opts.serverNoContextTakeover&&(accepted.server_no_context_takeover=!0),opts.clientNoContextTakeover&&(accepted.client_no_context_takeover=!0),"number"==typeof opts.serverMaxWindowBits&&(accepted.server_max_window_bits=opts.serverMaxWindowBits),"number"==typeof opts.clientMaxWindowBits?accepted.client_max_window_bits=opts.clientMaxWindowBits:(!0===accepted.client_max_window_bits||!1===opts.clientMaxWindowBits)&&delete accepted.client_max_window_bits,accepted}acceptAsClient(response){const params=response[0];if(!1===this._options.clientNoContextTakeover&¶ms.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(params.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&¶ms.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(params.client_max_window_bits=this._options.clientMaxWindowBits);return params}normalizeParams(configurations){return configurations.forEach(params=>{Object.keys(params).forEach(key=>{let value=params[key];if(value.length>1)throw new Error(`Parameter "${key}" must have only a single value`);if(value=value[0],"client_max_window_bits"===key){if(!0!==value){const num=+value;if(!Number.isInteger(num)||num<8||num>15)throw new TypeError(`Invalid value for parameter "${key}": ${value}`);value=num}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${key}": ${value}`)}else if("server_max_window_bits"===key){const num=+value;if(!Number.isInteger(num)||num<8||num>15)throw new TypeError(`Invalid value for parameter "${key}": ${value}`);value=num}else{if("client_no_context_takeover"!==key&&"server_no_context_takeover"!==key)throw new Error(`Unknown parameter "${key}"`);if(!0!==value)throw new TypeError(`Invalid value for parameter "${key}": ${value}`)}params[key]=value})}),configurations}decompress(data,fin,callback){zlibLimiter.add(done=>{this._decompress(data,fin,(err,result)=>{done(),callback(err,result)})})}compress(data,fin,callback){zlibLimiter.add(done=>{this._compress(data,fin,(err,result)=>{done(),callback(err,result)})})}_decompress(data,fin,callback){const endpoint=this._isServer?"client":"server";if(!this._inflate){const key=`${endpoint}_max_window_bits`,windowBits="number"!=typeof this.params[key]?zlib.Z_DEFAULT_WINDOWBITS:this.params[key];this._inflate=zlib.createInflateRaw({...this._options.zlibInflateOptions,windowBits}),this._inflate[kPerMessageDeflate]=this,this._inflate[kTotalLength]=0,this._inflate[kBuffers]=[],this._inflate.on("error",inflateOnError),this._inflate.on("data",inflateOnData)}this._inflate[kCallback]=callback,this._inflate.write(data),fin&&this._inflate.write(TRAILER),this._inflate.flush(()=>{const err=this._inflate[kError];if(err)return this._inflate.close(),this._inflate=null,void callback(err);const data2=bufferUtil.concat(this._inflate[kBuffers],this._inflate[kTotalLength]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[kTotalLength]=0,this._inflate[kBuffers]=[],fin&&this.params[`${endpoint}_no_context_takeover`]&&this._inflate.reset()),callback(null,data2)})}_compress(data,fin,callback){const endpoint=this._isServer?"server":"client";if(!this._deflate){const key=`${endpoint}_max_window_bits`,windowBits="number"!=typeof this.params[key]?zlib.Z_DEFAULT_WINDOWBITS:this.params[key];this._deflate=zlib.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits}),this._deflate[kTotalLength]=0,this._deflate[kBuffers]=[],this._deflate.on("error",NOOP),this._deflate.on("data",deflateOnData)}this._deflate[kCallback]=callback,this._deflate.write(data),this._deflate.flush(zlib.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let data2=bufferUtil.concat(this._deflate[kBuffers],this._deflate[kTotalLength]);fin&&(data2=data2.slice(0,data2.length-4)),this._deflate[kCallback]=null,this._deflate[kTotalLength]=0,this._deflate[kBuffers]=[],fin&&this.params[`${endpoint}_no_context_takeover`]&&this._deflate.reset(),callback(null,data2)})}}function deflateOnData(chunk){this[kBuffers].push(chunk),this[kTotalLength]+=chunk.length}function inflateOnData(chunk){this[kTotalLength]+=chunk.length,this[kPerMessageDeflate]._maxPayload<1||this[kTotalLength]<=this[kPerMessageDeflate]._maxPayload?this[kBuffers].push(chunk):(this[kError]=new RangeError("Max payload size exceeded"),this[kError].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[kError][kStatusCode]=1009,this.removeListener("data",inflateOnData),this.reset())}function inflateOnError(err){this[kPerMessageDeflate]._inflate=null,err[kStatusCode]=1007,this[kCallback](err)}__name(PerMessageDeflate,"PerMessageDeflate"),module2.exports=PerMessageDeflate,__name(deflateOnData,"deflateOnData"),__name(inflateOnData,"inflateOnData"),__name(inflateOnError,"inflateOnError")},53169:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const{Writable}=__webpack_require__2(12781),PerMessageDeflate=__webpack_require__2(54178),{BINARY_TYPES,EMPTY_BUFFER,kStatusCode,kWebSocket}=__webpack_require__2(35278),{concat,toArrayBuffer,unmask}=__webpack_require__2(243),{isValidStatusCode,isValidUTF8}=__webpack_require__2(51789);class Receiver extends Writable{constructor(binaryType,extensions,isServer,maxPayload){super(),this._binaryType=binaryType||BINARY_TYPES[0],this[kWebSocket]=void 0,this._extensions=extensions||{},this._isServer=!!isServer,this._maxPayload=0|maxPayload,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._state=0,this._loop=!1}_write(chunk,encoding,cb){if(8===this._opcode&&0==this._state)return cb();this._bufferedBytes+=chunk.length,this._buffers.push(chunk),this.startLoop(cb)}consume(n){if(this._bufferedBytes-=n,n===this._buffers[0].length)return this._buffers.shift();if(n=buf.length?dst.set(this._buffers.shift(),offset):(dst.set(new Uint8Array(buf.buffer,buf.byteOffset,n),offset),this._buffers[0]=buf.slice(n)),n-=buf.length}while(n>0);return dst}startLoop(cb){let err;this._loop=!0;do{switch(this._state){case 0:err=this.getInfo();break;case 1:err=this.getPayloadLength16();break;case 2:err=this.getPayloadLength64();break;case 3:this.getMask();break;case 4:err=this.getData(cb);break;default:return void(this._loop=!1)}}while(this._loop);cb(err)}getInfo(){if(this._bufferedBytes<2)return void(this._loop=!1);const buf=this.consume(2);if(0!=(48&buf[0]))return this._loop=!1,error(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");const compressed=64==(64&buf[0]);if(compressed&&!this._extensions[PerMessageDeflate.extensionName])return this._loop=!1,error(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(this._fin=128==(128&buf[0]),this._opcode=15&buf[0],this._payloadLength=127&buf[1],0===this._opcode){if(compressed)return this._loop=!1,error(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(!this._fragmented)return this._loop=!1,error(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented)return this._loop=!1,error(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");this._compressed=compressed}else{if(!(this._opcode>7&&this._opcode<11))return this._loop=!1,error(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");if(!this._fin)return this._loop=!1,error(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");if(compressed)return this._loop=!1,error(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(this._payloadLength>125)return this._loop=!1,error(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH")}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=128==(128&buf[1]),this._isServer){if(!this._masked)return this._loop=!1,error(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK")}else if(this._masked)return this._loop=!1,error(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");if(126===this._payloadLength)this._state=1;else{if(127!==this._payloadLength)return this.haveLength();this._state=2}}getPayloadLength16(){if(!(this._bufferedBytes<2))return this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength();this._loop=!1}getPayloadLength64(){if(this._bufferedBytes<8)return void(this._loop=!1);const buf=this.consume(8),num=buf.readUInt32BE(0);return num>Math.pow(2,21)-1?(this._loop=!1,error(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH")):(this._payloadLength=num*Math.pow(2,32)+buf.readUInt32BE(4),this.haveLength())}haveLength(){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0))return this._loop=!1,error(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(cb){let data=EMPTY_BUFFER;if(this._payloadLength){if(this._bufferedBytes7?this.controlMessage(data):this._compressed?(this._state=5,void this.decompress(data,cb)):(data.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(data)),this.dataMessage())}decompress(data,cb){this._extensions[PerMessageDeflate.extensionName].decompress(data,this._fin,(err,buf)=>{if(err)return cb(err);if(buf.length){if(this._messageLength+=buf.length,this._messageLength>this._maxPayload&&this._maxPayload>0)return cb(error(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"));this._fragments.push(buf)}const er=this.dataMessage();if(er)return cb(er);this.startLoop(cb)})}dataMessage(){if(this._fin){const messageLength=this._messageLength,fragments=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let data;data="nodebuffer"===this._binaryType?concat(fragments,messageLength):"arraybuffer"===this._binaryType?toArrayBuffer(concat(fragments,messageLength)):fragments,this.emit("message",data)}else{const buf=concat(fragments,messageLength);if(!isValidUTF8(buf))return this._loop=!1,error(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");this.emit("message",buf.toString())}}this._state=0}controlMessage(data){if(8===this._opcode)if(this._loop=!1,0===data.length)this.emit("conclude",1005,""),this.end();else{if(1===data.length)return error(RangeError,"invalid payload length 1",!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");{const code2=data.readUInt16BE(0);if(!isValidStatusCode(code2))return error(RangeError,`invalid status code ${code2}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");const buf=data.slice(2);if(!isValidUTF8(buf))return error(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");this.emit("conclude",code2,buf.toString()),this.end()}}else 9===this._opcode?this.emit("ping",data):this.emit("pong",data);this._state=0}}function error(ErrorCtor,message2,prefix,statusCode,errorCode){const err=new ErrorCtor(prefix?`Invalid WebSocket frame: ${message2}`:message2);return Error.captureStackTrace(err,error),err.code=errorCode,err[kStatusCode]=statusCode,err}__name(Receiver,"Receiver"),module2.exports=Receiver,__name(error,"error")},5857:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";__webpack_require__2(41808),__webpack_require__2(24404);const{randomFillSync}=__webpack_require__2(6113),PerMessageDeflate=__webpack_require__2(54178),{EMPTY_BUFFER}=__webpack_require__2(35278),{isValidStatusCode}=__webpack_require__2(51789),{mask:applyMask,toBuffer}=__webpack_require__2(243),mask=Buffer.alloc(4);class Sender{constructor(socket,extensions){this._extensions=extensions||{},this._socket=socket,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(data,options){const merge=options.mask&&options.readOnly;let offset=options.mask?6:2,payloadLength=data.length;data.length>=65536?(offset+=8,payloadLength=127):data.length>125&&(offset+=2,payloadLength=126);const target=Buffer.allocUnsafe(merge?data.length+offset:offset);return target[0]=options.fin?128|options.opcode:options.opcode,options.rsv1&&(target[0]|=64),target[1]=payloadLength,126===payloadLength?target.writeUInt16BE(data.length,2):127===payloadLength&&(target.writeUInt32BE(0,2),target.writeUInt32BE(data.length,6)),options.mask?(randomFillSync(mask,0,4),target[1]|=128,target[offset-4]=mask[0],target[offset-3]=mask[1],target[offset-2]=mask[2],target[offset-1]=mask[3],merge?(applyMask(data,mask,target,offset,data.length),[target]):(applyMask(data,mask,data,0,data.length),[target,data])):[target,data]}close(code2,data,mask2,cb){let buf;if(void 0===code2)buf=EMPTY_BUFFER;else{if("number"!=typeof code2||!isValidStatusCode(code2))throw new TypeError("First argument must be a valid error code number");if(void 0===data||""===data)buf=Buffer.allocUnsafe(2),buf.writeUInt16BE(code2,0);else{const length=Buffer.byteLength(data);if(length>123)throw new RangeError("The message must not be greater than 123 bytes");buf=Buffer.allocUnsafe(2+length),buf.writeUInt16BE(code2,0),buf.write(data,2)}}this._deflating?this.enqueue([this.doClose,buf,mask2,cb]):this.doClose(buf,mask2,cb)}doClose(data,mask2,cb){this.sendFrame(Sender.frame(data,{fin:!0,rsv1:!1,opcode:8,mask:mask2,readOnly:!1}),cb)}ping(data,mask2,cb){const buf=toBuffer(data);if(buf.length>125)throw new RangeError("The data size must not be greater than 125 bytes");this._deflating?this.enqueue([this.doPing,buf,mask2,toBuffer.readOnly,cb]):this.doPing(buf,mask2,toBuffer.readOnly,cb)}doPing(data,mask2,readOnly,cb){this.sendFrame(Sender.frame(data,{fin:!0,rsv1:!1,opcode:9,mask:mask2,readOnly}),cb)}pong(data,mask2,cb){const buf=toBuffer(data);if(buf.length>125)throw new RangeError("The data size must not be greater than 125 bytes");this._deflating?this.enqueue([this.doPong,buf,mask2,toBuffer.readOnly,cb]):this.doPong(buf,mask2,toBuffer.readOnly,cb)}doPong(data,mask2,readOnly,cb){this.sendFrame(Sender.frame(data,{fin:!0,rsv1:!1,opcode:10,mask:mask2,readOnly}),cb)}send(data,options,cb){const buf=toBuffer(data),perMessageDeflate=this._extensions[PerMessageDeflate.extensionName];let opcode=options.binary?2:1,rsv1=options.compress;if(this._firstFragment?(this._firstFragment=!1,rsv1&&perMessageDeflate&&(rsv1=buf.length>=perMessageDeflate._threshold),this._compress=rsv1):(rsv1=!1,opcode=0),options.fin&&(this._firstFragment=!0),perMessageDeflate){const opts={fin:options.fin,rsv1,opcode,mask:options.mask,readOnly:toBuffer.readOnly};this._deflating?this.enqueue([this.dispatch,buf,this._compress,opts,cb]):this.dispatch(buf,this._compress,opts,cb)}else this.sendFrame(Sender.frame(buf,{fin:options.fin,rsv1:!1,opcode,mask:options.mask,readOnly:toBuffer.readOnly}),cb)}dispatch(data,compress,options,cb){if(!compress)return void this.sendFrame(Sender.frame(data,options),cb);const perMessageDeflate=this._extensions[PerMessageDeflate.extensionName];this._bufferedBytes+=data.length,this._deflating=!0,perMessageDeflate.compress(data,options.fin,(_,buf)=>{if(this._socket.destroyed){const err=new Error("The socket was closed while data was being compressed");"function"==typeof cb&&cb(err);for(let i2=0;i2{"use strict";const{Duplex}=__webpack_require__2(12781);function emitClose(stream){stream.emit("close")}function duplexOnEnd(){!this.destroyed&&this._writableState.finished&&this.destroy()}function duplexOnError(err){this.removeListener("error",duplexOnError),this.destroy(),0===this.listenerCount("error")&&this.emit("error",err)}function createWebSocketStream(ws,options){let resumeOnReceiverDrain=!0,terminateOnDestroy=!0;function receiverOnDrain(){resumeOnReceiverDrain&&ws._socket.resume()}__name(receiverOnDrain,"receiverOnDrain"),ws.readyState===ws.CONNECTING?ws.once("open",__name(function(){ws._receiver.removeAllListeners("drain"),ws._receiver.on("drain",receiverOnDrain)},"open")):(ws._receiver.removeAllListeners("drain"),ws._receiver.on("drain",receiverOnDrain));const duplex=new Duplex({...options,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return ws.on("message",__name(function(msg){duplex.push(msg)||(resumeOnReceiverDrain=!1,ws._socket.pause())},"message")),ws.once("error",__name(function(err){duplex.destroyed||(terminateOnDestroy=!1,duplex.destroy(err))},"error")),ws.once("close",__name(function(){duplex.destroyed||duplex.push(null)},"close")),duplex._destroy=function(err,callback){if(ws.readyState===ws.CLOSED)return callback(err),void process.nextTick(emitClose,duplex);let called=!1;ws.once("error",__name(function(err2){called=!0,callback(err2)},"error")),ws.once("close",__name(function(){called||callback(err),process.nextTick(emitClose,duplex)},"close")),terminateOnDestroy&&ws.terminate()},duplex._final=function(callback){ws.readyState!==ws.CONNECTING?null!==ws._socket&&(ws._socket._writableState.finished?(callback(),duplex._readableState.endEmitted&&duplex.destroy()):(ws._socket.once("finish",__name(function(){callback()},"finish")),ws.close())):ws.once("open",__name(function(){duplex._final(callback)},"open"))},duplex._read=function(){(ws.readyState===ws.OPEN||ws.readyState===ws.CLOSING)&&!resumeOnReceiverDrain&&(resumeOnReceiverDrain=!0,ws._receiver._writableState.needDrain||ws._socket.resume())},duplex._write=function(chunk,encoding,callback){ws.readyState!==ws.CONNECTING?ws.send(chunk,callback):ws.once("open",__name(function(){duplex._write(chunk,encoding,callback)},"open"))},duplex.on("end",duplexOnEnd),duplex.on("error",duplexOnError),duplex}__name(emitClose,"emitClose"),__name(duplexOnEnd,"duplexOnEnd"),__name(duplexOnError,"duplexOnError"),__name(createWebSocketStream,"createWebSocketStream"),module2.exports=createWebSocketStream},51789:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";function isValidStatusCode(code2){return code2>=1e3&&code2<=1014&&1004!==code2&&1005!==code2&&1006!==code2||code2>=3e3&&code2<=4999}function _isValidUTF8(buf){const len=buf.length;let i2=0;for(;i2=len||128!=(192&buf[i2+1])||128!=(192&buf[i2+2])||224===buf[i2]&&128==(224&buf[i2+1])||237===buf[i2]&&160==(224&buf[i2+1]))return!1;i2+=3}else{if(240!=(248&buf[i2]))return!1;if(i2+3>=len||128!=(192&buf[i2+1])||128!=(192&buf[i2+2])||128!=(192&buf[i2+3])||240===buf[i2]&&128==(240&buf[i2+1])||244===buf[i2]&&buf[i2+1]>143||buf[i2]>244)return!1;i2+=4}return!0}__name(isValidStatusCode,"isValidStatusCode"),__name(_isValidUTF8,"_isValidUTF8");try{let isValidUTF8=__webpack_require__2(13206);"object"==typeof isValidUTF8&&(isValidUTF8=isValidUTF8.Validation.isValidUTF8),module2.exports={isValidStatusCode,isValidUTF8:buf=>buf.length<150?_isValidUTF8(buf):isValidUTF8(buf)}}catch{module2.exports={isValidStatusCode,isValidUTF8:_isValidUTF8}}},8362:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const EventEmitter=__webpack_require__2(82361),http=__webpack_require__2(13685),{createHash}=(__webpack_require__2(95687),__webpack_require__2(41808),__webpack_require__2(24404),__webpack_require__2(6113)),PerMessageDeflate=__webpack_require__2(54178),WebSocket2=__webpack_require__2(78804),{format,parse}=__webpack_require__2(22232),{GUID,kWebSocket}=__webpack_require__2(35278),keyRegex=/^[+/0-9A-Za-z]{22}==$/;class WebSocketServer extends EventEmitter{constructor(options,callback){if(super(),null==(options={maxPayload:104857600,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,...options}).port&&!options.server&&!options.noServer||null!=options.port&&(options.server||options.noServer)||options.server&&options.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(null!=options.port?(this._server=http.createServer((req,res)=>{const body=http.STATUS_CODES[426];res.writeHead(426,{"Content-Length":body.length,"Content-Type":"text/plain"}),res.end(body)}),this._server.listen(options.port,options.host,options.backlog,callback)):options.server&&(this._server=options.server),this._server){const emitConnection=this.emit.bind(this,"connection");this._removeListeners=addListeners(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(req,socket,head)=>{this.handleUpgrade(req,socket,head,emitConnection)}})}!0===options.perMessageDeflate&&(options.perMessageDeflate={}),options.clientTracking&&(this.clients=new Set),this.options=options,this._state=0}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(cb){if(cb&&this.once("close",cb),2===this._state)return void process.nextTick(emitClose,this);if(1===this._state)return;if(this._state=1,this.clients)for(const client of this.clients)client.terminate();const server=this._server;server&&(this._removeListeners(),this._removeListeners=this._server=null,null!=this.options.port)?server.close(emitClose.bind(void 0,this)):process.nextTick(emitClose,this)}shouldHandle(req){if(this.options.path){const index=req.url.indexOf("?");if((-1!==index?req.url.slice(0,index):req.url)!==this.options.path)return!1}return!0}handleUpgrade(req,socket,head,cb){socket.on("error",socketOnError);const key=void 0!==req.headers["sec-websocket-key"]&&req.headers["sec-websocket-key"].trim(),version=+req.headers["sec-websocket-version"],extensions={};if("GET"!==req.method||"websocket"!==req.headers.upgrade.toLowerCase()||!key||!keyRegex.test(key)||8!==version&&13!==version||!this.shouldHandle(req))return abortHandshake(socket,400);if(this.options.perMessageDeflate){const perMessageDeflate=new PerMessageDeflate(this.options.perMessageDeflate,!0,this.options.maxPayload);try{const offers=parse(req.headers["sec-websocket-extensions"]);offers[PerMessageDeflate.extensionName]&&(perMessageDeflate.accept(offers[PerMessageDeflate.extensionName]),extensions[PerMessageDeflate.extensionName]=perMessageDeflate)}catch{return abortHandshake(socket,400)}}if(this.options.verifyClient){const info={origin:req.headers[""+(8===version?"sec-websocket-origin":"origin")],secure:!(!req.socket.authorized&&!req.socket.encrypted),req};if(2===this.options.verifyClient.length)return void this.options.verifyClient(info,(verified,code2,message2,headers)=>{if(!verified)return abortHandshake(socket,code2||401,message2,headers);this.completeUpgrade(key,extensions,req,socket,head,cb)});if(!this.options.verifyClient(info))return abortHandshake(socket,401)}this.completeUpgrade(key,extensions,req,socket,head,cb)}completeUpgrade(key,extensions,req,socket,head,cb){if(!socket.readable||!socket.writable)return socket.destroy();if(socket[kWebSocket])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return abortHandshake(socket,503);const headers=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${createHash("sha1").update(key+GUID).digest("base64")}`],ws=new WebSocket2(null);let protocol=req.headers["sec-websocket-protocol"];if(protocol&&(protocol=protocol.split(",").map(trim),protocol=this.options.handleProtocols?this.options.handleProtocols(protocol,req):protocol[0],protocol&&(headers.push(`Sec-WebSocket-Protocol: ${protocol}`),ws._protocol=protocol)),extensions[PerMessageDeflate.extensionName]){const params=extensions[PerMessageDeflate.extensionName].params,value=format({[PerMessageDeflate.extensionName]:[params]});headers.push(`Sec-WebSocket-Extensions: ${value}`),ws._extensions=extensions}this.emit("headers",headers,req),socket.write(headers.concat("\r\n").join("\r\n")),socket.removeListener("error",socketOnError),ws.setSocket(socket,head,this.options.maxPayload),this.clients&&(this.clients.add(ws),ws.on("close",()=>this.clients.delete(ws))),cb(ws,req)}}function addListeners(server,map){for(const event of Object.keys(map))server.on(event,map[event]);return __name(function(){for(const event of Object.keys(map))server.removeListener(event,map[event])},"removeListeners")}function emitClose(server){server._state=2,server.emit("close")}function socketOnError(){this.destroy()}function abortHandshake(socket,code2,message2,headers){socket.writable&&(message2=message2||http.STATUS_CODES[code2],headers={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(message2),...headers},socket.write(`HTTP/1.1 ${code2} ${http.STATUS_CODES[code2]}\r\n`+Object.keys(headers).map(h=>`${h}: ${headers[h]}`).join("\r\n")+"\r\n\r\n"+message2)),socket.removeListener("error",socketOnError),socket.destroy()}function trim(str){return str.trim()}__name(WebSocketServer,"WebSocketServer"),module2.exports=WebSocketServer,__name(addListeners,"addListeners"),__name(emitClose,"emitClose"),__name(socketOnError,"socketOnError"),__name(abortHandshake,"abortHandshake"),__name(trim,"trim")},78804:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const EventEmitter=__webpack_require__2(82361),https=__webpack_require__2(95687),http=__webpack_require__2(13685),net=__webpack_require__2(41808),tls=__webpack_require__2(24404),{randomBytes,createHash}=__webpack_require__2(6113),{Readable}=__webpack_require__2(12781),{URL:URL2}=__webpack_require__2(57310),PerMessageDeflate=__webpack_require__2(54178),Receiver=__webpack_require__2(53169),Sender=__webpack_require__2(5857),{BINARY_TYPES,EMPTY_BUFFER,GUID,kStatusCode,kWebSocket,NOOP}=__webpack_require__2(35278),{addEventListener:addEventListener2,removeEventListener}=__webpack_require__2(57017),{format,parse}=__webpack_require__2(22232),{toBuffer}=__webpack_require__2(243),readyStates=["CONNECTING","OPEN","CLOSING","CLOSED"],protocolVersions=[8,13];class WebSocket2 extends EventEmitter{constructor(address,protocols,options){super(),this._binaryType=BINARY_TYPES[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage="",this._closeTimer=null,this._extensions={},this._protocol="",this._readyState=WebSocket2.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==address?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,Array.isArray(protocols)?protocols=protocols.join(", "):"object"==typeof protocols&&null!==protocols&&(options=protocols,protocols=void 0),initAsClient(this,address,protocols,options)):this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(type){!BINARY_TYPES.includes(type)||(this._binaryType=type,this._receiver&&(this._receiver._binaryType=type))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get onclose(){}set onclose(listener){}get onerror(){}set onerror(listener){}get onopen(){}set onopen(listener){}get onmessage(){}set onmessage(listener){}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(socket,head,maxPayload){const receiver=new Receiver(this.binaryType,this._extensions,this._isServer,maxPayload);this._sender=new Sender(socket,this._extensions),this._receiver=receiver,this._socket=socket,receiver[kWebSocket]=this,socket[kWebSocket]=this,receiver.on("conclude",receiverOnConclude),receiver.on("drain",receiverOnDrain),receiver.on("error",receiverOnError),receiver.on("message",receiverOnMessage),receiver.on("ping",receiverOnPing),receiver.on("pong",receiverOnPong),socket.setTimeout(0),socket.setNoDelay(),head.length>0&&socket.unshift(head),socket.on("close",socketOnClose),socket.on("data",socketOnData),socket.on("end",socketOnEnd),socket.on("error",socketOnError),this._readyState=WebSocket2.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=WebSocket2.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[PerMessageDeflate.extensionName]&&this._extensions[PerMessageDeflate.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=WebSocket2.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(code2,data){if(this.readyState!==WebSocket2.CLOSED){if(this.readyState===WebSocket2.CONNECTING){const msg="WebSocket was closed before the connection was established";return abortHandshake(this,this._req,msg)}if(this.readyState===WebSocket2.CLOSING)return void(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end());this._readyState=WebSocket2.CLOSING,this._sender.close(code2,data,!this._isServer,err=>{err||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),3e4)}}ping(data,mask,cb){if(this.readyState===WebSocket2.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof data?(cb=data,data=mask=void 0):"function"==typeof mask&&(cb=mask,mask=void 0),"number"==typeof data&&(data=data.toString()),this.readyState===WebSocket2.OPEN?(void 0===mask&&(mask=!this._isServer),this._sender.ping(data||EMPTY_BUFFER,mask,cb)):sendAfterClose(this,data,cb)}pong(data,mask,cb){if(this.readyState===WebSocket2.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof data?(cb=data,data=mask=void 0):"function"==typeof mask&&(cb=mask,mask=void 0),"number"==typeof data&&(data=data.toString()),this.readyState===WebSocket2.OPEN?(void 0===mask&&(mask=!this._isServer),this._sender.pong(data||EMPTY_BUFFER,mask,cb)):sendAfterClose(this,data,cb)}send(data,options,cb){if(this.readyState===WebSocket2.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof options&&(cb=options,options={}),"number"==typeof data&&(data=data.toString()),this.readyState!==WebSocket2.OPEN)return void sendAfterClose(this,data,cb);const opts={binary:"string"!=typeof data,mask:!this._isServer,compress:!0,fin:!0,...options};this._extensions[PerMessageDeflate.extensionName]||(opts.compress=!1),this._sender.send(data||EMPTY_BUFFER,opts,cb)}terminate(){if(this.readyState!==WebSocket2.CLOSED){if(this.readyState===WebSocket2.CONNECTING){const msg="WebSocket was closed before the connection was established";return abortHandshake(this,this._req,msg)}this._socket&&(this._readyState=WebSocket2.CLOSING,this._socket.destroy())}}}function initAsClient(websocket,address,protocols,options){const opts={protocolVersion:protocolVersions[1],maxPayload:104857600,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...options,createConnection:void 0,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:void 0,host:void 0,path:void 0,port:void 0};if(!protocolVersions.includes(opts.protocolVersion))throw new RangeError(`Unsupported protocol version: ${opts.protocolVersion} (supported versions: ${protocolVersions.join(", ")})`);let parsedUrl;address instanceof URL2?(parsedUrl=address,websocket._url=address.href):(parsedUrl=new URL2(address),websocket._url=address);const isUnixSocket="ws+unix:"===parsedUrl.protocol;if(!(parsedUrl.host||isUnixSocket&&parsedUrl.pathname)){const err=new Error(`Invalid URL: ${websocket.url}`);if(0===websocket._redirects)throw err;return void emitErrorAndClose(websocket,err)}const isSecure="wss:"===parsedUrl.protocol||"https:"===parsedUrl.protocol,defaultPort=isSecure?443:80,key=randomBytes(16).toString("base64"),get=isSecure?https.get:http.get;let perMessageDeflate;if(opts.createConnection=isSecure?tlsConnect:netConnect,opts.defaultPort=opts.defaultPort||defaultPort,opts.port=parsedUrl.port||defaultPort,opts.host=parsedUrl.hostname.startsWith("[")?parsedUrl.hostname.slice(1,-1):parsedUrl.hostname,opts.headers={"Sec-WebSocket-Version":opts.protocolVersion,"Sec-WebSocket-Key":key,Connection:"Upgrade",Upgrade:"websocket",...opts.headers},opts.path=parsedUrl.pathname+parsedUrl.search,opts.timeout=opts.handshakeTimeout,opts.perMessageDeflate&&(perMessageDeflate=new PerMessageDeflate(!0!==opts.perMessageDeflate?opts.perMessageDeflate:{},!1,opts.maxPayload),opts.headers["Sec-WebSocket-Extensions"]=format({[PerMessageDeflate.extensionName]:perMessageDeflate.offer()})),protocols&&(opts.headers["Sec-WebSocket-Protocol"]=protocols),opts.origin&&(opts.protocolVersion<13?opts.headers["Sec-WebSocket-Origin"]=opts.origin:opts.headers.Origin=opts.origin),(parsedUrl.username||parsedUrl.password)&&(opts.auth=`${parsedUrl.username}:${parsedUrl.password}`),isUnixSocket){const parts=opts.path.split(":");opts.socketPath=parts[0],opts.path=parts[1]}if(opts.followRedirects){if(0===websocket._redirects){websocket._originalHost=parsedUrl.host;const headers=options&&options.headers;if(options={...options,headers:{}},headers)for(const[key2,value]of Object.entries(headers))options.headers[key2.toLowerCase()]=value}else parsedUrl.host!==websocket._originalHost&&(delete opts.headers.authorization,delete opts.headers.cookie,delete opts.headers.host,opts.auth=void 0);opts.auth&&!options.headers.authorization&&(options.headers.authorization="Basic "+Buffer.from(opts.auth).toString("base64"))}let req=websocket._req=get(opts);opts.timeout&&req.on("timeout",()=>{abortHandshake(websocket,req,"Opening handshake has timed out")}),req.on("error",err=>{null===req||req.aborted||(req=websocket._req=null,emitErrorAndClose(websocket,err))}),req.on("response",res=>{const location2=res.headers.location,statusCode=res.statusCode;if(location2&&opts.followRedirects&&statusCode>=300&&statusCode<400){if(++websocket._redirects>opts.maxRedirects)return void abortHandshake(websocket,req,"Maximum redirects exceeded");let addr;req.abort();try{addr=new URL2(location2,address)}catch(err){return void emitErrorAndClose(websocket,err)}initAsClient(websocket,addr,protocols,options)}else websocket.emit("unexpected-response",req,res)||abortHandshake(websocket,req,`Unexpected server response: ${res.statusCode}`)}),req.on("upgrade",(res,socket,head)=>{if(websocket.emit("upgrade",res),websocket.readyState!==WebSocket2.CONNECTING)return;req=websocket._req=null;const digest=createHash("sha1").update(key+GUID).digest("base64");if(res.headers["sec-websocket-accept"]!==digest)return void abortHandshake(websocket,socket,"Invalid Sec-WebSocket-Accept header");const serverProt=res.headers["sec-websocket-protocol"],protList=(protocols||"").split(/, */);let protError;if(!protocols&&serverProt?protError="Server sent a subprotocol but none was requested":protocols&&!serverProt?protError="Server sent no subprotocol":serverProt&&!protList.includes(serverProt)&&(protError="Server sent an invalid subprotocol"),protError)return void abortHandshake(websocket,socket,protError);serverProt&&(websocket._protocol=serverProt);const secWebSocketExtensions=res.headers["sec-websocket-extensions"];if(void 0!==secWebSocketExtensions){if(!perMessageDeflate)return void abortHandshake(websocket,socket,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");let extensions;try{extensions=parse(secWebSocketExtensions)}catch{return void abortHandshake(websocket,socket,"Invalid Sec-WebSocket-Extensions header")}const extensionNames=Object.keys(extensions);if(extensionNames.length){if(1!==extensionNames.length||extensionNames[0]!==PerMessageDeflate.extensionName)return void abortHandshake(websocket,socket,"Server indicated an extension that was not requested");try{perMessageDeflate.accept(extensions[PerMessageDeflate.extensionName])}catch{return void abortHandshake(websocket,socket,"Invalid Sec-WebSocket-Extensions header")}websocket._extensions[PerMessageDeflate.extensionName]=perMessageDeflate}}websocket.setSocket(socket,head,opts.maxPayload)})}function emitErrorAndClose(websocket,err){websocket._readyState=WebSocket2.CLOSING,websocket.emit("error",err),websocket.emitClose()}function netConnect(options){return options.path=options.socketPath,net.connect(options)}function tlsConnect(options){return options.path=void 0,!options.servername&&""!==options.servername&&(options.servername=net.isIP(options.host)?"":options.host),tls.connect(options)}function abortHandshake(websocket,stream,message2){websocket._readyState=WebSocket2.CLOSING;const err=new Error(message2);Error.captureStackTrace(err,abortHandshake),stream.setHeader?(stream.abort(),stream.socket&&!stream.socket.destroyed&&stream.socket.destroy(),stream.once("abort",websocket.emitClose.bind(websocket)),websocket.emit("error",err)):(stream.destroy(err),stream.once("error",websocket.emit.bind(websocket,"error")),stream.once("close",websocket.emitClose.bind(websocket)))}function sendAfterClose(websocket,data,cb){if(data){const length=toBuffer(data).length;websocket._socket?websocket._sender._bufferedBytes+=length:websocket._bufferedAmount+=length}if(cb){cb(new Error(`WebSocket is not open: readyState ${websocket.readyState} (${readyStates[websocket.readyState]})`))}}function receiverOnConclude(code2,reason){const websocket=this[kWebSocket];websocket._closeFrameReceived=!0,websocket._closeMessage=reason,websocket._closeCode=code2,void 0!==websocket._socket[kWebSocket]&&(websocket._socket.removeListener("data",socketOnData),process.nextTick(resume,websocket._socket),1005===code2?websocket.close():websocket.close(code2,reason))}function receiverOnDrain(){this[kWebSocket]._socket.resume()}function receiverOnError(err){const websocket=this[kWebSocket];void 0!==websocket._socket[kWebSocket]&&(websocket._socket.removeListener("data",socketOnData),process.nextTick(resume,websocket._socket),websocket.close(err[kStatusCode])),websocket.emit("error",err)}function receiverOnFinish(){this[kWebSocket].emitClose()}function receiverOnMessage(data){this[kWebSocket].emit("message",data)}function receiverOnPing(data){const websocket=this[kWebSocket];websocket.pong(data,!websocket._isServer,NOOP),websocket.emit("ping",data)}function receiverOnPong(data){this[kWebSocket].emit("pong",data)}function resume(stream){stream.resume()}function socketOnClose(){const websocket=this[kWebSocket];let chunk;this.removeListener("close",socketOnClose),this.removeListener("data",socketOnData),this.removeListener("end",socketOnEnd),websocket._readyState=WebSocket2.CLOSING,!this._readableState.endEmitted&&!websocket._closeFrameReceived&&!websocket._receiver._writableState.errorEmitted&&null!==(chunk=websocket._socket.read())&&websocket._receiver.write(chunk),websocket._receiver.end(),this[kWebSocket]=void 0,clearTimeout(websocket._closeTimer),websocket._receiver._writableState.finished||websocket._receiver._writableState.errorEmitted?websocket.emitClose():(websocket._receiver.on("error",receiverOnFinish),websocket._receiver.on("finish",receiverOnFinish))}function socketOnData(chunk){this[kWebSocket]._receiver.write(chunk)||this.pause()}function socketOnEnd(){const websocket=this[kWebSocket];websocket._readyState=WebSocket2.CLOSING,websocket._receiver.end(),this.end()}function socketOnError(){const websocket=this[kWebSocket];this.removeListener("error",socketOnError),this.on("error",NOOP),websocket&&(websocket._readyState=WebSocket2.CLOSING,this.destroy())}__name(WebSocket2,"WebSocket"),Object.defineProperty(WebSocket2,"CONNECTING",{enumerable:!0,value:readyStates.indexOf("CONNECTING")}),Object.defineProperty(WebSocket2.prototype,"CONNECTING",{enumerable:!0,value:readyStates.indexOf("CONNECTING")}),Object.defineProperty(WebSocket2,"OPEN",{enumerable:!0,value:readyStates.indexOf("OPEN")}),Object.defineProperty(WebSocket2.prototype,"OPEN",{enumerable:!0,value:readyStates.indexOf("OPEN")}),Object.defineProperty(WebSocket2,"CLOSING",{enumerable:!0,value:readyStates.indexOf("CLOSING")}),Object.defineProperty(WebSocket2.prototype,"CLOSING",{enumerable:!0,value:readyStates.indexOf("CLOSING")}),Object.defineProperty(WebSocket2,"CLOSED",{enumerable:!0,value:readyStates.indexOf("CLOSED")}),Object.defineProperty(WebSocket2.prototype,"CLOSED",{enumerable:!0,value:readyStates.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","protocol","readyState","url"].forEach(property=>{Object.defineProperty(WebSocket2.prototype,property,{enumerable:!0})}),["open","error","close","message"].forEach(method=>{Object.defineProperty(WebSocket2.prototype,`on${method}`,{enumerable:!0,get(){const listeners=this.listeners(method);for(let i2=0;i2{const bencode=__webpack_require__2(10760),debug=__webpack_require__2(58574)("bittorrent-tracker:server"),dgram=__webpack_require__2(71891),EventEmitter=__webpack_require__2(82361),http=__webpack_require__2(13685),peerid=__webpack_require__2(77318),series=__webpack_require__2(66661),string2compact=__webpack_require__2(85610),WebSocketServer=__webpack_require__2(77475).Server,common=__webpack_require__2(55340),Swarm=__webpack_require__2(12146),parseHttpRequest=__webpack_require__2(18509),parseUdpRequest=__webpack_require__2(67288),parseWebSocketRequest=__webpack_require__2(74126),hasOwnProperty=Object.prototype.hasOwnProperty;class Server extends EventEmitter{constructor(opts={}){if(super(),debug("new server %s",JSON.stringify(opts)),this.intervalMs=opts.interval?opts.interval:6e5,this._trustProxy=!!opts.trustProxy,"function"==typeof opts.filter&&(this._filter=opts.filter),this.peersCacheLength=opts.peersCacheLength,this.peersCacheTtl=opts.peersCacheTtl,this._listenCalled=!1,this.listening=!1,this.destroyed=!1,this.torrents={},this.http=null,this.udp4=null,this.udp6=null,this.ws=null,!1!==opts.http&&(this.http=http.createServer(isObject(opts.http)?opts.http:void 0),this.http.on("error",err=>{this._onError(err)}),this.http.on("listening",onListening),process.nextTick(()=>{this.http.on("request",(req,res)=>{res.headersSent||this.onHttpRequest(req,res)})})),!1!==opts.udp&&(this.udp4=this.udp=dgram.createSocket({type:"udp4",reuseAddr:!0,...isObject(opts.udp)?opts.udp:void 0}),this.udp4.on("message",(msg,rinfo)=>{this.onUdpRequest(msg,rinfo)}),this.udp4.on("error",err=>{this._onError(err)}),this.udp4.on("listening",onListening),this.udp6=dgram.createSocket({type:"udp6",reuseAddr:!0,...isObject(opts.udp)?opts.udp:void 0}),this.udp6.on("message",(msg,rinfo)=>{this.onUdpRequest(msg,rinfo)}),this.udp6.on("error",err=>{this._onError(err)}),this.udp6.on("listening",onListening)),!1!==opts.ws){const noServer=isObject(opts.ws)&&opts.ws.noServer;!this.http&&!noServer&&(this.http=http.createServer(),this.http.on("error",err=>{this._onError(err)}),this.http.on("listening",onListening),process.nextTick(()=>{this.http.on("request",(req,res)=>{res.headersSent||(res.statusCode=404,res.end("404 Not Found"))})})),this.ws=new WebSocketServer({server:noServer?void 0:this.http,perMessageDeflate:!1,clientTracking:!1,...isObject(opts.ws)?opts.ws:void 0}),this.ws.address=()=>{if(noServer)throw new Error("address() unavailable with { noServer: true }");return this.http.address()},this.ws.on("error",err=>{this._onError(err)}),this.ws.on("connection",(socket,req)=>{socket.upgradeReq=req,this.onWebSocketConnection(socket)})}!1!==opts.stats&&(this.http||(this.http=http.createServer(),this.http.on("error",err=>{this._onError(err)}),this.http.on("listening",onListening)),this.http.on("request",(req,res)=>{if(res.headersSent)return;const infoHashes=Object.keys(this.torrents);let activeTorrents=0;const allPeers={};function countPeers(filterFunction){let key,count=0;for(key in allPeers)hasOwnProperty.call(allPeers,key)&&filterFunction(allPeers[key])&&count++;return count}function groupByClient(){const clients={};for(const key in allPeers)if(hasOwnProperty.call(allPeers,key)){const peer=allPeers[key];clients[peer.client.client]||(clients[peer.client.client]={});const client=clients[peer.client.client],version=peer.client.version||Buffer.from(peer.peerId,"hex").toString().substring(0,8);client[version]||(client[version]=0),client[version]++}return clients}function printClients(clients){let html="
    \n";for(const name in clients)if(hasOwnProperty.call(clients,name)){const client=clients[name];for(const version in client)hasOwnProperty.call(client,version)&&(html+=`
  • ${name} ${version} : ${client[version]}
  • \n`)}return html+="
",html}if(__name(countPeers,"countPeers"),__name(groupByClient,"groupByClient"),__name(printClients,"printClients"),"GET"===req.method&&("/stats"===req.url||"/stats.json"===req.url)){infoHashes.forEach(infoHash=>{const peers=this.torrents[infoHash].peers,keys=peers.keys;keys.length>0&&activeTorrents++,keys.forEach(peerId=>{const peer=peers.peek(peerId);null!=peer&&(hasOwnProperty.call(allPeers,peerId)||(allPeers[peerId]={ipv4:!1,ipv6:!1,seeder:!1,leecher:!1}),peer.ip.includes(":")?allPeers[peerId].ipv6=!0:allPeers[peerId].ipv4=!0,peer.complete?allPeers[peerId].seeder=!0:allPeers[peerId].leecher=!0,allPeers[peerId].peerId=peer.peerId,allPeers[peerId].client=peerid(peer.peerId))})});const isSeederOnly=__name(peer=>peer.seeder&&!1===peer.leecher,"isSeederOnly"),isLeecherOnly=__name(peer=>peer.leecher&&!1===peer.seeder,"isLeecherOnly"),isSeederAndLeecher=__name(peer=>peer.seeder&&peer.leecher,"isSeederAndLeecher"),isIPv4=__name(peer=>peer.ipv4,"isIPv4"),isIPv6=__name(peer=>peer.ipv6,"isIPv6"),stats={torrents:infoHashes.length,activeTorrents,peersAll:Object.keys(allPeers).length,peersSeederOnly:countPeers(isSeederOnly),peersLeecherOnly:countPeers(isLeecherOnly),peersSeederAndLeecher:countPeers(isSeederAndLeecher),peersIPv4:countPeers(isIPv4),peersIPv6:countPeers(isIPv6),clients:groupByClient()};"/stats.json"===req.url||"application/json"===req.headers.accept?(res.setHeader("Content-Type","application/json"),res.end(JSON.stringify(stats))):"/stats"===req.url&&(res.setHeader("Content-Type","text/html"),res.end(`\n

${stats.torrents} torrents (${stats.activeTorrents} active)

\n

Connected Peers: ${stats.peersAll}

\n

Peers Seeding Only: ${stats.peersSeederOnly}

\n

Peers Leeching Only: ${stats.peersLeecherOnly}

\n

Peers Seeding & Leeching: ${stats.peersSeederAndLeecher}

\n

IPv4 Peers: ${stats.peersIPv4}

\n

IPv6 Peers: ${stats.peersIPv6}

\n

Clients:

\n ${printClients(stats.clients)}\n `.replace(/^\s+/gm,"")))}}));let num=!!this.http+!!this.udp4+!!this.udp6;const self2=this;function onListening(){num-=1,0===num&&(self2.listening=!0,debug("listening"),self2.emit("listening"))}__name(onListening,"onListening")}_onError(err){this.emit("error",err)}listen(...args2){if(this._listenCalled||this.listening)throw new Error("server already listening");this._listenCalled=!0;const lastArg=args2[args2.length-1];"function"==typeof lastArg&&this.once("listening",lastArg);const port=toNumber(args2[0])||args2[0]||0,hostname="function"!=typeof args2[1]?args2[1]:void 0;debug("listen (port: %o hostname: %o)",port,hostname);const httpPort=isObject(port)?port.http||0:port,udpPort=isObject(port)?port.udp||0:port,httpHostname=isObject(hostname)?hostname.http:hostname,udp4Hostname=isObject(hostname)?hostname.udp:hostname,udp6Hostname=isObject(hostname)?hostname.udp6:hostname;this.http&&this.http.listen(httpPort,httpHostname),this.udp4&&this.udp4.bind(udpPort,udp4Hostname),this.udp6&&this.udp6.bind(udpPort,udp6Hostname)}close(cb=noop){if(debug("close"),this.listening=!1,this.destroyed=!0,this.udp4)try{this.udp4.close()}catch{}if(this.udp6)try{this.udp6.close()}catch{}if(this.ws)try{this.ws.close()}catch{}this.http?this.http.close(cb):cb(null)}createSwarm(infoHash,cb){Buffer.isBuffer(infoHash)&&(infoHash=infoHash.toString("hex")),process.nextTick(()=>{const swarm=this.torrents[infoHash]=new Server.Swarm(infoHash,this);cb(null,swarm)})}getSwarm(infoHash,cb){Buffer.isBuffer(infoHash)&&(infoHash=infoHash.toString("hex")),process.nextTick(()=>{cb(null,this.torrents[infoHash])})}onHttpRequest(req,res,opts={}){let params;opts.trustProxy=opts.trustProxy||this._trustProxy;try{params=parseHttpRequest(req,opts),params.httpReq=req,params.httpRes=res}catch(err){return res.end(bencode.encode({"failure reason":err.message})),void this.emit("warning",err)}this._onRequest(params,(err,response)=>{if(err&&(this.emit("warning",err),response={"failure reason":err.message}),this.destroyed)return res.end();delete response.action,res.end(bencode.encode(response)),params.action===common.ACTIONS.ANNOUNCE&&this.emit(common.EVENT_NAMES[params.event],params.addr,params)})}onUdpRequest(msg,rinfo){let params;try{params=parseUdpRequest(msg,rinfo)}catch(err){return void this.emit("warning",err)}this._onRequest(params,(err,response)=>{if(err&&(this.emit("warning",err),response={action:common.ACTIONS.ERROR,"failure reason":err.message}),this.destroyed)return;response.transactionId=params.transactionId,response.connectionId=params.connectionId;const buf=makeUdpPacket(response);try{("IPv4"===rinfo.family?this.udp4:this.udp6).send(buf,0,buf.length,rinfo.port,rinfo.address)}catch(err2){this.emit("warning",err2)}params.action===common.ACTIONS.ANNOUNCE&&this.emit(common.EVENT_NAMES[params.event],params.addr,params)})}onWebSocketConnection(socket,opts={}){opts.trustProxy=opts.trustProxy||this._trustProxy,socket.peerId=null,socket.infoHashes=[],socket.onSend=err=>{this._onWebSocketSend(socket,err)},socket.onMessageBound=params=>{this._onWebSocketRequest(socket,opts,params)},socket.on("message",socket.onMessageBound),socket.onErrorBound=err=>{this._onWebSocketError(socket,err)},socket.on("error",socket.onErrorBound),socket.onCloseBound=()=>{this._onWebSocketClose(socket)},socket.on("close",socket.onCloseBound)}_onWebSocketRequest(socket,opts,params){try{params=parseWebSocketRequest(socket,opts,params)}catch(err){return socket.send(JSON.stringify({"failure reason":err.message}),socket.onSend),void this.emit("warning",err)}socket.peerId||(socket.peerId=params.peer_id),this._onRequest(params,(err,response)=>{if(this.destroyed||socket.destroyed)return;if(err)return socket.send(JSON.stringify({action:params.action===common.ACTIONS.ANNOUNCE?"announce":"scrape","failure reason":err.message,info_hash:common.hexToBinary(params.info_hash)}),socket.onSend),void this.emit("warning",err);let peers;response.action=params.action===common.ACTIONS.ANNOUNCE?"announce":"scrape","announce"===response.action&&(peers=response.peers,delete response.peers,socket.infoHashes.includes(params.info_hash)||socket.infoHashes.push(params.info_hash),response.info_hash=common.hexToBinary(params.info_hash),response.interval=Math.ceil(this.intervalMs/1e3/5)),params.answer||(socket.send(JSON.stringify(response),socket.onSend),debug("sent response %s to %s",JSON.stringify(response),params.peer_id)),Array.isArray(params.offers)&&(debug("got %s offers from %s",params.offers.length,params.peer_id),debug("got %s peers from swarm %s",peers.length,params.info_hash),peers.forEach((peer,i2)=>{peer.socket.send(JSON.stringify({action:"announce",offer:params.offers[i2].offer,offer_id:params.offers[i2].offer_id,peer_id:common.hexToBinary(params.peer_id),info_hash:common.hexToBinary(params.info_hash)}),peer.socket.onSend),debug("sent offer to %s from %s",peer.peerId,params.peer_id)}));const done=__name(()=>{params.action===common.ACTIONS.ANNOUNCE&&this.emit(common.EVENT_NAMES[params.event],params.peer_id,params)},"done");params.answer?(debug("got answer %s from %s",JSON.stringify(params.answer),params.peer_id),this.getSwarm(params.info_hash,(err2,swarm)=>{if(this.destroyed)return;if(err2)return this.emit("warning",err2);if(!swarm)return this.emit("warning",new Error("no swarm with that `info_hash`"));const toPeer=swarm.peers.get(params.to_peer_id);if(!toPeer)return this.emit("warning",new Error("no peer with that `to_peer_id`"));toPeer.socket.send(JSON.stringify({action:"announce",answer:params.answer,offer_id:params.offer_id,peer_id:common.hexToBinary(params.peer_id),info_hash:common.hexToBinary(params.info_hash)}),toPeer.socket.onSend),debug("sent answer to %s from %s",toPeer.peerId,params.peer_id),done()})):done()})}_onWebSocketSend(socket,err){err&&this._onWebSocketError(socket,err)}_onWebSocketClose(socket){debug("websocket close %s",socket.peerId),socket.destroyed=!0,socket.peerId&&socket.infoHashes.slice(0).forEach(infoHash=>{const swarm=this.torrents[infoHash];swarm&&swarm.announce({type:"ws",event:"stopped",numwant:0,peer_id:socket.peerId})}),socket.onSend=noop,socket.on("error",noop),socket.peerId=null,socket.infoHashes=null,"function"==typeof socket.onMessageBound&&socket.removeListener("message",socket.onMessageBound),socket.onMessageBound=null,"function"==typeof socket.onErrorBound&&socket.removeListener("error",socket.onErrorBound),socket.onErrorBound=null,"function"==typeof socket.onCloseBound&&socket.removeListener("close",socket.onCloseBound),socket.onCloseBound=null}_onWebSocketError(socket,err){debug("websocket error %s",err.message||err),this.emit("warning",err),this._onWebSocketClose(socket)}_onRequest(params,cb){params&¶ms.action===common.ACTIONS.CONNECT?cb(null,{action:common.ACTIONS.CONNECT}):params&¶ms.action===common.ACTIONS.ANNOUNCE?this._onAnnounce(params,cb):params&¶ms.action===common.ACTIONS.SCRAPE?this._onScrape(params,cb):cb(new Error("Invalid action"))}_onAnnounce(params,cb){const self2=this;function getOrCreateSwarm(cb2){self2.getSwarm(params.info_hash,(err,swarm)=>err?cb2(err):swarm?cb2(null,swarm):void self2.createSwarm(params.info_hash,(err2,swarm2)=>{if(err2)return cb2(err2);cb2(null,swarm2)}))}function announce(swarm){(!params.event||"empty"===params.event)&&(params.event="update"),swarm.announce(params,(err,response)=>{if(err)return cb(err);if(response.action||(response.action=common.ACTIONS.ANNOUNCE),response.interval||(response.interval=Math.ceil(self2.intervalMs/1e3)),1===params.compact){const peers=response.peers;response.peers=string2compact(peers.filter(peer=>common.IPV4_RE.test(peer.ip)).map(peer=>`${peer.ip}:${peer.port}`)),response.peers6=string2compact(peers.filter(peer=>common.IPV6_RE.test(peer.ip)).map(peer=>`[${peer.ip}]:${peer.port}`))}else 0===params.compact&&(response.peers=response.peers.map(peer=>({"peer id":common.hexToBinary(peer.peerId),ip:peer.ip,port:peer.port})));cb(null,response)})}this._filter?this._filter(params.info_hash,params,err=>{if(err)return cb(err);getOrCreateSwarm((err2,swarm)=>{if(err2)return cb(err2);announce(swarm)})}):getOrCreateSwarm((err,swarm)=>{if(err)return cb(err);announce(swarm)}),__name(getOrCreateSwarm,"getOrCreateSwarm"),__name(announce,"announce")}_onScrape(params,cb){null==params.info_hash&&(params.info_hash=Object.keys(this.torrents)),series(params.info_hash.map(infoHash=>cb2=>{this.getSwarm(infoHash,(err,swarm)=>{if(err)return cb2(err);swarm?swarm.scrape(params,(err2,scrapeInfo)=>{if(err2)return cb2(err2);cb2(null,{infoHash,complete:scrapeInfo&&scrapeInfo.complete||0,incomplete:scrapeInfo&&scrapeInfo.incomplete||0})}):cb2(null,{infoHash,complete:0,incomplete:0})})}),(err,results)=>{if(err)return cb(err);const response={action:common.ACTIONS.SCRAPE,files:{},flags:{min_request_interval:Math.ceil(this.intervalMs/1e3)}};results.forEach(result=>{response.files[common.hexToBinary(result.infoHash)]={complete:result.complete||0,incomplete:result.incomplete||0,downloaded:result.complete||0}}),cb(null,response)})}}function makeUdpPacket(params){let packet;switch(params.action){case common.ACTIONS.CONNECT:packet=Buffer.concat([common.toUInt32(common.ACTIONS.CONNECT),common.toUInt32(params.transactionId),params.connectionId]);break;case common.ACTIONS.ANNOUNCE:packet=Buffer.concat([common.toUInt32(common.ACTIONS.ANNOUNCE),common.toUInt32(params.transactionId),common.toUInt32(params.interval),common.toUInt32(params.incomplete),common.toUInt32(params.complete),params.peers]);break;case common.ACTIONS.SCRAPE:{const scrapeResponse=[common.toUInt32(common.ACTIONS.SCRAPE),common.toUInt32(params.transactionId)];for(const infoHash in params.files){const file2=params.files[infoHash];scrapeResponse.push(common.toUInt32(file2.complete),common.toUInt32(file2.downloaded),common.toUInt32(file2.incomplete))}packet=Buffer.concat(scrapeResponse);break}case common.ACTIONS.ERROR:packet=Buffer.concat([common.toUInt32(common.ACTIONS.ERROR),common.toUInt32(params.transactionId||0),Buffer.from(String(params["failure reason"]))]);break;default:throw new Error(`Action not implemented: ${params.action}`)}return packet}function isObject(obj){return"object"==typeof obj&&null!==obj}function toNumber(x){return(x=Number(x))>=0&&x}function noop(){}__name(Server,"Server"),Server.Swarm=Swarm,__name(makeUdpPacket,"makeUdpPacket"),__name(isObject,"isObject"),__name(toNumber,"toNumber"),__name(noop,"noop"),module2.exports=Server},81767:module2=>{module2.exports=__name(function(blob,cb){if("undefined"==typeof Blob||!(blob instanceof Blob))throw new Error("first argument must be a Blob");if("function"!=typeof cb)throw new Error("second argument must be a function");const reader=new FileReader;function onLoadEnd(e){reader.removeEventListener("loadend",onLoadEnd,!1),e.error?cb(e.error):cb(null,Buffer.from(reader.result))}__name(onLoadEnd,"onLoadEnd"),reader.addEventListener("loadend",onLoadEnd,!1),reader.readAsArrayBuffer(blob)},"blobToBuffer")},98538:function(module2,__unused_webpack_exports2,__webpack_require__2){(function(module3,exports2){"use strict";function assert(val,msg){if(!val)throw new Error(msg||"Assertion failed")}function inherits(ctor,superCtor){ctor.super_=superCtor;var TempCtor=__name(function(){},"TempCtor");TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}function BN(number,base,endian){if(BN.isBN(number))return number;this.negative=0,this.words=null,this.length=0,this.red=null,null!==number&&(("le"===base||"be"===base)&&(endian=base,base=10),this._init(number||0,base||10,endian||"be"))}var Buffer2;__name(assert,"assert"),__name(inherits,"inherits"),__name(BN,"BN"),"object"==typeof module3?module3.exports=BN:exports2.BN=BN,BN.BN=BN,BN.wordSize=26;try{Buffer2="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:__webpack_require__2(14300).Buffer}catch{}function parseHex4Bits(string,index){var c=string.charCodeAt(index);return c>=48&&c<=57?c-48:c>=65&&c<=70?c-55:c>=97&&c<=102?c-87:void assert(!1,"Invalid character in "+string)}function parseHexByte(string,lowerBound,index){var r=parseHex4Bits(string,index);return index-1>=lowerBound&&(r|=parseHex4Bits(string,index-1)<<4),r}function parseBase(str,start,end,mul){for(var r=0,b2=0,len=Math.min(str.length,end),i2=start;i2=49?c-49+10:c>=17?c-17+10:c,assert(c>=0&&b20?left:right},"max"),BN.min=__name(function(left,right){return left.cmp(right)<0?left:right},"min"),BN.prototype._init=__name(function(number,base,endian){if("number"==typeof number)return this._initNumber(number,base,endian);if("object"==typeof number)return this._initArray(number,base,endian);"hex"===base&&(base=16),assert(base===(0|base)&&base>=2&&base<=36);var start=0;"-"===(number=number.toString().replace(/\s+/g,""))[0]&&(start++,this.negative=1),start=0;i2-=3)w=number[i2]|number[i2-1]<<8|number[i2-2]<<16,this.words[j]|=w<>>26-off&67108863,(off+=24)>=26&&(off-=26,j++);else if("le"===endian)for(i2=0,j=0;i2>>26-off&67108863,(off+=24)>=26&&(off-=26,j++);return this._strip()},"_initArray"),__name(parseHex4Bits,"parseHex4Bits"),__name(parseHexByte,"parseHexByte"),BN.prototype._parseHex=__name(function(number,start,endian){this.length=Math.ceil((number.length-start)/6),this.words=new Array(this.length);for(var i2=0;i2=start;i2-=2)w=parseHexByte(number,start,i2)<=18?(off-=18,j+=1,this.words[j]|=w>>>26):off+=8;else for(i2=(number.length-start)%2==0?start+1:start;i2=18?(off-=18,j+=1,this.words[j]|=w>>>26):off+=8;this._strip()},"_parseHex"),__name(parseBase,"parseBase"),BN.prototype._parseBase=__name(function(number,base,start){this.words=[0],this.length=1;for(var limbLen=0,limbPow=1;limbPow<=67108863;limbPow*=base)limbLen++;limbLen--,limbPow=limbPow/base|0;for(var total=number.length-start,mod=total%limbLen,end=Math.min(total,total-mod)+start,word=0,i2=start;i21&&0===this.words[this.length-1];)this.length--;return this._normSign()},"strip"),BN.prototype._normSign=__name(function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"_normSign"),"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{BN.prototype[Symbol.for("nodejs.util.inspect.custom")]=inspect}catch{BN.prototype.inspect=inspect}else BN.prototype.inspect=inspect;function inspect(){return(this.red?""}__name(inspect,"inspect");var zeros=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],groupSizes=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],groupBases=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];BN.prototype.toString=__name(function(base,padding){var out;if(padding=0|padding||1,16===(base=base||10)||"hex"===base){out="";for(var off=0,carry=0,i2=0;i2>>24-off&16777215)||i2!==this.length-1?zeros[6-word.length]+word+out:word+out,(off+=2)>=26&&(off-=26,i2--)}for(0!==carry&&(out=carry.toString(16)+out);out.length%padding!=0;)out="0"+out;return 0!==this.negative&&(out="-"+out),out}if(base===(0|base)&&base>=2&&base<=36){var groupSize=groupSizes[base],groupBase=groupBases[base];out="";var c=this.clone();for(c.negative=0;!c.isZero();){var r=c.modrn(groupBase).toString(base);out=(c=c.idivn(groupBase)).isZero()?r+out:zeros[groupSize-r.length]+r+out}for(this.isZero()&&(out="0"+out);out.length%padding!=0;)out="0"+out;return 0!==this.negative&&(out="-"+out),out}assert(!1,"Base should be between 2 and 36")},"toString"),BN.prototype.toNumber=__name(function(){var ret=this.words[0];return 2===this.length?ret+=67108864*this.words[1]:3===this.length&&1===this.words[2]?ret+=4503599627370496+67108864*this.words[1]:this.length>2&&assert(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-ret:ret},"toNumber"),BN.prototype.toJSON=__name(function(){return this.toString(16,2)},"toJSON"),Buffer2&&(BN.prototype.toBuffer=__name(function(endian,length){return this.toArrayLike(Buffer2,endian,length)},"toBuffer")),BN.prototype.toArray=__name(function(endian,length){return this.toArrayLike(Array,endian,length)},"toArray");var allocate=__name(function(ArrayType,size){return ArrayType.allocUnsafe?ArrayType.allocUnsafe(size):new ArrayType(size)},"allocate");function toBitArray(num){for(var w=new Array(num.bitLength()),bit=0;bit>>wbit&1}return w}function smallMulTo(self2,num,out){out.negative=num.negative^self2.negative;var len=self2.length+num.length|0;out.length=len,len=len-1|0;var a=0|self2.words[0],b2=0|num.words[0],r=a*b2,lo=67108863&r,carry=r/67108864|0;out.words[0]=lo;for(var k=1;k>>26,rword=67108863&carry,maxJ=Math.min(k,num.length-1),j=Math.max(0,k-self2.length+1);j<=maxJ;j++){var i2=k-j|0;ncarry+=(r=(a=0|self2.words[i2])*(b2=0|num.words[j])+rword)/67108864|0,rword=67108863&r}out.words[k]=0|rword,carry=0|ncarry}return 0!==carry?out.words[k]=0|carry:out.length--,out._strip()}BN.prototype.toArrayLike=__name(function(ArrayType,endian,length){this._strip();var byteLength=this.byteLength(),reqLength=length||Math.max(1,byteLength);assert(byteLength<=reqLength,"byte array longer than desired length"),assert(reqLength>0,"Requested array length <= 0");var res=allocate(ArrayType,reqLength);return this["_toArrayLike"+("le"===endian?"LE":"BE")](res,byteLength),res},"toArrayLike"),BN.prototype._toArrayLikeLE=__name(function(res,byteLength){for(var position=0,carry=0,i2=0,shift=0;i2>8&255),position>16&255),6===shift?(position>24&255),carry=0,shift=0):(carry=word>>>24,shift+=2)}if(position=0&&(res[position--]=word>>8&255),position>=0&&(res[position--]=word>>16&255),6===shift?(position>=0&&(res[position--]=word>>24&255),carry=0,shift=0):(carry=word>>>24,shift+=2)}if(position>=0)for(res[position--]=carry;position>=0;)res[position--]=0},"_toArrayLikeBE"),Math.clz32?BN.prototype._countBits=__name(function(w){return 32-Math.clz32(w)},"_countBits"):BN.prototype._countBits=__name(function(w){var t=w,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},"_countBits"),BN.prototype._zeroBits=__name(function(w){if(0===w)return 26;var t=w,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},"_zeroBits"),BN.prototype.bitLength=__name(function(){var w=this.words[this.length-1],hi=this._countBits(w);return 26*(this.length-1)+hi},"bitLength"),__name(toBitArray,"toBitArray"),BN.prototype.zeroBits=__name(function(){if(this.isZero())return 0;for(var r=0,i2=0;i2num.length?this.clone().ior(num):num.clone().ior(this)},"or"),BN.prototype.uor=__name(function(num){return this.length>num.length?this.clone().iuor(num):num.clone().iuor(this)},"uor"),BN.prototype.iuand=__name(function(num){var b2;b2=this.length>num.length?num:this;for(var i2=0;i2num.length?this.clone().iand(num):num.clone().iand(this)},"and"),BN.prototype.uand=__name(function(num){return this.length>num.length?this.clone().iuand(num):num.clone().iuand(this)},"uand"),BN.prototype.iuxor=__name(function(num){var a,b2;this.length>num.length?(a=this,b2=num):(a=num,b2=this);for(var i2=0;i2num.length?this.clone().ixor(num):num.clone().ixor(this)},"xor"),BN.prototype.uxor=__name(function(num){return this.length>num.length?this.clone().iuxor(num):num.clone().iuxor(this)},"uxor"),BN.prototype.inotn=__name(function(width){assert("number"==typeof width&&width>=0);var bytesNeeded=0|Math.ceil(width/26),bitsLeft=width%26;this._expand(bytesNeeded),bitsLeft>0&&bytesNeeded--;for(var i2=0;i20&&(this.words[i2]=~this.words[i2]&67108863>>26-bitsLeft),this._strip()},"inotn"),BN.prototype.notn=__name(function(width){return this.clone().inotn(width)},"notn"),BN.prototype.setn=__name(function(bit,val){assert("number"==typeof bit&&bit>=0);var off=bit/26|0,wbit=bit%26;return this._expand(off+1),this.words[off]=val?this.words[off]|1<num.length?(a=this,b2=num):(a=num,b2=this);for(var carry=0,i2=0;i2>>26;for(;0!==carry&&i2>>26;if(this.length=a.length,0!==carry)this.words[this.length]=carry,this.length++;else if(a!==this)for(;i2num.length?this.clone().iadd(num):num.clone().iadd(this)},"add"),BN.prototype.isub=__name(function(num){if(0!==num.negative){num.negative=0;var r=this.iadd(num);return num.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(num),this.negative=1,this._normSign();var a,b2,cmp=this.cmp(num);if(0===cmp)return this.negative=0,this.length=1,this.words[0]=0,this;cmp>0?(a=this,b2=num):(a=num,b2=this);for(var carry=0,i2=0;i2>26,this.words[i2]=67108863&r;for(;0!==carry&&i2>26,this.words[i2]=67108863&r;if(0===carry&&i2>>13,a1=0|a[1],al1=8191&a1,ah1=a1>>>13,a2=0|a[2],al2=8191&a2,ah2=a2>>>13,a3=0|a[3],al3=8191&a3,ah3=a3>>>13,a4=0|a[4],al4=8191&a4,ah4=a4>>>13,a5=0|a[5],al5=8191&a5,ah5=a5>>>13,a6=0|a[6],al6=8191&a6,ah6=a6>>>13,a7=0|a[7],al7=8191&a7,ah7=a7>>>13,a8=0|a[8],al8=8191&a8,ah8=a8>>>13,a9=0|a[9],al9=8191&a9,ah9=a9>>>13,b0=0|b2[0],bl0=8191&b0,bh0=b0>>>13,b1=0|b2[1],bl1=8191&b1,bh1=b1>>>13,b22=0|b2[2],bl2=8191&b22,bh2=b22>>>13,b3=0|b2[3],bl3=8191&b3,bh3=b3>>>13,b4=0|b2[4],bl4=8191&b4,bh4=b4>>>13,b5=0|b2[5],bl5=8191&b5,bh5=b5>>>13,b6=0|b2[6],bl6=8191&b6,bh6=b6>>>13,b7=0|b2[7],bl7=8191&b7,bh7=b7>>>13,b8=0|b2[8],bl8=8191&b8,bh8=b8>>>13,b9=0|b2[9],bl9=8191&b9,bh9=b9>>>13;out.negative=self2.negative^num.negative,out.length=19;var w0=(c+(lo=Math.imul(al0,bl0))|0)+((8191&(mid=(mid=Math.imul(al0,bh0))+Math.imul(ah0,bl0)|0))<<13)|0;c=((hi=Math.imul(ah0,bh0))+(mid>>>13)|0)+(w0>>>26)|0,w0&=67108863,lo=Math.imul(al1,bl0),mid=(mid=Math.imul(al1,bh0))+Math.imul(ah1,bl0)|0,hi=Math.imul(ah1,bh0);var w1=(c+(lo=lo+Math.imul(al0,bl1)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh1)|0)+Math.imul(ah0,bl1)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh1)|0)+(mid>>>13)|0)+(w1>>>26)|0,w1&=67108863,lo=Math.imul(al2,bl0),mid=(mid=Math.imul(al2,bh0))+Math.imul(ah2,bl0)|0,hi=Math.imul(ah2,bh0),lo=lo+Math.imul(al1,bl1)|0,mid=(mid=mid+Math.imul(al1,bh1)|0)+Math.imul(ah1,bl1)|0,hi=hi+Math.imul(ah1,bh1)|0;var w2=(c+(lo=lo+Math.imul(al0,bl2)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh2)|0)+Math.imul(ah0,bl2)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh2)|0)+(mid>>>13)|0)+(w2>>>26)|0,w2&=67108863,lo=Math.imul(al3,bl0),mid=(mid=Math.imul(al3,bh0))+Math.imul(ah3,bl0)|0,hi=Math.imul(ah3,bh0),lo=lo+Math.imul(al2,bl1)|0,mid=(mid=mid+Math.imul(al2,bh1)|0)+Math.imul(ah2,bl1)|0,hi=hi+Math.imul(ah2,bh1)|0,lo=lo+Math.imul(al1,bl2)|0,mid=(mid=mid+Math.imul(al1,bh2)|0)+Math.imul(ah1,bl2)|0,hi=hi+Math.imul(ah1,bh2)|0;var w3=(c+(lo=lo+Math.imul(al0,bl3)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh3)|0)+Math.imul(ah0,bl3)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh3)|0)+(mid>>>13)|0)+(w3>>>26)|0,w3&=67108863,lo=Math.imul(al4,bl0),mid=(mid=Math.imul(al4,bh0))+Math.imul(ah4,bl0)|0,hi=Math.imul(ah4,bh0),lo=lo+Math.imul(al3,bl1)|0,mid=(mid=mid+Math.imul(al3,bh1)|0)+Math.imul(ah3,bl1)|0,hi=hi+Math.imul(ah3,bh1)|0,lo=lo+Math.imul(al2,bl2)|0,mid=(mid=mid+Math.imul(al2,bh2)|0)+Math.imul(ah2,bl2)|0,hi=hi+Math.imul(ah2,bh2)|0,lo=lo+Math.imul(al1,bl3)|0,mid=(mid=mid+Math.imul(al1,bh3)|0)+Math.imul(ah1,bl3)|0,hi=hi+Math.imul(ah1,bh3)|0;var w4=(c+(lo=lo+Math.imul(al0,bl4)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh4)|0)+Math.imul(ah0,bl4)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh4)|0)+(mid>>>13)|0)+(w4>>>26)|0,w4&=67108863,lo=Math.imul(al5,bl0),mid=(mid=Math.imul(al5,bh0))+Math.imul(ah5,bl0)|0,hi=Math.imul(ah5,bh0),lo=lo+Math.imul(al4,bl1)|0,mid=(mid=mid+Math.imul(al4,bh1)|0)+Math.imul(ah4,bl1)|0,hi=hi+Math.imul(ah4,bh1)|0,lo=lo+Math.imul(al3,bl2)|0,mid=(mid=mid+Math.imul(al3,bh2)|0)+Math.imul(ah3,bl2)|0,hi=hi+Math.imul(ah3,bh2)|0,lo=lo+Math.imul(al2,bl3)|0,mid=(mid=mid+Math.imul(al2,bh3)|0)+Math.imul(ah2,bl3)|0,hi=hi+Math.imul(ah2,bh3)|0,lo=lo+Math.imul(al1,bl4)|0,mid=(mid=mid+Math.imul(al1,bh4)|0)+Math.imul(ah1,bl4)|0,hi=hi+Math.imul(ah1,bh4)|0;var w5=(c+(lo=lo+Math.imul(al0,bl5)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh5)|0)+Math.imul(ah0,bl5)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh5)|0)+(mid>>>13)|0)+(w5>>>26)|0,w5&=67108863,lo=Math.imul(al6,bl0),mid=(mid=Math.imul(al6,bh0))+Math.imul(ah6,bl0)|0,hi=Math.imul(ah6,bh0),lo=lo+Math.imul(al5,bl1)|0,mid=(mid=mid+Math.imul(al5,bh1)|0)+Math.imul(ah5,bl1)|0,hi=hi+Math.imul(ah5,bh1)|0,lo=lo+Math.imul(al4,bl2)|0,mid=(mid=mid+Math.imul(al4,bh2)|0)+Math.imul(ah4,bl2)|0,hi=hi+Math.imul(ah4,bh2)|0,lo=lo+Math.imul(al3,bl3)|0,mid=(mid=mid+Math.imul(al3,bh3)|0)+Math.imul(ah3,bl3)|0,hi=hi+Math.imul(ah3,bh3)|0,lo=lo+Math.imul(al2,bl4)|0,mid=(mid=mid+Math.imul(al2,bh4)|0)+Math.imul(ah2,bl4)|0,hi=hi+Math.imul(ah2,bh4)|0,lo=lo+Math.imul(al1,bl5)|0,mid=(mid=mid+Math.imul(al1,bh5)|0)+Math.imul(ah1,bl5)|0,hi=hi+Math.imul(ah1,bh5)|0;var w6=(c+(lo=lo+Math.imul(al0,bl6)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh6)|0)+Math.imul(ah0,bl6)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh6)|0)+(mid>>>13)|0)+(w6>>>26)|0,w6&=67108863,lo=Math.imul(al7,bl0),mid=(mid=Math.imul(al7,bh0))+Math.imul(ah7,bl0)|0,hi=Math.imul(ah7,bh0),lo=lo+Math.imul(al6,bl1)|0,mid=(mid=mid+Math.imul(al6,bh1)|0)+Math.imul(ah6,bl1)|0,hi=hi+Math.imul(ah6,bh1)|0,lo=lo+Math.imul(al5,bl2)|0,mid=(mid=mid+Math.imul(al5,bh2)|0)+Math.imul(ah5,bl2)|0,hi=hi+Math.imul(ah5,bh2)|0,lo=lo+Math.imul(al4,bl3)|0,mid=(mid=mid+Math.imul(al4,bh3)|0)+Math.imul(ah4,bl3)|0,hi=hi+Math.imul(ah4,bh3)|0,lo=lo+Math.imul(al3,bl4)|0,mid=(mid=mid+Math.imul(al3,bh4)|0)+Math.imul(ah3,bl4)|0,hi=hi+Math.imul(ah3,bh4)|0,lo=lo+Math.imul(al2,bl5)|0,mid=(mid=mid+Math.imul(al2,bh5)|0)+Math.imul(ah2,bl5)|0,hi=hi+Math.imul(ah2,bh5)|0,lo=lo+Math.imul(al1,bl6)|0,mid=(mid=mid+Math.imul(al1,bh6)|0)+Math.imul(ah1,bl6)|0,hi=hi+Math.imul(ah1,bh6)|0;var w7=(c+(lo=lo+Math.imul(al0,bl7)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh7)|0)+Math.imul(ah0,bl7)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh7)|0)+(mid>>>13)|0)+(w7>>>26)|0,w7&=67108863,lo=Math.imul(al8,bl0),mid=(mid=Math.imul(al8,bh0))+Math.imul(ah8,bl0)|0,hi=Math.imul(ah8,bh0),lo=lo+Math.imul(al7,bl1)|0,mid=(mid=mid+Math.imul(al7,bh1)|0)+Math.imul(ah7,bl1)|0,hi=hi+Math.imul(ah7,bh1)|0,lo=lo+Math.imul(al6,bl2)|0,mid=(mid=mid+Math.imul(al6,bh2)|0)+Math.imul(ah6,bl2)|0,hi=hi+Math.imul(ah6,bh2)|0,lo=lo+Math.imul(al5,bl3)|0,mid=(mid=mid+Math.imul(al5,bh3)|0)+Math.imul(ah5,bl3)|0,hi=hi+Math.imul(ah5,bh3)|0,lo=lo+Math.imul(al4,bl4)|0,mid=(mid=mid+Math.imul(al4,bh4)|0)+Math.imul(ah4,bl4)|0,hi=hi+Math.imul(ah4,bh4)|0,lo=lo+Math.imul(al3,bl5)|0,mid=(mid=mid+Math.imul(al3,bh5)|0)+Math.imul(ah3,bl5)|0,hi=hi+Math.imul(ah3,bh5)|0,lo=lo+Math.imul(al2,bl6)|0,mid=(mid=mid+Math.imul(al2,bh6)|0)+Math.imul(ah2,bl6)|0,hi=hi+Math.imul(ah2,bh6)|0,lo=lo+Math.imul(al1,bl7)|0,mid=(mid=mid+Math.imul(al1,bh7)|0)+Math.imul(ah1,bl7)|0,hi=hi+Math.imul(ah1,bh7)|0;var w8=(c+(lo=lo+Math.imul(al0,bl8)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh8)|0)+Math.imul(ah0,bl8)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh8)|0)+(mid>>>13)|0)+(w8>>>26)|0,w8&=67108863,lo=Math.imul(al9,bl0),mid=(mid=Math.imul(al9,bh0))+Math.imul(ah9,bl0)|0,hi=Math.imul(ah9,bh0),lo=lo+Math.imul(al8,bl1)|0,mid=(mid=mid+Math.imul(al8,bh1)|0)+Math.imul(ah8,bl1)|0,hi=hi+Math.imul(ah8,bh1)|0,lo=lo+Math.imul(al7,bl2)|0,mid=(mid=mid+Math.imul(al7,bh2)|0)+Math.imul(ah7,bl2)|0,hi=hi+Math.imul(ah7,bh2)|0,lo=lo+Math.imul(al6,bl3)|0,mid=(mid=mid+Math.imul(al6,bh3)|0)+Math.imul(ah6,bl3)|0,hi=hi+Math.imul(ah6,bh3)|0,lo=lo+Math.imul(al5,bl4)|0,mid=(mid=mid+Math.imul(al5,bh4)|0)+Math.imul(ah5,bl4)|0,hi=hi+Math.imul(ah5,bh4)|0,lo=lo+Math.imul(al4,bl5)|0,mid=(mid=mid+Math.imul(al4,bh5)|0)+Math.imul(ah4,bl5)|0,hi=hi+Math.imul(ah4,bh5)|0,lo=lo+Math.imul(al3,bl6)|0,mid=(mid=mid+Math.imul(al3,bh6)|0)+Math.imul(ah3,bl6)|0,hi=hi+Math.imul(ah3,bh6)|0,lo=lo+Math.imul(al2,bl7)|0,mid=(mid=mid+Math.imul(al2,bh7)|0)+Math.imul(ah2,bl7)|0,hi=hi+Math.imul(ah2,bh7)|0,lo=lo+Math.imul(al1,bl8)|0,mid=(mid=mid+Math.imul(al1,bh8)|0)+Math.imul(ah1,bl8)|0,hi=hi+Math.imul(ah1,bh8)|0;var w9=(c+(lo=lo+Math.imul(al0,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh9)|0)+Math.imul(ah0,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh9)|0)+(mid>>>13)|0)+(w9>>>26)|0,w9&=67108863,lo=Math.imul(al9,bl1),mid=(mid=Math.imul(al9,bh1))+Math.imul(ah9,bl1)|0,hi=Math.imul(ah9,bh1),lo=lo+Math.imul(al8,bl2)|0,mid=(mid=mid+Math.imul(al8,bh2)|0)+Math.imul(ah8,bl2)|0,hi=hi+Math.imul(ah8,bh2)|0,lo=lo+Math.imul(al7,bl3)|0,mid=(mid=mid+Math.imul(al7,bh3)|0)+Math.imul(ah7,bl3)|0,hi=hi+Math.imul(ah7,bh3)|0,lo=lo+Math.imul(al6,bl4)|0,mid=(mid=mid+Math.imul(al6,bh4)|0)+Math.imul(ah6,bl4)|0,hi=hi+Math.imul(ah6,bh4)|0,lo=lo+Math.imul(al5,bl5)|0,mid=(mid=mid+Math.imul(al5,bh5)|0)+Math.imul(ah5,bl5)|0,hi=hi+Math.imul(ah5,bh5)|0,lo=lo+Math.imul(al4,bl6)|0,mid=(mid=mid+Math.imul(al4,bh6)|0)+Math.imul(ah4,bl6)|0,hi=hi+Math.imul(ah4,bh6)|0,lo=lo+Math.imul(al3,bl7)|0,mid=(mid=mid+Math.imul(al3,bh7)|0)+Math.imul(ah3,bl7)|0,hi=hi+Math.imul(ah3,bh7)|0,lo=lo+Math.imul(al2,bl8)|0,mid=(mid=mid+Math.imul(al2,bh8)|0)+Math.imul(ah2,bl8)|0,hi=hi+Math.imul(ah2,bh8)|0;var w10=(c+(lo=lo+Math.imul(al1,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al1,bh9)|0)+Math.imul(ah1,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah1,bh9)|0)+(mid>>>13)|0)+(w10>>>26)|0,w10&=67108863,lo=Math.imul(al9,bl2),mid=(mid=Math.imul(al9,bh2))+Math.imul(ah9,bl2)|0,hi=Math.imul(ah9,bh2),lo=lo+Math.imul(al8,bl3)|0,mid=(mid=mid+Math.imul(al8,bh3)|0)+Math.imul(ah8,bl3)|0,hi=hi+Math.imul(ah8,bh3)|0,lo=lo+Math.imul(al7,bl4)|0,mid=(mid=mid+Math.imul(al7,bh4)|0)+Math.imul(ah7,bl4)|0,hi=hi+Math.imul(ah7,bh4)|0,lo=lo+Math.imul(al6,bl5)|0,mid=(mid=mid+Math.imul(al6,bh5)|0)+Math.imul(ah6,bl5)|0,hi=hi+Math.imul(ah6,bh5)|0,lo=lo+Math.imul(al5,bl6)|0,mid=(mid=mid+Math.imul(al5,bh6)|0)+Math.imul(ah5,bl6)|0,hi=hi+Math.imul(ah5,bh6)|0,lo=lo+Math.imul(al4,bl7)|0,mid=(mid=mid+Math.imul(al4,bh7)|0)+Math.imul(ah4,bl7)|0,hi=hi+Math.imul(ah4,bh7)|0,lo=lo+Math.imul(al3,bl8)|0,mid=(mid=mid+Math.imul(al3,bh8)|0)+Math.imul(ah3,bl8)|0,hi=hi+Math.imul(ah3,bh8)|0;var w11=(c+(lo=lo+Math.imul(al2,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al2,bh9)|0)+Math.imul(ah2,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah2,bh9)|0)+(mid>>>13)|0)+(w11>>>26)|0,w11&=67108863,lo=Math.imul(al9,bl3),mid=(mid=Math.imul(al9,bh3))+Math.imul(ah9,bl3)|0,hi=Math.imul(ah9,bh3),lo=lo+Math.imul(al8,bl4)|0,mid=(mid=mid+Math.imul(al8,bh4)|0)+Math.imul(ah8,bl4)|0,hi=hi+Math.imul(ah8,bh4)|0,lo=lo+Math.imul(al7,bl5)|0,mid=(mid=mid+Math.imul(al7,bh5)|0)+Math.imul(ah7,bl5)|0,hi=hi+Math.imul(ah7,bh5)|0,lo=lo+Math.imul(al6,bl6)|0,mid=(mid=mid+Math.imul(al6,bh6)|0)+Math.imul(ah6,bl6)|0,hi=hi+Math.imul(ah6,bh6)|0,lo=lo+Math.imul(al5,bl7)|0,mid=(mid=mid+Math.imul(al5,bh7)|0)+Math.imul(ah5,bl7)|0,hi=hi+Math.imul(ah5,bh7)|0,lo=lo+Math.imul(al4,bl8)|0,mid=(mid=mid+Math.imul(al4,bh8)|0)+Math.imul(ah4,bl8)|0,hi=hi+Math.imul(ah4,bh8)|0;var w12=(c+(lo=lo+Math.imul(al3,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al3,bh9)|0)+Math.imul(ah3,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah3,bh9)|0)+(mid>>>13)|0)+(w12>>>26)|0,w12&=67108863,lo=Math.imul(al9,bl4),mid=(mid=Math.imul(al9,bh4))+Math.imul(ah9,bl4)|0,hi=Math.imul(ah9,bh4),lo=lo+Math.imul(al8,bl5)|0,mid=(mid=mid+Math.imul(al8,bh5)|0)+Math.imul(ah8,bl5)|0,hi=hi+Math.imul(ah8,bh5)|0,lo=lo+Math.imul(al7,bl6)|0,mid=(mid=mid+Math.imul(al7,bh6)|0)+Math.imul(ah7,bl6)|0,hi=hi+Math.imul(ah7,bh6)|0,lo=lo+Math.imul(al6,bl7)|0,mid=(mid=mid+Math.imul(al6,bh7)|0)+Math.imul(ah6,bl7)|0,hi=hi+Math.imul(ah6,bh7)|0,lo=lo+Math.imul(al5,bl8)|0,mid=(mid=mid+Math.imul(al5,bh8)|0)+Math.imul(ah5,bl8)|0,hi=hi+Math.imul(ah5,bh8)|0;var w13=(c+(lo=lo+Math.imul(al4,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al4,bh9)|0)+Math.imul(ah4,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah4,bh9)|0)+(mid>>>13)|0)+(w13>>>26)|0,w13&=67108863,lo=Math.imul(al9,bl5),mid=(mid=Math.imul(al9,bh5))+Math.imul(ah9,bl5)|0,hi=Math.imul(ah9,bh5),lo=lo+Math.imul(al8,bl6)|0,mid=(mid=mid+Math.imul(al8,bh6)|0)+Math.imul(ah8,bl6)|0,hi=hi+Math.imul(ah8,bh6)|0,lo=lo+Math.imul(al7,bl7)|0,mid=(mid=mid+Math.imul(al7,bh7)|0)+Math.imul(ah7,bl7)|0,hi=hi+Math.imul(ah7,bh7)|0,lo=lo+Math.imul(al6,bl8)|0,mid=(mid=mid+Math.imul(al6,bh8)|0)+Math.imul(ah6,bl8)|0,hi=hi+Math.imul(ah6,bh8)|0;var w14=(c+(lo=lo+Math.imul(al5,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al5,bh9)|0)+Math.imul(ah5,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah5,bh9)|0)+(mid>>>13)|0)+(w14>>>26)|0,w14&=67108863,lo=Math.imul(al9,bl6),mid=(mid=Math.imul(al9,bh6))+Math.imul(ah9,bl6)|0,hi=Math.imul(ah9,bh6),lo=lo+Math.imul(al8,bl7)|0,mid=(mid=mid+Math.imul(al8,bh7)|0)+Math.imul(ah8,bl7)|0,hi=hi+Math.imul(ah8,bh7)|0,lo=lo+Math.imul(al7,bl8)|0,mid=(mid=mid+Math.imul(al7,bh8)|0)+Math.imul(ah7,bl8)|0,hi=hi+Math.imul(ah7,bh8)|0;var w15=(c+(lo=lo+Math.imul(al6,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al6,bh9)|0)+Math.imul(ah6,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah6,bh9)|0)+(mid>>>13)|0)+(w15>>>26)|0,w15&=67108863,lo=Math.imul(al9,bl7),mid=(mid=Math.imul(al9,bh7))+Math.imul(ah9,bl7)|0,hi=Math.imul(ah9,bh7),lo=lo+Math.imul(al8,bl8)|0,mid=(mid=mid+Math.imul(al8,bh8)|0)+Math.imul(ah8,bl8)|0,hi=hi+Math.imul(ah8,bh8)|0;var w16=(c+(lo=lo+Math.imul(al7,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al7,bh9)|0)+Math.imul(ah7,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah7,bh9)|0)+(mid>>>13)|0)+(w16>>>26)|0,w16&=67108863,lo=Math.imul(al9,bl8),mid=(mid=Math.imul(al9,bh8))+Math.imul(ah9,bl8)|0,hi=Math.imul(ah9,bh8);var w17=(c+(lo=lo+Math.imul(al8,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al8,bh9)|0)+Math.imul(ah8,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah8,bh9)|0)+(mid>>>13)|0)+(w17>>>26)|0,w17&=67108863;var w18=(c+(lo=Math.imul(al9,bl9))|0)+((8191&(mid=(mid=Math.imul(al9,bh9))+Math.imul(ah9,bl9)|0))<<13)|0;return c=((hi=Math.imul(ah9,bh9))+(mid>>>13)|0)+(w18>>>26)|0,w18&=67108863,o[0]=w0,o[1]=w1,o[2]=w2,o[3]=w3,o[4]=w4,o[5]=w5,o[6]=w6,o[7]=w7,o[8]=w8,o[9]=w9,o[10]=w10,o[11]=w11,o[12]=w12,o[13]=w13,o[14]=w14,o[15]=w15,o[16]=w16,o[17]=w17,o[18]=w18,0!==c&&(o[19]=c,out.length++),out},"comb10MulTo");function bigMulTo(self2,num,out){out.negative=num.negative^self2.negative,out.length=self2.length+num.length;for(var carry=0,hncarry=0,k=0;k>>26)|0)>>>26,ncarry&=67108863}out.words[k]=rword,carry=ncarry,ncarry=hncarry}return 0!==carry?out.words[k]=carry:out.length--,out._strip()}function jumboMulTo(self2,num,out){return bigMulTo(self2,num,out)}function FFTM(x,y){this.x=x,this.y=y}Math.imul||(comb10MulTo=smallMulTo),__name(bigMulTo,"bigMulTo"),__name(jumboMulTo,"jumboMulTo"),BN.prototype.mulTo=__name(function(num,out){var len=this.length+num.length;return 10===this.length&&10===num.length?comb10MulTo(this,num,out):len<63?smallMulTo(this,num,out):len<1024?bigMulTo(this,num,out):jumboMulTo(this,num,out)},"mulTo"),__name(FFTM,"FFTM"),FFTM.prototype.makeRBT=__name(function(N){for(var t=new Array(N),l=BN.prototype._countBits(N)-1,i2=0;i2>=1;return rb},"revBin"),FFTM.prototype.permute=__name(function(rbt,rws,iws,rtws,itws,N){for(var i2=0;i2>>=1)i2++;return 1<>>=13,rws[2*i2+1]=8191&carry,carry>>>=13;for(i2=2*len;i2>=26,carry+=w/67108864|0,carry+=lo>>>26,this.words[i2]=67108863&lo}return 0!==carry&&(this.words[i2]=carry,this.length++),isNegNum?this.ineg():this},"imuln"),BN.prototype.muln=__name(function(num){return this.clone().imuln(num)},"muln"),BN.prototype.sqr=__name(function(){return this.mul(this)},"sqr"),BN.prototype.isqr=__name(function(){return this.imul(this.clone())},"isqr"),BN.prototype.pow=__name(function(num){var w=toBitArray(num);if(0===w.length)return new BN(1);for(var res=this,i2=0;i2=0);var i2,r=bits%26,s=(bits-r)/26,carryMask=67108863>>>26-r<<26-r;if(0!==r){var carry=0;for(i2=0;i2>>26-r}carry&&(this.words[i2]=carry,this.length++)}if(0!==s){for(i2=this.length-1;i2>=0;i2--)this.words[i2+s]=this.words[i2];for(i2=0;i2=0),h=hint?(hint-hint%26)/26:0;var r=bits%26,s=Math.min((bits-r)/26,this.length),mask=67108863^67108863>>>r<s)for(this.length-=s,i2=0;i2=0&&(0!==carry||i2>=h);i2--){var word=0|this.words[i2];this.words[i2]=carry<<26-r|word>>>r,carry=word&mask}return maskedWords&&0!==carry&&(maskedWords.words[maskedWords.length++]=carry),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},"iushrn"),BN.prototype.ishrn=__name(function(bits,hint,extended){return assert(0===this.negative),this.iushrn(bits,hint,extended)},"ishrn"),BN.prototype.shln=__name(function(bits){return this.clone().ishln(bits)},"shln"),BN.prototype.ushln=__name(function(bits){return this.clone().iushln(bits)},"ushln"),BN.prototype.shrn=__name(function(bits){return this.clone().ishrn(bits)},"shrn"),BN.prototype.ushrn=__name(function(bits){return this.clone().iushrn(bits)},"ushrn"),BN.prototype.testn=__name(function(bit){assert("number"==typeof bit&&bit>=0);var r=bit%26,s=(bit-r)/26,q=1<=0);var r=bits%26,s=(bits-r)/26;if(assert(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==r&&s++,this.length=Math.min(s,this.length),0!==r){var mask=67108863^67108863>>>r<=67108864;i2++)this.words[i2]-=67108864,i2===this.length-1?this.words[i2+1]=1:this.words[i2+1]++;return this.length=Math.max(this.length,i2+1),this},"_iaddn"),BN.prototype.isubn=__name(function(num){if(assert("number"==typeof num),assert(num<67108864),num<0)return this.iaddn(-num);if(0!==this.negative)return this.negative=0,this.iaddn(num),this.negative=1,this;if(this.words[0]-=num,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i2=0;i2>26)-(right/67108864|0),this.words[i2+shift]=67108863&w}for(;i2>26,this.words[i2+shift]=67108863&w;if(0===carry)return this._strip();for(assert(-1===carry),carry=0,i2=0;i2>26,this.words[i2]=67108863&w;return this.negative=1,this._strip()},"_ishlnsubmul"),BN.prototype._wordDiv=__name(function(num,mode){var shift=(this.length,num.length),a=this.clone(),b2=num,bhi=0|b2.words[b2.length-1];0!==(shift=26-this._countBits(bhi))&&(b2=b2.ushln(shift),a.iushln(shift),bhi=0|b2.words[b2.length-1]);var q,m=a.length-b2.length;if("mod"!==mode){(q=new BN(null)).length=m+1,q.words=new Array(q.length);for(var i2=0;i2=0;j--){var qj=67108864*(0|a.words[b2.length+j])+(0|a.words[b2.length+j-1]);for(qj=Math.min(qj/bhi|0,67108863),a._ishlnsubmul(b2,qj,j);0!==a.negative;)qj--,a.negative=0,a._ishlnsubmul(b2,1,j),a.isZero()||(a.negative^=1);q&&(q.words[j]=qj)}return q&&q._strip(),a._strip(),"div"!==mode&&0!==shift&&a.iushrn(shift),{div:q||null,mod:a}},"_wordDiv"),BN.prototype.divmod=__name(function(num,mode,positive){return assert(!num.isZero()),this.isZero()?{div:new BN(0),mod:new BN(0)}:0!==this.negative&&0===num.negative?(res=this.neg().divmod(num,mode),"mod"!==mode&&(div=res.div.neg()),"div"!==mode&&(mod=res.mod.neg(),positive&&0!==mod.negative&&mod.iadd(num)),{div,mod}):0===this.negative&&0!==num.negative?(res=this.divmod(num.neg(),mode),"mod"!==mode&&(div=res.div.neg()),{div,mod:res.mod}):0!=(this.negative&num.negative)?(res=this.neg().divmod(num.neg(),mode),"div"!==mode&&(mod=res.mod.neg(),positive&&0!==mod.negative&&mod.isub(num)),{div:res.div,mod}):num.length>this.length||this.cmp(num)<0?{div:new BN(0),mod:this}:1===num.length?"div"===mode?{div:this.divn(num.words[0]),mod:null}:"mod"===mode?{div:null,mod:new BN(this.modrn(num.words[0]))}:{div:this.divn(num.words[0]),mod:new BN(this.modrn(num.words[0]))}:this._wordDiv(num,mode);var div,mod,res},"divmod"),BN.prototype.div=__name(function(num){return this.divmod(num,"div",!1).div},"div"),BN.prototype.mod=__name(function(num){return this.divmod(num,"mod",!1).mod},"mod"),BN.prototype.umod=__name(function(num){return this.divmod(num,"mod",!0).mod},"umod"),BN.prototype.divRound=__name(function(num){var dm=this.divmod(num);if(dm.mod.isZero())return dm.div;var mod=0!==dm.div.negative?dm.mod.isub(num):dm.mod,half=num.ushrn(1),r2=num.andln(1),cmp=mod.cmp(half);return cmp<0||1===r2&&0===cmp?dm.div:0!==dm.div.negative?dm.div.isubn(1):dm.div.iaddn(1)},"divRound"),BN.prototype.modrn=__name(function(num){var isNegNum=num<0;isNegNum&&(num=-num),assert(num<=67108863);for(var p=(1<<26)%num,acc=0,i2=this.length-1;i2>=0;i2--)acc=(p*acc+(0|this.words[i2]))%num;return isNegNum?-acc:acc},"modrn"),BN.prototype.modn=__name(function(num){return this.modrn(num)},"modn"),BN.prototype.idivn=__name(function(num){var isNegNum=num<0;isNegNum&&(num=-num),assert(num<=67108863);for(var carry=0,i2=this.length-1;i2>=0;i2--){var w=(0|this.words[i2])+67108864*carry;this.words[i2]=w/num|0,carry=w%num}return this._strip(),isNegNum?this.ineg():this},"idivn"),BN.prototype.divn=__name(function(num){return this.clone().idivn(num)},"divn"),BN.prototype.egcd=__name(function(p){assert(0===p.negative),assert(!p.isZero());var x=this,y=p.clone();x=0!==x.negative?x.umod(p):x.clone();for(var A=new BN(1),B=new BN(0),C=new BN(0),D=new BN(1),g=0;x.isEven()&&y.isEven();)x.iushrn(1),y.iushrn(1),++g;for(var yp=y.clone(),xp=x.clone();!x.isZero();){for(var i2=0,im=1;0==(x.words[0]&im)&&i2<26;++i2,im<<=1);if(i2>0)for(x.iushrn(i2);i2-- >0;)(A.isOdd()||B.isOdd())&&(A.iadd(yp),B.isub(xp)),A.iushrn(1),B.iushrn(1);for(var j=0,jm=1;0==(y.words[0]&jm)&&j<26;++j,jm<<=1);if(j>0)for(y.iushrn(j);j-- >0;)(C.isOdd()||D.isOdd())&&(C.iadd(yp),D.isub(xp)),C.iushrn(1),D.iushrn(1);x.cmp(y)>=0?(x.isub(y),A.isub(C),B.isub(D)):(y.isub(x),C.isub(A),D.isub(B))}return{a:C,b:D,gcd:y.iushln(g)}},"egcd"),BN.prototype._invmp=__name(function(p){assert(0===p.negative),assert(!p.isZero());var res,a=this,b2=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var x1=new BN(1),x2=new BN(0),delta=b2.clone();a.cmpn(1)>0&&b2.cmpn(1)>0;){for(var i2=0,im=1;0==(a.words[0]&im)&&i2<26;++i2,im<<=1);if(i2>0)for(a.iushrn(i2);i2-- >0;)x1.isOdd()&&x1.iadd(delta),x1.iushrn(1);for(var j=0,jm=1;0==(b2.words[0]&jm)&&j<26;++j,jm<<=1);if(j>0)for(b2.iushrn(j);j-- >0;)x2.isOdd()&&x2.iadd(delta),x2.iushrn(1);a.cmp(b2)>=0?(a.isub(b2),x1.isub(x2)):(b2.isub(a),x2.isub(x1))}return(res=0===a.cmpn(1)?x1:x2).cmpn(0)<0&&res.iadd(p),res},"_invmp"),BN.prototype.gcd=__name(function(num){if(this.isZero())return num.abs();if(num.isZero())return this.abs();var a=this.clone(),b2=num.clone();a.negative=0,b2.negative=0;for(var shift=0;a.isEven()&&b2.isEven();shift++)a.iushrn(1),b2.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b2.isEven();)b2.iushrn(1);var r=a.cmp(b2);if(r<0){var t=a;a=b2,b2=t}else if(0===r||0===b2.cmpn(1))break;a.isub(b2)}return b2.iushln(shift)},"gcd"),BN.prototype.invm=__name(function(num){return this.egcd(num).a.umod(num)},"invm"),BN.prototype.isEven=__name(function(){return 0==(1&this.words[0])},"isEven"),BN.prototype.isOdd=__name(function(){return 1==(1&this.words[0])},"isOdd"),BN.prototype.andln=__name(function(num){return this.words[0]&num},"andln"),BN.prototype.bincn=__name(function(bit){assert("number"==typeof bit);var r=bit%26,s=(bit-r)/26,q=1<>>26,w&=67108863,this.words[i2]=w}return 0!==carry&&(this.words[i2]=carry,this.length++),this},"bincn"),BN.prototype.isZero=__name(function(){return 1===this.length&&0===this.words[0]},"isZero"),BN.prototype.cmpn=__name(function(num){var res,negative=num<0;if(0!==this.negative&&!negative)return-1;if(0===this.negative&&negative)return 1;if(this._strip(),this.length>1)res=1;else{negative&&(num=-num),assert(num<=67108863,"Number is too big");var w=0|this.words[0];res=w===num?0:wnum.length)return 1;if(this.length=0;i2--){var a=0|this.words[i2],b2=0|num.words[i2];if(a!==b2){ab2&&(res=1);break}}return res},"ucmp"),BN.prototype.gtn=__name(function(num){return 1===this.cmpn(num)},"gtn"),BN.prototype.gt=__name(function(num){return 1===this.cmp(num)},"gt"),BN.prototype.gten=__name(function(num){return this.cmpn(num)>=0},"gten"),BN.prototype.gte=__name(function(num){return this.cmp(num)>=0},"gte"),BN.prototype.ltn=__name(function(num){return-1===this.cmpn(num)},"ltn"),BN.prototype.lt=__name(function(num){return-1===this.cmp(num)},"lt"),BN.prototype.lten=__name(function(num){return this.cmpn(num)<=0},"lten"),BN.prototype.lte=__name(function(num){return this.cmp(num)<=0},"lte"),BN.prototype.eqn=__name(function(num){return 0===this.cmpn(num)},"eqn"),BN.prototype.eq=__name(function(num){return 0===this.cmp(num)},"eq"),BN.red=__name(function(num){return new Red(num)},"red"),BN.prototype.toRed=__name(function(ctx){return assert(!this.red,"Already a number in reduction context"),assert(0===this.negative,"red works only with positives"),ctx.convertTo(this)._forceRed(ctx)},"toRed"),BN.prototype.fromRed=__name(function(){return assert(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},"fromRed"),BN.prototype._forceRed=__name(function(ctx){return this.red=ctx,this},"_forceRed"),BN.prototype.forceRed=__name(function(ctx){return assert(!this.red,"Already a number in reduction context"),this._forceRed(ctx)},"forceRed"),BN.prototype.redAdd=__name(function(num){return assert(this.red,"redAdd works only with red numbers"),this.red.add(this,num)},"redAdd"),BN.prototype.redIAdd=__name(function(num){return assert(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,num)},"redIAdd"),BN.prototype.redSub=__name(function(num){return assert(this.red,"redSub works only with red numbers"),this.red.sub(this,num)},"redSub"),BN.prototype.redISub=__name(function(num){return assert(this.red,"redISub works only with red numbers"),this.red.isub(this,num)},"redISub"),BN.prototype.redShl=__name(function(num){return assert(this.red,"redShl works only with red numbers"),this.red.shl(this,num)},"redShl"),BN.prototype.redMul=__name(function(num){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,num),this.red.mul(this,num)},"redMul"),BN.prototype.redIMul=__name(function(num){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,num),this.red.imul(this,num)},"redIMul"),BN.prototype.redSqr=__name(function(){return assert(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},"redSqr"),BN.prototype.redISqr=__name(function(){return assert(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},"redISqr"),BN.prototype.redSqrt=__name(function(){return assert(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},"redSqrt"),BN.prototype.redInvm=__name(function(){return assert(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},"redInvm"),BN.prototype.redNeg=__name(function(){return assert(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},"redNeg"),BN.prototype.redPow=__name(function(num){return assert(this.red&&!num.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,num)},"redPow");var primes={k256:null,p224:null,p192:null,p25519:null};function MPrime(name,p){this.name=name,this.p=new BN(p,16),this.n=this.p.bitLength(),this.k=new BN(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function P224(){MPrime.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P192(){MPrime.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function P25519(){MPrime.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Red(m){if("string"==typeof m){var prime=BN._prime(m);this.m=prime.p,this.prime=prime}else assert(m.gtn(1),"modulus must be greater than 1"),this.m=m,this.prime=null}function Mont(m){Red.call(this,m),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new BN(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}__name(MPrime,"MPrime"),MPrime.prototype._tmp=__name(function(){var tmp=new BN(null);return tmp.words=new Array(Math.ceil(this.n/13)),tmp},"_tmp"),MPrime.prototype.ireduce=__name(function(num){var rlen,r=num;do{this.split(r,this.tmp),rlen=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(rlen>this.n);var cmp=rlen0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},"ireduce"),MPrime.prototype.split=__name(function(input,out){input.iushrn(this.n,0,out)},"split"),MPrime.prototype.imulK=__name(function(num){return num.imul(this.k)},"imulK"),__name(K256,"K256"),inherits(K256,MPrime),K256.prototype.split=__name(function(input,output){for(var outLen=Math.min(input.length,9),i2=0;i2>>22,prev=next}prev>>>=22,input.words[i2-10]=prev,0===prev&&input.length>10?input.length-=10:input.length-=9},"split"),K256.prototype.imulK=__name(function(num){num.words[num.length]=0,num.words[num.length+1]=0,num.length+=2;for(var lo=0,i2=0;i2>>=26,num.words[i2]=lo,carry=hi}return 0!==carry&&(num.words[num.length++]=carry),num},"imulK"),BN._prime=__name(function(name){if(primes[name])return primes[name];var prime2;if("k256"===name)prime2=new K256;else if("p224"===name)prime2=new P224;else if("p192"===name)prime2=new P192;else{if("p25519"!==name)throw new Error("Unknown prime "+name);prime2=new P25519}return primes[name]=prime2,prime2},"prime"),__name(Red,"Red"),Red.prototype._verify1=__name(function(a){assert(0===a.negative,"red works only with positives"),assert(a.red,"red works only with red numbers")},"_verify1"),Red.prototype._verify2=__name(function(a,b2){assert(0==(a.negative|b2.negative),"red works only with positives"),assert(a.red&&a.red===b2.red,"red works only with red numbers")},"_verify2"),Red.prototype.imod=__name(function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(move(a,a.umod(this.m)._forceRed(this)),a)},"imod"),Red.prototype.neg=__name(function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},"neg"),Red.prototype.add=__name(function(a,b2){this._verify2(a,b2);var res=a.add(b2);return res.cmp(this.m)>=0&&res.isub(this.m),res._forceRed(this)},"add"),Red.prototype.iadd=__name(function(a,b2){this._verify2(a,b2);var res=a.iadd(b2);return res.cmp(this.m)>=0&&res.isub(this.m),res},"iadd"),Red.prototype.sub=__name(function(a,b2){this._verify2(a,b2);var res=a.sub(b2);return res.cmpn(0)<0&&res.iadd(this.m),res._forceRed(this)},"sub"),Red.prototype.isub=__name(function(a,b2){this._verify2(a,b2);var res=a.isub(b2);return res.cmpn(0)<0&&res.iadd(this.m),res},"isub"),Red.prototype.shl=__name(function(a,num){return this._verify1(a),this.imod(a.ushln(num))},"shl"),Red.prototype.imul=__name(function(a,b2){return this._verify2(a,b2),this.imod(a.imul(b2))},"imul"),Red.prototype.mul=__name(function(a,b2){return this._verify2(a,b2),this.imod(a.mul(b2))},"mul"),Red.prototype.isqr=__name(function(a){return this.imul(a,a.clone())},"isqr"),Red.prototype.sqr=__name(function(a){return this.mul(a,a)},"sqr"),Red.prototype.sqrt=__name(function(a){if(a.isZero())return a.clone();var mod3=this.m.andln(3);if(assert(mod3%2==1),3===mod3){var pow=this.m.add(new BN(1)).iushrn(2);return this.pow(a,pow)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);assert(!q.isZero());var one=new BN(1).toRed(this),nOne=one.redNeg(),lpow=this.m.subn(1).iushrn(1),z=this.m.bitLength();for(z=new BN(2*z*z).toRed(this);0!==this.pow(z,lpow).cmp(nOne);)z.redIAdd(nOne);for(var c=this.pow(z,q),r=this.pow(a,q.addn(1).iushrn(1)),t=this.pow(a,q),m=s;0!==t.cmp(one);){for(var tmp=t,i2=0;0!==tmp.cmp(one);i2++)tmp=tmp.redSqr();assert(i2=0;i2--){for(var word=num.words[i2],j=start-1;j>=0;j--){var bit=word>>j&1;(res!==wnd[0]&&(res=this.sqr(res)),0!==bit||0!==current)?(current<<=1,current|=bit,(4===++currentLen||0===i2&&0===j)&&(res=this.mul(res,wnd[current]),currentLen=0,current=0)):currentLen=0}start=26}return res},"pow"),Red.prototype.convertTo=__name(function(num){var r=num.umod(this.m);return r===num?r.clone():r},"convertTo"),Red.prototype.convertFrom=__name(function(num){var res=num.clone();return res.red=null,res},"convertFrom"),BN.mont=__name(function(num){return new Mont(num)},"mont"),__name(Mont,"Mont"),inherits(Mont,Red),Mont.prototype.convertTo=__name(function(num){return this.imod(num.ushln(this.shift))},"convertTo"),Mont.prototype.convertFrom=__name(function(num){var r=this.imod(num.mul(this.rinv));return r.red=null,r},"convertFrom"),Mont.prototype.imul=__name(function(a,b2){if(a.isZero()||b2.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b2),c=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(c).iushrn(this.shift),res=u;return u.cmp(this.m)>=0?res=u.isub(this.m):u.cmpn(0)<0&&(res=u.iadd(this.m)),res._forceRed(this)},"imul"),Mont.prototype.mul=__name(function(a,b2){if(a.isZero()||b2.isZero())return new BN(0)._forceRed(this);var t=a.mul(b2),c=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(c).iushrn(this.shift),res=u;return u.cmp(this.m)>=0?res=u.isub(this.m):u.cmpn(0)<0&&(res=u.iadd(this.m)),res._forceRed(this)},"mul"),Mont.prototype.invm=__name(function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)},"invm")})(module2=__webpack_require__2.nmd(module2),this)},28786:(module2,exports2,__webpack_require__2)=>{"use strict";var deprecate2=__webpack_require__2(64297)("body-parser"),parsers=Object.create(null);function bodyParser(options){var opts={};if(options)for(var prop in options)"type"!==prop&&(opts[prop]=options[prop]);var _urlencoded=exports2.urlencoded(opts),_json=exports2.json(opts);return __name(function(req,res,next){_json(req,res,function(err){if(err)return next(err);_urlencoded(req,res,next)})},"bodyParser")}function createParserGetter(name){return __name(function(){return loadParser(name)},"get")}function loadParser(parserName){var parser=parsers[parserName];if(void 0!==parser)return parser;switch(parserName){case"json":parser=__webpack_require__2(57172);break;case"raw":parser=__webpack_require__2(99728);break;case"text":parser=__webpack_require__2(80903);break;case"urlencoded":parser=__webpack_require__2(42299)}return parsers[parserName]=parser}exports2=module2.exports=deprecate2.function(bodyParser,"bodyParser: use individual json/urlencoded middlewares"),Object.defineProperty(exports2,"json",{configurable:!0,enumerable:!0,get:createParserGetter("json")}),Object.defineProperty(exports2,"raw",{configurable:!0,enumerable:!0,get:createParserGetter("raw")}),Object.defineProperty(exports2,"text",{configurable:!0,enumerable:!0,get:createParserGetter("text")}),Object.defineProperty(exports2,"urlencoded",{configurable:!0,enumerable:!0,get:createParserGetter("urlencoded")}),__name(bodyParser,"bodyParser"),__name(createParserGetter,"createParserGetter"),__name(loadParser,"loadParser")},89774:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var createError=__webpack_require__2(13104),destroy=__webpack_require__2(34742),getBody=__webpack_require__2(22377),iconv=__webpack_require__2(16525),onFinished=__webpack_require__2(29615),unpipe=__webpack_require__2(28376),zlib=__webpack_require__2(59796);function read(req,res,next,parse,debug,options){var length,stream,opts=options;req._body=!0;var encoding=null!==opts.encoding?opts.encoding:null,verify=opts.verify;try{length=(stream=contentstream(req,debug,opts.inflate)).length,stream.length=void 0}catch(err){return next(err)}if(opts.length=length,opts.encoding=verify?null:encoding,null===opts.encoding&&null!==encoding&&!iconv.encodingExists(encoding))return next(createError(415,'unsupported charset "'+encoding.toUpperCase()+'"',{charset:encoding.toLowerCase(),type:"charset.unsupported"}));debug("read body"),getBody(stream,opts,function(error,body){var _error;if(error)return _error="encoding.unsupported"===error.type?createError(415,'unsupported charset "'+encoding.toUpperCase()+'"',{charset:encoding.toLowerCase(),type:"charset.unsupported"}):createError(400,error),stream!==req&&(unpipe(req),destroy(stream,!0)),void dump(req,__name(function(){next(createError(400,_error))},"onfinished"));if(verify)try{debug("verify body"),verify(req,res,body,encoding)}catch(err){return void next(createError(403,err,{body,type:err.type||"entity.verify.failed"}))}var str=body;try{debug("parse body"),str="string"!=typeof body&&null!==encoding?iconv.decode(body,encoding):body,req.body=parse(str)}catch(err){return void next(createError(400,err,{body:str,type:err.type||"entity.parse.failed"}))}next()})}function contentstream(req,debug,inflate){var stream,encoding=(req.headers["content-encoding"]||"identity").toLowerCase(),length=req.headers["content-length"];if(debug('content-encoding "%s"',encoding),!1===inflate&&"identity"!==encoding)throw createError(415,"content encoding unsupported",{encoding,type:"encoding.unsupported"});switch(encoding){case"deflate":stream=zlib.createInflate(),debug("inflate body"),req.pipe(stream);break;case"gzip":stream=zlib.createGunzip(),debug("gunzip body"),req.pipe(stream);break;case"identity":(stream=req).length=length;break;default:throw createError(415,'unsupported content encoding "'+encoding+'"',{encoding,type:"encoding.unsupported"})}return stream}function dump(req,callback){onFinished.isFinished(req)?callback(null):(onFinished(req,callback),req.resume())}module2.exports=read,__name(read,"read"),__name(contentstream,"contentstream"),__name(dump,"dump")},57172:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var bytes=__webpack_require__2(61220),contentType=__webpack_require__2(85812),createError=__webpack_require__2(13104),debug=__webpack_require__2(82609)("body-parser:json"),read=__webpack_require__2(89774),typeis=__webpack_require__2(10875);module2.exports=json;var FIRST_CHAR_REGEXP=/^[\x20\x09\x0a\x0d]*([^\x20\x09\x0a\x0d])/;function json(options){var opts=options||{},limit="number"!=typeof opts.limit?bytes.parse(opts.limit||"100kb"):opts.limit,inflate=!1!==opts.inflate,reviver=opts.reviver,strict=!1!==opts.strict,type=opts.type||"application/json",verify=opts.verify||!1;if(!1!==verify&&"function"!=typeof verify)throw new TypeError("option verify must be function");var shouldParse="function"!=typeof type?typeChecker(type):type;function parse(body){if(0===body.length)return{};if(strict){var first=firstchar(body);if("{"!==first&&"["!==first)throw debug("strict violation"),createStrictSyntaxError(body,first)}try{return debug("parse json"),JSON.parse(body,reviver)}catch(e){throw normalizeJsonSyntaxError(e,{message:e.message,stack:e.stack})}}return __name(parse,"parse"),__name(function(req,res,next){if(req._body)return debug("body already parsed"),void next();if(req.body=req.body||{},!typeis.hasBody(req))return debug("skip empty body"),void next();if(debug("content-type %j",req.headers["content-type"]),!shouldParse(req))return debug("skip parsing"),void next();var charset=getCharset(req)||"utf-8";if("utf-"!==charset.slice(0,4))return debug("invalid charset"),void next(createError(415,'unsupported charset "'+charset.toUpperCase()+'"',{charset,type:"charset.unsupported"}));read(req,res,next,parse,debug,{encoding:charset,inflate,limit,verify})},"jsonParser")}function createStrictSyntaxError(str,char){var index=str.indexOf(char),partial=-1!==index?str.substring(0,index)+"#":"";try{throw JSON.parse(partial),new SyntaxError("strict violation")}catch(e){return normalizeJsonSyntaxError(e,{message:e.message.replace("#",char),stack:e.stack})}}function firstchar(str){var match=FIRST_CHAR_REGEXP.exec(str);return match?match[1]:void 0}function getCharset(req){try{return(contentType.parse(req).parameters.charset||"").toLowerCase()}catch{return}}function normalizeJsonSyntaxError(error,obj){for(var keys=Object.getOwnPropertyNames(error),i2=0;i2{"use strict";var bytes=__webpack_require__2(61220),debug=__webpack_require__2(82609)("body-parser:raw"),read=__webpack_require__2(89774),typeis=__webpack_require__2(10875);function raw(options){var opts=options||{},inflate=!1!==opts.inflate,limit="number"!=typeof opts.limit?bytes.parse(opts.limit||"100kb"):opts.limit,type=opts.type||"application/octet-stream",verify=opts.verify||!1;if(!1!==verify&&"function"!=typeof verify)throw new TypeError("option verify must be function");var shouldParse="function"!=typeof type?typeChecker(type):type;function parse(buf){return buf}return __name(parse,"parse"),__name(function(req,res,next){return req._body?(debug("body already parsed"),void next()):(req.body=req.body||{},typeis.hasBody(req)?(debug("content-type %j",req.headers["content-type"]),shouldParse(req)?void read(req,res,next,parse,debug,{encoding:null,inflate,limit,verify}):(debug("skip parsing"),void next())):(debug("skip empty body"),void next()))},"rawParser")}function typeChecker(type){return __name(function(req){return Boolean(typeis(req,type))},"checkType")}module2.exports=raw,__name(raw,"raw"),__name(typeChecker,"typeChecker")},80903:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var bytes=__webpack_require__2(61220),contentType=__webpack_require__2(85812),debug=__webpack_require__2(82609)("body-parser:text"),read=__webpack_require__2(89774),typeis=__webpack_require__2(10875);function text(options){var opts=options||{},defaultCharset=opts.defaultCharset||"utf-8",inflate=!1!==opts.inflate,limit="number"!=typeof opts.limit?bytes.parse(opts.limit||"100kb"):opts.limit,type=opts.type||"text/plain",verify=opts.verify||!1;if(!1!==verify&&"function"!=typeof verify)throw new TypeError("option verify must be function");var shouldParse="function"!=typeof type?typeChecker(type):type;function parse(buf){return buf}return __name(parse,"parse"),__name(function(req,res,next){if(req._body)return debug("body already parsed"),void next();if(req.body=req.body||{},!typeis.hasBody(req))return debug("skip empty body"),void next();if(debug("content-type %j",req.headers["content-type"]),!shouldParse(req))return debug("skip parsing"),void next();var charset=getCharset(req)||defaultCharset;read(req,res,next,parse,debug,{encoding:charset,inflate,limit,verify})},"textParser")}function getCharset(req){try{return(contentType.parse(req).parameters.charset||"").toLowerCase()}catch{return}}function typeChecker(type){return __name(function(req){return Boolean(typeis(req,type))},"checkType")}module2.exports=text,__name(text,"text"),__name(getCharset,"getCharset"),__name(typeChecker,"typeChecker")},42299:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var bytes=__webpack_require__2(61220),contentType=__webpack_require__2(85812),createError=__webpack_require__2(13104),debug=__webpack_require__2(82609)("body-parser:urlencoded"),deprecate2=__webpack_require__2(64297)("body-parser"),read=__webpack_require__2(89774),typeis=__webpack_require__2(10875);module2.exports=urlencoded;var parsers=Object.create(null);function urlencoded(options){var opts=options||{};void 0===opts.extended&&deprecate2("undefined extended: provide extended option");var extended=!1!==opts.extended,inflate=!1!==opts.inflate,limit="number"!=typeof opts.limit?bytes.parse(opts.limit||"100kb"):opts.limit,type=opts.type||"application/x-www-form-urlencoded",verify=opts.verify||!1;if(!1!==verify&&"function"!=typeof verify)throw new TypeError("option verify must be function");var queryparse=extended?extendedparser(opts):simpleparser(opts),shouldParse="function"!=typeof type?typeChecker(type):type;function parse(body){return body.length?queryparse(body):{}}return __name(parse,"parse"),__name(function(req,res,next){if(req._body)return debug("body already parsed"),void next();if(req.body=req.body||{},!typeis.hasBody(req))return debug("skip empty body"),void next();if(debug("content-type %j",req.headers["content-type"]),!shouldParse(req))return debug("skip parsing"),void next();var charset=getCharset(req)||"utf-8";if("utf-8"!==charset)return debug("invalid charset"),void next(createError(415,'unsupported charset "'+charset.toUpperCase()+'"',{charset,type:"charset.unsupported"}));read(req,res,next,parse,debug,{debug,encoding:charset,inflate,limit,verify})},"urlencodedParser")}function extendedparser(options){var parameterLimit=void 0!==options.parameterLimit?options.parameterLimit:1e3,parse=parser("qs");if(isNaN(parameterLimit)||parameterLimit<1)throw new TypeError("option parameterLimit must be a positive number");return isFinite(parameterLimit)&&(parameterLimit|=0),__name(function(body){var paramCount=parameterCount(body,parameterLimit);if(void 0===paramCount)throw debug("too many parameters"),createError(413,"too many parameters",{type:"parameters.too.many"});var arrayLimit=Math.max(100,paramCount);return debug("parse extended urlencoding"),parse(body,{allowPrototypes:!0,arrayLimit,depth:1/0,parameterLimit})},"queryparse")}function getCharset(req){try{return(contentType.parse(req).parameters.charset||"").toLowerCase()}catch{return}}function parameterCount(body,limit){for(var count=0,index=0;-1!==(index=body.indexOf("&",index));)if(index++,++count===limit)return;return count}function parser(name){var mod=parsers[name];if(void 0!==mod)return mod.parse;switch(name){case"qs":mod=__webpack_require__2(81781);break;case"querystring":mod=__webpack_require__2(63477)}return parsers[name]=mod,mod.parse}function simpleparser(options){var parameterLimit=void 0!==options.parameterLimit?options.parameterLimit:1e3,parse=parser("querystring");if(isNaN(parameterLimit)||parameterLimit<1)throw new TypeError("option parameterLimit must be a positive number");return isFinite(parameterLimit)&&(parameterLimit|=0),__name(function(body){if(void 0===parameterCount(body,parameterLimit))throw debug("too many parameters"),createError(413,"too many parameters",{type:"parameters.too.many"});return debug("parse urlencoding"),parse(body,void 0,void 0,{maxKeys:parameterLimit})},"queryparse")}function typeChecker(type){return __name(function(req){return Boolean(typeis(req,type))},"checkType")}__name(urlencoded,"urlencoded"),__name(extendedparser,"extendedparser"),__name(getCharset,"getCharset"),__name(parameterCount,"parameterCount"),__name(parser,"parser"),__name(simpleparser,"simpleparser"),__name(typeChecker,"typeChecker")},59921:(module2,exports2,__webpack_require__2)=>{function useColors(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function formatArgs(args2){var useColors2=this.useColors;if(args2[0]=(useColors2?"%c":"")+this.namespace+(useColors2?" %c":" ")+args2[0]+(useColors2?"%c ":" ")+"+"+exports2.humanize(this.diff),useColors2){var c="color: "+this.color;args2.splice(1,0,c,"color: inherit");var index=0,lastC=0;args2[0].replace(/%[a-zA-Z%]/g,function(match){"%%"!==match&&(index++,"%c"===match&&(lastC=index))}),args2.splice(lastC,0,c)}}function log2(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(namespaces){try{null==namespaces?exports2.storage.removeItem("debug"):exports2.storage.debug=namespaces}catch{}}function load(){var r;try{r=exports2.storage.debug}catch{}return!r&&"undefined"!=typeof process&&"env"in process&&(r=process.env.DEBUG),r}function localstorage(){try{return window.localStorage}catch{}}(exports2=module2.exports=__webpack_require__2(69860)).log=log2,exports2.formatArgs=formatArgs,exports2.save=save,exports2.load=load,exports2.useColors=useColors,exports2.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:localstorage(),exports2.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],__name(useColors,"useColors"),exports2.formatters.j=function(v){try{return JSON.stringify(v)}catch(err){return"[UnexpectedJSONParseError]: "+err.message}},__name(formatArgs,"formatArgs"),__name(log2,"log"),__name(save,"save"),__name(load,"load"),exports2.enable(load()),__name(localstorage,"localstorage")},69860:(module2,exports2,__webpack_require__2)=>{var prevTime;function selectColor(namespace){var i2,hash=0;for(i2 in namespace)hash=(hash<<5)-hash+namespace.charCodeAt(i2),hash|=0;return exports2.colors[Math.abs(hash)%exports2.colors.length]}function createDebug(namespace){function debug(){if(debug.enabled){var self2=debug,curr=+new Date,ms=curr-(prevTime||curr);self2.diff=ms,self2.prev=prevTime,self2.curr=curr,prevTime=curr;for(var args2=new Array(arguments.length),i2=0;i2{"undefined"!=typeof process&&"renderer"===process.type?module2.exports=__webpack_require__2(59921):module2.exports=__webpack_require__2(15451)},15451:(module2,exports2,__webpack_require__2)=>{var tty=__webpack_require__2(76224),util=__webpack_require__2(73837);(exports2=module2.exports=__webpack_require__2(69860)).init=init,exports2.log=log2,exports2.formatArgs=formatArgs,exports2.save=save,exports2.load=load,exports2.useColors=useColors,exports2.colors=[6,2,3,4,5,1],exports2.inspectOpts=Object.keys(process.env).filter(function(key){return/^debug_/i.test(key)}).reduce(function(obj,key){var prop=key.substring(6).toLowerCase().replace(/_([a-z])/g,function(_,k){return k.toUpperCase()}),val=process.env[key];return val=!!/^(yes|on|true|enabled)$/i.test(val)||!/^(no|off|false|disabled)$/i.test(val)&&("null"===val?null:Number(val)),obj[prop]=val,obj},{});var fd=parseInt(process.env.DEBUG_FD,10)||2;1!==fd&&2!==fd&&util.deprecate(function(){},"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();var stream=1===fd?process.stdout:2===fd?process.stderr:createWritableStdioStream(fd);function useColors(){return"colors"in exports2.inspectOpts?Boolean(exports2.inspectOpts.colors):tty.isatty(fd)}function formatArgs(args2){var name=this.namespace;if(this.useColors){var c=this.color,prefix=" \x1b[3"+c+";1m"+name+" \x1b[0m";args2[0]=prefix+args2[0].split("\n").join("\n"+prefix),args2.push("\x1b[3"+c+"m+"+exports2.humanize(this.diff)+"\x1b[0m")}else args2[0]=(new Date).toUTCString()+" "+name+" "+args2[0]}function log2(){return stream.write(util.format.apply(util,arguments)+"\n")}function save(namespaces){null==namespaces?delete process.env.DEBUG:process.env.DEBUG=namespaces}function load(){return process.env.DEBUG}function createWritableStdioStream(fd2){var stream2;switch(process.binding("tty_wrap").guessHandleType(fd2)){case"TTY":(stream2=new tty.WriteStream(fd2))._type="tty",stream2._handle&&stream2._handle.unref&&stream2._handle.unref();break;case"FILE":(stream2=new(__webpack_require__2(57147).SyncWriteStream)(fd2,{autoClose:!1}))._type="fs";break;case"PIPE":case"TCP":(stream2=new(__webpack_require__2(41808).Socket)({fd:fd2,readable:!1,writable:!0})).readable=!1,stream2.read=null,stream2._type="pipe",stream2._handle&&stream2._handle.unref&&stream2._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return stream2.fd=fd2,stream2._isStdio=!0,stream2}function init(debug){debug.inspectOpts={};for(var keys=Object.keys(exports2.inspectOpts),i2=0;i2{var s=1e3,m=60*s,h=60*m,d=24*h;function parse(str){if(!((str=String(str)).length>100)){var match=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);if(match){var n=parseFloat(match[1]);switch((match[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"days":case"day":case"d":return n*d;case"hours":case"hour":case"hrs":case"hr":case"h":return n*h;case"minutes":case"minute":case"mins":case"min":case"m":return n*m;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function fmtShort(ms){return ms>=d?Math.round(ms/d)+"d":ms>=h?Math.round(ms/h)+"h":ms>=m?Math.round(ms/m)+"m":ms>=s?Math.round(ms/s)+"s":ms+"ms"}function fmtLong(ms){return plural(ms,d,"day")||plural(ms,h,"hour")||plural(ms,m,"minute")||plural(ms,s,"second")||ms+" ms"}function plural(ms,n,name){if(!(ms0)return parse(val);if("number"===type&&!1===isNaN(val))return options.long?fmtLong(val):fmtShort(val);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(val))},__name(parse,"parse"),__name(fmtShort,"fmtShort"),__name(fmtLong,"fmtLong"),__name(plural,"plural")},77834:module2=>{module2.exports={trueFunc:__name(function(){return!0},"trueFunc"),falseFunc:__name(function(){return!1},"falseFunc")}},80605:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var concatMap=__webpack_require__2(80212),balanced=__webpack_require__2(95818);module2.exports=expandTop;var escSlash="\0SLASH"+Math.random()+"\0",escOpen="\0OPEN"+Math.random()+"\0",escClose="\0CLOSE"+Math.random()+"\0",escComma="\0COMMA"+Math.random()+"\0",escPeriod="\0PERIOD"+Math.random()+"\0";function numeric(str){return parseInt(str,10)==str?parseInt(str,10):str.charCodeAt(0)}function escapeBraces(str){return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod)}function unescapeBraces(str){return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".")}function parseCommaParts(str){if(!str)return[""];var parts=[],m=balanced("{","}",str);if(!m)return str.split(",");var pre=m.pre,body=m.body,post=m.post,p=pre.split(",");p[p.length-1]+="{"+body+"}";var postParts=parseCommaParts(post);return post.length&&(p[p.length-1]+=postParts.shift(),p.push.apply(p,postParts)),parts.push.apply(parts,p),parts}function expandTop(str){return str?("{}"===str.substr(0,2)&&(str="\\{\\}"+str.substr(2)),expand(escapeBraces(str),!0).map(unescapeBraces)):[]}function embrace(str){return"{"+str+"}"}function isPadded(el){return/^-?0\d/.test(el)}function lte(i2,y){return i2<=y}function gte(i2,y){return i2>=y}function expand(str,isTop){var expansions=[],m=balanced("{","}",str);if(!m||/\$$/.test(m.pre))return[str];var n,isNumericSequence=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body),isAlphaSequence=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body),isSequence=isNumericSequence||isAlphaSequence,isOptions=m.body.indexOf(",")>=0;if(!isSequence&&!isOptions)return m.post.match(/,.*\}/)?expand(str=m.pre+"{"+m.body+escClose+m.post):[str];if(isSequence)n=m.body.split(/\.\./);else if(1===(n=parseCommaParts(m.body)).length&&1===(n=expand(n[0],!1).map(embrace)).length){return(post=m.post.length?expand(m.post,!1):[""]).map(function(p){return m.pre+n[0]+p})}var N,pre=m.pre,post=m.post.length?expand(m.post,!1):[""];if(isSequence){var x=numeric(n[0]),y=numeric(n[1]),width=Math.max(n[0].length,n[1].length),incr=3==n.length?Math.abs(numeric(n[2])):1,test=lte;y0){var z=new Array(need+1).join("0");c=i2<0?"-"+z+c.slice(1):z+c}}N.push(c)}}else N=concatMap(n,function(el){return expand(el,!1)});for(var j=0;j{"use strict";var Buffer2=__webpack_require__2(14300).Buffer,SlowBuffer=__webpack_require__2(14300).SlowBuffer;function bufferEq(a,b2){if(!Buffer2.isBuffer(a)||!Buffer2.isBuffer(b2)||a.length!==b2.length)return!1;for(var c=0,i2=0;i2{var toString=Object.prototype.toString,isModern="undefined"!=typeof Buffer&&"function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;function isArrayBuffer(input){return"ArrayBuffer"===toString.call(input).slice(8,-1)}function fromArrayBuffer(obj,byteOffset,length){byteOffset>>>=0;var maxLength=obj.byteLength-byteOffset;if(maxLength<0)throw new RangeError("'offset' is out of bounds");if(void 0===length)length=maxLength;else if((length>>>=0)>maxLength)throw new RangeError("'length' is out of bounds");return isModern?Buffer.from(obj.slice(byteOffset,byteOffset+length)):new Buffer(new Uint8Array(obj.slice(byteOffset,byteOffset+length)))}function fromString(string,encoding){if(("string"!=typeof encoding||""===encoding)&&(encoding="utf8"),!Buffer.isEncoding(encoding))throw new TypeError('"encoding" must be a valid string encoding');return isModern?Buffer.from(string,encoding):new Buffer(string,encoding)}function bufferFrom(value,encodingOrOffset,length){if("number"==typeof value)throw new TypeError('"value" argument must not be a number');return isArrayBuffer(value)?fromArrayBuffer(value,encodingOrOffset,length):"string"==typeof value?fromString(value,encodingOrOffset):isModern?Buffer.from(value):new Buffer(value)}__name(isArrayBuffer,"isArrayBuffer"),__name(fromArrayBuffer,"fromArrayBuffer"),__name(fromString,"fromString"),__name(bufferFrom,"bufferFrom"),module2.exports=bufferFrom},34644:module2=>{"use strict";const mask=__name((source,mask2,output,offset,length)=>{for(var i2=0;i2{const length=buffer.length;for(var i2=0;i2{"use strict";try{module2.exports=__webpack_require__2(64226)(__dirname)}catch{module2.exports=__webpack_require__2(34644)}},65293:module2=>{module2.exports={big5:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,17392,19506,17923,17830,17784,160359,19831,17843,162993,19682,163013,15253,18230,18244,19527,19520,148159,144919,160594,159371,159954,19543,172881,18255,17882,19589,162924,19719,19108,18081,158499,29221,154196,137827,146950,147297,26189,22267,null,32149,22813,166841,15860,38708,162799,23515,138590,23204,13861,171696,23249,23479,23804,26478,34195,170309,29793,29853,14453,138579,145054,155681,16108,153822,15093,31484,40855,147809,166157,143850,133770,143966,17162,33924,40854,37935,18736,34323,22678,38730,37400,31184,31282,26208,27177,34973,29772,31685,26498,31276,21071,36934,13542,29636,155065,29894,40903,22451,18735,21580,16689,145038,22552,31346,162661,35727,18094,159368,16769,155033,31662,140476,40904,140481,140489,140492,40905,34052,144827,16564,40906,17633,175615,25281,28782,40907,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,12736,12737,12738,12739,12740,131340,12741,131281,131277,12742,12743,131275,139240,12744,131274,12745,12746,12747,12748,131342,12749,12750,256,193,461,192,274,201,282,200,332,211,465,210,null,7870,null,7872,202,257,225,462,224,593,275,233,283,232,299,237,464,236,333,243,466,242,363,250,468,249,470,472,474,476,252,null,7871,null,7873,234,609,9178,9179,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,172969,135493,null,25866,null,null,20029,28381,40270,37343,null,null,161589,25745,20250,20264,20392,20822,20852,20892,20964,21153,21160,21307,21326,21457,21464,22242,22768,22788,22791,22834,22836,23398,23454,23455,23706,24198,24635,25993,26622,26628,26725,27982,28860,30005,32420,32428,32442,32455,32463,32479,32518,32567,33402,33487,33647,35270,35774,35810,36710,36711,36718,29713,31996,32205,26950,31433,21031,null,null,null,null,37260,30904,37214,32956,null,36107,33014,133607,null,null,32927,40647,19661,40393,40460,19518,171510,159758,40458,172339,13761,null,28314,33342,29977,null,18705,39532,39567,40857,31111,164972,138698,132560,142054,20004,20097,20096,20103,20159,20203,20279,13388,20413,15944,20483,20616,13437,13459,13477,20870,22789,20955,20988,20997,20105,21113,21136,21287,13767,21417,13649,21424,13651,21442,21539,13677,13682,13953,21651,21667,21684,21689,21712,21743,21784,21795,21800,13720,21823,13733,13759,21975,13765,163204,21797,null,134210,134421,151851,21904,142534,14828,131905,36422,150968,169189,16467,164030,30586,142392,14900,18389,164189,158194,151018,25821,134524,135092,134357,135412,25741,36478,134806,134155,135012,142505,164438,148691,null,134470,170573,164073,18420,151207,142530,39602,14951,169460,16365,13574,152263,169940,161992,142660,40302,38933,null,17369,155813,25780,21731,142668,142282,135287,14843,135279,157402,157462,162208,25834,151634,134211,36456,139681,166732,132913,null,18443,131497,16378,22643,142733,null,148936,132348,155799,134988,134550,21881,16571,17338,null,19124,141926,135325,33194,39157,134556,25465,14846,141173,36288,22177,25724,15939,null,173569,134665,142031,142537,null,135368,145858,14738,14854,164507,13688,155209,139463,22098,134961,142514,169760,13500,27709,151099,null,null,161140,142987,139784,173659,167117,134778,134196,157724,32659,135375,141315,141625,13819,152035,134796,135053,134826,16275,134960,134471,135503,134732,null,134827,134057,134472,135360,135485,16377,140950,25650,135085,144372,161337,142286,134526,134527,142417,142421,14872,134808,135367,134958,173618,158544,167122,167321,167114,38314,21708,33476,21945,null,171715,39974,39606,161630,142830,28992,33133,33004,23580,157042,33076,14231,21343,164029,37302,134906,134671,134775,134907,13789,151019,13833,134358,22191,141237,135369,134672,134776,135288,135496,164359,136277,134777,151120,142756,23124,135197,135198,135413,135414,22428,134673,161428,164557,135093,134779,151934,14083,135094,135552,152280,172733,149978,137274,147831,164476,22681,21096,13850,153405,31666,23400,18432,19244,40743,18919,39967,39821,154484,143677,22011,13810,22153,20008,22786,138177,194680,38737,131206,20059,20155,13630,23587,24401,24516,14586,25164,25909,27514,27701,27706,28780,29227,20012,29357,149737,32594,31035,31993,32595,156266,13505,null,156491,32770,32896,157202,158033,21341,34916,35265,161970,35744,36125,38021,38264,38271,38376,167439,38886,39029,39118,39134,39267,17e4,40060,40479,40644,27503,63751,20023,131207,38429,25143,38050,null,20539,28158,171123,40870,15817,34959,147790,28791,23797,19232,152013,13657,154928,24866,166450,36775,37366,29073,26393,29626,144001,172295,15499,137600,19216,30948,29698,20910,165647,16393,27235,172730,16931,34319,133743,31274,170311,166634,38741,28749,21284,139390,37876,30425,166371,40871,30685,20131,20464,20668,20015,20247,40872,21556,32139,22674,22736,138678,24210,24217,24514,141074,25995,144377,26905,27203,146531,27903,null,29184,148741,29580,16091,150035,23317,29881,35715,154788,153237,31379,31724,31939,32364,33528,34199,40873,34960,40874,36537,40875,36815,34143,39392,37409,40876,167353,136255,16497,17058,23066,null,null,null,39016,26475,17014,22333,null,34262,149883,33471,160013,19585,159092,23931,158485,159678,40877,40878,23446,40879,26343,32347,28247,31178,15752,17603,143958,141206,17306,17718,null,23765,146202,35577,23672,15634,144721,23928,40882,29015,17752,147692,138787,19575,14712,13386,131492,158785,35532,20404,131641,22975,33132,38998,170234,24379,134047,null,139713,166253,16642,18107,168057,16135,40883,172469,16632,14294,18167,158790,16764,165554,160767,17773,14548,152730,17761,17691,19849,19579,19830,17898,16328,150287,13921,17630,17597,16877,23870,23880,23894,15868,14351,23972,23993,14368,14392,24130,24253,24357,24451,14600,14612,14655,14669,24791,24893,23781,14729,25015,25017,25039,14776,25132,25232,25317,25368,14840,22193,14851,25570,25595,25607,25690,14923,25792,23829,22049,40863,14999,25990,15037,26111,26195,15090,26258,15138,26390,15170,26532,26624,15192,26698,26756,15218,15217,15227,26889,26947,29276,26980,27039,27013,15292,27094,15325,27237,27252,27249,27266,15340,27289,15346,27307,27317,27348,27382,27521,27585,27626,27765,27818,15563,27906,27910,27942,28033,15599,28068,28081,28181,28184,28201,28294,166336,28347,28386,28378,40831,28392,28393,28452,28468,15686,147265,28545,28606,15722,15733,29111,23705,15754,28716,15761,28752,28756,28783,28799,28809,131877,17345,13809,134872,147159,22462,159443,28990,153568,13902,27042,166889,23412,31305,153825,169177,31333,31357,154028,31419,31408,31426,31427,29137,156813,16842,31450,31453,31466,16879,21682,154625,31499,31573,31529,152334,154878,31650,31599,33692,154548,158847,31696,33825,31634,31672,154912,15789,154725,33938,31738,31750,31797,154817,31812,31875,149634,31910,26237,148856,31945,31943,31974,31860,31987,31989,31950,32359,17693,159300,32093,159446,29837,32137,32171,28981,32179,32210,147543,155689,32228,15635,32245,137209,32229,164717,32285,155937,155994,32366,32402,17195,37996,32295,32576,32577,32583,31030,156368,39393,32663,156497,32675,136801,131176,17756,145254,17667,164666,32762,156809,32773,32776,32797,32808,32815,172167,158915,32827,32828,32865,141076,18825,157222,146915,157416,26405,32935,166472,33031,33050,22704,141046,27775,156824,151480,25831,136330,33304,137310,27219,150117,150165,17530,33321,133901,158290,146814,20473,136445,34018,33634,158474,149927,144688,137075,146936,33450,26907,194964,16859,34123,33488,33562,134678,137140,14017,143741,144730,33403,33506,33560,147083,159139,158469,158615,144846,15807,33565,21996,33669,17675,159141,33708,33729,33747,13438,159444,27223,34138,13462,159298,143087,33880,154596,33905,15827,17636,27303,33866,146613,31064,33960,158614,159351,159299,34014,33807,33681,17568,33939,34020,154769,16960,154816,17731,34100,23282,159385,17703,34163,17686,26559,34326,165413,165435,34241,159880,34306,136578,159949,194994,17770,34344,13896,137378,21495,160666,34430,34673,172280,34798,142375,34737,34778,34831,22113,34412,26710,17935,34885,34886,161248,146873,161252,34910,34972,18011,34996,34997,25537,35013,30583,161551,35207,35210,35238,35241,35239,35260,166437,35303,162084,162493,35484,30611,37374,35472,162393,31465,162618,147343,18195,162616,29052,35596,35615,152624,152933,35647,35660,35661,35497,150138,35728,35739,35503,136927,17941,34895,35995,163156,163215,195028,14117,163155,36054,163224,163261,36114,36099,137488,36059,28764,36113,150729,16080,36215,36265,163842,135188,149898,15228,164284,160012,31463,36525,36534,36547,37588,36633,36653,164709,164882,36773,37635,172703,133712,36787,18730,166366,165181,146875,24312,143970,36857,172052,165564,165121,140069,14720,159447,36919,165180,162494,36961,165228,165387,37032,165651,37060,165606,37038,37117,37223,15088,37289,37316,31916,166195,138889,37390,27807,37441,37474,153017,37561,166598,146587,166668,153051,134449,37676,37739,166625,166891,28815,23235,166626,166629,18789,37444,166892,166969,166911,37747,37979,36540,38277,38310,37926,38304,28662,17081,140922,165592,135804,146990,18911,27676,38523,38550,16748,38563,159445,25050,38582,30965,166624,38589,21452,18849,158904,131700,156688,168111,168165,150225,137493,144138,38705,34370,38710,18959,17725,17797,150249,28789,23361,38683,38748,168405,38743,23370,168427,38751,37925,20688,143543,143548,38793,38815,38833,38846,38848,38866,38880,152684,38894,29724,169011,38911,38901,168989,162170,19153,38964,38963,38987,39014,15118,160117,15697,132656,147804,153350,39114,39095,39112,39111,19199,159015,136915,21936,39137,39142,39148,37752,39225,150057,19314,170071,170245,39413,39436,39483,39440,39512,153381,14020,168113,170965,39648,39650,170757,39668,19470,39700,39725,165376,20532,39732,158120,14531,143485,39760,39744,171326,23109,137315,39822,148043,39938,39935,39948,171624,40404,171959,172434,172459,172257,172323,172511,40318,40323,172340,40462,26760,40388,139611,172435,172576,137531,172595,40249,172217,172724,40592,40597,40606,40610,19764,40618,40623,148324,40641,15200,14821,15645,20274,14270,166955,40706,40712,19350,37924,159138,40727,40726,40761,22175,22154,40773,39352,168075,38898,33919,40802,40809,31452,40846,29206,19390,149877,149947,29047,150008,148296,150097,29598,166874,137466,31135,166270,167478,37737,37875,166468,37612,37761,37835,166252,148665,29207,16107,30578,31299,28880,148595,148472,29054,137199,28835,137406,144793,16071,137349,152623,137208,14114,136955,137273,14049,137076,137425,155467,14115,136896,22363,150053,136190,135848,136134,136374,34051,145062,34051,33877,149908,160101,146993,152924,147195,159826,17652,145134,170397,159526,26617,14131,15381,15847,22636,137506,26640,16471,145215,147681,147595,147727,158753,21707,22174,157361,22162,135135,134056,134669,37830,166675,37788,20216,20779,14361,148534,20156,132197,131967,20299,20362,153169,23144,131499,132043,14745,131850,132116,13365,20265,131776,167603,131701,35546,131596,20120,20685,20749,20386,20227,150030,147082,20290,20526,20588,20609,20428,20453,20568,20732,20825,20827,20829,20830,28278,144789,147001,147135,28018,137348,147081,20904,20931,132576,17629,132259,132242,132241,36218,166556,132878,21081,21156,133235,21217,37742,18042,29068,148364,134176,149932,135396,27089,134685,29817,16094,29849,29716,29782,29592,19342,150204,147597,21456,13700,29199,147657,21940,131909,21709,134086,22301,37469,38644,37734,22493,22413,22399,13886,22731,23193,166470,136954,137071,136976,23084,22968,37519,23166,23247,23058,153926,137715,137313,148117,14069,27909,29763,23073,155267,23169,166871,132115,37856,29836,135939,28933,18802,37896,166395,37821,14240,23582,23710,24158,24136,137622,137596,146158,24269,23375,137475,137476,14081,137376,14045,136958,14035,33066,166471,138682,144498,166312,24332,24334,137511,137131,23147,137019,23364,34324,161277,34912,24702,141408,140843,24539,16056,140719,140734,168072,159603,25024,131134,131142,140827,24985,24984,24693,142491,142599,149204,168269,25713,149093,142186,14889,142114,144464,170218,142968,25399,173147,25782,25393,25553,149987,142695,25252,142497,25659,25963,26994,15348,143502,144045,149897,144043,21773,144096,137433,169023,26318,144009,143795,15072,16784,152964,166690,152975,136956,152923,152613,30958,143619,137258,143924,13412,143887,143746,148169,26254,159012,26219,19347,26160,161904,138731,26211,144082,144097,26142,153714,14545,145466,145340,15257,145314,144382,29904,15254,26511,149034,26806,26654,15300,27326,14435,145365,148615,27187,27218,27337,27397,137490,25873,26776,27212,15319,27258,27479,147392,146586,37792,37618,166890,166603,37513,163870,166364,37991,28069,28427,149996,28007,147327,15759,28164,147516,23101,28170,22599,27940,30786,28987,148250,148086,28913,29264,29319,29332,149391,149285,20857,150180,132587,29818,147192,144991,150090,149783,155617,16134,16049,150239,166947,147253,24743,16115,29900,29756,37767,29751,17567,159210,17745,30083,16227,150745,150790,16216,30037,30323,173510,15129,29800,166604,149931,149902,15099,15821,150094,16127,149957,149747,37370,22322,37698,166627,137316,20703,152097,152039,30584,143922,30478,30479,30587,149143,145281,14942,149744,29752,29851,16063,150202,150215,16584,150166,156078,37639,152961,30750,30861,30856,30930,29648,31065,161601,153315,16654,31131,33942,31141,27181,147194,31290,31220,16750,136934,16690,37429,31217,134476,149900,131737,146874,137070,13719,21867,13680,13994,131540,134157,31458,23129,141045,154287,154268,23053,131675,30960,23082,154566,31486,16889,31837,31853,16913,154547,155324,155302,31949,150009,137136,31886,31868,31918,27314,32220,32263,32211,32590,156257,155996,162632,32151,155266,17002,158581,133398,26582,131150,144847,22468,156690,156664,149858,32733,31527,133164,154345,154947,31500,155150,39398,34373,39523,27164,144447,14818,150007,157101,39455,157088,33920,160039,158929,17642,33079,17410,32966,33033,33090,157620,39107,158274,33378,33381,158289,33875,159143,34320,160283,23174,16767,137280,23339,137377,23268,137432,34464,195004,146831,34861,160802,23042,34926,20293,34951,35007,35046,35173,35149,153219,35156,161669,161668,166901,166873,166812,166393,16045,33955,18165,18127,14322,35389,35356,169032,24397,37419,148100,26068,28969,28868,137285,40301,35999,36073,163292,22938,30659,23024,17262,14036,36394,36519,150537,36656,36682,17140,27736,28603,140065,18587,28537,28299,137178,39913,14005,149807,37051,37015,21873,18694,37307,37892,166475,16482,166652,37927,166941,166971,34021,35371,38297,38311,38295,38294,167220,29765,16066,149759,150082,148458,16103,143909,38543,167655,167526,167525,16076,149997,150136,147438,29714,29803,16124,38721,168112,26695,18973,168083,153567,38749,37736,166281,166950,166703,156606,37562,23313,35689,18748,29689,147995,38811,38769,39224,134950,24001,166853,150194,38943,169178,37622,169431,37349,17600,166736,150119,166756,39132,166469,16128,37418,18725,33812,39227,39245,162566,15869,39323,19311,39338,39516,166757,153800,27279,39457,23294,39471,170225,19344,170312,39356,19389,19351,37757,22642,135938,22562,149944,136424,30788,141087,146872,26821,15741,37976,14631,24912,141185,141675,24839,40015,40019,40059,39989,39952,39807,39887,171565,39839,172533,172286,40225,19630,147716,40472,19632,40204,172468,172269,172275,170287,40357,33981,159250,159711,158594,34300,17715,159140,159364,159216,33824,34286,159232,145367,155748,31202,144796,144960,18733,149982,15714,37851,37566,37704,131775,30905,37495,37965,20452,13376,36964,152925,30781,30804,30902,30795,137047,143817,149825,13978,20338,28634,28633,28702,28702,21524,147893,22459,22771,22410,40214,22487,28980,13487,147884,29163,158784,151447,23336,137141,166473,24844,23246,23051,17084,148616,14124,19323,166396,37819,37816,137430,134941,33906,158912,136211,148218,142374,148417,22932,146871,157505,32168,155995,155812,149945,149899,166394,37605,29666,16105,29876,166755,137375,16097,150195,27352,29683,29691,16086,150078,150164,137177,150118,132007,136228,149989,29768,149782,28837,149878,37508,29670,37727,132350,37681,166606,166422,37766,166887,153045,18741,166530,29035,149827,134399,22180,132634,134123,134328,21762,31172,137210,32254,136898,150096,137298,17710,37889,14090,166592,149933,22960,137407,137347,160900,23201,14050,146779,14e3,37471,23161,166529,137314,37748,15565,133812,19094,14730,20724,15721,15692,136092,29045,17147,164376,28175,168164,17643,27991,163407,28775,27823,15574,147437,146989,28162,28428,15727,132085,30033,14012,13512,18048,16090,18545,22980,37486,18750,36673,166940,158656,22546,22472,14038,136274,28926,148322,150129,143331,135856,140221,26809,26983,136088,144613,162804,145119,166531,145366,144378,150687,27162,145069,158903,33854,17631,17614,159014,159057,158850,159710,28439,160009,33597,137018,33773,158848,159827,137179,22921,23170,137139,23137,23153,137477,147964,14125,23023,137020,14023,29070,37776,26266,148133,23150,23083,148115,27179,147193,161590,148571,148170,28957,148057,166369,20400,159016,23746,148686,163405,148413,27148,148054,135940,28838,28979,148457,15781,27871,194597,150095,32357,23019,23855,15859,24412,150109,137183,32164,33830,21637,146170,144128,131604,22398,133333,132633,16357,139166,172726,28675,168283,23920,29583,31955,166489,168992,20424,32743,29389,29456,162548,29496,29497,153334,29505,29512,16041,162584,36972,29173,149746,29665,33270,16074,30476,16081,27810,22269,29721,29726,29727,16098,16112,16116,16122,29907,16142,16211,30018,30061,30066,30093,16252,30152,30172,16320,30285,16343,30324,16348,30330,151388,29064,22051,35200,22633,16413,30531,16441,26465,16453,13787,30616,16490,16495,23646,30654,30667,22770,30744,28857,30748,16552,30777,30791,30801,30822,33864,152885,31027,26627,31026,16643,16649,31121,31129,36795,31238,36796,16743,31377,16818,31420,33401,16836,31439,31451,16847,20001,31586,31596,31611,31762,31771,16992,17018,31867,31900,17036,31928,17044,31981,36755,28864,134351,32207,32212,32208,32253,32686,32692,29343,17303,32800,32805,31545,32814,32817,32852,15820,22452,28832,32951,33001,17389,33036,29482,33038,33042,30048,33044,17409,15161,33110,33113,33114,17427,22586,33148,33156,17445,33171,17453,33189,22511,33217,33252,33364,17551,33446,33398,33482,33496,33535,17584,33623,38505,27018,33797,28917,33892,24803,33928,17668,33982,34017,34040,34064,34104,34130,17723,34159,34160,34272,17783,34418,34450,34482,34543,38469,34699,17926,17943,34990,35071,35108,35143,35217,162151,35369,35384,35476,35508,35921,36052,36082,36124,18328,22623,36291,18413,20206,36410,21976,22356,36465,22005,36528,18487,36558,36578,36580,36589,36594,36791,36801,36810,36812,36915,39364,18605,39136,37395,18718,37416,37464,37483,37553,37550,37567,37603,37611,37619,37620,37629,37699,37764,37805,18757,18769,40639,37911,21249,37917,37933,37950,18794,37972,38009,38189,38306,18855,38388,38451,18917,26528,18980,38720,18997,38834,38850,22100,19172,24808,39097,19225,39153,22596,39182,39193,20916,39196,39223,39234,39261,39266,19312,39365,19357,39484,39695,31363,39785,39809,39901,39921,39924,19565,39968,14191,138178,40265,39994,40702,22096,40339,40381,40384,40444,38134,36790,40571,40620,40625,40637,40646,38108,40674,40689,40696,31432,40772,131220,131767,132e3,26906,38083,22956,132311,22592,38081,14265,132565,132629,132726,136890,22359,29043,133826,133837,134079,21610,194619,134091,21662,134139,134203,134227,134245,134268,24807,134285,22138,134325,134365,134381,134511,134578,134600,26965,39983,34725,134660,134670,134871,135056,134957,134771,23584,135100,24075,135260,135247,135286,26398,135291,135304,135318,13895,135359,135379,135471,135483,21348,33965,135907,136053,135990,35713,136567,136729,137155,137159,20088,28859,137261,137578,137773,137797,138282,138352,138412,138952,25283,138965,139029,29080,26709,139333,27113,14024,139900,140247,140282,141098,141425,141647,33533,141671,141715,142037,35237,142056,36768,142094,38840,142143,38983,39613,142412,null,142472,142519,154600,142600,142610,142775,142741,142914,143220,143308,143411,143462,144159,144350,24497,26184,26303,162425,144743,144883,29185,149946,30679,144922,145174,32391,131910,22709,26382,26904,146087,161367,155618,146961,147129,161278,139418,18640,19128,147737,166554,148206,148237,147515,148276,148374,150085,132554,20946,132625,22943,138920,15294,146687,148484,148694,22408,149108,14747,149295,165352,170441,14178,139715,35678,166734,39382,149522,149755,150037,29193,150208,134264,22885,151205,151430,132985,36570,151596,21135,22335,29041,152217,152601,147274,150183,21948,152646,152686,158546,37332,13427,152895,161330,152926,18200,152930,152934,153543,149823,153693,20582,13563,144332,24798,153859,18300,166216,154286,154505,154630,138640,22433,29009,28598,155906,162834,36950,156082,151450,35682,156674,156746,23899,158711,36662,156804,137500,35562,150006,156808,147439,156946,19392,157119,157365,141083,37989,153569,24981,23079,194765,20411,22201,148769,157436,20074,149812,38486,28047,158909,13848,35191,157593,157806,156689,157790,29151,157895,31554,168128,133649,157990,37124,158009,31301,40432,158202,39462,158253,13919,156777,131105,31107,158260,158555,23852,144665,33743,158621,18128,158884,30011,34917,159150,22710,14108,140685,159819,160205,15444,160384,160389,37505,139642,160395,37680,160486,149968,27705,38047,160848,134904,34855,35061,141606,164979,137137,28344,150058,137248,14756,14009,23568,31203,17727,26294,171181,170148,35139,161740,161880,22230,16607,136714,14753,145199,164072,136133,29101,33638,162269,168360,23143,19639,159919,166315,162301,162314,162571,163174,147834,31555,31102,163849,28597,172767,27139,164632,21410,159239,37823,26678,38749,164207,163875,158133,136173,143919,163912,23941,166960,163971,22293,38947,166217,23979,149896,26046,27093,21458,150181,147329,15377,26422,163984,164084,164142,139169,164175,164233,164271,164378,164614,164655,164746,13770,164968,165546,18682,25574,166230,30728,37461,166328,17394,166375,17375,166376,166726,166868,23032,166921,36619,167877,168172,31569,168208,168252,15863,168286,150218,36816,29327,22155,169191,169449,169392,169400,169778,170193,170313,170346,170435,170536,170766,171354,171419,32415,171768,171811,19620,38215,172691,29090,172799,19857,36882,173515,19868,134300,36798,21953,36794,140464,36793,150163,17673,32383,28502,27313,20202,13540,166700,161949,14138,36480,137205,163876,166764,166809,162366,157359,15851,161365,146615,153141,153942,20122,155265,156248,22207,134765,36366,23405,147080,150686,25566,25296,137206,137339,25904,22061,154698,21530,152337,15814,171416,19581,22050,22046,32585,155352,22901,146752,34672,19996,135146,134473,145082,33047,40286,36120,30267,40005,30286,30649,37701,21554,33096,33527,22053,33074,33816,32957,21994,31074,22083,21526,134813,13774,22021,22001,26353,164578,13869,30004,22e3,21946,21655,21874,134209,134294,24272,151880,134774,142434,134818,40619,32090,21982,135285,25245,38765,21652,36045,29174,37238,25596,25529,25598,21865,142147,40050,143027,20890,13535,134567,20903,21581,21790,21779,30310,36397,157834,30129,32950,34820,34694,35015,33206,33820,135361,17644,29444,149254,23440,33547,157843,22139,141044,163119,147875,163187,159440,160438,37232,135641,37384,146684,173737,134828,134905,29286,138402,18254,151490,163833,135147,16634,40029,25887,142752,18675,149472,171388,135148,134666,24674,161187,135149,null,155720,135559,29091,32398,40272,19994,19972,13687,23309,27826,21351,13996,14812,21373,13989,149016,22682,150382,33325,21579,22442,154261,133497,null,14930,140389,29556,171692,19721,39917,146686,171824,19547,151465,169374,171998,33884,146870,160434,157619,145184,25390,32037,147191,146988,14890,36872,21196,15988,13946,17897,132238,30272,23280,134838,30842,163630,22695,16575,22140,39819,23924,30292,173108,40581,19681,30201,14331,24857,143578,148466,null,22109,135849,22439,149859,171526,21044,159918,13741,27722,40316,31830,39737,22494,137068,23635,25811,169168,156469,160100,34477,134440,159010,150242,134513,null,20990,139023,23950,38659,138705,40577,36940,31519,39682,23761,31651,25192,25397,39679,31695,39722,31870,39726,31810,31878,39957,31740,39689,40727,39963,149822,40794,21875,23491,20477,40600,20466,21088,15878,21201,22375,20566,22967,24082,38856,40363,36700,21609,38836,39232,38842,21292,24880,26924,21466,39946,40194,19515,38465,27008,20646,30022,137069,39386,21107,null,37209,38529,37212,null,37201,167575,25471,159011,27338,22033,37262,30074,25221,132092,29519,31856,154657,146685,null,149785,30422,39837,20010,134356,33726,34882,null,23626,27072,20717,22394,21023,24053,20174,27697,131570,20281,21660,21722,21146,36226,13822,24332,13811,null,27474,37244,40869,39831,38958,39092,39610,40616,40580,29050,31508,null,27642,34840,32632,null,22048,173642,36471,40787,null,36308,36431,40476,36353,25218,164733,36392,36469,31443,150135,31294,30936,27882,35431,30215,166490,40742,27854,34774,30147,172722,30803,194624,36108,29410,29553,35629,29442,29937,36075,150203,34351,24506,34976,17591,null,137275,159237,null,35454,140571,null,24829,30311,39639,40260,37742,39823,34805,null,34831,36087,29484,38689,39856,13782,29362,19463,31825,39242,155993,24921,19460,40598,24957,null,22367,24943,25254,25145,25294,14940,25058,21418,144373,25444,26626,13778,23895,166850,36826,167481,null,20697,138566,30982,21298,38456,134971,16485,null,30718,null,31938,155418,31962,31277,32870,32867,32077,29957,29938,35220,33306,26380,32866,160902,32859,29936,33027,30500,35209,157644,30035,159441,34729,34766,33224,34700,35401,36013,35651,30507,29944,34010,13877,27058,36262,null,35241,29800,28089,34753,147473,29927,15835,29046,24740,24988,15569,29026,24695,null,32625,166701,29264,24809,19326,21024,15384,146631,155351,161366,152881,137540,135934,170243,159196,159917,23745,156077,166415,145015,131310,157766,151310,17762,23327,156492,40784,40614,156267,12288,65292,12289,12290,65294,8231,65307,65306,65311,65281,65072,8230,8229,65104,65105,65106,183,65108,65109,65110,65111,65372,8211,65073,8212,65075,9588,65076,65103,65288,65289,65077,65078,65371,65373,65079,65080,12308,12309,65081,65082,12304,12305,65083,65084,12298,12299,65085,65086,12296,12297,65087,65088,12300,12301,65089,65090,12302,12303,65091,65092,65113,65114,65115,65116,65117,65118,8216,8217,8220,8221,12317,12318,8245,8242,65283,65286,65290,8251,167,12291,9675,9679,9651,9650,9678,9734,9733,9671,9670,9633,9632,9661,9660,12963,8453,175,65507,65343,717,65097,65098,65101,65102,65099,65100,65119,65120,65121,65291,65293,215,247,177,8730,65308,65310,65309,8806,8807,8800,8734,8786,8801,65122,65123,65124,65125,65126,65374,8745,8746,8869,8736,8735,8895,13266,13265,8747,8750,8757,8756,9792,9794,8853,8857,8593,8595,8592,8594,8598,8599,8601,8600,8741,8739,65295,65340,8725,65128,65284,65509,12306,65504,65505,65285,65312,8451,8457,65129,65130,65131,13269,13212,13213,13214,13262,13217,13198,13199,13252,176,20825,20827,20830,20829,20833,20835,21991,29929,31950,9601,9602,9603,9604,9605,9606,9607,9608,9615,9614,9613,9612,9611,9610,9609,9532,9524,9516,9508,9500,9620,9472,9474,9621,9484,9488,9492,9496,9581,9582,9584,9583,9552,9566,9578,9569,9698,9699,9701,9700,9585,9586,9587,65296,65297,65298,65299,65300,65301,65302,65303,65304,65305,8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,12321,12322,12323,12324,12325,12326,12327,12328,12329,21313,21316,21317,65313,65314,65315,65316,65317,65318,65319,65320,65321,65322,65323,65324,65325,65326,65327,65328,65329,65330,65331,65332,65333,65334,65335,65336,65337,65338,65345,65346,65347,65348,65349,65350,65351,65352,65353,65354,65355,65356,65357,65358,65359,65360,65361,65362,65363,65364,65365,65366,65367,65368,65369,65370,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,963,964,965,966,967,968,969,12549,12550,12551,12552,12553,12554,12555,12556,12557,12558,12559,12560,12561,12562,12563,12564,12565,12566,12567,12568,12569,12570,12571,12572,12573,12574,12575,12576,12577,12578,12579,12580,12581,12582,12583,12584,12585,729,713,714,711,715,9216,9217,9218,9219,9220,9221,9222,9223,9224,9225,9226,9227,9228,9229,9230,9231,9232,9233,9234,9235,9236,9237,9238,9239,9240,9241,9242,9243,9244,9245,9246,9247,9249,8364,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,19968,20057,19969,19971,20035,20061,20102,20108,20154,20799,20837,20843,20960,20992,20993,21147,21269,21313,21340,21448,19977,19979,19976,19978,20011,20024,20961,20037,20040,20063,20062,20110,20129,20800,20995,21242,21315,21449,21475,22303,22763,22805,22823,22899,23376,23377,23379,23544,23567,23586,23608,23665,24029,24037,24049,24050,24051,24062,24178,24318,24331,24339,25165,19985,19984,19981,20013,20016,20025,20043,23609,20104,20113,20117,20114,20116,20130,20161,20160,20163,20166,20167,20173,20170,20171,20164,20803,20801,20839,20845,20846,20844,20887,20982,20998,20999,21e3,21243,21246,21247,21270,21305,21320,21319,21317,21342,21380,21451,21450,21453,22764,22825,22827,22826,22829,23380,23569,23588,23610,23663,24052,24187,24319,24340,24341,24515,25096,25142,25163,25166,25903,25991,26007,26020,26041,26085,26352,26376,26408,27424,27490,27513,27595,27604,27611,27663,27700,28779,29226,29238,29243,29255,29273,29275,29356,29579,19993,19990,19989,19988,19992,20027,20045,20047,20046,20197,20184,20180,20181,20182,20183,20195,20196,20185,20190,20805,20804,20873,20874,20908,20985,20986,20984,21002,21152,21151,21253,21254,21271,21277,20191,21322,21321,21345,21344,21359,21358,21435,21487,21476,21491,21484,21486,21481,21480,21500,21496,21493,21483,21478,21482,21490,21489,21488,21477,21485,21499,22235,22234,22806,22830,22833,22900,22902,23381,23427,23612,24040,24039,24038,24066,24067,24179,24188,24321,24344,24343,24517,25098,25171,25172,25170,25169,26021,26086,26414,26412,26410,26411,26413,27491,27597,27665,27664,27704,27713,27712,27710,29359,29572,29577,29916,29926,29976,29983,29992,29993,3e4,30001,30002,30003,30091,30333,30382,30399,30446,30683,30690,30707,31034,31166,31348,31435,19998,19999,20050,20051,20073,20121,20132,20134,20133,20223,20233,20249,20234,20245,20237,20240,20241,20239,20210,20214,20219,20208,20211,20221,20225,20235,20809,20807,20806,20808,20840,20849,20877,20912,21015,21009,21010,21006,21014,21155,21256,21281,21280,21360,21361,21513,21519,21516,21514,21520,21505,21515,21508,21521,21517,21512,21507,21518,21510,21522,22240,22238,22237,22323,22320,22312,22317,22316,22319,22313,22809,22810,22839,22840,22916,22904,22915,22909,22905,22914,22913,23383,23384,23431,23432,23429,23433,23546,23574,23673,24030,24070,24182,24180,24335,24347,24537,24534,25102,25100,25101,25104,25187,25179,25176,25910,26089,26088,26092,26093,26354,26355,26377,26429,26420,26417,26421,27425,27492,27515,27670,27741,27735,27737,27743,27744,27728,27733,27745,27739,27725,27726,28784,29279,29277,30334,31481,31859,31992,32566,32650,32701,32769,32771,32780,32786,32819,32895,32905,32907,32908,33251,33258,33267,33276,33292,33307,33311,33390,33394,33406,34411,34880,34892,34915,35199,38433,20018,20136,20301,20303,20295,20311,20318,20276,20315,20309,20272,20304,20305,20285,20282,20280,20291,20308,20284,20294,20323,20316,20320,20271,20302,20278,20313,20317,20296,20314,20812,20811,20813,20853,20918,20919,21029,21028,21033,21034,21032,21163,21161,21162,21164,21283,21363,21365,21533,21549,21534,21566,21542,21582,21543,21574,21571,21555,21576,21570,21531,21545,21578,21561,21563,21560,21550,21557,21558,21536,21564,21568,21553,21547,21535,21548,22250,22256,22244,22251,22346,22353,22336,22349,22343,22350,22334,22352,22351,22331,22767,22846,22941,22930,22952,22942,22947,22937,22934,22925,22948,22931,22922,22949,23389,23388,23386,23387,23436,23435,23439,23596,23616,23617,23615,23614,23696,23697,23700,23692,24043,24076,24207,24199,24202,24311,24324,24351,24420,24418,24439,24441,24536,24524,24535,24525,24561,24555,24568,24554,25106,25105,25220,25239,25238,25216,25206,25225,25197,25226,25212,25214,25209,25203,25234,25199,25240,25198,25237,25235,25233,25222,25913,25915,25912,26097,26356,26463,26446,26447,26448,26449,26460,26454,26462,26441,26438,26464,26451,26455,27493,27599,27714,27742,27801,27777,27784,27785,27781,27803,27754,27770,27792,27760,27788,27752,27798,27794,27773,27779,27762,27774,27764,27782,27766,27789,27796,27800,27778,28790,28796,28797,28792,29282,29281,29280,29380,29378,29590,29996,29995,30007,30008,30338,30447,30691,31169,31168,31167,31350,31995,32597,32918,32915,32925,32920,32923,32922,32946,33391,33426,33419,33421,35211,35282,35328,35895,35910,35925,35997,36196,36208,36275,36523,36554,36763,36784,36802,36806,36805,36804,24033,37009,37026,37034,37030,37027,37193,37318,37324,38450,38446,38449,38442,38444,20006,20054,20083,20107,20123,20126,20139,20140,20335,20381,20365,20339,20351,20332,20379,20363,20358,20355,20336,20341,20360,20329,20347,20374,20350,20367,20369,20346,20820,20818,20821,20841,20855,20854,20856,20925,20989,21051,21048,21047,21050,21040,21038,21046,21057,21182,21179,21330,21332,21331,21329,21350,21367,21368,21369,21462,21460,21463,21619,21621,21654,21624,21653,21632,21627,21623,21636,21650,21638,21628,21648,21617,21622,21644,21658,21602,21608,21643,21629,21646,22266,22403,22391,22378,22377,22369,22374,22372,22396,22812,22857,22855,22856,22852,22868,22974,22971,22996,22969,22958,22993,22982,22992,22989,22987,22995,22986,22959,22963,22994,22981,23391,23396,23395,23447,23450,23448,23452,23449,23451,23578,23624,23621,23622,23735,23713,23736,23721,23723,23729,23731,24088,24090,24086,24085,24091,24081,24184,24218,24215,24220,24213,24214,24310,24358,24359,24361,24448,24449,24447,24444,24541,24544,24573,24565,24575,24591,24596,24623,24629,24598,24618,24597,24609,24615,24617,24619,24603,25110,25109,25151,25150,25152,25215,25289,25292,25284,25279,25282,25273,25298,25307,25259,25299,25300,25291,25288,25256,25277,25276,25296,25305,25287,25293,25269,25306,25265,25304,25302,25303,25286,25260,25294,25918,26023,26044,26106,26132,26131,26124,26118,26114,26126,26112,26127,26133,26122,26119,26381,26379,26477,26507,26517,26481,26524,26483,26487,26503,26525,26519,26479,26480,26495,26505,26494,26512,26485,26522,26515,26492,26474,26482,27427,27494,27495,27519,27667,27675,27875,27880,27891,27825,27852,27877,27827,27837,27838,27836,27874,27819,27861,27859,27832,27844,27833,27841,27822,27863,27845,27889,27839,27835,27873,27867,27850,27820,27887,27868,27862,27872,28821,28814,28818,28810,28825,29228,29229,29240,29256,29287,29289,29376,29390,29401,29399,29392,29609,29608,29599,29611,29605,30013,30109,30105,30106,30340,30402,30450,30452,30693,30717,31038,31040,31041,31177,31176,31354,31353,31482,31998,32596,32652,32651,32773,32954,32933,32930,32945,32929,32939,32937,32948,32938,32943,33253,33278,33293,33459,33437,33433,33453,33469,33439,33465,33457,33452,33445,33455,33464,33443,33456,33470,33463,34382,34417,21021,34920,36555,36814,36820,36817,37045,37048,37041,37046,37319,37329,38263,38272,38428,38464,38463,38459,38468,38466,38585,38632,38738,38750,20127,20141,20142,20449,20405,20399,20415,20448,20433,20431,20445,20419,20406,20440,20447,20426,20439,20398,20432,20420,20418,20442,20430,20446,20407,20823,20882,20881,20896,21070,21059,21066,21069,21068,21067,21063,21191,21193,21187,21185,21261,21335,21371,21402,21467,21676,21696,21672,21710,21705,21688,21670,21683,21703,21698,21693,21674,21697,21700,21704,21679,21675,21681,21691,21673,21671,21695,22271,22402,22411,22432,22435,22434,22478,22446,22419,22869,22865,22863,22862,22864,23004,23e3,23039,23011,23016,23043,23013,23018,23002,23014,23041,23035,23401,23459,23462,23460,23458,23461,23553,23630,23631,23629,23627,23769,23762,24055,24093,24101,24095,24189,24224,24230,24314,24328,24365,24421,24456,24453,24458,24459,24455,24460,24457,24594,24605,24608,24613,24590,24616,24653,24688,24680,24674,24646,24643,24684,24683,24682,24676,25153,25308,25366,25353,25340,25325,25345,25326,25341,25351,25329,25335,25327,25324,25342,25332,25361,25346,25919,25925,26027,26045,26082,26149,26157,26144,26151,26159,26143,26152,26161,26148,26359,26623,26579,26609,26580,26576,26604,26550,26543,26613,26601,26607,26564,26577,26548,26586,26597,26552,26575,26590,26611,26544,26585,26594,26589,26578,27498,27523,27526,27573,27602,27607,27679,27849,27915,27954,27946,27969,27941,27916,27953,27934,27927,27963,27965,27966,27958,27931,27893,27961,27943,27960,27945,27950,27957,27918,27947,28843,28858,28851,28844,28847,28845,28856,28846,28836,29232,29298,29295,29300,29417,29408,29409,29623,29642,29627,29618,29645,29632,29619,29978,29997,30031,30028,30030,30027,30123,30116,30117,30114,30115,30328,30342,30343,30344,30408,30406,30403,30405,30465,30457,30456,30473,30475,30462,30460,30471,30684,30722,30740,30732,30733,31046,31049,31048,31047,31161,31162,31185,31186,31179,31359,31361,31487,31485,31869,32002,32005,32e3,32009,32007,32004,32006,32568,32654,32703,32772,32784,32781,32785,32822,32982,32997,32986,32963,32964,32972,32993,32987,32974,32990,32996,32989,33268,33314,33511,33539,33541,33507,33499,33510,33540,33509,33538,33545,33490,33495,33521,33537,33500,33492,33489,33502,33491,33503,33519,33542,34384,34425,34427,34426,34893,34923,35201,35284,35336,35330,35331,35998,36e3,36212,36211,36276,36557,36556,36848,36838,36834,36842,36837,36845,36843,36836,36840,37066,37070,37057,37059,37195,37194,37325,38274,38480,38475,38476,38477,38754,38761,38859,38893,38899,38913,39080,39131,39135,39318,39321,20056,20147,20492,20493,20515,20463,20518,20517,20472,20521,20502,20486,20540,20511,20506,20498,20497,20474,20480,20500,20520,20465,20513,20491,20505,20504,20467,20462,20525,20522,20478,20523,20489,20860,20900,20901,20898,20941,20940,20934,20939,21078,21084,21076,21083,21085,21290,21375,21407,21405,21471,21736,21776,21761,21815,21756,21733,21746,21766,21754,21780,21737,21741,21729,21769,21742,21738,21734,21799,21767,21757,21775,22275,22276,22466,22484,22475,22467,22537,22799,22871,22872,22874,23057,23064,23068,23071,23067,23059,23020,23072,23075,23081,23077,23052,23049,23403,23640,23472,23475,23478,23476,23470,23477,23481,23480,23556,23633,23637,23632,23789,23805,23803,23786,23784,23792,23798,23809,23796,24046,24109,24107,24235,24237,24231,24369,24466,24465,24464,24665,24675,24677,24656,24661,24685,24681,24687,24708,24735,24730,24717,24724,24716,24709,24726,25159,25331,25352,25343,25422,25406,25391,25429,25410,25414,25423,25417,25402,25424,25405,25386,25387,25384,25421,25420,25928,25929,26009,26049,26053,26178,26185,26191,26179,26194,26188,26181,26177,26360,26388,26389,26391,26657,26680,26696,26694,26707,26681,26690,26708,26665,26803,26647,26700,26705,26685,26612,26704,26688,26684,26691,26666,26693,26643,26648,26689,27530,27529,27575,27683,27687,27688,27686,27684,27888,28010,28053,28040,28039,28006,28024,28023,27993,28051,28012,28041,28014,27994,28020,28009,28044,28042,28025,28037,28005,28052,28874,28888,28900,28889,28872,28879,29241,29305,29436,29433,29437,29432,29431,29574,29677,29705,29678,29664,29674,29662,30036,30045,30044,30042,30041,30142,30149,30151,30130,30131,30141,30140,30137,30146,30136,30347,30384,30410,30413,30414,30505,30495,30496,30504,30697,30768,30759,30776,30749,30772,30775,30757,30765,30752,30751,30770,31061,31056,31072,31071,31062,31070,31069,31063,31066,31204,31203,31207,31199,31206,31209,31192,31364,31368,31449,31494,31505,31881,32033,32023,32011,32010,32032,32034,32020,32016,32021,32026,32028,32013,32025,32027,32570,32607,32660,32709,32705,32774,32792,32789,32793,32791,32829,32831,33009,33026,33008,33029,33005,33012,33030,33016,33011,33032,33021,33034,33020,33007,33261,33260,33280,33296,33322,33323,33320,33324,33467,33579,33618,33620,33610,33592,33616,33609,33589,33588,33615,33586,33593,33590,33559,33600,33585,33576,33603,34388,34442,34474,34451,34468,34473,34444,34467,34460,34928,34935,34945,34946,34941,34937,35352,35344,35342,35340,35349,35338,35351,35347,35350,35343,35345,35912,35962,35961,36001,36002,36215,36524,36562,36564,36559,36785,36865,36870,36855,36864,36858,36852,36867,36861,36869,36856,37013,37089,37085,37090,37202,37197,37196,37336,37341,37335,37340,37337,38275,38498,38499,38497,38491,38493,38500,38488,38494,38587,39138,39340,39592,39640,39717,39730,39740,20094,20602,20605,20572,20551,20547,20556,20570,20553,20581,20598,20558,20565,20597,20596,20599,20559,20495,20591,20589,20828,20885,20976,21098,21103,21202,21209,21208,21205,21264,21263,21273,21311,21312,21310,21443,26364,21830,21866,21862,21828,21854,21857,21827,21834,21809,21846,21839,21845,21807,21860,21816,21806,21852,21804,21859,21811,21825,21847,22280,22283,22281,22495,22533,22538,22534,22496,22500,22522,22530,22581,22519,22521,22816,22882,23094,23105,23113,23142,23146,23104,23100,23138,23130,23110,23114,23408,23495,23493,23492,23490,23487,23494,23561,23560,23559,23648,23644,23645,23815,23814,23822,23835,23830,23842,23825,23849,23828,23833,23844,23847,23831,24034,24120,24118,24115,24119,24247,24248,24246,24245,24254,24373,24375,24407,24428,24425,24427,24471,24473,24478,24472,24481,24480,24476,24703,24739,24713,24736,24744,24779,24756,24806,24765,24773,24763,24757,24796,24764,24792,24789,24774,24799,24760,24794,24775,25114,25115,25160,25504,25511,25458,25494,25506,25509,25463,25447,25496,25514,25457,25513,25481,25475,25499,25451,25512,25476,25480,25497,25505,25516,25490,25487,25472,25467,25449,25448,25466,25949,25942,25937,25945,25943,21855,25935,25944,25941,25940,26012,26011,26028,26063,26059,26060,26062,26205,26202,26212,26216,26214,26206,26361,21207,26395,26753,26799,26786,26771,26805,26751,26742,26801,26791,26775,26800,26755,26820,26797,26758,26757,26772,26781,26792,26783,26785,26754,27442,27578,27627,27628,27691,28046,28092,28147,28121,28082,28129,28108,28132,28155,28154,28165,28103,28107,28079,28113,28078,28126,28153,28088,28151,28149,28101,28114,28186,28085,28122,28139,28120,28138,28145,28142,28136,28102,28100,28074,28140,28095,28134,28921,28937,28938,28925,28911,29245,29309,29313,29468,29467,29462,29459,29465,29575,29701,29706,29699,29702,29694,29709,29920,29942,29943,29980,29986,30053,30054,30050,30064,30095,30164,30165,30133,30154,30157,30350,30420,30418,30427,30519,30526,30524,30518,30520,30522,30827,30787,30798,31077,31080,31085,31227,31378,31381,31520,31528,31515,31532,31526,31513,31518,31534,31890,31895,31893,32070,32067,32113,32046,32057,32060,32064,32048,32051,32068,32047,32066,32050,32049,32573,32670,32666,32716,32718,32722,32796,32842,32838,33071,33046,33059,33067,33065,33072,33060,33282,33333,33335,33334,33337,33678,33694,33688,33656,33698,33686,33725,33707,33682,33674,33683,33673,33696,33655,33659,33660,33670,33703,34389,24426,34503,34496,34486,34500,34485,34502,34507,34481,34479,34505,34899,34974,34952,34987,34962,34966,34957,34955,35219,35215,35370,35357,35363,35365,35377,35373,35359,35355,35362,35913,35930,36009,36012,36011,36008,36010,36007,36199,36198,36286,36282,36571,36575,36889,36877,36890,36887,36899,36895,36893,36880,36885,36894,36896,36879,36898,36886,36891,36884,37096,37101,37117,37207,37326,37365,37350,37347,37351,37357,37353,38281,38506,38517,38515,38520,38512,38516,38518,38519,38508,38592,38634,38633,31456,31455,38914,38915,39770,40165,40565,40575,40613,40635,20642,20621,20613,20633,20625,20608,20630,20632,20634,26368,20977,21106,21108,21109,21097,21214,21213,21211,21338,21413,21883,21888,21927,21884,21898,21917,21912,21890,21916,21930,21908,21895,21899,21891,21939,21934,21919,21822,21938,21914,21947,21932,21937,21886,21897,21931,21913,22285,22575,22570,22580,22564,22576,22577,22561,22557,22560,22777,22778,22880,23159,23194,23167,23186,23195,23207,23411,23409,23506,23500,23507,23504,23562,23563,23601,23884,23888,23860,23879,24061,24133,24125,24128,24131,24190,24266,24257,24258,24260,24380,24429,24489,24490,24488,24785,24801,24754,24758,24800,24860,24867,24826,24853,24816,24827,24820,24936,24817,24846,24822,24841,24832,24850,25119,25161,25507,25484,25551,25536,25577,25545,25542,25549,25554,25571,25552,25569,25558,25581,25582,25462,25588,25578,25563,25682,25562,25593,25950,25958,25954,25955,26001,26e3,26031,26222,26224,26228,26230,26223,26257,26234,26238,26231,26366,26367,26399,26397,26874,26837,26848,26840,26839,26885,26847,26869,26862,26855,26873,26834,26866,26851,26827,26829,26893,26898,26894,26825,26842,26990,26875,27454,27450,27453,27544,27542,27580,27631,27694,27695,27692,28207,28216,28244,28193,28210,28263,28234,28192,28197,28195,28187,28251,28248,28196,28246,28270,28205,28198,28271,28212,28237,28218,28204,28227,28189,28222,28363,28297,28185,28238,28259,28228,28274,28265,28255,28953,28954,28966,28976,28961,28982,29038,28956,29260,29316,29312,29494,29477,29492,29481,29754,29738,29747,29730,29733,29749,29750,29748,29743,29723,29734,29736,29989,29990,30059,30058,30178,30171,30179,30169,30168,30174,30176,30331,30332,30358,30355,30388,30428,30543,30701,30813,30828,30831,31245,31240,31243,31237,31232,31384,31383,31382,31461,31459,31561,31574,31558,31568,31570,31572,31565,31563,31567,31569,31903,31909,32094,32080,32104,32085,32043,32110,32114,32097,32102,32098,32112,32115,21892,32724,32725,32779,32850,32901,33109,33108,33099,33105,33102,33081,33094,33086,33100,33107,33140,33298,33308,33769,33795,33784,33805,33760,33733,33803,33729,33775,33777,33780,33879,33802,33776,33804,33740,33789,33778,33738,33848,33806,33796,33756,33799,33748,33759,34395,34527,34521,34541,34516,34523,34532,34512,34526,34903,35009,35010,34993,35203,35222,35387,35424,35413,35422,35388,35393,35412,35419,35408,35398,35380,35386,35382,35414,35937,35970,36015,36028,36019,36029,36033,36027,36032,36020,36023,36022,36031,36024,36234,36229,36225,36302,36317,36299,36314,36305,36300,36315,36294,36603,36600,36604,36764,36910,36917,36913,36920,36914,36918,37122,37109,37129,37118,37219,37221,37327,37396,37397,37411,37385,37406,37389,37392,37383,37393,38292,38287,38283,38289,38291,38290,38286,38538,38542,38539,38525,38533,38534,38541,38514,38532,38593,38597,38596,38598,38599,38639,38642,38860,38917,38918,38920,39143,39146,39151,39145,39154,39149,39342,39341,40643,40653,40657,20098,20653,20661,20658,20659,20677,20670,20652,20663,20667,20655,20679,21119,21111,21117,21215,21222,21220,21218,21219,21295,21983,21992,21971,21990,21966,21980,21959,21969,21987,21988,21999,21978,21985,21957,21958,21989,21961,22290,22291,22622,22609,22616,22615,22618,22612,22635,22604,22637,22602,22626,22610,22603,22887,23233,23241,23244,23230,23229,23228,23219,23234,23218,23913,23919,24140,24185,24265,24264,24338,24409,24492,24494,24858,24847,24904,24863,24819,24859,24825,24833,24840,24910,24908,24900,24909,24894,24884,24871,24845,24838,24887,25121,25122,25619,25662,25630,25642,25645,25661,25644,25615,25628,25620,25613,25654,25622,25623,25606,25964,26015,26032,26263,26249,26247,26248,26262,26244,26264,26253,26371,27028,26989,26970,26999,26976,26964,26997,26928,27010,26954,26984,26987,26974,26963,27001,27014,26973,26979,26971,27463,27506,27584,27583,27603,27645,28322,28335,28371,28342,28354,28304,28317,28359,28357,28325,28312,28348,28346,28331,28369,28310,28316,28356,28372,28330,28327,28340,29006,29017,29033,29028,29001,29031,29020,29036,29030,29004,29029,29022,28998,29032,29014,29242,29266,29495,29509,29503,29502,29807,29786,29781,29791,29790,29761,29759,29785,29787,29788,30070,30072,30208,30192,30209,30194,30193,30202,30207,30196,30195,30430,30431,30555,30571,30566,30558,30563,30585,30570,30572,30556,30565,30568,30562,30702,30862,30896,30871,30872,30860,30857,30844,30865,30867,30847,31098,31103,31105,33836,31165,31260,31258,31264,31252,31263,31262,31391,31392,31607,31680,31584,31598,31591,31921,31923,31925,32147,32121,32145,32129,32143,32091,32622,32617,32618,32626,32681,32680,32676,32854,32856,32902,32900,33137,33136,33144,33125,33134,33139,33131,33145,33146,33126,33285,33351,33922,33911,33853,33841,33909,33894,33899,33865,33900,33883,33852,33845,33889,33891,33897,33901,33862,34398,34396,34399,34553,34579,34568,34567,34560,34558,34555,34562,34563,34566,34570,34905,35039,35028,35033,35036,35032,35037,35041,35018,35029,35026,35228,35299,35435,35442,35443,35430,35433,35440,35463,35452,35427,35488,35441,35461,35437,35426,35438,35436,35449,35451,35390,35432,35938,35978,35977,36042,36039,36040,36036,36018,36035,36034,36037,36321,36319,36328,36335,36339,36346,36330,36324,36326,36530,36611,36617,36606,36618,36767,36786,36939,36938,36947,36930,36948,36924,36949,36944,36935,36943,36942,36941,36945,36926,36929,37138,37143,37228,37226,37225,37321,37431,37463,37432,37437,37440,37438,37467,37451,37476,37457,37428,37449,37453,37445,37433,37439,37466,38296,38552,38548,38549,38605,38603,38601,38602,38647,38651,38649,38646,38742,38772,38774,38928,38929,38931,38922,38930,38924,39164,39156,39165,39166,39347,39345,39348,39649,40169,40578,40718,40723,40736,20711,20718,20709,20694,20717,20698,20693,20687,20689,20721,20686,20713,20834,20979,21123,21122,21297,21421,22014,22016,22043,22039,22013,22036,22022,22025,22029,22030,22007,22038,22047,22024,22032,22006,22296,22294,22645,22654,22659,22675,22666,22649,22661,22653,22781,22821,22818,22820,22890,22889,23265,23270,23273,23255,23254,23256,23267,23413,23518,23527,23521,23525,23526,23528,23522,23524,23519,23565,23650,23940,23943,24155,24163,24149,24151,24148,24275,24278,24330,24390,24432,24505,24903,24895,24907,24951,24930,24931,24927,24922,24920,24949,25130,25735,25688,25684,25764,25720,25695,25722,25681,25703,25652,25709,25723,25970,26017,26071,26070,26274,26280,26269,27036,27048,27029,27073,27054,27091,27083,27035,27063,27067,27051,27060,27088,27085,27053,27084,27046,27075,27043,27465,27468,27699,28467,28436,28414,28435,28404,28457,28478,28448,28460,28431,28418,28450,28415,28399,28422,28465,28472,28466,28451,28437,28459,28463,28552,28458,28396,28417,28402,28364,28407,29076,29081,29053,29066,29060,29074,29246,29330,29334,29508,29520,29796,29795,29802,29808,29805,29956,30097,30247,30221,30219,30217,30227,30433,30435,30596,30589,30591,30561,30913,30879,30887,30899,30889,30883,31118,31119,31117,31278,31281,31402,31401,31469,31471,31649,31637,31627,31605,31639,31645,31636,31631,31672,31623,31620,31929,31933,31934,32187,32176,32156,32189,32190,32160,32202,32180,32178,32177,32186,32162,32191,32181,32184,32173,32210,32199,32172,32624,32736,32737,32735,32862,32858,32903,33104,33152,33167,33160,33162,33151,33154,33255,33274,33287,33300,33310,33355,33993,33983,33990,33988,33945,33950,33970,33948,33995,33976,33984,34003,33936,33980,34001,33994,34623,34588,34619,34594,34597,34612,34584,34645,34615,34601,35059,35074,35060,35065,35064,35069,35048,35098,35055,35494,35468,35486,35491,35469,35489,35475,35492,35498,35493,35496,35480,35473,35482,35495,35946,35981,35980,36051,36049,36050,36203,36249,36245,36348,36628,36626,36629,36627,36771,36960,36952,36956,36963,36953,36958,36962,36957,36955,37145,37144,37150,37237,37240,37239,37236,37496,37504,37509,37528,37526,37499,37523,37532,37544,37500,37521,38305,38312,38313,38307,38309,38308,38553,38556,38555,38604,38610,38656,38780,38789,38902,38935,38936,39087,39089,39171,39173,39180,39177,39361,39599,39600,39654,39745,39746,40180,40182,40179,40636,40763,40778,20740,20736,20731,20725,20729,20738,20744,20745,20741,20956,21127,21128,21129,21133,21130,21232,21426,22062,22075,22073,22066,22079,22068,22057,22099,22094,22103,22132,22070,22063,22064,22656,22687,22686,22707,22684,22702,22697,22694,22893,23305,23291,23307,23285,23308,23304,23534,23532,23529,23531,23652,23653,23965,23956,24162,24159,24161,24290,24282,24287,24285,24291,24288,24392,24433,24503,24501,24950,24935,24942,24925,24917,24962,24956,24944,24939,24958,24999,24976,25003,24974,25004,24986,24996,24980,25006,25134,25705,25711,25721,25758,25778,25736,25744,25776,25765,25747,25749,25769,25746,25774,25773,25771,25754,25772,25753,25762,25779,25973,25975,25976,26286,26283,26292,26289,27171,27167,27112,27137,27166,27161,27133,27169,27155,27146,27123,27138,27141,27117,27153,27472,27470,27556,27589,27590,28479,28540,28548,28497,28518,28500,28550,28525,28507,28536,28526,28558,28538,28528,28516,28567,28504,28373,28527,28512,28511,29087,29100,29105,29096,29270,29339,29518,29527,29801,29835,29827,29822,29824,30079,30240,30249,30239,30244,30246,30241,30242,30362,30394,30436,30606,30599,30604,30609,30603,30923,30917,30906,30922,30910,30933,30908,30928,31295,31292,31296,31293,31287,31291,31407,31406,31661,31665,31684,31668,31686,31687,31681,31648,31692,31946,32224,32244,32239,32251,32216,32236,32221,32232,32227,32218,32222,32233,32158,32217,32242,32249,32629,32631,32687,32745,32806,33179,33180,33181,33184,33178,33176,34071,34109,34074,34030,34092,34093,34067,34065,34083,34081,34068,34028,34085,34047,34054,34690,34676,34678,34656,34662,34680,34664,34649,34647,34636,34643,34907,34909,35088,35079,35090,35091,35093,35082,35516,35538,35527,35524,35477,35531,35576,35506,35529,35522,35519,35504,35542,35533,35510,35513,35547,35916,35918,35948,36064,36062,36070,36068,36076,36077,36066,36067,36060,36074,36065,36205,36255,36259,36395,36368,36381,36386,36367,36393,36383,36385,36382,36538,36637,36635,36639,36649,36646,36650,36636,36638,36645,36969,36974,36968,36973,36983,37168,37165,37159,37169,37255,37257,37259,37251,37573,37563,37559,37610,37548,37604,37569,37555,37564,37586,37575,37616,37554,38317,38321,38660,38662,38663,38665,38752,38797,38795,38799,38945,38955,38940,39091,39178,39187,39186,39192,39389,39376,39391,39387,39377,39381,39378,39385,39607,39662,39663,39719,39749,39748,39799,39791,40198,40201,40195,40617,40638,40654,22696,40786,20754,20760,20756,20752,20757,20864,20906,20957,21137,21139,21235,22105,22123,22137,22121,22116,22136,22122,22120,22117,22129,22127,22124,22114,22134,22721,22718,22727,22725,22894,23325,23348,23416,23536,23566,24394,25010,24977,25001,24970,25037,25014,25022,25034,25032,25136,25797,25793,25803,25787,25788,25818,25796,25799,25794,25805,25791,25810,25812,25790,25972,26310,26313,26297,26308,26311,26296,27197,27192,27194,27225,27243,27224,27193,27204,27234,27233,27211,27207,27189,27231,27208,27481,27511,27653,28610,28593,28577,28611,28580,28609,28583,28595,28608,28601,28598,28582,28576,28596,29118,29129,29136,29138,29128,29141,29113,29134,29145,29148,29123,29124,29544,29852,29859,29848,29855,29854,29922,29964,29965,30260,30264,30266,30439,30437,30624,30622,30623,30629,30952,30938,30956,30951,31142,31309,31310,31302,31308,31307,31418,31705,31761,31689,31716,31707,31713,31721,31718,31957,31958,32266,32273,32264,32283,32291,32286,32285,32265,32272,32633,32690,32752,32753,32750,32808,33203,33193,33192,33275,33288,33368,33369,34122,34137,34120,34152,34153,34115,34121,34157,34154,34142,34691,34719,34718,34722,34701,34913,35114,35122,35109,35115,35105,35242,35238,35558,35578,35563,35569,35584,35548,35559,35566,35582,35585,35586,35575,35565,35571,35574,35580,35947,35949,35987,36084,36420,36401,36404,36418,36409,36405,36667,36655,36664,36659,36776,36774,36981,36980,36984,36978,36988,36986,37172,37266,37664,37686,37624,37683,37679,37666,37628,37675,37636,37658,37648,37670,37665,37653,37678,37657,38331,38567,38568,38570,38613,38670,38673,38678,38669,38675,38671,38747,38748,38758,38808,38960,38968,38971,38967,38957,38969,38948,39184,39208,39198,39195,39201,39194,39405,39394,39409,39608,39612,39675,39661,39720,39825,40213,40227,40230,40232,40210,40219,40664,40660,40845,40860,20778,20767,20769,20786,21237,22158,22144,22160,22149,22151,22159,22741,22739,22737,22734,23344,23338,23332,23418,23607,23656,23996,23994,23997,23992,24171,24396,24509,25033,25026,25031,25062,25035,25138,25140,25806,25802,25816,25824,25840,25830,25836,25841,25826,25837,25986,25987,26329,26326,27264,27284,27268,27298,27292,27355,27299,27262,27287,27280,27296,27484,27566,27610,27656,28632,28657,28639,28640,28635,28644,28651,28655,28544,28652,28641,28649,28629,28654,28656,29159,29151,29166,29158,29157,29165,29164,29172,29152,29237,29254,29552,29554,29865,29872,29862,29864,30278,30274,30284,30442,30643,30634,30640,30636,30631,30637,30703,30967,30970,30964,30959,30977,31143,31146,31319,31423,31751,31757,31742,31735,31756,31712,31968,31964,31966,31970,31967,31961,31965,32302,32318,32326,32311,32306,32323,32299,32317,32305,32325,32321,32308,32313,32328,32309,32319,32303,32580,32755,32764,32881,32882,32880,32879,32883,33222,33219,33210,33218,33216,33215,33213,33225,33214,33256,33289,33393,34218,34180,34174,34204,34193,34196,34223,34203,34183,34216,34186,34407,34752,34769,34739,34770,34758,34731,34747,34746,34760,34763,35131,35126,35140,35128,35133,35244,35598,35607,35609,35611,35594,35616,35613,35588,35600,35905,35903,35955,36090,36093,36092,36088,36091,36264,36425,36427,36424,36426,36676,36670,36674,36677,36671,36991,36989,36996,36993,36994,36992,37177,37283,37278,37276,37709,37762,37672,37749,37706,37733,37707,37656,37758,37740,37723,37744,37722,37716,38346,38347,38348,38344,38342,38577,38584,38614,38684,38686,38816,38867,38982,39094,39221,39425,39423,39854,39851,39850,39853,40251,40255,40587,40655,40670,40668,40669,40667,40766,40779,21474,22165,22190,22745,22744,23352,24413,25059,25139,25844,25842,25854,25862,25850,25851,25847,26039,26332,26406,27315,27308,27331,27323,27320,27330,27310,27311,27487,27512,27567,28681,28683,28670,28678,28666,28689,28687,29179,29180,29182,29176,29559,29557,29863,29887,29973,30294,30296,30290,30653,30655,30651,30652,30990,31150,31329,31330,31328,31428,31429,31787,31783,31786,31774,31779,31777,31975,32340,32341,32350,32346,32353,32338,32345,32584,32761,32763,32887,32886,33229,33231,33290,34255,34217,34253,34256,34249,34224,34234,34233,34214,34799,34796,34802,34784,35206,35250,35316,35624,35641,35628,35627,35920,36101,36441,36451,36454,36452,36447,36437,36544,36681,36685,36999,36995,37e3,37291,37292,37328,37780,37770,37782,37794,37811,37806,37804,37808,37784,37786,37783,38356,38358,38352,38357,38626,38620,38617,38619,38622,38692,38819,38822,38829,38905,38989,38991,38988,38990,38995,39098,39230,39231,39229,39214,39333,39438,39617,39683,39686,39759,39758,39757,39882,39881,39933,39880,39872,40273,40285,40288,40672,40725,40748,20787,22181,22750,22751,22754,23541,40848,24300,25074,25079,25078,25077,25856,25871,26336,26333,27365,27357,27354,27347,28699,28703,28712,28698,28701,28693,28696,29190,29197,29272,29346,29560,29562,29885,29898,29923,30087,30086,30303,30305,30663,31001,31153,31339,31337,31806,31807,31800,31805,31799,31808,32363,32365,32377,32361,32362,32645,32371,32694,32697,32696,33240,34281,34269,34282,34261,34276,34277,34295,34811,34821,34829,34809,34814,35168,35167,35158,35166,35649,35676,35672,35657,35674,35662,35663,35654,35673,36104,36106,36476,36466,36487,36470,36460,36474,36468,36692,36686,36781,37002,37003,37297,37294,37857,37841,37855,37827,37832,37852,37853,37846,37858,37837,37848,37860,37847,37864,38364,38580,38627,38698,38695,38753,38876,38907,39006,39e3,39003,39100,39237,39241,39446,39449,39693,39912,39911,39894,39899,40329,40289,40306,40298,40300,40594,40599,40595,40628,21240,22184,22199,22198,22196,22204,22756,23360,23363,23421,23542,24009,25080,25082,25880,25876,25881,26342,26407,27372,28734,28720,28722,29200,29563,29903,30306,30309,31014,31018,31020,31019,31431,31478,31820,31811,31821,31983,31984,36782,32381,32380,32386,32588,32768,33242,33382,34299,34297,34321,34298,34310,34315,34311,34314,34836,34837,35172,35258,35320,35696,35692,35686,35695,35679,35691,36111,36109,36489,36481,36485,36482,37300,37323,37912,37891,37885,38369,38704,39108,39250,39249,39336,39467,39472,39479,39477,39955,39949,40569,40629,40680,40751,40799,40803,40801,20791,20792,22209,22208,22210,22804,23660,24013,25084,25086,25885,25884,26005,26345,27387,27396,27386,27570,28748,29211,29351,29910,29908,30313,30675,31824,32399,32396,32700,34327,34349,34330,34851,34850,34849,34847,35178,35180,35261,35700,35703,35709,36115,36490,36493,36491,36703,36783,37306,37934,37939,37941,37946,37944,37938,37931,38370,38712,38713,38706,38911,39015,39013,39255,39493,39491,39488,39486,39631,39764,39761,39981,39973,40367,40372,40386,40376,40605,40687,40729,40796,40806,40807,20796,20795,22216,22218,22217,23423,24020,24018,24398,25087,25892,27402,27489,28753,28760,29568,29924,30090,30318,30316,31155,31840,31839,32894,32893,33247,35186,35183,35324,35712,36118,36119,36497,36499,36705,37192,37956,37969,37970,38717,38718,38851,38849,39019,39253,39509,39501,39634,39706,40009,39985,39998,39995,40403,40407,40756,40812,40810,40852,22220,24022,25088,25891,25899,25898,26348,27408,29914,31434,31844,31843,31845,32403,32406,32404,33250,34360,34367,34865,35722,37008,37007,37987,37984,37988,38760,39023,39260,39514,39515,39511,39635,39636,39633,40020,40023,40022,40421,40607,40692,22225,22761,25900,28766,30321,30322,30679,32592,32648,34870,34873,34914,35731,35730,35734,33399,36123,37312,37994,38722,38728,38724,38854,39024,39519,39714,39768,40031,40441,40442,40572,40573,40711,40823,40818,24307,27414,28771,31852,31854,34875,35264,36513,37313,38002,38e3,39025,39262,39638,39715,40652,28772,30682,35738,38007,38857,39522,39525,32412,35740,36522,37317,38013,38014,38012,40055,40056,40695,35924,38015,40474,29224,39530,39729,40475,40478,31858,9312,9313,9314,9315,9316,9317,9318,9319,9320,9321,9332,9333,9334,9335,9336,9337,9338,9339,9340,9341,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,20022,20031,20101,20128,20866,20886,20907,21241,21304,21353,21430,22794,23424,24027,12083,24191,24308,24400,24417,25908,26080,30098,30326,36789,38582,168,710,12541,12542,12445,12446,12291,20189,12293,12294,12295,12540,65339,65341,10045,12353,12354,12355,12356,12357,12358,12359,12360,12361,12362,12363,12364,12365,12366,12367,12368,12369,12370,12371,12372,12373,12374,12375,12376,12377,12378,12379,12380,12381,12382,12383,12384,12385,12386,12387,12388,12389,12390,12391,12392,12393,12394,12395,12396,12397,12398,12399,12400,12401,12402,12403,12404,12405,12406,12407,12408,12409,12410,12411,12412,12413,12414,12415,12416,12417,12418,12419,12420,12421,12422,12423,12424,12425,12426,12427,12428,12429,12430,12431,12432,12433,12434,12435,12449,12450,12451,12452,12453,12454,12455,12456,12457,12458,12459,12460,12461,12462,12463,12464,12465,12466,12467,12468,12469,12470,12471,12472,12473,12474,12475,12476,12477,12478,12479,12480,12481,12482,12483,12484,12485,12486,12487,12488,12489,12490,12491,12492,12493,12494,12495,12496,12497,12498,12499,12500,12501,12502,12503,12504,12505,12506,12507,12508,12509,12510,12511,12512,12513,12514,12515,12516,12517,12518,12519,12520,12521,12522,12523,12524,12525,12526,12527,12528,12529,12530,12531,12532,12533,12534,1040,1041,1042,1043,1044,1045,1025,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1105,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,8679,8632,8633,12751,131276,20058,131210,20994,17553,40880,20872,40881,161287,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,65506,65508,65287,65282,12849,8470,8481,12443,12444,11904,11908,11910,11911,11912,11914,11916,11917,11925,11932,11933,11941,11943,11946,11948,11950,11958,11964,11966,11974,11978,11980,11981,11983,11990,11991,11998,12003,null,null,null,643,592,603,596,629,339,248,331,650,618,20034,20060,20981,21274,21378,19975,19980,20039,20109,22231,64012,23662,24435,19983,20871,19982,20014,20115,20162,20169,20168,20888,21244,21356,21433,22304,22787,22828,23568,24063,26081,27571,27596,27668,29247,20017,20028,20200,20188,20201,20193,20189,20186,21004,21276,21324,22306,22307,22807,22831,23425,23428,23570,23611,23668,23667,24068,24192,24194,24521,25097,25168,27669,27702,27715,27711,27707,29358,29360,29578,31160,32906,38430,20238,20248,20268,20213,20244,20209,20224,20215,20232,20253,20226,20229,20258,20243,20228,20212,20242,20913,21011,21001,21008,21158,21282,21279,21325,21386,21511,22241,22239,22318,22314,22324,22844,22912,22908,22917,22907,22910,22903,22911,23382,23573,23589,23676,23674,23675,23678,24031,24181,24196,24322,24346,24436,24533,24532,24527,25180,25182,25188,25185,25190,25186,25177,25184,25178,25189,26095,26094,26430,26425,26424,26427,26426,26431,26428,26419,27672,27718,27730,27740,27727,27722,27732,27723,27724,28785,29278,29364,29365,29582,29994,30335,31349,32593,33400,33404,33408,33405,33407,34381,35198,37017,37015,37016,37019,37012,38434,38436,38432,38435,20310,20283,20322,20297,20307,20324,20286,20327,20306,20319,20289,20312,20269,20275,20287,20321,20879,20921,21020,21022,21025,21165,21166,21257,21347,21362,21390,21391,21552,21559,21546,21588,21573,21529,21532,21541,21528,21565,21583,21569,21544,21540,21575,22254,22247,22245,22337,22341,22348,22345,22347,22354,22790,22848,22950,22936,22944,22935,22926,22946,22928,22927,22951,22945,23438,23442,23592,23594,23693,23695,23688,23691,23689,23698,23690,23686,23699,23701,24032,24074,24078,24203,24201,24204,24200,24205,24325,24349,24440,24438,24530,24529,24528,24557,24552,24558,24563,24545,24548,24547,24570,24559,24567,24571,24576,24564,25146,25219,25228,25230,25231,25236,25223,25201,25211,25210,25200,25217,25224,25207,25213,25202,25204,25911,26096,26100,26099,26098,26101,26437,26439,26457,26453,26444,26440,26461,26445,26458,26443,27600,27673,27674,27768,27751,27755,27780,27787,27791,27761,27759,27753,27802,27757,27783,27797,27804,27750,27763,27749,27771,27790,28788,28794,29283,29375,29373,29379,29382,29377,29370,29381,29589,29591,29587,29588,29586,30010,30009,30100,30101,30337,31037,32820,32917,32921,32912,32914,32924,33424,33423,33413,33422,33425,33427,33418,33411,33412,35960,36809,36799,37023,37025,37029,37022,37031,37024,38448,38440,38447,38445,20019,20376,20348,20357,20349,20352,20359,20342,20340,20361,20356,20343,20300,20375,20330,20378,20345,20353,20344,20368,20380,20372,20382,20370,20354,20373,20331,20334,20894,20924,20926,21045,21042,21043,21062,21041,21180,21258,21259,21308,21394,21396,21639,21631,21633,21649,21634,21640,21611,21626,21630,21605,21612,21620,21606,21645,21615,21601,21600,21656,21603,21607,21604,22263,22265,22383,22386,22381,22379,22385,22384,22390,22400,22389,22395,22387,22388,22370,22376,22397,22796,22853,22965,22970,22991,22990,22962,22988,22977,22966,22972,22979,22998,22961,22973,22976,22984,22964,22983,23394,23397,23443,23445,23620,23623,23726,23716,23712,23733,23727,23720,23724,23711,23715,23725,23714,23722,23719,23709,23717,23734,23728,23718,24087,24084,24089,24360,24354,24355,24356,24404,24450,24446,24445,24542,24549,24621,24614,24601,24626,24587,24628,24586,24599,24627,24602,24606,24620,24610,24589,24592,24622,24595,24593,24588,24585,24604,25108,25149,25261,25268,25297,25278,25258,25270,25290,25262,25267,25263,25275,25257,25264,25272,25917,26024,26043,26121,26108,26116,26130,26120,26107,26115,26123,26125,26117,26109,26129,26128,26358,26378,26501,26476,26510,26514,26486,26491,26520,26502,26500,26484,26509,26508,26490,26527,26513,26521,26499,26493,26497,26488,26489,26516,27429,27520,27518,27614,27677,27795,27884,27883,27886,27865,27830,27860,27821,27879,27831,27856,27842,27834,27843,27846,27885,27890,27858,27869,27828,27786,27805,27776,27870,27840,27952,27853,27847,27824,27897,27855,27881,27857,28820,28824,28805,28819,28806,28804,28817,28822,28802,28826,28803,29290,29398,29387,29400,29385,29404,29394,29396,29402,29388,29393,29604,29601,29613,29606,29602,29600,29612,29597,29917,29928,30015,30016,30014,30092,30104,30383,30451,30449,30448,30453,30712,30716,30713,30715,30714,30711,31042,31039,31173,31352,31355,31483,31861,31997,32821,32911,32942,32931,32952,32949,32941,33312,33440,33472,33451,33434,33432,33435,33461,33447,33454,33468,33438,33466,33460,33448,33441,33449,33474,33444,33475,33462,33442,34416,34415,34413,34414,35926,36818,36811,36819,36813,36822,36821,36823,37042,37044,37039,37043,37040,38457,38461,38460,38458,38467,20429,20421,20435,20402,20425,20427,20417,20436,20444,20441,20411,20403,20443,20423,20438,20410,20416,20409,20460,21060,21065,21184,21186,21309,21372,21399,21398,21401,21400,21690,21665,21677,21669,21711,21699,33549,21687,21678,21718,21686,21701,21702,21664,21616,21692,21666,21694,21618,21726,21680,22453,22430,22431,22436,22412,22423,22429,22427,22420,22424,22415,22425,22437,22426,22421,22772,22797,22867,23009,23006,23022,23040,23025,23005,23034,23037,23036,23030,23012,23026,23031,23003,23017,23027,23029,23008,23038,23028,23021,23464,23628,23760,23768,23756,23767,23755,23771,23774,23770,23753,23751,23754,23766,23763,23764,23759,23752,23750,23758,23775,23800,24057,24097,24098,24099,24096,24100,24240,24228,24226,24219,24227,24229,24327,24366,24406,24454,24631,24633,24660,24690,24670,24645,24659,24647,24649,24667,24652,24640,24642,24671,24612,24644,24664,24678,24686,25154,25155,25295,25357,25355,25333,25358,25347,25323,25337,25359,25356,25336,25334,25344,25363,25364,25338,25365,25339,25328,25921,25923,26026,26047,26166,26145,26162,26165,26140,26150,26146,26163,26155,26170,26141,26164,26169,26158,26383,26384,26561,26610,26568,26554,26588,26555,26616,26584,26560,26551,26565,26603,26596,26591,26549,26573,26547,26615,26614,26606,26595,26562,26553,26574,26599,26608,26546,26620,26566,26605,26572,26542,26598,26587,26618,26569,26570,26563,26602,26571,27432,27522,27524,27574,27606,27608,27616,27680,27681,27944,27956,27949,27935,27964,27967,27922,27914,27866,27955,27908,27929,27962,27930,27921,27904,27933,27970,27905,27928,27959,27907,27919,27968,27911,27936,27948,27912,27938,27913,27920,28855,28831,28862,28849,28848,28833,28852,28853,28841,29249,29257,29258,29292,29296,29299,29294,29386,29412,29416,29419,29407,29418,29414,29411,29573,29644,29634,29640,29637,29625,29622,29621,29620,29675,29631,29639,29630,29635,29638,29624,29643,29932,29934,29998,30023,30024,30119,30122,30329,30404,30472,30467,30468,30469,30474,30455,30459,30458,30695,30696,30726,30737,30738,30725,30736,30735,30734,30729,30723,30739,31050,31052,31051,31045,31044,31189,31181,31183,31190,31182,31360,31358,31441,31488,31489,31866,31864,31865,31871,31872,31873,32003,32008,32001,32600,32657,32653,32702,32775,32782,32783,32788,32823,32984,32967,32992,32977,32968,32962,32976,32965,32995,32985,32988,32970,32981,32969,32975,32983,32998,32973,33279,33313,33428,33497,33534,33529,33543,33512,33536,33493,33594,33515,33494,33524,33516,33505,33522,33525,33548,33531,33526,33520,33514,33508,33504,33530,33523,33517,34423,34420,34428,34419,34881,34894,34919,34922,34921,35283,35332,35335,36210,36835,36833,36846,36832,37105,37053,37055,37077,37061,37054,37063,37067,37064,37332,37331,38484,38479,38481,38483,38474,38478,20510,20485,20487,20499,20514,20528,20507,20469,20468,20531,20535,20524,20470,20471,20503,20508,20512,20519,20533,20527,20529,20494,20826,20884,20883,20938,20932,20933,20936,20942,21089,21082,21074,21086,21087,21077,21090,21197,21262,21406,21798,21730,21783,21778,21735,21747,21732,21786,21759,21764,21768,21739,21777,21765,21745,21770,21755,21751,21752,21728,21774,21763,21771,22273,22274,22476,22578,22485,22482,22458,22470,22461,22460,22456,22454,22463,22471,22480,22457,22465,22798,22858,23065,23062,23085,23086,23061,23055,23063,23050,23070,23091,23404,23463,23469,23468,23555,23638,23636,23788,23807,23790,23793,23799,23808,23801,24105,24104,24232,24238,24234,24236,24371,24368,24423,24669,24666,24679,24641,24738,24712,24704,24722,24705,24733,24707,24725,24731,24727,24711,24732,24718,25113,25158,25330,25360,25430,25388,25412,25413,25398,25411,25572,25401,25419,25418,25404,25385,25409,25396,25432,25428,25433,25389,25415,25395,25434,25425,25400,25431,25408,25416,25930,25926,26054,26051,26052,26050,26186,26207,26183,26193,26386,26387,26655,26650,26697,26674,26675,26683,26699,26703,26646,26673,26652,26677,26667,26669,26671,26702,26692,26676,26653,26642,26644,26662,26664,26670,26701,26682,26661,26656,27436,27439,27437,27441,27444,27501,32898,27528,27622,27620,27624,27619,27618,27623,27685,28026,28003,28004,28022,27917,28001,28050,27992,28002,28013,28015,28049,28045,28143,28031,28038,27998,28007,28e3,28055,28016,28028,27999,28034,28056,27951,28008,28043,28030,28032,28036,27926,28035,28027,28029,28021,28048,28892,28883,28881,28893,28875,32569,28898,28887,28882,28894,28896,28884,28877,28869,28870,28871,28890,28878,28897,29250,29304,29303,29302,29440,29434,29428,29438,29430,29427,29435,29441,29651,29657,29669,29654,29628,29671,29667,29673,29660,29650,29659,29652,29661,29658,29655,29656,29672,29918,29919,29940,29941,29985,30043,30047,30128,30145,30139,30148,30144,30143,30134,30138,30346,30409,30493,30491,30480,30483,30482,30499,30481,30485,30489,30490,30498,30503,30755,30764,30754,30773,30767,30760,30766,30763,30753,30761,30771,30762,30769,31060,31067,31055,31068,31059,31058,31057,31211,31212,31200,31214,31213,31210,31196,31198,31197,31366,31369,31365,31371,31372,31370,31367,31448,31504,31492,31507,31493,31503,31496,31498,31502,31497,31506,31876,31889,31882,31884,31880,31885,31877,32030,32029,32017,32014,32024,32022,32019,32031,32018,32015,32012,32604,32609,32606,32608,32605,32603,32662,32658,32707,32706,32704,32790,32830,32825,33018,33010,33017,33013,33025,33019,33024,33281,33327,33317,33587,33581,33604,33561,33617,33573,33622,33599,33601,33574,33564,33570,33602,33614,33563,33578,33544,33596,33613,33558,33572,33568,33591,33583,33577,33607,33605,33612,33619,33566,33580,33611,33575,33608,34387,34386,34466,34472,34454,34445,34449,34462,34439,34455,34438,34443,34458,34437,34469,34457,34465,34471,34453,34456,34446,34461,34448,34452,34883,34884,34925,34933,34934,34930,34944,34929,34943,34927,34947,34942,34932,34940,35346,35911,35927,35963,36004,36003,36214,36216,36277,36279,36278,36561,36563,36862,36853,36866,36863,36859,36868,36860,36854,37078,37088,37081,37082,37091,37087,37093,37080,37083,37079,37084,37092,37200,37198,37199,37333,37346,37338,38492,38495,38588,39139,39647,39727,20095,20592,20586,20577,20574,20576,20563,20555,20573,20594,20552,20557,20545,20571,20554,20578,20501,20549,20575,20585,20587,20579,20580,20550,20544,20590,20595,20567,20561,20944,21099,21101,21100,21102,21206,21203,21293,21404,21877,21878,21820,21837,21840,21812,21802,21841,21858,21814,21813,21808,21842,21829,21772,21810,21861,21838,21817,21832,21805,21819,21824,21835,22282,22279,22523,22548,22498,22518,22492,22516,22528,22509,22525,22536,22520,22539,22515,22479,22535,22510,22499,22514,22501,22508,22497,22542,22524,22544,22503,22529,22540,22513,22505,22512,22541,22532,22876,23136,23128,23125,23143,23134,23096,23093,23149,23120,23135,23141,23148,23123,23140,23127,23107,23133,23122,23108,23131,23112,23182,23102,23117,23097,23116,23152,23145,23111,23121,23126,23106,23132,23410,23406,23489,23488,23641,23838,23819,23837,23834,23840,23820,23848,23821,23846,23845,23823,23856,23826,23843,23839,23854,24126,24116,24241,24244,24249,24242,24243,24374,24376,24475,24470,24479,24714,24720,24710,24766,24752,24762,24787,24788,24783,24804,24793,24797,24776,24753,24795,24759,24778,24767,24771,24781,24768,25394,25445,25482,25474,25469,25533,25502,25517,25501,25495,25515,25486,25455,25479,25488,25454,25519,25461,25500,25453,25518,25468,25508,25403,25503,25464,25477,25473,25489,25485,25456,25939,26061,26213,26209,26203,26201,26204,26210,26392,26745,26759,26768,26780,26733,26734,26798,26795,26966,26735,26787,26796,26793,26741,26740,26802,26767,26743,26770,26748,26731,26738,26794,26752,26737,26750,26779,26774,26763,26784,26761,26788,26744,26747,26769,26764,26762,26749,27446,27443,27447,27448,27537,27535,27533,27534,27532,27690,28096,28075,28084,28083,28276,28076,28137,28130,28087,28150,28116,28160,28104,28128,28127,28118,28094,28133,28124,28125,28123,28148,28106,28093,28141,28144,28090,28117,28098,28111,28105,28112,28146,28115,28157,28119,28109,28131,28091,28922,28941,28919,28951,28916,28940,28912,28932,28915,28944,28924,28927,28934,28947,28928,28920,28918,28939,28930,28942,29310,29307,29308,29311,29469,29463,29447,29457,29464,29450,29448,29439,29455,29470,29576,29686,29688,29685,29700,29697,29693,29703,29696,29690,29692,29695,29708,29707,29684,29704,30052,30051,30158,30162,30159,30155,30156,30161,30160,30351,30345,30419,30521,30511,30509,30513,30514,30516,30515,30525,30501,30523,30517,30792,30802,30793,30797,30794,30796,30758,30789,30800,31076,31079,31081,31082,31075,31083,31073,31163,31226,31224,31222,31223,31375,31380,31376,31541,31559,31540,31525,31536,31522,31524,31539,31512,31530,31517,31537,31531,31533,31535,31538,31544,31514,31523,31892,31896,31894,31907,32053,32061,32056,32054,32058,32069,32044,32041,32065,32071,32062,32063,32074,32059,32040,32611,32661,32668,32669,32667,32714,32715,32717,32720,32721,32711,32719,32713,32799,32798,32795,32839,32835,32840,33048,33061,33049,33051,33069,33055,33068,33054,33057,33045,33063,33053,33058,33297,33336,33331,33338,33332,33330,33396,33680,33699,33704,33677,33658,33651,33700,33652,33679,33665,33685,33689,33653,33684,33705,33661,33667,33676,33693,33691,33706,33675,33662,33701,33711,33672,33687,33712,33663,33702,33671,33710,33654,33690,34393,34390,34495,34487,34498,34497,34501,34490,34480,34504,34489,34483,34488,34508,34484,34491,34492,34499,34493,34494,34898,34953,34965,34984,34978,34986,34970,34961,34977,34975,34968,34983,34969,34971,34967,34980,34988,34956,34963,34958,35202,35286,35289,35285,35376,35367,35372,35358,35897,35899,35932,35933,35965,36005,36221,36219,36217,36284,36290,36281,36287,36289,36568,36574,36573,36572,36567,36576,36577,36900,36875,36881,36892,36876,36897,37103,37098,37104,37108,37106,37107,37076,37099,37100,37097,37206,37208,37210,37203,37205,37356,37364,37361,37363,37368,37348,37369,37354,37355,37367,37352,37358,38266,38278,38280,38524,38509,38507,38513,38511,38591,38762,38916,39141,39319,20635,20629,20628,20638,20619,20643,20611,20620,20622,20637,20584,20636,20626,20610,20615,20831,20948,21266,21265,21412,21415,21905,21928,21925,21933,21879,22085,21922,21907,21896,21903,21941,21889,21923,21906,21924,21885,21900,21926,21887,21909,21921,21902,22284,22569,22583,22553,22558,22567,22563,22568,22517,22600,22565,22556,22555,22579,22591,22582,22574,22585,22584,22573,22572,22587,22881,23215,23188,23199,23162,23202,23198,23160,23206,23164,23205,23212,23189,23214,23095,23172,23178,23191,23171,23179,23209,23163,23165,23180,23196,23183,23187,23197,23530,23501,23499,23508,23505,23498,23502,23564,23600,23863,23875,23915,23873,23883,23871,23861,23889,23886,23893,23859,23866,23890,23869,23857,23897,23874,23865,23881,23864,23868,23858,23862,23872,23877,24132,24129,24408,24486,24485,24491,24777,24761,24780,24802,24782,24772,24852,24818,24842,24854,24837,24821,24851,24824,24828,24830,24769,24835,24856,24861,24848,24831,24836,24843,25162,25492,25521,25520,25550,25573,25576,25583,25539,25757,25587,25546,25568,25590,25557,25586,25589,25697,25567,25534,25565,25564,25540,25560,25555,25538,25543,25548,25547,25544,25584,25559,25561,25906,25959,25962,25956,25948,25960,25957,25996,26013,26014,26030,26064,26066,26236,26220,26235,26240,26225,26233,26218,26226,26369,26892,26835,26884,26844,26922,26860,26858,26865,26895,26838,26871,26859,26852,26870,26899,26896,26867,26849,26887,26828,26888,26992,26804,26897,26863,26822,26900,26872,26832,26877,26876,26856,26891,26890,26903,26830,26824,26845,26846,26854,26868,26833,26886,26836,26857,26901,26917,26823,27449,27451,27455,27452,27540,27543,27545,27541,27581,27632,27634,27635,27696,28156,28230,28231,28191,28233,28296,28220,28221,28229,28258,28203,28223,28225,28253,28275,28188,28211,28235,28224,28241,28219,28163,28206,28254,28264,28252,28257,28209,28200,28256,28273,28267,28217,28194,28208,28243,28261,28199,28280,28260,28279,28245,28281,28242,28262,28213,28214,28250,28960,28958,28975,28923,28974,28977,28963,28965,28962,28978,28959,28968,28986,28955,29259,29274,29320,29321,29318,29317,29323,29458,29451,29488,29474,29489,29491,29479,29490,29485,29478,29475,29493,29452,29742,29740,29744,29739,29718,29722,29729,29741,29745,29732,29731,29725,29737,29728,29746,29947,29999,30063,30060,30183,30170,30177,30182,30173,30175,30180,30167,30357,30354,30426,30534,30535,30532,30541,30533,30538,30542,30539,30540,30686,30700,30816,30820,30821,30812,30829,30833,30826,30830,30832,30825,30824,30814,30818,31092,31091,31090,31088,31234,31242,31235,31244,31236,31385,31462,31460,31562,31547,31556,31560,31564,31566,31552,31576,31557,31906,31902,31912,31905,32088,32111,32099,32083,32086,32103,32106,32079,32109,32092,32107,32082,32084,32105,32081,32095,32078,32574,32575,32613,32614,32674,32672,32673,32727,32849,32847,32848,33022,32980,33091,33098,33106,33103,33095,33085,33101,33082,33254,33262,33271,33272,33273,33284,33340,33341,33343,33397,33595,33743,33785,33827,33728,33768,33810,33767,33764,33788,33782,33808,33734,33736,33771,33763,33727,33793,33757,33765,33752,33791,33761,33739,33742,33750,33781,33737,33801,33807,33758,33809,33798,33730,33779,33749,33786,33735,33745,33770,33811,33731,33772,33774,33732,33787,33751,33762,33819,33755,33790,34520,34530,34534,34515,34531,34522,34538,34525,34539,34524,34540,34537,34519,34536,34513,34888,34902,34901,35002,35031,35001,35e3,35008,35006,34998,35004,34999,35005,34994,35073,35017,35221,35224,35223,35293,35290,35291,35406,35405,35385,35417,35392,35415,35416,35396,35397,35410,35400,35409,35402,35404,35407,35935,35969,35968,36026,36030,36016,36025,36021,36228,36224,36233,36312,36307,36301,36295,36310,36316,36303,36309,36313,36296,36311,36293,36591,36599,36602,36601,36582,36590,36581,36597,36583,36584,36598,36587,36593,36588,36596,36585,36909,36916,36911,37126,37164,37124,37119,37116,37128,37113,37115,37121,37120,37127,37125,37123,37217,37220,37215,37218,37216,37377,37386,37413,37379,37402,37414,37391,37388,37376,37394,37375,37373,37382,37380,37415,37378,37404,37412,37401,37399,37381,37398,38267,38285,38284,38288,38535,38526,38536,38537,38531,38528,38594,38600,38595,38641,38640,38764,38768,38766,38919,39081,39147,40166,40697,20099,20100,20150,20669,20671,20678,20654,20676,20682,20660,20680,20674,20656,20673,20666,20657,20683,20681,20662,20664,20951,21114,21112,21115,21116,21955,21979,21964,21968,21963,21962,21981,21952,21972,21956,21993,21951,21970,21901,21967,21973,21986,21974,21960,22002,21965,21977,21954,22292,22611,22632,22628,22607,22605,22601,22639,22613,22606,22621,22617,22629,22619,22589,22627,22641,22780,23239,23236,23243,23226,23224,23217,23221,23216,23231,23240,23227,23238,23223,23232,23242,23220,23222,23245,23225,23184,23510,23512,23513,23583,23603,23921,23907,23882,23909,23922,23916,23902,23912,23911,23906,24048,24143,24142,24138,24141,24139,24261,24268,24262,24267,24263,24384,24495,24493,24823,24905,24906,24875,24901,24886,24882,24878,24902,24879,24911,24873,24896,25120,37224,25123,25125,25124,25541,25585,25579,25616,25618,25609,25632,25636,25651,25667,25631,25621,25624,25657,25655,25634,25635,25612,25638,25648,25640,25665,25653,25647,25610,25626,25664,25637,25639,25611,25575,25627,25646,25633,25614,25967,26002,26067,26246,26252,26261,26256,26251,26250,26265,26260,26232,26400,26982,26975,26936,26958,26978,26993,26943,26949,26986,26937,26946,26967,26969,27002,26952,26953,26933,26988,26931,26941,26981,26864,27e3,26932,26985,26944,26991,26948,26998,26968,26945,26996,26956,26939,26955,26935,26972,26959,26961,26930,26962,26927,27003,26940,27462,27461,27459,27458,27464,27457,27547,64013,27643,27644,27641,27639,27640,28315,28374,28360,28303,28352,28319,28307,28308,28320,28337,28345,28358,28370,28349,28353,28318,28361,28343,28336,28365,28326,28367,28338,28350,28355,28380,28376,28313,28306,28302,28301,28324,28321,28351,28339,28368,28362,28311,28334,28323,28999,29012,29010,29027,29024,28993,29021,29026,29042,29048,29034,29025,28994,29016,28995,29003,29040,29023,29008,29011,28996,29005,29018,29263,29325,29324,29329,29328,29326,29500,29506,29499,29498,29504,29514,29513,29764,29770,29771,29778,29777,29783,29760,29775,29776,29774,29762,29766,29773,29780,29921,29951,29950,29949,29981,30073,30071,27011,30191,30223,30211,30199,30206,30204,30201,30200,30224,30203,30198,30189,30197,30205,30361,30389,30429,30549,30559,30560,30546,30550,30554,30569,30567,30548,30553,30573,30688,30855,30874,30868,30863,30852,30869,30853,30854,30881,30851,30841,30873,30848,30870,30843,31100,31106,31101,31097,31249,31256,31257,31250,31255,31253,31266,31251,31259,31248,31395,31394,31390,31467,31590,31588,31597,31604,31593,31602,31589,31603,31601,31600,31585,31608,31606,31587,31922,31924,31919,32136,32134,32128,32141,32127,32133,32122,32142,32123,32131,32124,32140,32148,32132,32125,32146,32621,32619,32615,32616,32620,32678,32677,32679,32731,32732,32801,33124,33120,33143,33116,33129,33115,33122,33138,26401,33118,33142,33127,33135,33092,33121,33309,33353,33348,33344,33346,33349,34033,33855,33878,33910,33913,33935,33933,33893,33873,33856,33926,33895,33840,33869,33917,33882,33881,33908,33907,33885,34055,33886,33847,33850,33844,33914,33859,33912,33842,33861,33833,33753,33867,33839,33858,33837,33887,33904,33849,33870,33868,33874,33903,33989,33934,33851,33863,33846,33843,33896,33918,33860,33835,33888,33876,33902,33872,34571,34564,34551,34572,34554,34518,34549,34637,34552,34574,34569,34561,34550,34573,34565,35030,35019,35021,35022,35038,35035,35034,35020,35024,35205,35227,35295,35301,35300,35297,35296,35298,35292,35302,35446,35462,35455,35425,35391,35447,35458,35460,35445,35459,35457,35444,35450,35900,35915,35914,35941,35940,35942,35974,35972,35973,36044,36200,36201,36241,36236,36238,36239,36237,36243,36244,36240,36242,36336,36320,36332,36337,36334,36304,36329,36323,36322,36327,36338,36331,36340,36614,36607,36609,36608,36613,36615,36616,36610,36619,36946,36927,36932,36937,36925,37136,37133,37135,37137,37142,37140,37131,37134,37230,37231,37448,37458,37424,37434,37478,37427,37477,37470,37507,37422,37450,37446,37485,37484,37455,37472,37479,37487,37430,37473,37488,37425,37460,37475,37456,37490,37454,37459,37452,37462,37426,38303,38300,38302,38299,38546,38547,38545,38551,38606,38650,38653,38648,38645,38771,38775,38776,38770,38927,38925,38926,39084,39158,39161,39343,39346,39344,39349,39597,39595,39771,40170,40173,40167,40576,40701,20710,20692,20695,20712,20723,20699,20714,20701,20708,20691,20716,20720,20719,20707,20704,20952,21120,21121,21225,21227,21296,21420,22055,22037,22028,22034,22012,22031,22044,22017,22035,22018,22010,22045,22020,22015,22009,22665,22652,22672,22680,22662,22657,22655,22644,22667,22650,22663,22673,22670,22646,22658,22664,22651,22676,22671,22782,22891,23260,23278,23269,23253,23274,23258,23277,23275,23283,23266,23264,23259,23276,23262,23261,23257,23272,23263,23415,23520,23523,23651,23938,23936,23933,23942,23930,23937,23927,23946,23945,23944,23934,23932,23949,23929,23935,24152,24153,24147,24280,24273,24279,24270,24284,24277,24281,24274,24276,24388,24387,24431,24502,24876,24872,24897,24926,24945,24947,24914,24915,24946,24940,24960,24948,24916,24954,24923,24933,24891,24938,24929,24918,25129,25127,25131,25643,25677,25691,25693,25716,25718,25714,25715,25725,25717,25702,25766,25678,25730,25694,25692,25675,25683,25696,25680,25727,25663,25708,25707,25689,25701,25719,25971,26016,26273,26272,26271,26373,26372,26402,27057,27062,27081,27040,27086,27030,27056,27052,27068,27025,27033,27022,27047,27021,27049,27070,27055,27071,27076,27069,27044,27092,27065,27082,27034,27087,27059,27027,27050,27041,27038,27097,27031,27024,27074,27061,27045,27078,27466,27469,27467,27550,27551,27552,27587,27588,27646,28366,28405,28401,28419,28453,28408,28471,28411,28462,28425,28494,28441,28442,28455,28440,28475,28434,28397,28426,28470,28531,28409,28398,28461,28480,28464,28476,28469,28395,28423,28430,28483,28421,28413,28406,28473,28444,28412,28474,28447,28429,28446,28424,28449,29063,29072,29065,29056,29061,29058,29071,29051,29062,29057,29079,29252,29267,29335,29333,29331,29507,29517,29521,29516,29794,29811,29809,29813,29810,29799,29806,29952,29954,29955,30077,30096,30230,30216,30220,30229,30225,30218,30228,30392,30593,30588,30597,30594,30574,30592,30575,30590,30595,30898,30890,30900,30893,30888,30846,30891,30878,30885,30880,30892,30882,30884,31128,31114,31115,31126,31125,31124,31123,31127,31112,31122,31120,31275,31306,31280,31279,31272,31270,31400,31403,31404,31470,31624,31644,31626,31633,31632,31638,31629,31628,31643,31630,31621,31640,21124,31641,31652,31618,31931,31935,31932,31930,32167,32183,32194,32163,32170,32193,32192,32197,32157,32206,32196,32198,32203,32204,32175,32185,32150,32188,32159,32166,32174,32169,32161,32201,32627,32738,32739,32741,32734,32804,32861,32860,33161,33158,33155,33159,33165,33164,33163,33301,33943,33956,33953,33951,33978,33998,33986,33964,33966,33963,33977,33972,33985,33997,33962,33946,33969,34e3,33949,33959,33979,33954,33940,33991,33996,33947,33961,33967,33960,34006,33944,33974,33999,33952,34007,34004,34002,34011,33968,33937,34401,34611,34595,34600,34667,34624,34606,34590,34593,34585,34587,34627,34604,34625,34622,34630,34592,34610,34602,34605,34620,34578,34618,34609,34613,34626,34598,34599,34616,34596,34586,34608,34577,35063,35047,35057,35058,35066,35070,35054,35068,35062,35067,35056,35052,35051,35229,35233,35231,35230,35305,35307,35304,35499,35481,35467,35474,35471,35478,35901,35944,35945,36053,36047,36055,36246,36361,36354,36351,36365,36349,36362,36355,36359,36358,36357,36350,36352,36356,36624,36625,36622,36621,37155,37148,37152,37154,37151,37149,37146,37156,37153,37147,37242,37234,37241,37235,37541,37540,37494,37531,37498,37536,37524,37546,37517,37542,37530,37547,37497,37527,37503,37539,37614,37518,37506,37525,37538,37501,37512,37537,37514,37510,37516,37529,37543,37502,37511,37545,37533,37515,37421,38558,38561,38655,38744,38781,38778,38782,38787,38784,38786,38779,38788,38785,38783,38862,38861,38934,39085,39086,39170,39168,39175,39325,39324,39363,39353,39355,39354,39362,39357,39367,39601,39651,39655,39742,39743,39776,39777,39775,40177,40178,40181,40615,20735,20739,20784,20728,20742,20743,20726,20734,20747,20748,20733,20746,21131,21132,21233,21231,22088,22082,22092,22069,22081,22090,22089,22086,22104,22106,22080,22067,22077,22060,22078,22072,22058,22074,22298,22699,22685,22705,22688,22691,22703,22700,22693,22689,22783,23295,23284,23293,23287,23286,23299,23288,23298,23289,23297,23303,23301,23311,23655,23961,23959,23967,23954,23970,23955,23957,23968,23964,23969,23962,23966,24169,24157,24160,24156,32243,24283,24286,24289,24393,24498,24971,24963,24953,25009,25008,24994,24969,24987,24979,25007,25005,24991,24978,25002,24993,24973,24934,25011,25133,25710,25712,25750,25760,25733,25751,25756,25743,25739,25738,25740,25763,25759,25704,25777,25752,25974,25978,25977,25979,26034,26035,26293,26288,26281,26290,26295,26282,26287,27136,27142,27159,27109,27128,27157,27121,27108,27168,27135,27116,27106,27163,27165,27134,27175,27122,27118,27156,27127,27111,27200,27144,27110,27131,27149,27132,27115,27145,27140,27160,27173,27151,27126,27174,27143,27124,27158,27473,27557,27555,27554,27558,27649,27648,27647,27650,28481,28454,28542,28551,28614,28562,28557,28553,28556,28514,28495,28549,28506,28566,28534,28524,28546,28501,28530,28498,28496,28503,28564,28563,28509,28416,28513,28523,28541,28519,28560,28499,28555,28521,28543,28565,28515,28535,28522,28539,29106,29103,29083,29104,29088,29082,29097,29109,29085,29093,29086,29092,29089,29098,29084,29095,29107,29336,29338,29528,29522,29534,29535,29536,29533,29531,29537,29530,29529,29538,29831,29833,29834,29830,29825,29821,29829,29832,29820,29817,29960,29959,30078,30245,30238,30233,30237,30236,30243,30234,30248,30235,30364,30365,30366,30363,30605,30607,30601,30600,30925,30907,30927,30924,30929,30926,30932,30920,30915,30916,30921,31130,31137,31136,31132,31138,31131,27510,31289,31410,31412,31411,31671,31691,31678,31660,31694,31663,31673,31690,31669,31941,31944,31948,31947,32247,32219,32234,32231,32215,32225,32259,32250,32230,32246,32241,32240,32238,32223,32630,32684,32688,32685,32749,32747,32746,32748,32742,32744,32868,32871,33187,33183,33182,33173,33186,33177,33175,33302,33359,33363,33362,33360,33358,33361,34084,34107,34063,34048,34089,34062,34057,34061,34079,34058,34087,34076,34043,34091,34042,34056,34060,34036,34090,34034,34069,34039,34027,34035,34044,34066,34026,34025,34070,34046,34088,34077,34094,34050,34045,34078,34038,34097,34086,34023,34024,34032,34031,34041,34072,34080,34096,34059,34073,34095,34402,34646,34659,34660,34679,34785,34675,34648,34644,34651,34642,34657,34650,34641,34654,34669,34666,34640,34638,34655,34653,34671,34668,34682,34670,34652,34661,34639,34683,34677,34658,34663,34665,34906,35077,35084,35092,35083,35095,35096,35097,35078,35094,35089,35086,35081,35234,35236,35235,35309,35312,35308,35535,35526,35512,35539,35537,35540,35541,35515,35543,35518,35520,35525,35544,35523,35514,35517,35545,35902,35917,35983,36069,36063,36057,36072,36058,36061,36071,36256,36252,36257,36251,36384,36387,36389,36388,36398,36373,36379,36374,36369,36377,36390,36391,36372,36370,36376,36371,36380,36375,36378,36652,36644,36632,36634,36640,36643,36630,36631,36979,36976,36975,36967,36971,37167,37163,37161,37162,37170,37158,37166,37253,37254,37258,37249,37250,37252,37248,37584,37571,37572,37568,37593,37558,37583,37617,37599,37592,37609,37591,37597,37580,37615,37570,37608,37578,37576,37582,37606,37581,37589,37577,37600,37598,37607,37585,37587,37557,37601,37574,37556,38268,38316,38315,38318,38320,38564,38562,38611,38661,38664,38658,38746,38794,38798,38792,38864,38863,38942,38941,38950,38953,38952,38944,38939,38951,39090,39176,39162,39185,39188,39190,39191,39189,39388,39373,39375,39379,39380,39374,39369,39382,39384,39371,39383,39372,39603,39660,39659,39667,39666,39665,39750,39747,39783,39796,39793,39782,39798,39797,39792,39784,39780,39788,40188,40186,40189,40191,40183,40199,40192,40185,40187,40200,40197,40196,40579,40659,40719,40720,20764,20755,20759,20762,20753,20958,21300,21473,22128,22112,22126,22131,22118,22115,22125,22130,22110,22135,22300,22299,22728,22717,22729,22719,22714,22722,22716,22726,23319,23321,23323,23329,23316,23315,23312,23318,23336,23322,23328,23326,23535,23980,23985,23977,23975,23989,23984,23982,23978,23976,23986,23981,23983,23988,24167,24168,24166,24175,24297,24295,24294,24296,24293,24395,24508,24989,25e3,24982,25029,25012,25030,25025,25036,25018,25023,25016,24972,25815,25814,25808,25807,25801,25789,25737,25795,25819,25843,25817,25907,25983,25980,26018,26312,26302,26304,26314,26315,26319,26301,26299,26298,26316,26403,27188,27238,27209,27239,27186,27240,27198,27229,27245,27254,27227,27217,27176,27226,27195,27199,27201,27242,27236,27216,27215,27220,27247,27241,27232,27196,27230,27222,27221,27213,27214,27206,27477,27476,27478,27559,27562,27563,27592,27591,27652,27651,27654,28589,28619,28579,28615,28604,28622,28616,28510,28612,28605,28574,28618,28584,28676,28581,28590,28602,28588,28586,28623,28607,28600,28578,28617,28587,28621,28591,28594,28592,29125,29122,29119,29112,29142,29120,29121,29131,29140,29130,29127,29135,29117,29144,29116,29126,29146,29147,29341,29342,29545,29542,29543,29548,29541,29547,29546,29823,29850,29856,29844,29842,29845,29857,29963,30080,30255,30253,30257,30269,30259,30268,30261,30258,30256,30395,30438,30618,30621,30625,30620,30619,30626,30627,30613,30617,30615,30941,30953,30949,30954,30942,30947,30939,30945,30946,30957,30943,30944,31140,31300,31304,31303,31414,31416,31413,31409,31415,31710,31715,31719,31709,31701,31717,31706,31720,31737,31700,31722,31714,31708,31723,31704,31711,31954,31956,31959,31952,31953,32274,32289,32279,32268,32287,32288,32275,32270,32284,32277,32282,32290,32267,32271,32278,32269,32276,32293,32292,32579,32635,32636,32634,32689,32751,32810,32809,32876,33201,33190,33198,33209,33205,33195,33200,33196,33204,33202,33207,33191,33266,33365,33366,33367,34134,34117,34155,34125,34131,34145,34136,34112,34118,34148,34113,34146,34116,34129,34119,34147,34110,34139,34161,34126,34158,34165,34133,34151,34144,34188,34150,34141,34132,34149,34156,34403,34405,34404,34715,34703,34711,34707,34706,34696,34689,34710,34712,34681,34695,34723,34693,34704,34705,34717,34692,34708,34716,34714,34697,35102,35110,35120,35117,35118,35111,35121,35106,35113,35107,35119,35116,35103,35313,35552,35554,35570,35572,35573,35549,35604,35556,35551,35568,35528,35550,35553,35560,35583,35567,35579,35985,35986,35984,36085,36078,36081,36080,36083,36204,36206,36261,36263,36403,36414,36408,36416,36421,36406,36412,36413,36417,36400,36415,36541,36662,36654,36661,36658,36665,36663,36660,36982,36985,36987,36998,37114,37171,37173,37174,37267,37264,37265,37261,37263,37671,37662,37640,37663,37638,37647,37754,37688,37692,37659,37667,37650,37633,37702,37677,37646,37645,37579,37661,37626,37669,37651,37625,37623,37684,37634,37668,37631,37673,37689,37685,37674,37652,37644,37643,37630,37641,37632,37627,37654,38332,38349,38334,38329,38330,38326,38335,38325,38333,38569,38612,38667,38674,38672,38809,38807,38804,38896,38904,38965,38959,38962,39204,39199,39207,39209,39326,39406,39404,39397,39396,39408,39395,39402,39401,39399,39609,39615,39604,39611,39670,39674,39673,39671,39731,39808,39813,39815,39804,39806,39803,39810,39827,39826,39824,39802,39829,39805,39816,40229,40215,40224,40222,40212,40233,40221,40216,40226,40208,40217,40223,40584,40582,40583,40622,40621,40661,40662,40698,40722,40765,20774,20773,20770,20772,20768,20777,21236,22163,22156,22157,22150,22148,22147,22142,22146,22143,22145,22742,22740,22735,22738,23341,23333,23346,23331,23340,23335,23334,23343,23342,23419,23537,23538,23991,24172,24170,24510,24507,25027,25013,25020,25063,25056,25061,25060,25064,25054,25839,25833,25827,25835,25828,25832,25985,25984,26038,26074,26322,27277,27286,27265,27301,27273,27295,27291,27297,27294,27271,27283,27278,27285,27267,27304,27300,27281,27263,27302,27290,27269,27276,27282,27483,27565,27657,28620,28585,28660,28628,28643,28636,28653,28647,28646,28638,28658,28637,28642,28648,29153,29169,29160,29170,29156,29168,29154,29555,29550,29551,29847,29874,29867,29840,29866,29869,29873,29861,29871,29968,29969,29970,29967,30084,30275,30280,30281,30279,30372,30441,30645,30635,30642,30647,30646,30644,30641,30632,30704,30963,30973,30978,30971,30972,30962,30981,30969,30974,30980,31147,31144,31324,31323,31318,31320,31316,31322,31422,31424,31425,31749,31759,31730,31744,31743,31739,31758,31732,31755,31731,31746,31753,31747,31745,31736,31741,31750,31728,31729,31760,31754,31976,32301,32316,32322,32307,38984,32312,32298,32329,32320,32327,32297,32332,32304,32315,32310,32324,32314,32581,32639,32638,32637,32756,32754,32812,33211,33220,33228,33226,33221,33223,33212,33257,33371,33370,33372,34179,34176,34191,34215,34197,34208,34187,34211,34171,34212,34202,34206,34167,34172,34185,34209,34170,34168,34135,34190,34198,34182,34189,34201,34205,34177,34210,34178,34184,34181,34169,34166,34200,34192,34207,34408,34750,34730,34733,34757,34736,34732,34745,34741,34748,34734,34761,34755,34754,34764,34743,34735,34756,34762,34740,34742,34751,34744,34749,34782,34738,35125,35123,35132,35134,35137,35154,35127,35138,35245,35247,35246,35314,35315,35614,35608,35606,35601,35589,35595,35618,35599,35602,35605,35591,35597,35592,35590,35612,35603,35610,35919,35952,35954,35953,35951,35989,35988,36089,36207,36430,36429,36435,36432,36428,36423,36675,36672,36997,36990,37176,37274,37282,37275,37273,37279,37281,37277,37280,37793,37763,37807,37732,37718,37703,37756,37720,37724,37750,37705,37712,37713,37728,37741,37775,37708,37738,37753,37719,37717,37714,37711,37745,37751,37755,37729,37726,37731,37735,37760,37710,37721,38343,38336,38345,38339,38341,38327,38574,38576,38572,38688,38687,38680,38685,38681,38810,38817,38812,38814,38813,38869,38868,38897,38977,38980,38986,38985,38981,38979,39205,39211,39212,39210,39219,39218,39215,39213,39217,39216,39320,39331,39329,39426,39418,39412,39415,39417,39416,39414,39419,39421,39422,39420,39427,39614,39678,39677,39681,39676,39752,39834,39848,39838,39835,39846,39841,39845,39844,39814,39842,39840,39855,40243,40257,40295,40246,40238,40239,40241,40248,40240,40261,40258,40259,40254,40247,40256,40253,32757,40237,40586,40585,40589,40624,40648,40666,40699,40703,40740,40739,40738,40788,40864,20785,20781,20782,22168,22172,22167,22170,22173,22169,22896,23356,23657,23658,24e3,24173,24174,25048,25055,25069,25070,25073,25066,25072,25067,25046,25065,25855,25860,25853,25848,25857,25859,25852,26004,26075,26330,26331,26328,27333,27321,27325,27361,27334,27322,27318,27319,27335,27316,27309,27486,27593,27659,28679,28684,28685,28673,28677,28692,28686,28671,28672,28667,28710,28668,28663,28682,29185,29183,29177,29187,29181,29558,29880,29888,29877,29889,29886,29878,29883,29890,29972,29971,30300,30308,30297,30288,30291,30295,30298,30374,30397,30444,30658,30650,30975,30988,30995,30996,30985,30992,30994,30993,31149,31148,31327,31772,31785,31769,31776,31775,31789,31773,31782,31784,31778,31781,31792,32348,32336,32342,32355,32344,32354,32351,32337,32352,32343,32339,32693,32691,32759,32760,32885,33233,33234,33232,33375,33374,34228,34246,34240,34243,34242,34227,34229,34237,34247,34244,34239,34251,34254,34248,34245,34225,34230,34258,34340,34232,34231,34238,34409,34791,34790,34786,34779,34795,34794,34789,34783,34803,34788,34772,34780,34771,34797,34776,34787,34724,34775,34777,34817,34804,34792,34781,35155,35147,35151,35148,35142,35152,35153,35145,35626,35623,35619,35635,35632,35637,35655,35631,35644,35646,35633,35621,35639,35622,35638,35630,35620,35643,35645,35642,35906,35957,35993,35992,35991,36094,36100,36098,36096,36444,36450,36448,36439,36438,36446,36453,36455,36443,36442,36449,36445,36457,36436,36678,36679,36680,36683,37160,37178,37179,37182,37288,37285,37287,37295,37290,37813,37772,37778,37815,37787,37789,37769,37799,37774,37802,37790,37798,37781,37768,37785,37791,37773,37809,37777,37810,37796,37800,37812,37795,37797,38354,38355,38353,38579,38615,38618,24002,38623,38616,38621,38691,38690,38693,38828,38830,38824,38827,38820,38826,38818,38821,38871,38873,38870,38872,38906,38992,38993,38994,39096,39233,39228,39226,39439,39435,39433,39437,39428,39441,39434,39429,39431,39430,39616,39644,39688,39684,39685,39721,39733,39754,39756,39755,39879,39878,39875,39871,39873,39861,39864,39891,39862,39876,39865,39869,40284,40275,40271,40266,40283,40267,40281,40278,40268,40279,40274,40276,40287,40280,40282,40590,40588,40671,40705,40704,40726,40741,40747,40746,40745,40744,40780,40789,20788,20789,21142,21239,21428,22187,22189,22182,22183,22186,22188,22746,22749,22747,22802,23357,23358,23359,24003,24176,24511,25083,25863,25872,25869,25865,25868,25870,25988,26078,26077,26334,27367,27360,27340,27345,27353,27339,27359,27356,27344,27371,27343,27341,27358,27488,27568,27660,28697,28711,28704,28694,28715,28705,28706,28707,28713,28695,28708,28700,28714,29196,29194,29191,29186,29189,29349,29350,29348,29347,29345,29899,29893,29879,29891,29974,30304,30665,30666,30660,30705,31005,31003,31009,31004,30999,31006,31152,31335,31336,31795,31804,31801,31788,31803,31980,31978,32374,32373,32376,32368,32375,32367,32378,32370,32372,32360,32587,32586,32643,32646,32695,32765,32766,32888,33239,33237,33380,33377,33379,34283,34289,34285,34265,34273,34280,34266,34263,34284,34290,34296,34264,34271,34275,34268,34257,34288,34278,34287,34270,34274,34816,34810,34819,34806,34807,34825,34828,34827,34822,34812,34824,34815,34826,34818,35170,35162,35163,35159,35169,35164,35160,35165,35161,35208,35255,35254,35318,35664,35656,35658,35648,35667,35670,35668,35659,35669,35665,35650,35666,35671,35907,35959,35958,35994,36102,36103,36105,36268,36266,36269,36267,36461,36472,36467,36458,36463,36475,36546,36690,36689,36687,36688,36691,36788,37184,37183,37296,37293,37854,37831,37839,37826,37850,37840,37881,37868,37836,37849,37801,37862,37834,37844,37870,37859,37845,37828,37838,37824,37842,37863,38269,38362,38363,38625,38697,38699,38700,38696,38694,38835,38839,38838,38877,38878,38879,39004,39001,39005,38999,39103,39101,39099,39102,39240,39239,39235,39334,39335,39450,39445,39461,39453,39460,39451,39458,39456,39463,39459,39454,39452,39444,39618,39691,39690,39694,39692,39735,39914,39915,39904,39902,39908,39910,39906,39920,39892,39895,39916,39900,39897,39909,39893,39905,39898,40311,40321,40330,40324,40328,40305,40320,40312,40326,40331,40332,40317,40299,40308,40309,40304,40297,40325,40307,40315,40322,40303,40313,40319,40327,40296,40596,40593,40640,40700,40749,40768,40769,40781,40790,40791,40792,21303,22194,22197,22195,22755,23365,24006,24007,24302,24303,24512,24513,25081,25879,25878,25877,25875,26079,26344,26339,26340,27379,27376,27370,27368,27385,27377,27374,27375,28732,28725,28719,28727,28724,28721,28738,28728,28735,28730,28729,28736,28731,28723,28737,29203,29204,29352,29565,29564,29882,30379,30378,30398,30445,30668,30670,30671,30669,30706,31013,31011,31015,31016,31012,31017,31154,31342,31340,31341,31479,31817,31816,31818,31815,31813,31982,32379,32382,32385,32384,32698,32767,32889,33243,33241,33291,33384,33385,34338,34303,34305,34302,34331,34304,34294,34308,34313,34309,34316,34301,34841,34832,34833,34839,34835,34838,35171,35174,35257,35319,35680,35690,35677,35688,35683,35685,35687,35693,36270,36486,36488,36484,36697,36694,36695,36693,36696,36698,37005,37187,37185,37303,37301,37298,37299,37899,37907,37883,37920,37903,37908,37886,37909,37904,37928,37913,37901,37877,37888,37879,37895,37902,37910,37906,37882,37897,37880,37898,37887,37884,37900,37878,37905,37894,38366,38368,38367,38702,38703,38841,38843,38909,38910,39008,39010,39011,39007,39105,39106,39248,39246,39257,39244,39243,39251,39474,39476,39473,39468,39466,39478,39465,39470,39480,39469,39623,39626,39622,39696,39698,39697,39947,39944,39927,39941,39954,39928,4e4,39943,39950,39942,39959,39956,39945,40351,40345,40356,40349,40338,40344,40336,40347,40352,40340,40348,40362,40343,40353,40346,40354,40360,40350,40355,40383,40361,40342,40358,40359,40601,40603,40602,40677,40676,40679,40678,40752,40750,40795,40800,40798,40797,40793,40849,20794,20793,21144,21143,22211,22205,22206,23368,23367,24011,24015,24305,25085,25883,27394,27388,27395,27384,27392,28739,28740,28746,28744,28745,28741,28742,29213,29210,29209,29566,29975,30314,30672,31021,31025,31023,31828,31827,31986,32394,32391,32392,32395,32390,32397,32589,32699,32816,33245,34328,34346,34342,34335,34339,34332,34329,34343,34350,34337,34336,34345,34334,34341,34857,34845,34843,34848,34852,34844,34859,34890,35181,35177,35182,35179,35322,35705,35704,35653,35706,35707,36112,36116,36271,36494,36492,36702,36699,36701,37190,37188,37189,37305,37951,37947,37942,37929,37949,37948,37936,37945,37930,37943,37932,37952,37937,38373,38372,38371,38709,38714,38847,38881,39012,39113,39110,39104,39256,39254,39481,39485,39494,39492,39490,39489,39482,39487,39629,39701,39703,39704,39702,39738,39762,39979,39965,39964,39980,39971,39976,39977,39972,39969,40375,40374,40380,40385,40391,40394,40399,40382,40389,40387,40379,40373,40398,40377,40378,40364,40392,40369,40365,40396,40371,40397,40370,40570,40604,40683,40686,40685,40731,40728,40730,40753,40782,40805,40804,40850,20153,22214,22213,22219,22897,23371,23372,24021,24017,24306,25889,25888,25894,25890,27403,27400,27401,27661,28757,28758,28759,28754,29214,29215,29353,29567,29912,29909,29913,29911,30317,30381,31029,31156,31344,31345,31831,31836,31833,31835,31834,31988,31985,32401,32591,32647,33246,33387,34356,34357,34355,34348,34354,34358,34860,34856,34854,34858,34853,35185,35263,35262,35323,35710,35716,35714,35718,35717,35711,36117,36501,36500,36506,36498,36496,36502,36503,36704,36706,37191,37964,37968,37962,37963,37967,37959,37957,37960,37961,37958,38719,38883,39018,39017,39115,39252,39259,39502,39507,39508,39500,39503,39496,39498,39497,39506,39504,39632,39705,39723,39739,39766,39765,40006,40008,39999,40004,39993,39987,40001,39996,39991,39988,39986,39997,39990,40411,40402,40414,40410,40395,40400,40412,40401,40415,40425,40409,40408,40406,40437,40405,40413,40630,40688,40757,40755,40754,40770,40811,40853,40866,20797,21145,22760,22759,22898,23373,24024,34863,24399,25089,25091,25092,25897,25893,26006,26347,27409,27410,27407,27594,28763,28762,29218,29570,29569,29571,30320,30676,31847,31846,32405,33388,34362,34368,34361,34364,34353,34363,34366,34864,34866,34862,34867,35190,35188,35187,35326,35724,35726,35723,35720,35909,36121,36504,36708,36707,37308,37986,37973,37981,37975,37982,38852,38853,38912,39510,39513,39710,39711,39712,40018,40024,40016,40010,40013,40011,40021,40025,40012,40014,40443,40439,40431,40419,40427,40440,40420,40438,40417,40430,40422,40434,40432,40418,40428,40436,40435,40424,40429,40642,40656,40690,40691,40710,40732,40760,40759,40758,40771,40783,40817,40816,40814,40815,22227,22221,23374,23661,25901,26349,26350,27411,28767,28769,28765,28768,29219,29915,29925,30677,31032,31159,31158,31850,32407,32649,33389,34371,34872,34871,34869,34891,35732,35733,36510,36511,36512,36509,37310,37309,37314,37995,37992,37993,38629,38726,38723,38727,38855,38885,39518,39637,39769,40035,40039,40038,40034,40030,40032,40450,40446,40455,40451,40454,40453,40448,40449,40457,40447,40445,40452,40608,40734,40774,40820,40821,40822,22228,25902,26040,27416,27417,27415,27418,28770,29222,29354,30680,30681,31033,31849,31851,31990,32410,32408,32411,32409,33248,33249,34374,34375,34376,35193,35194,35196,35195,35327,35736,35737,36517,36516,36515,37998,37997,37999,38001,38003,38729,39026,39263,40040,40046,40045,40459,40461,40464,40463,40466,40465,40609,40693,40713,40775,40824,40827,40826,40825,22302,28774,31855,34876,36274,36518,37315,38004,38008,38006,38005,39520,40052,40051,40049,40053,40468,40467,40694,40714,40868,28776,28773,31991,34410,34878,34877,34879,35742,35996,36521,36553,38731,39027,39028,39116,39265,39339,39524,39526,39527,39716,40469,40471,40776,25095,27422,29223,34380,36520,38018,38016,38017,39529,39528,39726,40473,29225,34379,35743,38019,40057,40631,30325,39531,40058,40477,28777,28778,40612,40830,40777,40856,30849,37561,35023,22715,24658,31911,23290,9556,9574,9559,9568,9580,9571,9562,9577,9565,9554,9572,9557,9566,9578,9569,9560,9575,9563,9555,9573,9558,9567,9579,9570,9561,9576,9564,9553,9552,9581,9582,9584,9583,65517,132423,37595,132575,147397,34124,17077,29679,20917,13897,149826,166372,37700,137691,33518,146632,30780,26436,25311,149811,166314,131744,158643,135941,20395,140525,20488,159017,162436,144896,150193,140563,20521,131966,24484,131968,131911,28379,132127,20605,20737,13434,20750,39020,14147,33814,149924,132231,20832,144308,20842,134143,139516,131813,140592,132494,143923,137603,23426,34685,132531,146585,20914,20920,40244,20937,20943,20945,15580,20947,150182,20915,20962,21314,20973,33741,26942,145197,24443,21003,21030,21052,21173,21079,21140,21177,21189,31765,34114,21216,34317,158483,21253,166622,21833,28377,147328,133460,147436,21299,21316,134114,27851,136998,26651,29653,24650,16042,14540,136936,29149,17570,21357,21364,165547,21374,21375,136598,136723,30694,21395,166555,21408,21419,21422,29607,153458,16217,29596,21441,21445,27721,20041,22526,21465,15019,134031,21472,147435,142755,21494,134263,21523,28793,21803,26199,27995,21613,158547,134516,21853,21647,21668,18342,136973,134877,15796,134477,166332,140952,21831,19693,21551,29719,21894,21929,22021,137431,147514,17746,148533,26291,135348,22071,26317,144010,26276,26285,22093,22095,30961,22257,38791,21502,22272,22255,22253,166758,13859,135759,22342,147877,27758,28811,22338,14001,158846,22502,136214,22531,136276,148323,22566,150517,22620,22698,13665,22752,22748,135740,22779,23551,22339,172368,148088,37843,13729,22815,26790,14019,28249,136766,23076,21843,136850,34053,22985,134478,158849,159018,137180,23001,137211,137138,159142,28017,137256,136917,23033,159301,23211,23139,14054,149929,23159,14088,23190,29797,23251,159649,140628,15749,137489,14130,136888,24195,21200,23414,25992,23420,162318,16388,18525,131588,23509,24928,137780,154060,132517,23539,23453,19728,23557,138052,23571,29646,23572,138405,158504,23625,18653,23685,23785,23791,23947,138745,138807,23824,23832,23878,138916,23738,24023,33532,14381,149761,139337,139635,33415,14390,15298,24110,27274,24181,24186,148668,134355,21414,20151,24272,21416,137073,24073,24308,164994,24313,24315,14496,24316,26686,37915,24333,131521,194708,15070,18606,135994,24378,157832,140240,24408,140401,24419,38845,159342,24434,37696,166454,24487,23990,15711,152144,139114,159992,140904,37334,131742,166441,24625,26245,137335,14691,15815,13881,22416,141236,31089,15936,24734,24740,24755,149890,149903,162387,29860,20705,23200,24932,33828,24898,194726,159442,24961,20980,132694,24967,23466,147383,141407,25043,166813,170333,25040,14642,141696,141505,24611,24924,25886,25483,131352,25285,137072,25301,142861,25452,149983,14871,25656,25592,136078,137212,25744,28554,142902,38932,147596,153373,25825,25829,38011,14950,25658,14935,25933,28438,150056,150051,25989,25965,25951,143486,26037,149824,19255,26065,16600,137257,26080,26083,24543,144384,26136,143863,143864,26180,143780,143781,26187,134773,26215,152038,26227,26228,138813,143921,165364,143816,152339,30661,141559,39332,26370,148380,150049,15147,27130,145346,26462,26471,26466,147917,168173,26583,17641,26658,28240,37436,26625,144358,159136,26717,144495,27105,27147,166623,26995,26819,144845,26881,26880,15666,14849,144956,15232,26540,26977,166474,17148,26934,27032,15265,132041,33635,20624,27129,144985,139562,27205,145155,27293,15347,26545,27336,168348,15373,27421,133411,24798,27445,27508,141261,28341,146139,132021,137560,14144,21537,146266,27617,147196,27612,27703,140427,149745,158545,27738,33318,27769,146876,17605,146877,147876,149772,149760,146633,14053,15595,134450,39811,143865,140433,32655,26679,159013,159137,159211,28054,27996,28284,28420,149887,147589,159346,34099,159604,20935,27804,28189,33838,166689,28207,146991,29779,147330,31180,28239,23185,143435,28664,14093,28573,146992,28410,136343,147517,17749,37872,28484,28508,15694,28532,168304,15675,28575,147780,28627,147601,147797,147513,147440,147380,147775,20959,147798,147799,147776,156125,28747,28798,28839,28801,28876,28885,28886,28895,16644,15848,29108,29078,148087,28971,28997,23176,29002,29038,23708,148325,29007,37730,148161,28972,148570,150055,150050,29114,166888,28861,29198,37954,29205,22801,37955,29220,37697,153093,29230,29248,149876,26813,29269,29271,15957,143428,26637,28477,29314,29482,29483,149539,165931,18669,165892,29480,29486,29647,29610,134202,158254,29641,29769,147938,136935,150052,26147,14021,149943,149901,150011,29687,29717,26883,150054,29753,132547,16087,29788,141485,29792,167602,29767,29668,29814,33721,29804,14128,29812,37873,27180,29826,18771,150156,147807,150137,166799,23366,166915,137374,29896,137608,29966,29929,29982,167641,137803,23511,167596,37765,30029,30026,30055,30062,151426,16132,150803,30094,29789,30110,30132,30210,30252,30289,30287,30319,30326,156661,30352,33263,14328,157969,157966,30369,30373,30391,30412,159647,33890,151709,151933,138780,30494,30502,30528,25775,152096,30552,144044,30639,166244,166248,136897,30708,30729,136054,150034,26826,30895,30919,30931,38565,31022,153056,30935,31028,30897,161292,36792,34948,166699,155779,140828,31110,35072,26882,31104,153687,31133,162617,31036,31145,28202,160038,16040,31174,168205,31188],"euc-kr":[44034,44035,44037,44038,44043,44044,44045,44046,44047,44056,44062,44063,44065,44066,44067,44069,44070,44071,44072,44073,44074,44075,44078,44082,44083,44084,44085,44086,44087,44090,44091,44093,44094,44095,44097,44098,44099,44100,44101,44102,44103,44104,44105,44106,44108,44110,44111,44112,44113,44114,44115,44117,44118,44119,44121,44122,44123,44125,44126,44127,44128,44129,44130,44131,44132,44133,44134,44135,44136,44137,44138,44139,44140,44141,44142,44143,44146,44147,44149,44150,44153,44155,44156,44157,44158,44159,44162,44167,44168,44173,44174,44175,44177,44178,44179,44181,44182,44183,44184,44185,44186,44187,44190,44194,44195,44196,44197,44198,44199,44203,44205,44206,44209,44210,44211,44212,44213,44214,44215,44218,44222,44223,44224,44226,44227,44229,44230,44231,44233,44234,44235,44237,44238,44239,44240,44241,44242,44243,44244,44246,44248,44249,44250,44251,44252,44253,44254,44255,44258,44259,44261,44262,44265,44267,44269,44270,44274,44276,44279,44280,44281,44282,44283,44286,44287,44289,44290,44291,44293,44295,44296,44297,44298,44299,44302,44304,44306,44307,44308,44309,44310,44311,44313,44314,44315,44317,44318,44319,44321,44322,44323,44324,44325,44326,44327,44328,44330,44331,44334,44335,44336,44337,44338,44339,44342,44343,44345,44346,44347,44349,44350,44351,44352,44353,44354,44355,44358,44360,44362,44363,44364,44365,44366,44367,44369,44370,44371,44373,44374,44375,44377,44378,44379,44380,44381,44382,44383,44384,44386,44388,44389,44390,44391,44392,44393,44394,44395,44398,44399,44401,44402,44407,44408,44409,44410,44414,44416,44419,44420,44421,44422,44423,44426,44427,44429,44430,44431,44433,44434,44435,44436,44437,44438,44439,44440,44441,44442,44443,44446,44447,44448,44449,44450,44451,44453,44454,44455,44456,44457,44458,44459,44460,44461,44462,44463,44464,44465,44466,44467,44468,44469,44470,44472,44473,44474,44475,44476,44477,44478,44479,44482,44483,44485,44486,44487,44489,44490,44491,44492,44493,44494,44495,44498,44500,44501,44502,44503,44504,44505,44506,44507,44509,44510,44511,44513,44514,44515,44517,44518,44519,44520,44521,44522,44523,44524,44525,44526,44527,44528,44529,44530,44531,44532,44533,44534,44535,44538,44539,44541,44542,44546,44547,44548,44549,44550,44551,44554,44556,44558,44559,44560,44561,44562,44563,44565,44566,44567,44568,44569,44570,44571,44572,44573,44574,44575,44576,44577,44578,44579,44580,44581,44582,44583,44584,44585,44586,44587,44588,44589,44590,44591,44594,44595,44597,44598,44601,44603,44604,44605,44606,44607,44610,44612,44615,44616,44617,44619,44623,44625,44626,44627,44629,44631,44632,44633,44634,44635,44638,44642,44643,44644,44646,44647,44650,44651,44653,44654,44655,44657,44658,44659,44660,44661,44662,44663,44666,44670,44671,44672,44673,44674,44675,44678,44679,44680,44681,44682,44683,44685,44686,44687,44688,44689,44690,44691,44692,44693,44694,44695,44696,44697,44698,44699,44700,44701,44702,44703,44704,44705,44706,44707,44708,44709,44710,44711,44712,44713,44714,44715,44716,44717,44718,44719,44720,44721,44722,44723,44724,44725,44726,44727,44728,44729,44730,44731,44735,44737,44738,44739,44741,44742,44743,44744,44745,44746,44747,44750,44754,44755,44756,44757,44758,44759,44762,44763,44765,44766,44767,44768,44769,44770,44771,44772,44773,44774,44775,44777,44778,44780,44782,44783,44784,44785,44786,44787,44789,44790,44791,44793,44794,44795,44797,44798,44799,44800,44801,44802,44803,44804,44805,44806,44809,44810,44811,44812,44814,44815,44817,44818,44819,44820,44821,44822,44823,44824,44825,44826,44827,44828,44829,44830,44831,44832,44833,44834,44835,44836,44837,44838,44839,44840,44841,44842,44843,44846,44847,44849,44851,44853,44854,44855,44856,44857,44858,44859,44862,44864,44868,44869,44870,44871,44874,44875,44876,44877,44878,44879,44881,44882,44883,44884,44885,44886,44887,44888,44889,44890,44891,44894,44895,44896,44897,44898,44899,44902,44903,44904,44905,44906,44907,44908,44909,44910,44911,44912,44913,44914,44915,44916,44917,44918,44919,44920,44922,44923,44924,44925,44926,44927,44929,44930,44931,44933,44934,44935,44937,44938,44939,44940,44941,44942,44943,44946,44947,44948,44950,44951,44952,44953,44954,44955,44957,44958,44959,44960,44961,44962,44963,44964,44965,44966,44967,44968,44969,44970,44971,44972,44973,44974,44975,44976,44977,44978,44979,44980,44981,44982,44983,44986,44987,44989,44990,44991,44993,44994,44995,44996,44997,44998,45002,45004,45007,45008,45009,45010,45011,45013,45014,45015,45016,45017,45018,45019,45021,45022,45023,45024,45025,45026,45027,45028,45029,45030,45031,45034,45035,45036,45037,45038,45039,45042,45043,45045,45046,45047,45049,45050,45051,45052,45053,45054,45055,45058,45059,45061,45062,45063,45064,45065,45066,45067,45069,45070,45071,45073,45074,45075,45077,45078,45079,45080,45081,45082,45083,45086,45087,45088,45089,45090,45091,45092,45093,45094,45095,45097,45098,45099,45100,45101,45102,45103,45104,45105,45106,45107,45108,45109,45110,45111,45112,45113,45114,45115,45116,45117,45118,45119,45120,45121,45122,45123,45126,45127,45129,45131,45133,45135,45136,45137,45138,45142,45144,45146,45147,45148,45150,45151,45152,45153,45154,45155,45156,45157,45158,45159,45160,45161,45162,45163,45164,45165,45166,45167,45168,45169,45170,45171,45172,45173,45174,45175,45176,45177,45178,45179,45182,45183,45185,45186,45187,45189,45190,45191,45192,45193,45194,45195,45198,45200,45202,45203,45204,45205,45206,45207,45211,45213,45214,45219,45220,45221,45222,45223,45226,45232,45234,45238,45239,45241,45242,45243,45245,45246,45247,45248,45249,45250,45251,45254,45258,45259,45260,45261,45262,45263,45266,45267,45269,45270,45271,45273,45274,45275,45276,45277,45278,45279,45281,45282,45283,45284,45286,45287,45288,45289,45290,45291,45292,45293,45294,45295,45296,45297,45298,45299,45300,45301,45302,45303,45304,45305,45306,45307,45308,45309,45310,45311,45312,45313,45314,45315,45316,45317,45318,45319,45322,45325,45326,45327,45329,45332,45333,45334,45335,45338,45342,45343,45344,45345,45346,45350,45351,45353,45354,45355,45357,45358,45359,45360,45361,45362,45363,45366,45370,45371,45372,45373,45374,45375,45378,45379,45381,45382,45383,45385,45386,45387,45388,45389,45390,45391,45394,45395,45398,45399,45401,45402,45403,45405,45406,45407,45409,45410,45411,45412,45413,45414,45415,45416,45417,45418,45419,45420,45421,45422,45423,45424,45425,45426,45427,45428,45429,45430,45431,45434,45435,45437,45438,45439,45441,45443,45444,45445,45446,45447,45450,45452,45454,45455,45456,45457,45461,45462,45463,45465,45466,45467,45469,45470,45471,45472,45473,45474,45475,45476,45477,45478,45479,45481,45482,45483,45484,45485,45486,45487,45488,45489,45490,45491,45492,45493,45494,45495,45496,45497,45498,45499,45500,45501,45502,45503,45504,45505,45506,45507,45508,45509,45510,45511,45512,45513,45514,45515,45517,45518,45519,45521,45522,45523,45525,45526,45527,45528,45529,45530,45531,45534,45536,45537,45538,45539,45540,45541,45542,45543,45546,45547,45549,45550,45551,45553,45554,45555,45556,45557,45558,45559,45560,45562,45564,45566,45567,45568,45569,45570,45571,45574,45575,45577,45578,45581,45582,45583,45584,45585,45586,45587,45590,45592,45594,45595,45596,45597,45598,45599,45601,45602,45603,45604,45605,45606,45607,45608,45609,45610,45611,45612,45613,45614,45615,45616,45617,45618,45619,45621,45622,45623,45624,45625,45626,45627,45629,45630,45631,45632,45633,45634,45635,45636,45637,45638,45639,45640,45641,45642,45643,45644,45645,45646,45647,45648,45649,45650,45651,45652,45653,45654,45655,45657,45658,45659,45661,45662,45663,45665,45666,45667,45668,45669,45670,45671,45674,45675,45676,45677,45678,45679,45680,45681,45682,45683,45686,45687,45688,45689,45690,45691,45693,45694,45695,45696,45697,45698,45699,45702,45703,45704,45706,45707,45708,45709,45710,45711,45714,45715,45717,45718,45719,45723,45724,45725,45726,45727,45730,45732,45735,45736,45737,45739,45741,45742,45743,45745,45746,45747,45749,45750,45751,45752,45753,45754,45755,45756,45757,45758,45759,45760,45761,45762,45763,45764,45765,45766,45767,45770,45771,45773,45774,45775,45777,45779,45780,45781,45782,45783,45786,45788,45790,45791,45792,45793,45795,45799,45801,45802,45808,45809,45810,45814,45820,45821,45822,45826,45827,45829,45830,45831,45833,45834,45835,45836,45837,45838,45839,45842,45846,45847,45848,45849,45850,45851,45853,45854,45855,45856,45857,45858,45859,45860,45861,45862,45863,45864,45865,45866,45867,45868,45869,45870,45871,45872,45873,45874,45875,45876,45877,45878,45879,45880,45881,45882,45883,45884,45885,45886,45887,45888,45889,45890,45891,45892,45893,45894,45895,45896,45897,45898,45899,45900,45901,45902,45903,45904,45905,45906,45907,45911,45913,45914,45917,45920,45921,45922,45923,45926,45928,45930,45932,45933,45935,45938,45939,45941,45942,45943,45945,45946,45947,45948,45949,45950,45951,45954,45958,45959,45960,45961,45962,45963,45965,45966,45967,45969,45970,45971,45973,45974,45975,45976,45977,45978,45979,45980,45981,45982,45983,45986,45987,45988,45989,45990,45991,45993,45994,45995,45997,45998,45999,46e3,46001,46002,46003,46004,46005,46006,46007,46008,46009,46010,46011,46012,46013,46014,46015,46016,46017,46018,46019,46022,46023,46025,46026,46029,46031,46033,46034,46035,46038,46040,46042,46044,46046,46047,46049,46050,46051,46053,46054,46055,46057,46058,46059,46060,46061,46062,46063,46064,46065,46066,46067,46068,46069,46070,46071,46072,46073,46074,46075,46077,46078,46079,46080,46081,46082,46083,46084,46085,46086,46087,46088,46089,46090,46091,46092,46093,46094,46095,46097,46098,46099,46100,46101,46102,46103,46105,46106,46107,46109,46110,46111,46113,46114,46115,46116,46117,46118,46119,46122,46124,46125,46126,46127,46128,46129,46130,46131,46133,46134,46135,46136,46137,46138,46139,46140,46141,46142,46143,46144,46145,46146,46147,46148,46149,46150,46151,46152,46153,46154,46155,46156,46157,46158,46159,46162,46163,46165,46166,46167,46169,46170,46171,46172,46173,46174,46175,46178,46180,46182,46183,46184,46185,46186,46187,46189,46190,46191,46192,46193,46194,46195,46196,46197,46198,46199,46200,46201,46202,46203,46204,46205,46206,46207,46209,46210,46211,46212,46213,46214,46215,46217,46218,46219,46220,46221,46222,46223,46224,46225,46226,46227,46228,46229,46230,46231,46232,46233,46234,46235,46236,46238,46239,46240,46241,46242,46243,46245,46246,46247,46249,46250,46251,46253,46254,46255,46256,46257,46258,46259,46260,46262,46264,46266,46267,46268,46269,46270,46271,46273,46274,46275,46277,46278,46279,46281,46282,46283,46284,46285,46286,46287,46289,46290,46291,46292,46294,46295,46296,46297,46298,46299,46302,46303,46305,46306,46309,46311,46312,46313,46314,46315,46318,46320,46322,46323,46324,46325,46326,46327,46329,46330,46331,46332,46333,46334,46335,46336,46337,46338,46339,46340,46341,46342,46343,46344,46345,46346,46347,46348,46349,46350,46351,46352,46353,46354,46355,46358,46359,46361,46362,46365,46366,46367,46368,46369,46370,46371,46374,46379,46380,46381,46382,46383,46386,46387,46389,46390,46391,46393,46394,46395,46396,46397,46398,46399,46402,46406,46407,46408,46409,46410,46414,46415,46417,46418,46419,46421,46422,46423,46424,46425,46426,46427,46430,46434,46435,46436,46437,46438,46439,46440,46441,46442,46443,46444,46445,46446,46447,46448,46449,46450,46451,46452,46453,46454,46455,46456,46457,46458,46459,46460,46461,46462,46463,46464,46465,46466,46467,46468,46469,46470,46471,46472,46473,46474,46475,46476,46477,46478,46479,46480,46481,46482,46483,46484,46485,46486,46487,46488,46489,46490,46491,46492,46493,46494,46495,46498,46499,46501,46502,46503,46505,46508,46509,46510,46511,46514,46518,46519,46520,46521,46522,46526,46527,46529,46530,46531,46533,46534,46535,46536,46537,46538,46539,46542,46546,46547,46548,46549,46550,46551,46553,46554,46555,46556,46557,46558,46559,46560,46561,46562,46563,46564,46565,46566,46567,46568,46569,46570,46571,46573,46574,46575,46576,46577,46578,46579,46580,46581,46582,46583,46584,46585,46586,46587,46588,46589,46590,46591,46592,46593,46594,46595,46596,46597,46598,46599,46600,46601,46602,46603,46604,46605,46606,46607,46610,46611,46613,46614,46615,46617,46618,46619,46620,46621,46622,46623,46624,46625,46626,46627,46628,46630,46631,46632,46633,46634,46635,46637,46638,46639,46640,46641,46642,46643,46645,46646,46647,46648,46649,46650,46651,46652,46653,46654,46655,46656,46657,46658,46659,46660,46661,46662,46663,46665,46666,46667,46668,46669,46670,46671,46672,46673,46674,46675,46676,46677,46678,46679,46680,46681,46682,46683,46684,46685,46686,46687,46688,46689,46690,46691,46693,46694,46695,46697,46698,46699,46700,46701,46702,46703,46704,46705,46706,46707,46708,46709,46710,46711,46712,46713,46714,46715,46716,46717,46718,46719,46720,46721,46722,46723,46724,46725,46726,46727,46728,46729,46730,46731,46732,46733,46734,46735,46736,46737,46738,46739,46740,46741,46742,46743,46744,46745,46746,46747,46750,46751,46753,46754,46755,46757,46758,46759,46760,46761,46762,46765,46766,46767,46768,46770,46771,46772,46773,46774,46775,46776,46777,46778,46779,46780,46781,46782,46783,46784,46785,46786,46787,46788,46789,46790,46791,46792,46793,46794,46795,46796,46797,46798,46799,46800,46801,46802,46803,46805,46806,46807,46808,46809,46810,46811,46812,46813,46814,46815,46816,46817,46818,46819,46820,46821,46822,46823,46824,46825,46826,46827,46828,46829,46830,46831,46833,46834,46835,46837,46838,46839,46841,46842,46843,46844,46845,46846,46847,46850,46851,46852,46854,46855,46856,46857,46858,46859,46860,46861,46862,46863,46864,46865,46866,46867,46868,46869,46870,46871,46872,46873,46874,46875,46876,46877,46878,46879,46880,46881,46882,46883,46884,46885,46886,46887,46890,46891,46893,46894,46897,46898,46899,46900,46901,46902,46903,46906,46908,46909,46910,46911,46912,46913,46914,46915,46917,46918,46919,46921,46922,46923,46925,46926,46927,46928,46929,46930,46931,46934,46935,46936,46937,46938,46939,46940,46941,46942,46943,46945,46946,46947,46949,46950,46951,46953,46954,46955,46956,46957,46958,46959,46962,46964,46966,46967,46968,46969,46970,46971,46974,46975,46977,46978,46979,46981,46982,46983,46984,46985,46986,46987,46990,46995,46996,46997,47002,47003,47005,47006,47007,47009,47010,47011,47012,47013,47014,47015,47018,47022,47023,47024,47025,47026,47027,47030,47031,47033,47034,47035,47036,47037,47038,47039,47040,47041,47042,47043,47044,47045,47046,47048,47050,47051,47052,47053,47054,47055,47056,47057,47058,47059,47060,47061,47062,47063,47064,47065,47066,47067,47068,47069,47070,47071,47072,47073,47074,47075,47076,47077,47078,47079,47080,47081,47082,47083,47086,47087,47089,47090,47091,47093,47094,47095,47096,47097,47098,47099,47102,47106,47107,47108,47109,47110,47114,47115,47117,47118,47119,47121,47122,47123,47124,47125,47126,47127,47130,47132,47134,47135,47136,47137,47138,47139,47142,47143,47145,47146,47147,47149,47150,47151,47152,47153,47154,47155,47158,47162,47163,47164,47165,47166,47167,47169,47170,47171,47173,47174,47175,47176,47177,47178,47179,47180,47181,47182,47183,47184,47186,47188,47189,47190,47191,47192,47193,47194,47195,47198,47199,47201,47202,47203,47205,47206,47207,47208,47209,47210,47211,47214,47216,47218,47219,47220,47221,47222,47223,47225,47226,47227,47229,47230,47231,47232,47233,47234,47235,47236,47237,47238,47239,47240,47241,47242,47243,47244,47246,47247,47248,47249,47250,47251,47252,47253,47254,47255,47256,47257,47258,47259,47260,47261,47262,47263,47264,47265,47266,47267,47268,47269,47270,47271,47273,47274,47275,47276,47277,47278,47279,47281,47282,47283,47285,47286,47287,47289,47290,47291,47292,47293,47294,47295,47298,47300,47302,47303,47304,47305,47306,47307,47309,47310,47311,47313,47314,47315,47317,47318,47319,47320,47321,47322,47323,47324,47326,47328,47330,47331,47332,47333,47334,47335,47338,47339,47341,47342,47343,47345,47346,47347,47348,47349,47350,47351,47354,47356,47358,47359,47360,47361,47362,47363,47365,47366,47367,47368,47369,47370,47371,47372,47373,47374,47375,47376,47377,47378,47379,47380,47381,47382,47383,47385,47386,47387,47388,47389,47390,47391,47393,47394,47395,47396,47397,47398,47399,47400,47401,47402,47403,47404,47405,47406,47407,47408,47409,47410,47411,47412,47413,47414,47415,47416,47417,47418,47419,47422,47423,47425,47426,47427,47429,47430,47431,47432,47433,47434,47435,47437,47438,47440,47442,47443,47444,47445,47446,47447,47450,47451,47453,47454,47455,47457,47458,47459,47460,47461,47462,47463,47466,47468,47470,47471,47472,47473,47474,47475,47478,47479,47481,47482,47483,47485,47486,47487,47488,47489,47490,47491,47494,47496,47499,47500,47503,47504,47505,47506,47507,47508,47509,47510,47511,47512,47513,47514,47515,47516,47517,47518,47519,47520,47521,47522,47523,47524,47525,47526,47527,47528,47529,47530,47531,47534,47535,47537,47538,47539,47541,47542,47543,47544,47545,47546,47547,47550,47552,47554,47555,47556,47557,47558,47559,47562,47563,47565,47571,47572,47573,47574,47575,47578,47580,47583,47584,47586,47590,47591,47593,47594,47595,47597,47598,47599,47600,47601,47602,47603,47606,47611,47612,47613,47614,47615,47618,47619,47620,47621,47622,47623,47625,47626,47627,47628,47629,47630,47631,47632,47633,47634,47635,47636,47638,47639,47640,47641,47642,47643,47644,47645,47646,47647,47648,47649,47650,47651,47652,47653,47654,47655,47656,47657,47658,47659,47660,47661,47662,47663,47664,47665,47666,47667,47668,47669,47670,47671,47674,47675,47677,47678,47679,47681,47683,47684,47685,47686,47687,47690,47692,47695,47696,47697,47698,47702,47703,47705,47706,47707,47709,47710,47711,47712,47713,47714,47715,47718,47722,47723,47724,47725,47726,47727,47730,47731,47733,47734,47735,47737,47738,47739,47740,47741,47742,47743,47744,47745,47746,47750,47752,47753,47754,47755,47757,47758,47759,47760,47761,47762,47763,47764,47765,47766,47767,47768,47769,47770,47771,47772,47773,47774,47775,47776,47777,47778,47779,47780,47781,47782,47783,47786,47789,47790,47791,47793,47795,47796,47797,47798,47799,47802,47804,47806,47807,47808,47809,47810,47811,47813,47814,47815,47817,47818,47819,47820,47821,47822,47823,47824,47825,47826,47827,47828,47829,47830,47831,47834,47835,47836,47837,47838,47839,47840,47841,47842,47843,47844,47845,47846,47847,47848,47849,47850,47851,47852,47853,47854,47855,47856,47857,47858,47859,47860,47861,47862,47863,47864,47865,47866,47867,47869,47870,47871,47873,47874,47875,47877,47878,47879,47880,47881,47882,47883,47884,47886,47888,47890,47891,47892,47893,47894,47895,47897,47898,47899,47901,47902,47903,47905,47906,47907,47908,47909,47910,47911,47912,47914,47916,47917,47918,47919,47920,47921,47922,47923,47927,47929,47930,47935,47936,47937,47938,47939,47942,47944,47946,47947,47948,47950,47953,47954,47955,47957,47958,47959,47961,47962,47963,47964,47965,47966,47967,47968,47970,47972,47973,47974,47975,47976,47977,47978,47979,47981,47982,47983,47984,47985,47986,47987,47988,47989,47990,47991,47992,47993,47994,47995,47996,47997,47998,47999,48e3,48001,48002,48003,48004,48005,48006,48007,48009,48010,48011,48013,48014,48015,48017,48018,48019,48020,48021,48022,48023,48024,48025,48026,48027,48028,48029,48030,48031,48032,48033,48034,48035,48037,48038,48039,48041,48042,48043,48045,48046,48047,48048,48049,48050,48051,48053,48054,48056,48057,48058,48059,48060,48061,48062,48063,48065,48066,48067,48069,48070,48071,48073,48074,48075,48076,48077,48078,48079,48081,48082,48084,48085,48086,48087,48088,48089,48090,48091,48092,48093,48094,48095,48096,48097,48098,48099,48100,48101,48102,48103,48104,48105,48106,48107,48108,48109,48110,48111,48112,48113,48114,48115,48116,48117,48118,48119,48122,48123,48125,48126,48129,48131,48132,48133,48134,48135,48138,48142,48144,48146,48147,48153,48154,48160,48161,48162,48163,48166,48168,48170,48171,48172,48174,48175,48178,48179,48181,48182,48183,48185,48186,48187,48188,48189,48190,48191,48194,48198,48199,48200,48202,48203,48206,48207,48209,48210,48211,48212,48213,48214,48215,48216,48217,48218,48219,48220,48222,48223,48224,48225,48226,48227,48228,48229,48230,48231,48232,48233,48234,48235,48236,48237,48238,48239,48240,48241,48242,48243,48244,48245,48246,48247,48248,48249,48250,48251,48252,48253,48254,48255,48256,48257,48258,48259,48262,48263,48265,48266,48269,48271,48272,48273,48274,48275,48278,48280,48283,48284,48285,48286,48287,48290,48291,48293,48294,48297,48298,48299,48300,48301,48302,48303,48306,48310,48311,48312,48313,48314,48315,48318,48319,48321,48322,48323,48325,48326,48327,48328,48329,48330,48331,48332,48334,48338,48339,48340,48342,48343,48345,48346,48347,48349,48350,48351,48352,48353,48354,48355,48356,48357,48358,48359,48360,48361,48362,48363,48364,48365,48366,48367,48368,48369,48370,48371,48375,48377,48378,48379,48381,48382,48383,48384,48385,48386,48387,48390,48392,48394,48395,48396,48397,48398,48399,48401,48402,48403,48405,48406,48407,48408,48409,48410,48411,48412,48413,48414,48415,48416,48417,48418,48419,48421,48422,48423,48424,48425,48426,48427,48429,48430,48431,48432,48433,48434,48435,48436,48437,48438,48439,48440,48441,48442,48443,48444,48445,48446,48447,48449,48450,48451,48452,48453,48454,48455,48458,48459,48461,48462,48463,48465,48466,48467,48468,48469,48470,48471,48474,48475,48476,48477,48478,48479,48480,48481,48482,48483,48485,48486,48487,48489,48490,48491,48492,48493,48494,48495,48496,48497,48498,48499,48500,48501,48502,48503,48504,48505,48506,48507,48508,48509,48510,48511,48514,48515,48517,48518,48523,48524,48525,48526,48527,48530,48532,48534,48535,48536,48539,48541,48542,48543,48544,48545,48546,48547,48549,48550,48551,48552,48553,48554,48555,48556,48557,48558,48559,48561,48562,48563,48564,48565,48566,48567,48569,48570,48571,48572,48573,48574,48575,48576,48577,48578,48579,48580,48581,48582,48583,48584,48585,48586,48587,48588,48589,48590,48591,48592,48593,48594,48595,48598,48599,48601,48602,48603,48605,48606,48607,48608,48609,48610,48611,48612,48613,48614,48615,48616,48618,48619,48620,48621,48622,48623,48625,48626,48627,48629,48630,48631,48633,48634,48635,48636,48637,48638,48639,48641,48642,48644,48646,48647,48648,48649,48650,48651,48654,48655,48657,48658,48659,48661,48662,48663,48664,48665,48666,48667,48670,48672,48673,48674,48675,48676,48677,48678,48679,48680,48681,48682,48683,48684,48685,48686,48687,48688,48689,48690,48691,48692,48693,48694,48695,48696,48697,48698,48699,48700,48701,48702,48703,48704,48705,48706,48707,48710,48711,48713,48714,48715,48717,48719,48720,48721,48722,48723,48726,48728,48732,48733,48734,48735,48738,48739,48741,48742,48743,48745,48747,48748,48749,48750,48751,48754,48758,48759,48760,48761,48762,48766,48767,48769,48770,48771,48773,48774,48775,48776,48777,48778,48779,48782,48786,48787,48788,48789,48790,48791,48794,48795,48796,48797,48798,48799,48800,48801,48802,48803,48804,48805,48806,48807,48809,48810,48811,48812,48813,48814,48815,48816,48817,48818,48819,48820,48821,48822,48823,48824,48825,48826,48827,48828,48829,48830,48831,48832,48833,48834,48835,48836,48837,48838,48839,48840,48841,48842,48843,48844,48845,48846,48847,48850,48851,48853,48854,48857,48858,48859,48860,48861,48862,48863,48865,48866,48870,48871,48872,48873,48874,48875,48877,48878,48879,48880,48881,48882,48883,48884,48885,48886,48887,48888,48889,48890,48891,48892,48893,48894,48895,48896,48898,48899,48900,48901,48902,48903,48906,48907,48908,48909,48910,48911,48912,48913,48914,48915,48916,48917,48918,48919,48922,48926,48927,48928,48929,48930,48931,48932,48933,48934,48935,48936,48937,48938,48939,48940,48941,48942,48943,48944,48945,48946,48947,48948,48949,48950,48951,48952,48953,48954,48955,48956,48957,48958,48959,48962,48963,48965,48966,48967,48969,48970,48971,48972,48973,48974,48975,48978,48979,48980,48982,48983,48984,48985,48986,48987,48988,48989,48990,48991,48992,48993,48994,48995,48996,48997,48998,48999,49e3,49001,49002,49003,49004,49005,49006,49007,49008,49009,49010,49011,49012,49013,49014,49015,49016,49017,49018,49019,49020,49021,49022,49023,49024,49025,49026,49027,49028,49029,49030,49031,49032,49033,49034,49035,49036,49037,49038,49039,49040,49041,49042,49043,49045,49046,49047,49048,49049,49050,49051,49052,49053,49054,49055,49056,49057,49058,49059,49060,49061,49062,49063,49064,49065,49066,49067,49068,49069,49070,49071,49073,49074,49075,49076,49077,49078,49079,49080,49081,49082,49083,49084,49085,49086,49087,49088,49089,49090,49091,49092,49094,49095,49096,49097,49098,49099,49102,49103,49105,49106,49107,49109,49110,49111,49112,49113,49114,49115,49117,49118,49120,49122,49123,49124,49125,49126,49127,49128,49129,49130,49131,49132,49133,49134,49135,49136,49137,49138,49139,49140,49141,49142,49143,49144,49145,49146,49147,49148,49149,49150,49151,49152,49153,49154,49155,49156,49157,49158,49159,49160,49161,49162,49163,49164,49165,49166,49167,49168,49169,49170,49171,49172,49173,49174,49175,49176,49177,49178,49179,49180,49181,49182,49183,49184,49185,49186,49187,49188,49189,49190,49191,49192,49193,49194,49195,49196,49197,49198,49199,49200,49201,49202,49203,49204,49205,49206,49207,49208,49209,49210,49211,49213,49214,49215,49216,49217,49218,49219,49220,49221,49222,49223,49224,49225,49226,49227,49228,49229,49230,49231,49232,49234,49235,49236,49237,49238,49239,49241,49242,49243,49245,49246,49247,49249,49250,49251,49252,49253,49254,49255,49258,49259,49260,49261,49262,49263,49264,49265,49266,49267,49268,49269,49270,49271,49272,49273,49274,49275,49276,49277,49278,49279,49280,49281,49282,49283,49284,49285,49286,49287,49288,49289,49290,49291,49292,49293,49294,49295,49298,49299,49301,49302,49303,49305,49306,49307,49308,49309,49310,49311,49314,49316,49318,49319,49320,49321,49322,49323,49326,49329,49330,49335,49336,49337,49338,49339,49342,49346,49347,49348,49350,49351,49354,49355,49357,49358,49359,49361,49362,49363,49364,49365,49366,49367,49370,49374,49375,49376,49377,49378,49379,49382,49383,49385,49386,49387,49389,49390,49391,49392,49393,49394,49395,49398,49400,49402,49403,49404,49405,49406,49407,49409,49410,49411,49413,49414,49415,49417,49418,49419,49420,49421,49422,49423,49425,49426,49427,49428,49430,49431,49432,49433,49434,49435,49441,49442,49445,49448,49449,49450,49451,49454,49458,49459,49460,49461,49463,49466,49467,49469,49470,49471,49473,49474,49475,49476,49477,49478,49479,49482,49486,49487,49488,49489,49490,49491,49494,49495,49497,49498,49499,49501,49502,49503,49504,49505,49506,49507,49510,49514,49515,49516,49517,49518,49519,49521,49522,49523,49525,49526,49527,49529,49530,49531,49532,49533,49534,49535,49536,49537,49538,49539,49540,49542,49543,49544,49545,49546,49547,49551,49553,49554,49555,49557,49559,49560,49561,49562,49563,49566,49568,49570,49571,49572,49574,49575,49578,49579,49581,49582,49583,49585,49586,49587,49588,49589,49590,49591,49592,49593,49594,49595,49596,49598,49599,49600,49601,49602,49603,49605,49606,49607,49609,49610,49611,49613,49614,49615,49616,49617,49618,49619,49621,49622,49625,49626,49627,49628,49629,49630,49631,49633,49634,49635,49637,49638,49639,49641,49642,49643,49644,49645,49646,49647,49650,49652,49653,49654,49655,49656,49657,49658,49659,49662,49663,49665,49666,49667,49669,49670,49671,49672,49673,49674,49675,49678,49680,49682,49683,49684,49685,49686,49687,49690,49691,49693,49694,49697,49698,49699,49700,49701,49702,49703,49706,49708,49710,49712,49715,49717,49718,49719,49720,49721,49722,49723,49724,49725,49726,49727,49728,49729,49730,49731,49732,49733,49734,49735,49737,49738,49739,49740,49741,49742,49743,49746,49747,49749,49750,49751,49753,49754,49755,49756,49757,49758,49759,49761,49762,49763,49764,49766,49767,49768,49769,49770,49771,49774,49775,49777,49778,49779,49781,49782,49783,49784,49785,49786,49787,49790,49792,49794,49795,49796,49797,49798,49799,49802,49803,49804,49805,49806,49807,49809,49810,49811,49812,49813,49814,49815,49817,49818,49820,49822,49823,49824,49825,49826,49827,49830,49831,49833,49834,49835,49838,49839,49840,49841,49842,49843,49846,49848,49850,49851,49852,49853,49854,49855,49856,49857,49858,49859,49860,49861,49862,49863,49864,49865,49866,49867,49868,49869,49870,49871,49872,49873,49874,49875,49876,49877,49878,49879,49880,49881,49882,49883,49886,49887,49889,49890,49893,49894,49895,49896,49897,49898,49902,49904,49906,49907,49908,49909,49911,49914,49917,49918,49919,49921,49922,49923,49924,49925,49926,49927,49930,49931,49934,49935,49936,49937,49938,49942,49943,49945,49946,49947,49949,49950,49951,49952,49953,49954,49955,49958,49959,49962,49963,49964,49965,49966,49967,49968,49969,49970,49971,49972,49973,49974,49975,49976,49977,49978,49979,49980,49981,49982,49983,49984,49985,49986,49987,49988,49990,49991,49992,49993,49994,49995,49996,49997,49998,49999,5e4,50001,50002,50003,50004,50005,50006,50007,50008,50009,50010,50011,50012,50013,50014,50015,50016,50017,50018,50019,50020,50021,50022,50023,50026,50027,50029,50030,50031,50033,50035,50036,50037,50038,50039,50042,50043,50046,50047,50048,50049,50050,50051,50053,50054,50055,50057,50058,50059,50061,50062,50063,50064,50065,50066,50067,50068,50069,50070,50071,50072,50073,50074,50075,50076,50077,50078,50079,50080,50081,50082,50083,50084,50085,50086,50087,50088,50089,50090,50091,50092,50093,50094,50095,50096,50097,50098,50099,50100,50101,50102,50103,50104,50105,50106,50107,50108,50109,50110,50111,50113,50114,50115,50116,50117,50118,50119,50120,50121,50122,50123,50124,50125,50126,50127,50128,50129,50130,50131,50132,50133,50134,50135,50138,50139,50141,50142,50145,50147,50148,50149,50150,50151,50154,50155,50156,50158,50159,50160,50161,50162,50163,50166,50167,50169,50170,50171,50172,50173,50174,50175,50176,50177,50178,50179,50180,50181,50182,50183,50185,50186,50187,50188,50189,50190,50191,50193,50194,50195,50196,50197,50198,50199,50200,50201,50202,50203,50204,50205,50206,50207,50208,50209,50210,50211,50213,50214,50215,50216,50217,50218,50219,50221,50222,50223,50225,50226,50227,50229,50230,50231,50232,50233,50234,50235,50238,50239,50240,50241,50242,50243,50244,50245,50246,50247,50249,50250,50251,50252,50253,50254,50255,50256,50257,50258,50259,50260,50261,50262,50263,50264,50265,50266,50267,50268,50269,50270,50271,50272,50273,50274,50275,50278,50279,50281,50282,50283,50285,50286,50287,50288,50289,50290,50291,50294,50295,50296,50298,50299,50300,50301,50302,50303,50305,50306,50307,50308,50309,50310,50311,50312,50313,50314,50315,50316,50317,50318,50319,50320,50321,50322,50323,50325,50326,50327,50328,50329,50330,50331,50333,50334,50335,50336,50337,50338,50339,50340,50341,50342,50343,50344,50345,50346,50347,50348,50349,50350,50351,50352,50353,50354,50355,50356,50357,50358,50359,50361,50362,50363,50365,50366,50367,50368,50369,50370,50371,50372,50373,50374,50375,50376,50377,50378,50379,50380,50381,50382,50383,50384,50385,50386,50387,50388,50389,50390,50391,50392,50393,50394,50395,50396,50397,50398,50399,50400,50401,50402,50403,50404,50405,50406,50407,50408,50410,50411,50412,50413,50414,50415,50418,50419,50421,50422,50423,50425,50427,50428,50429,50430,50434,50435,50436,50437,50438,50439,50440,50441,50442,50443,50445,50446,50447,50449,50450,50451,50453,50454,50455,50456,50457,50458,50459,50461,50462,50463,50464,50465,50466,50467,50468,50469,50470,50471,50474,50475,50477,50478,50479,50481,50482,50483,50484,50485,50486,50487,50490,50492,50494,50495,50496,50497,50498,50499,50502,50503,50507,50511,50512,50513,50514,50518,50522,50523,50524,50527,50530,50531,50533,50534,50535,50537,50538,50539,50540,50541,50542,50543,50546,50550,50551,50552,50553,50554,50555,50558,50559,50561,50562,50563,50565,50566,50568,50569,50570,50571,50574,50576,50578,50579,50580,50582,50585,50586,50587,50589,50590,50591,50593,50594,50595,50596,50597,50598,50599,50600,50602,50603,50604,50605,50606,50607,50608,50609,50610,50611,50614,50615,50618,50623,50624,50625,50626,50627,50635,50637,50639,50642,50643,50645,50646,50647,50649,50650,50651,50652,50653,50654,50655,50658,50660,50662,50663,50664,50665,50666,50667,50671,50673,50674,50675,50677,50680,50681,50682,50683,50690,50691,50692,50697,50698,50699,50701,50702,50703,50705,50706,50707,50708,50709,50710,50711,50714,50717,50718,50719,50720,50721,50722,50723,50726,50727,50729,50730,50731,50735,50737,50738,50742,50744,50746,50748,50749,50750,50751,50754,50755,50757,50758,50759,50761,50762,50763,50764,50765,50766,50767,50770,50774,50775,50776,50777,50778,50779,50782,50783,50785,50786,50787,50788,50789,50790,50791,50792,50793,50794,50795,50797,50798,50800,50802,50803,50804,50805,50806,50807,50810,50811,50813,50814,50815,50817,50818,50819,50820,50821,50822,50823,50826,50828,50830,50831,50832,50833,50834,50835,50838,50839,50841,50842,50843,50845,50846,50847,50848,50849,50850,50851,50854,50856,50858,50859,50860,50861,50862,50863,50866,50867,50869,50870,50871,50875,50876,50877,50878,50879,50882,50884,50886,50887,50888,50889,50890,50891,50894,50895,50897,50898,50899,50901,50902,50903,50904,50905,50906,50907,50910,50911,50914,50915,50916,50917,50918,50919,50922,50923,50925,50926,50927,50929,50930,50931,50932,50933,50934,50935,50938,50939,50940,50942,50943,50944,50945,50946,50947,50950,50951,50953,50954,50955,50957,50958,50959,50960,50961,50962,50963,50966,50968,50970,50971,50972,50973,50974,50975,50978,50979,50981,50982,50983,50985,50986,50987,50988,50989,50990,50991,50994,50996,50998,51e3,51001,51002,51003,51006,51007,51009,51010,51011,51013,51014,51015,51016,51017,51019,51022,51024,51033,51034,51035,51037,51038,51039,51041,51042,51043,51044,51045,51046,51047,51049,51050,51052,51053,51054,51055,51056,51057,51058,51059,51062,51063,51065,51066,51067,51071,51072,51073,51074,51078,51083,51084,51085,51087,51090,51091,51093,51097,51099,51100,51101,51102,51103,51106,51111,51112,51113,51114,51115,51118,51119,51121,51122,51123,51125,51126,51127,51128,51129,51130,51131,51134,51138,51139,51140,51141,51142,51143,51146,51147,51149,51151,51153,51154,51155,51156,51157,51158,51159,51161,51162,51163,51164,51166,51167,51168,51169,51170,51171,51173,51174,51175,51177,51178,51179,51181,51182,51183,51184,51185,51186,51187,51188,51189,51190,51191,51192,51193,51194,51195,51196,51197,51198,51199,51202,51203,51205,51206,51207,51209,51211,51212,51213,51214,51215,51218,51220,51223,51224,51225,51226,51227,51230,51231,51233,51234,51235,51237,51238,51239,51240,51241,51242,51243,51246,51248,51250,51251,51252,51253,51254,51255,51257,51258,51259,51261,51262,51263,51265,51266,51267,51268,51269,51270,51271,51274,51275,51278,51279,51280,51281,51282,51283,51285,51286,51287,51288,51289,51290,51291,51292,51293,51294,51295,51296,51297,51298,51299,51300,51301,51302,51303,51304,51305,51306,51307,51308,51309,51310,51311,51314,51315,51317,51318,51319,51321,51323,51324,51325,51326,51327,51330,51332,51336,51337,51338,51342,51343,51344,51345,51346,51347,51349,51350,51351,51352,51353,51354,51355,51356,51358,51360,51362,51363,51364,51365,51366,51367,51369,51370,51371,51372,51373,51374,51375,51376,51377,51378,51379,51380,51381,51382,51383,51384,51385,51386,51387,51390,51391,51392,51393,51394,51395,51397,51398,51399,51401,51402,51403,51405,51406,51407,51408,51409,51410,51411,51414,51416,51418,51419,51420,51421,51422,51423,51426,51427,51429,51430,51431,51432,51433,51434,51435,51436,51437,51438,51439,51440,51441,51442,51443,51444,51446,51447,51448,51449,51450,51451,51454,51455,51457,51458,51459,51463,51464,51465,51466,51467,51470,12288,12289,12290,183,8229,8230,168,12291,173,8213,8741,65340,8764,8216,8217,8220,8221,12308,12309,12296,12297,12298,12299,12300,12301,12302,12303,12304,12305,177,215,247,8800,8804,8805,8734,8756,176,8242,8243,8451,8491,65504,65505,65509,9794,9792,8736,8869,8978,8706,8711,8801,8786,167,8251,9734,9733,9675,9679,9678,9671,9670,9633,9632,9651,9650,9661,9660,8594,8592,8593,8595,8596,12307,8810,8811,8730,8765,8733,8757,8747,8748,8712,8715,8838,8839,8834,8835,8746,8745,8743,8744,65506,51472,51474,51475,51476,51477,51478,51479,51481,51482,51483,51484,51485,51486,51487,51488,51489,51490,51491,51492,51493,51494,51495,51496,51497,51498,51499,51501,51502,51503,51504,51505,51506,51507,51509,51510,51511,51512,51513,51514,51515,51516,51517,51518,51519,51520,51521,51522,51523,51524,51525,51526,51527,51528,51529,51530,51531,51532,51533,51534,51535,51538,51539,51541,51542,51543,51545,51546,51547,51548,51549,51550,51551,51554,51556,51557,51558,51559,51560,51561,51562,51563,51565,51566,51567,8658,8660,8704,8707,180,65374,711,728,733,730,729,184,731,161,191,720,8750,8721,8719,164,8457,8240,9665,9664,9655,9654,9828,9824,9825,9829,9831,9827,8857,9672,9635,9680,9681,9618,9636,9637,9640,9639,9638,9641,9832,9743,9742,9756,9758,182,8224,8225,8597,8599,8601,8598,8600,9837,9833,9834,9836,12927,12828,8470,13255,8482,13250,13272,8481,8364,174,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,51569,51570,51571,51573,51574,51575,51576,51577,51578,51579,51581,51582,51583,51584,51585,51586,51587,51588,51589,51590,51591,51594,51595,51597,51598,51599,51601,51602,51603,51604,51605,51606,51607,51610,51612,51614,51615,51616,51617,51618,51619,51620,51621,51622,51623,51624,51625,51626,51627,51628,51629,51630,51631,51632,51633,51634,51635,51636,51637,51638,51639,51640,51641,51642,51643,51644,51645,51646,51647,51650,51651,51653,51654,51657,51659,51660,51661,51662,51663,51666,51668,51671,51672,51675,65281,65282,65283,65284,65285,65286,65287,65288,65289,65290,65291,65292,65293,65294,65295,65296,65297,65298,65299,65300,65301,65302,65303,65304,65305,65306,65307,65308,65309,65310,65311,65312,65313,65314,65315,65316,65317,65318,65319,65320,65321,65322,65323,65324,65325,65326,65327,65328,65329,65330,65331,65332,65333,65334,65335,65336,65337,65338,65339,65510,65341,65342,65343,65344,65345,65346,65347,65348,65349,65350,65351,65352,65353,65354,65355,65356,65357,65358,65359,65360,65361,65362,65363,65364,65365,65366,65367,65368,65369,65370,65371,65372,65373,65507,51678,51679,51681,51683,51685,51686,51688,51689,51690,51691,51694,51698,51699,51700,51701,51702,51703,51706,51707,51709,51710,51711,51713,51714,51715,51716,51717,51718,51719,51722,51726,51727,51728,51729,51730,51731,51733,51734,51735,51737,51738,51739,51740,51741,51742,51743,51744,51745,51746,51747,51748,51749,51750,51751,51752,51754,51755,51756,51757,51758,51759,51760,51761,51762,51763,51764,51765,51766,51767,51768,51769,51770,51771,51772,51773,51774,51775,51776,51777,51778,51779,51780,51781,51782,12593,12594,12595,12596,12597,12598,12599,12600,12601,12602,12603,12604,12605,12606,12607,12608,12609,12610,12611,12612,12613,12614,12615,12616,12617,12618,12619,12620,12621,12622,12623,12624,12625,12626,12627,12628,12629,12630,12631,12632,12633,12634,12635,12636,12637,12638,12639,12640,12641,12642,12643,12644,12645,12646,12647,12648,12649,12650,12651,12652,12653,12654,12655,12656,12657,12658,12659,12660,12661,12662,12663,12664,12665,12666,12667,12668,12669,12670,12671,12672,12673,12674,12675,12676,12677,12678,12679,12680,12681,12682,12683,12684,12685,12686,51783,51784,51785,51786,51787,51790,51791,51793,51794,51795,51797,51798,51799,51800,51801,51802,51803,51806,51810,51811,51812,51813,51814,51815,51817,51818,51819,51820,51821,51822,51823,51824,51825,51826,51827,51828,51829,51830,51831,51832,51833,51834,51835,51836,51838,51839,51840,51841,51842,51843,51845,51846,51847,51848,51849,51850,51851,51852,51853,51854,51855,51856,51857,51858,51859,51860,51861,51862,51863,51865,51866,51867,51868,51869,51870,51871,51872,51873,51874,51875,51876,51877,51878,51879,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,null,null,null,null,null,8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,null,null,null,null,null,null,null,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,null,null,null,null,null,null,null,null,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,963,964,965,966,967,968,969,null,null,null,null,null,null,51880,51881,51882,51883,51884,51885,51886,51887,51888,51889,51890,51891,51892,51893,51894,51895,51896,51897,51898,51899,51902,51903,51905,51906,51907,51909,51910,51911,51912,51913,51914,51915,51918,51920,51922,51924,51925,51926,51927,51930,51931,51932,51933,51934,51935,51937,51938,51939,51940,51941,51942,51943,51944,51945,51946,51947,51949,51950,51951,51952,51953,51954,51955,51957,51958,51959,51960,51961,51962,51963,51964,51965,51966,51967,51968,51969,51970,51971,51972,51973,51974,51975,51977,51978,9472,9474,9484,9488,9496,9492,9500,9516,9508,9524,9532,9473,9475,9487,9491,9499,9495,9507,9523,9515,9531,9547,9504,9519,9512,9527,9535,9501,9520,9509,9528,9538,9490,9489,9498,9497,9494,9493,9486,9485,9502,9503,9505,9506,9510,9511,9513,9514,9517,9518,9521,9522,9525,9526,9529,9530,9533,9534,9536,9537,9539,9540,9541,9542,9543,9544,9545,9546,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,51979,51980,51981,51982,51983,51985,51986,51987,51989,51990,51991,51993,51994,51995,51996,51997,51998,51999,52002,52003,52004,52005,52006,52007,52008,52009,52010,52011,52012,52013,52014,52015,52016,52017,52018,52019,52020,52021,52022,52023,52024,52025,52026,52027,52028,52029,52030,52031,52032,52034,52035,52036,52037,52038,52039,52042,52043,52045,52046,52047,52049,52050,52051,52052,52053,52054,52055,52058,52059,52060,52062,52063,52064,52065,52066,52067,52069,52070,52071,52072,52073,52074,52075,52076,13205,13206,13207,8467,13208,13252,13219,13220,13221,13222,13209,13210,13211,13212,13213,13214,13215,13216,13217,13218,13258,13197,13198,13199,13263,13192,13193,13256,13223,13224,13232,13233,13234,13235,13236,13237,13238,13239,13240,13241,13184,13185,13186,13187,13188,13242,13243,13244,13245,13246,13247,13200,13201,13202,13203,13204,8486,13248,13249,13194,13195,13196,13270,13253,13229,13230,13231,13275,13225,13226,13227,13228,13277,13264,13267,13251,13257,13276,13254,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,52077,52078,52079,52080,52081,52082,52083,52084,52085,52086,52087,52090,52091,52092,52093,52094,52095,52096,52097,52098,52099,52100,52101,52102,52103,52104,52105,52106,52107,52108,52109,52110,52111,52112,52113,52114,52115,52116,52117,52118,52119,52120,52121,52122,52123,52125,52126,52127,52128,52129,52130,52131,52132,52133,52134,52135,52136,52137,52138,52139,52140,52141,52142,52143,52144,52145,52146,52147,52148,52149,52150,52151,52153,52154,52155,52156,52157,52158,52159,52160,52161,52162,52163,52164,198,208,170,294,null,306,null,319,321,216,338,186,222,358,330,null,12896,12897,12898,12899,12900,12901,12902,12903,12904,12905,12906,12907,12908,12909,12910,12911,12912,12913,12914,12915,12916,12917,12918,12919,12920,12921,12922,12923,9424,9425,9426,9427,9428,9429,9430,9431,9432,9433,9434,9435,9436,9437,9438,9439,9440,9441,9442,9443,9444,9445,9446,9447,9448,9449,9312,9313,9314,9315,9316,9317,9318,9319,9320,9321,9322,9323,9324,9325,9326,189,8531,8532,188,190,8539,8540,8541,8542,52165,52166,52167,52168,52169,52170,52171,52172,52173,52174,52175,52176,52177,52178,52179,52181,52182,52183,52184,52185,52186,52187,52188,52189,52190,52191,52192,52193,52194,52195,52197,52198,52200,52202,52203,52204,52205,52206,52207,52208,52209,52210,52211,52212,52213,52214,52215,52216,52217,52218,52219,52220,52221,52222,52223,52224,52225,52226,52227,52228,52229,52230,52231,52232,52233,52234,52235,52238,52239,52241,52242,52243,52245,52246,52247,52248,52249,52250,52251,52254,52255,52256,52259,52260,230,273,240,295,305,307,312,320,322,248,339,223,254,359,331,329,12800,12801,12802,12803,12804,12805,12806,12807,12808,12809,12810,12811,12812,12813,12814,12815,12816,12817,12818,12819,12820,12821,12822,12823,12824,12825,12826,12827,9372,9373,9374,9375,9376,9377,9378,9379,9380,9381,9382,9383,9384,9385,9386,9387,9388,9389,9390,9391,9392,9393,9394,9395,9396,9397,9332,9333,9334,9335,9336,9337,9338,9339,9340,9341,9342,9343,9344,9345,9346,185,178,179,8308,8319,8321,8322,8323,8324,52261,52262,52266,52267,52269,52271,52273,52274,52275,52276,52277,52278,52279,52282,52287,52288,52289,52290,52291,52294,52295,52297,52298,52299,52301,52302,52303,52304,52305,52306,52307,52310,52314,52315,52316,52317,52318,52319,52321,52322,52323,52325,52327,52329,52330,52331,52332,52333,52334,52335,52337,52338,52339,52340,52342,52343,52344,52345,52346,52347,52348,52349,52350,52351,52352,52353,52354,52355,52356,52357,52358,52359,52360,52361,52362,52363,52364,52365,52366,52367,52368,52369,52370,52371,12353,12354,12355,12356,12357,12358,12359,12360,12361,12362,12363,12364,12365,12366,12367,12368,12369,12370,12371,12372,12373,12374,12375,12376,12377,12378,12379,12380,12381,12382,12383,12384,12385,12386,12387,12388,12389,12390,12391,12392,12393,12394,12395,12396,12397,12398,12399,12400,12401,12402,12403,12404,12405,12406,12407,12408,12409,12410,12411,12412,12413,12414,12415,12416,12417,12418,12419,12420,12421,12422,12423,12424,12425,12426,12427,12428,12429,12430,12431,12432,12433,12434,12435,null,null,null,null,null,null,null,null,null,null,null,52372,52373,52374,52375,52378,52379,52381,52382,52383,52385,52386,52387,52388,52389,52390,52391,52394,52398,52399,52400,52401,52402,52403,52406,52407,52409,52410,52411,52413,52414,52415,52416,52417,52418,52419,52422,52424,52426,52427,52428,52429,52430,52431,52433,52434,52435,52437,52438,52439,52440,52441,52442,52443,52444,52445,52446,52447,52448,52449,52450,52451,52453,52454,52455,52456,52457,52458,52459,52461,52462,52463,52465,52466,52467,52468,52469,52470,52471,52472,52473,52474,52475,52476,52477,12449,12450,12451,12452,12453,12454,12455,12456,12457,12458,12459,12460,12461,12462,12463,12464,12465,12466,12467,12468,12469,12470,12471,12472,12473,12474,12475,12476,12477,12478,12479,12480,12481,12482,12483,12484,12485,12486,12487,12488,12489,12490,12491,12492,12493,12494,12495,12496,12497,12498,12499,12500,12501,12502,12503,12504,12505,12506,12507,12508,12509,12510,12511,12512,12513,12514,12515,12516,12517,12518,12519,12520,12521,12522,12523,12524,12525,12526,12527,12528,12529,12530,12531,12532,12533,12534,null,null,null,null,null,null,null,null,52478,52479,52480,52482,52483,52484,52485,52486,52487,52490,52491,52493,52494,52495,52497,52498,52499,52500,52501,52502,52503,52506,52508,52510,52511,52512,52513,52514,52515,52517,52518,52519,52521,52522,52523,52525,52526,52527,52528,52529,52530,52531,52532,52533,52534,52535,52536,52538,52539,52540,52541,52542,52543,52544,52545,52546,52547,52548,52549,52550,52551,52552,52553,52554,52555,52556,52557,52558,52559,52560,52561,52562,52563,52564,52565,52566,52567,52568,52569,52570,52571,52573,52574,52575,1040,1041,1042,1043,1044,1045,1025,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,1072,1073,1074,1075,1076,1077,1105,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,null,null,null,null,null,null,null,null,null,null,null,null,null,52577,52578,52579,52581,52582,52583,52584,52585,52586,52587,52590,52592,52594,52595,52596,52597,52598,52599,52601,52602,52603,52604,52605,52606,52607,52608,52609,52610,52611,52612,52613,52614,52615,52617,52618,52619,52620,52621,52622,52623,52624,52625,52626,52627,52630,52631,52633,52634,52635,52637,52638,52639,52640,52641,52642,52643,52646,52648,52650,52651,52652,52653,52654,52655,52657,52658,52659,52660,52661,52662,52663,52664,52665,52666,52667,52668,52669,52670,52671,52672,52673,52674,52675,52677,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,52678,52679,52680,52681,52682,52683,52685,52686,52687,52689,52690,52691,52692,52693,52694,52695,52696,52697,52698,52699,52700,52701,52702,52703,52704,52705,52706,52707,52708,52709,52710,52711,52713,52714,52715,52717,52718,52719,52721,52722,52723,52724,52725,52726,52727,52730,52732,52734,52735,52736,52737,52738,52739,52741,52742,52743,52745,52746,52747,52749,52750,52751,52752,52753,52754,52755,52757,52758,52759,52760,52762,52763,52764,52765,52766,52767,52770,52771,52773,52774,52775,52777,52778,52779,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,52780,52781,52782,52783,52786,52788,52790,52791,52792,52793,52794,52795,52796,52797,52798,52799,52800,52801,52802,52803,52804,52805,52806,52807,52808,52809,52810,52811,52812,52813,52814,52815,52816,52817,52818,52819,52820,52821,52822,52823,52826,52827,52829,52830,52834,52835,52836,52837,52838,52839,52842,52844,52846,52847,52848,52849,52850,52851,52854,52855,52857,52858,52859,52861,52862,52863,52864,52865,52866,52867,52870,52872,52874,52875,52876,52877,52878,52879,52882,52883,52885,52886,52887,52889,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,52890,52891,52892,52893,52894,52895,52898,52902,52903,52904,52905,52906,52907,52910,52911,52912,52913,52914,52915,52916,52917,52918,52919,52920,52921,52922,52923,52924,52925,52926,52927,52928,52930,52931,52932,52933,52934,52935,52936,52937,52938,52939,52940,52941,52942,52943,52944,52945,52946,52947,52948,52949,52950,52951,52952,52953,52954,52955,52956,52957,52958,52959,52960,52961,52962,52963,52966,52967,52969,52970,52973,52974,52975,52976,52977,52978,52979,52982,52986,52987,52988,52989,52990,52991,44032,44033,44036,44039,44040,44041,44042,44048,44049,44050,44051,44052,44053,44054,44055,44057,44058,44059,44060,44061,44064,44068,44076,44077,44079,44080,44081,44088,44089,44092,44096,44107,44109,44116,44120,44124,44144,44145,44148,44151,44152,44154,44160,44161,44163,44164,44165,44166,44169,44170,44171,44172,44176,44180,44188,44189,44191,44192,44193,44200,44201,44202,44204,44207,44208,44216,44217,44219,44220,44221,44225,44228,44232,44236,44245,44247,44256,44257,44260,44263,44264,44266,44268,44271,44272,44273,44275,44277,44278,44284,44285,44288,44292,44294,52994,52995,52997,52998,52999,53001,53002,53003,53004,53005,53006,53007,53010,53012,53014,53015,53016,53017,53018,53019,53021,53022,53023,53025,53026,53027,53029,53030,53031,53032,53033,53034,53035,53038,53042,53043,53044,53045,53046,53047,53049,53050,53051,53052,53053,53054,53055,53056,53057,53058,53059,53060,53061,53062,53063,53064,53065,53066,53067,53068,53069,53070,53071,53072,53073,53074,53075,53078,53079,53081,53082,53083,53085,53086,53087,53088,53089,53090,53091,53094,53096,53098,53099,53100,44300,44301,44303,44305,44312,44316,44320,44329,44332,44333,44340,44341,44344,44348,44356,44357,44359,44361,44368,44372,44376,44385,44387,44396,44397,44400,44403,44404,44405,44406,44411,44412,44413,44415,44417,44418,44424,44425,44428,44432,44444,44445,44452,44471,44480,44481,44484,44488,44496,44497,44499,44508,44512,44516,44536,44537,44540,44543,44544,44545,44552,44553,44555,44557,44564,44592,44593,44596,44599,44600,44602,44608,44609,44611,44613,44614,44618,44620,44621,44622,44624,44628,44630,44636,44637,44639,44640,44641,44645,44648,44649,44652,44656,44664,53101,53102,53103,53106,53107,53109,53110,53111,53113,53114,53115,53116,53117,53118,53119,53121,53122,53123,53124,53126,53127,53128,53129,53130,53131,53133,53134,53135,53136,53137,53138,53139,53140,53141,53142,53143,53144,53145,53146,53147,53148,53149,53150,53151,53152,53154,53155,53156,53157,53158,53159,53161,53162,53163,53164,53165,53166,53167,53169,53170,53171,53172,53173,53174,53175,53176,53177,53178,53179,53180,53181,53182,53183,53184,53185,53186,53187,53189,53190,53191,53192,53193,53194,53195,44665,44667,44668,44669,44676,44677,44684,44732,44733,44734,44736,44740,44748,44749,44751,44752,44753,44760,44761,44764,44776,44779,44781,44788,44792,44796,44807,44808,44813,44816,44844,44845,44848,44850,44852,44860,44861,44863,44865,44866,44867,44872,44873,44880,44892,44893,44900,44901,44921,44928,44932,44936,44944,44945,44949,44956,44984,44985,44988,44992,44999,45e3,45001,45003,45005,45006,45012,45020,45032,45033,45040,45041,45044,45048,45056,45057,45060,45068,45072,45076,45084,45085,45096,45124,45125,45128,45130,45132,45134,45139,45140,45141,45143,45145,53196,53197,53198,53199,53200,53201,53202,53203,53204,53205,53206,53207,53208,53209,53210,53211,53212,53213,53214,53215,53218,53219,53221,53222,53223,53225,53226,53227,53228,53229,53230,53231,53234,53236,53238,53239,53240,53241,53242,53243,53245,53246,53247,53249,53250,53251,53253,53254,53255,53256,53257,53258,53259,53260,53261,53262,53263,53264,53266,53267,53268,53269,53270,53271,53273,53274,53275,53276,53277,53278,53279,53280,53281,53282,53283,53284,53285,53286,53287,53288,53289,53290,53291,53292,45149,45180,45181,45184,45188,45196,45197,45199,45201,45208,45209,45210,45212,45215,45216,45217,45218,45224,45225,45227,45228,45229,45230,45231,45233,45235,45236,45237,45240,45244,45252,45253,45255,45256,45257,45264,45265,45268,45272,45280,45285,45320,45321,45323,45324,45328,45330,45331,45336,45337,45339,45340,45341,45347,45348,45349,45352,45356,45364,45365,45367,45368,45369,45376,45377,45380,45384,45392,45393,45396,45397,45400,45404,45408,45432,45433,45436,45440,45442,45448,45449,45451,45453,45458,45459,45460,45464,45468,45480,45516,45520,45524,45532,45533,53294,53295,53296,53297,53298,53299,53302,53303,53305,53306,53307,53309,53310,53311,53312,53313,53314,53315,53318,53320,53322,53323,53324,53325,53326,53327,53329,53330,53331,53333,53334,53335,53337,53338,53339,53340,53341,53342,53343,53345,53346,53347,53348,53349,53350,53351,53352,53353,53354,53355,53358,53359,53361,53362,53363,53365,53366,53367,53368,53369,53370,53371,53374,53375,53376,53378,53379,53380,53381,53382,53383,53384,53385,53386,53387,53388,53389,53390,53391,53392,53393,53394,53395,53396,45535,45544,45545,45548,45552,45561,45563,45565,45572,45573,45576,45579,45580,45588,45589,45591,45593,45600,45620,45628,45656,45660,45664,45672,45673,45684,45685,45692,45700,45701,45705,45712,45713,45716,45720,45721,45722,45728,45729,45731,45733,45734,45738,45740,45744,45748,45768,45769,45772,45776,45778,45784,45785,45787,45789,45794,45796,45797,45798,45800,45803,45804,45805,45806,45807,45811,45812,45813,45815,45816,45817,45818,45819,45823,45824,45825,45828,45832,45840,45841,45843,45844,45845,45852,45908,45909,45910,45912,45915,45916,45918,45919,45924,45925,53397,53398,53399,53400,53401,53402,53403,53404,53405,53406,53407,53408,53409,53410,53411,53414,53415,53417,53418,53419,53421,53422,53423,53424,53425,53426,53427,53430,53432,53434,53435,53436,53437,53438,53439,53442,53443,53445,53446,53447,53450,53451,53452,53453,53454,53455,53458,53462,53463,53464,53465,53466,53467,53470,53471,53473,53474,53475,53477,53478,53479,53480,53481,53482,53483,53486,53490,53491,53492,53493,53494,53495,53497,53498,53499,53500,53501,53502,53503,53504,53505,53506,53507,53508,45927,45929,45931,45934,45936,45937,45940,45944,45952,45953,45955,45956,45957,45964,45968,45972,45984,45985,45992,45996,46020,46021,46024,46027,46028,46030,46032,46036,46037,46039,46041,46043,46045,46048,46052,46056,46076,46096,46104,46108,46112,46120,46121,46123,46132,46160,46161,46164,46168,46176,46177,46179,46181,46188,46208,46216,46237,46244,46248,46252,46261,46263,46265,46272,46276,46280,46288,46293,46300,46301,46304,46307,46308,46310,46316,46317,46319,46321,46328,46356,46357,46360,46363,46364,46372,46373,46375,46376,46377,46378,46384,46385,46388,46392,53509,53510,53511,53512,53513,53514,53515,53516,53518,53519,53520,53521,53522,53523,53524,53525,53526,53527,53528,53529,53530,53531,53532,53533,53534,53535,53536,53537,53538,53539,53540,53541,53542,53543,53544,53545,53546,53547,53548,53549,53550,53551,53554,53555,53557,53558,53559,53561,53563,53564,53565,53566,53567,53570,53574,53575,53576,53577,53578,53579,53582,53583,53585,53586,53587,53589,53590,53591,53592,53593,53594,53595,53598,53600,53602,53603,53604,53605,53606,53607,53609,53610,53611,53613,46400,46401,46403,46404,46405,46411,46412,46413,46416,46420,46428,46429,46431,46432,46433,46496,46497,46500,46504,46506,46507,46512,46513,46515,46516,46517,46523,46524,46525,46528,46532,46540,46541,46543,46544,46545,46552,46572,46608,46609,46612,46616,46629,46636,46644,46664,46692,46696,46748,46749,46752,46756,46763,46764,46769,46804,46832,46836,46840,46848,46849,46853,46888,46889,46892,46895,46896,46904,46905,46907,46916,46920,46924,46932,46933,46944,46948,46952,46960,46961,46963,46965,46972,46973,46976,46980,46988,46989,46991,46992,46993,46994,46998,46999,53614,53615,53616,53617,53618,53619,53620,53621,53622,53623,53624,53625,53626,53627,53629,53630,53631,53632,53633,53634,53635,53637,53638,53639,53641,53642,53643,53644,53645,53646,53647,53648,53649,53650,53651,53652,53653,53654,53655,53656,53657,53658,53659,53660,53661,53662,53663,53666,53667,53669,53670,53671,53673,53674,53675,53676,53677,53678,53679,53682,53684,53686,53687,53688,53689,53691,53693,53694,53695,53697,53698,53699,53700,53701,53702,53703,53704,53705,53706,53707,53708,53709,53710,53711,47e3,47001,47004,47008,47016,47017,47019,47020,47021,47028,47029,47032,47047,47049,47084,47085,47088,47092,47100,47101,47103,47104,47105,47111,47112,47113,47116,47120,47128,47129,47131,47133,47140,47141,47144,47148,47156,47157,47159,47160,47161,47168,47172,47185,47187,47196,47197,47200,47204,47212,47213,47215,47217,47224,47228,47245,47272,47280,47284,47288,47296,47297,47299,47301,47308,47312,47316,47325,47327,47329,47336,47337,47340,47344,47352,47353,47355,47357,47364,47384,47392,47420,47421,47424,47428,47436,47439,47441,47448,47449,47452,47456,47464,47465,53712,53713,53714,53715,53716,53717,53718,53719,53721,53722,53723,53724,53725,53726,53727,53728,53729,53730,53731,53732,53733,53734,53735,53736,53737,53738,53739,53740,53741,53742,53743,53744,53745,53746,53747,53749,53750,53751,53753,53754,53755,53756,53757,53758,53759,53760,53761,53762,53763,53764,53765,53766,53768,53770,53771,53772,53773,53774,53775,53777,53778,53779,53780,53781,53782,53783,53784,53785,53786,53787,53788,53789,53790,53791,53792,53793,53794,53795,53796,53797,53798,53799,53800,53801,47467,47469,47476,47477,47480,47484,47492,47493,47495,47497,47498,47501,47502,47532,47533,47536,47540,47548,47549,47551,47553,47560,47561,47564,47566,47567,47568,47569,47570,47576,47577,47579,47581,47582,47585,47587,47588,47589,47592,47596,47604,47605,47607,47608,47609,47610,47616,47617,47624,47637,47672,47673,47676,47680,47682,47688,47689,47691,47693,47694,47699,47700,47701,47704,47708,47716,47717,47719,47720,47721,47728,47729,47732,47736,47747,47748,47749,47751,47756,47784,47785,47787,47788,47792,47794,47800,47801,47803,47805,47812,47816,47832,47833,47868,53802,53803,53806,53807,53809,53810,53811,53813,53814,53815,53816,53817,53818,53819,53822,53824,53826,53827,53828,53829,53830,53831,53833,53834,53835,53836,53837,53838,53839,53840,53841,53842,53843,53844,53845,53846,53847,53848,53849,53850,53851,53853,53854,53855,53856,53857,53858,53859,53861,53862,53863,53864,53865,53866,53867,53868,53869,53870,53871,53872,53873,53874,53875,53876,53877,53878,53879,53880,53881,53882,53883,53884,53885,53886,53887,53890,53891,53893,53894,53895,53897,53898,53899,53900,47872,47876,47885,47887,47889,47896,47900,47904,47913,47915,47924,47925,47926,47928,47931,47932,47933,47934,47940,47941,47943,47945,47949,47951,47952,47956,47960,47969,47971,47980,48008,48012,48016,48036,48040,48044,48052,48055,48064,48068,48072,48080,48083,48120,48121,48124,48127,48128,48130,48136,48137,48139,48140,48141,48143,48145,48148,48149,48150,48151,48152,48155,48156,48157,48158,48159,48164,48165,48167,48169,48173,48176,48177,48180,48184,48192,48193,48195,48196,48197,48201,48204,48205,48208,48221,48260,48261,48264,48267,48268,48270,48276,48277,48279,53901,53902,53903,53906,53907,53908,53910,53911,53912,53913,53914,53915,53917,53918,53919,53921,53922,53923,53925,53926,53927,53928,53929,53930,53931,53933,53934,53935,53936,53938,53939,53940,53941,53942,53943,53946,53947,53949,53950,53953,53955,53956,53957,53958,53959,53962,53964,53965,53966,53967,53968,53969,53970,53971,53973,53974,53975,53977,53978,53979,53981,53982,53983,53984,53985,53986,53987,53990,53991,53992,53993,53994,53995,53996,53997,53998,53999,54002,54003,54005,54006,54007,54009,54010,48281,48282,48288,48289,48292,48295,48296,48304,48305,48307,48308,48309,48316,48317,48320,48324,48333,48335,48336,48337,48341,48344,48348,48372,48373,48374,48376,48380,48388,48389,48391,48393,48400,48404,48420,48428,48448,48456,48457,48460,48464,48472,48473,48484,48488,48512,48513,48516,48519,48520,48521,48522,48528,48529,48531,48533,48537,48538,48540,48548,48560,48568,48596,48597,48600,48604,48617,48624,48628,48632,48640,48643,48645,48652,48653,48656,48660,48668,48669,48671,48708,48709,48712,48716,48718,48724,48725,48727,48729,48730,48731,48736,48737,48740,54011,54012,54013,54014,54015,54018,54020,54022,54023,54024,54025,54026,54027,54031,54033,54034,54035,54037,54039,54040,54041,54042,54043,54046,54050,54051,54052,54054,54055,54058,54059,54061,54062,54063,54065,54066,54067,54068,54069,54070,54071,54074,54078,54079,54080,54081,54082,54083,54086,54087,54088,54089,54090,54091,54092,54093,54094,54095,54096,54097,54098,54099,54100,54101,54102,54103,54104,54105,54106,54107,54108,54109,54110,54111,54112,54113,54114,54115,54116,54117,54118,54119,54120,54121,48744,48746,48752,48753,48755,48756,48757,48763,48764,48765,48768,48772,48780,48781,48783,48784,48785,48792,48793,48808,48848,48849,48852,48855,48856,48864,48867,48868,48869,48876,48897,48904,48905,48920,48921,48923,48924,48925,48960,48961,48964,48968,48976,48977,48981,49044,49072,49093,49100,49101,49104,49108,49116,49119,49121,49212,49233,49240,49244,49248,49256,49257,49296,49297,49300,49304,49312,49313,49315,49317,49324,49325,49327,49328,49331,49332,49333,49334,49340,49341,49343,49344,49345,49349,49352,49353,49356,49360,49368,49369,49371,49372,49373,49380,54122,54123,54124,54125,54126,54127,54128,54129,54130,54131,54132,54133,54134,54135,54136,54137,54138,54139,54142,54143,54145,54146,54147,54149,54150,54151,54152,54153,54154,54155,54158,54162,54163,54164,54165,54166,54167,54170,54171,54173,54174,54175,54177,54178,54179,54180,54181,54182,54183,54186,54188,54190,54191,54192,54193,54194,54195,54197,54198,54199,54201,54202,54203,54205,54206,54207,54208,54209,54210,54211,54214,54215,54218,54219,54220,54221,54222,54223,54225,54226,54227,54228,54229,54230,49381,49384,49388,49396,49397,49399,49401,49408,49412,49416,49424,49429,49436,49437,49438,49439,49440,49443,49444,49446,49447,49452,49453,49455,49456,49457,49462,49464,49465,49468,49472,49480,49481,49483,49484,49485,49492,49493,49496,49500,49508,49509,49511,49512,49513,49520,49524,49528,49541,49548,49549,49550,49552,49556,49558,49564,49565,49567,49569,49573,49576,49577,49580,49584,49597,49604,49608,49612,49620,49623,49624,49632,49636,49640,49648,49649,49651,49660,49661,49664,49668,49676,49677,49679,49681,49688,49689,49692,49695,49696,49704,49705,49707,49709,54231,54233,54234,54235,54236,54237,54238,54239,54240,54242,54244,54245,54246,54247,54248,54249,54250,54251,54254,54255,54257,54258,54259,54261,54262,54263,54264,54265,54266,54267,54270,54272,54274,54275,54276,54277,54278,54279,54281,54282,54283,54284,54285,54286,54287,54288,54289,54290,54291,54292,54293,54294,54295,54296,54297,54298,54299,54300,54302,54303,54304,54305,54306,54307,54308,54309,54310,54311,54312,54313,54314,54315,54316,54317,54318,54319,54320,54321,54322,54323,54324,54325,54326,54327,49711,49713,49714,49716,49736,49744,49745,49748,49752,49760,49765,49772,49773,49776,49780,49788,49789,49791,49793,49800,49801,49808,49816,49819,49821,49828,49829,49832,49836,49837,49844,49845,49847,49849,49884,49885,49888,49891,49892,49899,49900,49901,49903,49905,49910,49912,49913,49915,49916,49920,49928,49929,49932,49933,49939,49940,49941,49944,49948,49956,49957,49960,49961,49989,50024,50025,50028,50032,50034,50040,50041,50044,50045,50052,50056,50060,50112,50136,50137,50140,50143,50144,50146,50152,50153,50157,50164,50165,50168,50184,50192,50212,50220,50224,54328,54329,54330,54331,54332,54333,54334,54335,54337,54338,54339,54341,54342,54343,54344,54345,54346,54347,54348,54349,54350,54351,54352,54353,54354,54355,54356,54357,54358,54359,54360,54361,54362,54363,54365,54366,54367,54369,54370,54371,54373,54374,54375,54376,54377,54378,54379,54380,54382,54384,54385,54386,54387,54388,54389,54390,54391,54394,54395,54397,54398,54401,54403,54404,54405,54406,54407,54410,54412,54414,54415,54416,54417,54418,54419,54421,54422,54423,54424,54425,54426,54427,54428,54429,50228,50236,50237,50248,50276,50277,50280,50284,50292,50293,50297,50304,50324,50332,50360,50364,50409,50416,50417,50420,50424,50426,50431,50432,50433,50444,50448,50452,50460,50472,50473,50476,50480,50488,50489,50491,50493,50500,50501,50504,50505,50506,50508,50509,50510,50515,50516,50517,50519,50520,50521,50525,50526,50528,50529,50532,50536,50544,50545,50547,50548,50549,50556,50557,50560,50564,50567,50572,50573,50575,50577,50581,50583,50584,50588,50592,50601,50612,50613,50616,50617,50619,50620,50621,50622,50628,50629,50630,50631,50632,50633,50634,50636,50638,54430,54431,54432,54433,54434,54435,54436,54437,54438,54439,54440,54442,54443,54444,54445,54446,54447,54448,54449,54450,54451,54452,54453,54454,54455,54456,54457,54458,54459,54460,54461,54462,54463,54464,54465,54466,54467,54468,54469,54470,54471,54472,54473,54474,54475,54477,54478,54479,54481,54482,54483,54485,54486,54487,54488,54489,54490,54491,54493,54494,54496,54497,54498,54499,54500,54501,54502,54503,54505,54506,54507,54509,54510,54511,54513,54514,54515,54516,54517,54518,54519,54521,54522,54524,50640,50641,50644,50648,50656,50657,50659,50661,50668,50669,50670,50672,50676,50678,50679,50684,50685,50686,50687,50688,50689,50693,50694,50695,50696,50700,50704,50712,50713,50715,50716,50724,50725,50728,50732,50733,50734,50736,50739,50740,50741,50743,50745,50747,50752,50753,50756,50760,50768,50769,50771,50772,50773,50780,50781,50784,50796,50799,50801,50808,50809,50812,50816,50824,50825,50827,50829,50836,50837,50840,50844,50852,50853,50855,50857,50864,50865,50868,50872,50873,50874,50880,50881,50883,50885,50892,50893,50896,50900,50908,50909,50912,50913,50920,54526,54527,54528,54529,54530,54531,54533,54534,54535,54537,54538,54539,54541,54542,54543,54544,54545,54546,54547,54550,54552,54553,54554,54555,54556,54557,54558,54559,54560,54561,54562,54563,54564,54565,54566,54567,54568,54569,54570,54571,54572,54573,54574,54575,54576,54577,54578,54579,54580,54581,54582,54583,54584,54585,54586,54587,54590,54591,54593,54594,54595,54597,54598,54599,54600,54601,54602,54603,54606,54608,54610,54611,54612,54613,54614,54615,54618,54619,54621,54622,54623,54625,54626,54627,50921,50924,50928,50936,50937,50941,50948,50949,50952,50956,50964,50965,50967,50969,50976,50977,50980,50984,50992,50993,50995,50997,50999,51004,51005,51008,51012,51018,51020,51021,51023,51025,51026,51027,51028,51029,51030,51031,51032,51036,51040,51048,51051,51060,51061,51064,51068,51069,51070,51075,51076,51077,51079,51080,51081,51082,51086,51088,51089,51092,51094,51095,51096,51098,51104,51105,51107,51108,51109,51110,51116,51117,51120,51124,51132,51133,51135,51136,51137,51144,51145,51148,51150,51152,51160,51165,51172,51176,51180,51200,51201,51204,51208,51210,54628,54630,54631,54634,54636,54638,54639,54640,54641,54642,54643,54646,54647,54649,54650,54651,54653,54654,54655,54656,54657,54658,54659,54662,54666,54667,54668,54669,54670,54671,54673,54674,54675,54676,54677,54678,54679,54680,54681,54682,54683,54684,54685,54686,54687,54688,54689,54690,54691,54692,54694,54695,54696,54697,54698,54699,54700,54701,54702,54703,54704,54705,54706,54707,54708,54709,54710,54711,54712,54713,54714,54715,54716,54717,54718,54719,54720,54721,54722,54723,54724,54725,54726,54727,51216,51217,51219,51221,51222,51228,51229,51232,51236,51244,51245,51247,51249,51256,51260,51264,51272,51273,51276,51277,51284,51312,51313,51316,51320,51322,51328,51329,51331,51333,51334,51335,51339,51340,51341,51348,51357,51359,51361,51368,51388,51389,51396,51400,51404,51412,51413,51415,51417,51424,51425,51428,51445,51452,51453,51456,51460,51461,51462,51468,51469,51471,51473,51480,51500,51508,51536,51537,51540,51544,51552,51553,51555,51564,51568,51572,51580,51592,51593,51596,51600,51608,51609,51611,51613,51648,51649,51652,51655,51656,51658,51664,51665,51667,54730,54731,54733,54734,54735,54737,54739,54740,54741,54742,54743,54746,54748,54750,54751,54752,54753,54754,54755,54758,54759,54761,54762,54763,54765,54766,54767,54768,54769,54770,54771,54774,54776,54778,54779,54780,54781,54782,54783,54786,54787,54789,54790,54791,54793,54794,54795,54796,54797,54798,54799,54802,54806,54807,54808,54809,54810,54811,54813,54814,54815,54817,54818,54819,54821,54822,54823,54824,54825,54826,54827,54828,54830,54831,54832,54833,54834,54835,54836,54837,54838,54839,54842,54843,51669,51670,51673,51674,51676,51677,51680,51682,51684,51687,51692,51693,51695,51696,51697,51704,51705,51708,51712,51720,51721,51723,51724,51725,51732,51736,51753,51788,51789,51792,51796,51804,51805,51807,51808,51809,51816,51837,51844,51864,51900,51901,51904,51908,51916,51917,51919,51921,51923,51928,51929,51936,51948,51956,51976,51984,51988,51992,52e3,52001,52033,52040,52041,52044,52048,52056,52057,52061,52068,52088,52089,52124,52152,52180,52196,52199,52201,52236,52237,52240,52244,52252,52253,52257,52258,52263,52264,52265,52268,52270,52272,52280,52281,52283,54845,54846,54847,54849,54850,54851,54852,54854,54855,54858,54860,54862,54863,54864,54866,54867,54870,54871,54873,54874,54875,54877,54878,54879,54880,54881,54882,54883,54884,54885,54886,54888,54890,54891,54892,54893,54894,54895,54898,54899,54901,54902,54903,54904,54905,54906,54907,54908,54909,54910,54911,54912,54913,54914,54916,54918,54919,54920,54921,54922,54923,54926,54927,54929,54930,54931,54933,54934,54935,54936,54937,54938,54939,54940,54942,54944,54946,54947,54948,54949,54950,54951,54953,54954,52284,52285,52286,52292,52293,52296,52300,52308,52309,52311,52312,52313,52320,52324,52326,52328,52336,52341,52376,52377,52380,52384,52392,52393,52395,52396,52397,52404,52405,52408,52412,52420,52421,52423,52425,52432,52436,52452,52460,52464,52481,52488,52489,52492,52496,52504,52505,52507,52509,52516,52520,52524,52537,52572,52576,52580,52588,52589,52591,52593,52600,52616,52628,52629,52632,52636,52644,52645,52647,52649,52656,52676,52684,52688,52712,52716,52720,52728,52729,52731,52733,52740,52744,52748,52756,52761,52768,52769,52772,52776,52784,52785,52787,52789,54955,54957,54958,54959,54961,54962,54963,54964,54965,54966,54967,54968,54970,54972,54973,54974,54975,54976,54977,54978,54979,54982,54983,54985,54986,54987,54989,54990,54991,54992,54994,54995,54997,54998,55e3,55002,55003,55004,55005,55006,55007,55009,55010,55011,55013,55014,55015,55017,55018,55019,55020,55021,55022,55023,55025,55026,55027,55028,55030,55031,55032,55033,55034,55035,55038,55039,55041,55042,55043,55045,55046,55047,55048,55049,55050,55051,55052,55053,55054,55055,55056,55058,55059,55060,52824,52825,52828,52831,52832,52833,52840,52841,52843,52845,52852,52853,52856,52860,52868,52869,52871,52873,52880,52881,52884,52888,52896,52897,52899,52900,52901,52908,52909,52929,52964,52965,52968,52971,52972,52980,52981,52983,52984,52985,52992,52993,52996,53e3,53008,53009,53011,53013,53020,53024,53028,53036,53037,53039,53040,53041,53048,53076,53077,53080,53084,53092,53093,53095,53097,53104,53105,53108,53112,53120,53125,53132,53153,53160,53168,53188,53216,53217,53220,53224,53232,53233,53235,53237,53244,53248,53252,53265,53272,53293,53300,53301,53304,53308,55061,55062,55063,55066,55067,55069,55070,55071,55073,55074,55075,55076,55077,55078,55079,55082,55084,55086,55087,55088,55089,55090,55091,55094,55095,55097,55098,55099,55101,55102,55103,55104,55105,55106,55107,55109,55110,55112,55114,55115,55116,55117,55118,55119,55122,55123,55125,55130,55131,55132,55133,55134,55135,55138,55140,55142,55143,55144,55146,55147,55149,55150,55151,55153,55154,55155,55157,55158,55159,55160,55161,55162,55163,55166,55167,55168,55170,55171,55172,55173,55174,55175,55178,55179,53316,53317,53319,53321,53328,53332,53336,53344,53356,53357,53360,53364,53372,53373,53377,53412,53413,53416,53420,53428,53429,53431,53433,53440,53441,53444,53448,53449,53456,53457,53459,53460,53461,53468,53469,53472,53476,53484,53485,53487,53488,53489,53496,53517,53552,53553,53556,53560,53562,53568,53569,53571,53572,53573,53580,53581,53584,53588,53596,53597,53599,53601,53608,53612,53628,53636,53640,53664,53665,53668,53672,53680,53681,53683,53685,53690,53692,53696,53720,53748,53752,53767,53769,53776,53804,53805,53808,53812,53820,53821,53823,53825,53832,53852,55181,55182,55183,55185,55186,55187,55188,55189,55190,55191,55194,55196,55198,55199,55200,55201,55202,55203,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,53860,53888,53889,53892,53896,53904,53905,53909,53916,53920,53924,53932,53937,53944,53945,53948,53951,53952,53954,53960,53961,53963,53972,53976,53980,53988,53989,54e3,54001,54004,54008,54016,54017,54019,54021,54028,54029,54030,54032,54036,54038,54044,54045,54047,54048,54049,54053,54056,54057,54060,54064,54072,54073,54075,54076,54077,54084,54085,54140,54141,54144,54148,54156,54157,54159,54160,54161,54168,54169,54172,54176,54184,54185,54187,54189,54196,54200,54204,54212,54213,54216,54217,54224,54232,54241,54243,54252,54253,54256,54260,54268,54269,54271,54273,54280,54301,54336,54340,54364,54368,54372,54381,54383,54392,54393,54396,54399,54400,54402,54408,54409,54411,54413,54420,54441,54476,54480,54484,54492,54495,54504,54508,54512,54520,54523,54525,54532,54536,54540,54548,54549,54551,54588,54589,54592,54596,54604,54605,54607,54609,54616,54617,54620,54624,54629,54632,54633,54635,54637,54644,54645,54648,54652,54660,54661,54663,54664,54665,54672,54693,54728,54729,54732,54736,54738,54744,54745,54747,54749,54756,54757,54760,54764,54772,54773,54775,54777,54784,54785,54788,54792,54800,54801,54803,54804,54805,54812,54816,54820,54829,54840,54841,54844,54848,54853,54856,54857,54859,54861,54865,54868,54869,54872,54876,54887,54889,54896,54897,54900,54915,54917,54924,54925,54928,54932,54941,54943,54945,54952,54956,54960,54969,54971,54980,54981,54984,54988,54993,54996,54999,55001,55008,55012,55016,55024,55029,55036,55037,55040,55044,55057,55064,55065,55068,55072,55080,55081,55083,55085,55092,55093,55096,55100,55108,55111,55113,55120,55121,55124,55126,55127,55128,55129,55136,55137,55139,55141,55145,55148,55152,55156,55164,55165,55169,55176,55177,55180,55184,55192,55193,55195,55197,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,20285,20339,20551,20729,21152,21487,21621,21733,22025,23233,23478,26247,26550,26551,26607,27468,29634,30146,31292,33499,33540,34903,34952,35382,36040,36303,36603,36838,39381,21051,21364,21508,24682,24932,27580,29647,33050,35258,35282,38307,20355,21002,22718,22904,23014,24178,24185,25031,25536,26438,26604,26751,28567,30286,30475,30965,31240,31487,31777,32925,33390,33393,35563,38291,20075,21917,26359,28212,30883,31469,33883,35088,34638,38824,21208,22350,22570,23884,24863,25022,25121,25954,26577,27204,28187,29976,30131,30435,30640,32058,37039,37969,37970,40853,21283,23724,30002,32987,37440,38296,21083,22536,23004,23713,23831,24247,24378,24394,24951,27743,30074,30086,31968,32115,32177,32652,33108,33313,34193,35137,35611,37628,38477,40007,20171,20215,20491,20977,22607,24887,24894,24936,25913,27114,28433,30117,30342,30422,31623,33445,33995,63744,37799,38283,21888,23458,22353,63745,31923,32697,37301,20520,21435,23621,24040,25298,25454,25818,25831,28192,28844,31067,36317,36382,63746,36989,37445,37624,20094,20214,20581,24062,24314,24838,26967,33137,34388,36423,37749,39467,20062,20625,26480,26688,20745,21133,21138,27298,30652,37392,40660,21163,24623,36850,20552,25001,25581,25802,26684,27268,28608,33160,35233,38548,22533,29309,29356,29956,32121,32365,32937,35211,35700,36963,40273,25225,27770,28500,32080,32570,35363,20860,24906,31645,35609,37463,37772,20140,20435,20510,20670,20742,21185,21197,21375,22384,22659,24218,24465,24950,25004,25806,25964,26223,26299,26356,26775,28039,28805,28913,29855,29861,29898,30169,30828,30956,31455,31478,32069,32147,32789,32831,33051,33686,35686,36629,36885,37857,38915,38968,39514,39912,20418,21843,22586,22865,23395,23622,24760,25106,26690,26800,26856,28330,30028,30328,30926,31293,31995,32363,32380,35336,35489,35903,38542,40388,21476,21481,21578,21617,22266,22993,23396,23611,24235,25335,25911,25925,25970,26272,26543,27073,27837,30204,30352,30590,31295,32660,32771,32929,33167,33510,33533,33776,34241,34865,34996,35493,63747,36764,37678,38599,39015,39640,40723,21741,26011,26354,26767,31296,35895,40288,22256,22372,23825,26118,26801,26829,28414,29736,34974,39908,27752,63748,39592,20379,20844,20849,21151,23380,24037,24656,24685,25329,25511,25915,29657,31354,34467,36002,38799,20018,23521,25096,26524,29916,31185,33747,35463,35506,36328,36942,37707,38982,24275,27112,34303,37101,63749,20896,23448,23532,24931,26874,27454,28748,29743,29912,31649,32592,33733,35264,36011,38364,39208,21038,24669,25324,36866,20362,20809,21281,22745,24291,26336,27960,28826,29378,29654,31568,33009,37979,21350,25499,32619,20054,20608,22602,22750,24618,24871,25296,27088,39745,23439,32024,32945,36703,20132,20689,21676,21932,23308,23968,24039,25898,25934,26657,27211,29409,30350,30703,32094,32761,33184,34126,34527,36611,36686,37066,39171,39509,39851,19992,20037,20061,20167,20465,20855,21246,21312,21475,21477,21646,22036,22389,22434,23495,23943,24272,25084,25304,25937,26552,26601,27083,27472,27590,27628,27714,28317,28792,29399,29590,29699,30655,30697,31350,32127,32777,33276,33285,33290,33503,34914,35635,36092,36544,36881,37041,37476,37558,39378,39493,40169,40407,40860,22283,23616,33738,38816,38827,40628,21531,31384,32676,35033,36557,37089,22528,23624,25496,31391,23470,24339,31353,31406,33422,36524,20518,21048,21240,21367,22280,25331,25458,27402,28099,30519,21413,29527,34152,36470,38357,26426,27331,28528,35437,36556,39243,63750,26231,27512,36020,39740,63751,21483,22317,22862,25542,27131,29674,30789,31418,31429,31998,33909,35215,36211,36917,38312,21243,22343,30023,31584,33740,37406,63752,27224,20811,21067,21127,25119,26840,26997,38553,20677,21156,21220,25027,26020,26681,27135,29822,31563,33465,33771,35250,35641,36817,39241,63753,20170,22935,25810,26129,27278,29748,31105,31165,33449,34942,34943,35167,63754,37670,20235,21450,24613,25201,27762,32026,32102,20120,20834,30684,32943,20225,20238,20854,20864,21980,22120,22331,22522,22524,22804,22855,22931,23492,23696,23822,24049,24190,24524,25216,26071,26083,26398,26399,26462,26827,26820,27231,27450,27683,27773,27778,28103,29592,29734,29738,29826,29859,30072,30079,30849,30959,31041,31047,31048,31098,31637,32e3,32186,32648,32774,32813,32908,35352,35663,35912,36215,37665,37668,39138,39249,39438,39439,39525,40594,32202,20342,21513,25326,26708,37329,21931,20794,63755,63756,23068,25062,63757,25295,25343,63758,63759,63760,63761,63762,63763,37027,63764,63765,63766,63767,63768,35582,63769,63770,63771,63772,26262,63773,29014,63774,63775,38627,63776,25423,25466,21335,63777,26511,26976,28275,63778,30007,63779,63780,63781,32013,63782,63783,34930,22218,23064,63784,63785,63786,63787,63788,20035,63789,20839,22856,26608,32784,63790,22899,24180,25754,31178,24565,24684,25288,25467,23527,23511,21162,63791,22900,24361,24594,63792,63793,63794,29785,63795,63796,63797,63798,63799,63800,39377,63801,63802,63803,63804,63805,63806,63807,63808,63809,63810,63811,28611,63812,63813,33215,36786,24817,63814,63815,33126,63816,63817,23615,63818,63819,63820,63821,63822,63823,63824,63825,23273,35365,26491,32016,63826,63827,63828,63829,63830,63831,33021,63832,63833,23612,27877,21311,28346,22810,33590,20025,20150,20294,21934,22296,22727,24406,26039,26086,27264,27573,28237,30701,31471,31774,32222,34507,34962,37170,37723,25787,28606,29562,30136,36948,21846,22349,25018,25812,26311,28129,28251,28525,28601,30192,32835,33213,34113,35203,35527,35674,37663,27795,30035,31572,36367,36957,21776,22530,22616,24162,25095,25758,26848,30070,31958,34739,40680,20195,22408,22382,22823,23565,23729,24118,24453,25140,25825,29619,33274,34955,36024,38538,40667,23429,24503,24755,20498,20992,21040,22294,22581,22615,23566,23648,23798,23947,24230,24466,24764,25361,25481,25623,26691,26873,27330,28120,28193,28372,28644,29182,30428,30585,31153,31291,33796,35241,36077,36339,36424,36867,36884,36947,37117,37709,38518,38876,27602,28678,29272,29346,29544,30563,31167,31716,32411,35712,22697,24775,25958,26109,26302,27788,28958,29129,35930,38931,20077,31361,20189,20908,20941,21205,21516,24999,26481,26704,26847,27934,28540,30140,30643,31461,33012,33891,37509,20828,26007,26460,26515,30168,31431,33651,63834,35910,36887,38957,23663,33216,33434,36929,36975,37389,24471,23965,27225,29128,30331,31561,34276,35588,37159,39472,21895,25078,63835,30313,32645,34367,34746,35064,37007,63836,27931,28889,29662,32097,33853,63837,37226,39409,63838,20098,21365,27396,27410,28734,29211,34349,40478,21068,36771,23888,25829,25900,27414,28651,31811,32412,34253,35172,35261,25289,33240,34847,24266,26391,28010,29436,29701,29807,34690,37086,20358,23821,24480,33802,20919,25504,30053,20142,20486,20841,20937,26753,27153,31918,31921,31975,33391,35538,36635,37327,20406,20791,21237,21570,24300,24942,25150,26053,27354,28670,31018,34268,34851,38317,39522,39530,40599,40654,21147,26310,27511,28701,31019,36706,38722,24976,25088,25891,28451,29001,29833,32244,32879,34030,36646,36899,37706,20925,21015,21155,27916,28872,35010,24265,25986,27566,28610,31806,29557,20196,20278,22265,63839,23738,23994,24604,29618,31533,32666,32718,32838,36894,37428,38646,38728,38936,40801,20363,28583,31150,37300,38583,21214,63840,25736,25796,27347,28510,28696,29200,30439,32769,34310,34396,36335,36613,38706,39791,40442,40565,30860,31103,32160,33737,37636,40575,40595,35542,22751,24324,26407,28711,29903,31840,32894,20769,28712,29282,30922,36034,36058,36084,38647,20102,20698,23534,24278,26009,29134,30274,30637,32842,34044,36988,39719,40845,22744,23105,23650,27155,28122,28431,30267,32047,32311,34078,35128,37860,38475,21129,26066,26611,27060,27969,28316,28687,29705,29792,30041,30244,30827,35628,39006,20845,25134,38520,20374,20523,23833,28138,32184,36650,24459,24900,26647,63841,38534,21202,32907,20956,20940,26974,31260,32190,33777,38517,20442,21033,21400,21519,21774,23653,24743,26446,26792,28012,29313,29432,29702,29827,63842,30178,31852,32633,32696,33673,35023,35041,37324,37328,38626,39881,21533,28542,29136,29848,34298,36522,38563,40023,40607,26519,28107,29747,33256,38678,30764,31435,31520,31890,25705,29802,30194,30908,30952,39340,39764,40635,23518,24149,28448,33180,33707,37e3,19975,21325,23081,24018,24398,24930,25405,26217,26364,28415,28459,28771,30622,33836,34067,34875,36627,39237,39995,21788,25273,26411,27819,33545,35178,38778,20129,22916,24536,24537,26395,32178,32596,33426,33579,33725,36638,37017,22475,22969,23186,23504,26151,26522,26757,27599,29028,32629,36023,36067,36993,39749,33032,35978,38476,39488,40613,23391,27667,29467,30450,30431,33804,20906,35219,20813,20885,21193,26825,27796,30468,30496,32191,32236,38754,40629,28357,34065,20901,21517,21629,26126,26269,26919,28319,30399,30609,33559,33986,34719,37225,37528,40180,34946,20398,20882,21215,22982,24125,24917,25720,25721,26286,26576,27169,27597,27611,29279,29281,29761,30520,30683,32791,33468,33541,35584,35624,35980,26408,27792,29287,30446,30566,31302,40361,27519,27794,22818,26406,33945,21359,22675,22937,24287,25551,26164,26483,28218,29483,31447,33495,37672,21209,24043,25006,25035,25098,25287,25771,26080,26969,27494,27595,28961,29687,30045,32326,33310,33538,34154,35491,36031,38695,40289,22696,40664,20497,21006,21563,21839,25991,27766,32010,32011,32862,34442,38272,38639,21247,27797,29289,21619,23194,23614,23883,24396,24494,26410,26806,26979,28220,28228,30473,31859,32654,34183,35598,36855,38753,40692,23735,24758,24845,25003,25935,26107,26108,27665,27887,29599,29641,32225,38292,23494,34588,35600,21085,21338,25293,25615,25778,26420,27192,27850,29632,29854,31636,31893,32283,33162,33334,34180,36843,38649,39361,20276,21322,21453,21467,25292,25644,25856,26001,27075,27886,28504,29677,30036,30242,30436,30460,30928,30971,31020,32070,33324,34784,36820,38930,39151,21187,25300,25765,28196,28497,30332,36299,37297,37474,39662,39747,20515,20621,22346,22952,23592,24135,24439,25151,25918,26041,26049,26121,26507,27036,28354,30917,32033,32938,33152,33323,33459,33953,34444,35370,35607,37030,38450,40848,20493,20467,63843,22521,24472,25308,25490,26479,28227,28953,30403,32972,32986,35060,35061,35097,36064,36649,37197,38506,20271,20336,24091,26575,26658,30333,30334,39748,24161,27146,29033,29140,30058,63844,32321,34115,34281,39132,20240,31567,32624,38309,20961,24070,26805,27710,27726,27867,29359,31684,33539,27861,29754,20731,21128,22721,25816,27287,29863,30294,30887,34327,38370,38713,63845,21342,24321,35722,36776,36783,37002,21029,30629,40009,40712,19993,20482,20853,23643,24183,26142,26170,26564,26821,28851,29953,30149,31177,31453,36647,39200,39432,20445,22561,22577,23542,26222,27493,27921,28282,28541,29668,29995,33769,35036,35091,35676,36628,20239,20693,21264,21340,23443,24489,26381,31119,33145,33583,34068,35079,35206,36665,36667,39333,39954,26412,20086,20472,22857,23553,23791,23792,25447,26834,28925,29090,29739,32299,34028,34562,36898,37586,40179,19981,20184,20463,20613,21078,21103,21542,21648,22496,22827,23142,23386,23413,23500,24220,63846,25206,25975,26023,28014,28325,29238,31526,31807,32566,33104,33105,33178,33344,33433,33705,35331,36e3,36070,36091,36212,36282,37096,37340,38428,38468,39385,40167,21271,20998,21545,22132,22707,22868,22894,24575,24996,25198,26128,27774,28954,30406,31881,31966,32027,33452,36033,38640,63847,20315,24343,24447,25282,23849,26379,26842,30844,32323,40300,19989,20633,21269,21290,21329,22915,23138,24199,24754,24970,25161,25209,26e3,26503,27047,27604,27606,27607,27608,27832,63848,29749,30202,30738,30865,31189,31192,31875,32203,32737,32933,33086,33218,33778,34586,35048,35513,35692,36027,37145,38750,39131,40763,22188,23338,24428,25996,27315,27567,27996,28657,28693,29277,29613,36007,36051,38971,24977,27703,32856,39425,20045,20107,20123,20181,20282,20284,20351,20447,20735,21490,21496,21766,21987,22235,22763,22882,23057,23531,23546,23556,24051,24107,24473,24605,25448,26012,26031,26614,26619,26797,27515,27801,27863,28195,28681,29509,30722,31038,31040,31072,31169,31721,32023,32114,32902,33293,33678,34001,34503,35039,35408,35422,35613,36060,36198,36781,37034,39164,39391,40605,21066,63849,26388,63850,20632,21034,23665,25955,27733,29642,29987,30109,31639,33948,37240,38704,20087,25746,27578,29022,34217,19977,63851,26441,26862,28183,33439,34072,34923,25591,28545,37394,39087,19978,20663,20687,20767,21830,21930,22039,23360,23577,23776,24120,24202,24224,24258,24819,26705,27233,28248,29245,29248,29376,30456,31077,31665,32724,35059,35316,35443,35937,36062,38684,22622,29885,36093,21959,63852,31329,32034,33394,29298,29983,29989,63853,31513,22661,22779,23996,24207,24246,24464,24661,25234,25471,25933,26257,26329,26360,26646,26866,29312,29790,31598,32110,32214,32626,32997,33298,34223,35199,35475,36893,37604,40653,40736,22805,22893,24109,24796,26132,26227,26512,27728,28101,28511,30707,30889,33990,37323,37675,20185,20682,20808,21892,23307,23459,25159,25982,26059,28210,29053,29697,29764,29831,29887,30316,31146,32218,32341,32680,33146,33203,33337,34330,34796,35445,36323,36984,37521,37925,39245,39854,21352,23633,26964,27844,27945,28203,33292,34203,35131,35373,35498,38634,40807,21089,26297,27570,32406,34814,36109,38275,38493,25885,28041,29166,63854,22478,22995,23468,24615,24826,25104,26143,26207,29481,29689,30427,30465,31596,32854,32882,33125,35488,37266,19990,21218,27506,27927,31237,31545,32048,63855,36016,21484,22063,22609,23477,23567,23569,24034,25152,25475,25620,26157,26803,27836,28040,28335,28703,28836,29138,29990,30095,30094,30233,31505,31712,31787,32032,32057,34092,34157,34311,35380,36877,36961,37045,37559,38902,39479,20439,23660,26463,28049,31903,32396,35606,36118,36895,23403,24061,25613,33984,36956,39137,29575,23435,24730,26494,28126,35359,35494,36865,38924,21047,63856,28753,30862,37782,34928,37335,20462,21463,22013,22234,22402,22781,23234,23432,23723,23744,24101,24833,25101,25163,25480,25628,25910,25976,27193,27530,27700,27929,28465,29159,29417,29560,29703,29874,30246,30561,31168,31319,31466,31929,32143,32172,32353,32670,33065,33585,33936,34010,34282,34966,35504,35728,36664,36930,36995,37228,37526,37561,38539,38567,38568,38614,38656,38920,39318,39635,39706,21460,22654,22809,23408,23487,28113,28506,29087,29729,29881,32901,33789,24033,24455,24490,24642,26092,26642,26991,27219,27529,27957,28147,29667,30462,30636,31565,32020,33059,33308,33600,34036,34147,35426,35524,37255,37662,38918,39348,25100,34899,36848,37477,23815,23847,23913,29791,33181,34664,28629,25342,32722,35126,35186,19998,20056,20711,21213,21319,25215,26119,32361,34821,38494,20365,21273,22070,22987,23204,23608,23630,23629,24066,24337,24643,26045,26159,26178,26558,26612,29468,30690,31034,32709,33940,33997,35222,35430,35433,35553,35925,35962,22516,23508,24335,24687,25325,26893,27542,28252,29060,31698,34645,35672,36606,39135,39166,20280,20353,20449,21627,23072,23480,24892,26032,26216,29180,30003,31070,32051,33102,33251,33688,34218,34254,34563,35338,36523,36763,63857,36805,22833,23460,23526,24713,23529,23563,24515,27777,63858,28145,28683,29978,33455,35574,20160,21313,63859,38617,27663,20126,20420,20818,21854,23077,23784,25105,29273,33469,33706,34558,34905,35357,38463,38597,39187,40201,40285,22538,23731,23997,24132,24801,24853,25569,27138,28197,37122,37716,38990,39952,40823,23433,23736,25353,26191,26696,30524,38593,38797,38996,39839,26017,35585,36555,38332,21813,23721,24022,24245,26263,30284,33780,38343,22739,25276,29390,40232,20208,22830,24591,26171,27523,31207,40230,21395,21696,22467,23830,24859,26326,28079,30861,33406,38552,38724,21380,25212,25494,28082,32266,33099,38989,27387,32588,40367,40474,20063,20539,20918,22812,24825,25590,26928,29242,32822,63860,37326,24369,63861,63862,32004,33509,33903,33979,34277,36493,63863,20335,63864,63865,22756,23363,24665,25562,25880,25965,26264,63866,26954,27171,27915,28673,29036,30162,30221,31155,31344,63867,32650,63868,35140,63869,35731,37312,38525,63870,39178,22276,24481,26044,28417,30208,31142,35486,39341,39770,40812,20740,25014,25233,27277,33222,20547,22576,24422,28937,35328,35578,23420,34326,20474,20796,22196,22852,25513,28153,23978,26989,20870,20104,20313,63871,63872,63873,22914,63874,63875,27487,27741,63876,29877,30998,63877,33287,33349,33593,36671,36701,63878,39192,63879,63880,63881,20134,63882,22495,24441,26131,63883,63884,30123,32377,35695,63885,36870,39515,22181,22567,23032,23071,23476,63886,24310,63887,63888,25424,25403,63889,26941,27783,27839,28046,28051,28149,28436,63890,28895,28982,29017,63891,29123,29141,63892,30799,30831,63893,31605,32227,63894,32303,63895,34893,36575,63896,63897,63898,37467,63899,40182,63900,63901,63902,24709,28037,63903,29105,63904,63905,38321,21421,63906,63907,63908,26579,63909,28814,28976,29744,33398,33490,63910,38331,39653,40573,26308,63911,29121,33865,63912,63913,22603,63914,63915,23992,24433,63916,26144,26254,27001,27054,27704,27891,28214,28481,28634,28699,28719,29008,29151,29552,63917,29787,63918,29908,30408,31310,32403,63919,63920,33521,35424,36814,63921,37704,63922,38681,63923,63924,20034,20522,63925,21e3,21473,26355,27757,28618,29450,30591,31330,33454,34269,34306,63926,35028,35427,35709,35947,63927,37555,63928,38675,38928,20116,20237,20425,20658,21320,21566,21555,21978,22626,22714,22887,23067,23524,24735,63929,25034,25942,26111,26212,26791,27738,28595,28879,29100,29522,31613,34568,35492,39986,40711,23627,27779,29508,29577,37434,28331,29797,30239,31337,32277,34314,20800,22725,25793,29934,29973,30320,32705,37013,38605,39252,28198,29926,31401,31402,33253,34521,34680,35355,23113,23436,23451,26785,26880,28003,29609,29715,29740,30871,32233,32747,33048,33109,33694,35916,38446,38929,26352,24448,26106,26505,27754,29579,20525,23043,27498,30702,22806,23916,24013,29477,30031,63930,63931,20709,20985,22575,22829,22934,23002,23525,63932,63933,23970,25303,25622,25747,25854,63934,26332,63935,27208,63936,29183,29796,63937,31368,31407,32327,32350,32768,33136,63938,34799,35201,35616,36953,63939,36992,39250,24958,27442,28020,32287,35109,36785,20433,20653,20887,21191,22471,22665,23481,24248,24898,27029,28044,28263,28342,29076,29794,29992,29996,32883,33592,33993,36362,37780,37854,63940,20110,20305,20598,20778,21448,21451,21491,23431,23507,23588,24858,24962,26100,29275,29591,29760,30402,31056,31121,31161,32006,32701,33419,34261,34398,36802,36935,37109,37354,38533,38632,38633,21206,24423,26093,26161,26671,29020,31286,37057,38922,20113,63941,27218,27550,28560,29065,32792,33464,34131,36939,38549,38642,38907,34074,39729,20112,29066,38596,20803,21407,21729,22291,22290,22435,23195,23236,23491,24616,24895,25588,27781,27961,28274,28304,29232,29503,29783,33489,34945,36677,36960,63942,38498,39e3,40219,26376,36234,37470,20301,20553,20702,21361,22285,22996,23041,23561,24944,26256,28205,29234,29771,32239,32963,33806,33894,34111,34655,34907,35096,35586,36949,38859,39759,20083,20369,20754,20842,63943,21807,21929,23418,23461,24188,24189,24254,24736,24799,24840,24841,25540,25912,26377,63944,26580,26586,63945,26977,26978,27833,27943,63946,28216,63947,28641,29494,29495,63948,29788,30001,63949,30290,63950,63951,32173,33278,33848,35029,35480,35547,35565,36400,36418,36938,36926,36986,37193,37321,37742,63952,63953,22537,63954,27603,32905,32946,63955,63956,20801,22891,23609,63957,63958,28516,29607,32996,36103,63959,37399,38287,63960,63961,63962,63963,32895,25102,28700,32104,34701,63964,22432,24681,24903,27575,35518,37504,38577,20057,21535,28139,34093,38512,38899,39150,25558,27875,37009,20957,25033,33210,40441,20381,20506,20736,23452,24847,25087,25836,26885,27589,30097,30691,32681,33380,34191,34811,34915,35516,35696,37291,20108,20197,20234,63965,63966,22839,23016,63967,24050,24347,24411,24609,63968,63969,63970,63971,29246,29669,63972,30064,30157,63973,31227,63974,32780,32819,32900,33505,33617,63975,63976,36029,36019,36999,63977,63978,39156,39180,63979,63980,28727,30410,32714,32716,32764,35610,20154,20161,20995,21360,63981,21693,22240,23035,23493,24341,24525,28270,63982,63983,32106,33589,63984,34451,35469,63985,38765,38775,63986,63987,19968,20314,20350,22777,26085,28322,36920,37808,39353,20219,22764,22922,23001,24641,63988,63989,31252,63990,33615,36035,20837,21316,63991,63992,63993,20173,21097,23381,33471,20180,21050,21672,22985,23039,23376,23383,23388,24675,24904,28363,28825,29038,29574,29943,30133,30913,32043,32773,33258,33576,34071,34249,35566,36039,38604,20316,21242,22204,26027,26152,28796,28856,29237,32189,33421,37196,38592,40306,23409,26855,27544,28538,30430,23697,26283,28507,31668,31786,34870,38620,19976,20183,21280,22580,22715,22767,22892,23559,24115,24196,24373,25484,26290,26454,27167,27299,27404,28479,29254,63994,29520,29835,31456,31911,33144,33247,33255,33674,33900,34083,34196,34255,35037,36115,37292,38263,38556,20877,21705,22312,23472,25165,26448,26685,26771,28221,28371,28797,32289,35009,36001,36617,40779,40782,29229,31631,35533,37658,20295,20302,20786,21632,22992,24213,25269,26485,26990,27159,27822,28186,29401,29482,30141,31672,32053,33511,33785,33879,34295,35419,36015,36487,36889,37048,38606,40799,21219,21514,23265,23490,25688,25973,28404,29380,63995,30340,31309,31515,31821,32318,32735,33659,35627,36042,36196,36321,36447,36842,36857,36969,37841,20291,20346,20659,20840,20856,21069,21098,22625,22652,22880,23560,23637,24283,24731,25136,26643,27583,27656,28593,29006,29728,3e4,30008,30033,30322,31564,31627,31661,31686,32399,35438,36670,36681,37439,37523,37666,37931,38651,39002,39019,39198,20999,25130,25240,27993,30308,31434,31680,32118,21344,23742,24215,28472,28857,31896,38673,39822,40670,25509,25722,34678,19969,20117,20141,20572,20597,21576,22979,23450,24128,24237,24311,24449,24773,25402,25919,25972,26060,26230,26232,26622,26984,27273,27491,27712,28096,28136,28191,28254,28702,28833,29582,29693,30010,30555,30855,31118,31243,31357,31934,32142,33351,35330,35562,35998,37165,37194,37336,37478,37580,37664,38662,38742,38748,38914,40718,21046,21137,21884,22564,24093,24351,24716,25552,26799,28639,31085,31532,33229,34234,35069,35576,36420,37261,38500,38555,38717,38988,40778,20430,20806,20939,21161,22066,24340,24427,25514,25805,26089,26177,26362,26361,26397,26781,26839,27133,28437,28526,29031,29157,29226,29866,30522,31062,31066,31199,31264,31381,31895,31967,32068,32368,32903,34299,34468,35412,35519,36249,36481,36896,36973,37347,38459,38613,40165,26063,31751,36275,37827,23384,23562,21330,25305,29469,20519,23447,24478,24752,24939,26837,28121,29742,31278,32066,32156,32305,33131,36394,36405,37758,37912,20304,22352,24038,24231,25387,32618,20027,20303,20367,20570,23005,32964,21610,21608,22014,22863,23449,24030,24282,26205,26417,26609,26666,27880,27954,28234,28557,28855,29664,30087,31820,32002,32044,32162,33311,34523,35387,35461,36208,36490,36659,36913,37198,37202,37956,39376,31481,31909,20426,20737,20934,22472,23535,23803,26201,27197,27994,28310,28652,28940,30063,31459,34850,36897,36981,38603,39423,33537,20013,20210,34886,37325,21373,27355,26987,27713,33914,22686,24974,26366,25327,28893,29969,30151,32338,33976,35657,36104,20043,21482,21675,22320,22336,24535,25345,25351,25711,25903,26088,26234,26525,26547,27490,27744,27802,28460,30693,30757,31049,31063,32025,32930,33026,33267,33437,33463,34584,35468,63996,36100,36286,36978,30452,31257,31287,32340,32887,21767,21972,22645,25391,25634,26185,26187,26733,27035,27524,27941,28337,29645,29800,29857,30043,30137,30433,30494,30603,31206,32265,32285,33275,34095,34967,35386,36049,36587,36784,36914,37805,38499,38515,38663,20356,21489,23018,23241,24089,26702,29894,30142,31209,31378,33187,34541,36074,36300,36845,26015,26389,63997,22519,28503,32221,36655,37878,38598,24501,25074,28548,19988,20376,20511,21449,21983,23919,24046,27425,27492,30923,31642,63998,36425,36554,36974,25417,25662,30528,31364,37679,38015,40810,25776,28591,29158,29864,29914,31428,31762,32386,31922,32408,35738,36106,38013,39184,39244,21049,23519,25830,26413,32046,20717,21443,22649,24920,24921,25082,26028,31449,35730,35734,20489,20513,21109,21809,23100,24288,24432,24884,25950,26124,26166,26274,27085,28356,28466,29462,30241,31379,33081,33369,33750,33980,20661,22512,23488,23528,24425,25505,30758,32181,33756,34081,37319,37365,20874,26613,31574,36012,20932,22971,24765,34389,20508,63999,21076,23610,24957,25114,25299,25842,26021,28364,30240,33034,36448,38495,38587,20191,21315,21912,22825,24029,25797,27849,28154,29588,31359,33307,34214,36068,36368,36983,37351,38369,38433,38854,20984,21746,21894,24505,25764,28552,32180,36639,36685,37941,20681,23574,27838,28155,29979,30651,31805,31844,35449,35522,22558,22974,24086,25463,29266,30090,30571,35548,36028,36626,24307,26228,28152,32893,33729,35531,38737,39894,64e3,21059,26367,28053,28399,32224,35558,36910,36958,39636,21021,21119,21736,24980,25220,25307,26786,26898,26970,27189,28818,28966,30813,30977,30990,31186,31245,32918,33400,33493,33609,34121,35970,36229,37218,37259,37294,20419,22225,29165,30679,34560,35320,23544,24534,26449,37032,21474,22618,23541,24740,24961,25696,32317,32880,34085,37507,25774,20652,23828,26368,22684,25277,25512,26894,27e3,27166,28267,30394,31179,33467,33833,35535,36264,36861,37138,37195,37276,37648,37656,37786,38619,39478,39949,19985,30044,31069,31482,31569,31689,32302,33988,36441,36468,36600,36880,26149,26943,29763,20986,26414,40668,20805,24544,27798,34802,34909,34935,24756,33205,33795,36101,21462,21561,22068,23094,23601,28810,32736,32858,33030,33261,36259,37257,39519,40434,20596,20164,21408,24827,28204,23652,20360,20516,21988,23769,24159,24677,26772,27835,28100,29118,30164,30196,30305,31258,31305,32199,32251,32622,33268,34473,36636,38601,39347,40786,21063,21189,39149,35242,19971,26578,28422,20405,23522,26517,27784,28024,29723,30759,37341,37756,34756,31204,31281,24555,20182,21668,21822,22702,22949,24816,25171,25302,26422,26965,33333,38464,39345,39389,20524,21331,21828,22396,64001,25176,64002,25826,26219,26589,28609,28655,29730,29752,35351,37944,21585,22022,22374,24392,24986,27470,28760,28845,32187,35477,22890,33067,25506,30472,32829,36010,22612,25645,27067,23445,24081,28271,64003,34153,20812,21488,22826,24608,24907,27526,27760,27888,31518,32974,33492,36294,37040,39089,64004,25799,28580,25745,25860,20814,21520,22303,35342,24927,26742,64005,30171,31570,32113,36890,22534,27084,33151,35114,36864,38969,20600,22871,22956,25237,36879,39722,24925,29305,38358,22369,23110,24052,25226,25773,25850,26487,27874,27966,29228,29750,30772,32631,33453,36315,38935,21028,22338,26495,29256,29923,36009,36774,37393,38442,20843,21485,25420,20329,21764,24726,25943,27803,28031,29260,29437,31255,35207,35997,24429,28558,28921,33192,24846,20415,20559,25153,29255,31687,32232,32745,36941,38829,39449,36022,22378,24179,26544,33805,35413,21536,23318,24163,24290,24330,25987,32954,34109,38281,38491,20296,21253,21261,21263,21638,21754,22275,24067,24598,25243,25265,25429,64006,27873,28006,30129,30770,32990,33071,33502,33889,33970,34957,35090,36875,37610,39165,39825,24133,26292,26333,28689,29190,64007,20469,21117,24426,24915,26451,27161,28418,29922,31080,34920,35961,39111,39108,39491,21697,31263,26963,35575,35914,39080,39342,24444,25259,30130,30382,34987,36991,38466,21305,24380,24517,27852,29644,30050,30091,31558,33534,39325,20047,36924,19979,20309,21414,22799,24264,26160,27827,29781,33655,34662,36032,36944,38686,39957,22737,23416,34384,35604,40372,23506,24680,24717,26097,27735,28450,28579,28698,32597,32752,38289,38290,38480,38867,21106,36676,20989,21547,21688,21859,21898,27323,28085,32216,33382,37532,38519,40569,21512,21704,30418,34532,38308,38356,38492,20130,20233,23022,23270,24055,24658,25239,26477,26689,27782,28207,32568,32923,33322,64008,64009,38917,20133,20565,21683,22419,22874,23401,23475,25032,26999,28023,28707,34809,35299,35442,35559,36994,39405,39608,21182,26680,20502,24184,26447,33607,34892,20139,21521,22190,29670,37141,38911,39177,39255,39321,22099,22687,34395,35377,25010,27382,29563,36562,27463,38570,39511,22869,29184,36203,38761,20436,23796,24358,25080,26203,27883,28843,29572,29625,29694,30505,30541,32067,32098,32291,33335,34898,64010,36066,37449,39023,23377,31348,34880,38913,23244,20448,21332,22846,23805,25406,28025,29433,33029,33031,33698,37583,38960,20136,20804,21009,22411,24418,27842,28366,28677,28752,28847,29074,29673,29801,33610,34722,34913,36872,37026,37795,39336,20846,24407,24800,24935,26291,34137,36426,37295,38795,20046,20114,21628,22741,22778,22909,23733,24359,25142,25160,26122,26215,27627,28009,28111,28246,28408,28564,28640,28649,28765,29392,29733,29786,29920,30355,31068,31946,32286,32993,33446,33899,33983,34382,34399,34676,35703,35946,37804,38912,39013,24785,25110,37239,23130,26127,28151,28222,29759,39746,24573,24794,31503,21700,24344,27742,27859,27946,28888,32005,34425,35340,40251,21270,21644,23301,27194,28779,30069,31117,31166,33457,33775,35441,35649,36008,38772,64011,25844,25899,30906,30907,31339,20024,21914,22864,23462,24187,24739,25563,27489,26213,26707,28185,29029,29872,32008,36996,39529,39973,27963,28369,29502,35905,38346,20976,24140,24488,24653,24822,24880,24908,26179,26180,27045,27841,28255,28361,28514,29004,29852,30343,31681,31783,33618,34647,36945,38541,40643,21295,22238,24315,24458,24674,24724,25079,26214,26371,27292,28142,28590,28784,29546,32362,33214,33588,34516,35496,36036,21123,29554,23446,27243,37892,21742,22150,23389,25928,25989,26313,26783,28045,28102,29243,32948,37237,39501,20399,20505,21402,21518,21564,21897,21957,24127,24460,26429,29030,29661,36869,21211,21235,22628,22734,28932,29071,29179,34224,35347,26248,34216,21927,26244,29002,33841,21321,21913,27585,24409,24509,25582,26249,28999,35569,36637,40638,20241,25658,28875,30054,34407,24676,35662,40440,20807,20982,21256,27958,33016,40657,26133,27427,28824,30165,21507,23673,32007,35350,27424,27453,27462,21560,24688,27965,32725,33288,20694,20958,21916,22123,22221,23020,23305,24076,24985,24984,25137,26206,26342,29081,29113,29114,29351,31143,31232,32690,35440],gbk:[19970,19972,19973,19974,19983,19986,19991,19999,2e4,20001,20003,20006,20009,20014,20015,20017,20019,20021,20023,20028,20032,20033,20034,20036,20038,20042,20049,20053,20055,20058,20059,20066,20067,20068,20069,20071,20072,20074,20075,20076,20077,20078,20079,20082,20084,20085,20086,20087,20088,20089,20090,20091,20092,20093,20095,20096,20097,20098,20099,20100,20101,20103,20106,20112,20118,20119,20121,20124,20125,20126,20131,20138,20143,20144,20145,20148,20150,20151,20152,20153,20156,20157,20158,20168,20172,20175,20176,20178,20186,20187,20188,20192,20194,20198,20199,20201,20205,20206,20207,20209,20212,20216,20217,20218,20220,20222,20224,20226,20227,20228,20229,20230,20231,20232,20235,20236,20242,20243,20244,20245,20246,20252,20253,20257,20259,20264,20265,20268,20269,20270,20273,20275,20277,20279,20281,20283,20286,20287,20288,20289,20290,20292,20293,20295,20296,20297,20298,20299,20300,20306,20308,20310,20321,20322,20326,20328,20330,20331,20333,20334,20337,20338,20341,20343,20344,20345,20346,20349,20352,20353,20354,20357,20358,20359,20362,20364,20366,20368,20370,20371,20373,20374,20376,20377,20378,20380,20382,20383,20385,20386,20388,20395,20397,20400,20401,20402,20403,20404,20406,20407,20408,20409,20410,20411,20412,20413,20414,20416,20417,20418,20422,20423,20424,20425,20427,20428,20429,20434,20435,20436,20437,20438,20441,20443,20448,20450,20452,20453,20455,20459,20460,20464,20466,20468,20469,20470,20471,20473,20475,20476,20477,20479,20480,20481,20482,20483,20484,20485,20486,20487,20488,20489,20490,20491,20494,20496,20497,20499,20501,20502,20503,20507,20509,20510,20512,20514,20515,20516,20519,20523,20527,20528,20529,20530,20531,20532,20533,20534,20535,20536,20537,20539,20541,20543,20544,20545,20546,20548,20549,20550,20553,20554,20555,20557,20560,20561,20562,20563,20564,20566,20567,20568,20569,20571,20573,20574,20575,20576,20577,20578,20579,20580,20582,20583,20584,20585,20586,20587,20589,20590,20591,20592,20593,20594,20595,20596,20597,20600,20601,20602,20604,20605,20609,20610,20611,20612,20614,20615,20617,20618,20619,20620,20622,20623,20624,20625,20626,20627,20628,20629,20630,20631,20632,20633,20634,20635,20636,20637,20638,20639,20640,20641,20642,20644,20646,20650,20651,20653,20654,20655,20656,20657,20659,20660,20661,20662,20663,20664,20665,20668,20669,20670,20671,20672,20673,20674,20675,20676,20677,20678,20679,20680,20681,20682,20683,20684,20685,20686,20688,20689,20690,20691,20692,20693,20695,20696,20697,20699,20700,20701,20702,20703,20704,20705,20706,20707,20708,20709,20712,20713,20714,20715,20719,20720,20721,20722,20724,20726,20727,20728,20729,20730,20732,20733,20734,20735,20736,20737,20738,20739,20740,20741,20744,20745,20746,20748,20749,20750,20751,20752,20753,20755,20756,20757,20758,20759,20760,20761,20762,20763,20764,20765,20766,20767,20768,20770,20771,20772,20773,20774,20775,20776,20777,20778,20779,20780,20781,20782,20783,20784,20785,20786,20787,20788,20789,20790,20791,20792,20793,20794,20795,20796,20797,20798,20802,20807,20810,20812,20814,20815,20816,20818,20819,20823,20824,20825,20827,20829,20830,20831,20832,20833,20835,20836,20838,20839,20841,20842,20847,20850,20858,20862,20863,20867,20868,20870,20871,20874,20875,20878,20879,20880,20881,20883,20884,20888,20890,20893,20894,20895,20897,20899,20902,20903,20904,20905,20906,20909,20910,20916,20920,20921,20922,20926,20927,20929,20930,20931,20933,20936,20938,20941,20942,20944,20946,20947,20948,20949,20950,20951,20952,20953,20954,20956,20958,20959,20962,20963,20965,20966,20967,20968,20969,20970,20972,20974,20977,20978,20980,20983,20990,20996,20997,21001,21003,21004,21007,21008,21011,21012,21013,21020,21022,21023,21025,21026,21027,21029,21030,21031,21034,21036,21039,21041,21042,21044,21045,21052,21054,21060,21061,21062,21063,21064,21065,21067,21070,21071,21074,21075,21077,21079,21080,21081,21082,21083,21085,21087,21088,21090,21091,21092,21094,21096,21099,21100,21101,21102,21104,21105,21107,21108,21109,21110,21111,21112,21113,21114,21115,21116,21118,21120,21123,21124,21125,21126,21127,21129,21130,21131,21132,21133,21134,21135,21137,21138,21140,21141,21142,21143,21144,21145,21146,21148,21156,21157,21158,21159,21166,21167,21168,21172,21173,21174,21175,21176,21177,21178,21179,21180,21181,21184,21185,21186,21188,21189,21190,21192,21194,21196,21197,21198,21199,21201,21203,21204,21205,21207,21209,21210,21211,21212,21213,21214,21216,21217,21218,21219,21221,21222,21223,21224,21225,21226,21227,21228,21229,21230,21231,21233,21234,21235,21236,21237,21238,21239,21240,21243,21244,21245,21249,21250,21251,21252,21255,21257,21258,21259,21260,21262,21265,21266,21267,21268,21272,21275,21276,21278,21279,21282,21284,21285,21287,21288,21289,21291,21292,21293,21295,21296,21297,21298,21299,21300,21301,21302,21303,21304,21308,21309,21312,21314,21316,21318,21323,21324,21325,21328,21332,21336,21337,21339,21341,21349,21352,21354,21356,21357,21362,21366,21369,21371,21372,21373,21374,21376,21377,21379,21383,21384,21386,21390,21391,21392,21393,21394,21395,21396,21398,21399,21401,21403,21404,21406,21408,21409,21412,21415,21418,21419,21420,21421,21423,21424,21425,21426,21427,21428,21429,21431,21432,21433,21434,21436,21437,21438,21440,21443,21444,21445,21446,21447,21454,21455,21456,21458,21459,21461,21466,21468,21469,21470,21473,21474,21479,21492,21498,21502,21503,21504,21506,21509,21511,21515,21524,21528,21529,21530,21532,21538,21540,21541,21546,21552,21555,21558,21559,21562,21565,21567,21569,21570,21572,21573,21575,21577,21580,21581,21582,21583,21585,21594,21597,21598,21599,21600,21601,21603,21605,21607,21609,21610,21611,21612,21613,21614,21615,21616,21620,21625,21626,21630,21631,21633,21635,21637,21639,21640,21641,21642,21645,21649,21651,21655,21656,21660,21662,21663,21664,21665,21666,21669,21678,21680,21682,21685,21686,21687,21689,21690,21692,21694,21699,21701,21706,21707,21718,21720,21723,21728,21729,21730,21731,21732,21739,21740,21743,21744,21745,21748,21749,21750,21751,21752,21753,21755,21758,21760,21762,21763,21764,21765,21768,21770,21771,21772,21773,21774,21778,21779,21781,21782,21783,21784,21785,21786,21788,21789,21790,21791,21793,21797,21798,21800,21801,21803,21805,21810,21812,21813,21814,21816,21817,21818,21819,21821,21824,21826,21829,21831,21832,21835,21836,21837,21838,21839,21841,21842,21843,21844,21847,21848,21849,21850,21851,21853,21854,21855,21856,21858,21859,21864,21865,21867,21871,21872,21873,21874,21875,21876,21881,21882,21885,21887,21893,21894,21900,21901,21902,21904,21906,21907,21909,21910,21911,21914,21915,21918,21920,21921,21922,21923,21924,21925,21926,21928,21929,21930,21931,21932,21933,21934,21935,21936,21938,21940,21942,21944,21946,21948,21951,21952,21953,21954,21955,21958,21959,21960,21962,21963,21966,21967,21968,21973,21975,21976,21977,21978,21979,21982,21984,21986,21991,21993,21997,21998,22e3,22001,22004,22006,22008,22009,22010,22011,22012,22015,22018,22019,22020,22021,22022,22023,22026,22027,22029,22032,22033,22034,22035,22036,22037,22038,22039,22041,22042,22044,22045,22048,22049,22050,22053,22054,22056,22057,22058,22059,22062,22063,22064,22067,22069,22071,22072,22074,22076,22077,22078,22080,22081,22082,22083,22084,22085,22086,22087,22088,22089,22090,22091,22095,22096,22097,22098,22099,22101,22102,22106,22107,22109,22110,22111,22112,22113,22115,22117,22118,22119,22125,22126,22127,22128,22130,22131,22132,22133,22135,22136,22137,22138,22141,22142,22143,22144,22145,22146,22147,22148,22151,22152,22153,22154,22155,22156,22157,22160,22161,22162,22164,22165,22166,22167,22168,22169,22170,22171,22172,22173,22174,22175,22176,22177,22178,22180,22181,22182,22183,22184,22185,22186,22187,22188,22189,22190,22192,22193,22194,22195,22196,22197,22198,22200,22201,22202,22203,22205,22206,22207,22208,22209,22210,22211,22212,22213,22214,22215,22216,22217,22219,22220,22221,22222,22223,22224,22225,22226,22227,22229,22230,22232,22233,22236,22243,22245,22246,22247,22248,22249,22250,22252,22254,22255,22258,22259,22262,22263,22264,22267,22268,22272,22273,22274,22277,22279,22283,22284,22285,22286,22287,22288,22289,22290,22291,22292,22293,22294,22295,22296,22297,22298,22299,22301,22302,22304,22305,22306,22308,22309,22310,22311,22315,22321,22322,22324,22325,22326,22327,22328,22332,22333,22335,22337,22339,22340,22341,22342,22344,22345,22347,22354,22355,22356,22357,22358,22360,22361,22370,22371,22373,22375,22380,22382,22384,22385,22386,22388,22389,22392,22393,22394,22397,22398,22399,22400,22401,22407,22408,22409,22410,22413,22414,22415,22416,22417,22420,22421,22422,22423,22424,22425,22426,22428,22429,22430,22431,22437,22440,22442,22444,22447,22448,22449,22451,22453,22454,22455,22457,22458,22459,22460,22461,22462,22463,22464,22465,22468,22469,22470,22471,22472,22473,22474,22476,22477,22480,22481,22483,22486,22487,22491,22492,22494,22497,22498,22499,22501,22502,22503,22504,22505,22506,22507,22508,22510,22512,22513,22514,22515,22517,22518,22519,22523,22524,22526,22527,22529,22531,22532,22533,22536,22537,22538,22540,22542,22543,22544,22546,22547,22548,22550,22551,22552,22554,22555,22556,22557,22559,22562,22563,22565,22566,22567,22568,22569,22571,22572,22573,22574,22575,22577,22578,22579,22580,22582,22583,22584,22585,22586,22587,22588,22589,22590,22591,22592,22593,22594,22595,22597,22598,22599,22600,22601,22602,22603,22606,22607,22608,22610,22611,22613,22614,22615,22617,22618,22619,22620,22621,22623,22624,22625,22626,22627,22628,22630,22631,22632,22633,22634,22637,22638,22639,22640,22641,22642,22643,22644,22645,22646,22647,22648,22649,22650,22651,22652,22653,22655,22658,22660,22662,22663,22664,22666,22667,22668,22669,22670,22671,22672,22673,22676,22677,22678,22679,22680,22683,22684,22685,22688,22689,22690,22691,22692,22693,22694,22695,22698,22699,22700,22701,22702,22703,22704,22705,22706,22707,22708,22709,22710,22711,22712,22713,22714,22715,22717,22718,22719,22720,22722,22723,22724,22726,22727,22728,22729,22730,22731,22732,22733,22734,22735,22736,22738,22739,22740,22742,22743,22744,22745,22746,22747,22748,22749,22750,22751,22752,22753,22754,22755,22757,22758,22759,22760,22761,22762,22765,22767,22769,22770,22772,22773,22775,22776,22778,22779,22780,22781,22782,22783,22784,22785,22787,22789,22790,22792,22793,22794,22795,22796,22798,22800,22801,22802,22803,22807,22808,22811,22813,22814,22816,22817,22818,22819,22822,22824,22828,22832,22834,22835,22837,22838,22843,22845,22846,22847,22848,22851,22853,22854,22858,22860,22861,22864,22866,22867,22873,22875,22876,22877,22878,22879,22881,22883,22884,22886,22887,22888,22889,22890,22891,22892,22893,22894,22895,22896,22897,22898,22901,22903,22906,22907,22908,22910,22911,22912,22917,22921,22923,22924,22926,22927,22928,22929,22932,22933,22936,22938,22939,22940,22941,22943,22944,22945,22946,22950,22951,22956,22957,22960,22961,22963,22964,22965,22966,22967,22968,22970,22972,22973,22975,22976,22977,22978,22979,22980,22981,22983,22984,22985,22988,22989,22990,22991,22997,22998,23001,23003,23006,23007,23008,23009,23010,23012,23014,23015,23017,23018,23019,23021,23022,23023,23024,23025,23026,23027,23028,23029,23030,23031,23032,23034,23036,23037,23038,23040,23042,23050,23051,23053,23054,23055,23056,23058,23060,23061,23062,23063,23065,23066,23067,23069,23070,23073,23074,23076,23078,23079,23080,23082,23083,23084,23085,23086,23087,23088,23091,23093,23095,23096,23097,23098,23099,23101,23102,23103,23105,23106,23107,23108,23109,23111,23112,23115,23116,23117,23118,23119,23120,23121,23122,23123,23124,23126,23127,23128,23129,23131,23132,23133,23134,23135,23136,23137,23139,23140,23141,23142,23144,23145,23147,23148,23149,23150,23151,23152,23153,23154,23155,23160,23161,23163,23164,23165,23166,23168,23169,23170,23171,23172,23173,23174,23175,23176,23177,23178,23179,23180,23181,23182,23183,23184,23185,23187,23188,23189,23190,23191,23192,23193,23196,23197,23198,23199,23200,23201,23202,23203,23204,23205,23206,23207,23208,23209,23211,23212,23213,23214,23215,23216,23217,23220,23222,23223,23225,23226,23227,23228,23229,23231,23232,23235,23236,23237,23238,23239,23240,23242,23243,23245,23246,23247,23248,23249,23251,23253,23255,23257,23258,23259,23261,23262,23263,23266,23268,23269,23271,23272,23274,23276,23277,23278,23279,23280,23282,23283,23284,23285,23286,23287,23288,23289,23290,23291,23292,23293,23294,23295,23296,23297,23298,23299,23300,23301,23302,23303,23304,23306,23307,23308,23309,23310,23311,23312,23313,23314,23315,23316,23317,23320,23321,23322,23323,23324,23325,23326,23327,23328,23329,23330,23331,23332,23333,23334,23335,23336,23337,23338,23339,23340,23341,23342,23343,23344,23345,23347,23349,23350,23352,23353,23354,23355,23356,23357,23358,23359,23361,23362,23363,23364,23365,23366,23367,23368,23369,23370,23371,23372,23373,23374,23375,23378,23382,23390,23392,23393,23399,23400,23403,23405,23406,23407,23410,23412,23414,23415,23416,23417,23419,23420,23422,23423,23426,23430,23434,23437,23438,23440,23441,23442,23444,23446,23455,23463,23464,23465,23468,23469,23470,23471,23473,23474,23479,23482,23483,23484,23488,23489,23491,23496,23497,23498,23499,23501,23502,23503,23505,23508,23509,23510,23511,23512,23513,23514,23515,23516,23520,23522,23523,23526,23527,23529,23530,23531,23532,23533,23535,23537,23538,23539,23540,23541,23542,23543,23549,23550,23552,23554,23555,23557,23559,23560,23563,23564,23565,23566,23568,23570,23571,23575,23577,23579,23582,23583,23584,23585,23587,23590,23592,23593,23594,23595,23597,23598,23599,23600,23602,23603,23605,23606,23607,23619,23620,23622,23623,23628,23629,23634,23635,23636,23638,23639,23640,23642,23643,23644,23645,23647,23650,23652,23655,23656,23657,23658,23659,23660,23661,23664,23666,23667,23668,23669,23670,23671,23672,23675,23676,23677,23678,23680,23683,23684,23685,23686,23687,23689,23690,23691,23694,23695,23698,23699,23701,23709,23710,23711,23712,23713,23716,23717,23718,23719,23720,23722,23726,23727,23728,23730,23732,23734,23737,23738,23739,23740,23742,23744,23746,23747,23749,23750,23751,23752,23753,23754,23756,23757,23758,23759,23760,23761,23763,23764,23765,23766,23767,23768,23770,23771,23772,23773,23774,23775,23776,23778,23779,23783,23785,23787,23788,23790,23791,23793,23794,23795,23796,23797,23798,23799,23800,23801,23802,23804,23805,23806,23807,23808,23809,23812,23813,23816,23817,23818,23819,23820,23821,23823,23824,23825,23826,23827,23829,23831,23832,23833,23834,23836,23837,23839,23840,23841,23842,23843,23845,23848,23850,23851,23852,23855,23856,23857,23858,23859,23861,23862,23863,23864,23865,23866,23867,23868,23871,23872,23873,23874,23875,23876,23877,23878,23880,23881,23885,23886,23887,23888,23889,23890,23891,23892,23893,23894,23895,23897,23898,23900,23902,23903,23904,23905,23906,23907,23908,23909,23910,23911,23912,23914,23917,23918,23920,23921,23922,23923,23925,23926,23927,23928,23929,23930,23931,23932,23933,23934,23935,23936,23937,23939,23940,23941,23942,23943,23944,23945,23946,23947,23948,23949,23950,23951,23952,23953,23954,23955,23956,23957,23958,23959,23960,23962,23963,23964,23966,23967,23968,23969,23970,23971,23972,23973,23974,23975,23976,23977,23978,23979,23980,23981,23982,23983,23984,23985,23986,23987,23988,23989,23990,23992,23993,23994,23995,23996,23997,23998,23999,24e3,24001,24002,24003,24004,24006,24007,24008,24009,24010,24011,24012,24014,24015,24016,24017,24018,24019,24020,24021,24022,24023,24024,24025,24026,24028,24031,24032,24035,24036,24042,24044,24045,24048,24053,24054,24056,24057,24058,24059,24060,24063,24064,24068,24071,24073,24074,24075,24077,24078,24082,24083,24087,24094,24095,24096,24097,24098,24099,24100,24101,24104,24105,24106,24107,24108,24111,24112,24114,24115,24116,24117,24118,24121,24122,24126,24127,24128,24129,24131,24134,24135,24136,24137,24138,24139,24141,24142,24143,24144,24145,24146,24147,24150,24151,24152,24153,24154,24156,24157,24159,24160,24163,24164,24165,24166,24167,24168,24169,24170,24171,24172,24173,24174,24175,24176,24177,24181,24183,24185,24190,24193,24194,24195,24197,24200,24201,24204,24205,24206,24210,24216,24219,24221,24225,24226,24227,24228,24232,24233,24234,24235,24236,24238,24239,24240,24241,24242,24244,24250,24251,24252,24253,24255,24256,24257,24258,24259,24260,24261,24262,24263,24264,24267,24268,24269,24270,24271,24272,24276,24277,24279,24280,24281,24282,24284,24285,24286,24287,24288,24289,24290,24291,24292,24293,24294,24295,24297,24299,24300,24301,24302,24303,24304,24305,24306,24307,24309,24312,24313,24315,24316,24317,24325,24326,24327,24329,24332,24333,24334,24336,24338,24340,24342,24345,24346,24348,24349,24350,24353,24354,24355,24356,24360,24363,24364,24366,24368,24370,24371,24372,24373,24374,24375,24376,24379,24381,24382,24383,24385,24386,24387,24388,24389,24390,24391,24392,24393,24394,24395,24396,24397,24398,24399,24401,24404,24409,24410,24411,24412,24414,24415,24416,24419,24421,24423,24424,24427,24430,24431,24434,24436,24437,24438,24440,24442,24445,24446,24447,24451,24454,24461,24462,24463,24465,24467,24468,24470,24474,24475,24477,24478,24479,24480,24482,24483,24484,24485,24486,24487,24489,24491,24492,24495,24496,24497,24498,24499,24500,24502,24504,24505,24506,24507,24510,24511,24512,24513,24514,24519,24520,24522,24523,24526,24531,24532,24533,24538,24539,24540,24542,24543,24546,24547,24549,24550,24552,24553,24556,24559,24560,24562,24563,24564,24566,24567,24569,24570,24572,24583,24584,24585,24587,24588,24592,24593,24595,24599,24600,24602,24606,24607,24610,24611,24612,24620,24621,24622,24624,24625,24626,24627,24628,24630,24631,24632,24633,24634,24637,24638,24640,24644,24645,24646,24647,24648,24649,24650,24652,24654,24655,24657,24659,24660,24662,24663,24664,24667,24668,24670,24671,24672,24673,24677,24678,24686,24689,24690,24692,24693,24695,24702,24704,24705,24706,24709,24710,24711,24712,24714,24715,24718,24719,24720,24721,24723,24725,24727,24728,24729,24732,24734,24737,24738,24740,24741,24743,24745,24746,24750,24752,24755,24757,24758,24759,24761,24762,24765,24766,24767,24768,24769,24770,24771,24772,24775,24776,24777,24780,24781,24782,24783,24784,24786,24787,24788,24790,24791,24793,24795,24798,24801,24802,24803,24804,24805,24810,24817,24818,24821,24823,24824,24827,24828,24829,24830,24831,24834,24835,24836,24837,24839,24842,24843,24844,24848,24849,24850,24851,24852,24854,24855,24856,24857,24859,24860,24861,24862,24865,24866,24869,24872,24873,24874,24876,24877,24878,24879,24880,24881,24882,24883,24884,24885,24886,24887,24888,24889,24890,24891,24892,24893,24894,24896,24897,24898,24899,24900,24901,24902,24903,24905,24907,24909,24911,24912,24914,24915,24916,24918,24919,24920,24921,24922,24923,24924,24926,24927,24928,24929,24931,24932,24933,24934,24937,24938,24939,24940,24941,24942,24943,24945,24946,24947,24948,24950,24952,24953,24954,24955,24956,24957,24958,24959,24960,24961,24962,24963,24964,24965,24966,24967,24968,24969,24970,24972,24973,24975,24976,24977,24978,24979,24981,24982,24983,24984,24985,24986,24987,24988,24990,24991,24992,24993,24994,24995,24996,24997,24998,25002,25003,25005,25006,25007,25008,25009,25010,25011,25012,25013,25014,25016,25017,25018,25019,25020,25021,25023,25024,25025,25027,25028,25029,25030,25031,25033,25036,25037,25038,25039,25040,25043,25045,25046,25047,25048,25049,25050,25051,25052,25053,25054,25055,25056,25057,25058,25059,25060,25061,25063,25064,25065,25066,25067,25068,25069,25070,25071,25072,25073,25074,25075,25076,25078,25079,25080,25081,25082,25083,25084,25085,25086,25088,25089,25090,25091,25092,25093,25095,25097,25107,25108,25113,25116,25117,25118,25120,25123,25126,25127,25128,25129,25131,25133,25135,25136,25137,25138,25141,25142,25144,25145,25146,25147,25148,25154,25156,25157,25158,25162,25167,25168,25173,25174,25175,25177,25178,25180,25181,25182,25183,25184,25185,25186,25188,25189,25192,25201,25202,25204,25205,25207,25208,25210,25211,25213,25217,25218,25219,25221,25222,25223,25224,25227,25228,25229,25230,25231,25232,25236,25241,25244,25245,25246,25251,25254,25255,25257,25258,25261,25262,25263,25264,25266,25267,25268,25270,25271,25272,25274,25278,25280,25281,25283,25291,25295,25297,25301,25309,25310,25312,25313,25316,25322,25323,25328,25330,25333,25336,25337,25338,25339,25344,25347,25348,25349,25350,25354,25355,25356,25357,25359,25360,25362,25363,25364,25365,25367,25368,25369,25372,25382,25383,25385,25388,25389,25390,25392,25393,25395,25396,25397,25398,25399,25400,25403,25404,25406,25407,25408,25409,25412,25415,25416,25418,25425,25426,25427,25428,25430,25431,25432,25433,25434,25435,25436,25437,25440,25444,25445,25446,25448,25450,25451,25452,25455,25456,25458,25459,25460,25461,25464,25465,25468,25469,25470,25471,25473,25475,25476,25477,25478,25483,25485,25489,25491,25492,25493,25495,25497,25498,25499,25500,25501,25502,25503,25505,25508,25510,25515,25519,25521,25522,25525,25526,25529,25531,25533,25535,25536,25537,25538,25539,25541,25543,25544,25546,25547,25548,25553,25555,25556,25557,25559,25560,25561,25562,25563,25564,25565,25567,25570,25572,25573,25574,25575,25576,25579,25580,25582,25583,25584,25585,25587,25589,25591,25593,25594,25595,25596,25598,25603,25604,25606,25607,25608,25609,25610,25613,25614,25617,25618,25621,25622,25623,25624,25625,25626,25629,25631,25634,25635,25636,25637,25639,25640,25641,25643,25646,25647,25648,25649,25650,25651,25653,25654,25655,25656,25657,25659,25660,25662,25664,25666,25667,25673,25675,25676,25677,25678,25679,25680,25681,25683,25685,25686,25687,25689,25690,25691,25692,25693,25695,25696,25697,25698,25699,25700,25701,25702,25704,25706,25707,25708,25710,25711,25712,25713,25714,25715,25716,25717,25718,25719,25723,25724,25725,25726,25727,25728,25729,25731,25734,25736,25737,25738,25739,25740,25741,25742,25743,25744,25747,25748,25751,25752,25754,25755,25756,25757,25759,25760,25761,25762,25763,25765,25766,25767,25768,25770,25771,25775,25777,25778,25779,25780,25782,25785,25787,25789,25790,25791,25793,25795,25796,25798,25799,25800,25801,25802,25803,25804,25807,25809,25811,25812,25813,25814,25817,25818,25819,25820,25821,25823,25824,25825,25827,25829,25831,25832,25833,25834,25835,25836,25837,25838,25839,25840,25841,25842,25843,25844,25845,25846,25847,25848,25849,25850,25851,25852,25853,25854,25855,25857,25858,25859,25860,25861,25862,25863,25864,25866,25867,25868,25869,25870,25871,25872,25873,25875,25876,25877,25878,25879,25881,25882,25883,25884,25885,25886,25887,25888,25889,25890,25891,25892,25894,25895,25896,25897,25898,25900,25901,25904,25905,25906,25907,25911,25914,25916,25917,25920,25921,25922,25923,25924,25926,25927,25930,25931,25933,25934,25936,25938,25939,25940,25943,25944,25946,25948,25951,25952,25953,25956,25957,25959,25960,25961,25962,25965,25966,25967,25969,25971,25973,25974,25976,25977,25978,25979,25980,25981,25982,25983,25984,25985,25986,25987,25988,25989,25990,25992,25993,25994,25997,25998,25999,26002,26004,26005,26006,26008,26010,26013,26014,26016,26018,26019,26022,26024,26026,26028,26030,26033,26034,26035,26036,26037,26038,26039,26040,26042,26043,26046,26047,26048,26050,26055,26056,26057,26058,26061,26064,26065,26067,26068,26069,26072,26073,26074,26075,26076,26077,26078,26079,26081,26083,26084,26090,26091,26098,26099,26100,26101,26104,26105,26107,26108,26109,26110,26111,26113,26116,26117,26119,26120,26121,26123,26125,26128,26129,26130,26134,26135,26136,26138,26139,26140,26142,26145,26146,26147,26148,26150,26153,26154,26155,26156,26158,26160,26162,26163,26167,26168,26169,26170,26171,26173,26175,26176,26178,26180,26181,26182,26183,26184,26185,26186,26189,26190,26192,26193,26200,26201,26203,26204,26205,26206,26208,26210,26211,26213,26215,26217,26218,26219,26220,26221,26225,26226,26227,26229,26232,26233,26235,26236,26237,26239,26240,26241,26243,26245,26246,26248,26249,26250,26251,26253,26254,26255,26256,26258,26259,26260,26261,26264,26265,26266,26267,26268,26270,26271,26272,26273,26274,26275,26276,26277,26278,26281,26282,26283,26284,26285,26287,26288,26289,26290,26291,26293,26294,26295,26296,26298,26299,26300,26301,26303,26304,26305,26306,26307,26308,26309,26310,26311,26312,26313,26314,26315,26316,26317,26318,26319,26320,26321,26322,26323,26324,26325,26326,26327,26328,26330,26334,26335,26336,26337,26338,26339,26340,26341,26343,26344,26346,26347,26348,26349,26350,26351,26353,26357,26358,26360,26362,26363,26365,26369,26370,26371,26372,26373,26374,26375,26380,26382,26383,26385,26386,26387,26390,26392,26393,26394,26396,26398,26400,26401,26402,26403,26404,26405,26407,26409,26414,26416,26418,26419,26422,26423,26424,26425,26427,26428,26430,26431,26433,26436,26437,26439,26442,26443,26445,26450,26452,26453,26455,26456,26457,26458,26459,26461,26466,26467,26468,26470,26471,26475,26476,26478,26481,26484,26486,26488,26489,26490,26491,26493,26496,26498,26499,26501,26502,26504,26506,26508,26509,26510,26511,26513,26514,26515,26516,26518,26521,26523,26527,26528,26529,26532,26534,26537,26540,26542,26545,26546,26548,26553,26554,26555,26556,26557,26558,26559,26560,26562,26565,26566,26567,26568,26569,26570,26571,26572,26573,26574,26581,26582,26583,26587,26591,26593,26595,26596,26598,26599,26600,26602,26603,26605,26606,26610,26613,26614,26615,26616,26617,26618,26619,26620,26622,26625,26626,26627,26628,26630,26637,26640,26642,26644,26645,26648,26649,26650,26651,26652,26654,26655,26656,26658,26659,26660,26661,26662,26663,26664,26667,26668,26669,26670,26671,26672,26673,26676,26677,26678,26682,26683,26687,26695,26699,26701,26703,26706,26710,26711,26712,26713,26714,26715,26716,26717,26718,26719,26730,26732,26733,26734,26735,26736,26737,26738,26739,26741,26744,26745,26746,26747,26748,26749,26750,26751,26752,26754,26756,26759,26760,26761,26762,26763,26764,26765,26766,26768,26769,26770,26772,26773,26774,26776,26777,26778,26779,26780,26781,26782,26783,26784,26785,26787,26788,26789,26793,26794,26795,26796,26798,26801,26802,26804,26806,26807,26808,26809,26810,26811,26812,26813,26814,26815,26817,26819,26820,26821,26822,26823,26824,26826,26828,26830,26831,26832,26833,26835,26836,26838,26839,26841,26843,26844,26845,26846,26847,26849,26850,26852,26853,26854,26855,26856,26857,26858,26859,26860,26861,26863,26866,26867,26868,26870,26871,26872,26875,26877,26878,26879,26880,26882,26883,26884,26886,26887,26888,26889,26890,26892,26895,26897,26899,26900,26901,26902,26903,26904,26905,26906,26907,26908,26909,26910,26913,26914,26915,26917,26918,26919,26920,26921,26922,26923,26924,26926,26927,26929,26930,26931,26933,26934,26935,26936,26938,26939,26940,26942,26944,26945,26947,26948,26949,26950,26951,26952,26953,26954,26955,26956,26957,26958,26959,26960,26961,26962,26963,26965,26966,26968,26969,26971,26972,26975,26977,26978,26980,26981,26983,26984,26985,26986,26988,26989,26991,26992,26994,26995,26996,26997,26998,27002,27003,27005,27006,27007,27009,27011,27013,27018,27019,27020,27022,27023,27024,27025,27026,27027,27030,27031,27033,27034,27037,27038,27039,27040,27041,27042,27043,27044,27045,27046,27049,27050,27052,27054,27055,27056,27058,27059,27061,27062,27064,27065,27066,27068,27069,27070,27071,27072,27074,27075,27076,27077,27078,27079,27080,27081,27083,27085,27087,27089,27090,27091,27093,27094,27095,27096,27097,27098,27100,27101,27102,27105,27106,27107,27108,27109,27110,27111,27112,27113,27114,27115,27116,27118,27119,27120,27121,27123,27124,27125,27126,27127,27128,27129,27130,27131,27132,27134,27136,27137,27138,27139,27140,27141,27142,27143,27144,27145,27147,27148,27149,27150,27151,27152,27153,27154,27155,27156,27157,27158,27161,27162,27163,27164,27165,27166,27168,27170,27171,27172,27173,27174,27175,27177,27179,27180,27181,27182,27184,27186,27187,27188,27190,27191,27192,27193,27194,27195,27196,27199,27200,27201,27202,27203,27205,27206,27208,27209,27210,27211,27212,27213,27214,27215,27217,27218,27219,27220,27221,27222,27223,27226,27228,27229,27230,27231,27232,27234,27235,27236,27238,27239,27240,27241,27242,27243,27244,27245,27246,27247,27248,27250,27251,27252,27253,27254,27255,27256,27258,27259,27261,27262,27263,27265,27266,27267,27269,27270,27271,27272,27273,27274,27275,27276,27277,27279,27282,27283,27284,27285,27286,27288,27289,27290,27291,27292,27293,27294,27295,27297,27298,27299,27300,27301,27302,27303,27304,27306,27309,27310,27311,27312,27313,27314,27315,27316,27317,27318,27319,27320,27321,27322,27323,27324,27325,27326,27327,27328,27329,27330,27331,27332,27333,27334,27335,27336,27337,27338,27339,27340,27341,27342,27343,27344,27345,27346,27347,27348,27349,27350,27351,27352,27353,27354,27355,27356,27357,27358,27359,27360,27361,27362,27363,27364,27365,27366,27367,27368,27369,27370,27371,27372,27373,27374,27375,27376,27377,27378,27379,27380,27381,27382,27383,27384,27385,27386,27387,27388,27389,27390,27391,27392,27393,27394,27395,27396,27397,27398,27399,27400,27401,27402,27403,27404,27405,27406,27407,27408,27409,27410,27411,27412,27413,27414,27415,27416,27417,27418,27419,27420,27421,27422,27423,27429,27430,27432,27433,27434,27435,27436,27437,27438,27439,27440,27441,27443,27444,27445,27446,27448,27451,27452,27453,27455,27456,27457,27458,27460,27461,27464,27466,27467,27469,27470,27471,27472,27473,27474,27475,27476,27477,27478,27479,27480,27482,27483,27484,27485,27486,27487,27488,27489,27496,27497,27499,27500,27501,27502,27503,27504,27505,27506,27507,27508,27509,27510,27511,27512,27514,27517,27518,27519,27520,27525,27528,27532,27534,27535,27536,27537,27540,27541,27543,27544,27545,27548,27549,27550,27551,27552,27554,27555,27556,27557,27558,27559,27560,27561,27563,27564,27565,27566,27567,27568,27569,27570,27574,27576,27577,27578,27579,27580,27581,27582,27584,27587,27588,27590,27591,27592,27593,27594,27596,27598,27600,27601,27608,27610,27612,27613,27614,27615,27616,27618,27619,27620,27621,27622,27623,27624,27625,27628,27629,27630,27632,27633,27634,27636,27638,27639,27640,27642,27643,27644,27646,27647,27648,27649,27650,27651,27652,27656,27657,27658,27659,27660,27662,27666,27671,27676,27677,27678,27680,27683,27685,27691,27692,27693,27697,27699,27702,27703,27705,27706,27707,27708,27710,27711,27715,27716,27717,27720,27723,27724,27725,27726,27727,27729,27730,27731,27734,27736,27737,27738,27746,27747,27749,27750,27751,27755,27756,27757,27758,27759,27761,27763,27765,27767,27768,27770,27771,27772,27775,27776,27780,27783,27786,27787,27789,27790,27793,27794,27797,27798,27799,27800,27802,27804,27805,27806,27808,27810,27816,27820,27823,27824,27828,27829,27830,27831,27834,27840,27841,27842,27843,27846,27847,27848,27851,27853,27854,27855,27857,27858,27864,27865,27866,27868,27869,27871,27876,27878,27879,27881,27884,27885,27890,27892,27897,27903,27904,27906,27907,27909,27910,27912,27913,27914,27917,27919,27920,27921,27923,27924,27925,27926,27928,27932,27933,27935,27936,27937,27938,27939,27940,27942,27944,27945,27948,27949,27951,27952,27956,27958,27959,27960,27962,27967,27968,27970,27972,27977,27980,27984,27989,27990,27991,27992,27995,27997,27999,28001,28002,28004,28005,28007,28008,28011,28012,28013,28016,28017,28018,28019,28021,28022,28025,28026,28027,28029,28030,28031,28032,28033,28035,28036,28038,28039,28042,28043,28045,28047,28048,28050,28054,28055,28056,28057,28058,28060,28066,28069,28076,28077,28080,28081,28083,28084,28086,28087,28089,28090,28091,28092,28093,28094,28097,28098,28099,28104,28105,28106,28109,28110,28111,28112,28114,28115,28116,28117,28119,28122,28123,28124,28127,28130,28131,28133,28135,28136,28137,28138,28141,28143,28144,28146,28148,28149,28150,28152,28154,28157,28158,28159,28160,28161,28162,28163,28164,28166,28167,28168,28169,28171,28175,28178,28179,28181,28184,28185,28187,28188,28190,28191,28194,28198,28199,28200,28202,28204,28206,28208,28209,28211,28213,28214,28215,28217,28219,28220,28221,28222,28223,28224,28225,28226,28229,28230,28231,28232,28233,28234,28235,28236,28239,28240,28241,28242,28245,28247,28249,28250,28252,28253,28254,28256,28257,28258,28259,28260,28261,28262,28263,28264,28265,28266,28268,28269,28271,28272,28273,28274,28275,28276,28277,28278,28279,28280,28281,28282,28283,28284,28285,28288,28289,28290,28292,28295,28296,28298,28299,28300,28301,28302,28305,28306,28307,28308,28309,28310,28311,28313,28314,28315,28317,28318,28320,28321,28323,28324,28326,28328,28329,28331,28332,28333,28334,28336,28339,28341,28344,28345,28348,28350,28351,28352,28355,28356,28357,28358,28360,28361,28362,28364,28365,28366,28368,28370,28374,28376,28377,28379,28380,28381,28387,28391,28394,28395,28396,28397,28398,28399,28400,28401,28402,28403,28405,28406,28407,28408,28410,28411,28412,28413,28414,28415,28416,28417,28419,28420,28421,28423,28424,28426,28427,28428,28429,28430,28432,28433,28434,28438,28439,28440,28441,28442,28443,28444,28445,28446,28447,28449,28450,28451,28453,28454,28455,28456,28460,28462,28464,28466,28468,28469,28471,28472,28473,28474,28475,28476,28477,28479,28480,28481,28482,28483,28484,28485,28488,28489,28490,28492,28494,28495,28496,28497,28498,28499,28500,28501,28502,28503,28505,28506,28507,28509,28511,28512,28513,28515,28516,28517,28519,28520,28521,28522,28523,28524,28527,28528,28529,28531,28533,28534,28535,28537,28539,28541,28542,28543,28544,28545,28546,28547,28549,28550,28551,28554,28555,28559,28560,28561,28562,28563,28564,28565,28566,28567,28568,28569,28570,28571,28573,28574,28575,28576,28578,28579,28580,28581,28582,28584,28585,28586,28587,28588,28589,28590,28591,28592,28593,28594,28596,28597,28599,28600,28602,28603,28604,28605,28606,28607,28609,28611,28612,28613,28614,28615,28616,28618,28619,28620,28621,28622,28623,28624,28627,28628,28629,28630,28631,28632,28633,28634,28635,28636,28637,28639,28642,28643,28644,28645,28646,28647,28648,28649,28650,28651,28652,28653,28656,28657,28658,28659,28660,28661,28662,28663,28664,28665,28666,28667,28668,28669,28670,28671,28672,28673,28674,28675,28676,28677,28678,28679,28680,28681,28682,28683,28684,28685,28686,28687,28688,28690,28691,28692,28693,28694,28695,28696,28697,28700,28701,28702,28703,28704,28705,28706,28708,28709,28710,28711,28712,28713,28714,28715,28716,28717,28718,28719,28720,28721,28722,28723,28724,28726,28727,28728,28730,28731,28732,28733,28734,28735,28736,28737,28738,28739,28740,28741,28742,28743,28744,28745,28746,28747,28749,28750,28752,28753,28754,28755,28756,28757,28758,28759,28760,28761,28762,28763,28764,28765,28767,28768,28769,28770,28771,28772,28773,28774,28775,28776,28777,28778,28782,28785,28786,28787,28788,28791,28793,28794,28795,28797,28801,28802,28803,28804,28806,28807,28808,28811,28812,28813,28815,28816,28817,28819,28823,28824,28826,28827,28830,28831,28832,28833,28834,28835,28836,28837,28838,28839,28840,28841,28842,28848,28850,28852,28853,28854,28858,28862,28863,28868,28869,28870,28871,28873,28875,28876,28877,28878,28879,28880,28881,28882,28883,28884,28885,28886,28887,28890,28892,28893,28894,28896,28897,28898,28899,28901,28906,28910,28912,28913,28914,28915,28916,28917,28918,28920,28922,28923,28924,28926,28927,28928,28929,28930,28931,28932,28933,28934,28935,28936,28939,28940,28941,28942,28943,28945,28946,28948,28951,28955,28956,28957,28958,28959,28960,28961,28962,28963,28964,28965,28967,28968,28969,28970,28971,28972,28973,28974,28978,28979,28980,28981,28983,28984,28985,28986,28987,28988,28989,28990,28991,28992,28993,28994,28995,28996,28998,28999,29e3,29001,29003,29005,29007,29008,29009,29010,29011,29012,29013,29014,29015,29016,29017,29018,29019,29021,29023,29024,29025,29026,29027,29029,29033,29034,29035,29036,29037,29039,29040,29041,29044,29045,29046,29047,29049,29051,29052,29054,29055,29056,29057,29058,29059,29061,29062,29063,29064,29065,29067,29068,29069,29070,29072,29073,29074,29075,29077,29078,29079,29082,29083,29084,29085,29086,29089,29090,29091,29092,29093,29094,29095,29097,29098,29099,29101,29102,29103,29104,29105,29106,29108,29110,29111,29112,29114,29115,29116,29117,29118,29119,29120,29121,29122,29124,29125,29126,29127,29128,29129,29130,29131,29132,29133,29135,29136,29137,29138,29139,29142,29143,29144,29145,29146,29147,29148,29149,29150,29151,29153,29154,29155,29156,29158,29160,29161,29162,29163,29164,29165,29167,29168,29169,29170,29171,29172,29173,29174,29175,29176,29178,29179,29180,29181,29182,29183,29184,29185,29186,29187,29188,29189,29191,29192,29193,29194,29195,29196,29197,29198,29199,29200,29201,29202,29203,29204,29205,29206,29207,29208,29209,29210,29211,29212,29214,29215,29216,29217,29218,29219,29220,29221,29222,29223,29225,29227,29229,29230,29231,29234,29235,29236,29242,29244,29246,29248,29249,29250,29251,29252,29253,29254,29257,29258,29259,29262,29263,29264,29265,29267,29268,29269,29271,29272,29274,29276,29278,29280,29283,29284,29285,29288,29290,29291,29292,29293,29296,29297,29299,29300,29302,29303,29304,29307,29308,29309,29314,29315,29317,29318,29319,29320,29321,29324,29326,29328,29329,29331,29332,29333,29334,29335,29336,29337,29338,29339,29340,29341,29342,29344,29345,29346,29347,29348,29349,29350,29351,29352,29353,29354,29355,29358,29361,29362,29363,29365,29370,29371,29372,29373,29374,29375,29376,29381,29382,29383,29385,29386,29387,29388,29391,29393,29395,29396,29397,29398,29400,29402,29403,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,12288,12289,12290,183,713,711,168,12291,12293,8212,65374,8214,8230,8216,8217,8220,8221,12308,12309,12296,12297,12298,12299,12300,12301,12302,12303,12310,12311,12304,12305,177,215,247,8758,8743,8744,8721,8719,8746,8745,8712,8759,8730,8869,8741,8736,8978,8857,8747,8750,8801,8780,8776,8765,8733,8800,8814,8815,8804,8805,8734,8757,8756,9794,9792,176,8242,8243,8451,65284,164,65504,65505,8240,167,8470,9734,9733,9675,9679,9678,9671,9670,9633,9632,9651,9650,8251,8594,8592,8593,8595,12307,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,null,null,null,null,null,null,9352,9353,9354,9355,9356,9357,9358,9359,9360,9361,9362,9363,9364,9365,9366,9367,9368,9369,9370,9371,9332,9333,9334,9335,9336,9337,9338,9339,9340,9341,9342,9343,9344,9345,9346,9347,9348,9349,9350,9351,9312,9313,9314,9315,9316,9317,9318,9319,9320,9321,8364,null,12832,12833,12834,12835,12836,12837,12838,12839,12840,12841,null,null,8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,8554,8555,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,12288,65281,65282,65283,65509,65285,65286,65287,65288,65289,65290,65291,65292,65293,65294,65295,65296,65297,65298,65299,65300,65301,65302,65303,65304,65305,65306,65307,65308,65309,65310,65311,65312,65313,65314,65315,65316,65317,65318,65319,65320,65321,65322,65323,65324,65325,65326,65327,65328,65329,65330,65331,65332,65333,65334,65335,65336,65337,65338,65339,65340,65341,65342,65343,65344,65345,65346,65347,65348,65349,65350,65351,65352,65353,65354,65355,65356,65357,65358,65359,65360,65361,65362,65363,65364,65365,65366,65367,65368,65369,65370,65371,65372,65373,65507,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,12353,12354,12355,12356,12357,12358,12359,12360,12361,12362,12363,12364,12365,12366,12367,12368,12369,12370,12371,12372,12373,12374,12375,12376,12377,12378,12379,12380,12381,12382,12383,12384,12385,12386,12387,12388,12389,12390,12391,12392,12393,12394,12395,12396,12397,12398,12399,12400,12401,12402,12403,12404,12405,12406,12407,12408,12409,12410,12411,12412,12413,12414,12415,12416,12417,12418,12419,12420,12421,12422,12423,12424,12425,12426,12427,12428,12429,12430,12431,12432,12433,12434,12435,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,12449,12450,12451,12452,12453,12454,12455,12456,12457,12458,12459,12460,12461,12462,12463,12464,12465,12466,12467,12468,12469,12470,12471,12472,12473,12474,12475,12476,12477,12478,12479,12480,12481,12482,12483,12484,12485,12486,12487,12488,12489,12490,12491,12492,12493,12494,12495,12496,12497,12498,12499,12500,12501,12502,12503,12504,12505,12506,12507,12508,12509,12510,12511,12512,12513,12514,12515,12516,12517,12518,12519,12520,12521,12522,12523,12524,12525,12526,12527,12528,12529,12530,12531,12532,12533,12534,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,null,null,null,null,null,null,null,null,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,963,964,965,966,967,968,969,null,null,null,null,null,null,null,65077,65078,65081,65082,65087,65088,65085,65086,65089,65090,65091,65092,null,null,65083,65084,65079,65080,65073,null,65075,65076,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,1040,1041,1042,1043,1044,1045,1025,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,1072,1073,1074,1075,1076,1077,1105,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,null,null,null,null,null,null,null,null,null,null,null,null,null,714,715,729,8211,8213,8229,8245,8453,8457,8598,8599,8600,8601,8725,8735,8739,8786,8806,8807,8895,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9581,9582,9583,9584,9585,9586,9587,9601,9602,9603,9604,9605,9606,9607,9608,9609,9610,9611,9612,9613,9614,9615,9619,9620,9621,9660,9661,9698,9699,9700,9701,9737,8853,12306,12317,12318,null,null,null,null,null,null,null,null,null,null,null,257,225,462,224,275,233,283,232,299,237,464,236,333,243,466,242,363,250,468,249,470,472,474,476,252,234,593,null,324,328,505,609,null,null,null,null,12549,12550,12551,12552,12553,12554,12555,12556,12557,12558,12559,12560,12561,12562,12563,12564,12565,12566,12567,12568,12569,12570,12571,12572,12573,12574,12575,12576,12577,12578,12579,12580,12581,12582,12583,12584,12585,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,12321,12322,12323,12324,12325,12326,12327,12328,12329,12963,13198,13199,13212,13213,13214,13217,13252,13262,13265,13266,13269,65072,65506,65508,null,8481,12849,null,8208,null,null,null,12540,12443,12444,12541,12542,12294,12445,12446,65097,65098,65099,65100,65101,65102,65103,65104,65105,65106,65108,65109,65110,65111,65113,65114,65115,65116,65117,65118,65119,65120,65121,65122,65123,65124,65125,65126,65128,65129,65130,65131,12350,12272,12273,12274,12275,12276,12277,12278,12279,12280,12281,12282,12283,12295,null,null,null,null,null,null,null,null,null,null,null,null,null,9472,9473,9474,9475,9476,9477,9478,9479,9480,9481,9482,9483,9484,9485,9486,9487,9488,9489,9490,9491,9492,9493,9494,9495,9496,9497,9498,9499,9500,9501,9502,9503,9504,9505,9506,9507,9508,9509,9510,9511,9512,9513,9514,9515,9516,9517,9518,9519,9520,9521,9522,9523,9524,9525,9526,9527,9528,9529,9530,9531,9532,9533,9534,9535,9536,9537,9538,9539,9540,9541,9542,9543,9544,9545,9546,9547,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,29404,29405,29407,29410,29411,29412,29413,29414,29415,29418,29419,29429,29430,29433,29437,29438,29439,29440,29442,29444,29445,29446,29447,29448,29449,29451,29452,29453,29455,29456,29457,29458,29460,29464,29465,29466,29471,29472,29475,29476,29478,29479,29480,29485,29487,29488,29490,29491,29493,29494,29498,29499,29500,29501,29504,29505,29506,29507,29508,29509,29510,29511,29512,29513,29514,29515,29516,29518,29519,29521,29523,29524,29525,29526,29528,29529,29530,29531,29532,29533,29534,29535,29537,29538,29539,29540,29541,29542,29543,29544,29545,29546,29547,29550,29552,29553,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,29554,29555,29556,29557,29558,29559,29560,29561,29562,29563,29564,29565,29567,29568,29569,29570,29571,29573,29574,29576,29578,29580,29581,29583,29584,29586,29587,29588,29589,29591,29592,29593,29594,29596,29597,29598,29600,29601,29603,29604,29605,29606,29607,29608,29610,29612,29613,29617,29620,29621,29622,29624,29625,29628,29629,29630,29631,29633,29635,29636,29637,29638,29639,29643,29644,29646,29650,29651,29652,29653,29654,29655,29656,29658,29659,29660,29661,29663,29665,29666,29667,29668,29670,29672,29674,29675,29676,29678,29679,29680,29681,29683,29684,29685,29686,29687,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,29688,29689,29690,29691,29692,29693,29694,29695,29696,29697,29698,29700,29703,29704,29707,29708,29709,29710,29713,29714,29715,29716,29717,29718,29719,29720,29721,29724,29725,29726,29727,29728,29729,29731,29732,29735,29737,29739,29741,29743,29745,29746,29751,29752,29753,29754,29755,29757,29758,29759,29760,29762,29763,29764,29765,29766,29767,29768,29769,29770,29771,29772,29773,29774,29775,29776,29777,29778,29779,29780,29782,29784,29789,29792,29793,29794,29795,29796,29797,29798,29799,29800,29801,29802,29803,29804,29806,29807,29809,29810,29811,29812,29813,29816,29817,29818,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,29819,29820,29821,29823,29826,29828,29829,29830,29832,29833,29834,29836,29837,29839,29841,29842,29843,29844,29845,29846,29847,29848,29849,29850,29851,29853,29855,29856,29857,29858,29859,29860,29861,29862,29866,29867,29868,29869,29870,29871,29872,29873,29874,29875,29876,29877,29878,29879,29880,29881,29883,29884,29885,29886,29887,29888,29889,29890,29891,29892,29893,29894,29895,29896,29897,29898,29899,29900,29901,29902,29903,29904,29905,29907,29908,29909,29910,29911,29912,29913,29914,29915,29917,29919,29921,29925,29927,29928,29929,29930,29931,29932,29933,29936,29937,29938,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,29939,29941,29944,29945,29946,29947,29948,29949,29950,29952,29953,29954,29955,29957,29958,29959,29960,29961,29962,29963,29964,29966,29968,29970,29972,29973,29974,29975,29979,29981,29982,29984,29985,29986,29987,29988,29990,29991,29994,29998,30004,30006,30009,30012,30013,30015,30017,30018,30019,30020,30022,30023,30025,30026,30029,30032,30033,30034,30035,30037,30038,30039,30040,30045,30046,30047,30048,30049,30050,30051,30052,30055,30056,30057,30059,30060,30061,30062,30063,30064,30065,30067,30069,30070,30071,30074,30075,30076,30077,30078,30080,30081,30082,30084,30085,30087,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,30088,30089,30090,30092,30093,30094,30096,30099,30101,30104,30107,30108,30110,30114,30118,30119,30120,30121,30122,30125,30134,30135,30138,30139,30143,30144,30145,30150,30155,30156,30158,30159,30160,30161,30163,30167,30169,30170,30172,30173,30175,30176,30177,30181,30185,30188,30189,30190,30191,30194,30195,30197,30198,30199,30200,30202,30203,30205,30206,30210,30212,30214,30215,30216,30217,30219,30221,30222,30223,30225,30226,30227,30228,30230,30234,30236,30237,30238,30241,30243,30247,30248,30252,30254,30255,30257,30258,30262,30263,30265,30266,30267,30269,30273,30274,30276,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,30277,30278,30279,30280,30281,30282,30283,30286,30287,30288,30289,30290,30291,30293,30295,30296,30297,30298,30299,30301,30303,30304,30305,30306,30308,30309,30310,30311,30312,30313,30314,30316,30317,30318,30320,30321,30322,30323,30324,30325,30326,30327,30329,30330,30332,30335,30336,30337,30339,30341,30345,30346,30348,30349,30351,30352,30354,30356,30357,30359,30360,30362,30363,30364,30365,30366,30367,30368,30369,30370,30371,30373,30374,30375,30376,30377,30378,30379,30380,30381,30383,30384,30387,30389,30390,30391,30392,30393,30394,30395,30396,30397,30398,30400,30401,30403,21834,38463,22467,25384,21710,21769,21696,30353,30284,34108,30702,33406,30861,29233,38552,38797,27688,23433,20474,25353,26263,23736,33018,26696,32942,26114,30414,20985,25942,29100,32753,34948,20658,22885,25034,28595,33453,25420,25170,21485,21543,31494,20843,30116,24052,25300,36299,38774,25226,32793,22365,38712,32610,29240,30333,26575,30334,25670,20336,36133,25308,31255,26001,29677,25644,25203,33324,39041,26495,29256,25198,25292,20276,29923,21322,21150,32458,37030,24110,26758,27036,33152,32465,26834,30917,34444,38225,20621,35876,33502,32990,21253,35090,21093,30404,30407,30409,30411,30412,30419,30421,30425,30426,30428,30429,30430,30432,30433,30434,30435,30436,30438,30439,30440,30441,30442,30443,30444,30445,30448,30451,30453,30454,30455,30458,30459,30461,30463,30464,30466,30467,30469,30470,30474,30476,30478,30479,30480,30481,30482,30483,30484,30485,30486,30487,30488,30491,30492,30493,30494,30497,30499,30500,30501,30503,30506,30507,30508,30510,30512,30513,30514,30515,30516,30521,30523,30525,30526,30527,30530,30532,30533,30534,30536,30537,30538,30539,30540,30541,30542,30543,30546,30547,30548,30549,30550,30551,30552,30553,30556,34180,38649,20445,22561,39281,23453,25265,25253,26292,35961,40077,29190,26479,30865,24754,21329,21271,36744,32972,36125,38049,20493,29384,22791,24811,28953,34987,22868,33519,26412,31528,23849,32503,29997,27893,36454,36856,36924,40763,27604,37145,31508,24444,30887,34006,34109,27605,27609,27606,24065,24199,30201,38381,25949,24330,24517,36767,22721,33218,36991,38491,38829,36793,32534,36140,25153,20415,21464,21342,36776,36777,36779,36941,26631,24426,33176,34920,40150,24971,21035,30250,24428,25996,28626,28392,23486,25672,20853,20912,26564,19993,31177,39292,28851,30557,30558,30559,30560,30564,30567,30569,30570,30573,30574,30575,30576,30577,30578,30579,30580,30581,30582,30583,30584,30586,30587,30588,30593,30594,30595,30598,30599,30600,30601,30602,30603,30607,30608,30611,30612,30613,30614,30615,30616,30617,30618,30619,30620,30621,30622,30625,30627,30628,30630,30632,30635,30637,30638,30639,30641,30642,30644,30646,30647,30648,30649,30650,30652,30654,30656,30657,30658,30659,30660,30661,30662,30663,30664,30665,30666,30667,30668,30670,30671,30672,30673,30674,30675,30676,30677,30678,30680,30681,30682,30685,30686,30687,30688,30689,30692,30149,24182,29627,33760,25773,25320,38069,27874,21338,21187,25615,38082,31636,20271,24091,33334,33046,33162,28196,27850,39539,25429,21340,21754,34917,22496,19981,24067,27493,31807,37096,24598,25830,29468,35009,26448,25165,36130,30572,36393,37319,24425,33756,34081,39184,21442,34453,27531,24813,24808,28799,33485,33329,20179,27815,34255,25805,31961,27133,26361,33609,21397,31574,20391,20876,27979,23618,36461,25554,21449,33580,33590,26597,30900,25661,23519,23700,24046,35815,25286,26612,35962,25600,25530,34633,39307,35863,32544,38130,20135,38416,39076,26124,29462,30694,30696,30698,30703,30704,30705,30706,30708,30709,30711,30713,30714,30715,30716,30723,30724,30725,30726,30727,30728,30730,30731,30734,30735,30736,30739,30741,30745,30747,30750,30752,30753,30754,30756,30760,30762,30763,30766,30767,30769,30770,30771,30773,30774,30781,30783,30785,30786,30787,30788,30790,30792,30793,30794,30795,30797,30799,30801,30803,30804,30808,30809,30810,30811,30812,30814,30815,30816,30817,30818,30819,30820,30821,30822,30823,30824,30825,30831,30832,30833,30834,30835,30836,30837,30838,30840,30841,30842,30843,30845,30846,30847,30848,30849,30850,30851,22330,23581,24120,38271,20607,32928,21378,25950,30021,21809,20513,36229,25220,38046,26397,22066,28526,24034,21557,28818,36710,25199,25764,25507,24443,28552,37108,33251,36784,23576,26216,24561,27785,38472,36225,34924,25745,31216,22478,27225,25104,21576,20056,31243,24809,28548,35802,25215,36894,39563,31204,21507,30196,25345,21273,27744,36831,24347,39536,32827,40831,20360,23610,36196,32709,26021,28861,20805,20914,34411,23815,23456,25277,37228,30068,36364,31264,24833,31609,20167,32504,30597,19985,33261,21021,20986,27249,21416,36487,38148,38607,28353,38500,26970,30852,30853,30854,30856,30858,30859,30863,30864,30866,30868,30869,30870,30873,30877,30878,30880,30882,30884,30886,30888,30889,30890,30891,30892,30893,30894,30895,30901,30902,30903,30904,30906,30907,30908,30909,30911,30912,30914,30915,30916,30918,30919,30920,30924,30925,30926,30927,30929,30930,30931,30934,30935,30936,30938,30939,30940,30941,30942,30943,30944,30945,30946,30947,30948,30949,30950,30951,30953,30954,30955,30957,30958,30959,30960,30961,30963,30965,30966,30968,30969,30971,30972,30973,30974,30975,30976,30978,30979,30980,30982,30983,30984,30985,30986,30987,30988,30784,20648,30679,25616,35302,22788,25571,24029,31359,26941,20256,33337,21912,20018,30126,31383,24162,24202,38383,21019,21561,28810,25462,38180,22402,26149,26943,37255,21767,28147,32431,34850,25139,32496,30133,33576,30913,38604,36766,24904,29943,35789,27492,21050,36176,27425,32874,33905,22257,21254,20174,19995,20945,31895,37259,31751,20419,36479,31713,31388,25703,23828,20652,33030,30209,31929,28140,32736,26449,23384,23544,30923,25774,25619,25514,25387,38169,25645,36798,31572,30249,25171,22823,21574,27513,20643,25140,24102,27526,20195,36151,34955,24453,36910,30989,30990,30991,30992,30993,30994,30996,30997,30998,30999,31e3,31001,31002,31003,31004,31005,31007,31008,31009,31010,31011,31013,31014,31015,31016,31017,31018,31019,31020,31021,31022,31023,31024,31025,31026,31027,31029,31030,31031,31032,31033,31037,31039,31042,31043,31044,31045,31047,31050,31051,31052,31053,31054,31055,31056,31057,31058,31060,31061,31064,31065,31073,31075,31076,31078,31081,31082,31083,31084,31086,31088,31089,31090,31091,31092,31093,31094,31097,31099,31100,31101,31102,31103,31106,31107,31110,31111,31112,31113,31115,31116,31117,31118,31120,31121,31122,24608,32829,25285,20025,21333,37112,25528,32966,26086,27694,20294,24814,28129,35806,24377,34507,24403,25377,20826,33633,26723,20992,25443,36424,20498,23707,31095,23548,21040,31291,24764,36947,30423,24503,24471,30340,36460,28783,30331,31561,30634,20979,37011,22564,20302,28404,36842,25932,31515,29380,28068,32735,23265,25269,24213,22320,33922,31532,24093,24351,36882,32532,39072,25474,28359,30872,28857,20856,38747,22443,30005,20291,30008,24215,24806,22880,28096,27583,30857,21500,38613,20939,20993,25481,21514,38035,35843,36300,29241,30879,34678,36845,35853,21472,31123,31124,31125,31126,31127,31128,31129,31131,31132,31133,31134,31135,31136,31137,31138,31139,31140,31141,31142,31144,31145,31146,31147,31148,31149,31150,31151,31152,31153,31154,31156,31157,31158,31159,31160,31164,31167,31170,31172,31173,31175,31176,31178,31180,31182,31183,31184,31187,31188,31190,31191,31193,31194,31195,31196,31197,31198,31200,31201,31202,31205,31208,31210,31212,31214,31217,31218,31219,31220,31221,31222,31223,31225,31226,31228,31230,31231,31233,31236,31237,31239,31240,31241,31242,31244,31247,31248,31249,31250,31251,31253,31254,31256,31257,31259,31260,19969,30447,21486,38025,39030,40718,38189,23450,35746,20002,19996,20908,33891,25026,21160,26635,20375,24683,20923,27934,20828,25238,26007,38497,35910,36887,30168,37117,30563,27602,29322,29420,35835,22581,30585,36172,26460,38208,32922,24230,28193,22930,31471,30701,38203,27573,26029,32526,22534,20817,38431,23545,22697,21544,36466,25958,39039,22244,38045,30462,36929,25479,21702,22810,22842,22427,36530,26421,36346,33333,21057,24816,22549,34558,23784,40517,20420,39069,35769,23077,24694,21380,25212,36943,37122,39295,24681,32780,20799,32819,23572,39285,27953,20108,31261,31263,31265,31266,31268,31269,31270,31271,31272,31273,31274,31275,31276,31277,31278,31279,31280,31281,31282,31284,31285,31286,31288,31290,31294,31296,31297,31298,31299,31300,31301,31303,31304,31305,31306,31307,31308,31309,31310,31311,31312,31314,31315,31316,31317,31318,31320,31321,31322,31323,31324,31325,31326,31327,31328,31329,31330,31331,31332,31333,31334,31335,31336,31337,31338,31339,31340,31341,31342,31343,31345,31346,31347,31349,31355,31356,31357,31358,31362,31365,31367,31369,31370,31371,31372,31374,31375,31376,31379,31380,31385,31386,31387,31390,31393,31394,36144,21457,32602,31567,20240,20047,38400,27861,29648,34281,24070,30058,32763,27146,30718,38034,32321,20961,28902,21453,36820,33539,36137,29359,39277,27867,22346,33459,26041,32938,25151,38450,22952,20223,35775,32442,25918,33778,38750,21857,39134,32933,21290,35837,21536,32954,24223,27832,36153,33452,37210,21545,27675,20998,32439,22367,28954,27774,31881,22859,20221,24575,24868,31914,20016,23553,26539,34562,23792,38155,39118,30127,28925,36898,20911,32541,35773,22857,20964,20315,21542,22827,25975,32932,23413,25206,25282,36752,24133,27679,31526,20239,20440,26381,31395,31396,31399,31401,31402,31403,31406,31407,31408,31409,31410,31412,31413,31414,31415,31416,31417,31418,31419,31420,31421,31422,31424,31425,31426,31427,31428,31429,31430,31431,31432,31433,31434,31436,31437,31438,31439,31440,31441,31442,31443,31444,31445,31447,31448,31450,31451,31452,31453,31457,31458,31460,31463,31464,31465,31466,31467,31468,31470,31472,31473,31474,31475,31476,31477,31478,31479,31480,31483,31484,31486,31488,31489,31490,31493,31495,31497,31500,31501,31502,31504,31506,31507,31510,31511,31512,31514,31516,31517,31519,31521,31522,31523,31527,31529,31533,28014,28074,31119,34993,24343,29995,25242,36741,20463,37340,26023,33071,33105,24220,33104,36212,21103,35206,36171,22797,20613,20184,38428,29238,33145,36127,23500,35747,38468,22919,32538,21648,22134,22030,35813,25913,27010,38041,30422,28297,24178,29976,26438,26577,31487,32925,36214,24863,31174,25954,36195,20872,21018,38050,32568,32923,32434,23703,28207,26464,31705,30347,39640,33167,32660,31957,25630,38224,31295,21578,21733,27468,25601,25096,40509,33011,30105,21106,38761,33883,26684,34532,38401,38548,38124,20010,21508,32473,26681,36319,32789,26356,24218,32697,31535,31536,31538,31540,31541,31542,31543,31545,31547,31549,31551,31552,31553,31554,31555,31556,31558,31560,31562,31565,31566,31571,31573,31575,31577,31580,31582,31583,31585,31587,31588,31589,31590,31591,31592,31593,31594,31595,31596,31597,31599,31600,31603,31604,31606,31608,31610,31612,31613,31615,31617,31618,31619,31620,31622,31623,31624,31625,31626,31627,31628,31630,31631,31633,31634,31635,31638,31640,31641,31642,31643,31646,31647,31648,31651,31652,31653,31662,31663,31664,31666,31667,31669,31670,31671,31673,31674,31675,31676,31677,31678,31679,31680,31682,31683,31684,22466,32831,26775,24037,25915,21151,24685,40858,20379,36524,20844,23467,24339,24041,27742,25329,36129,20849,38057,21246,27807,33503,29399,22434,26500,36141,22815,36764,33735,21653,31629,20272,27837,23396,22993,40723,21476,34506,39592,35895,32929,25925,39038,22266,38599,21038,29916,21072,23521,25346,35074,20054,25296,24618,26874,20851,23448,20896,35266,31649,39302,32592,24815,28748,36143,20809,24191,36891,29808,35268,22317,30789,24402,40863,38394,36712,39740,35809,30328,26690,26588,36330,36149,21053,36746,28378,26829,38149,37101,22269,26524,35065,36807,21704,31685,31688,31689,31690,31691,31693,31694,31695,31696,31698,31700,31701,31702,31703,31704,31707,31708,31710,31711,31712,31714,31715,31716,31719,31720,31721,31723,31724,31725,31727,31728,31730,31731,31732,31733,31734,31736,31737,31738,31739,31741,31743,31744,31745,31746,31747,31748,31749,31750,31752,31753,31754,31757,31758,31760,31761,31762,31763,31764,31765,31767,31768,31769,31770,31771,31772,31773,31774,31776,31777,31778,31779,31780,31781,31784,31785,31787,31788,31789,31790,31791,31792,31793,31794,31795,31796,31797,31798,31799,31801,31802,31803,31804,31805,31806,31810,39608,23401,28023,27686,20133,23475,39559,37219,25e3,37039,38889,21547,28085,23506,20989,21898,32597,32752,25788,25421,26097,25022,24717,28938,27735,27721,22831,26477,33322,22741,22158,35946,27627,37085,22909,32791,21495,28009,21621,21917,33655,33743,26680,31166,21644,20309,21512,30418,35977,38402,27827,28088,36203,35088,40548,36154,22079,40657,30165,24456,29408,24680,21756,20136,27178,34913,24658,36720,21700,28888,34425,40511,27946,23439,24344,32418,21897,20399,29492,21564,21402,20505,21518,21628,20046,24573,29786,22774,33899,32993,34676,29392,31946,28246,31811,31812,31813,31814,31815,31816,31817,31818,31819,31820,31822,31823,31824,31825,31826,31827,31828,31829,31830,31831,31832,31833,31834,31835,31836,31837,31838,31839,31840,31841,31842,31843,31844,31845,31846,31847,31848,31849,31850,31851,31852,31853,31854,31855,31856,31857,31858,31861,31862,31863,31864,31865,31866,31870,31871,31872,31873,31874,31875,31876,31877,31878,31879,31880,31882,31883,31884,31885,31886,31887,31888,31891,31892,31894,31897,31898,31899,31904,31905,31907,31910,31911,31912,31913,31915,31916,31917,31919,31920,31924,31925,31926,31927,31928,31930,31931,24359,34382,21804,25252,20114,27818,25143,33457,21719,21326,29502,28369,30011,21010,21270,35805,27088,24458,24576,28142,22351,27426,29615,26707,36824,32531,25442,24739,21796,30186,35938,28949,28067,23462,24187,33618,24908,40644,30970,34647,31783,30343,20976,24822,29004,26179,24140,24653,35854,28784,25381,36745,24509,24674,34516,22238,27585,24724,24935,21321,24800,26214,36159,31229,20250,28905,27719,35763,35826,32472,33636,26127,23130,39746,27985,28151,35905,27963,20249,28779,33719,25110,24785,38669,36135,31096,20987,22334,22522,26426,30072,31293,31215,31637,31935,31936,31938,31939,31940,31942,31945,31947,31950,31951,31952,31953,31954,31955,31956,31960,31962,31963,31965,31966,31969,31970,31971,31972,31973,31974,31975,31977,31978,31979,31980,31981,31982,31984,31985,31986,31987,31988,31989,31990,31991,31993,31994,31996,31997,31998,31999,32e3,32001,32002,32003,32004,32005,32006,32007,32008,32009,32011,32012,32013,32014,32015,32016,32017,32018,32019,32020,32021,32022,32023,32024,32025,32026,32027,32028,32029,32030,32031,32033,32035,32036,32037,32038,32040,32041,32042,32044,32045,32046,32048,32049,32050,32051,32052,32053,32054,32908,39269,36857,28608,35749,40481,23020,32489,32521,21513,26497,26840,36753,31821,38598,21450,24613,30142,27762,21363,23241,32423,25380,20960,33034,24049,34015,25216,20864,23395,20238,31085,21058,24760,27982,23492,23490,35745,35760,26082,24524,38469,22931,32487,32426,22025,26551,22841,20339,23478,21152,33626,39050,36158,30002,38078,20551,31292,20215,26550,39550,23233,27516,30417,22362,23574,31546,38388,29006,20860,32937,33392,22904,32516,33575,26816,26604,30897,30839,25315,25441,31616,20461,21098,20943,33616,27099,37492,36341,36145,35265,38190,31661,20214,32055,32056,32057,32058,32059,32060,32061,32062,32063,32064,32065,32066,32067,32068,32069,32070,32071,32072,32073,32074,32075,32076,32077,32078,32079,32080,32081,32082,32083,32084,32085,32086,32087,32088,32089,32090,32091,32092,32093,32094,32095,32096,32097,32098,32099,32100,32101,32102,32103,32104,32105,32106,32107,32108,32109,32111,32112,32113,32114,32115,32116,32117,32118,32120,32121,32122,32123,32124,32125,32126,32127,32128,32129,32130,32131,32132,32133,32134,32135,32136,32137,32138,32139,32140,32141,32142,32143,32144,32145,32146,32147,32148,32149,32150,32151,32152,20581,33328,21073,39279,28176,28293,28071,24314,20725,23004,23558,27974,27743,30086,33931,26728,22870,35762,21280,37233,38477,34121,26898,30977,28966,33014,20132,37066,27975,39556,23047,22204,25605,38128,30699,20389,33050,29409,35282,39290,32564,32478,21119,25945,37237,36735,36739,21483,31382,25581,25509,30342,31224,34903,38454,25130,21163,33410,26708,26480,25463,30571,31469,27905,32467,35299,22992,25106,34249,33445,30028,20511,20171,30117,35819,23626,24062,31563,26020,37329,20170,27941,35167,32039,38182,20165,35880,36827,38771,26187,31105,36817,28908,28024,32153,32154,32155,32156,32157,32158,32159,32160,32161,32162,32163,32164,32165,32167,32168,32169,32170,32171,32172,32173,32175,32176,32177,32178,32179,32180,32181,32182,32183,32184,32185,32186,32187,32188,32189,32190,32191,32192,32193,32194,32195,32196,32197,32198,32199,32200,32201,32202,32203,32204,32205,32206,32207,32208,32209,32210,32211,32212,32213,32214,32215,32216,32217,32218,32219,32220,32221,32222,32223,32224,32225,32226,32227,32228,32229,32230,32231,32232,32233,32234,32235,32236,32237,32238,32239,32240,32241,32242,32243,32244,32245,32246,32247,32248,32249,32250,23613,21170,33606,20834,33550,30555,26230,40120,20140,24778,31934,31923,32463,20117,35686,26223,39048,38745,22659,25964,38236,24452,30153,38742,31455,31454,20928,28847,31384,25578,31350,32416,29590,38893,20037,28792,20061,37202,21417,25937,26087,33276,33285,21646,23601,30106,38816,25304,29401,30141,23621,39545,33738,23616,21632,30697,20030,27822,32858,25298,25454,24040,20855,36317,36382,38191,20465,21477,24807,28844,21095,25424,40515,23071,20518,30519,21367,32482,25733,25899,25225,25496,20500,29237,35273,20915,35776,32477,22343,33740,38055,20891,21531,23803,32251,32252,32253,32254,32255,32256,32257,32258,32259,32260,32261,32262,32263,32264,32265,32266,32267,32268,32269,32270,32271,32272,32273,32274,32275,32276,32277,32278,32279,32280,32281,32282,32283,32284,32285,32286,32287,32288,32289,32290,32291,32292,32293,32294,32295,32296,32297,32298,32299,32300,32301,32302,32303,32304,32305,32306,32307,32308,32309,32310,32311,32312,32313,32314,32316,32317,32318,32319,32320,32322,32323,32324,32325,32326,32328,32329,32330,32331,32332,32333,32334,32335,32336,32337,32338,32339,32340,32341,32342,32343,32344,32345,32346,32347,32348,32349,20426,31459,27994,37089,39567,21888,21654,21345,21679,24320,25577,26999,20975,24936,21002,22570,21208,22350,30733,30475,24247,24951,31968,25179,25239,20130,28821,32771,25335,28900,38752,22391,33499,26607,26869,30933,39063,31185,22771,21683,21487,28212,20811,21051,23458,35838,32943,21827,22438,24691,22353,21549,31354,24656,23380,25511,25248,21475,25187,23495,26543,21741,31391,33510,37239,24211,35044,22840,22446,25358,36328,33007,22359,31607,20393,24555,23485,27454,21281,31568,29378,26694,30719,30518,26103,20917,20111,30420,23743,31397,33909,22862,39745,20608,32350,32351,32352,32353,32354,32355,32356,32357,32358,32359,32360,32361,32362,32363,32364,32365,32366,32367,32368,32369,32370,32371,32372,32373,32374,32375,32376,32377,32378,32379,32380,32381,32382,32383,32384,32385,32387,32388,32389,32390,32391,32392,32393,32394,32395,32396,32397,32398,32399,32400,32401,32402,32403,32404,32405,32406,32407,32408,32409,32410,32412,32413,32414,32430,32436,32443,32444,32470,32484,32492,32505,32522,32528,32542,32567,32569,32571,32572,32573,32574,32575,32576,32577,32579,32582,32583,32584,32585,32586,32587,32588,32589,32590,32591,32594,32595,39304,24871,28291,22372,26118,25414,22256,25324,25193,24275,38420,22403,25289,21895,34593,33098,36771,21862,33713,26469,36182,34013,23146,26639,25318,31726,38417,20848,28572,35888,25597,35272,25042,32518,28866,28389,29701,27028,29436,24266,37070,26391,28010,25438,21171,29282,32769,20332,23013,37226,28889,28061,21202,20048,38647,38253,34174,30922,32047,20769,22418,25794,32907,31867,27882,26865,26974,20919,21400,26792,29313,40654,31729,29432,31163,28435,29702,26446,37324,40100,31036,33673,33620,21519,26647,20029,21385,21169,30782,21382,21033,20616,20363,20432,32598,32601,32603,32604,32605,32606,32608,32611,32612,32613,32614,32615,32619,32620,32621,32623,32624,32627,32629,32630,32631,32632,32634,32635,32636,32637,32639,32640,32642,32643,32644,32645,32646,32647,32648,32649,32651,32653,32655,32656,32657,32658,32659,32661,32662,32663,32664,32665,32667,32668,32672,32674,32675,32677,32678,32680,32681,32682,32683,32684,32685,32686,32689,32691,32692,32693,32694,32695,32698,32699,32702,32704,32706,32707,32708,32710,32711,32712,32713,32715,32717,32719,32720,32721,32722,32723,32726,32727,32729,32730,32731,32732,32733,32734,32738,32739,30178,31435,31890,27813,38582,21147,29827,21737,20457,32852,33714,36830,38256,24265,24604,28063,24088,25947,33080,38142,24651,28860,32451,31918,20937,26753,31921,33391,20004,36742,37327,26238,20142,35845,25769,32842,20698,30103,29134,23525,36797,28518,20102,25730,38243,24278,26009,21015,35010,28872,21155,29454,29747,26519,30967,38678,20020,37051,40158,28107,20955,36161,21533,25294,29618,33777,38646,40836,38083,20278,32666,20940,28789,38517,23725,39046,21478,20196,28316,29705,27060,30827,39311,30041,21016,30244,27969,26611,20845,40857,32843,21657,31548,31423,32740,32743,32744,32746,32747,32748,32749,32751,32754,32756,32757,32758,32759,32760,32761,32762,32765,32766,32767,32770,32775,32776,32777,32778,32782,32783,32785,32787,32794,32795,32797,32798,32799,32801,32803,32804,32811,32812,32813,32814,32815,32816,32818,32820,32825,32826,32828,32830,32832,32833,32836,32837,32839,32840,32841,32846,32847,32848,32849,32851,32853,32854,32855,32857,32859,32860,32861,32862,32863,32864,32865,32866,32867,32868,32869,32870,32871,32872,32875,32876,32877,32878,32879,32880,32882,32883,32884,32885,32886,32887,32888,32889,32890,32891,32892,32893,38534,22404,25314,38471,27004,23044,25602,31699,28431,38475,33446,21346,39045,24208,28809,25523,21348,34383,40065,40595,30860,38706,36335,36162,40575,28510,31108,24405,38470,25134,39540,21525,38109,20387,26053,23653,23649,32533,34385,27695,24459,29575,28388,32511,23782,25371,23402,28390,21365,20081,25504,30053,25249,36718,20262,20177,27814,32438,35770,33821,34746,32599,36923,38179,31657,39585,35064,33853,27931,39558,32476,22920,40635,29595,30721,34434,39532,39554,22043,21527,22475,20080,40614,21334,36808,33033,30610,39314,34542,28385,34067,26364,24930,28459,32894,32897,32898,32901,32904,32906,32909,32910,32911,32912,32913,32914,32916,32917,32919,32921,32926,32931,32934,32935,32936,32940,32944,32947,32949,32950,32952,32953,32955,32965,32967,32968,32969,32970,32971,32975,32976,32977,32978,32979,32980,32981,32984,32991,32992,32994,32995,32998,33006,33013,33015,33017,33019,33022,33023,33024,33025,33027,33028,33029,33031,33032,33035,33036,33045,33047,33049,33051,33052,33053,33055,33056,33057,33058,33059,33060,33061,33062,33063,33064,33065,33066,33067,33069,33070,33072,33075,33076,33077,33079,33081,33082,33083,33084,33085,33087,35881,33426,33579,30450,27667,24537,33725,29483,33541,38170,27611,30683,38086,21359,33538,20882,24125,35980,36152,20040,29611,26522,26757,37238,38665,29028,27809,30473,23186,38209,27599,32654,26151,23504,22969,23194,38376,38391,20204,33804,33945,27308,30431,38192,29467,26790,23391,30511,37274,38753,31964,36855,35868,24357,31859,31192,35269,27852,34588,23494,24130,26825,30496,32501,20885,20813,21193,23081,32517,38754,33495,25551,30596,34256,31186,28218,24217,22937,34065,28781,27665,25279,30399,25935,24751,38397,26126,34719,40483,38125,21517,21629,35884,25720,33088,33089,33090,33091,33092,33093,33095,33097,33101,33102,33103,33106,33110,33111,33112,33115,33116,33117,33118,33119,33121,33122,33123,33124,33126,33128,33130,33131,33132,33135,33138,33139,33141,33142,33143,33144,33153,33155,33156,33157,33158,33159,33161,33163,33164,33165,33166,33168,33170,33171,33172,33173,33174,33175,33177,33178,33182,33183,33184,33185,33186,33188,33189,33191,33193,33195,33196,33197,33198,33199,33200,33201,33202,33204,33205,33206,33207,33208,33209,33212,33213,33214,33215,33220,33221,33223,33224,33225,33227,33229,33230,33231,33232,33233,33234,33235,25721,34321,27169,33180,30952,25705,39764,25273,26411,33707,22696,40664,27819,28448,23518,38476,35851,29279,26576,25287,29281,20137,22982,27597,22675,26286,24149,21215,24917,26408,30446,30566,29287,31302,25343,21738,21584,38048,37027,23068,32435,27670,20035,22902,32784,22856,21335,30007,38590,22218,25376,33041,24700,38393,28118,21602,39297,20869,23273,33021,22958,38675,20522,27877,23612,25311,20320,21311,33147,36870,28346,34091,25288,24180,30910,25781,25467,24565,23064,37247,40479,23615,25423,32834,23421,21870,38218,38221,28037,24744,26592,29406,20957,23425,33236,33237,33238,33239,33240,33241,33242,33243,33244,33245,33246,33247,33248,33249,33250,33252,33253,33254,33256,33257,33259,33262,33263,33264,33265,33266,33269,33270,33271,33272,33273,33274,33277,33279,33283,33287,33288,33289,33290,33291,33294,33295,33297,33299,33301,33302,33303,33304,33305,33306,33309,33312,33316,33317,33318,33319,33321,33326,33330,33338,33340,33341,33343,33344,33345,33346,33347,33349,33350,33352,33354,33356,33357,33358,33360,33361,33362,33363,33364,33365,33366,33367,33369,33371,33372,33373,33374,33376,33377,33378,33379,33380,33381,33382,33383,33385,25319,27870,29275,25197,38062,32445,33043,27987,20892,24324,22900,21162,24594,22899,26262,34384,30111,25386,25062,31983,35834,21734,27431,40485,27572,34261,21589,20598,27812,21866,36276,29228,24085,24597,29750,25293,25490,29260,24472,28227,27966,25856,28504,30424,30928,30460,30036,21028,21467,20051,24222,26049,32810,32982,25243,21638,21032,28846,34957,36305,27873,21624,32986,22521,35060,36180,38506,37197,20329,27803,21943,30406,30768,25256,28921,28558,24429,34028,26842,30844,31735,33192,26379,40527,25447,30896,22383,30738,38713,25209,25259,21128,29749,27607,33386,33387,33388,33389,33393,33397,33398,33399,33400,33403,33404,33408,33409,33411,33413,33414,33415,33417,33420,33424,33427,33428,33429,33430,33434,33435,33438,33440,33442,33443,33447,33458,33461,33462,33466,33467,33468,33471,33472,33474,33475,33477,33478,33481,33488,33494,33497,33498,33501,33506,33511,33512,33513,33514,33516,33517,33518,33520,33522,33523,33525,33526,33528,33530,33532,33533,33534,33535,33536,33546,33547,33549,33552,33554,33555,33558,33560,33561,33565,33566,33567,33568,33569,33570,33571,33572,33573,33574,33577,33578,33582,33584,33586,33591,33595,33597,21860,33086,30130,30382,21305,30174,20731,23617,35692,31687,20559,29255,39575,39128,28418,29922,31080,25735,30629,25340,39057,36139,21697,32856,20050,22378,33529,33805,24179,20973,29942,35780,23631,22369,27900,39047,23110,30772,39748,36843,31893,21078,25169,38138,20166,33670,33889,33769,33970,22484,26420,22275,26222,28006,35889,26333,28689,26399,27450,26646,25114,22971,19971,20932,28422,26578,27791,20854,26827,22855,27495,30054,23822,33040,40784,26071,31048,31041,39569,36215,23682,20062,20225,21551,22865,30732,22120,27668,36804,24323,27773,27875,35755,25488,33598,33599,33601,33602,33604,33605,33608,33610,33611,33612,33613,33614,33619,33621,33622,33623,33624,33625,33629,33634,33648,33649,33650,33651,33652,33653,33654,33657,33658,33662,33663,33664,33665,33666,33667,33668,33671,33672,33674,33675,33676,33677,33679,33680,33681,33684,33685,33686,33687,33689,33690,33693,33695,33697,33698,33699,33700,33701,33702,33703,33708,33709,33710,33711,33717,33723,33726,33727,33730,33731,33732,33734,33736,33737,33739,33741,33742,33744,33745,33746,33747,33749,33751,33753,33754,33755,33758,33762,33763,33764,33766,33767,33768,33771,33772,33773,24688,27965,29301,25190,38030,38085,21315,36801,31614,20191,35878,20094,40660,38065,38067,21069,28508,36963,27973,35892,22545,23884,27424,27465,26538,21595,33108,32652,22681,34103,24378,25250,27207,38201,25970,24708,26725,30631,20052,20392,24039,38808,25772,32728,23789,20431,31373,20999,33540,19988,24623,31363,38054,20405,20146,31206,29748,21220,33465,25810,31165,23517,27777,38738,36731,27682,20542,21375,28165,25806,26228,27696,24773,39031,35831,24198,29756,31351,31179,19992,37041,29699,27714,22234,37195,27845,36235,21306,34502,26354,36527,23624,39537,28192,33774,33775,33779,33780,33781,33782,33783,33786,33787,33788,33790,33791,33792,33794,33797,33799,33800,33801,33802,33808,33810,33811,33812,33813,33814,33815,33817,33818,33819,33822,33823,33824,33825,33826,33827,33833,33834,33835,33836,33837,33838,33839,33840,33842,33843,33844,33845,33846,33847,33849,33850,33851,33854,33855,33856,33857,33858,33859,33860,33861,33863,33864,33865,33866,33867,33868,33869,33870,33871,33872,33874,33875,33876,33877,33878,33880,33885,33886,33887,33888,33890,33892,33893,33894,33895,33896,33898,33902,33903,33904,33906,33908,33911,33913,33915,33916,21462,23094,40843,36259,21435,22280,39079,26435,37275,27849,20840,30154,25331,29356,21048,21149,32570,28820,30264,21364,40522,27063,30830,38592,35033,32676,28982,29123,20873,26579,29924,22756,25880,22199,35753,39286,25200,32469,24825,28909,22764,20161,20154,24525,38887,20219,35748,20995,22922,32427,25172,20173,26085,25102,33592,33993,33635,34701,29076,28342,23481,32466,20887,25545,26580,32905,33593,34837,20754,23418,22914,36785,20083,27741,20837,35109,36719,38446,34122,29790,38160,38384,28070,33509,24369,25746,27922,33832,33134,40131,22622,36187,19977,21441,33917,33918,33919,33920,33921,33923,33924,33925,33926,33930,33933,33935,33936,33937,33938,33939,33940,33941,33942,33944,33946,33947,33949,33950,33951,33952,33954,33955,33956,33957,33958,33959,33960,33961,33962,33963,33964,33965,33966,33968,33969,33971,33973,33974,33975,33979,33980,33982,33984,33986,33987,33989,33990,33991,33992,33995,33996,33998,33999,34002,34004,34005,34007,34008,34009,34010,34011,34012,34014,34017,34018,34020,34023,34024,34025,34026,34027,34029,34030,34031,34033,34034,34035,34036,34037,34038,34039,34040,34041,34042,34043,34045,34046,34048,34049,34050,20254,25955,26705,21971,20007,25620,39578,25195,23234,29791,33394,28073,26862,20711,33678,30722,26432,21049,27801,32433,20667,21861,29022,31579,26194,29642,33515,26441,23665,21024,29053,34923,38378,38485,25797,36193,33203,21892,27733,25159,32558,22674,20260,21830,36175,26188,19978,23578,35059,26786,25422,31245,28903,33421,21242,38902,23569,21736,37045,32461,22882,36170,34503,33292,33293,36198,25668,23556,24913,28041,31038,35774,30775,30003,21627,20280,36523,28145,23072,32453,31070,27784,23457,23158,29978,32958,24910,28183,22768,29983,29989,29298,21319,32499,34051,34052,34053,34054,34055,34056,34057,34058,34059,34061,34062,34063,34064,34066,34068,34069,34070,34072,34073,34075,34076,34077,34078,34080,34082,34083,34084,34085,34086,34087,34088,34089,34090,34093,34094,34095,34096,34097,34098,34099,34100,34101,34102,34110,34111,34112,34113,34114,34116,34117,34118,34119,34123,34124,34125,34126,34127,34128,34129,34130,34131,34132,34133,34135,34136,34138,34139,34140,34141,34143,34144,34145,34146,34147,34149,34150,34151,34153,34154,34155,34156,34157,34158,34159,34160,34161,34163,34165,34166,34167,34168,34172,34173,34175,34176,34177,30465,30427,21097,32988,22307,24072,22833,29422,26045,28287,35799,23608,34417,21313,30707,25342,26102,20160,39135,34432,23454,35782,21490,30690,20351,23630,39542,22987,24335,31034,22763,19990,26623,20107,25325,35475,36893,21183,26159,21980,22124,36866,20181,20365,37322,39280,27663,24066,24643,23460,35270,35797,25910,25163,39318,23432,23551,25480,21806,21463,30246,20861,34092,26530,26803,27530,25234,36755,21460,33298,28113,30095,20070,36174,23408,29087,34223,26257,26329,32626,34560,40653,40736,23646,26415,36848,26641,26463,25101,31446,22661,24246,25968,28465,34178,34179,34182,34184,34185,34186,34187,34188,34189,34190,34192,34193,34194,34195,34196,34197,34198,34199,34200,34201,34202,34205,34206,34207,34208,34209,34210,34211,34213,34214,34215,34217,34219,34220,34221,34225,34226,34227,34228,34229,34230,34232,34234,34235,34236,34237,34238,34239,34240,34242,34243,34244,34245,34246,34247,34248,34250,34251,34252,34253,34254,34257,34258,34260,34262,34263,34264,34265,34266,34267,34269,34270,34271,34272,34273,34274,34275,34277,34278,34279,34280,34282,34283,34284,34285,34286,34287,34288,34289,34290,34291,34292,34293,34294,34295,34296,24661,21047,32781,25684,34928,29993,24069,26643,25332,38684,21452,29245,35841,27700,30561,31246,21550,30636,39034,33308,35828,30805,26388,28865,26031,25749,22070,24605,31169,21496,19997,27515,32902,23546,21987,22235,20282,20284,39282,24051,26494,32824,24578,39042,36865,23435,35772,35829,25628,33368,25822,22013,33487,37221,20439,32032,36895,31903,20723,22609,28335,23487,35785,32899,37240,33948,31639,34429,38539,38543,32485,39635,30862,23681,31319,36930,38567,31071,23385,25439,31499,34001,26797,21766,32553,29712,32034,38145,25152,22604,20182,23427,22905,22612,34297,34298,34300,34301,34302,34304,34305,34306,34307,34308,34310,34311,34312,34313,34314,34315,34316,34317,34318,34319,34320,34322,34323,34324,34325,34327,34328,34329,34330,34331,34332,34333,34334,34335,34336,34337,34338,34339,34340,34341,34342,34344,34346,34347,34348,34349,34350,34351,34352,34353,34354,34355,34356,34357,34358,34359,34361,34362,34363,34365,34366,34367,34368,34369,34370,34371,34372,34373,34374,34375,34376,34377,34378,34379,34380,34386,34387,34389,34390,34391,34392,34393,34395,34396,34397,34399,34400,34401,34403,34404,34405,34406,34407,34408,34409,34410,29549,25374,36427,36367,32974,33492,25260,21488,27888,37214,22826,24577,27760,22349,25674,36138,30251,28393,22363,27264,30192,28525,35885,35848,22374,27631,34962,30899,25506,21497,28845,27748,22616,25642,22530,26848,33179,21776,31958,20504,36538,28108,36255,28907,25487,28059,28372,32486,33796,26691,36867,28120,38518,35752,22871,29305,34276,33150,30140,35466,26799,21076,36386,38161,25552,39064,36420,21884,20307,26367,22159,24789,28053,21059,23625,22825,28155,22635,3e4,29980,24684,33300,33094,25361,26465,36834,30522,36339,36148,38081,24086,21381,21548,28867,34413,34415,34416,34418,34419,34420,34421,34422,34423,34424,34435,34436,34437,34438,34439,34440,34441,34446,34447,34448,34449,34450,34452,34454,34455,34456,34457,34458,34459,34462,34463,34464,34465,34466,34469,34470,34475,34477,34478,34482,34483,34487,34488,34489,34491,34492,34493,34494,34495,34497,34498,34499,34501,34504,34508,34509,34514,34515,34517,34518,34519,34522,34524,34525,34528,34529,34530,34531,34533,34534,34535,34536,34538,34539,34540,34543,34549,34550,34551,34554,34555,34556,34557,34559,34561,34564,34565,34566,34571,34572,34574,34575,34576,34577,34580,34582,27712,24311,20572,20141,24237,25402,33351,36890,26704,37230,30643,21516,38108,24420,31461,26742,25413,31570,32479,30171,20599,25237,22836,36879,20984,31171,31361,22270,24466,36884,28034,23648,22303,21520,20820,28237,22242,25512,39059,33151,34581,35114,36864,21534,23663,33216,25302,25176,33073,40501,38464,39534,39548,26925,22949,25299,21822,25366,21703,34521,27964,23043,29926,34972,27498,22806,35916,24367,28286,29609,39037,20024,28919,23436,30871,25405,26202,30358,24779,23451,23113,19975,33109,27754,29579,20129,26505,32593,24448,26106,26395,24536,22916,23041,34585,34587,34589,34591,34592,34596,34598,34599,34600,34602,34603,34604,34605,34607,34608,34610,34611,34613,34614,34616,34617,34618,34620,34621,34624,34625,34626,34627,34628,34629,34630,34634,34635,34637,34639,34640,34641,34642,34644,34645,34646,34648,34650,34651,34652,34653,34654,34655,34657,34658,34662,34663,34664,34665,34666,34667,34668,34669,34671,34673,34674,34675,34677,34679,34680,34681,34682,34687,34688,34689,34692,34694,34695,34697,34698,34700,34702,34703,34704,34705,34706,34708,34709,34710,34712,34713,34714,34715,34716,34717,34718,34720,34721,34722,34723,34724,24013,24494,21361,38886,36829,26693,22260,21807,24799,20026,28493,32500,33479,33806,22996,20255,20266,23614,32428,26410,34074,21619,30031,32963,21890,39759,20301,28205,35859,23561,24944,21355,30239,28201,34442,25991,38395,32441,21563,31283,32010,38382,21985,32705,29934,25373,34583,28065,31389,25105,26017,21351,25569,27779,24043,21596,38056,20044,27745,35820,23627,26080,33436,26791,21566,21556,27595,27494,20116,25410,21320,33310,20237,20398,22366,25098,38654,26212,29289,21247,21153,24735,35823,26132,29081,26512,35199,30802,30717,26224,22075,21560,38177,29306,34725,34726,34727,34729,34730,34734,34736,34737,34738,34740,34742,34743,34744,34745,34747,34748,34750,34751,34753,34754,34755,34756,34757,34759,34760,34761,34764,34765,34766,34767,34768,34772,34773,34774,34775,34776,34777,34778,34780,34781,34782,34783,34785,34786,34787,34788,34790,34791,34792,34793,34795,34796,34797,34799,34800,34801,34802,34803,34804,34805,34806,34807,34808,34810,34811,34812,34813,34815,34816,34817,34818,34820,34821,34822,34823,34824,34825,34827,34828,34829,34830,34831,34832,34833,34834,34836,34839,34840,34841,34842,34844,34845,34846,34847,34848,34851,31232,24687,24076,24713,33181,22805,24796,29060,28911,28330,27728,29312,27268,34989,24109,20064,23219,21916,38115,27927,31995,38553,25103,32454,30606,34430,21283,38686,36758,26247,23777,20384,29421,19979,21414,22799,21523,25472,38184,20808,20185,40092,32420,21688,36132,34900,33335,38386,28046,24358,23244,26174,38505,29616,29486,21439,33146,39301,32673,23466,38519,38480,32447,30456,21410,38262,39321,31665,35140,28248,20065,32724,31077,35814,24819,21709,20139,39033,24055,27233,20687,21521,35937,33831,30813,38660,21066,21742,22179,38144,28040,23477,28102,26195,34852,34853,34854,34855,34856,34857,34858,34859,34860,34861,34862,34863,34864,34865,34867,34868,34869,34870,34871,34872,34874,34875,34877,34878,34879,34881,34882,34883,34886,34887,34888,34889,34890,34891,34894,34895,34896,34897,34898,34899,34901,34902,34904,34906,34907,34908,34909,34910,34911,34912,34918,34919,34922,34925,34927,34929,34931,34932,34933,34934,34936,34937,34938,34939,34940,34944,34947,34950,34951,34953,34954,34956,34958,34959,34960,34961,34963,34964,34965,34967,34968,34969,34970,34971,34973,34974,34975,34976,34977,34979,34981,34982,34983,34984,34985,34986,23567,23389,26657,32918,21880,31505,25928,26964,20123,27463,34638,38795,21327,25375,25658,37034,26012,32961,35856,20889,26800,21368,34809,25032,27844,27899,35874,23633,34218,33455,38156,27427,36763,26032,24571,24515,20449,34885,26143,33125,29481,24826,20852,21009,22411,24418,37026,34892,37266,24184,26447,24615,22995,20804,20982,33016,21256,27769,38596,29066,20241,20462,32670,26429,21957,38152,31168,34966,32483,22687,25100,38656,34394,22040,39035,24464,35768,33988,37207,21465,26093,24207,30044,24676,32110,23167,32490,32493,36713,21927,23459,24748,26059,29572,34988,34990,34991,34992,34994,34995,34996,34997,34998,35e3,35001,35002,35003,35005,35006,35007,35008,35011,35012,35015,35016,35018,35019,35020,35021,35023,35024,35025,35027,35030,35031,35034,35035,35036,35037,35038,35040,35041,35046,35047,35049,35050,35051,35052,35053,35054,35055,35058,35061,35062,35063,35066,35067,35069,35071,35072,35073,35075,35076,35077,35078,35079,35080,35081,35083,35084,35085,35086,35087,35089,35092,35093,35094,35095,35096,35100,35101,35102,35103,35104,35106,35107,35108,35110,35111,35112,35113,35116,35117,35118,35119,35121,35122,35123,35125,35127,36873,30307,30505,32474,38772,34203,23398,31348,38634,34880,21195,29071,24490,26092,35810,23547,39535,24033,27529,27739,35757,35759,36874,36805,21387,25276,40486,40493,21568,20011,33469,29273,34460,23830,34905,28079,38597,21713,20122,35766,28937,21693,38409,28895,28153,30416,20005,30740,34578,23721,24310,35328,39068,38414,28814,27839,22852,25513,30524,34893,28436,33395,22576,29141,21388,30746,38593,21761,24422,28976,23476,35866,39564,27523,22830,40495,31207,26472,25196,20335,30113,32650,27915,38451,27687,20208,30162,20859,26679,28478,36992,33136,22934,29814,35128,35129,35130,35131,35132,35133,35134,35135,35136,35138,35139,35141,35142,35143,35144,35145,35146,35147,35148,35149,35150,35151,35152,35153,35154,35155,35156,35157,35158,35159,35160,35161,35162,35163,35164,35165,35168,35169,35170,35171,35172,35173,35175,35176,35177,35178,35179,35180,35181,35182,35183,35184,35185,35186,35187,35188,35189,35190,35191,35192,35193,35194,35196,35197,35198,35200,35202,35204,35205,35207,35208,35209,35210,35211,35212,35213,35214,35215,35216,35217,35218,35219,35220,35221,35222,35223,35224,35225,35226,35227,35228,35229,35230,35231,35232,35233,25671,23591,36965,31377,35875,23002,21676,33280,33647,35201,32768,26928,22094,32822,29239,37326,20918,20063,39029,25494,19994,21494,26355,33099,22812,28082,19968,22777,21307,25558,38129,20381,20234,34915,39056,22839,36951,31227,20202,33008,30097,27778,23452,23016,24413,26885,34433,20506,24050,20057,30691,20197,33402,25233,26131,37009,23673,20159,24441,33222,36920,32900,30123,20134,35028,24847,27589,24518,20041,30410,28322,35811,35758,35850,35793,24322,32764,32716,32462,33589,33643,22240,27575,38899,38452,23035,21535,38134,28139,23493,39278,23609,24341,38544,35234,35235,35236,35237,35238,35239,35240,35241,35242,35243,35244,35245,35246,35247,35248,35249,35250,35251,35252,35253,35254,35255,35256,35257,35258,35259,35260,35261,35262,35263,35264,35267,35277,35283,35284,35285,35287,35288,35289,35291,35293,35295,35296,35297,35298,35300,35303,35304,35305,35306,35308,35309,35310,35312,35313,35314,35316,35317,35318,35319,35320,35321,35322,35323,35324,35325,35326,35327,35329,35330,35331,35332,35333,35334,35336,35337,35338,35339,35340,35341,35342,35343,35344,35345,35346,35347,35348,35349,35350,35351,35352,35353,35354,35355,35356,35357,21360,33521,27185,23156,40560,24212,32552,33721,33828,33829,33639,34631,36814,36194,30408,24433,39062,30828,26144,21727,25317,20323,33219,30152,24248,38605,36362,34553,21647,27891,28044,27704,24703,21191,29992,24189,20248,24736,24551,23588,30001,37038,38080,29369,27833,28216,37193,26377,21451,21491,20305,37321,35825,21448,24188,36802,28132,20110,30402,27014,34398,24858,33286,20313,20446,36926,40060,24841,28189,28180,38533,20104,23089,38632,19982,23679,31161,23431,35821,32701,29577,22495,33419,37057,21505,36935,21947,23786,24481,24840,27442,29425,32946,35465,35358,35359,35360,35361,35362,35363,35364,35365,35366,35367,35368,35369,35370,35371,35372,35373,35374,35375,35376,35377,35378,35379,35380,35381,35382,35383,35384,35385,35386,35387,35388,35389,35391,35392,35393,35394,35395,35396,35397,35398,35399,35401,35402,35403,35404,35405,35406,35407,35408,35409,35410,35411,35412,35413,35414,35415,35416,35417,35418,35419,35420,35421,35422,35423,35424,35425,35426,35427,35428,35429,35430,35431,35432,35433,35434,35435,35436,35437,35438,35439,35440,35441,35442,35443,35444,35445,35446,35447,35448,35450,35451,35452,35453,35454,35455,35456,28020,23507,35029,39044,35947,39533,40499,28170,20900,20803,22435,34945,21407,25588,36757,22253,21592,22278,29503,28304,32536,36828,33489,24895,24616,38498,26352,32422,36234,36291,38053,23731,31908,26376,24742,38405,32792,20113,37095,21248,38504,20801,36816,34164,37213,26197,38901,23381,21277,30776,26434,26685,21705,28798,23472,36733,20877,22312,21681,25874,26242,36190,36163,33039,33900,36973,31967,20991,34299,26531,26089,28577,34468,36481,22122,36896,30338,28790,29157,36131,25321,21017,27901,36156,24590,22686,24974,26366,36192,25166,21939,28195,26413,36711,35457,35458,35459,35460,35461,35462,35463,35464,35467,35468,35469,35470,35471,35472,35473,35474,35476,35477,35478,35479,35480,35481,35482,35483,35484,35485,35486,35487,35488,35489,35490,35491,35492,35493,35494,35495,35496,35497,35498,35499,35500,35501,35502,35503,35504,35505,35506,35507,35508,35509,35510,35511,35512,35513,35514,35515,35516,35517,35518,35519,35520,35521,35522,35523,35524,35525,35526,35527,35528,35529,35530,35531,35532,35533,35534,35535,35536,35537,35538,35539,35540,35541,35542,35543,35544,35545,35546,35547,35548,35549,35550,35551,35552,35553,35554,35555,38113,38392,30504,26629,27048,21643,20045,28856,35784,25688,25995,23429,31364,20538,23528,30651,27617,35449,31896,27838,30415,26025,36759,23853,23637,34360,26632,21344,25112,31449,28251,32509,27167,31456,24432,28467,24352,25484,28072,26454,19976,24080,36134,20183,32960,30260,38556,25307,26157,25214,27836,36213,29031,32617,20806,32903,21484,36974,25240,21746,34544,36761,32773,38167,34071,36825,27993,29645,26015,30495,29956,30759,33275,36126,38024,20390,26517,30137,35786,38663,25391,38215,38453,33976,25379,30529,24449,29424,20105,24596,25972,25327,27491,25919,35556,35557,35558,35559,35560,35561,35562,35563,35564,35565,35566,35567,35568,35569,35570,35571,35572,35573,35574,35575,35576,35577,35578,35579,35580,35581,35582,35583,35584,35585,35586,35587,35588,35589,35590,35592,35593,35594,35595,35596,35597,35598,35599,35600,35601,35602,35603,35604,35605,35606,35607,35608,35609,35610,35611,35612,35613,35614,35615,35616,35617,35618,35619,35620,35621,35623,35624,35625,35626,35627,35628,35629,35630,35631,35632,35633,35634,35635,35636,35637,35638,35639,35640,35641,35642,35643,35644,35645,35646,35647,35648,35649,35650,35651,35652,35653,24103,30151,37073,35777,33437,26525,25903,21553,34584,30693,32930,33026,27713,20043,32455,32844,30452,26893,27542,25191,20540,20356,22336,25351,27490,36286,21482,26088,32440,24535,25370,25527,33267,33268,32622,24092,23769,21046,26234,31209,31258,36136,28825,30164,28382,27835,31378,20013,30405,24544,38047,34935,32456,31181,32959,37325,20210,20247,33311,21608,24030,27954,35788,31909,36724,32920,24090,21650,30385,23449,26172,39588,29664,26666,34523,26417,29482,35832,35803,36880,31481,28891,29038,25284,30633,22065,20027,33879,26609,21161,34496,36142,38136,31569,35654,35655,35656,35657,35658,35659,35660,35661,35662,35663,35664,35665,35666,35667,35668,35669,35670,35671,35672,35673,35674,35675,35676,35677,35678,35679,35680,35681,35682,35683,35684,35685,35687,35688,35689,35690,35691,35693,35694,35695,35696,35697,35698,35699,35700,35701,35702,35703,35704,35705,35706,35707,35708,35709,35710,35711,35712,35713,35714,35715,35716,35717,35718,35719,35720,35721,35722,35723,35724,35725,35726,35727,35728,35729,35730,35731,35732,35733,35734,35735,35736,35737,35738,35739,35740,35741,35742,35743,35756,35761,35771,35783,35792,35818,35849,35870,20303,27880,31069,39547,25235,29226,25341,19987,30742,36716,25776,36186,31686,26729,24196,35013,22918,25758,22766,29366,26894,38181,36861,36184,22368,32512,35846,20934,25417,25305,21331,26700,29730,33537,37196,21828,30528,28796,27978,20857,21672,36164,23039,28363,28100,23388,32043,20180,31869,28371,23376,33258,28173,23383,39683,26837,36394,23447,32508,24635,32437,37049,36208,22863,25549,31199,36275,21330,26063,31062,35781,38459,32452,38075,32386,22068,37257,26368,32618,23562,36981,26152,24038,20304,26590,20570,20316,22352,24231,null,null,null,null,null,35896,35897,35898,35899,35900,35901,35902,35903,35904,35906,35907,35908,35909,35912,35914,35915,35917,35918,35919,35920,35921,35922,35923,35924,35926,35927,35928,35929,35931,35932,35933,35934,35935,35936,35939,35940,35941,35942,35943,35944,35945,35948,35949,35950,35951,35952,35953,35954,35956,35957,35958,35959,35963,35964,35965,35966,35967,35968,35969,35971,35972,35974,35975,35976,35979,35981,35982,35983,35984,35985,35986,35987,35989,35990,35991,35993,35994,35995,35996,35997,35998,35999,36e3,36001,36002,36003,36004,36005,36006,36007,36008,36009,36010,36011,36012,36013,20109,19980,20800,19984,24319,21317,19989,20120,19998,39730,23404,22121,20008,31162,20031,21269,20039,22829,29243,21358,27664,22239,32996,39319,27603,30590,40727,20022,20127,40720,20060,20073,20115,33416,23387,21868,22031,20164,21389,21405,21411,21413,21422,38757,36189,21274,21493,21286,21294,21310,36188,21350,21347,20994,21e3,21006,21037,21043,21055,21056,21068,21086,21089,21084,33967,21117,21122,21121,21136,21139,20866,32596,20155,20163,20169,20162,20200,20193,20203,20190,20251,20211,20258,20324,20213,20261,20263,20233,20267,20318,20327,25912,20314,20317,36014,36015,36016,36017,36018,36019,36020,36021,36022,36023,36024,36025,36026,36027,36028,36029,36030,36031,36032,36033,36034,36035,36036,36037,36038,36039,36040,36041,36042,36043,36044,36045,36046,36047,36048,36049,36050,36051,36052,36053,36054,36055,36056,36057,36058,36059,36060,36061,36062,36063,36064,36065,36066,36067,36068,36069,36070,36071,36072,36073,36074,36075,36076,36077,36078,36079,36080,36081,36082,36083,36084,36085,36086,36087,36088,36089,36090,36091,36092,36093,36094,36095,36096,36097,36098,36099,36100,36101,36102,36103,36104,36105,36106,36107,36108,36109,20319,20311,20274,20285,20342,20340,20369,20361,20355,20367,20350,20347,20394,20348,20396,20372,20454,20456,20458,20421,20442,20451,20444,20433,20447,20472,20521,20556,20467,20524,20495,20526,20525,20478,20508,20492,20517,20520,20606,20547,20565,20552,20558,20588,20603,20645,20647,20649,20666,20694,20742,20717,20716,20710,20718,20743,20747,20189,27709,20312,20325,20430,40864,27718,31860,20846,24061,40649,39320,20865,22804,21241,21261,35335,21264,20971,22809,20821,20128,20822,20147,34926,34980,20149,33044,35026,31104,23348,34819,32696,20907,20913,20925,20924,36110,36111,36112,36113,36114,36115,36116,36117,36118,36119,36120,36121,36122,36123,36124,36128,36177,36178,36183,36191,36197,36200,36201,36202,36204,36206,36207,36209,36210,36216,36217,36218,36219,36220,36221,36222,36223,36224,36226,36227,36230,36231,36232,36233,36236,36237,36238,36239,36240,36242,36243,36245,36246,36247,36248,36249,36250,36251,36252,36253,36254,36256,36257,36258,36260,36261,36262,36263,36264,36265,36266,36267,36268,36269,36270,36271,36272,36274,36278,36279,36281,36283,36285,36288,36289,36290,36293,36295,36296,36297,36298,36301,36304,36306,36307,36308,20935,20886,20898,20901,35744,35750,35751,35754,35764,35765,35767,35778,35779,35787,35791,35790,35794,35795,35796,35798,35800,35801,35804,35807,35808,35812,35816,35817,35822,35824,35827,35830,35833,35836,35839,35840,35842,35844,35847,35852,35855,35857,35858,35860,35861,35862,35865,35867,35864,35869,35871,35872,35873,35877,35879,35882,35883,35886,35887,35890,35891,35893,35894,21353,21370,38429,38434,38433,38449,38442,38461,38460,38466,38473,38484,38495,38503,38508,38514,38516,38536,38541,38551,38576,37015,37019,37021,37017,37036,37025,37044,37043,37046,37050,36309,36312,36313,36316,36320,36321,36322,36325,36326,36327,36329,36333,36334,36336,36337,36338,36340,36342,36348,36350,36351,36352,36353,36354,36355,36356,36358,36359,36360,36363,36365,36366,36368,36369,36370,36371,36373,36374,36375,36376,36377,36378,36379,36380,36384,36385,36388,36389,36390,36391,36392,36395,36397,36400,36402,36403,36404,36406,36407,36408,36411,36412,36414,36415,36419,36421,36422,36428,36429,36430,36431,36432,36435,36436,36437,36438,36439,36440,36442,36443,36444,36445,36446,36447,36448,36449,36450,36451,36452,36453,36455,36456,36458,36459,36462,36465,37048,37040,37071,37061,37054,37072,37060,37063,37075,37094,37090,37084,37079,37083,37099,37103,37118,37124,37154,37150,37155,37169,37167,37177,37187,37190,21005,22850,21154,21164,21165,21182,21759,21200,21206,21232,21471,29166,30669,24308,20981,20988,39727,21430,24321,30042,24047,22348,22441,22433,22654,22716,22725,22737,22313,22316,22314,22323,22329,22318,22319,22364,22331,22338,22377,22405,22379,22406,22396,22395,22376,22381,22390,22387,22445,22436,22412,22450,22479,22439,22452,22419,22432,22485,22488,22490,22489,22482,22456,22516,22511,22520,22500,22493,36467,36469,36471,36472,36473,36474,36475,36477,36478,36480,36482,36483,36484,36486,36488,36489,36490,36491,36492,36493,36494,36497,36498,36499,36501,36502,36503,36504,36505,36506,36507,36509,36511,36512,36513,36514,36515,36516,36517,36518,36519,36520,36521,36522,36525,36526,36528,36529,36531,36532,36533,36534,36535,36536,36537,36539,36540,36541,36542,36543,36544,36545,36546,36547,36548,36549,36550,36551,36552,36553,36554,36555,36556,36557,36559,36560,36561,36562,36563,36564,36565,36566,36567,36568,36569,36570,36571,36572,36573,36574,36575,36576,36577,36578,36579,36580,22539,22541,22525,22509,22528,22558,22553,22596,22560,22629,22636,22657,22665,22682,22656,39336,40729,25087,33401,33405,33407,33423,33418,33448,33412,33422,33425,33431,33433,33451,33464,33470,33456,33480,33482,33507,33432,33463,33454,33483,33484,33473,33449,33460,33441,33450,33439,33476,33486,33444,33505,33545,33527,33508,33551,33543,33500,33524,33490,33496,33548,33531,33491,33553,33562,33542,33556,33557,33504,33493,33564,33617,33627,33628,33544,33682,33596,33588,33585,33691,33630,33583,33615,33607,33603,33631,33600,33559,33632,33581,33594,33587,33638,33637,36581,36582,36583,36584,36585,36586,36587,36588,36589,36590,36591,36592,36593,36594,36595,36596,36597,36598,36599,36600,36601,36602,36603,36604,36605,36606,36607,36608,36609,36610,36611,36612,36613,36614,36615,36616,36617,36618,36619,36620,36621,36622,36623,36624,36625,36626,36627,36628,36629,36630,36631,36632,36633,36634,36635,36636,36637,36638,36639,36640,36641,36642,36643,36644,36645,36646,36647,36648,36649,36650,36651,36652,36653,36654,36655,36656,36657,36658,36659,36660,36661,36662,36663,36664,36665,36666,36667,36668,36669,36670,36671,36672,36673,36674,36675,36676,33640,33563,33641,33644,33642,33645,33646,33712,33656,33715,33716,33696,33706,33683,33692,33669,33660,33718,33705,33661,33720,33659,33688,33694,33704,33722,33724,33729,33793,33765,33752,22535,33816,33803,33757,33789,33750,33820,33848,33809,33798,33748,33759,33807,33795,33784,33785,33770,33733,33728,33830,33776,33761,33884,33873,33882,33881,33907,33927,33928,33914,33929,33912,33852,33862,33897,33910,33932,33934,33841,33901,33985,33997,34e3,34022,33981,34003,33994,33983,33978,34016,33953,33977,33972,33943,34021,34019,34060,29965,34104,34032,34105,34079,34106,36677,36678,36679,36680,36681,36682,36683,36684,36685,36686,36687,36688,36689,36690,36691,36692,36693,36694,36695,36696,36697,36698,36699,36700,36701,36702,36703,36704,36705,36706,36707,36708,36709,36714,36736,36748,36754,36765,36768,36769,36770,36772,36773,36774,36775,36778,36780,36781,36782,36783,36786,36787,36788,36789,36791,36792,36794,36795,36796,36799,36800,36803,36806,36809,36810,36811,36812,36813,36815,36818,36822,36823,36826,36832,36833,36835,36839,36844,36847,36849,36850,36852,36853,36854,36858,36859,36860,36862,36863,36871,36872,36876,36878,36883,36885,36888,34134,34107,34047,34044,34137,34120,34152,34148,34142,34170,30626,34115,34162,34171,34212,34216,34183,34191,34169,34222,34204,34181,34233,34231,34224,34259,34241,34268,34303,34343,34309,34345,34326,34364,24318,24328,22844,22849,32823,22869,22874,22872,21263,23586,23589,23596,23604,25164,25194,25247,25275,25290,25306,25303,25326,25378,25334,25401,25419,25411,25517,25590,25457,25466,25486,25524,25453,25516,25482,25449,25518,25532,25586,25592,25568,25599,25540,25566,25550,25682,25542,25534,25669,25665,25611,25627,25632,25612,25638,25633,25694,25732,25709,25750,36889,36892,36899,36900,36901,36903,36904,36905,36906,36907,36908,36912,36913,36914,36915,36916,36919,36921,36922,36925,36927,36928,36931,36933,36934,36936,36937,36938,36939,36940,36942,36948,36949,36950,36953,36954,36956,36957,36958,36959,36960,36961,36964,36966,36967,36969,36970,36971,36972,36975,36976,36977,36978,36979,36982,36983,36984,36985,36986,36987,36988,36990,36993,36996,36997,36998,36999,37001,37002,37004,37005,37006,37007,37008,37010,37012,37014,37016,37018,37020,37022,37023,37024,37028,37029,37031,37032,37033,37035,37037,37042,37047,37052,37053,37055,37056,25722,25783,25784,25753,25786,25792,25808,25815,25828,25826,25865,25893,25902,24331,24530,29977,24337,21343,21489,21501,21481,21480,21499,21522,21526,21510,21579,21586,21587,21588,21590,21571,21537,21591,21593,21539,21554,21634,21652,21623,21617,21604,21658,21659,21636,21622,21606,21661,21712,21677,21698,21684,21714,21671,21670,21715,21716,21618,21667,21717,21691,21695,21708,21721,21722,21724,21673,21674,21668,21725,21711,21726,21787,21735,21792,21757,21780,21747,21794,21795,21775,21777,21799,21802,21863,21903,21941,21833,21869,21825,21845,21823,21840,21820,37058,37059,37062,37064,37065,37067,37068,37069,37074,37076,37077,37078,37080,37081,37082,37086,37087,37088,37091,37092,37093,37097,37098,37100,37102,37104,37105,37106,37107,37109,37110,37111,37113,37114,37115,37116,37119,37120,37121,37123,37125,37126,37127,37128,37129,37130,37131,37132,37133,37134,37135,37136,37137,37138,37139,37140,37141,37142,37143,37144,37146,37147,37148,37149,37151,37152,37153,37156,37157,37158,37159,37160,37161,37162,37163,37164,37165,37166,37168,37170,37171,37172,37173,37174,37175,37176,37178,37179,37180,37181,37182,37183,37184,37185,37186,37188,21815,21846,21877,21878,21879,21811,21808,21852,21899,21970,21891,21937,21945,21896,21889,21919,21886,21974,21905,21883,21983,21949,21950,21908,21913,21994,22007,21961,22047,21969,21995,21996,21972,21990,21981,21956,21999,21989,22002,22003,21964,21965,21992,22005,21988,36756,22046,22024,22028,22017,22052,22051,22014,22016,22055,22061,22104,22073,22103,22060,22093,22114,22105,22108,22092,22100,22150,22116,22129,22123,22139,22140,22149,22163,22191,22228,22231,22237,22241,22261,22251,22265,22271,22276,22282,22281,22300,24079,24089,24084,24081,24113,24123,24124,37189,37191,37192,37201,37203,37204,37205,37206,37208,37209,37211,37212,37215,37216,37222,37223,37224,37227,37229,37235,37242,37243,37244,37248,37249,37250,37251,37252,37254,37256,37258,37262,37263,37267,37268,37269,37270,37271,37272,37273,37276,37277,37278,37279,37280,37281,37284,37285,37286,37287,37288,37289,37291,37292,37296,37297,37298,37299,37302,37303,37304,37305,37307,37308,37309,37310,37311,37312,37313,37314,37315,37316,37317,37318,37320,37323,37328,37330,37331,37332,37333,37334,37335,37336,37337,37338,37339,37341,37342,37343,37344,37345,37346,37347,37348,37349,24119,24132,24148,24155,24158,24161,23692,23674,23693,23696,23702,23688,23704,23705,23697,23706,23708,23733,23714,23741,23724,23723,23729,23715,23745,23735,23748,23762,23780,23755,23781,23810,23811,23847,23846,23854,23844,23838,23814,23835,23896,23870,23860,23869,23916,23899,23919,23901,23915,23883,23882,23913,23924,23938,23961,23965,35955,23991,24005,24435,24439,24450,24455,24457,24460,24469,24473,24476,24488,24493,24501,24508,34914,24417,29357,29360,29364,29367,29368,29379,29377,29390,29389,29394,29416,29423,29417,29426,29428,29431,29441,29427,29443,29434,37350,37351,37352,37353,37354,37355,37356,37357,37358,37359,37360,37361,37362,37363,37364,37365,37366,37367,37368,37369,37370,37371,37372,37373,37374,37375,37376,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37387,37388,37389,37390,37391,37392,37393,37394,37395,37396,37397,37398,37399,37400,37401,37402,37403,37404,37405,37406,37407,37408,37409,37410,37411,37412,37413,37414,37415,37416,37417,37418,37419,37420,37421,37422,37423,37424,37425,37426,37427,37428,37429,37430,37431,37432,37433,37434,37435,37436,37437,37438,37439,37440,37441,37442,37443,37444,37445,29435,29463,29459,29473,29450,29470,29469,29461,29474,29497,29477,29484,29496,29489,29520,29517,29527,29536,29548,29551,29566,33307,22821,39143,22820,22786,39267,39271,39272,39273,39274,39275,39276,39284,39287,39293,39296,39300,39303,39306,39309,39312,39313,39315,39316,39317,24192,24209,24203,24214,24229,24224,24249,24245,24254,24243,36179,24274,24273,24283,24296,24298,33210,24516,24521,24534,24527,24579,24558,24580,24545,24548,24574,24581,24582,24554,24557,24568,24601,24629,24614,24603,24591,24589,24617,24619,24586,24639,24609,24696,24697,24699,24698,24642,37446,37447,37448,37449,37450,37451,37452,37453,37454,37455,37456,37457,37458,37459,37460,37461,37462,37463,37464,37465,37466,37467,37468,37469,37470,37471,37472,37473,37474,37475,37476,37477,37478,37479,37480,37481,37482,37483,37484,37485,37486,37487,37488,37489,37490,37491,37493,37494,37495,37496,37497,37498,37499,37500,37501,37502,37503,37504,37505,37506,37507,37508,37509,37510,37511,37512,37513,37514,37515,37516,37517,37519,37520,37521,37522,37523,37524,37525,37526,37527,37528,37529,37530,37531,37532,37533,37534,37535,37536,37537,37538,37539,37540,37541,37542,37543,24682,24701,24726,24730,24749,24733,24707,24722,24716,24731,24812,24763,24753,24797,24792,24774,24794,24756,24864,24870,24853,24867,24820,24832,24846,24875,24906,24949,25004,24980,24999,25015,25044,25077,24541,38579,38377,38379,38385,38387,38389,38390,38396,38398,38403,38404,38406,38408,38410,38411,38412,38413,38415,38418,38421,38422,38423,38425,38426,20012,29247,25109,27701,27732,27740,27722,27811,27781,27792,27796,27788,27752,27753,27764,27766,27782,27817,27856,27860,27821,27895,27896,27889,27863,27826,27872,27862,27898,27883,27886,27825,27859,27887,27902,37544,37545,37546,37547,37548,37549,37551,37552,37553,37554,37555,37556,37557,37558,37559,37560,37561,37562,37563,37564,37565,37566,37567,37568,37569,37570,37571,37572,37573,37574,37575,37577,37578,37579,37580,37581,37582,37583,37584,37585,37586,37587,37588,37589,37590,37591,37592,37593,37594,37595,37596,37597,37598,37599,37600,37601,37602,37603,37604,37605,37606,37607,37608,37609,37610,37611,37612,37613,37614,37615,37616,37617,37618,37619,37620,37621,37622,37623,37624,37625,37626,37627,37628,37629,37630,37631,37632,37633,37634,37635,37636,37637,37638,37639,37640,37641,27961,27943,27916,27971,27976,27911,27908,27929,27918,27947,27981,27950,27957,27930,27983,27986,27988,27955,28049,28015,28062,28064,27998,28051,28052,27996,28e3,28028,28003,28186,28103,28101,28126,28174,28095,28128,28177,28134,28125,28121,28182,28075,28172,28078,28203,28270,28238,28267,28338,28255,28294,28243,28244,28210,28197,28228,28383,28337,28312,28384,28461,28386,28325,28327,28349,28347,28343,28375,28340,28367,28303,28354,28319,28514,28486,28487,28452,28437,28409,28463,28470,28491,28532,28458,28425,28457,28553,28557,28556,28536,28530,28540,28538,28625,37642,37643,37644,37645,37646,37647,37648,37649,37650,37651,37652,37653,37654,37655,37656,37657,37658,37659,37660,37661,37662,37663,37664,37665,37666,37667,37668,37669,37670,37671,37672,37673,37674,37675,37676,37677,37678,37679,37680,37681,37682,37683,37684,37685,37686,37687,37688,37689,37690,37691,37692,37693,37695,37696,37697,37698,37699,37700,37701,37702,37703,37704,37705,37706,37707,37708,37709,37710,37711,37712,37713,37714,37715,37716,37717,37718,37719,37720,37721,37722,37723,37724,37725,37726,37727,37728,37729,37730,37731,37732,37733,37734,37735,37736,37737,37739,28617,28583,28601,28598,28610,28641,28654,28638,28640,28655,28698,28707,28699,28729,28725,28751,28766,23424,23428,23445,23443,23461,23480,29999,39582,25652,23524,23534,35120,23536,36423,35591,36790,36819,36821,36837,36846,36836,36841,36838,36851,36840,36869,36868,36875,36902,36881,36877,36886,36897,36917,36918,36909,36911,36932,36945,36946,36944,36968,36952,36962,36955,26297,36980,36989,36994,37e3,36995,37003,24400,24407,24406,24408,23611,21675,23632,23641,23409,23651,23654,32700,24362,24361,24365,33396,24380,39739,23662,22913,22915,22925,22953,22954,22947,37740,37741,37742,37743,37744,37745,37746,37747,37748,37749,37750,37751,37752,37753,37754,37755,37756,37757,37758,37759,37760,37761,37762,37763,37764,37765,37766,37767,37768,37769,37770,37771,37772,37773,37774,37776,37777,37778,37779,37780,37781,37782,37783,37784,37785,37786,37787,37788,37789,37790,37791,37792,37793,37794,37795,37796,37797,37798,37799,37800,37801,37802,37803,37804,37805,37806,37807,37808,37809,37810,37811,37812,37813,37814,37815,37816,37817,37818,37819,37820,37821,37822,37823,37824,37825,37826,37827,37828,37829,37830,37831,37832,37833,37835,37836,37837,22935,22986,22955,22942,22948,22994,22962,22959,22999,22974,23045,23046,23005,23048,23011,23e3,23033,23052,23049,23090,23092,23057,23075,23059,23104,23143,23114,23125,23100,23138,23157,33004,23210,23195,23159,23162,23230,23275,23218,23250,23252,23224,23264,23267,23281,23254,23270,23256,23260,23305,23319,23318,23346,23351,23360,23573,23580,23386,23397,23411,23377,23379,23394,39541,39543,39544,39546,39551,39549,39552,39553,39557,39560,39562,39568,39570,39571,39574,39576,39579,39580,39581,39583,39584,39586,39587,39589,39591,32415,32417,32419,32421,32424,32425,37838,37839,37840,37841,37842,37843,37844,37845,37847,37848,37849,37850,37851,37852,37853,37854,37855,37856,37857,37858,37859,37860,37861,37862,37863,37864,37865,37866,37867,37868,37869,37870,37871,37872,37873,37874,37875,37876,37877,37878,37879,37880,37881,37882,37883,37884,37885,37886,37887,37888,37889,37890,37891,37892,37893,37894,37895,37896,37897,37898,37899,37900,37901,37902,37903,37904,37905,37906,37907,37908,37909,37910,37911,37912,37913,37914,37915,37916,37917,37918,37919,37920,37921,37922,37923,37924,37925,37926,37927,37928,37929,37930,37931,37932,37933,37934,32429,32432,32446,32448,32449,32450,32457,32459,32460,32464,32468,32471,32475,32480,32481,32488,32491,32494,32495,32497,32498,32525,32502,32506,32507,32510,32513,32514,32515,32519,32520,32523,32524,32527,32529,32530,32535,32537,32540,32539,32543,32545,32546,32547,32548,32549,32550,32551,32554,32555,32556,32557,32559,32560,32561,32562,32563,32565,24186,30079,24027,30014,37013,29582,29585,29614,29602,29599,29647,29634,29649,29623,29619,29632,29641,29640,29669,29657,39036,29706,29673,29671,29662,29626,29682,29711,29738,29787,29734,29733,29736,29744,29742,29740,37935,37936,37937,37938,37939,37940,37941,37942,37943,37944,37945,37946,37947,37948,37949,37951,37952,37953,37954,37955,37956,37957,37958,37959,37960,37961,37962,37963,37964,37965,37966,37967,37968,37969,37970,37971,37972,37973,37974,37975,37976,37977,37978,37979,37980,37981,37982,37983,37984,37985,37986,37987,37988,37989,37990,37991,37992,37993,37994,37996,37997,37998,37999,38e3,38001,38002,38003,38004,38005,38006,38007,38008,38009,38010,38011,38012,38013,38014,38015,38016,38017,38018,38019,38020,38033,38038,38040,38087,38095,38099,38100,38106,38118,38139,38172,38176,29723,29722,29761,29788,29783,29781,29785,29815,29805,29822,29852,29838,29824,29825,29831,29835,29854,29864,29865,29840,29863,29906,29882,38890,38891,38892,26444,26451,26462,26440,26473,26533,26503,26474,26483,26520,26535,26485,26536,26526,26541,26507,26487,26492,26608,26633,26584,26634,26601,26544,26636,26585,26549,26586,26547,26589,26624,26563,26552,26594,26638,26561,26621,26674,26675,26720,26721,26702,26722,26692,26724,26755,26653,26709,26726,26689,26727,26688,26686,26698,26697,26665,26805,26767,26740,26743,26771,26731,26818,26990,26876,26911,26912,26873,38183,38195,38205,38211,38216,38219,38229,38234,38240,38254,38260,38261,38263,38264,38265,38266,38267,38268,38269,38270,38272,38273,38274,38275,38276,38277,38278,38279,38280,38281,38282,38283,38284,38285,38286,38287,38288,38289,38290,38291,38292,38293,38294,38295,38296,38297,38298,38299,38300,38301,38302,38303,38304,38305,38306,38307,38308,38309,38310,38311,38312,38313,38314,38315,38316,38317,38318,38319,38320,38321,38322,38323,38324,38325,38326,38327,38328,38329,38330,38331,38332,38333,38334,38335,38336,38337,38338,38339,38340,38341,38342,38343,38344,38345,38346,38347,26916,26864,26891,26881,26967,26851,26896,26993,26937,26976,26946,26973,27012,26987,27008,27032,27e3,26932,27084,27015,27016,27086,27017,26982,26979,27001,27035,27047,27067,27051,27053,27092,27057,27073,27082,27103,27029,27104,27021,27135,27183,27117,27159,27160,27237,27122,27204,27198,27296,27216,27227,27189,27278,27257,27197,27176,27224,27260,27281,27280,27305,27287,27307,29495,29522,27521,27522,27527,27524,27538,27539,27533,27546,27547,27553,27562,36715,36717,36721,36722,36723,36725,36726,36728,36727,36729,36730,36732,36734,36737,36738,36740,36743,36747,38348,38349,38350,38351,38352,38353,38354,38355,38356,38357,38358,38359,38360,38361,38362,38363,38364,38365,38366,38367,38368,38369,38370,38371,38372,38373,38374,38375,38380,38399,38407,38419,38424,38427,38430,38432,38435,38436,38437,38438,38439,38440,38441,38443,38444,38445,38447,38448,38455,38456,38457,38458,38462,38465,38467,38474,38478,38479,38481,38482,38483,38486,38487,38488,38489,38490,38492,38493,38494,38496,38499,38501,38502,38507,38509,38510,38511,38512,38513,38515,38520,38521,38522,38523,38524,38525,38526,38527,38528,38529,38530,38531,38532,38535,38537,38538,36749,36750,36751,36760,36762,36558,25099,25111,25115,25119,25122,25121,25125,25124,25132,33255,29935,29940,29951,29967,29969,29971,25908,26094,26095,26096,26122,26137,26482,26115,26133,26112,28805,26359,26141,26164,26161,26166,26165,32774,26207,26196,26177,26191,26198,26209,26199,26231,26244,26252,26279,26269,26302,26331,26332,26342,26345,36146,36147,36150,36155,36157,36160,36165,36166,36168,36169,36167,36173,36181,36185,35271,35274,35275,35276,35278,35279,35280,35281,29294,29343,29277,29286,29295,29310,29311,29316,29323,29325,29327,29330,25352,25394,25520,38540,38542,38545,38546,38547,38549,38550,38554,38555,38557,38558,38559,38560,38561,38562,38563,38564,38565,38566,38568,38569,38570,38571,38572,38573,38574,38575,38577,38578,38580,38581,38583,38584,38586,38587,38591,38594,38595,38600,38602,38603,38608,38609,38611,38612,38614,38615,38616,38617,38618,38619,38620,38621,38622,38623,38625,38626,38627,38628,38629,38630,38631,38635,38636,38637,38638,38640,38641,38642,38644,38645,38648,38650,38651,38652,38653,38655,38658,38659,38661,38666,38667,38668,38672,38673,38674,38676,38677,38679,38680,38681,38682,38683,38685,38687,38688,25663,25816,32772,27626,27635,27645,27637,27641,27653,27655,27654,27661,27669,27672,27673,27674,27681,27689,27684,27690,27698,25909,25941,25963,29261,29266,29270,29232,34402,21014,32927,32924,32915,32956,26378,32957,32945,32939,32941,32948,32951,32999,33e3,33001,33002,32987,32962,32964,32985,32973,32983,26384,32989,33003,33009,33012,33005,33037,33038,33010,33020,26389,33042,35930,33078,33054,33068,33048,33074,33096,33100,33107,33140,33113,33114,33137,33120,33129,33148,33149,33133,33127,22605,23221,33160,33154,33169,28373,33187,33194,33228,26406,33226,33211,38689,38690,38691,38692,38693,38694,38695,38696,38697,38699,38700,38702,38703,38705,38707,38708,38709,38710,38711,38714,38715,38716,38717,38719,38720,38721,38722,38723,38724,38725,38726,38727,38728,38729,38730,38731,38732,38733,38734,38735,38736,38737,38740,38741,38743,38744,38746,38748,38749,38751,38755,38756,38758,38759,38760,38762,38763,38764,38765,38766,38767,38768,38769,38770,38773,38775,38776,38777,38778,38779,38781,38782,38783,38784,38785,38786,38787,38788,38790,38791,38792,38793,38794,38796,38798,38799,38800,38803,38805,38806,38807,38809,38810,38811,38812,38813,33217,33190,27428,27447,27449,27459,27462,27481,39121,39122,39123,39125,39129,39130,27571,24384,27586,35315,26e3,40785,26003,26044,26054,26052,26051,26060,26062,26066,26070,28800,28828,28822,28829,28859,28864,28855,28843,28849,28904,28874,28944,28947,28950,28975,28977,29043,29020,29032,28997,29042,29002,29048,29050,29080,29107,29109,29096,29088,29152,29140,29159,29177,29213,29224,28780,28952,29030,29113,25150,25149,25155,25160,25161,31035,31040,31046,31049,31067,31068,31059,31066,31074,31063,31072,31087,31079,31098,31109,31114,31130,31143,31155,24529,24528,38814,38815,38817,38818,38820,38821,38822,38823,38824,38825,38826,38828,38830,38832,38833,38835,38837,38838,38839,38840,38841,38842,38843,38844,38845,38846,38847,38848,38849,38850,38851,38852,38853,38854,38855,38856,38857,38858,38859,38860,38861,38862,38863,38864,38865,38866,38867,38868,38869,38870,38871,38872,38873,38874,38875,38876,38877,38878,38879,38880,38881,38882,38883,38884,38885,38888,38894,38895,38896,38897,38898,38900,38903,38904,38905,38906,38907,38908,38909,38910,38911,38912,38913,38914,38915,38916,38917,38918,38919,38920,38921,38922,38923,38924,38925,38926,24636,24669,24666,24679,24641,24665,24675,24747,24838,24845,24925,25001,24989,25035,25041,25094,32896,32895,27795,27894,28156,30710,30712,30720,30729,30743,30744,30737,26027,30765,30748,30749,30777,30778,30779,30751,30780,30757,30764,30755,30761,30798,30829,30806,30807,30758,30800,30791,30796,30826,30875,30867,30874,30855,30876,30881,30883,30898,30905,30885,30932,30937,30921,30956,30962,30981,30964,30995,31012,31006,31028,40859,40697,40699,40700,30449,30468,30477,30457,30471,30472,30490,30498,30489,30509,30502,30517,30520,30544,30545,30535,30531,30554,30568,38927,38928,38929,38930,38931,38932,38933,38934,38935,38936,38937,38938,38939,38940,38941,38942,38943,38944,38945,38946,38947,38948,38949,38950,38951,38952,38953,38954,38955,38956,38957,38958,38959,38960,38961,38962,38963,38964,38965,38966,38967,38968,38969,38970,38971,38972,38973,38974,38975,38976,38977,38978,38979,38980,38981,38982,38983,38984,38985,38986,38987,38988,38989,38990,38991,38992,38993,38994,38995,38996,38997,38998,38999,39e3,39001,39002,39003,39004,39005,39006,39007,39008,39009,39010,39011,39012,39013,39014,39015,39016,39017,39018,39019,39020,39021,39022,30562,30565,30591,30605,30589,30592,30604,30609,30623,30624,30640,30645,30653,30010,30016,30030,30027,30024,30043,30066,30073,30083,32600,32609,32607,35400,32616,32628,32625,32633,32641,32638,30413,30437,34866,38021,38022,38023,38027,38026,38028,38029,38031,38032,38036,38039,38037,38042,38043,38044,38051,38052,38059,38058,38061,38060,38063,38064,38066,38068,38070,38071,38072,38073,38074,38076,38077,38079,38084,38088,38089,38090,38091,38092,38093,38094,38096,38097,38098,38101,38102,38103,38105,38104,38107,38110,38111,38112,38114,38116,38117,38119,38120,38122,39023,39024,39025,39026,39027,39028,39051,39054,39058,39061,39065,39075,39080,39081,39082,39083,39084,39085,39086,39087,39088,39089,39090,39091,39092,39093,39094,39095,39096,39097,39098,39099,39100,39101,39102,39103,39104,39105,39106,39107,39108,39109,39110,39111,39112,39113,39114,39115,39116,39117,39119,39120,39124,39126,39127,39131,39132,39133,39136,39137,39138,39139,39140,39141,39142,39145,39146,39147,39148,39149,39150,39151,39152,39153,39154,39155,39156,39157,39158,39159,39160,39161,39162,39163,39164,39165,39166,39167,39168,39169,39170,39171,39172,39173,39174,39175,38121,38123,38126,38127,38131,38132,38133,38135,38137,38140,38141,38143,38147,38146,38150,38151,38153,38154,38157,38158,38159,38162,38163,38164,38165,38166,38168,38171,38173,38174,38175,38178,38186,38187,38185,38188,38193,38194,38196,38198,38199,38200,38204,38206,38207,38210,38197,38212,38213,38214,38217,38220,38222,38223,38226,38227,38228,38230,38231,38232,38233,38235,38238,38239,38237,38241,38242,38244,38245,38246,38247,38248,38249,38250,38251,38252,38255,38257,38258,38259,38202,30695,30700,38601,31189,31213,31203,31211,31238,23879,31235,31234,31262,31252,39176,39177,39178,39179,39180,39182,39183,39185,39186,39187,39188,39189,39190,39191,39192,39193,39194,39195,39196,39197,39198,39199,39200,39201,39202,39203,39204,39205,39206,39207,39208,39209,39210,39211,39212,39213,39215,39216,39217,39218,39219,39220,39221,39222,39223,39224,39225,39226,39227,39228,39229,39230,39231,39232,39233,39234,39235,39236,39237,39238,39239,39240,39241,39242,39243,39244,39245,39246,39247,39248,39249,39250,39251,39254,39255,39256,39257,39258,39259,39260,39261,39262,39263,39264,39265,39266,39268,39270,39283,39288,39289,39291,39294,39298,39299,39305,31289,31287,31313,40655,39333,31344,30344,30350,30355,30361,30372,29918,29920,29996,40480,40482,40488,40489,40490,40491,40492,40498,40497,40502,40504,40503,40505,40506,40510,40513,40514,40516,40518,40519,40520,40521,40523,40524,40526,40529,40533,40535,40538,40539,40540,40542,40547,40550,40551,40552,40553,40554,40555,40556,40561,40557,40563,30098,30100,30102,30112,30109,30124,30115,30131,30132,30136,30148,30129,30128,30147,30146,30166,30157,30179,30184,30182,30180,30187,30183,30211,30193,30204,30207,30224,30208,30213,30220,30231,30218,30245,30232,30229,30233,39308,39310,39322,39323,39324,39325,39326,39327,39328,39329,39330,39331,39332,39334,39335,39337,39338,39339,39340,39341,39342,39343,39344,39345,39346,39347,39348,39349,39350,39351,39352,39353,39354,39355,39356,39357,39358,39359,39360,39361,39362,39363,39364,39365,39366,39367,39368,39369,39370,39371,39372,39373,39374,39375,39376,39377,39378,39379,39380,39381,39382,39383,39384,39385,39386,39387,39388,39389,39390,39391,39392,39393,39394,39395,39396,39397,39398,39399,39400,39401,39402,39403,39404,39405,39406,39407,39408,39409,39410,39411,39412,39413,39414,39415,39416,39417,30235,30268,30242,30240,30272,30253,30256,30271,30261,30275,30270,30259,30285,30302,30292,30300,30294,30315,30319,32714,31462,31352,31353,31360,31366,31368,31381,31398,31392,31404,31400,31405,31411,34916,34921,34930,34941,34943,34946,34978,35014,34999,35004,35017,35042,35022,35043,35045,35057,35098,35068,35048,35070,35056,35105,35097,35091,35099,35082,35124,35115,35126,35137,35174,35195,30091,32997,30386,30388,30684,32786,32788,32790,32796,32800,32802,32805,32806,32807,32809,32808,32817,32779,32821,32835,32838,32845,32850,32873,32881,35203,39032,39040,39043,39418,39419,39420,39421,39422,39423,39424,39425,39426,39427,39428,39429,39430,39431,39432,39433,39434,39435,39436,39437,39438,39439,39440,39441,39442,39443,39444,39445,39446,39447,39448,39449,39450,39451,39452,39453,39454,39455,39456,39457,39458,39459,39460,39461,39462,39463,39464,39465,39466,39467,39468,39469,39470,39471,39472,39473,39474,39475,39476,39477,39478,39479,39480,39481,39482,39483,39484,39485,39486,39487,39488,39489,39490,39491,39492,39493,39494,39495,39496,39497,39498,39499,39500,39501,39502,39503,39504,39505,39506,39507,39508,39509,39510,39511,39512,39513,39049,39052,39053,39055,39060,39066,39067,39070,39071,39073,39074,39077,39078,34381,34388,34412,34414,34431,34426,34428,34427,34472,34445,34443,34476,34461,34471,34467,34474,34451,34473,34486,34500,34485,34510,34480,34490,34481,34479,34505,34511,34484,34537,34545,34546,34541,34547,34512,34579,34526,34548,34527,34520,34513,34563,34567,34552,34568,34570,34573,34569,34595,34619,34590,34597,34606,34586,34622,34632,34612,34609,34601,34615,34623,34690,34594,34685,34686,34683,34656,34672,34636,34670,34699,34643,34659,34684,34660,34649,34661,34707,34735,34728,34770,39514,39515,39516,39517,39518,39519,39520,39521,39522,39523,39524,39525,39526,39527,39528,39529,39530,39531,39538,39555,39561,39565,39566,39572,39573,39577,39590,39593,39594,39595,39596,39597,39598,39599,39602,39603,39604,39605,39609,39611,39613,39614,39615,39619,39620,39622,39623,39624,39625,39626,39629,39630,39631,39632,39634,39636,39637,39638,39639,39641,39642,39643,39644,39645,39646,39648,39650,39651,39652,39653,39655,39656,39657,39658,39660,39662,39664,39665,39666,39667,39668,39669,39670,39671,39672,39674,39676,39677,39678,39679,39680,39681,39682,39684,39685,39686,34758,34696,34693,34733,34711,34691,34731,34789,34732,34741,34739,34763,34771,34749,34769,34752,34762,34779,34794,34784,34798,34838,34835,34814,34826,34843,34849,34873,34876,32566,32578,32580,32581,33296,31482,31485,31496,31491,31492,31509,31498,31531,31503,31559,31544,31530,31513,31534,31537,31520,31525,31524,31539,31550,31518,31576,31578,31557,31605,31564,31581,31584,31598,31611,31586,31602,31601,31632,31654,31655,31672,31660,31645,31656,31621,31658,31644,31650,31659,31668,31697,31681,31692,31709,31706,31717,31718,31722,31756,31742,31740,31759,31766,31755,39687,39689,39690,39691,39692,39693,39694,39696,39697,39698,39700,39701,39702,39703,39704,39705,39706,39707,39708,39709,39710,39712,39713,39714,39716,39717,39718,39719,39720,39721,39722,39723,39724,39725,39726,39728,39729,39731,39732,39733,39734,39735,39736,39737,39738,39741,39742,39743,39744,39750,39754,39755,39756,39758,39760,39762,39763,39765,39766,39767,39768,39769,39770,39771,39772,39773,39774,39775,39776,39777,39778,39779,39780,39781,39782,39783,39784,39785,39786,39787,39788,39789,39790,39791,39792,39793,39794,39795,39796,39797,39798,39799,39800,39801,39802,39803,31775,31786,31782,31800,31809,31808,33278,33281,33282,33284,33260,34884,33313,33314,33315,33325,33327,33320,33323,33336,33339,33331,33332,33342,33348,33353,33355,33359,33370,33375,33384,34942,34949,34952,35032,35039,35166,32669,32671,32679,32687,32688,32690,31868,25929,31889,31901,31900,31902,31906,31922,31932,31933,31937,31943,31948,31949,31944,31941,31959,31976,33390,26280,32703,32718,32725,32741,32737,32742,32745,32750,32755,31992,32119,32166,32174,32327,32411,40632,40628,36211,36228,36244,36241,36273,36199,36205,35911,35913,37194,37200,37198,37199,37220,39804,39805,39806,39807,39808,39809,39810,39811,39812,39813,39814,39815,39816,39817,39818,39819,39820,39821,39822,39823,39824,39825,39826,39827,39828,39829,39830,39831,39832,39833,39834,39835,39836,39837,39838,39839,39840,39841,39842,39843,39844,39845,39846,39847,39848,39849,39850,39851,39852,39853,39854,39855,39856,39857,39858,39859,39860,39861,39862,39863,39864,39865,39866,39867,39868,39869,39870,39871,39872,39873,39874,39875,39876,39877,39878,39879,39880,39881,39882,39883,39884,39885,39886,39887,39888,39889,39890,39891,39892,39893,39894,39895,39896,39897,39898,39899,37218,37217,37232,37225,37231,37245,37246,37234,37236,37241,37260,37253,37264,37261,37265,37282,37283,37290,37293,37294,37295,37301,37300,37306,35925,40574,36280,36331,36357,36441,36457,36277,36287,36284,36282,36292,36310,36311,36314,36318,36302,36303,36315,36294,36332,36343,36344,36323,36345,36347,36324,36361,36349,36372,36381,36383,36396,36398,36387,36399,36410,36416,36409,36405,36413,36401,36425,36417,36418,36433,36434,36426,36464,36470,36476,36463,36468,36485,36495,36500,36496,36508,36510,35960,35970,35978,35973,35992,35988,26011,35286,35294,35290,35292,39900,39901,39902,39903,39904,39905,39906,39907,39908,39909,39910,39911,39912,39913,39914,39915,39916,39917,39918,39919,39920,39921,39922,39923,39924,39925,39926,39927,39928,39929,39930,39931,39932,39933,39934,39935,39936,39937,39938,39939,39940,39941,39942,39943,39944,39945,39946,39947,39948,39949,39950,39951,39952,39953,39954,39955,39956,39957,39958,39959,39960,39961,39962,39963,39964,39965,39966,39967,39968,39969,39970,39971,39972,39973,39974,39975,39976,39977,39978,39979,39980,39981,39982,39983,39984,39985,39986,39987,39988,39989,39990,39991,39992,39993,39994,39995,35301,35307,35311,35390,35622,38739,38633,38643,38639,38662,38657,38664,38671,38670,38698,38701,38704,38718,40832,40835,40837,40838,40839,40840,40841,40842,40844,40702,40715,40717,38585,38588,38589,38606,38610,30655,38624,37518,37550,37576,37694,37738,37834,37775,37950,37995,40063,40066,40069,40070,40071,40072,31267,40075,40078,40080,40081,40082,40084,40085,40090,40091,40094,40095,40096,40097,40098,40099,40101,40102,40103,40104,40105,40107,40109,40110,40112,40113,40114,40115,40116,40117,40118,40119,40122,40123,40124,40125,40132,40133,40134,40135,40138,40139,39996,39997,39998,39999,4e4,40001,40002,40003,40004,40005,40006,40007,40008,40009,40010,40011,40012,40013,40014,40015,40016,40017,40018,40019,40020,40021,40022,40023,40024,40025,40026,40027,40028,40029,40030,40031,40032,40033,40034,40035,40036,40037,40038,40039,40040,40041,40042,40043,40044,40045,40046,40047,40048,40049,40050,40051,40052,40053,40054,40055,40056,40057,40058,40059,40061,40062,40064,40067,40068,40073,40074,40076,40079,40083,40086,40087,40088,40089,40093,40106,40108,40111,40121,40126,40127,40128,40129,40130,40136,40137,40145,40146,40154,40155,40160,40161,40140,40141,40142,40143,40144,40147,40148,40149,40151,40152,40153,40156,40157,40159,40162,38780,38789,38801,38802,38804,38831,38827,38819,38834,38836,39601,39600,39607,40536,39606,39610,39612,39617,39616,39621,39618,39627,39628,39633,39749,39747,39751,39753,39752,39757,39761,39144,39181,39214,39253,39252,39647,39649,39654,39663,39659,39675,39661,39673,39688,39695,39699,39711,39715,40637,40638,32315,40578,40583,40584,40587,40594,37846,40605,40607,40667,40668,40669,40672,40671,40674,40681,40679,40677,40682,40687,40738,40748,40751,40761,40759,40765,40766,40772,40163,40164,40165,40166,40167,40168,40169,40170,40171,40172,40173,40174,40175,40176,40177,40178,40179,40180,40181,40182,40183,40184,40185,40186,40187,40188,40189,40190,40191,40192,40193,40194,40195,40196,40197,40198,40199,40200,40201,40202,40203,40204,40205,40206,40207,40208,40209,40210,40211,40212,40213,40214,40215,40216,40217,40218,40219,40220,40221,40222,40223,40224,40225,40226,40227,40228,40229,40230,40231,40232,40233,40234,40235,40236,40237,40238,40239,40240,40241,40242,40243,40244,40245,40246,40247,40248,40249,40250,40251,40252,40253,40254,40255,40256,40257,40258,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,40259,40260,40261,40262,40263,40264,40265,40266,40267,40268,40269,40270,40271,40272,40273,40274,40275,40276,40277,40278,40279,40280,40281,40282,40283,40284,40285,40286,40287,40288,40289,40290,40291,40292,40293,40294,40295,40296,40297,40298,40299,40300,40301,40302,40303,40304,40305,40306,40307,40308,40309,40310,40311,40312,40313,40314,40315,40316,40317,40318,40319,40320,40321,40322,40323,40324,40325,40326,40327,40328,40329,40330,40331,40332,40333,40334,40335,40336,40337,40338,40339,40340,40341,40342,40343,40344,40345,40346,40347,40348,40349,40350,40351,40352,40353,40354,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,40355,40356,40357,40358,40359,40360,40361,40362,40363,40364,40365,40366,40367,40368,40369,40370,40371,40372,40373,40374,40375,40376,40377,40378,40379,40380,40381,40382,40383,40384,40385,40386,40387,40388,40389,40390,40391,40392,40393,40394,40395,40396,40397,40398,40399,40400,40401,40402,40403,40404,40405,40406,40407,40408,40409,40410,40411,40412,40413,40414,40415,40416,40417,40418,40419,40420,40421,40422,40423,40424,40425,40426,40427,40428,40429,40430,40431,40432,40433,40434,40435,40436,40437,40438,40439,40440,40441,40442,40443,40444,40445,40446,40447,40448,40449,40450,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,40451,40452,40453,40454,40455,40456,40457,40458,40459,40460,40461,40462,40463,40464,40465,40466,40467,40468,40469,40470,40471,40472,40473,40474,40475,40476,40477,40478,40484,40487,40494,40496,40500,40507,40508,40512,40525,40528,40530,40531,40532,40534,40537,40541,40543,40544,40545,40546,40549,40558,40559,40562,40564,40565,40566,40567,40568,40569,40570,40571,40572,40573,40576,40577,40579,40580,40581,40582,40585,40586,40588,40589,40590,40591,40592,40593,40596,40597,40598,40599,40600,40601,40602,40603,40604,40606,40608,40609,40610,40611,40612,40613,40615,40616,40617,40618,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,40619,40620,40621,40622,40623,40624,40625,40626,40627,40629,40630,40631,40633,40634,40636,40639,40640,40641,40642,40643,40645,40646,40647,40648,40650,40651,40652,40656,40658,40659,40661,40662,40663,40665,40666,40670,40673,40675,40676,40678,40680,40683,40684,40685,40686,40688,40689,40690,40691,40692,40693,40694,40695,40696,40698,40701,40703,40704,40705,40706,40707,40708,40709,40710,40711,40712,40713,40714,40716,40719,40721,40722,40724,40725,40726,40728,40730,40731,40732,40733,40734,40735,40737,40739,40740,40741,40742,40743,40744,40745,40746,40747,40749,40750,40752,40753,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,40754,40755,40756,40757,40758,40760,40762,40764,40767,40768,40769,40770,40771,40773,40774,40775,40776,40777,40778,40779,40780,40781,40782,40783,40786,40787,40788,40789,40790,40791,40792,40793,40794,40795,40796,40797,40798,40799,40800,40801,40802,40803,40804,40805,40806,40807,40808,40809,40810,40811,40812,40813,40814,40815,40816,40817,40818,40819,40820,40821,40822,40823,40824,40825,40826,40827,40828,40829,40830,40833,40834,40845,40846,40847,40848,40849,40850,40851,40852,40853,40854,40855,40856,40860,40861,40862,40865,40866,40867,40868,40869,63788,63865,63893,63975,63985,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,64012,64013,64014,64015,64017,64019,64020,64024,64031,64032,64033,64035,64036,64039,64040,64041,11905,null,null,null,11908,13427,13383,11912,11915,null,13726,13850,13838,11916,11927,14702,14616,null,14799,14815,14963,14800,null,null,15182,15470,15584,11943,null,null,11946,16470,16735,11950,17207,11955,11958,11959,null,17329,17324,11963,17373,17622,18017,17996,null,18211,18217,18300,18317,11978,18759,18810,18813,18818,18819,18821,18822,18847,18843,18871,18870,null,null,19619,19615,19616,19617,19575,19618,19731,19732,19733,19734,19735,19736,19737,19886,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],gb18030:[[0,128],[36,165],[38,169],[45,178],[50,184],[81,216],[89,226],[95,235],[96,238],[100,244],[103,248],[104,251],[105,253],[109,258],[126,276],[133,284],[148,300],[172,325],[175,329],[179,334],[208,364],[306,463],[307,465],[308,467],[309,469],[310,471],[311,473],[312,475],[313,477],[341,506],[428,594],[443,610],[544,712],[545,716],[558,730],[741,930],[742,938],[749,962],[750,970],[805,1026],[819,1104],[820,1106],[7922,8209],[7924,8215],[7925,8218],[7927,8222],[7934,8231],[7943,8241],[7944,8244],[7945,8246],[7950,8252],[8062,8365],[8148,8452],[8149,8454],[8152,8458],[8164,8471],[8174,8482],[8236,8556],[8240,8570],[8262,8596],[8264,8602],[8374,8713],[8380,8720],[8381,8722],[8384,8726],[8388,8731],[8390,8737],[8392,8740],[8393,8742],[8394,8748],[8396,8751],[8401,8760],[8406,8766],[8416,8777],[8419,8781],[8424,8787],[8437,8802],[8439,8808],[8445,8816],[8482,8854],[8485,8858],[8496,8870],[8521,8896],[8603,8979],[8936,9322],[8946,9372],[9046,9548],[9050,9588],[9063,9616],[9066,9622],[9076,9634],[9092,9652],[9100,9662],[9108,9672],[9111,9676],[9113,9680],[9131,9702],[9162,9735],[9164,9738],[9218,9793],[9219,9795],[11329,11906],[11331,11909],[11334,11913],[11336,11917],[11346,11928],[11361,11944],[11363,11947],[11366,11951],[11370,11956],[11372,11960],[11375,11964],[11389,11979],[11682,12284],[11686,12292],[11687,12312],[11692,12319],[11694,12330],[11714,12351],[11716,12436],[11723,12447],[11725,12535],[11730,12543],[11736,12586],[11982,12842],[11989,12850],[12102,12964],[12336,13200],[12348,13215],[12350,13218],[12384,13253],[12393,13263],[12395,13267],[12397,13270],[12510,13384],[12553,13428],[12851,13727],[12962,13839],[12973,13851],[13738,14617],[13823,14703],[13919,14801],[13933,14816],[14080,14964],[14298,15183],[14585,15471],[14698,15585],[15583,16471],[15847,16736],[16318,17208],[16434,17325],[16438,17330],[16481,17374],[16729,17623],[17102,17997],[17122,18018],[17315,18212],[17320,18218],[17402,18301],[17418,18318],[17859,18760],[17909,18811],[17911,18814],[17915,18820],[17916,18823],[17936,18844],[17939,18848],[17961,18872],[18664,19576],[18703,19620],[18814,19738],[18962,19887],[19043,40870],[33469,59244],[33470,59336],[33471,59367],[33484,59413],[33485,59417],[33490,59423],[33497,59431],[33501,59437],[33505,59443],[33513,59452],[33520,59460],[33536,59478],[33550,59493],[37845,63789],[37921,63866],[37948,63894],[38029,63976],[38038,63986],[38064,64016],[38065,64018],[38066,64021],[38069,64025],[38075,64034],[38076,64037],[38078,64042],[39108,65074],[39109,65093],[39113,65107],[39114,65112],[39115,65127],[39116,65132],[39265,65375],[39394,65510],[189e3,65536]],jis0208:[12288,12289,12290,65292,65294,12539,65306,65307,65311,65281,12443,12444,180,65344,168,65342,65507,65343,12541,12542,12445,12446,12291,20189,12293,12294,12295,12540,8213,8208,65295,65340,65374,8741,65372,8230,8229,8216,8217,8220,8221,65288,65289,12308,12309,65339,65341,65371,65373,12296,12297,12298,12299,12300,12301,12302,12303,12304,12305,65291,65293,177,215,247,65309,8800,65308,65310,8806,8807,8734,8756,9794,9792,176,8242,8243,8451,65509,65284,65504,65505,65285,65283,65286,65290,65312,167,9734,9733,9675,9679,9678,9671,9670,9633,9632,9651,9650,9661,9660,8251,12306,8594,8592,8593,8595,12307,null,null,null,null,null,null,null,null,null,null,null,8712,8715,8838,8839,8834,8835,8746,8745,null,null,null,null,null,null,null,null,8743,8744,65506,8658,8660,8704,8707,null,null,null,null,null,null,null,null,null,null,null,8736,8869,8978,8706,8711,8801,8786,8810,8811,8730,8765,8733,8757,8747,8748,null,null,null,null,null,null,null,8491,8240,9839,9837,9834,8224,8225,182,null,null,null,null,9711,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,65296,65297,65298,65299,65300,65301,65302,65303,65304,65305,null,null,null,null,null,null,null,65313,65314,65315,65316,65317,65318,65319,65320,65321,65322,65323,65324,65325,65326,65327,65328,65329,65330,65331,65332,65333,65334,65335,65336,65337,65338,null,null,null,null,null,null,65345,65346,65347,65348,65349,65350,65351,65352,65353,65354,65355,65356,65357,65358,65359,65360,65361,65362,65363,65364,65365,65366,65367,65368,65369,65370,null,null,null,null,12353,12354,12355,12356,12357,12358,12359,12360,12361,12362,12363,12364,12365,12366,12367,12368,12369,12370,12371,12372,12373,12374,12375,12376,12377,12378,12379,12380,12381,12382,12383,12384,12385,12386,12387,12388,12389,12390,12391,12392,12393,12394,12395,12396,12397,12398,12399,12400,12401,12402,12403,12404,12405,12406,12407,12408,12409,12410,12411,12412,12413,12414,12415,12416,12417,12418,12419,12420,12421,12422,12423,12424,12425,12426,12427,12428,12429,12430,12431,12432,12433,12434,12435,null,null,null,null,null,null,null,null,null,null,null,12449,12450,12451,12452,12453,12454,12455,12456,12457,12458,12459,12460,12461,12462,12463,12464,12465,12466,12467,12468,12469,12470,12471,12472,12473,12474,12475,12476,12477,12478,12479,12480,12481,12482,12483,12484,12485,12486,12487,12488,12489,12490,12491,12492,12493,12494,12495,12496,12497,12498,12499,12500,12501,12502,12503,12504,12505,12506,12507,12508,12509,12510,12511,12512,12513,12514,12515,12516,12517,12518,12519,12520,12521,12522,12523,12524,12525,12526,12527,12528,12529,12530,12531,12532,12533,12534,null,null,null,null,null,null,null,null,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,null,null,null,null,null,null,null,null,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,963,964,965,966,967,968,969,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,1040,1041,1042,1043,1044,1045,1025,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,1072,1073,1074,1075,1076,1077,1105,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,null,null,null,null,null,null,null,null,null,null,null,null,null,9472,9474,9484,9488,9496,9492,9500,9516,9508,9524,9532,9473,9475,9487,9491,9499,9495,9507,9523,9515,9531,9547,9504,9519,9512,9527,9535,9501,9520,9509,9528,9538,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,9312,9313,9314,9315,9316,9317,9318,9319,9320,9321,9322,9323,9324,9325,9326,9327,9328,9329,9330,9331,8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,null,13129,13076,13090,13133,13080,13095,13059,13110,13137,13143,13069,13094,13091,13099,13130,13115,13212,13213,13214,13198,13199,13252,13217,null,null,null,null,null,null,null,null,13179,12317,12319,8470,13261,8481,12964,12965,12966,12967,12968,12849,12850,12857,13182,13181,13180,8786,8801,8747,8750,8721,8730,8869,8736,8735,8895,8757,8745,8746,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,20124,21782,23043,38463,21696,24859,25384,23030,36898,33909,33564,31312,24746,25569,28197,26093,33894,33446,39925,26771,22311,26017,25201,23451,22992,34427,39156,32098,32190,39822,25110,31903,34999,23433,24245,25353,26263,26696,38343,38797,26447,20197,20234,20301,20381,20553,22258,22839,22996,23041,23561,24799,24847,24944,26131,26885,28858,30031,30064,31227,32173,32239,32963,33806,34915,35586,36949,36986,21307,20117,20133,22495,32946,37057,30959,19968,22769,28322,36920,31282,33576,33419,39983,20801,21360,21693,21729,22240,23035,24341,39154,28139,32996,34093,38498,38512,38560,38907,21515,21491,23431,28879,32701,36802,38632,21359,40284,31418,19985,30867,33276,28198,22040,21764,27421,34074,39995,23013,21417,28006,29916,38287,22082,20113,36939,38642,33615,39180,21473,21942,23344,24433,26144,26355,26628,27704,27891,27945,29787,30408,31310,38964,33521,34907,35424,37613,28082,30123,30410,39365,24742,35585,36234,38322,27022,21421,20870,22290,22576,22852,23476,24310,24616,25513,25588,27839,28436,28814,28948,29017,29141,29503,32257,33398,33489,34199,36960,37467,40219,22633,26044,27738,29989,20985,22830,22885,24448,24540,25276,26106,27178,27431,27572,29579,32705,35158,40236,40206,40644,23713,27798,33659,20740,23627,25014,33222,26742,29281,20057,20474,21368,24681,28201,31311,38899,19979,21270,20206,20309,20285,20385,20339,21152,21487,22025,22799,23233,23478,23521,31185,26247,26524,26550,27468,27827,28779,29634,31117,31166,31292,31623,33457,33499,33540,33655,33775,33747,34662,35506,22057,36008,36838,36942,38686,34442,20420,23784,25105,29273,30011,33253,33469,34558,36032,38597,39187,39381,20171,20250,35299,22238,22602,22730,24315,24555,24618,24724,24674,25040,25106,25296,25913,39745,26214,26800,28023,28784,30028,30342,32117,33445,34809,38283,38542,35997,20977,21182,22806,21683,23475,23830,24936,27010,28079,30861,33995,34903,35442,37799,39608,28012,39336,34521,22435,26623,34510,37390,21123,22151,21508,24275,25313,25785,26684,26680,27579,29554,30906,31339,35226,35282,36203,36611,37101,38307,38548,38761,23398,23731,27005,38989,38990,25499,31520,27179,27263,26806,39949,28511,21106,21917,24688,25324,27963,28167,28369,33883,35088,36676,19988,39993,21494,26907,27194,38788,26666,20828,31427,33970,37340,37772,22107,40232,26658,33541,33841,31909,21e3,33477,29926,20094,20355,20896,23506,21002,21208,21223,24059,21914,22570,23014,23436,23448,23515,24178,24185,24739,24863,24931,25022,25563,25954,26577,26707,26874,27454,27475,27735,28450,28567,28485,29872,29976,30435,30475,31487,31649,31777,32233,32566,32752,32925,33382,33694,35251,35532,36011,36996,37969,38291,38289,38306,38501,38867,39208,33304,20024,21547,23736,24012,29609,30284,30524,23721,32747,36107,38593,38929,38996,39e3,20225,20238,21361,21916,22120,22522,22855,23305,23492,23696,24076,24190,24524,25582,26426,26071,26082,26399,26827,26820,27231,24112,27589,27671,27773,30079,31048,23395,31232,32e3,24509,35215,35352,36020,36215,36556,36637,39138,39438,39740,20096,20605,20736,22931,23452,25135,25216,25836,27450,29344,30097,31047,32681,34811,35516,35696,25516,33738,38816,21513,21507,21931,26708,27224,35440,30759,26485,40653,21364,23458,33050,34384,36870,19992,20037,20167,20241,21450,21560,23470,24339,24613,25937,26429,27714,27762,27875,28792,29699,31350,31406,31496,32026,31998,32102,26087,29275,21435,23621,24040,25298,25312,25369,28192,34394,35377,36317,37624,28417,31142,39770,20136,20139,20140,20379,20384,20689,20807,31478,20849,20982,21332,21281,21375,21483,21932,22659,23777,24375,24394,24623,24656,24685,25375,25945,27211,27841,29378,29421,30703,33016,33029,33288,34126,37111,37857,38911,39255,39514,20208,20957,23597,26241,26989,23616,26354,26997,29577,26704,31873,20677,21220,22343,24062,37670,26020,27427,27453,29748,31105,31165,31563,32202,33465,33740,34943,35167,35641,36817,37329,21535,37504,20061,20534,21477,21306,29399,29590,30697,33510,36527,39366,39368,39378,20855,24858,34398,21936,31354,20598,23507,36935,38533,20018,27355,37351,23633,23624,25496,31391,27795,38772,36705,31402,29066,38536,31874,26647,32368,26705,37740,21234,21531,34219,35347,32676,36557,37089,21350,34952,31041,20418,20670,21009,20804,21843,22317,29674,22411,22865,24418,24452,24693,24950,24935,25001,25522,25658,25964,26223,26690,28179,30054,31293,31995,32076,32153,32331,32619,33550,33610,34509,35336,35427,35686,36605,38938,40335,33464,36814,39912,21127,25119,25731,28608,38553,26689,20625,27424,27770,28500,31348,32080,34880,35363,26376,20214,20537,20518,20581,20860,21048,21091,21927,22287,22533,23244,24314,25010,25080,25331,25458,26908,27177,29309,29356,29486,30740,30831,32121,30476,32937,35211,35609,36066,36562,36963,37749,38522,38997,39443,40568,20803,21407,21427,24187,24358,28187,28304,29572,29694,32067,33335,35328,35578,38480,20046,20491,21476,21628,22266,22993,23396,24049,24235,24359,25144,25925,26543,28246,29392,31946,34996,32929,32993,33776,34382,35463,36328,37431,38599,39015,40723,20116,20114,20237,21320,21577,21566,23087,24460,24481,24735,26791,27278,29786,30849,35486,35492,35703,37264,20062,39881,20132,20348,20399,20505,20502,20809,20844,21151,21177,21246,21402,21475,21521,21518,21897,22353,22434,22909,23380,23389,23439,24037,24039,24055,24184,24195,24218,24247,24344,24658,24908,25239,25304,25511,25915,26114,26179,26356,26477,26657,26775,27083,27743,27946,28009,28207,28317,30002,30343,30828,31295,31968,32005,32024,32094,32177,32789,32771,32943,32945,33108,33167,33322,33618,34892,34913,35611,36002,36092,37066,37237,37489,30783,37628,38308,38477,38917,39321,39640,40251,21083,21163,21495,21512,22741,25335,28640,35946,36703,40633,20811,21051,21578,22269,31296,37239,40288,40658,29508,28425,33136,29969,24573,24794,39592,29403,36796,27492,38915,20170,22256,22372,22718,23130,24680,25031,26127,26118,26681,26801,28151,30165,32058,33390,39746,20123,20304,21449,21766,23919,24038,24046,26619,27801,29811,30722,35408,37782,35039,22352,24231,25387,20661,20652,20877,26368,21705,22622,22971,23472,24425,25165,25505,26685,27507,28168,28797,37319,29312,30741,30758,31085,25998,32048,33756,35009,36617,38555,21092,22312,26448,32618,36001,20916,22338,38442,22586,27018,32948,21682,23822,22524,30869,40442,20316,21066,21643,25662,26152,26388,26613,31364,31574,32034,37679,26716,39853,31545,21273,20874,21047,23519,25334,25774,25830,26413,27578,34217,38609,30352,39894,25420,37638,39851,30399,26194,19977,20632,21442,23665,24808,25746,25955,26719,29158,29642,29987,31639,32386,34453,35715,36059,37240,39184,26028,26283,27531,20181,20180,20282,20351,21050,21496,21490,21987,22235,22763,22987,22985,23039,23376,23629,24066,24107,24535,24605,25351,25903,23388,26031,26045,26088,26525,27490,27515,27663,29509,31049,31169,31992,32025,32043,32930,33026,33267,35222,35422,35433,35430,35468,35566,36039,36060,38604,39164,27503,20107,20284,20365,20816,23383,23546,24904,25345,26178,27425,28363,27835,29246,29885,30164,30913,31034,32780,32819,33258,33940,36766,27728,40575,24335,35672,40235,31482,36600,23437,38635,19971,21489,22519,22833,23241,23460,24713,28287,28422,30142,36074,23455,34048,31712,20594,26612,33437,23649,34122,32286,33294,20889,23556,25448,36198,26012,29038,31038,32023,32773,35613,36554,36974,34503,37034,20511,21242,23610,26451,28796,29237,37196,37320,37675,33509,23490,24369,24825,20027,21462,23432,25163,26417,27530,29417,29664,31278,33131,36259,37202,39318,20754,21463,21610,23551,25480,27193,32172,38656,22234,21454,21608,23447,23601,24030,20462,24833,25342,27954,31168,31179,32066,32333,32722,33261,33311,33936,34886,35186,35728,36468,36655,36913,37195,37228,38598,37276,20160,20303,20805,21313,24467,25102,26580,27713,28171,29539,32294,37325,37507,21460,22809,23487,28113,31069,32302,31899,22654,29087,20986,34899,36848,20426,23803,26149,30636,31459,33308,39423,20934,24490,26092,26991,27529,28147,28310,28516,30462,32020,24033,36981,37255,38918,20966,21021,25152,26257,26329,28186,24246,32210,32626,26360,34223,34295,35576,21161,21465,22899,24207,24464,24661,37604,38500,20663,20767,21213,21280,21319,21484,21736,21830,21809,22039,22888,22974,23100,23477,23558,23567,23569,23578,24196,24202,24288,24432,25215,25220,25307,25484,25463,26119,26124,26157,26230,26494,26786,27167,27189,27836,28040,28169,28248,28988,28966,29031,30151,30465,30813,30977,31077,31216,31456,31505,31911,32057,32918,33750,33931,34121,34909,35059,35359,35388,35412,35443,35937,36062,37284,37478,37758,37912,38556,38808,19978,19976,19998,20055,20887,21104,22478,22580,22732,23330,24120,24773,25854,26465,26454,27972,29366,30067,31331,33976,35698,37304,37664,22065,22516,39166,25325,26893,27542,29165,32340,32887,33394,35302,39135,34645,36785,23611,20280,20449,20405,21767,23072,23517,23529,24515,24910,25391,26032,26187,26862,27035,28024,28145,30003,30137,30495,31070,31206,32051,33251,33455,34218,35242,35386,36523,36763,36914,37341,38663,20154,20161,20995,22645,22764,23563,29978,23613,33102,35338,36805,38499,38765,31525,35535,38920,37218,22259,21416,36887,21561,22402,24101,25512,27700,28810,30561,31883,32736,34928,36930,37204,37648,37656,38543,29790,39620,23815,23913,25968,26530,36264,38619,25454,26441,26905,33733,38935,38592,35070,28548,25722,23544,19990,28716,30045,26159,20932,21046,21218,22995,24449,24615,25104,25919,25972,26143,26228,26866,26646,27491,28165,29298,29983,30427,31934,32854,22768,35069,35199,35488,35475,35531,36893,37266,38738,38745,25993,31246,33030,38587,24109,24796,25114,26021,26132,26512,30707,31309,31821,32318,33034,36012,36196,36321,36447,30889,20999,25305,25509,25666,25240,35373,31363,31680,35500,38634,32118,33292,34633,20185,20808,21315,21344,23459,23554,23574,24029,25126,25159,25776,26643,26676,27849,27973,27927,26579,28508,29006,29053,26059,31359,31661,32218,32330,32680,33146,33307,33337,34214,35438,36046,36341,36984,36983,37549,37521,38275,39854,21069,21892,28472,28982,20840,31109,32341,33203,31950,22092,22609,23720,25514,26366,26365,26970,29401,30095,30094,30990,31062,31199,31895,32032,32068,34311,35380,38459,36961,40736,20711,21109,21452,21474,20489,21930,22766,22863,29245,23435,23652,21277,24803,24819,25436,25475,25407,25531,25805,26089,26361,24035,27085,27133,28437,29157,20105,30185,30456,31379,31967,32207,32156,32865,33609,33624,33900,33980,34299,35013,36208,36865,36973,37783,38684,39442,20687,22679,24974,33235,34101,36104,36896,20419,20596,21063,21363,24687,25417,26463,28204,36275,36895,20439,23646,36042,26063,32154,21330,34966,20854,25539,23384,23403,23562,25613,26449,36956,20182,22810,22826,27760,35409,21822,22549,22949,24816,25171,26561,33333,26965,38464,39364,39464,20307,22534,23550,32784,23729,24111,24453,24608,24907,25140,26367,27888,28382,32974,33151,33492,34955,36024,36864,36910,38538,40667,39899,20195,21488,22823,31532,37261,38988,40441,28381,28711,21331,21828,23429,25176,25246,25299,27810,28655,29730,35351,37944,28609,35582,33592,20967,34552,21482,21481,20294,36948,36784,22890,33073,24061,31466,36799,26842,35895,29432,40008,27197,35504,20025,21336,22022,22374,25285,25506,26086,27470,28129,28251,28845,30701,31471,31658,32187,32829,32966,34507,35477,37723,22243,22727,24382,26029,26262,27264,27573,30007,35527,20516,30693,22320,24347,24677,26234,27744,30196,31258,32622,33268,34584,36933,39347,31689,30044,31481,31569,33988,36880,31209,31378,33590,23265,30528,20013,20210,23449,24544,25277,26172,26609,27880,34411,34935,35387,37198,37619,39376,27159,28710,29482,33511,33879,36015,19969,20806,20939,21899,23541,24086,24115,24193,24340,24373,24427,24500,25074,25361,26274,26397,28526,29266,30010,30522,32884,33081,33144,34678,35519,35548,36229,36339,37530,38263,38914,40165,21189,25431,30452,26389,27784,29645,36035,37806,38515,27941,22684,26894,27084,36861,37786,30171,36890,22618,26626,25524,27131,20291,28460,26584,36795,34086,32180,37716,26943,28528,22378,22775,23340,32044,29226,21514,37347,40372,20141,20302,20572,20597,21059,35998,21576,22564,23450,24093,24213,24237,24311,24351,24716,25269,25402,25552,26799,27712,30855,31118,31243,32224,33351,35330,35558,36420,36883,37048,37165,37336,40718,27877,25688,25826,25973,28404,30340,31515,36969,37841,28346,21746,24505,25764,36685,36845,37444,20856,22635,22825,23637,24215,28155,32399,29980,36028,36578,39003,28857,20253,27583,28593,3e4,38651,20814,21520,22581,22615,22956,23648,24466,26007,26460,28193,30331,33759,36077,36884,37117,37709,30757,30778,21162,24230,22303,22900,24594,20498,20826,20908,20941,20992,21776,22612,22616,22871,23445,23798,23947,24764,25237,25645,26481,26691,26812,26847,30423,28120,28271,28059,28783,29128,24403,30168,31095,31561,31572,31570,31958,32113,21040,33891,34153,34276,35342,35588,35910,36367,36867,36879,37913,38518,38957,39472,38360,20685,21205,21516,22530,23566,24999,25758,27934,30643,31461,33012,33796,36947,37509,23776,40199,21311,24471,24499,28060,29305,30563,31167,31716,27602,29420,35501,26627,27233,20984,31361,26932,23626,40182,33515,23493,37193,28702,22136,23663,24775,25958,27788,35930,36929,38931,21585,26311,37389,22856,37027,20869,20045,20970,34201,35598,28760,25466,37707,26978,39348,32260,30071,21335,26976,36575,38627,27741,20108,23612,24336,36841,21250,36049,32905,34425,24319,26085,20083,20837,22914,23615,38894,20219,22922,24525,35469,28641,31152,31074,23527,33905,29483,29105,24180,24565,25467,25754,29123,31896,20035,24316,20043,22492,22178,24745,28611,32013,33021,33075,33215,36786,35223,34468,24052,25226,25773,35207,26487,27874,27966,29750,30772,23110,32629,33453,39340,20467,24259,25309,25490,25943,26479,30403,29260,32972,32954,36649,37197,20493,22521,23186,26757,26995,29028,29437,36023,22770,36064,38506,36889,34687,31204,30695,33833,20271,21093,21338,25293,26575,27850,30333,31636,31893,33334,34180,36843,26333,28448,29190,32283,33707,39361,40614,20989,31665,30834,31672,32903,31560,27368,24161,32908,30033,30048,20843,37474,28300,30330,37271,39658,20240,32624,25244,31567,38309,40169,22138,22617,34532,38588,20276,21028,21322,21453,21467,24070,25644,26001,26495,27710,27726,29256,29359,29677,30036,32321,33324,34281,36009,31684,37318,29033,38930,39151,25405,26217,30058,30436,30928,34115,34542,21290,21329,21542,22915,24199,24444,24754,25161,25209,25259,26e3,27604,27852,30130,30382,30865,31192,32203,32631,32933,34987,35513,36027,36991,38750,39131,27147,31800,20633,23614,24494,26503,27608,29749,30473,32654,40763,26570,31255,21305,30091,39661,24422,33181,33777,32920,24380,24517,30050,31558,36924,26727,23019,23195,32016,30334,35628,20469,24426,27161,27703,28418,29922,31080,34920,35413,35961,24287,25551,30149,31186,33495,37672,37618,33948,34541,39981,21697,24428,25996,27996,28693,36007,36051,38971,25935,29942,19981,20184,22496,22827,23142,23500,20904,24067,24220,24598,25206,25975,26023,26222,28014,29238,31526,33104,33178,33433,35676,36e3,36070,36212,38428,38468,20398,25771,27494,33310,33889,34154,37096,23553,26963,39080,33914,34135,20239,21103,24489,24133,26381,31119,33145,35079,35206,28149,24343,25173,27832,20175,29289,39826,20998,21563,22132,22707,24996,25198,28954,22894,31881,31966,32027,38640,25991,32862,19993,20341,20853,22592,24163,24179,24330,26564,20006,34109,38281,38491,31859,38913,20731,22721,30294,30887,21029,30629,34065,31622,20559,22793,29255,31687,32232,36794,36820,36941,20415,21193,23081,24321,38829,20445,33303,37610,22275,25429,27497,29995,35036,36628,31298,21215,22675,24917,25098,26286,27597,31807,33769,20515,20472,21253,21574,22577,22857,23453,23792,23791,23849,24214,25265,25447,25918,26041,26379,27861,27873,28921,30770,32299,32990,33459,33804,34028,34562,35090,35370,35914,37030,37586,39165,40179,40300,20047,20129,20621,21078,22346,22952,24125,24536,24537,25151,26292,26395,26576,26834,20882,32033,32938,33192,35584,35980,36031,37502,38450,21536,38956,21271,20693,21340,22696,25778,26420,29287,30566,31302,37350,21187,27809,27526,22528,24140,22868,26412,32763,20961,30406,25705,30952,39764,40635,22475,22969,26151,26522,27598,21737,27097,24149,33180,26517,39850,26622,40018,26717,20134,20451,21448,25273,26411,27819,36804,20397,32365,40639,19975,24930,28288,28459,34067,21619,26410,39749,24051,31637,23724,23494,34588,28234,34001,31252,33032,22937,31885,27665,30496,21209,22818,28961,29279,30683,38695,40289,26891,23167,23064,20901,21517,21629,26126,30431,36855,37528,40180,23018,29277,28357,20813,26825,32191,32236,38754,40634,25720,27169,33538,22916,23391,27611,29467,30450,32178,32791,33945,20786,26408,40665,30446,26466,21247,39173,23588,25147,31870,36016,21839,24758,32011,38272,21249,20063,20918,22812,29242,32822,37326,24357,30690,21380,24441,32004,34220,35379,36493,38742,26611,34222,37971,24841,24840,27833,30290,35565,36664,21807,20305,20778,21191,21451,23461,24189,24736,24962,25558,26377,26586,28263,28044,29494,29495,30001,31056,35029,35480,36938,37009,37109,38596,34701,22805,20104,20313,19982,35465,36671,38928,20653,24188,22934,23481,24248,25562,25594,25793,26332,26954,27096,27915,28342,29076,29992,31407,32650,32768,33865,33993,35201,35617,36362,36965,38525,39178,24958,25233,27442,27779,28020,32716,32764,28096,32645,34746,35064,26469,33713,38972,38647,27931,32097,33853,37226,20081,21365,23888,27396,28651,34253,34349,35239,21033,21519,23653,26446,26792,29702,29827,30178,35023,35041,37324,38626,38520,24459,29575,31435,33870,25504,30053,21129,27969,28316,29705,30041,30827,31890,38534,31452,40845,20406,24942,26053,34396,20102,20142,20698,20001,20940,23534,26009,26753,28092,29471,30274,30637,31260,31975,33391,35538,36988,37327,38517,38936,21147,32209,20523,21400,26519,28107,29136,29747,33256,36650,38563,40023,40607,29792,22593,28057,32047,39006,20196,20278,20363,20919,21169,23994,24604,29618,31036,33491,37428,38583,38646,38666,40599,40802,26278,27508,21015,21155,28872,35010,24265,24651,24976,28451,29001,31806,32244,32879,34030,36899,37676,21570,39791,27347,28809,36034,36335,38706,21172,23105,24266,24324,26391,27004,27028,28010,28431,29282,29436,31725,32769,32894,34635,37070,20845,40595,31108,32907,37682,35542,20525,21644,35441,27498,36036,33031,24785,26528,40434,20121,20120,39952,35435,34241,34152,26880,28286,30871,33109,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,24332,19984,19989,20010,20017,20022,20028,20031,20034,20054,20056,20098,20101,35947,20106,33298,24333,20110,20126,20127,20128,20130,20144,20147,20150,20174,20173,20164,20166,20162,20183,20190,20205,20191,20215,20233,20314,20272,20315,20317,20311,20295,20342,20360,20367,20376,20347,20329,20336,20369,20335,20358,20374,20760,20436,20447,20430,20440,20443,20433,20442,20432,20452,20453,20506,20520,20500,20522,20517,20485,20252,20470,20513,20521,20524,20478,20463,20497,20486,20547,20551,26371,20565,20560,20552,20570,20566,20588,20600,20608,20634,20613,20660,20658,20681,20682,20659,20674,20694,20702,20709,20717,20707,20718,20729,20725,20745,20737,20738,20758,20757,20756,20762,20769,20794,20791,20796,20795,20799,20800,20818,20812,20820,20834,31480,20841,20842,20846,20864,20866,22232,20876,20873,20879,20881,20883,20885,20886,20900,20902,20898,20905,20906,20907,20915,20913,20914,20912,20917,20925,20933,20937,20955,20960,34389,20969,20973,20976,20981,20990,20996,21003,21012,21006,21031,21034,21038,21043,21049,21071,21060,21067,21068,21086,21076,21098,21108,21097,21107,21119,21117,21133,21140,21138,21105,21128,21137,36776,36775,21164,21165,21180,21173,21185,21197,21207,21214,21219,21222,39149,21216,21235,21237,21240,21241,21254,21256,30008,21261,21264,21263,21269,21274,21283,21295,21297,21299,21304,21312,21318,21317,19991,21321,21325,20950,21342,21353,21358,22808,21371,21367,21378,21398,21408,21414,21413,21422,21424,21430,21443,31762,38617,21471,26364,29166,21486,21480,21485,21498,21505,21565,21568,21548,21549,21564,21550,21558,21545,21533,21582,21647,21621,21646,21599,21617,21623,21616,21650,21627,21632,21622,21636,21648,21638,21703,21666,21688,21669,21676,21700,21704,21672,21675,21698,21668,21694,21692,21720,21733,21734,21775,21780,21757,21742,21741,21754,21730,21817,21824,21859,21836,21806,21852,21829,21846,21847,21816,21811,21853,21913,21888,21679,21898,21919,21883,21886,21912,21918,21934,21884,21891,21929,21895,21928,21978,21957,21983,21956,21980,21988,21972,22036,22007,22038,22014,22013,22043,22009,22094,22096,29151,22068,22070,22066,22072,22123,22116,22063,22124,22122,22150,22144,22154,22176,22164,22159,22181,22190,22198,22196,22210,22204,22209,22211,22208,22216,22222,22225,22227,22231,22254,22265,22272,22271,22276,22281,22280,22283,22285,22291,22296,22294,21959,22300,22310,22327,22328,22350,22331,22336,22351,22377,22464,22408,22369,22399,22409,22419,22432,22451,22436,22442,22448,22467,22470,22484,22482,22483,22538,22486,22499,22539,22553,22557,22642,22561,22626,22603,22640,27584,22610,22589,22649,22661,22713,22687,22699,22714,22750,22715,22712,22702,22725,22739,22737,22743,22745,22744,22757,22748,22756,22751,22767,22778,22777,22779,22780,22781,22786,22794,22800,22811,26790,22821,22828,22829,22834,22840,22846,31442,22869,22864,22862,22874,22872,22882,22880,22887,22892,22889,22904,22913,22941,20318,20395,22947,22962,22982,23016,23004,22925,23001,23002,23077,23071,23057,23068,23049,23066,23104,23148,23113,23093,23094,23138,23146,23194,23228,23230,23243,23234,23229,23267,23255,23270,23273,23254,23290,23291,23308,23307,23318,23346,23248,23338,23350,23358,23363,23365,23360,23377,23381,23386,23387,23397,23401,23408,23411,23413,23416,25992,23418,23424,23427,23462,23480,23491,23495,23497,23508,23504,23524,23526,23522,23518,23525,23531,23536,23542,23539,23557,23559,23560,23565,23571,23584,23586,23592,23608,23609,23617,23622,23630,23635,23632,23631,23409,23660,23662,20066,23670,23673,23692,23697,23700,22939,23723,23739,23734,23740,23735,23749,23742,23751,23769,23785,23805,23802,23789,23948,23786,23819,23829,23831,23900,23839,23835,23825,23828,23842,23834,23833,23832,23884,23890,23886,23883,23916,23923,23926,23943,23940,23938,23970,23965,23980,23982,23997,23952,23991,23996,24009,24013,24019,24018,24022,24027,24043,24050,24053,24075,24090,24089,24081,24091,24118,24119,24132,24131,24128,24142,24151,24148,24159,24162,24164,24135,24181,24182,24186,40636,24191,24224,24257,24258,24264,24272,24271,24278,24291,24285,24282,24283,24290,24289,24296,24297,24300,24305,24307,24304,24308,24312,24318,24323,24329,24413,24412,24331,24337,24342,24361,24365,24376,24385,24392,24396,24398,24367,24401,24406,24407,24409,24417,24429,24435,24439,24451,24450,24447,24458,24456,24465,24455,24478,24473,24472,24480,24488,24493,24508,24534,24571,24548,24568,24561,24541,24755,24575,24609,24672,24601,24592,24617,24590,24625,24603,24597,24619,24614,24591,24634,24666,24641,24682,24695,24671,24650,24646,24653,24675,24643,24676,24642,24684,24683,24665,24705,24717,24807,24707,24730,24708,24731,24726,24727,24722,24743,24715,24801,24760,24800,24787,24756,24560,24765,24774,24757,24792,24909,24853,24838,24822,24823,24832,24820,24826,24835,24865,24827,24817,24845,24846,24903,24894,24872,24871,24906,24895,24892,24876,24884,24893,24898,24900,24947,24951,24920,24921,24922,24939,24948,24943,24933,24945,24927,24925,24915,24949,24985,24982,24967,25004,24980,24986,24970,24977,25003,25006,25036,25034,25033,25079,25032,25027,25030,25018,25035,32633,25037,25062,25059,25078,25082,25076,25087,25085,25084,25086,25088,25096,25097,25101,25100,25108,25115,25118,25121,25130,25134,25136,25138,25139,25153,25166,25182,25187,25179,25184,25192,25212,25218,25225,25214,25234,25235,25238,25300,25219,25236,25303,25297,25275,25295,25343,25286,25812,25288,25308,25292,25290,25282,25287,25243,25289,25356,25326,25329,25383,25346,25352,25327,25333,25424,25406,25421,25628,25423,25494,25486,25472,25515,25462,25507,25487,25481,25503,25525,25451,25449,25534,25577,25536,25542,25571,25545,25554,25590,25540,25622,25652,25606,25619,25638,25654,25885,25623,25640,25615,25703,25711,25718,25678,25898,25749,25747,25765,25769,25736,25788,25818,25810,25797,25799,25787,25816,25794,25841,25831,33289,25824,25825,25260,25827,25839,25900,25846,25844,25842,25850,25856,25853,25880,25884,25861,25892,25891,25899,25908,25909,25911,25910,25912,30027,25928,25942,25941,25933,25944,25950,25949,25970,25976,25986,25987,35722,26011,26015,26027,26039,26051,26054,26049,26052,26060,26066,26075,26073,26080,26081,26097,26482,26122,26115,26107,26483,26165,26166,26164,26140,26191,26180,26185,26177,26206,26205,26212,26215,26216,26207,26210,26224,26243,26248,26254,26249,26244,26264,26269,26305,26297,26313,26302,26300,26308,26296,26326,26330,26336,26175,26342,26345,26352,26357,26359,26383,26390,26398,26406,26407,38712,26414,26431,26422,26433,26424,26423,26438,26462,26464,26457,26467,26468,26505,26480,26537,26492,26474,26508,26507,26534,26529,26501,26551,26607,26548,26604,26547,26601,26552,26596,26590,26589,26594,26606,26553,26574,26566,26599,27292,26654,26694,26665,26688,26701,26674,26702,26803,26667,26713,26723,26743,26751,26783,26767,26797,26772,26781,26779,26755,27310,26809,26740,26805,26784,26810,26895,26765,26750,26881,26826,26888,26840,26914,26918,26849,26892,26829,26836,26855,26837,26934,26898,26884,26839,26851,26917,26873,26848,26863,26920,26922,26906,26915,26913,26822,27001,26999,26972,27e3,26987,26964,27006,26990,26937,26996,26941,26969,26928,26977,26974,26973,27009,26986,27058,27054,27088,27071,27073,27091,27070,27086,23528,27082,27101,27067,27075,27047,27182,27025,27040,27036,27029,27060,27102,27112,27138,27163,27135,27402,27129,27122,27111,27141,27057,27166,27117,27156,27115,27146,27154,27329,27171,27155,27204,27148,27250,27190,27256,27207,27234,27225,27238,27208,27192,27170,27280,27277,27296,27268,27298,27299,27287,34327,27323,27331,27330,27320,27315,27308,27358,27345,27359,27306,27354,27370,27387,27397,34326,27386,27410,27414,39729,27423,27448,27447,30428,27449,39150,27463,27459,27465,27472,27481,27476,27483,27487,27489,27512,27513,27519,27520,27524,27523,27533,27544,27541,27550,27556,27562,27563,27567,27570,27569,27571,27575,27580,27590,27595,27603,27615,27628,27627,27635,27631,40638,27656,27667,27668,27675,27684,27683,27742,27733,27746,27754,27778,27789,27802,27777,27803,27774,27752,27763,27794,27792,27844,27889,27859,27837,27863,27845,27869,27822,27825,27838,27834,27867,27887,27865,27882,27935,34893,27958,27947,27965,27960,27929,27957,27955,27922,27916,28003,28051,28004,27994,28025,27993,28046,28053,28644,28037,28153,28181,28170,28085,28103,28134,28088,28102,28140,28126,28108,28136,28114,28101,28154,28121,28132,28117,28138,28142,28205,28270,28206,28185,28274,28255,28222,28195,28267,28203,28278,28237,28191,28227,28218,28238,28196,28415,28189,28216,28290,28330,28312,28361,28343,28371,28349,28335,28356,28338,28372,28373,28303,28325,28354,28319,28481,28433,28748,28396,28408,28414,28479,28402,28465,28399,28466,28364,28478,28435,28407,28550,28538,28536,28545,28544,28527,28507,28659,28525,28546,28540,28504,28558,28561,28610,28518,28595,28579,28577,28580,28601,28614,28586,28639,28629,28652,28628,28632,28657,28654,28635,28681,28683,28666,28689,28673,28687,28670,28699,28698,28532,28701,28696,28703,28720,28734,28722,28753,28771,28825,28818,28847,28913,28844,28856,28851,28846,28895,28875,28893,28889,28937,28925,28956,28953,29029,29013,29064,29030,29026,29004,29014,29036,29071,29179,29060,29077,29096,29100,29143,29113,29118,29138,29129,29140,29134,29152,29164,29159,29173,29180,29177,29183,29197,29200,29211,29224,29229,29228,29232,29234,29243,29244,29247,29248,29254,29259,29272,29300,29310,29314,29313,29319,29330,29334,29346,29351,29369,29362,29379,29382,29380,29390,29394,29410,29408,29409,29433,29431,20495,29463,29450,29468,29462,29469,29492,29487,29481,29477,29502,29518,29519,40664,29527,29546,29544,29552,29560,29557,29563,29562,29640,29619,29646,29627,29632,29669,29678,29662,29858,29701,29807,29733,29688,29746,29754,29781,29759,29791,29785,29761,29788,29801,29808,29795,29802,29814,29822,29835,29854,29863,29898,29903,29908,29681,29920,29923,29927,29929,29934,29938,29936,29937,29944,29943,29956,29955,29957,29964,29966,29965,29973,29971,29982,29990,29996,30012,30020,30029,30026,30025,30043,30022,30042,30057,30052,30055,30059,30061,30072,30070,30086,30087,30068,30090,30089,30082,30100,30106,30109,30117,30115,30146,30131,30147,30133,30141,30136,30140,30129,30157,30154,30162,30169,30179,30174,30206,30207,30204,30209,30192,30202,30194,30195,30219,30221,30217,30239,30247,30240,30241,30242,30244,30260,30256,30267,30279,30280,30278,30300,30296,30305,30306,30312,30313,30314,30311,30316,30320,30322,30326,30328,30332,30336,30339,30344,30347,30350,30358,30355,30361,30362,30384,30388,30392,30393,30394,30402,30413,30422,30418,30430,30433,30437,30439,30442,34351,30459,30472,30471,30468,30505,30500,30494,30501,30502,30491,30519,30520,30535,30554,30568,30571,30555,30565,30591,30590,30585,30606,30603,30609,30624,30622,30640,30646,30649,30655,30652,30653,30651,30663,30669,30679,30682,30684,30691,30702,30716,30732,30738,31014,30752,31018,30789,30862,30836,30854,30844,30874,30860,30883,30901,30890,30895,30929,30918,30923,30932,30910,30908,30917,30922,30956,30951,30938,30973,30964,30983,30994,30993,31001,31020,31019,31040,31072,31063,31071,31066,31061,31059,31098,31103,31114,31133,31143,40779,31146,31150,31155,31161,31162,31177,31189,31207,31212,31201,31203,31240,31245,31256,31257,31264,31263,31104,31281,31291,31294,31287,31299,31319,31305,31329,31330,31337,40861,31344,31353,31357,31368,31383,31381,31384,31382,31401,31432,31408,31414,31429,31428,31423,36995,31431,31434,31437,31439,31445,31443,31449,31450,31453,31457,31458,31462,31469,31472,31490,31503,31498,31494,31539,31512,31513,31518,31541,31528,31542,31568,31610,31492,31565,31499,31564,31557,31605,31589,31604,31591,31600,31601,31596,31598,31645,31640,31647,31629,31644,31642,31627,31634,31631,31581,31641,31691,31681,31692,31695,31668,31686,31709,31721,31761,31764,31718,31717,31840,31744,31751,31763,31731,31735,31767,31757,31734,31779,31783,31786,31775,31799,31787,31805,31820,31811,31828,31823,31808,31824,31832,31839,31844,31830,31845,31852,31861,31875,31888,31908,31917,31906,31915,31905,31912,31923,31922,31921,31918,31929,31933,31936,31941,31938,31960,31954,31964,31970,39739,31983,31986,31988,31990,31994,32006,32002,32028,32021,32010,32069,32075,32046,32050,32063,32053,32070,32115,32086,32078,32114,32104,32110,32079,32099,32147,32137,32091,32143,32125,32155,32186,32174,32163,32181,32199,32189,32171,32317,32162,32175,32220,32184,32159,32176,32216,32221,32228,32222,32251,32242,32225,32261,32266,32291,32289,32274,32305,32287,32265,32267,32290,32326,32358,32315,32309,32313,32323,32311,32306,32314,32359,32349,32342,32350,32345,32346,32377,32362,32361,32380,32379,32387,32213,32381,36782,32383,32392,32393,32396,32402,32400,32403,32404,32406,32398,32411,32412,32568,32570,32581,32588,32589,32590,32592,32593,32597,32596,32600,32607,32608,32616,32617,32615,32632,32642,32646,32643,32648,32647,32652,32660,32670,32669,32666,32675,32687,32690,32697,32686,32694,32696,35697,32709,32710,32714,32725,32724,32737,32742,32745,32755,32761,39132,32774,32772,32779,32786,32792,32793,32796,32801,32808,32831,32827,32842,32838,32850,32856,32858,32863,32866,32872,32883,32882,32880,32886,32889,32893,32895,32900,32902,32901,32923,32915,32922,32941,20880,32940,32987,32997,32985,32989,32964,32986,32982,33033,33007,33009,33051,33065,33059,33071,33099,38539,33094,33086,33107,33105,33020,33137,33134,33125,33126,33140,33155,33160,33162,33152,33154,33184,33173,33188,33187,33119,33171,33193,33200,33205,33214,33208,33213,33216,33218,33210,33225,33229,33233,33241,33240,33224,33242,33247,33248,33255,33274,33275,33278,33281,33282,33285,33287,33290,33293,33296,33302,33321,33323,33336,33331,33344,33369,33368,33373,33370,33375,33380,33378,33384,33386,33387,33326,33393,33399,33400,33406,33421,33426,33451,33439,33467,33452,33505,33507,33503,33490,33524,33523,33530,33683,33539,33531,33529,33502,33542,33500,33545,33497,33589,33588,33558,33586,33585,33600,33593,33616,33605,33583,33579,33559,33560,33669,33690,33706,33695,33698,33686,33571,33678,33671,33674,33660,33717,33651,33653,33696,33673,33704,33780,33811,33771,33742,33789,33795,33752,33803,33729,33783,33799,33760,33778,33805,33826,33824,33725,33848,34054,33787,33901,33834,33852,34138,33924,33911,33899,33965,33902,33922,33897,33862,33836,33903,33913,33845,33994,33890,33977,33983,33951,34009,33997,33979,34010,34e3,33985,33990,34006,33953,34081,34047,34036,34071,34072,34092,34079,34069,34068,34044,34112,34147,34136,34120,34113,34306,34123,34133,34176,34212,34184,34193,34186,34216,34157,34196,34203,34282,34183,34204,34167,34174,34192,34249,34234,34255,34233,34256,34261,34269,34277,34268,34297,34314,34323,34315,34302,34298,34310,34338,34330,34352,34367,34381,20053,34388,34399,34407,34417,34451,34467,34473,34474,34443,34444,34486,34479,34500,34502,34480,34505,34851,34475,34516,34526,34537,34540,34527,34523,34543,34578,34566,34568,34560,34563,34555,34577,34569,34573,34553,34570,34612,34623,34615,34619,34597,34601,34586,34656,34655,34680,34636,34638,34676,34647,34664,34670,34649,34643,34659,34666,34821,34722,34719,34690,34735,34763,34749,34752,34768,38614,34731,34756,34739,34759,34758,34747,34799,34802,34784,34831,34829,34814,34806,34807,34830,34770,34833,34838,34837,34850,34849,34865,34870,34873,34855,34875,34884,34882,34898,34905,34910,34914,34923,34945,34942,34974,34933,34941,34997,34930,34946,34967,34962,34990,34969,34978,34957,34980,34992,35007,34993,35011,35012,35028,35032,35033,35037,35065,35074,35068,35060,35048,35058,35076,35084,35082,35091,35139,35102,35109,35114,35115,35137,35140,35131,35126,35128,35148,35101,35168,35166,35174,35172,35181,35178,35183,35188,35191,35198,35203,35208,35210,35219,35224,35233,35241,35238,35244,35247,35250,35258,35261,35263,35264,35290,35292,35293,35303,35316,35320,35331,35350,35344,35340,35355,35357,35365,35382,35393,35419,35410,35398,35400,35452,35437,35436,35426,35461,35458,35460,35496,35489,35473,35493,35494,35482,35491,35524,35533,35522,35546,35563,35571,35559,35556,35569,35604,35552,35554,35575,35550,35547,35596,35591,35610,35553,35606,35600,35607,35616,35635,38827,35622,35627,35646,35624,35649,35660,35663,35662,35657,35670,35675,35674,35691,35679,35692,35695,35700,35709,35712,35724,35726,35730,35731,35734,35737,35738,35898,35905,35903,35912,35916,35918,35920,35925,35938,35948,35960,35962,35970,35977,35973,35978,35981,35982,35988,35964,35992,25117,36013,36010,36029,36018,36019,36014,36022,36040,36033,36068,36067,36058,36093,36090,36091,36100,36101,36106,36103,36111,36109,36112,40782,36115,36045,36116,36118,36199,36205,36209,36211,36225,36249,36290,36286,36282,36303,36314,36310,36300,36315,36299,36330,36331,36319,36323,36348,36360,36361,36351,36381,36382,36368,36383,36418,36405,36400,36404,36426,36423,36425,36428,36432,36424,36441,36452,36448,36394,36451,36437,36470,36466,36476,36481,36487,36485,36484,36491,36490,36499,36497,36500,36505,36522,36513,36524,36528,36550,36529,36542,36549,36552,36555,36571,36579,36604,36603,36587,36606,36618,36613,36629,36626,36633,36627,36636,36639,36635,36620,36646,36659,36667,36665,36677,36674,36670,36684,36681,36678,36686,36695,36700,36706,36707,36708,36764,36767,36771,36781,36783,36791,36826,36837,36834,36842,36847,36999,36852,36869,36857,36858,36881,36885,36897,36877,36894,36886,36875,36903,36918,36917,36921,36856,36943,36944,36945,36946,36878,36937,36926,36950,36952,36958,36968,36975,36982,38568,36978,36994,36989,36993,36992,37002,37001,37007,37032,37039,37041,37045,37090,37092,25160,37083,37122,37138,37145,37170,37168,37194,37206,37208,37219,37221,37225,37235,37234,37259,37257,37250,37282,37291,37295,37290,37301,37300,37306,37312,37313,37321,37323,37328,37334,37343,37345,37339,37372,37365,37366,37406,37375,37396,37420,37397,37393,37470,37463,37445,37449,37476,37448,37525,37439,37451,37456,37532,37526,37523,37531,37466,37583,37561,37559,37609,37647,37626,37700,37678,37657,37666,37658,37667,37690,37685,37691,37724,37728,37756,37742,37718,37808,37804,37805,37780,37817,37846,37847,37864,37861,37848,37827,37853,37840,37832,37860,37914,37908,37907,37891,37895,37904,37942,37931,37941,37921,37946,37953,37970,37956,37979,37984,37986,37982,37994,37417,38e3,38005,38007,38013,37978,38012,38014,38017,38015,38274,38279,38282,38292,38294,38296,38297,38304,38312,38311,38317,38332,38331,38329,38334,38346,28662,38339,38349,38348,38357,38356,38358,38364,38369,38373,38370,38433,38440,38446,38447,38466,38476,38479,38475,38519,38492,38494,38493,38495,38502,38514,38508,38541,38552,38549,38551,38570,38567,38577,38578,38576,38580,38582,38584,38585,38606,38603,38601,38605,35149,38620,38669,38613,38649,38660,38662,38664,38675,38670,38673,38671,38678,38681,38692,38698,38704,38713,38717,38718,38724,38726,38728,38722,38729,38748,38752,38756,38758,38760,21202,38763,38769,38777,38789,38780,38785,38778,38790,38795,38799,38800,38812,38824,38822,38819,38835,38836,38851,38854,38856,38859,38876,38893,40783,38898,31455,38902,38901,38927,38924,38968,38948,38945,38967,38973,38982,38991,38987,39019,39023,39024,39025,39028,39027,39082,39087,39089,39094,39108,39107,39110,39145,39147,39171,39177,39186,39188,39192,39201,39197,39198,39204,39200,39212,39214,39229,39230,39234,39241,39237,39248,39243,39249,39250,39244,39253,39319,39320,39333,39341,39342,39356,39391,39387,39389,39384,39377,39405,39406,39409,39410,39419,39416,39425,39439,39429,39394,39449,39467,39479,39493,39490,39488,39491,39486,39509,39501,39515,39511,39519,39522,39525,39524,39529,39531,39530,39597,39600,39612,39616,39631,39633,39635,39636,39646,39647,39650,39651,39654,39663,39659,39662,39668,39665,39671,39675,39686,39704,39706,39711,39714,39715,39717,39719,39720,39721,39722,39726,39727,39730,39748,39747,39759,39757,39758,39761,39768,39796,39827,39811,39825,39830,39831,39839,39840,39848,39860,39872,39882,39865,39878,39887,39889,39890,39907,39906,39908,39892,39905,39994,39922,39921,39920,39957,39956,39945,39955,39948,39942,39944,39954,39946,39940,39982,39963,39973,39972,39969,39984,40007,39986,40006,39998,40026,40032,40039,40054,40056,40167,40172,40176,40201,40200,40171,40195,40198,40234,40230,40367,40227,40223,40260,40213,40210,40257,40255,40254,40262,40264,40285,40286,40292,40273,40272,40281,40306,40329,40327,40363,40303,40314,40346,40356,40361,40370,40388,40385,40379,40376,40378,40390,40399,40386,40409,40403,40440,40422,40429,40431,40445,40474,40475,40478,40565,40569,40573,40577,40584,40587,40588,40594,40597,40593,40605,40613,40617,40632,40618,40621,38753,40652,40654,40655,40656,40660,40668,40670,40669,40672,40677,40680,40687,40692,40694,40695,40697,40699,40700,40701,40711,40712,30391,40725,40737,40748,40766,40778,40786,40788,40803,40799,40800,40801,40806,40807,40812,40810,40823,40818,40822,40853,40860,40864,22575,27079,36953,29796,20956,29081,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,32394,35100,37704,37512,34012,20425,28859,26161,26824,37625,26363,24389,20008,20193,20220,20224,20227,20281,20310,20370,20362,20378,20372,20429,20544,20514,20479,20510,20550,20592,20546,20628,20724,20696,20810,20836,20893,20926,20972,21013,21148,21158,21184,21211,21248,21255,21284,21362,21395,21426,21469,64014,21660,21642,21673,21759,21894,22361,22373,22444,22472,22471,64015,64016,22686,22706,22795,22867,22875,22877,22883,22948,22970,23382,23488,29999,23512,23532,23582,23718,23738,23797,23847,23891,64017,23874,23917,23992,23993,24016,24353,24372,24423,24503,24542,24669,24709,24714,24798,24789,24864,24818,24849,24887,24880,24984,25107,25254,25589,25696,25757,25806,25934,26112,26133,26171,26121,26158,26142,26148,26213,26199,26201,64018,26227,26265,26272,26290,26303,26362,26382,63785,26470,26555,26706,26560,26625,26692,26831,64019,26984,64020,27032,27106,27184,27243,27206,27251,27262,27362,27364,27606,27711,27740,27782,27759,27866,27908,28039,28015,28054,28076,28111,28152,28146,28156,28217,28252,28199,28220,28351,28552,28597,28661,28677,28679,28712,28805,28843,28943,28932,29020,28998,28999,64021,29121,29182,29361,29374,29476,64022,29559,29629,29641,29654,29667,29650,29703,29685,29734,29738,29737,29742,29794,29833,29855,29953,30063,30338,30364,30366,30363,30374,64023,30534,21167,30753,30798,30820,30842,31024,64024,64025,64026,31124,64027,31131,31441,31463,64028,31467,31646,64029,32072,32092,32183,32160,32214,32338,32583,32673,64030,33537,33634,33663,33735,33782,33864,33972,34131,34137,34155,64031,34224,64032,64033,34823,35061,35346,35383,35449,35495,35518,35551,64034,35574,35667,35711,36080,36084,36114,36214,64035,36559,64036,64037,36967,37086,64038,37141,37159,37338,37335,37342,37357,37358,37348,37349,37382,37392,37386,37434,37440,37436,37454,37465,37457,37433,37479,37543,37495,37496,37607,37591,37593,37584,64039,37589,37600,37587,37669,37665,37627,64040,37662,37631,37661,37634,37744,37719,37796,37830,37854,37880,37937,37957,37960,38290,63964,64041,38557,38575,38707,38715,38723,38733,38735,38737,38741,38999,39013,64042,64043,39207,64044,39326,39502,39641,39644,39797,39794,39823,39857,39867,39936,40304,40299,64045,40473,40657,null,null,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,65506,65508,65287,65282,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,65506,65508,65287,65282,12849,8470,8481,8757,32394,35100,37704,37512,34012,20425,28859,26161,26824,37625,26363,24389,20008,20193,20220,20224,20227,20281,20310,20370,20362,20378,20372,20429,20544,20514,20479,20510,20550,20592,20546,20628,20724,20696,20810,20836,20893,20926,20972,21013,21148,21158,21184,21211,21248,21255,21284,21362,21395,21426,21469,64014,21660,21642,21673,21759,21894,22361,22373,22444,22472,22471,64015,64016,22686,22706,22795,22867,22875,22877,22883,22948,22970,23382,23488,29999,23512,23532,23582,23718,23738,23797,23847,23891,64017,23874,23917,23992,23993,24016,24353,24372,24423,24503,24542,24669,24709,24714,24798,24789,24864,24818,24849,24887,24880,24984,25107,25254,25589,25696,25757,25806,25934,26112,26133,26171,26121,26158,26142,26148,26213,26199,26201,64018,26227,26265,26272,26290,26303,26362,26382,63785,26470,26555,26706,26560,26625,26692,26831,64019,26984,64020,27032,27106,27184,27243,27206,27251,27262,27362,27364,27606,27711,27740,27782,27759,27866,27908,28039,28015,28054,28076,28111,28152,28146,28156,28217,28252,28199,28220,28351,28552,28597,28661,28677,28679,28712,28805,28843,28943,28932,29020,28998,28999,64021,29121,29182,29361,29374,29476,64022,29559,29629,29641,29654,29667,29650,29703,29685,29734,29738,29737,29742,29794,29833,29855,29953,30063,30338,30364,30366,30363,30374,64023,30534,21167,30753,30798,30820,30842,31024,64024,64025,64026,31124,64027,31131,31441,31463,64028,31467,31646,64029,32072,32092,32183,32160,32214,32338,32583,32673,64030,33537,33634,33663,33735,33782,33864,33972,34131,34137,34155,64031,34224,64032,64033,34823,35061,35346,35383,35449,35495,35518,35551,64034,35574,35667,35711,36080,36084,36114,36214,64035,36559,64036,64037,36967,37086,64038,37141,37159,37338,37335,37342,37357,37358,37348,37349,37382,37392,37386,37434,37440,37436,37454,37465,37457,37433,37479,37543,37495,37496,37607,37591,37593,37584,64039,37589,37600,37587,37669,37665,37627,64040,37662,37631,37661,37634,37744,37719,37796,37830,37854,37880,37937,37957,37960,38290,63964,64041,38557,38575,38707,38715,38723,38733,38735,38737,38741,38999,39013,64042,64043,39207,64044,39326,39502,39641,39644,39797,39794,39823,39857,39867,39936,40304,40299,64045,40473,40657,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],jis0212:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,728,711,184,729,733,175,731,730,65374,900,901,null,null,null,null,null,null,null,null,161,166,191,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,186,170,169,174,8482,164,8470,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,902,904,905,906,938,null,908,null,910,939,null,911,null,null,null,null,940,941,942,943,970,912,972,962,973,971,944,974,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1038,1039,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1118,1119,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,198,272,null,294,null,306,null,321,319,null,330,216,338,null,358,222,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,230,273,240,295,305,307,312,322,320,329,331,248,339,223,359,254,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,193,192,196,194,258,461,256,260,197,195,262,264,268,199,266,270,201,200,203,202,282,278,274,280,null,284,286,290,288,292,205,204,207,206,463,304,298,302,296,308,310,313,317,315,323,327,325,209,211,210,214,212,465,336,332,213,340,344,342,346,348,352,350,356,354,218,217,220,219,364,467,368,362,370,366,360,471,475,473,469,372,221,376,374,377,381,379,null,null,null,null,null,null,null,225,224,228,226,259,462,257,261,229,227,263,265,269,231,267,271,233,232,235,234,283,279,275,281,501,285,287,null,289,293,237,236,239,238,464,null,299,303,297,309,311,314,318,316,324,328,326,241,243,242,246,244,466,337,333,245,341,345,343,347,349,353,351,357,355,250,249,252,251,365,468,369,363,371,367,361,472,476,474,470,373,253,255,375,378,382,380,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,19970,19972,19973,19980,19986,19999,20003,20004,20008,20011,20014,20015,20016,20021,20032,20033,20036,20039,20049,20058,20060,20067,20072,20073,20084,20085,20089,20095,20109,20118,20119,20125,20143,20153,20163,20176,20186,20187,20192,20193,20194,20200,20207,20209,20211,20213,20221,20222,20223,20224,20226,20227,20232,20235,20236,20242,20245,20246,20247,20249,20270,20273,20320,20275,20277,20279,20281,20283,20286,20288,20290,20296,20297,20299,20300,20306,20308,20310,20312,20319,20323,20330,20332,20334,20337,20343,20344,20345,20346,20349,20350,20353,20354,20356,20357,20361,20362,20364,20366,20368,20370,20371,20372,20375,20377,20378,20382,20383,20402,20407,20409,20411,20412,20413,20414,20416,20417,20421,20422,20424,20425,20427,20428,20429,20431,20434,20444,20448,20450,20464,20466,20476,20477,20479,20480,20481,20484,20487,20490,20492,20494,20496,20499,20503,20504,20507,20508,20509,20510,20514,20519,20526,20528,20530,20531,20533,20544,20545,20546,20549,20550,20554,20556,20558,20561,20562,20563,20567,20569,20575,20576,20578,20579,20582,20583,20586,20589,20592,20593,20539,20609,20611,20612,20614,20618,20622,20623,20624,20626,20627,20628,20630,20635,20636,20638,20639,20640,20641,20642,20650,20655,20656,20665,20666,20669,20672,20675,20676,20679,20684,20686,20688,20691,20692,20696,20700,20701,20703,20706,20708,20710,20712,20713,20719,20721,20726,20730,20734,20739,20742,20743,20744,20747,20748,20749,20750,20722,20752,20759,20761,20763,20764,20765,20766,20771,20775,20776,20780,20781,20783,20785,20787,20788,20789,20792,20793,20802,20810,20815,20819,20821,20823,20824,20831,20836,20838,20862,20867,20868,20875,20878,20888,20893,20897,20899,20909,20920,20922,20924,20926,20927,20930,20936,20943,20945,20946,20947,20949,20952,20958,20962,20965,20974,20978,20979,20980,20983,20993,20994,20997,21010,21011,21013,21014,21016,21026,21032,21041,21042,21045,21052,21061,21065,21077,21079,21080,21082,21084,21087,21088,21089,21094,21102,21111,21112,21113,21120,21122,21125,21130,21132,21139,21141,21142,21143,21144,21146,21148,21156,21157,21158,21159,21167,21168,21174,21175,21176,21178,21179,21181,21184,21188,21190,21192,21196,21199,21201,21204,21206,21211,21212,21217,21221,21224,21225,21226,21228,21232,21233,21236,21238,21239,21248,21251,21258,21259,21260,21265,21267,21272,21275,21276,21278,21279,21285,21287,21288,21289,21291,21292,21293,21296,21298,21301,21308,21309,21310,21314,21324,21323,21337,21339,21345,21347,21349,21356,21357,21362,21369,21374,21379,21383,21384,21390,21395,21396,21401,21405,21409,21412,21418,21419,21423,21426,21428,21429,21431,21432,21434,21437,21440,21445,21455,21458,21459,21461,21466,21469,21470,21472,21478,21479,21493,21506,21523,21530,21537,21543,21544,21546,21551,21553,21556,21557,21571,21572,21575,21581,21583,21598,21602,21604,21606,21607,21609,21611,21613,21614,21620,21631,21633,21635,21637,21640,21641,21645,21649,21653,21654,21660,21663,21665,21670,21671,21673,21674,21677,21678,21681,21687,21689,21690,21691,21695,21702,21706,21709,21710,21728,21738,21740,21743,21750,21756,21758,21759,21760,21761,21765,21768,21769,21772,21773,21774,21781,21802,21803,21810,21813,21814,21819,21820,21821,21825,21831,21833,21834,21837,21840,21841,21848,21850,21851,21854,21856,21857,21860,21862,21887,21889,21890,21894,21896,21902,21903,21905,21906,21907,21908,21911,21923,21924,21933,21938,21951,21953,21955,21958,21961,21963,21964,21966,21969,21970,21971,21975,21976,21979,21982,21986,21993,22006,22015,22021,22024,22026,22029,22030,22031,22032,22033,22034,22041,22060,22064,22067,22069,22071,22073,22075,22076,22077,22079,22080,22081,22083,22084,22086,22089,22091,22093,22095,22100,22110,22112,22113,22114,22115,22118,22121,22125,22127,22129,22130,22133,22148,22149,22152,22155,22156,22165,22169,22170,22173,22174,22175,22182,22183,22184,22185,22187,22188,22189,22193,22195,22199,22206,22213,22217,22218,22219,22223,22224,22220,22221,22233,22236,22237,22239,22241,22244,22245,22246,22247,22248,22257,22251,22253,22262,22263,22273,22274,22279,22282,22284,22289,22293,22298,22299,22301,22304,22306,22307,22308,22309,22313,22314,22316,22318,22319,22323,22324,22333,22334,22335,22341,22342,22348,22349,22354,22370,22373,22375,22376,22379,22381,22382,22383,22384,22385,22387,22388,22389,22391,22393,22394,22395,22396,22398,22401,22403,22412,22420,22423,22425,22426,22428,22429,22430,22431,22433,22421,22439,22440,22441,22444,22456,22461,22471,22472,22476,22479,22485,22493,22494,22500,22502,22503,22505,22509,22512,22517,22518,22520,22525,22526,22527,22531,22532,22536,22537,22497,22540,22541,22555,22558,22559,22560,22566,22567,22573,22578,22585,22591,22601,22604,22605,22607,22608,22613,22623,22625,22628,22631,22632,22648,22652,22655,22656,22657,22663,22664,22665,22666,22668,22669,22671,22672,22676,22678,22685,22688,22689,22690,22694,22697,22705,22706,22724,22716,22722,22728,22733,22734,22736,22738,22740,22742,22746,22749,22753,22754,22761,22771,22789,22790,22795,22796,22802,22803,22804,34369,22813,22817,22819,22820,22824,22831,22832,22835,22837,22838,22847,22851,22854,22866,22867,22873,22875,22877,22878,22879,22881,22883,22891,22893,22895,22898,22901,22902,22905,22907,22908,22923,22924,22926,22930,22933,22935,22943,22948,22951,22957,22958,22959,22960,22963,22967,22970,22972,22977,22979,22980,22984,22986,22989,22994,23005,23006,23007,23011,23012,23015,23022,23023,23025,23026,23028,23031,23040,23044,23052,23053,23054,23058,23059,23070,23075,23076,23079,23080,23082,23085,23088,23108,23109,23111,23112,23116,23120,23125,23134,23139,23141,23143,23149,23159,23162,23163,23166,23179,23184,23187,23190,23193,23196,23198,23199,23200,23202,23207,23212,23217,23218,23219,23221,23224,23226,23227,23231,23236,23238,23240,23247,23258,23260,23264,23269,23274,23278,23285,23286,23293,23296,23297,23304,23319,23348,23321,23323,23325,23329,23333,23341,23352,23361,23371,23372,23378,23382,23390,23400,23406,23407,23420,23421,23422,23423,23425,23428,23430,23434,23438,23440,23441,23443,23444,23446,23464,23465,23468,23469,23471,23473,23474,23479,23482,23484,23488,23489,23501,23503,23510,23511,23512,23513,23514,23520,23535,23537,23540,23549,23564,23575,23582,23583,23587,23590,23593,23595,23596,23598,23600,23602,23605,23606,23641,23642,23644,23650,23651,23655,23656,23657,23661,23664,23668,23669,23674,23675,23676,23677,23687,23688,23690,23695,23698,23709,23711,23712,23714,23715,23718,23722,23730,23732,23733,23738,23753,23755,23762,23773,23767,23790,23793,23794,23796,23809,23814,23821,23826,23851,23843,23844,23846,23847,23857,23860,23865,23869,23871,23874,23875,23878,23880,23893,23889,23897,23882,23903,23904,23905,23906,23908,23914,23917,23920,23929,23930,23934,23935,23937,23939,23944,23946,23954,23955,23956,23957,23961,23963,23967,23968,23975,23979,23984,23988,23992,23993,24003,24007,24011,24016,24014,24024,24025,24032,24036,24041,24056,24057,24064,24071,24077,24082,24084,24085,24088,24095,24096,24110,24104,24114,24117,24126,24139,24144,24137,24145,24150,24152,24155,24156,24158,24168,24170,24171,24172,24173,24174,24176,24192,24203,24206,24226,24228,24229,24232,24234,24236,24241,24243,24253,24254,24255,24262,24268,24267,24270,24273,24274,24276,24277,24284,24286,24293,24299,24322,24326,24327,24328,24334,24345,24348,24349,24353,24354,24355,24356,24360,24363,24364,24366,24368,24372,24374,24379,24381,24383,24384,24388,24389,24391,24397,24400,24404,24408,24411,24416,24419,24420,24423,24431,24434,24436,24437,24440,24442,24445,24446,24457,24461,24463,24470,24476,24477,24482,24487,24491,24484,24492,24495,24496,24497,24504,24516,24519,24520,24521,24523,24528,24529,24530,24531,24532,24542,24545,24546,24552,24553,24554,24556,24557,24558,24559,24562,24563,24566,24570,24572,24583,24586,24589,24595,24596,24599,24600,24602,24607,24612,24621,24627,24629,24640,24647,24648,24649,24652,24657,24660,24662,24663,24669,24673,24679,24689,24702,24703,24706,24710,24712,24714,24718,24721,24723,24725,24728,24733,24734,24738,24740,24741,24744,24752,24753,24759,24763,24766,24770,24772,24776,24777,24778,24779,24782,24783,24788,24789,24793,24795,24797,24798,24802,24805,24818,24821,24824,24828,24829,24834,24839,24842,24844,24848,24849,24850,24851,24852,24854,24855,24857,24860,24862,24866,24874,24875,24880,24881,24885,24886,24887,24889,24897,24901,24902,24905,24926,24928,24940,24946,24952,24955,24956,24959,24960,24961,24963,24964,24971,24973,24978,24979,24983,24984,24988,24989,24991,24992,24997,25e3,25002,25005,25016,25017,25020,25024,25025,25026,25038,25039,25045,25052,25053,25054,25055,25057,25058,25063,25065,25061,25068,25069,25071,25089,25091,25092,25095,25107,25109,25116,25120,25122,25123,25127,25129,25131,25145,25149,25154,25155,25156,25158,25164,25168,25169,25170,25172,25174,25178,25180,25188,25197,25199,25203,25210,25213,25229,25230,25231,25232,25254,25256,25267,25270,25271,25274,25278,25279,25284,25294,25301,25302,25306,25322,25330,25332,25340,25341,25347,25348,25354,25355,25357,25360,25363,25366,25368,25385,25386,25389,25397,25398,25401,25404,25409,25410,25411,25412,25414,25418,25419,25422,25426,25427,25428,25432,25435,25445,25446,25452,25453,25457,25460,25461,25464,25468,25469,25471,25474,25476,25479,25482,25488,25492,25493,25497,25498,25502,25508,25510,25517,25518,25519,25533,25537,25541,25544,25550,25553,25555,25556,25557,25564,25568,25573,25578,25580,25586,25587,25589,25592,25593,25609,25610,25616,25618,25620,25624,25630,25632,25634,25636,25637,25641,25642,25647,25648,25653,25661,25663,25675,25679,25681,25682,25683,25684,25690,25691,25692,25693,25695,25696,25697,25699,25709,25715,25716,25723,25725,25733,25735,25743,25744,25745,25752,25753,25755,25757,25759,25761,25763,25766,25768,25772,25779,25789,25790,25791,25796,25801,25802,25803,25804,25806,25808,25809,25813,25815,25828,25829,25833,25834,25837,25840,25845,25847,25851,25855,25857,25860,25864,25865,25866,25871,25875,25876,25878,25881,25883,25886,25887,25890,25894,25897,25902,25905,25914,25916,25917,25923,25927,25929,25936,25938,25940,25951,25952,25959,25963,25978,25981,25985,25989,25994,26002,26005,26008,26013,26016,26019,26022,26030,26034,26035,26036,26047,26050,26056,26057,26062,26064,26068,26070,26072,26079,26096,26098,26100,26101,26105,26110,26111,26112,26116,26120,26121,26125,26129,26130,26133,26134,26141,26142,26145,26146,26147,26148,26150,26153,26154,26155,26156,26158,26160,26161,26163,26169,26167,26176,26181,26182,26186,26188,26193,26190,26199,26200,26201,26203,26204,26208,26209,26363,26218,26219,26220,26238,26227,26229,26239,26231,26232,26233,26235,26240,26236,26251,26252,26253,26256,26258,26265,26266,26267,26268,26271,26272,26276,26285,26289,26290,26293,26299,26303,26304,26306,26307,26312,26316,26318,26319,26324,26331,26335,26344,26347,26348,26350,26362,26373,26375,26382,26387,26393,26396,26400,26402,26419,26430,26437,26439,26440,26444,26452,26453,26461,26470,26476,26478,26484,26486,26491,26497,26500,26510,26511,26513,26515,26518,26520,26521,26523,26544,26545,26546,26549,26555,26556,26557,26617,26560,26562,26563,26565,26568,26569,26578,26583,26585,26588,26593,26598,26608,26610,26614,26615,26706,26644,26649,26653,26655,26664,26663,26668,26669,26671,26672,26673,26675,26683,26687,26692,26693,26698,26700,26709,26711,26712,26715,26731,26734,26735,26736,26737,26738,26741,26745,26746,26747,26748,26754,26756,26758,26760,26774,26776,26778,26780,26785,26787,26789,26793,26794,26798,26802,26811,26821,26824,26828,26831,26832,26833,26835,26838,26841,26844,26845,26853,26856,26858,26859,26860,26861,26864,26865,26869,26870,26875,26876,26877,26886,26889,26890,26896,26897,26899,26902,26903,26929,26931,26933,26936,26939,26946,26949,26953,26958,26967,26971,26979,26980,26981,26982,26984,26985,26988,26992,26993,26994,27002,27003,27007,27008,27021,27026,27030,27032,27041,27045,27046,27048,27051,27053,27055,27063,27064,27066,27068,27077,27080,27089,27094,27095,27106,27109,27118,27119,27121,27123,27125,27134,27136,27137,27139,27151,27153,27157,27162,27165,27168,27172,27176,27184,27186,27188,27191,27195,27198,27199,27205,27206,27209,27210,27214,27216,27217,27218,27221,27222,27227,27236,27239,27242,27249,27251,27262,27265,27267,27270,27271,27273,27275,27281,27291,27293,27294,27295,27301,27307,27311,27312,27313,27316,27325,27326,27327,27334,27337,27336,27340,27344,27348,27349,27350,27356,27357,27364,27367,27372,27376,27377,27378,27388,27389,27394,27395,27398,27399,27401,27407,27408,27409,27415,27419,27422,27428,27432,27435,27436,27439,27445,27446,27451,27455,27462,27466,27469,27474,27478,27480,27485,27488,27495,27499,27502,27504,27509,27517,27518,27522,27525,27543,27547,27551,27552,27554,27555,27560,27561,27564,27565,27566,27568,27576,27577,27581,27582,27587,27588,27593,27596,27606,27610,27617,27619,27622,27623,27630,27633,27639,27641,27647,27650,27652,27653,27657,27661,27662,27664,27666,27673,27679,27686,27687,27688,27692,27694,27699,27701,27702,27706,27707,27711,27722,27723,27725,27727,27730,27732,27737,27739,27740,27755,27757,27759,27764,27766,27768,27769,27771,27781,27782,27783,27785,27796,27797,27799,27800,27804,27807,27824,27826,27828,27842,27846,27853,27855,27856,27857,27858,27860,27862,27866,27868,27872,27879,27881,27883,27884,27886,27890,27892,27908,27911,27914,27918,27919,27921,27923,27930,27942,27943,27944,27751,27950,27951,27953,27961,27964,27967,27991,27998,27999,28001,28005,28007,28015,28016,28028,28034,28039,28049,28050,28052,28054,28055,28056,28074,28076,28084,28087,28089,28093,28095,28100,28104,28106,28110,28111,28118,28123,28125,28127,28128,28130,28133,28137,28143,28144,28148,28150,28156,28160,28164,28190,28194,28199,28210,28214,28217,28219,28220,28228,28229,28232,28233,28235,28239,28241,28242,28243,28244,28247,28252,28253,28254,28258,28259,28264,28275,28283,28285,28301,28307,28313,28320,28327,28333,28334,28337,28339,28347,28351,28352,28353,28355,28359,28360,28362,28365,28366,28367,28395,28397,28398,28409,28411,28413,28420,28424,28426,28428,28429,28438,28440,28442,28443,28454,28457,28458,28463,28464,28467,28470,28475,28476,28461,28495,28497,28498,28499,28503,28505,28506,28509,28510,28513,28514,28520,28524,28541,28542,28547,28551,28552,28555,28556,28557,28560,28562,28563,28564,28566,28570,28575,28576,28581,28582,28583,28584,28590,28591,28592,28597,28598,28604,28613,28615,28616,28618,28634,28638,28648,28649,28656,28661,28665,28668,28669,28672,28677,28678,28679,28685,28695,28704,28707,28719,28724,28727,28729,28732,28739,28740,28744,28745,28746,28747,28756,28757,28765,28766,28750,28772,28773,28780,28782,28789,28790,28798,28801,28805,28806,28820,28821,28822,28823,28824,28827,28836,28843,28848,28849,28852,28855,28874,28881,28883,28884,28885,28886,28888,28892,28900,28922,28931,28932,28933,28934,28935,28939,28940,28943,28958,28960,28971,28973,28975,28976,28977,28984,28993,28997,28998,28999,29002,29003,29008,29010,29015,29018,29020,29022,29024,29032,29049,29056,29061,29063,29068,29074,29082,29083,29088,29090,29103,29104,29106,29107,29114,29119,29120,29121,29124,29131,29132,29139,29142,29145,29146,29148,29176,29182,29184,29191,29192,29193,29203,29207,29210,29213,29215,29220,29227,29231,29236,29240,29241,29249,29250,29251,29253,29262,29263,29264,29267,29269,29270,29274,29276,29278,29280,29283,29288,29291,29294,29295,29297,29303,29304,29307,29308,29311,29316,29321,29325,29326,29331,29339,29352,29357,29358,29361,29364,29374,29377,29383,29385,29388,29397,29398,29400,29407,29413,29427,29428,29434,29435,29438,29442,29444,29445,29447,29451,29453,29458,29459,29464,29465,29470,29474,29476,29479,29480,29484,29489,29490,29493,29498,29499,29501,29507,29517,29520,29522,29526,29528,29533,29534,29535,29536,29542,29543,29545,29547,29548,29550,29551,29553,29559,29561,29564,29568,29569,29571,29573,29574,29582,29584,29587,29589,29591,29592,29596,29598,29599,29600,29602,29605,29606,29610,29611,29613,29621,29623,29625,29628,29629,29631,29637,29638,29641,29643,29644,29647,29650,29651,29654,29657,29661,29665,29667,29670,29671,29673,29684,29685,29687,29689,29690,29691,29693,29695,29696,29697,29700,29703,29706,29713,29722,29723,29732,29734,29736,29737,29738,29739,29740,29741,29742,29743,29744,29745,29753,29760,29763,29764,29766,29767,29771,29773,29777,29778,29783,29789,29794,29798,29799,29800,29803,29805,29806,29809,29810,29824,29825,29829,29830,29831,29833,29839,29840,29841,29842,29848,29849,29850,29852,29855,29856,29857,29859,29862,29864,29865,29866,29867,29870,29871,29873,29874,29877,29881,29883,29887,29896,29897,29900,29904,29907,29912,29914,29915,29918,29919,29924,29928,29930,29931,29935,29940,29946,29947,29948,29951,29958,29970,29974,29975,29984,29985,29988,29991,29993,29994,29999,30006,30009,30013,30014,30015,30016,30019,30023,30024,30030,30032,30034,30039,30046,30047,30049,30063,30065,30073,30074,30075,30076,30077,30078,30081,30085,30096,30098,30099,30101,30105,30108,30114,30116,30132,30138,30143,30144,30145,30148,30150,30156,30158,30159,30167,30172,30175,30176,30177,30180,30183,30188,30190,30191,30193,30201,30208,30210,30211,30212,30215,30216,30218,30220,30223,30226,30227,30229,30230,30233,30235,30236,30237,30238,30243,30245,30246,30249,30253,30258,30259,30261,30264,30265,30266,30268,30282,30272,30273,30275,30276,30277,30281,30283,30293,30297,30303,30308,30309,30317,30318,30319,30321,30324,30337,30341,30348,30349,30357,30363,30364,30365,30367,30368,30370,30371,30372,30373,30374,30375,30376,30378,30381,30397,30401,30405,30409,30411,30412,30414,30420,30425,30432,30438,30440,30444,30448,30449,30454,30457,30460,30464,30470,30474,30478,30482,30484,30485,30487,30489,30490,30492,30498,30504,30509,30510,30511,30516,30517,30518,30521,30525,30526,30530,30533,30534,30538,30541,30542,30543,30546,30550,30551,30556,30558,30559,30560,30562,30564,30567,30570,30572,30576,30578,30579,30580,30586,30589,30592,30596,30604,30605,30612,30613,30614,30618,30623,30626,30631,30634,30638,30639,30641,30645,30654,30659,30665,30673,30674,30677,30681,30686,30687,30688,30692,30694,30698,30700,30704,30705,30708,30712,30715,30725,30726,30729,30733,30734,30737,30749,30753,30754,30755,30765,30766,30768,30773,30775,30787,30788,30791,30792,30796,30798,30802,30812,30814,30816,30817,30819,30820,30824,30826,30830,30842,30846,30858,30863,30868,30872,30881,30877,30878,30879,30884,30888,30892,30893,30896,30897,30898,30899,30907,30909,30911,30919,30920,30921,30924,30926,30930,30931,30933,30934,30948,30939,30943,30944,30945,30950,30954,30962,30963,30976,30966,30967,30970,30971,30975,30982,30988,30992,31002,31004,31006,31007,31008,31013,31015,31017,31021,31025,31028,31029,31035,31037,31039,31044,31045,31046,31050,31051,31055,31057,31060,31064,31067,31068,31079,31081,31083,31090,31097,31099,31100,31102,31115,31116,31121,31123,31124,31125,31126,31128,31131,31132,31137,31144,31145,31147,31151,31153,31156,31160,31163,31170,31172,31175,31176,31178,31183,31188,31190,31194,31197,31198,31200,31202,31205,31210,31211,31213,31217,31224,31228,31234,31235,31239,31241,31242,31244,31249,31253,31259,31262,31265,31271,31275,31277,31279,31280,31284,31285,31288,31289,31290,31300,31301,31303,31304,31308,31317,31318,31321,31324,31325,31327,31328,31333,31335,31338,31341,31349,31352,31358,31360,31362,31365,31366,31370,31371,31376,31377,31380,31390,31392,31395,31404,31411,31413,31417,31419,31420,31430,31433,31436,31438,31441,31451,31464,31465,31467,31468,31473,31476,31483,31485,31486,31495,31508,31519,31523,31527,31529,31530,31531,31533,31534,31535,31536,31537,31540,31549,31551,31552,31553,31559,31566,31573,31584,31588,31590,31593,31594,31597,31599,31602,31603,31607,31620,31625,31630,31632,31633,31638,31643,31646,31648,31653,31660,31663,31664,31666,31669,31670,31674,31675,31676,31677,31682,31685,31688,31690,31700,31702,31703,31705,31706,31707,31720,31722,31730,31732,31733,31736,31737,31738,31740,31742,31745,31746,31747,31748,31750,31753,31755,31756,31758,31759,31769,31771,31776,31781,31782,31784,31788,31793,31795,31796,31798,31801,31802,31814,31818,31829,31825,31826,31827,31833,31834,31835,31836,31837,31838,31841,31843,31847,31849,31853,31854,31856,31858,31865,31868,31869,31878,31879,31887,31892,31902,31904,31910,31920,31926,31927,31930,31931,31932,31935,31940,31943,31944,31945,31949,31951,31955,31956,31957,31959,31961,31962,31965,31974,31977,31979,31989,32003,32007,32008,32009,32015,32017,32018,32019,32022,32029,32030,32035,32038,32042,32045,32049,32060,32061,32062,32064,32065,32071,32072,32077,32081,32083,32087,32089,32090,32092,32093,32101,32103,32106,32112,32120,32122,32123,32127,32129,32130,32131,32133,32134,32136,32139,32140,32141,32145,32150,32151,32157,32158,32166,32167,32170,32179,32182,32183,32185,32194,32195,32196,32197,32198,32204,32205,32206,32215,32217,32256,32226,32229,32230,32234,32235,32237,32241,32245,32246,32249,32250,32264,32272,32273,32277,32279,32284,32285,32288,32295,32296,32300,32301,32303,32307,32310,32319,32324,32325,32327,32334,32336,32338,32344,32351,32353,32354,32357,32363,32366,32367,32371,32376,32382,32385,32390,32391,32394,32397,32401,32405,32408,32410,32413,32414,32572,32571,32573,32574,32575,32579,32580,32583,32591,32594,32595,32603,32604,32605,32609,32611,32612,32613,32614,32621,32625,32637,32638,32639,32640,32651,32653,32655,32656,32657,32662,32663,32668,32673,32674,32678,32682,32685,32692,32700,32703,32704,32707,32712,32718,32719,32731,32735,32739,32741,32744,32748,32750,32751,32754,32762,32765,32766,32767,32775,32776,32778,32781,32782,32783,32785,32787,32788,32790,32797,32798,32799,32800,32804,32806,32812,32814,32816,32820,32821,32823,32825,32826,32828,32830,32832,32836,32864,32868,32870,32877,32881,32885,32897,32904,32910,32924,32926,32934,32935,32939,32952,32953,32968,32973,32975,32978,32980,32981,32983,32984,32992,33005,33006,33008,33010,33011,33014,33017,33018,33022,33027,33035,33046,33047,33048,33052,33054,33056,33060,33063,33068,33072,33077,33082,33084,33093,33095,33098,33100,33106,33111,33120,33121,33127,33128,33129,33133,33135,33143,33153,33168,33156,33157,33158,33163,33166,33174,33176,33179,33182,33186,33198,33202,33204,33211,33227,33219,33221,33226,33230,33231,33237,33239,33243,33245,33246,33249,33252,33259,33260,33264,33265,33266,33269,33270,33272,33273,33277,33279,33280,33283,33295,33299,33300,33305,33306,33309,33313,33314,33320,33330,33332,33338,33347,33348,33349,33350,33355,33358,33359,33361,33366,33372,33376,33379,33383,33389,33396,33403,33405,33407,33408,33409,33411,33412,33415,33417,33418,33422,33425,33428,33430,33432,33434,33435,33440,33441,33443,33444,33447,33448,33449,33450,33454,33456,33458,33460,33463,33466,33468,33470,33471,33478,33488,33493,33498,33504,33506,33508,33512,33514,33517,33519,33526,33527,33533,33534,33536,33537,33543,33544,33546,33547,33620,33563,33565,33566,33567,33569,33570,33580,33581,33582,33584,33587,33591,33594,33596,33597,33602,33603,33604,33607,33613,33614,33617,33621,33622,33623,33648,33656,33661,33663,33664,33666,33668,33670,33677,33682,33684,33685,33688,33689,33691,33692,33693,33702,33703,33705,33708,33726,33727,33728,33735,33737,33743,33744,33745,33748,33757,33619,33768,33770,33782,33784,33785,33788,33793,33798,33802,33807,33809,33813,33817,33709,33839,33849,33861,33863,33864,33866,33869,33871,33873,33874,33878,33880,33881,33882,33884,33888,33892,33893,33895,33898,33904,33907,33908,33910,33912,33916,33917,33921,33925,33938,33939,33941,33950,33958,33960,33961,33962,33967,33969,33972,33978,33981,33982,33984,33986,33991,33992,33996,33999,34003,34012,34023,34026,34031,34032,34033,34034,34039,34098,34042,34043,34045,34050,34051,34055,34060,34062,34064,34076,34078,34082,34083,34084,34085,34087,34090,34091,34095,34099,34100,34102,34111,34118,34127,34128,34129,34130,34131,34134,34137,34140,34141,34142,34143,34144,34145,34146,34148,34155,34159,34169,34170,34171,34173,34175,34177,34181,34182,34185,34187,34188,34191,34195,34200,34205,34207,34208,34210,34213,34215,34228,34230,34231,34232,34236,34237,34238,34239,34242,34247,34250,34251,34254,34221,34264,34266,34271,34272,34278,34280,34285,34291,34294,34300,34303,34304,34308,34309,34317,34318,34320,34321,34322,34328,34329,34331,34334,34337,34343,34345,34358,34360,34362,34364,34365,34368,34370,34374,34386,34387,34390,34391,34392,34393,34397,34400,34401,34402,34403,34404,34409,34412,34415,34421,34422,34423,34426,34445,34449,34454,34456,34458,34460,34465,34470,34471,34472,34477,34481,34483,34484,34485,34487,34488,34489,34495,34496,34497,34499,34501,34513,34514,34517,34519,34522,34524,34528,34531,34533,34535,34440,34554,34556,34557,34564,34565,34567,34571,34574,34575,34576,34579,34580,34585,34590,34591,34593,34595,34600,34606,34607,34609,34610,34617,34618,34620,34621,34622,34624,34627,34629,34637,34648,34653,34657,34660,34661,34671,34673,34674,34683,34691,34692,34693,34694,34695,34696,34697,34699,34700,34704,34707,34709,34711,34712,34713,34718,34720,34723,34727,34732,34733,34734,34737,34741,34750,34751,34753,34760,34761,34762,34766,34773,34774,34777,34778,34780,34783,34786,34787,34788,34794,34795,34797,34801,34803,34808,34810,34815,34817,34819,34822,34825,34826,34827,34832,34841,34834,34835,34836,34840,34842,34843,34844,34846,34847,34856,34861,34862,34864,34866,34869,34874,34876,34881,34883,34885,34888,34889,34890,34891,34894,34897,34901,34902,34904,34906,34908,34911,34912,34916,34921,34929,34937,34939,34944,34968,34970,34971,34972,34975,34976,34984,34986,35002,35005,35006,35008,35018,35019,35020,35021,35022,35025,35026,35027,35035,35038,35047,35055,35056,35057,35061,35063,35073,35078,35085,35086,35087,35093,35094,35096,35097,35098,35100,35104,35110,35111,35112,35120,35121,35122,35125,35129,35130,35134,35136,35138,35141,35142,35145,35151,35154,35159,35162,35163,35164,35169,35170,35171,35179,35182,35184,35187,35189,35194,35195,35196,35197,35209,35213,35216,35220,35221,35227,35228,35231,35232,35237,35248,35252,35253,35254,35255,35260,35284,35285,35286,35287,35288,35301,35305,35307,35309,35313,35315,35318,35321,35325,35327,35332,35333,35335,35343,35345,35346,35348,35349,35358,35360,35362,35364,35366,35371,35372,35375,35381,35383,35389,35390,35392,35395,35397,35399,35401,35405,35406,35411,35414,35415,35416,35420,35421,35425,35429,35431,35445,35446,35447,35449,35450,35451,35454,35455,35456,35459,35462,35467,35471,35472,35474,35478,35479,35481,35487,35495,35497,35502,35503,35507,35510,35511,35515,35518,35523,35526,35528,35529,35530,35537,35539,35540,35541,35543,35549,35551,35564,35568,35572,35573,35574,35580,35583,35589,35590,35595,35601,35612,35614,35615,35594,35629,35632,35639,35644,35650,35651,35652,35653,35654,35656,35666,35667,35668,35673,35661,35678,35683,35693,35702,35704,35705,35708,35710,35713,35716,35717,35723,35725,35727,35732,35733,35740,35742,35743,35896,35897,35901,35902,35909,35911,35913,35915,35919,35921,35923,35924,35927,35928,35931,35933,35929,35939,35940,35942,35944,35945,35949,35955,35957,35958,35963,35966,35974,35975,35979,35984,35986,35987,35993,35995,35996,36004,36025,36026,36037,36038,36041,36043,36047,36054,36053,36057,36061,36065,36072,36076,36079,36080,36082,36085,36087,36088,36094,36095,36097,36099,36105,36114,36119,36123,36197,36201,36204,36206,36223,36226,36228,36232,36237,36240,36241,36245,36254,36255,36256,36262,36267,36268,36271,36274,36277,36279,36281,36283,36288,36293,36294,36295,36296,36298,36302,36305,36308,36309,36311,36313,36324,36325,36327,36332,36336,36284,36337,36338,36340,36349,36353,36356,36357,36358,36363,36369,36372,36374,36384,36385,36386,36387,36390,36391,36401,36403,36406,36407,36408,36409,36413,36416,36417,36427,36429,36430,36431,36436,36443,36444,36445,36446,36449,36450,36457,36460,36461,36463,36464,36465,36473,36474,36475,36482,36483,36489,36496,36498,36501,36506,36507,36509,36510,36514,36519,36521,36525,36526,36531,36533,36538,36539,36544,36545,36547,36548,36551,36559,36561,36564,36572,36584,36590,36592,36593,36599,36601,36602,36589,36608,36610,36615,36616,36623,36624,36630,36631,36632,36638,36640,36641,36643,36645,36647,36648,36652,36653,36654,36660,36661,36662,36663,36666,36672,36673,36675,36679,36687,36689,36690,36691,36692,36693,36696,36701,36702,36709,36765,36768,36769,36772,36773,36774,36789,36790,36792,36798,36800,36801,36806,36810,36811,36813,36816,36818,36819,36821,36832,36835,36836,36840,36846,36849,36853,36854,36859,36862,36866,36868,36872,36876,36888,36891,36904,36905,36911,36906,36908,36909,36915,36916,36919,36927,36931,36932,36940,36955,36957,36962,36966,36967,36972,36976,36980,36985,36997,37e3,37003,37004,37006,37008,37013,37015,37016,37017,37019,37024,37025,37026,37029,37040,37042,37043,37044,37046,37053,37068,37054,37059,37060,37061,37063,37064,37077,37079,37080,37081,37084,37085,37087,37093,37074,37110,37099,37103,37104,37108,37118,37119,37120,37124,37125,37126,37128,37133,37136,37140,37142,37143,37144,37146,37148,37150,37152,37157,37154,37155,37159,37161,37166,37167,37169,37172,37174,37175,37177,37178,37180,37181,37187,37191,37192,37199,37203,37207,37209,37210,37211,37217,37220,37223,37229,37236,37241,37242,37243,37249,37251,37253,37254,37258,37262,37265,37267,37268,37269,37272,37278,37281,37286,37288,37292,37293,37294,37296,37297,37298,37299,37302,37307,37308,37309,37311,37314,37315,37317,37331,37332,37335,37337,37338,37342,37348,37349,37353,37354,37356,37357,37358,37359,37360,37361,37367,37369,37371,37373,37376,37377,37380,37381,37382,37383,37385,37386,37388,37392,37394,37395,37398,37400,37404,37405,37411,37412,37413,37414,37416,37422,37423,37424,37427,37429,37430,37432,37433,37434,37436,37438,37440,37442,37443,37446,37447,37450,37453,37454,37455,37457,37464,37465,37468,37469,37472,37473,37477,37479,37480,37481,37486,37487,37488,37493,37494,37495,37496,37497,37499,37500,37501,37503,37512,37513,37514,37517,37518,37522,37527,37529,37535,37536,37540,37541,37543,37544,37547,37551,37554,37558,37560,37562,37563,37564,37565,37567,37568,37569,37570,37571,37573,37574,37575,37576,37579,37580,37581,37582,37584,37587,37589,37591,37592,37593,37596,37597,37599,37600,37601,37603,37605,37607,37608,37612,37614,37616,37625,37627,37631,37632,37634,37640,37645,37649,37652,37653,37660,37661,37662,37663,37665,37668,37669,37671,37673,37674,37683,37684,37686,37687,37703,37704,37705,37712,37713,37714,37717,37719,37720,37722,37726,37732,37733,37735,37737,37738,37741,37743,37744,37745,37747,37748,37750,37754,37757,37759,37760,37761,37762,37768,37770,37771,37773,37775,37778,37781,37784,37787,37790,37793,37795,37796,37798,37800,37803,37812,37813,37814,37818,37801,37825,37828,37829,37830,37831,37833,37834,37835,37836,37837,37843,37849,37852,37854,37855,37858,37862,37863,37881,37879,37880,37882,37883,37885,37889,37890,37892,37896,37897,37901,37902,37903,37909,37910,37911,37919,37934,37935,37937,37938,37939,37940,37947,37951,37949,37955,37957,37960,37962,37964,37973,37977,37980,37983,37985,37987,37992,37995,37997,37998,37999,38001,38002,38020,38019,38264,38265,38270,38276,38280,38284,38285,38286,38301,38302,38303,38305,38310,38313,38315,38316,38324,38326,38330,38333,38335,38342,38344,38345,38347,38352,38353,38354,38355,38361,38362,38365,38366,38367,38368,38372,38374,38429,38430,38434,38436,38437,38438,38444,38449,38451,38455,38456,38457,38458,38460,38461,38465,38482,38484,38486,38487,38488,38497,38510,38516,38523,38524,38526,38527,38529,38530,38531,38532,38537,38545,38550,38554,38557,38559,38564,38565,38566,38569,38574,38575,38579,38586,38602,38610,23986,38616,38618,38621,38622,38623,38633,38639,38641,38650,38658,38659,38661,38665,38682,38683,38685,38689,38690,38691,38696,38705,38707,38721,38723,38730,38734,38735,38741,38743,38744,38746,38747,38755,38759,38762,38766,38771,38774,38775,38776,38779,38781,38783,38784,38793,38805,38806,38807,38809,38810,38814,38815,38818,38828,38830,38833,38834,38837,38838,38840,38841,38842,38844,38846,38847,38849,38852,38853,38855,38857,38858,38860,38861,38862,38864,38865,38868,38871,38872,38873,38877,38878,38880,38875,38881,38884,38895,38897,38900,38903,38904,38906,38919,38922,38937,38925,38926,38932,38934,38940,38942,38944,38947,38950,38955,38958,38959,38960,38962,38963,38965,38949,38974,38980,38983,38986,38993,38994,38995,38998,38999,39001,39002,39010,39011,39013,39014,39018,39020,39083,39085,39086,39088,39092,39095,39096,39098,39099,39103,39106,39109,39112,39116,39137,39139,39141,39142,39143,39146,39155,39158,39170,39175,39176,39185,39189,39190,39191,39194,39195,39196,39199,39202,39206,39207,39211,39217,39218,39219,39220,39221,39225,39226,39227,39228,39232,39233,39238,39239,39240,39245,39246,39252,39256,39257,39259,39260,39262,39263,39264,39323,39325,39327,39334,39344,39345,39346,39349,39353,39354,39357,39359,39363,39369,39379,39380,39385,39386,39388,39390,39399,39402,39403,39404,39408,39412,39413,39417,39421,39422,39426,39427,39428,39435,39436,39440,39441,39446,39454,39456,39458,39459,39460,39463,39469,39470,39475,39477,39478,39480,39495,39489,39492,39498,39499,39500,39502,39505,39508,39510,39517,39594,39596,39598,39599,39602,39604,39605,39606,39609,39611,39614,39615,39617,39619,39622,39624,39630,39632,39634,39637,39638,39639,39643,39644,39648,39652,39653,39655,39657,39660,39666,39667,39669,39673,39674,39677,39679,39680,39681,39682,39683,39684,39685,39688,39689,39691,39692,39693,39694,39696,39698,39702,39705,39707,39708,39712,39718,39723,39725,39731,39732,39733,39735,39737,39738,39741,39752,39755,39756,39765,39766,39767,39771,39774,39777,39779,39781,39782,39784,39786,39787,39788,39789,39790,39795,39797,39799,39800,39801,39807,39808,39812,39813,39814,39815,39817,39818,39819,39821,39823,39824,39828,39834,39837,39838,39846,39847,39849,39852,39856,39857,39858,39863,39864,39867,39868,39870,39871,39873,39879,39880,39886,39888,39895,39896,39901,39903,39909,39911,39914,39915,39919,39923,39927,39928,39929,39930,39933,39935,39936,39938,39947,39951,39953,39958,39960,39961,39962,39964,39966,39970,39971,39974,39975,39976,39977,39978,39985,39989,39990,39991,39997,40001,40003,40004,40005,40009,40010,40014,40015,40016,40019,40020,40022,40024,40027,40029,40030,40031,40035,40041,40042,40028,40043,40040,40046,40048,40050,40053,40055,40059,40166,40178,40183,40185,40203,40194,40209,40215,40216,40220,40221,40222,40239,40240,40242,40243,40244,40250,40252,40261,40253,40258,40259,40263,40266,40275,40276,40287,40291,40290,40293,40297,40298,40299,40304,40310,40311,40315,40316,40318,40323,40324,40326,40330,40333,40334,40338,40339,40341,40342,40343,40344,40353,40362,40364,40366,40369,40373,40377,40380,40383,40387,40391,40393,40394,40404,40405,40406,40407,40410,40414,40415,40416,40421,40423,40425,40427,40430,40432,40435,40436,40446,40458,40450,40455,40462,40464,40465,40466,40469,40470,40473,40476,40477,40570,40571,40572,40576,40578,40579,40580,40581,40583,40590,40591,40598,40600,40603,40606,40612,40616,40620,40622,40623,40624,40627,40628,40629,40646,40648,40651,40661,40671,40676,40679,40684,40685,40686,40688,40689,40690,40693,40696,40703,40706,40707,40713,40719,40720,40721,40722,40724,40726,40727,40729,40730,40731,40735,40738,40742,40746,40747,40751,40753,40754,40756,40759,40761,40762,40764,40765,40767,40769,40771,40772,40773,40774,40775,40787,40789,40790,40791,40792,40794,40797,40798,40808,40809,40813,40814,40815,40816,40817,40819,40821,40826,40829,40847,40848,40849,40850,40852,40854,40855,40862,40865,40866,40867,40869,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],ibm864:[176,183,8729,8730,9618,9472,9474,9532,9508,9516,9500,9524,9488,9484,9492,9496,946,8734,966,177,189,188,8776,171,187,65271,65272,155,156,65275,65276,159,160,173,65154,163,164,65156,null,null,65166,65167,65173,65177,1548,65181,65185,65189,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,65233,1563,65201,65205,65209,1567,162,65152,65153,65155,65157,65226,65163,65165,65169,65171,65175,65179,65183,65187,65191,65193,65195,65197,65199,65203,65207,65211,65215,65217,65221,65227,65231,166,172,247,215,65225,1600,65235,65239,65243,65247,65251,65255,65259,65261,65263,65267,65213,65228,65230,65229,65249,65149,1617,65253,65257,65260,65264,65266,65232,65237,65269,65270,65245,65241,65265,9632,null],ibm866:[1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1025,1105,1028,1108,1031,1111,1038,1118,176,8729,183,8730,8470,164,9632,160],"iso-8859-2":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,728,321,164,317,346,167,168,352,350,356,377,173,381,379,176,261,731,322,180,318,347,711,184,353,351,357,378,733,382,380,340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270,272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223,341,225,226,259,228,314,263,231,269,233,281,235,283,237,238,271,273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729],"iso-8859-3":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,294,728,163,164,null,292,167,168,304,350,286,308,173,null,379,176,295,178,179,180,181,293,183,184,305,351,287,309,189,null,380,192,193,194,null,196,266,264,199,200,201,202,203,204,205,206,207,null,209,210,211,212,288,214,215,284,217,218,219,220,364,348,223,224,225,226,null,228,267,265,231,232,233,234,235,236,237,238,239,null,241,242,243,244,289,246,247,285,249,250,251,252,365,349,729],"iso-8859-4":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,312,342,164,296,315,167,168,352,274,290,358,173,381,175,176,261,731,343,180,297,316,711,184,353,275,291,359,330,382,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,298,272,325,332,310,212,213,214,215,216,370,218,219,220,360,362,223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,299,273,326,333,311,244,245,246,247,248,371,250,251,252,361,363,729],"iso-8859-5":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,173,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,8470,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,167,1118,1119],"iso-8859-6":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,null,null,null,164,null,null,null,null,null,null,null,1548,173,null,null,null,null,null,null,null,null,null,null,null,null,null,1563,null,null,null,1567,null,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,null,null,null,null,null,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,null,null,null,null,null,null,null,null,null,null,null,null,null],"iso-8859-7":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,8216,8217,163,8364,8367,166,167,168,169,890,171,172,173,null,8213,176,177,178,179,900,901,902,183,904,905,906,187,908,189,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,null,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,null],"iso-8859-8":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,null,162,163,164,165,166,167,168,169,215,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,247,187,188,189,190,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,8215,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,null,null,8206,8207,null],"iso-8859-10":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,274,290,298,296,310,167,315,272,352,358,381,173,362,330,176,261,275,291,299,297,311,183,316,273,353,359,382,8213,363,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,207,208,325,332,211,212,213,214,360,216,370,218,219,220,221,222,223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,239,240,326,333,243,244,245,246,361,248,371,250,251,252,253,254,312],"iso-8859-13":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,8221,162,163,164,8222,166,167,216,169,342,171,172,173,174,198,176,177,178,179,8220,181,182,183,248,185,343,187,188,189,190,230,260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315,352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223,261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316,353,324,326,243,333,245,246,247,371,322,347,363,252,380,382,8217],"iso-8859-14":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,7682,7683,163,266,267,7690,167,7808,169,7810,7691,7922,173,174,376,7710,7711,288,289,7744,7745,182,7766,7809,7767,7811,7776,7923,7812,7813,7777,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,372,209,210,211,212,213,214,7786,216,217,218,219,220,221,374,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,373,241,242,243,244,245,246,7787,248,249,250,251,252,253,375,255],"iso-8859-15":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,8364,165,352,167,353,169,170,171,172,173,174,175,176,177,178,179,381,181,182,183,382,185,186,187,338,339,376,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255],"iso-8859-16":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,261,321,8364,8222,352,167,353,169,536,171,377,173,378,379,176,177,268,322,381,8221,182,183,382,269,537,187,338,339,376,380,192,193,194,258,196,262,198,199,200,201,202,203,204,205,206,207,272,323,210,211,212,336,214,346,368,217,218,219,220,280,538,223,224,225,226,259,228,263,230,231,232,233,234,235,236,237,238,239,273,324,242,243,244,337,246,347,369,249,250,251,252,281,539,255],"koi8-r":[9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9600,9604,9608,9612,9616,9617,9618,9619,8992,9632,8729,8730,8776,8804,8805,160,8993,176,178,183,247,9552,9553,9554,1105,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,1025,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,169,1102,1072,1073,1094,1076,1077,1092,1075,1093,1080,1081,1082,1083,1084,1085,1086,1087,1103,1088,1089,1090,1091,1078,1074,1100,1099,1079,1096,1101,1097,1095,1098,1070,1040,1041,1062,1044,1045,1060,1043,1061,1048,1049,1050,1051,1052,1053,1054,1055,1071,1056,1057,1058,1059,1046,1042,1068,1067,1047,1064,1069,1065,1063,1066],"koi8-u":[9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9600,9604,9608,9612,9616,9617,9618,9619,8992,9632,8729,8730,8776,8804,8805,160,8993,176,178,183,247,9552,9553,9554,1105,1108,9556,1110,1111,9559,9560,9561,9562,9563,1169,9565,9566,9567,9568,9569,1025,1028,9571,1030,1031,9574,9575,9576,9577,9578,1168,9580,169,1102,1072,1073,1094,1076,1077,1092,1075,1093,1080,1081,1082,1083,1084,1085,1086,1087,1103,1088,1089,1090,1091,1078,1074,1100,1099,1079,1096,1101,1097,1095,1098,1070,1040,1041,1062,1044,1045,1060,1043,1061,1048,1049,1050,1051,1052,1053,1054,1055,1071,1056,1057,1058,1059,1046,1042,1068,1067,1047,1064,1069,1065,1063,1066],macintosh:[196,197,199,201,209,214,220,225,224,226,228,227,229,231,233,232,234,235,237,236,238,239,241,243,242,244,246,245,250,249,251,252,8224,176,162,163,167,8226,182,223,174,169,8482,180,168,8800,198,216,8734,177,8804,8805,165,181,8706,8721,8719,960,8747,170,186,937,230,248,191,161,172,8730,402,8776,8710,171,187,8230,160,192,195,213,338,339,8211,8212,8220,8221,8216,8217,247,9674,255,376,8260,8364,8249,8250,64257,64258,8225,183,8218,8222,8240,194,202,193,203,200,205,206,207,204,211,212,63743,210,218,219,217,305,710,732,175,728,729,730,184,733,731,711],"windows-874":[8364,129,130,131,132,8230,134,135,136,137,138,139,140,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,152,153,154,155,156,157,158,159,160,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,null,null,null,null,3647,3648,3649,3650,3651,3652,3653,3654,3655,3656,3657,3658,3659,3660,3661,3662,3663,3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675,null,null,null,null],"windows-1250":[8364,129,8218,131,8222,8230,8224,8225,136,8240,352,8249,346,356,381,377,144,8216,8217,8220,8221,8226,8211,8212,152,8482,353,8250,347,357,382,378,160,711,728,321,164,260,166,167,168,169,350,171,172,173,174,379,176,177,731,322,180,181,182,183,184,261,351,187,317,733,318,380,340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270,272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223,341,225,226,259,228,314,263,231,269,233,281,235,283,237,238,271,273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729],"windows-1251":[1026,1027,8218,1107,8222,8230,8224,8225,8364,8240,1033,8249,1034,1036,1035,1039,1106,8216,8217,8220,8221,8226,8211,8212,152,8482,1113,8250,1114,1116,1115,1119,160,1038,1118,1032,164,1168,166,167,1025,169,1028,171,172,173,174,1031,176,177,1030,1110,1169,181,182,183,1105,8470,1108,187,1112,1029,1109,1111,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103],"windows-1252":[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255],"windows-1253":[8364,129,8218,402,8222,8230,8224,8225,136,8240,138,8249,140,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,152,8482,154,8250,156,157,158,159,160,901,902,163,164,165,166,167,168,169,null,171,172,173,174,8213,176,177,178,179,900,181,182,183,904,905,906,187,908,189,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,null,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,null],"windows-1254":[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,158,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,286,209,210,211,212,213,214,215,216,217,218,219,220,304,350,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,287,241,242,243,244,245,246,247,248,249,250,251,252,305,351,255],"windows-1255":[8364,129,8218,402,8222,8230,8224,8225,710,8240,138,8249,140,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,154,8250,156,157,158,159,160,161,162,163,8362,165,166,167,168,169,215,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,247,187,188,189,190,191,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,null,1467,1468,1469,1470,1471,1472,1473,1474,1475,1520,1521,1522,1523,1524,null,null,null,null,null,null,null,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,null,null,8206,8207,null],"windows-1256":[8364,1662,8218,402,8222,8230,8224,8225,710,8240,1657,8249,338,1670,1688,1672,1711,8216,8217,8220,8221,8226,8211,8212,1705,8482,1681,8250,339,8204,8205,1722,160,1548,162,163,164,165,166,167,168,169,1726,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,1563,187,188,189,190,1567,1729,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,215,1591,1592,1593,1594,1600,1601,1602,1603,224,1604,226,1605,1606,1607,1608,231,232,233,234,235,1609,1610,238,239,1611,1612,1613,1614,244,1615,1616,247,1617,249,1618,251,252,8206,8207,1746],"windows-1257":[8364,129,8218,131,8222,8230,8224,8225,136,8240,138,8249,140,168,711,184,144,8216,8217,8220,8221,8226,8211,8212,152,8482,154,8250,156,175,731,159,160,null,162,163,164,null,166,167,216,169,342,171,172,173,174,198,176,177,178,179,180,181,182,183,248,185,343,187,188,189,190,230,260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315,352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223,261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316,353,324,326,243,333,245,246,247,371,322,347,363,252,380,382,729],"windows-1258":[8364,129,8218,402,8222,8230,8224,8225,710,8240,138,8249,338,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,154,8250,339,157,158,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,258,196,197,198,199,200,201,202,203,768,205,206,207,272,209,777,211,212,416,214,215,216,217,218,219,220,431,771,223,224,225,226,259,228,229,230,231,232,233,234,235,769,237,238,239,273,241,803,243,244,417,246,247,248,249,250,251,252,432,8363,255],"x-mac-cyrillic":[1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,8224,176,1168,163,167,8226,182,1030,174,169,8482,1026,1106,8800,1027,1107,8734,177,8804,8805,1110,181,1169,1032,1028,1108,1031,1111,1033,1113,1034,1114,1112,1029,172,8730,402,8776,8710,171,187,8230,160,1035,1115,1036,1116,1109,8211,8212,8220,8221,8216,8217,247,8222,1038,1118,1039,1119,8470,1025,1105,1103,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,8364]}},26858:(__unused_webpack_module,exports2,__webpack_require__2)=>{function inRange(a,min,max){return min<=a&&a<=max}function div(n,d){return Math.floor(n/d)}__name(inRange,"inRange"),__name(div,"div");function ByteInputStream(bytes){var pos=0;this.get=function(){return pos>=bytes.length?-1:Number(bytes[pos])},this.offset=function(n){if((pos+=n)<0)throw new Error("Seeking past start of the buffer");if(pos>bytes.length)throw new Error("Seeking past EOF")},this.match=function(test){if(test.length>pos+bytes.length)return!1;var i2;for(i2=0;i2cps.length)throw new Error("Seeking past EOF")},this.get=function(){return pos>=cps.length?-1:cps[pos]}}function CodePointOutputStream(){var string="";this.string=function(){return string},this.emit=function(c){c<=65535?string+=String.fromCharCode(c):(c-=65536,string+=String.fromCharCode(55296+(c>>10&1023)),string+=String.fromCharCode(56320+(1023&c)))}}function EncodingError(message2){this.name="EncodingError",this.message=message2,this.code=0}function decoderError(fatal,opt_code_point){if(fatal)throw new EncodingError("Decoder error");return opt_code_point||65533}function encoderError(code_point){throw new EncodingError("The code point "+code_point+" could not be encoded.")}function getEncoding(label){return label=String(label).trim().toLowerCase(),Object.prototype.hasOwnProperty.call(label_to_encoding,label)?label_to_encoding[label]:null}__name(ByteInputStream,"ByteInputStream"),__name(ByteOutputStream,"ByteOutputStream"),__name(CodePointInputStream,"CodePointInputStream"),__name(CodePointOutputStream,"CodePointOutputStream"),__name(EncodingError,"EncodingError"),EncodingError.prototype=Error.prototype,__name(decoderError,"decoderError"),__name(encoderError,"encoderError"),__name(getEncoding,"getEncoding");var encodings=[{encodings:[{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"utf-8"}],heading:"The Encoding"},{encodings:[{labels:["864","cp864","csibm864","ibm864"],name:"ibm864"},{labels:["866","cp866","csibm866","ibm866"],name:"ibm866"},{labels:["csisolatin2","iso-8859-2","iso-ir-101","iso8859-2","iso88592","iso_8859-2","iso_8859-2:1987","l2","latin2"],name:"iso-8859-2"},{labels:["csisolatin3","iso-8859-3","iso-ir-109","iso8859-3","iso88593","iso_8859-3","iso_8859-3:1988","l3","latin3"],name:"iso-8859-3"},{labels:["csisolatin4","iso-8859-4","iso-ir-110","iso8859-4","iso88594","iso_8859-4","iso_8859-4:1988","l4","latin4"],name:"iso-8859-4"},{labels:["csisolatincyrillic","cyrillic","iso-8859-5","iso-ir-144","iso8859-5","iso88595","iso_8859-5","iso_8859-5:1988"],name:"iso-8859-5"},{labels:["arabic","asmo-708","csiso88596e","csiso88596i","csisolatinarabic","ecma-114","iso-8859-6","iso-8859-6-e","iso-8859-6-i","iso-ir-127","iso8859-6","iso88596","iso_8859-6","iso_8859-6:1987"],name:"iso-8859-6"},{labels:["csisolatingreek","ecma-118","elot_928","greek","greek8","iso-8859-7","iso-ir-126","iso8859-7","iso88597","iso_8859-7","iso_8859-7:1987","sun_eu_greek"],name:"iso-8859-7"},{labels:["csiso88598e","csisolatinhebrew","hebrew","iso-8859-8","iso-8859-8-e","iso-ir-138","iso8859-8","iso88598","iso_8859-8","iso_8859-8:1988","visual"],name:"iso-8859-8"},{labels:["csiso88598i","iso-8859-8-i","logical"],name:"iso-8859-8-i"},{labels:["csisolatin6","iso-8859-10","iso-ir-157","iso8859-10","iso885910","l6","latin6"],name:"iso-8859-10"},{labels:["iso-8859-13","iso8859-13","iso885913"],name:"iso-8859-13"},{labels:["iso-8859-14","iso8859-14","iso885914"],name:"iso-8859-14"},{labels:["csisolatin9","iso-8859-15","iso8859-15","iso885915","iso_8859-15","l9"],name:"iso-8859-15"},{labels:["iso-8859-16"],name:"iso-8859-16"},{labels:["cskoi8r","koi","koi8","koi8-r","koi8_r"],name:"koi8-r"},{labels:["koi8-u"],name:"koi8-u"},{labels:["csmacintosh","mac","macintosh","x-mac-roman"],name:"macintosh"},{labels:["dos-874","iso-8859-11","iso8859-11","iso885911","tis-620","windows-874"],name:"windows-874"},{labels:["cp1250","windows-1250","x-cp1250"],name:"windows-1250"},{labels:["cp1251","windows-1251","x-cp1251"],name:"windows-1251"},{labels:["ansi_x3.4-1968","ascii","cp1252","cp819","csisolatin1","ibm819","iso-8859-1","iso-ir-100","iso8859-1","iso88591","iso_8859-1","iso_8859-1:1987","l1","latin1","us-ascii","windows-1252","x-cp1252"],name:"windows-1252"},{labels:["cp1253","windows-1253","x-cp1253"],name:"windows-1253"},{labels:["cp1254","csisolatin5","iso-8859-9","iso-ir-148","iso8859-9","iso88599","iso_8859-9","iso_8859-9:1989","l5","latin5","windows-1254","x-cp1254"],name:"windows-1254"},{labels:["cp1255","windows-1255","x-cp1255"],name:"windows-1255"},{labels:["cp1256","windows-1256","x-cp1256"],name:"windows-1256"},{labels:["cp1257","windows-1257","x-cp1257"],name:"windows-1257"},{labels:["cp1258","windows-1258","x-cp1258"],name:"windows-1258"},{labels:["x-mac-cyrillic","x-mac-ukrainian"],name:"x-mac-cyrillic"}],heading:"Legacy single-byte encodings"},{encodings:[{labels:["chinese","csgb2312","csiso58gb231280","gb2312","gb_2312","gb_2312-80","gbk","iso-ir-58","x-gbk"],name:"gbk"},{labels:["gb18030"],name:"gb18030"},{labels:["hz-gb-2312"],name:"hz-gb-2312"}],heading:"Legacy multi-byte Chinese (simplified) encodings"},{encodings:[{labels:["big5","big5-hkscs","cn-big5","csbig5","x-x-big5"],name:"big5"}],heading:"Legacy multi-byte Chinese (traditional) encodings"},{encodings:[{labels:["cseucpkdfmtjapanese","euc-jp","x-euc-jp"],name:"euc-jp"},{labels:["csiso2022jp","iso-2022-jp"],name:"iso-2022-jp"},{labels:["csshiftjis","ms_kanji","shift-jis","shift_jis","sjis","windows-31j","x-sjis"],name:"shift_jis"}],heading:"Legacy multi-byte Japanese encodings"},{encodings:[{labels:["cseuckr","csksc56011987","euc-kr","iso-ir-149","korean","ks_c_5601-1987","ks_c_5601-1989","ksc5601","ksc_5601","windows-949"],name:"euc-kr"}],heading:"Legacy multi-byte Korean encodings"},{encodings:[{labels:["csiso2022kr","iso-2022-cn","iso-2022-cn-ext","iso-2022-kr"],name:"replacement"},{labels:["utf-16be"],name:"utf-16be"},{labels:["utf-16","utf-16le"],name:"utf-16le"},{labels:["x-user-defined"],name:"x-user-defined"}],heading:"Legacy miscellaneous encodings"}],name_to_encoding={},label_to_encoding={};function indexCodePointFor(pointer,index){return index&&index[pointer]||null}function indexPointerFor(code_point,index){var pointer=index.indexOf(code_point);return-1===pointer?null:pointer}encodings.forEach(function(category){category.encodings.forEach(function(encoding){name_to_encoding[encoding.name]=encoding,encoding.labels.forEach(function(label){label_to_encoding[label]=encoding})})}),__name(indexCodePointFor,"indexCodePointFor"),__name(indexPointerFor,"indexPointerFor");var indexes=__webpack_require__2(65293);function indexGB18030CodePointFor(pointer){if(pointer>39419&&pointer<189e3||pointer>1237575)return null;var i2,offset=0,code_point_offset=0,idx=indexes.gb18030;for(i2=0;i20;){var temp=div(code_point,Math.pow(64,count-1));result=output_byte_stream.emit(128+temp%64),count-=1}return result}}function SingleByteDecoder(index,options){var fatal=options.fatal;this.decode=function(byte_pointer){var bite=byte_pointer.get();if(-1===bite)return-1;if(byte_pointer.offset(1),inRange(bite,0,127))return bite;var code_point=index[bite-128];return null===code_point?decoderError(fatal):code_point}}function SingleByteEncoder(index,options){options.fatal;this.encode=function(output_byte_stream,code_point_pointer){var code_point=code_point_pointer.get();if(-1===code_point)return-1;if(code_point_pointer.offset(1),inRange(code_point,0,127))return output_byte_stream.emit(code_point);var pointer=indexPointerFor(code_point,index);return null===pointer&&encoderError(code_point),output_byte_stream.emit(pointer+128)}}function GBKDecoder(gb18030,options){var fatal=options.fatal,gbk_first=0,gbk_second=0,gbk_third=0;this.decode=function(byte_pointer){var code_point,bite=byte_pointer.get();if(-1===bite&&0===gbk_first&&0===gbk_second&&0===gbk_third)return-1;if(-1===bite&&(0!==gbk_first||0!==gbk_second||0!==gbk_third)&&(gbk_first=0,gbk_second=0,gbk_third=0,decoderError(fatal)),byte_pointer.offset(1),0!==gbk_third)return code_point=null,inRange(bite,48,57)&&(code_point=indexGB18030CodePointFor(10*(126*(10*(gbk_first-129)+(gbk_second-48))+(gbk_third-129))+bite-48)),gbk_first=0,gbk_second=0,gbk_third=0,null===code_point?(byte_pointer.offset(-3),decoderError(fatal)):code_point;if(0!==gbk_second)return inRange(bite,129,254)?(gbk_third=bite,null):(byte_pointer.offset(-2),gbk_first=0,gbk_second=0,decoderError(fatal));if(0!==gbk_first){if(inRange(bite,48,57)&&gb18030)return gbk_second=bite,null;var lead=gbk_first,pointer=null;gbk_first=0;var offset=bite<127?64:65;return(inRange(bite,64,126)||inRange(bite,128,254))&&(pointer=190*(lead-129)+(bite-offset)),code_point=null===pointer?null:indexCodePointFor(pointer,indexes.gbk),null===pointer&&byte_pointer.offset(-1),null===code_point?decoderError(fatal):code_point}return inRange(bite,0,127)?bite:128===bite?8364:inRange(bite,129,254)?(gbk_first=bite,null):decoderError(fatal)}}function GBKEncoder(gb18030,options){options.fatal;this.encode=function(output_byte_stream,code_point_pointer){var code_point=code_point_pointer.get();if(-1===code_point)return-1;if(code_point_pointer.offset(1),inRange(code_point,0,127))return output_byte_stream.emit(code_point);var pointer=indexPointerFor(code_point,indexes.gbk);if(null!==pointer){var lead=div(pointer,190)+129,trail=pointer%190,offset=trail<63?64:65;return output_byte_stream.emit(lead,trail+offset)}if(null===pointer&&!gb18030)return encoderError(code_point);var byte1=div(div(div(pointer=indexGB18030PointerFor(code_point),10),126),10),byte2=div(div(pointer-=10*byte1*126*10,10),126),byte3=div(pointer-=10*byte2*126,10),byte4=pointer-10*byte3;return output_byte_stream.emit(byte1+129,byte2+48,byte3+129,byte4+48)}}function HZGB2312Decoder(options){var fatal=options.fatal,hzgb2312=!1,hzgb2312_lead=0;this.decode=function(byte_pointer){var bite=byte_pointer.get();if(-1===bite&&0===hzgb2312_lead)return-1;if(-1===bite&&0!==hzgb2312_lead)return hzgb2312_lead=0,decoderError(fatal);if(byte_pointer.offset(1),126===hzgb2312_lead)return hzgb2312_lead=0,123===bite?(hzgb2312=!0,null):125===bite?(hzgb2312=!1,null):126===bite?126:10===bite?null:(byte_pointer.offset(-1),decoderError(fatal));if(0!==hzgb2312_lead){var lead=hzgb2312_lead;hzgb2312_lead=0;var code_point=null;return inRange(bite,33,126)&&(code_point=indexCodePointFor(190*(lead-1)+(bite+63),indexes.gbk)),10===bite&&(hzgb2312=!1),null===code_point?decoderError(fatal):code_point}return 126===bite?(hzgb2312_lead=126,null):hzgb2312?inRange(bite,32,127)?(hzgb2312_lead=bite,null):(10===bite&&(hzgb2312=!1),decoderError(fatal)):inRange(bite,0,127)?bite:decoderError(fatal)}}function HZGB2312Encoder(options){options.fatal;var hzgb2312=!1;this.encode=function(output_byte_stream,code_point_pointer){var code_point=code_point_pointer.get();if(-1===code_point)return-1;if(code_point_pointer.offset(1),inRange(code_point,0,127)&&hzgb2312)return code_point_pointer.offset(-1),hzgb2312=!1,output_byte_stream.emit(126,125);if(126===code_point)return output_byte_stream.emit(126,126);if(inRange(code_point,0,127))return output_byte_stream.emit(code_point);if(!hzgb2312)return code_point_pointer.offset(-1),hzgb2312=!0,output_byte_stream.emit(126,123);var pointer=indexPointerFor(code_point,indexes.gbk);if(null===pointer)return encoderError(code_point);var lead=div(pointer,190)+1,trail=pointer%190-63;return inRange(lead,33,126)&&inRange(trail,33,126)?output_byte_stream.emit(lead,trail):encoderError(code_point)}}function Big5Decoder(options){var fatal=options.fatal,big5_lead=0,big5_pending=null;this.decode=function(byte_pointer){if(null!==big5_pending){var pending=big5_pending;return big5_pending=null,pending}var bite=byte_pointer.get();if(-1===bite&&0===big5_lead)return-1;if(-1===bite&&0!==big5_lead)return big5_lead=0,decoderError(fatal);if(byte_pointer.offset(1),0!==big5_lead){var lead=big5_lead,pointer=null;big5_lead=0;var offset=bite<127?64:98;if((inRange(bite,64,126)||inRange(bite,161,254))&&(pointer=157*(lead-129)+(bite-offset)),1133===pointer)return big5_pending=772,202;if(1135===pointer)return big5_pending=780,202;if(1164===pointer)return big5_pending=772,234;if(1166===pointer)return big5_pending=780,234;var code_point=null===pointer?null:indexCodePointFor(pointer,indexes.big5);return null===pointer&&byte_pointer.offset(-1),null===code_point?decoderError(fatal):code_point}return inRange(bite,0,127)?bite:inRange(bite,129,254)?(big5_lead=bite,null):decoderError(fatal)}}function Big5Encoder(options){options.fatal;this.encode=function(output_byte_stream,code_point_pointer){var code_point=code_point_pointer.get();if(-1===code_point)return-1;if(code_point_pointer.offset(1),inRange(code_point,0,127))return output_byte_stream.emit(code_point);var pointer=indexPointerFor(code_point,indexes.big5);if(null===pointer)return encoderError(code_point);var lead=div(pointer,157)+129,trail=pointer%157,offset=trail<63?64:98;return output_byte_stream.emit(lead,trail+offset)}}function EUCJPDecoder(options){var fatal=options.fatal,eucjp_first=0,eucjp_second=0;this.decode=function(byte_pointer){var lead,code_point,bite=byte_pointer.get();return-1===bite?0===eucjp_first&&0===eucjp_second?-1:(eucjp_first=0,eucjp_second=0,decoderError(fatal)):(byte_pointer.offset(1),0!==eucjp_second?(lead=eucjp_second,eucjp_second=0,code_point=null,inRange(lead,161,254)&&inRange(bite,161,254)&&(code_point=indexCodePointFor(94*(lead-161)+bite-161,indexes.jis0212)),inRange(bite,161,254)||byte_pointer.offset(-1),null===code_point?decoderError(fatal):code_point):142===eucjp_first&&inRange(bite,161,223)?(eucjp_first=0,65377+bite-161):143===eucjp_first&&inRange(bite,161,254)?(eucjp_first=0,eucjp_second=bite,null):0!==eucjp_first?(lead=eucjp_first,eucjp_first=0,code_point=null,inRange(lead,161,254)&&inRange(bite,161,254)&&(code_point=indexCodePointFor(94*(lead-161)+bite-161,indexes.jis0208)),inRange(bite,161,254)||byte_pointer.offset(-1),null===code_point?decoderError(fatal):code_point):inRange(bite,0,127)?bite:142===bite||143===bite||inRange(bite,161,254)?(eucjp_first=bite,null):decoderError(fatal))}}function EUCJPEncoder(options){options.fatal;this.encode=function(output_byte_stream,code_point_pointer){var code_point=code_point_pointer.get();if(-1===code_point)return-1;if(code_point_pointer.offset(1),inRange(code_point,0,127))return output_byte_stream.emit(code_point);if(165===code_point)return output_byte_stream.emit(92);if(8254===code_point)return output_byte_stream.emit(126);if(inRange(code_point,65377,65439))return output_byte_stream.emit(142,code_point-65377+161);var pointer=indexPointerFor(code_point,indexes.jis0208);if(null===pointer)return encoderError(code_point);var lead=div(pointer,94)+161,trail=pointer%94+161;return output_byte_stream.emit(lead,trail)}}function ISO2022JPDecoder(options){var fatal=options.fatal,state_ASCII=0,state_escape_start=1,state_escape_middle=2,state_escape_final=3,state_lead=4,state_trail=5,state_Katakana=6,iso2022jp_state=state_ASCII,iso2022jp_jis0212=!1,iso2022jp_lead=0;this.decode=function(byte_pointer){var bite=byte_pointer.get();switch(-1!==bite&&byte_pointer.offset(1),iso2022jp_state){default:case state_ASCII:return 27===bite?(iso2022jp_state=state_escape_start,null):inRange(bite,0,127)?bite:-1===bite?-1:decoderError(fatal);case state_escape_start:return 36===bite||40===bite?(iso2022jp_lead=bite,iso2022jp_state=state_escape_middle,null):(-1!==bite&&byte_pointer.offset(-1),iso2022jp_state=state_ASCII,decoderError(fatal));case state_escape_middle:var lead=iso2022jp_lead;return iso2022jp_lead=0,36!==lead||64!==bite&&66!==bite?36===lead&&40===bite?(iso2022jp_state=state_escape_final,null):40!==lead||66!==bite&&74!==bite?40===lead&&73===bite?(iso2022jp_state=state_Katakana,null):(-1===bite?byte_pointer.offset(-1):byte_pointer.offset(-2),iso2022jp_state=state_ASCII,decoderError(fatal)):(iso2022jp_state=state_ASCII,null):(iso2022jp_jis0212=!1,iso2022jp_state=state_lead,null);case state_escape_final:return 68===bite?(iso2022jp_jis0212=!0,iso2022jp_state=state_lead,null):(-1===bite?byte_pointer.offset(-2):byte_pointer.offset(-3),iso2022jp_state=state_ASCII,decoderError(fatal));case state_lead:return 10===bite?(iso2022jp_state=state_ASCII,decoderError(fatal,10)):27===bite?(iso2022jp_state=state_escape_start,null):-1===bite?-1:(iso2022jp_lead=bite,iso2022jp_state=state_trail,null);case state_trail:if(iso2022jp_state=state_lead,-1===bite)return decoderError(fatal);var code_point=null,pointer=94*(iso2022jp_lead-33)+bite-33;return inRange(iso2022jp_lead,33,126)&&inRange(bite,33,126)&&(code_point=indexCodePointFor(pointer,!1===iso2022jp_jis0212?indexes.jis0208:indexes.jis0212)),null===code_point?decoderError(fatal):code_point;case state_Katakana:return 27===bite?(iso2022jp_state=state_escape_start,null):inRange(bite,33,95)?65377+bite-33:-1===bite?-1:decoderError(fatal)}}}function ISO2022JPEncoder(options){options.fatal;var state_ASCII=0,state_lead=1,state_Katakana=2,iso2022jp_state=state_ASCII;this.encode=function(output_byte_stream,code_point_pointer){var code_point=code_point_pointer.get();if(-1===code_point)return-1;if(code_point_pointer.offset(1),(inRange(code_point,0,127)||165===code_point||8254===code_point)&&iso2022jp_state!==state_ASCII)return code_point_pointer.offset(-1),iso2022jp_state=state_ASCII,output_byte_stream.emit(27,40,66);if(inRange(code_point,0,127))return output_byte_stream.emit(code_point);if(165===code_point)return output_byte_stream.emit(92);if(8254===code_point)return output_byte_stream.emit(126);if(inRange(code_point,65377,65439)&&iso2022jp_state!==state_Katakana)return code_point_pointer.offset(-1),iso2022jp_state=state_Katakana,output_byte_stream.emit(27,40,73);if(inRange(code_point,65377,65439))return output_byte_stream.emit(code_point-65377-33);if(iso2022jp_state!==state_lead)return code_point_pointer.offset(-1),iso2022jp_state=state_lead,output_byte_stream.emit(27,36,66);var pointer=indexPointerFor(code_point,indexes.jis0208);if(null===pointer)return encoderError(code_point);var lead=div(pointer,94)+33,trail=pointer%94+33;return output_byte_stream.emit(lead,trail)}}function ShiftJISDecoder(options){var fatal=options.fatal,shiftjis_lead=0;this.decode=function(byte_pointer){var bite=byte_pointer.get();if(-1===bite&&0===shiftjis_lead)return-1;if(-1===bite&&0!==shiftjis_lead)return shiftjis_lead=0,decoderError(fatal);if(byte_pointer.offset(1),0!==shiftjis_lead){var lead=shiftjis_lead;if(shiftjis_lead=0,inRange(bite,64,126)||inRange(bite,128,252)){var code_point=indexCodePointFor(188*(lead-(lead<160?129:193))+bite-(bite<127?64:65),indexes.jis0208);return null===code_point?decoderError(fatal):code_point}return byte_pointer.offset(-1),decoderError(fatal)}return inRange(bite,0,128)?bite:inRange(bite,161,223)?65377+bite-161:inRange(bite,129,159)||inRange(bite,224,252)?(shiftjis_lead=bite,null):decoderError(fatal)}}function ShiftJISEncoder(options){options.fatal;this.encode=function(output_byte_stream,code_point_pointer){var code_point=code_point_pointer.get();if(-1===code_point)return-1;if(code_point_pointer.offset(1),inRange(code_point,0,128))return output_byte_stream.emit(code_point);if(165===code_point)return output_byte_stream.emit(92);if(8254===code_point)return output_byte_stream.emit(126);if(inRange(code_point,65377,65439))return output_byte_stream.emit(code_point-65377+161);var pointer=indexPointerFor(code_point,indexes.jis0208);if(null===pointer)return encoderError(code_point);var lead=div(pointer,188),lead_offset=lead<31?129:193,trail=pointer%188,offset=trail<63?64:65;return output_byte_stream.emit(lead+lead_offset,trail+offset)}}function EUCKRDecoder(options){var fatal=options.fatal,euckr_lead=0;this.decode=function(byte_pointer){var bite=byte_pointer.get();if(-1===bite&&0===euckr_lead)return-1;if(-1===bite&&0!==euckr_lead)return euckr_lead=0,decoderError(fatal);if(byte_pointer.offset(1),0!==euckr_lead){var lead=euckr_lead,pointer=null;if(euckr_lead=0,inRange(lead,129,198)){var temp=178*(lead-129);inRange(bite,65,90)?pointer=temp+bite-65:inRange(bite,97,122)?pointer=temp+26+bite-97:inRange(bite,129,254)&&(pointer=temp+26+26+bite-129)}inRange(lead,199,253)&&inRange(bite,161,254)&&(pointer=12460+94*(lead-199)+(bite-161));var code_point=null===pointer?null:indexCodePointFor(pointer,indexes["euc-kr"]);return null===pointer&&byte_pointer.offset(-1),null===code_point?decoderError(fatal):code_point}return inRange(bite,0,127)?bite:inRange(bite,129,253)?(euckr_lead=bite,null):decoderError(fatal)}}function EUCKREncoder(options){options.fatal;this.encode=function(output_byte_stream,code_point_pointer){var code_point=code_point_pointer.get();if(-1===code_point)return-1;if(code_point_pointer.offset(1),inRange(code_point,0,127))return output_byte_stream.emit(code_point);var lead,trail,pointer=indexPointerFor(code_point,indexes["euc-kr"]);if(null===pointer)return encoderError(code_point);if(pointer<12460){lead=div(pointer,178)+129;var offset=(trail=pointer%178)<26?65:trail<52?71:77;return output_byte_stream.emit(lead,trail+offset)}return lead=div(pointer-=12460,94)+199,trail=pointer%94+161,output_byte_stream.emit(lead,trail)}}function UTF16Decoder(utf16_be,options){var fatal=options.fatal,utf16_lead_byte=null,utf16_lead_surrogate=null;this.decode=function(byte_pointer){var code_point,bite=byte_pointer.get();if(-1===bite&&null===utf16_lead_byte&&null===utf16_lead_surrogate)return-1;if(-1===bite&&(null!==utf16_lead_byte||null!==utf16_lead_surrogate))return decoderError(fatal);if(byte_pointer.offset(1),null===utf16_lead_byte)return utf16_lead_byte=bite,null;if(code_point=utf16_be?(utf16_lead_byte<<8)+bite:(bite<<8)+utf16_lead_byte,utf16_lead_byte=null,null!==utf16_lead_surrogate){var lead_surrogate=utf16_lead_surrogate;return utf16_lead_surrogate=null,inRange(code_point,56320,57343)?65536+1024*(lead_surrogate-55296)+(code_point-56320):(byte_pointer.offset(-2),decoderError(fatal))}return inRange(code_point,55296,56319)?(utf16_lead_surrogate=code_point,null):inRange(code_point,56320,57343)?decoderError(fatal):code_point}}function UTF16Encoder(utf16_be,options){options.fatal;this.encode=function(output_byte_stream,code_point_pointer){function convert_to_bytes(code_unit){var byte1=code_unit>>8,byte2=255&code_unit;return utf16_be?output_byte_stream.emit(byte1,byte2):output_byte_stream.emit(byte2,byte1)}__name(convert_to_bytes,"convert_to_bytes");var code_point=code_point_pointer.get();if(-1===code_point)return-1;if(code_point_pointer.offset(1),inRange(code_point,55296,57343)&&encoderError(code_point),code_point<=65535)return convert_to_bytes(code_point);var trail=(code_point-65536)%1024+56320;return convert_to_bytes(div(code_point-65536,1024)+55296),convert_to_bytes(trail)}}__name(TextEncoder2,"TextEncoder"),TextEncoder2.prototype={encode:__name(function(opt_string,options){opt_string=opt_string?String(opt_string):"",options=Object(options),this._streaming||(this._encoder=this._encoding.getEncoder(this._options)),this._streaming=Boolean(options.stream);for(var bytes=[],output_stream=new ByteOutputStream(bytes),input_stream=new CodePointInputStream(opt_string);-1!==input_stream.get();)this._encoder.encode(output_stream,input_stream);if(!this._streaming){var last_byte;do{last_byte=this._encoder.encode(output_stream,input_stream)}while(-1!==last_byte);this._encoder=null}return new Buffer(bytes)},"encode")},__name(UTF8Decoder,"UTF8Decoder"),__name(UTF8Encoder,"UTF8Encoder"),name_to_encoding["utf-8"].getEncoder=function(options){return new UTF8Encoder(options)},name_to_encoding["utf-8"].getDecoder=function(options){return new UTF8Decoder(options)},__name(SingleByteDecoder,"SingleByteDecoder"),__name(SingleByteEncoder,"SingleByteEncoder"),encodings.forEach(function(category){"Legacy single-byte encodings"===category.heading&&category.encodings.forEach(function(encoding){var idx=indexes[encoding.name];encoding.getDecoder=function(options){return new SingleByteDecoder(idx,options)},encoding.getEncoder=function(options){return new SingleByteEncoder(idx,options)}})}),__name(GBKDecoder,"GBKDecoder"),__name(GBKEncoder,"GBKEncoder"),name_to_encoding.gbk.getEncoder=function(options){return new GBKEncoder(!1,options)},name_to_encoding.gbk.getDecoder=function(options){return new GBKDecoder(!1,options)},name_to_encoding.gb18030.getEncoder=function(options){return new GBKEncoder(!0,options)},name_to_encoding.gb18030.getDecoder=function(options){return new GBKDecoder(!0,options)},__name(HZGB2312Decoder,"HZGB2312Decoder"),__name(HZGB2312Encoder,"HZGB2312Encoder"),name_to_encoding["hz-gb-2312"].getEncoder=function(options){return new HZGB2312Encoder(options)},name_to_encoding["hz-gb-2312"].getDecoder=function(options){return new HZGB2312Decoder(options)},__name(Big5Decoder,"Big5Decoder"),__name(Big5Encoder,"Big5Encoder"),name_to_encoding.big5.getEncoder=function(options){return new Big5Encoder(options)},name_to_encoding.big5.getDecoder=function(options){return new Big5Decoder(options)},__name(EUCJPDecoder,"EUCJPDecoder"),__name(EUCJPEncoder,"EUCJPEncoder"),name_to_encoding["euc-jp"].getEncoder=function(options){return new EUCJPEncoder(options)},name_to_encoding["euc-jp"].getDecoder=function(options){return new EUCJPDecoder(options)},__name(ISO2022JPDecoder,"ISO2022JPDecoder"),__name(ISO2022JPEncoder,"ISO2022JPEncoder"),name_to_encoding["iso-2022-jp"].getEncoder=function(options){return new ISO2022JPEncoder(options)},name_to_encoding["iso-2022-jp"].getDecoder=function(options){return new ISO2022JPDecoder(options)},__name(ShiftJISDecoder,"ShiftJISDecoder"),__name(ShiftJISEncoder,"ShiftJISEncoder"),name_to_encoding.shift_jis.getEncoder=function(options){return new ShiftJISEncoder(options)},name_to_encoding.shift_jis.getDecoder=function(options){return new ShiftJISDecoder(options)},__name(EUCKRDecoder,"EUCKRDecoder"),__name(EUCKREncoder,"EUCKREncoder"),name_to_encoding["euc-kr"].getEncoder=function(options){return new EUCKREncoder(options)},name_to_encoding["euc-kr"].getDecoder=function(options){return new EUCKRDecoder(options)},__name(UTF16Decoder,"UTF16Decoder"),__name(UTF16Encoder,"UTF16Encoder"),name_to_encoding["utf-16be"].getEncoder=function(options){return new UTF16Encoder(!0,options)},name_to_encoding["utf-16be"].getDecoder=function(options){return new UTF16Decoder(!0,options)},name_to_encoding["utf-16le"].getEncoder=function(options){return new UTF16Encoder(!1,options)},name_to_encoding["utf-16le"].getDecoder=function(options){return new UTF16Decoder(!1,options)},__name(function detectEncoding(label,input_stream){return input_stream.match([255,254])?(input_stream.offset(2),"utf-16le"):input_stream.match([254,255])?(input_stream.offset(2),"utf-16be"):input_stream.match([239,187,191])?(input_stream.offset(3),"utf-8"):label},"detectEncoding"),exports2.TextEncoder=TextEncoder2,exports2.TextDecoder=TextDecoder2,exports2.encodingExists=getEncoding},29252:(module2,__unused_webpack_exports2,__webpack_require__2)=>{__webpack_require__2(57147);var WritableStream=__webpack_require__2(12781).Writable||__webpack_require__2(62472).Writable,inherits=__webpack_require__2(73837).inherits,parseParams=__webpack_require__2(70557).rz;function Busboy(opts){if(!(this instanceof Busboy))return new Busboy(opts);if(void 0!==opts.highWaterMark?WritableStream.call(this,{highWaterMark:opts.highWaterMark}):WritableStream.call(this),this._done=!1,this._parser=void 0,this._finished=!1,this.opts=opts,!opts.headers||"string"!=typeof opts.headers["content-type"])throw new Error("Missing Content-Type");this.parseHeaders(opts.headers)}__name(Busboy,"Busboy"),inherits(Busboy,WritableStream),Busboy.prototype.emit=function(ev){if("finish"===ev){if(!this._done)return void(this._parser&&this._parser.end());if(this._finished)return;this._finished=!0}WritableStream.prototype.emit.apply(this,arguments)},Busboy.prototype.parseHeaders=function(headers){if(this._parser=void 0,headers["content-type"]){for(var matched,type,parsed=parseParams(headers["content-type"]),i2=0;i2{var ReadableStream2=__webpack_require__2(12781).Readable||__webpack_require__2(62472),inherits=__webpack_require__2(73837).inherits,Dicer=__webpack_require__2(74223),parseParams=__webpack_require__2(70557).rz,decodeText=__webpack_require__2(70557).rj,basename=__webpack_require__2(70557).EZ,RE_BOUNDARY=/^boundary$/i,RE_FIELD=/^form-data$/i,RE_CHARSET=/^charset$/i,RE_FILENAME=/^filename$/i,RE_NAME=/^name$/i;function Multipart(boy,cfg){if(!(this instanceof Multipart))return new Multipart(boy,cfg);var i2,len,boundary,self2=this,limits=cfg.limits,parsedConType=cfg.parsedConType||[],defCharset=cfg.defCharset||"utf8",preservePath=cfg.preservePath,fileopts="number"==typeof cfg.fileHwm?{highWaterMark:cfg.fileHwm}:{};for(i2=0,len=parsedConType.length;i2partsLimit)return self2.parser.removeListener("part",onPart),self2.parser.on("part",skipPart),boy.hitPartsLimit=!0,boy.emit("partsLimit"),skipPart(part);if(curField){var field=curField;field.emit("end"),field.removeAllListeners("end")}part.on("header",function(header){var contype,fieldname,parsed,charset,encoding,filename,onData,onEnd,nsize=0;if(header["content-type"]&&(parsed=parseParams(header["content-type"][0]))[0])for(contype=parsed[0].toLowerCase(),i2=0,len=parsed.length;i2fileSizeLimit){var extralen=fileSizeLimit-(nsize-data.length);extralen>0&&file2.push(data.slice(0,extralen)),file2.emit("limit"),file2.truncated=!0,part.removeAllListeners("data")}else file2.push(data)||(self2._pause=!0)},"onData"),onEnd=__name(function(){curFile=void 0,file2.push(null)},"onEnd")}else{if(nfields===fieldsLimit)return boy.hitFieldsLimit||(boy.hitFieldsLimit=!0,boy.emit("fieldsLimit")),skipPart(part);++nfields,++nends;var buffer="",truncated=!1;curField=part,onData=__name(function(data){if((nsize+=data.length)>fieldSizeLimit){var extralen=fieldSizeLimit-(nsize-data.length);buffer+=data.toString("binary",0,extralen),truncated=!0,part.removeAllListeners("data")}else buffer+=data.toString("binary")},"onData"),onEnd=__name(function(){curField=void 0,buffer.length&&(buffer=decodeText(buffer,"binary",charset)),boy.emit("field",fieldname,buffer,!1,truncated,encoding,contype),--nends,checkFinished()},"onEnd")}part._readableState.sync=!1,part.on("data",onData),part.on("end",onEnd)}).on("error",function(err){curFile&&curFile.emit("error",err)})},"onPart")).on("error",function(err){boy.emit("error",err)}).on("finish",function(){finished=!0,checkFinished()})}function skipPart(part){part.resume()}function FileStream(opts){if(!(this instanceof FileStream))return new FileStream(opts);ReadableStream2.call(this,opts),this.truncated=!1}Multipart.detect=/^multipart\/form-data/i,__name(Multipart,"Multipart"),Multipart.prototype.write=function(chunk,cb){var r;(r=this.parser.write(chunk))&&!this._pause?cb():(this._needDrain=!r,this._cb=cb)},Multipart.prototype.end=function(){var self2=this;0!==this._nparts||self2._boy._done?this.parser.writable&&this.parser.end():process.nextTick(function(){self2._boy._done=!0,self2._boy.emit("finish")})},__name(skipPart,"skipPart"),__name(FileStream,"FileStream"),inherits(FileStream,ReadableStream2),FileStream.prototype._read=function(n){},module2.exports=Multipart},73401:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var Decoder=__webpack_require__2(70557).h,decodeText=__webpack_require__2(70557).rj,RE_CHARSET=/^charset$/i;function UrlEncoded(boy,cfg){if(!(this instanceof UrlEncoded))return new UrlEncoded(boy,cfg);var limits=cfg.limits,parsedConType=(cfg.headers,cfg.parsedConType);this.boy=boy,this.fieldSizeLimit=limits&&"number"==typeof limits.fieldSize?limits.fieldSize:1048576,this.fieldNameSizeLimit=limits&&"number"==typeof limits.fieldNameSize?limits.fieldNameSize:100,this.fieldsLimit=limits&&"number"==typeof limits.fields?limits.fields:1/0;for(var charset,i2=0,len=parsedConType.length;i2p&&(this._key+=this.decoder.write(data.toString("binary",p,idxeq))),this._state="val",this._hitLimit=!1,this._checkingBytes=!0,this._val="",this._bytesVal=0,this._valTrunc=!1,this.decoder.reset(),p=idxeq+1;else if(void 0!==idxamp){++this._fields;var key,keyTrunc=this._keyTrunc;if(key=idxamp>p?this._key+=this.decoder.write(data.toString("binary",p,idxamp)):this._key,this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),key.length&&this.boy.emit("field",decodeText(key,"binary",this.charset),"",keyTrunc,!1),p=idxamp+1,this._fields===this.fieldsLimit)return cb()}else this._hitLimit?(i2>p&&(this._key+=this.decoder.write(data.toString("binary",p,i2))),p=i2,(this._bytesKey=this._key.length)===this.fieldNameSizeLimit&&(this._checkingBytes=!1,this._keyTrunc=!0)):(pp&&(this._val+=this.decoder.write(data.toString("binary",p,idxamp))),this.boy.emit("field",decodeText(this._key,"binary",this.charset),decodeText(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc),this._state="key",this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),p=idxamp+1,this._fields===this.fieldsLimit)return cb()}else this._hitLimit?(i2>p&&(this._val+=this.decoder.write(data.toString("binary",p,i2))),p=i2,(""===this._val&&0===this.fieldSizeLimit||(this._bytesVal=this._val.length)===this.fieldSizeLimit)&&(this._checkingBytes=!1,this._valTrunc=!0)):(p0?this.boy.emit("field",decodeText(this._key,"binary",this.charset),"",this._keyTrunc,!1):"val"===this._state&&this.boy.emit("field",decodeText(this._key,"binary",this.charset),decodeText(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc),this.boy._done=!0,this.boy.emit("finish"))},module2.exports=UrlEncoded},70557:(__unused_webpack_module,exports2,__webpack_require__2)=>{var jsencoding=__webpack_require__2(26858),RE_ENCODED=/%([a-fA-F0-9]{2})/g;function encodedReplacer(match,byte){return String.fromCharCode(parseInt(byte,16))}function parseParams(str){for(var res=[],state="key",charset="",inquote=!1,escaping=!1,p=0,tmp="",i2=0,len=str.length;i2p&&(res+=str.substring(p,i2),p=i2),this.buffer="",++p);return p{module2.exports=Array.isArray||function(arr){return"[object Array]"==Object.prototype.toString.call(arr)}},20385:(module2,__unused_webpack_exports2,__webpack_require__2)=>{module2.exports=Duplex;var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)keys.push(key);return keys},util=__webpack_require__2(26156);util.inherits=__webpack_require__2(88527);var Readable=__webpack_require__2(92218),Writable=__webpack_require__2(73563);function Duplex(options){if(!(this instanceof Duplex))return new Duplex(options);Readable.call(this,options),Writable.call(this,options),options&&!1===options.readable&&(this.readable=!1),options&&!1===options.writable&&(this.writable=!1),this.allowHalfOpen=!0,options&&!1===options.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",onend)}function onend(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}function forEach(xs,f2){for(var i2=0,l=xs.length;i2{module2.exports=PassThrough;var Transform=__webpack_require__2(47041),util=__webpack_require__2(26156);function PassThrough(options){if(!(this instanceof PassThrough))return new PassThrough(options);Transform.call(this,options)}util.inherits=__webpack_require__2(88527),util.inherits(PassThrough,Transform),__name(PassThrough,"PassThrough"),PassThrough.prototype._transform=function(chunk,encoding,cb){cb(null,chunk)}},92218:(module2,__unused_webpack_exports2,__webpack_require__2)=>{module2.exports=Readable;var isArray=__webpack_require__2(11830),Buffer2=__webpack_require__2(14300).Buffer;Readable.ReadableState=ReadableState;var EE=__webpack_require__2(82361).EventEmitter;EE.listenerCount||(EE.listenerCount=function(emitter,type){return emitter.listeners(type).length});var Stream=__webpack_require__2(12781),util=__webpack_require__2(26156);util.inherits=__webpack_require__2(88527);var StringDecoder,debug=__webpack_require__2(73837);function ReadableState(options,stream){var Duplex=__webpack_require__2(20385),hwm=(options=options||{}).highWaterMark,defaultHwm=options.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:defaultHwm,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.readableObjectMode),this.defaultEncoding=options.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,options.encoding&&(StringDecoder||(StringDecoder=__webpack_require__2(92135).s),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){__webpack_require__2(20385);if(!(this instanceof Readable))return new Readable(options);this._readableState=new ReadableState(options,this),this.readable=!0,Stream.call(this)}function readableAddChunk(stream,state,chunk,encoding,addToFront){var er=chunkInvalid(state,chunk);if(er)stream.emit("error",er);else if(util.isNullOrUndefined(chunk))state.reading=!1,state.ended||onEofChunk(stream,state);else if(state.objectMode||chunk&&chunk.length>0)if(state.ended&&!addToFront){var e=new Error("stream.push() after EOF");stream.emit("error",e)}else if(state.endEmitted&&addToFront){e=new Error("stream.unshift() after end event");stream.emit("error",e)}else state.decoder&&!addToFront&&!encoding&&(chunk=state.decoder.write(chunk)),addToFront||(state.reading=!1),state.flowing&&0===state.length&&!state.sync?(stream.emit("data",chunk),stream.read(0)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream)),maybeReadMore(stream,state);else addToFront||(state.reading=!1);return needMoreData(state)}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=8388608)n=8388608;else{n--;for(var p=1;p<32;p<<=1)n|=n>>p;n++}return n}function howMuchToRead(n,state){return 0===state.length&&state.ended?0:state.objectMode?0===n?0:1:isNaN(n)||util.isNull(n)?state.flowing&&state.buffer.length?state.buffer[0].length:state.length:n<=0?0:(n>state.highWaterMark&&(state.highWaterMark=roundUpToNextPowerOf2(n)),n>state.length?state.ended?state.length:(state.needReadable=!0,0):n)}function chunkInvalid(state,chunk){var er=null;return!util.isBuffer(chunk)&&!util.isString(chunk)&&!util.isNullOrUndefined(chunk)&&!state.objectMode&&(er=new TypeError("Invalid non-string/buffer chunk")),er}function onEofChunk(stream,state){if(state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length)}state.ended=!0,emitReadable(stream)}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1,state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,state.sync?process.nextTick(function(){emitReadable_(stream)}):emitReadable_(stream))}function emitReadable_(stream){debug("emit readable"),stream.emit("readable"),flow(stream)}function maybeReadMore(stream,state){state.readingMore||(state.readingMore=!0,process.nextTick(function(){maybeReadMore_(stream,state)}))}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length=length)ret=stringMode?list.join(""):Buffer2.concat(list,length),list.length=0;else if(n0)throw new Error("endReadable called on non-empty stream");state.endEmitted||(state.ended=!0,process.nextTick(function(){!state.endEmitted&&0===state.length&&(state.endEmitted=!0,stream.readable=!1,stream.emit("end"))}))}function forEach(xs,f2){for(var i2=0,l=xs.length;i20)&&(state.emittedReadable=!1),0===n&&state.needReadable&&(state.length>=state.highWaterMark||state.ended))return debug("read: emitReadable",state.length,state.ended),0===state.length&&state.ended?endReadable(this):emitReadable(this),null;if(0===(n=howMuchToRead(n,state))&&state.ended)return 0===state.length&&endReadable(this),null;var ret,doRead=state.needReadable;return debug("need readable",doRead),(0===state.length||state.length-n0?fromList(n,state):null,util.isNull(ret)&&(state.needReadable=!0,n=0),state.length-=n,0===state.length&&!state.ended&&(state.needReadable=!0),nOrig!==n&&state.ended&&0===state.length&&endReadable(this),util.isNull(ret)||this.emit("data",ret),ret},__name(chunkInvalid,"chunkInvalid"),__name(onEofChunk,"onEofChunk"),__name(emitReadable,"emitReadable"),__name(emitReadable_,"emitReadable_"),__name(maybeReadMore,"maybeReadMore"),__name(maybeReadMore_,"maybeReadMore_"),Readable.prototype._read=function(n){this.emit("error",new Error("not implemented"))},Readable.prototype.pipe=function(dest,pipeOpts){var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest)}state.pipesCount+=1,debug("pipe count=%d opts=%j",state.pipesCount,pipeOpts);var endFn=(!pipeOpts||!1!==pipeOpts.end)&&dest!==process.stdout&&dest!==process.stderr?onend:cleanup;function onunpipe(readable){debug("onunpipe"),readable===src&&cleanup()}function onend(){debug("onend"),dest.end()}state.endEmitted?process.nextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe),__name(onunpipe,"onunpipe"),__name(onend,"onend");var ondrain=pipeOnDrain(src);function cleanup(){debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",cleanup),src.removeListener("data",ondata),state.awaitDrain&&(!dest._writableState||dest._writableState.needDrain)&&ondrain()}function ondata(chunk){debug("ondata"),!1===dest.write(chunk)&&(debug("false write response, pause",src._readableState.awaitDrain),src._readableState.awaitDrain++,src.pause())}function onerror(er){debug("onerror",er),unpipe(),dest.removeListener("error",onerror),0===EE.listenerCount(dest,"error")&&dest.emit("error",er)}function onclose(){dest.removeListener("finish",onfinish),unpipe()}function onfinish(){debug("onfinish"),dest.removeListener("close",onclose),unpipe()}function unpipe(){debug("unpipe"),src.unpipe(dest)}return dest.on("drain",ondrain),__name(cleanup,"cleanup"),src.on("data",ondata),__name(ondata,"ondata"),__name(onerror,"onerror"),dest._events&&dest._events.error?isArray(dest._events.error)?dest._events.error.unshift(onerror):dest._events.error=[onerror,dest._events.error]:dest.on("error",onerror),__name(onclose,"onclose"),dest.once("close",onclose),__name(onfinish,"onfinish"),dest.once("finish",onfinish),__name(unpipe,"unpipe"),dest.emit("pipe",src),state.flowing||(debug("pipe resume"),src.resume()),dest},__name(pipeOnDrain,"pipeOnDrain"),Readable.prototype.unpipe=function(dest){var state=this._readableState;if(0===state.pipesCount)return this;if(1===state.pipesCount)return dest&&dest!==state.pipes||(dest||(dest=state.pipes),state.pipes=null,state.pipesCount=0,state.flowing=!1,dest&&dest.emit("unpipe",this)),this;if(!dest){var dests=state.pipes,len=state.pipesCount;state.pipes=null,state.pipesCount=0,state.flowing=!1;for(var i2=0;i2{module2.exports=Transform;var Duplex=__webpack_require__2(20385),util=__webpack_require__2(26156);function TransformState(options,stream){this.afterTransform=function(er,data){return afterTransform(stream,er,data)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function afterTransform(stream,er,data){var ts=stream._transformState;ts.transforming=!1;var cb=ts.writecb;if(!cb)return stream.emit("error",new Error("no writecb in Transform class"));ts.writechunk=null,ts.writecb=null,util.isNullOrUndefined(data)||stream.push(data),cb&&cb(er);var rs=stream._readableState;rs.reading=!1,(rs.needReadable||rs.length{module2.exports=Writable;var Buffer2=__webpack_require__2(14300).Buffer;Writable.WritableState=WritableState;var util=__webpack_require__2(26156);util.inherits=__webpack_require__2(88527);var Stream=__webpack_require__2(12781);function WriteReq(chunk,encoding,cb){this.chunk=chunk,this.encoding=encoding,this.callback=cb}function WritableState(options,stream){var Duplex=__webpack_require__2(20385),hwm=(options=options||{}).highWaterMark,defaultHwm=options.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:defaultHwm,this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.writableObjectMode),this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var noDecode=!1===options.decodeStrings;this.decodeStrings=!noDecode,this.defaultEncoding=options.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(er){onwrite(stream,er)},this.writecb=null,this.writelen=0,this.buffer=[],this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function Writable(options){var Duplex=__webpack_require__2(20385);if(!(this instanceof Writable||this instanceof Duplex))return new Writable(options);this._writableState=new WritableState(options,this),this.writable=!0,Stream.call(this)}function writeAfterEnd(stream,state,cb){var er=new Error("write after end");stream.emit("error",er),process.nextTick(function(){cb(er)})}function validChunk(stream,state,chunk,cb){var valid=!0;if(!(util.isBuffer(chunk)||util.isString(chunk)||util.isNullOrUndefined(chunk)||state.objectMode)){var er=new TypeError("Invalid non-string/buffer chunk");stream.emit("error",er),process.nextTick(function(){cb(er)}),valid=!1}return valid}function decodeChunk(state,chunk,encoding){return!state.objectMode&&!1!==state.decodeStrings&&util.isString(chunk)&&(chunk=new Buffer2(chunk,encoding)),chunk}function writeOrBuffer(stream,state,chunk,encoding,cb){chunk=decodeChunk(state,chunk,encoding),util.isBuffer(chunk)&&(encoding="buffer");var len=state.objectMode?1:chunk.length;state.length+=len;var ret=state.length1){for(var cbs=[],c=0;c{(exports2=module2.exports=__webpack_require__2(92218)).Stream=__webpack_require__2(12781),exports2.Readable=exports2,exports2.Writable=__webpack_require__2(73563),exports2.Duplex=__webpack_require__2(20385),exports2.Transform=__webpack_require__2(47041),exports2.PassThrough=__webpack_require__2(74115),!process.browser&&"disable"===process.env.READABLE_STREAM&&(module2.exports=__webpack_require__2(12781))},92135:(__unused_webpack_module,exports2,__webpack_require__2)=>{var Buffer2=__webpack_require__2(14300).Buffer,isBufferEncoding=Buffer2.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding))throw new Error("Unknown encoding: "+encoding)}__name(assertEncoding,"assertEncoding");var StringDecoder=exports2.s=function(encoding){switch(this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(encoding),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new Buffer2(6),this.charReceived=0,this.charLength=0};function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3,this.charLength=this.charReceived?3:0}StringDecoder.prototype.write=function(buffer){for(var charStr="";this.charLength;){var available=buffer.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:buffer.length;if(buffer.copy(this.charBuffer,this.charReceived,0,available),this.charReceived+=available,this.charReceived=55296&&charCode<=56319)){if(this.charReceived=this.charLength=0,0===buffer.length)return charStr;break}this.charLength+=this.surrogateSize,charStr=""}this.detectIncompleteChar(buffer);var end=buffer.length;this.charLength&&(buffer.copy(this.charBuffer,0,buffer.length-this.charReceived,end),end-=this.charReceived);var charCode;end=(charStr+=buffer.toString(this.encoding,0,end)).length-1;if((charCode=charStr.charCodeAt(end))>=55296&&charCode<=56319){var size=this.surrogateSize;return this.charLength+=size,this.charReceived+=size,this.charBuffer.copy(this.charBuffer,size,0,size),buffer.copy(this.charBuffer,0,0,size),charStr.substring(0,end)}return charStr},StringDecoder.prototype.detectIncompleteChar=function(buffer){for(var i2=buffer.length>=3?3:buffer.length;i2>0;i2--){var c=buffer[buffer.length-i2];if(1==i2&&c>>5==6){this.charLength=2;break}if(i2<=2&&c>>4==14){this.charLength=3;break}if(i2<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=i2},StringDecoder.prototype.end=function(buffer){var res="";if(buffer&&buffer.length&&(res=this.write(buffer)),this.charReceived){var cr=this.charReceived,buf=this.charBuffer,enc=this.encoding;res+=buf.slice(0,cr).toString(enc)}return res},__name(passThroughWrite,"passThroughWrite"),__name(utf16DetectIncompleteChar,"utf16DetectIncompleteChar"),__name(base64DetectIncompleteChar,"base64DetectIncompleteChar")},61220:module2=>{"use strict";module2.exports=bytes,module2.exports.format=format,module2.exports.parse=parse;var formatThousandsRegExp=/\B(?=(\d{3})+(?!\d))/g,formatDecimalsRegExp=/(?:\.0*|(\.[^0]+)0+)$/,map={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},parseRegExp=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function bytes(value,options){return"string"==typeof value?parse(value):"number"==typeof value?format(value,options):null}function format(value,options){if(!Number.isFinite(value))return null;var mag=Math.abs(value),thousandsSeparator=options&&options.thousandsSeparator||"",unitSeparator=options&&options.unitSeparator||"",decimalPlaces=options&&void 0!==options.decimalPlaces?options.decimalPlaces:2,fixedDecimals=Boolean(options&&options.fixedDecimals),unit=options&&options.unit||"";(!unit||!map[unit.toLowerCase()])&&(unit=mag>=map.pb?"PB":mag>=map.tb?"TB":mag>=map.gb?"GB":mag>=map.mb?"MB":mag>=map.kb?"KB":"B");var str=(value/map[unit.toLowerCase()]).toFixed(decimalPlaces);return fixedDecimals||(str=str.replace(formatDecimalsRegExp,"$1")),thousandsSeparator&&(str=str.split(".").map(function(s,i2){return 0===i2?s.replace(formatThousandsRegExp,thousandsSeparator):s}).join(".")),str+unitSeparator+unit}function parse(val){if("number"==typeof val&&!isNaN(val))return val;if("string"!=typeof val)return null;var floatValue,results=parseRegExp.exec(val),unit="b";return results?(floatValue=parseFloat(results[1]),unit=results[4].toLowerCase()):(floatValue=parseInt(val,10),unit="b"),isNaN(floatValue)?null:Math.floor(map[unit]*floatValue)}__name(bytes,"bytes"),__name(format,"format"),__name(parse,"parse")},73500:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;const{V4MAPPED,ADDRCONFIG,ALL,promises:{Resolver:AsyncResolver},lookup:dnsLookup}=__webpack_require__2(9523),{promisify}=__webpack_require__2(73837),os=__webpack_require__2(22037),kCacheableLookupCreateConnection=Symbol("cacheableLookupCreateConnection"),kCacheableLookupInstance=Symbol("cacheableLookupInstance"),kExpires=Symbol("expires"),supportsALL="number"==typeof ALL,verifyAgent=__name(agent=>{if(!agent||"function"!=typeof agent.createConnection)throw new Error("Expected an Agent instance as the first argument")},"verifyAgent"),map4to6=__name(entries=>{for(const entry of entries)6!==entry.family&&(entry.address=`::ffff:${entry.address}`,entry.family=6)},"map4to6"),getIfaceInfo=__name(()=>{let has4=!1,has6=!1;for(const device of Object.values(os.networkInterfaces()))for(const iface of device)if(!iface.internal&&("IPv6"===iface.family?has6=!0:has4=!0,has4&&has6))return{has4,has6};return{has4,has6}},"getIfaceInfo"),isIterable=__name(map=>Symbol.iterator in map,"isIterable"),ttl={ttl:!0},all={all:!0};class CacheableLookup{constructor({cache=new Map,maxTtl=1/0,fallbackDuration=3600,errorTtl=.15,resolver=new AsyncResolver,lookup=dnsLookup}={}){if(this.maxTtl=maxTtl,this.errorTtl=errorTtl,this._cache=cache,this._resolver=resolver,this._dnsLookup=promisify(lookup),this._resolver instanceof AsyncResolver?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=promisify(this._resolver.resolve4.bind(this._resolver)),this._resolve6=promisify(this._resolver.resolve6.bind(this._resolver))),this._iface=getIfaceInfo(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,fallbackDuration<1)this._fallback=!1;else{this._fallback=!0;const interval=setInterval(()=>{this._hostnamesToFallback.clear()},1e3*fallbackDuration);interval.unref&&interval.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(servers){this.clear(),this._resolver.setServers(servers)}get servers(){return this._resolver.getServers()}lookup(hostname,options,callback){if("function"==typeof options?(callback=options,options={}):"number"==typeof options&&(options={family:options}),!callback)throw new Error("Callback must be a function.");this.lookupAsync(hostname,options).then(result=>{options.all?callback(null,result):callback(null,result.address,result.family,result.expires,result.ttl)},callback)}lookupAsync(hostname,options={}){var _this=this;return _asyncToGenerator(function*(){"number"==typeof options&&(options={family:options});let cached=yield _this.query(hostname);if(6===options.family){const filtered=cached.filter(entry=>6===entry.family);options.hints&V4MAPPED&&(supportsALL&&options.hints&ALL||0===filtered.length)?map4to6(cached):cached=filtered}else 4===options.family&&(cached=cached.filter(entry=>4===entry.family));if(options.hints&ADDRCONFIG){const{_iface}=_this;cached=cached.filter(entry=>6===entry.family?_iface.has6:_iface.has4)}if(0===cached.length){const error=new Error(`cacheableLookup ENOTFOUND ${hostname}`);throw error.code="ENOTFOUND",error.hostname=hostname,error}return options.all?cached:cached[0]})()}query(hostname){var _this2=this;return _asyncToGenerator(function*(){let cached=yield _this2._cache.get(hostname);if(!cached){const pending=_this2._pending[hostname];if(pending)cached=yield pending;else{const newPromise=_this2.queryAndCache(hostname);_this2._pending[hostname]=newPromise;try{cached=yield newPromise}finally{delete _this2._pending[hostname]}}}return cached=cached.map(entry=>({...entry})),cached})()}_resolve(hostname){var _this3=this;return _asyncToGenerator(function*(){const wrap=function(){var _ref=_asyncToGenerator(function*(promise){try{return yield promise}catch(error){if("ENODATA"===error.code||"ENOTFOUND"===error.code)return[];throw error}});return __name(function(_x){return _ref.apply(this,arguments)},"wrap")}(),[A,AAAA]=yield Promise.all([_this3._resolve4(hostname,ttl),_this3._resolve6(hostname,ttl)].map(promise=>wrap(promise)));let aTtl=0,aaaaTtl=0,cacheTtl=0;const now=Date.now();for(const entry of A)entry.family=4,entry.expires=now+1e3*entry.ttl,aTtl=Math.max(aTtl,entry.ttl);for(const entry of AAAA)entry.family=6,entry.expires=now+1e3*entry.ttl,aaaaTtl=Math.max(aaaaTtl,entry.ttl);return cacheTtl=A.length>0?AAAA.length>0?Math.min(aTtl,aaaaTtl):aTtl:aaaaTtl,{entries:[...A,...AAAA],cacheTtl}})()}_lookup(hostname){var _this4=this;return _asyncToGenerator(function*(){try{return{entries:yield _this4._dnsLookup(hostname,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}})()}_set(hostname,data,cacheTtl){var _this5=this;return _asyncToGenerator(function*(){if(_this5.maxTtl>0&&cacheTtl>0){cacheTtl=1e3*Math.min(cacheTtl,_this5.maxTtl),data[kExpires]=Date.now()+cacheTtl;try{yield _this5._cache.set(hostname,data,cacheTtl)}catch(error){_this5.lookupAsync=_asyncToGenerator(function*(){const cacheError=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw cacheError.cause=error,cacheError})}isIterable(_this5._cache)&&_this5._tick(cacheTtl)}})()}queryAndCache(hostname){var _this6=this;return _asyncToGenerator(function*(){if(_this6._hostnamesToFallback.has(hostname))return _this6._dnsLookup(hostname,all);let query=yield _this6._resolve(hostname);0===query.entries.length&&_this6._fallback&&(query=yield _this6._lookup(hostname),0!==query.entries.length&&_this6._hostnamesToFallback.add(hostname));const cacheTtl=0===query.entries.length?_this6.errorTtl:query.cacheTtl;return yield _this6._set(hostname,query.entries,cacheTtl),query.entries})()}_tick(ms){const nextRemovalTime=this._nextRemovalTime;(!nextRemovalTime||ms{this._nextRemovalTime=!1;let nextExpiry=1/0;const now=Date.now();for(const[hostname,entries]of this._cache){const expires=entries[kExpires];now>=expires?this._cache.delete(hostname):expires("lookup"in options||(options.lookup=this.lookup),agent[kCacheableLookupCreateConnection](options,callback))}uninstall(agent){if(verifyAgent(agent),agent[kCacheableLookupCreateConnection]){if(agent[kCacheableLookupInstance]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");agent.createConnection=agent[kCacheableLookupCreateConnection],delete agent[kCacheableLookupCreateConnection],delete agent[kCacheableLookupInstance]}}updateInterfaceInfo(){const{_iface}=this;this._iface=getIfaceInfo(),(_iface.has4&&!this._iface.has4||_iface.has6&&!this._iface.has6)&&this._cache.clear()}clear(hostname){hostname?this._cache.delete(hostname):this._cache.clear()}}__name(CacheableLookup,"CacheableLookup"),module2.exports=CacheableLookup,module2.exports.default=CacheableLookup},44856:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const{PassThrough:PassThroughStream}=__webpack_require__2(12781);module2.exports=options=>{options={...options};const{array}=options;let{encoding}=options;const isBuffer="buffer"===encoding;let objectMode=!1;array?objectMode=!(encoding||isBuffer):encoding=encoding||"utf8",isBuffer&&(encoding=null);const stream=new PassThroughStream({objectMode});encoding&&stream.setEncoding(encoding);let length=0;const chunks=[];return stream.on("data",chunk=>{chunks.push(chunk),objectMode?length=chunks.length:length+=chunk.length}),stream.getBufferedValue=()=>array?chunks:isBuffer?Buffer.concat(chunks,length):chunks.join(""),stream.getBufferedLength=()=>length,stream}},29366:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;const{constants:BufferConstants}=__webpack_require__2(14300),pump=__webpack_require__2(64560),bufferStream=__webpack_require__2(44856);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}function getStream(_x,_x2){return _getStream.apply(this,arguments)}function _getStream(){return(_getStream=_asyncToGenerator(function*(inputStream,options){if(!inputStream)return Promise.reject(new Error("Expected a stream"));options={maxBuffer:1/0,...options};const{maxBuffer}=options;let stream;return yield new Promise((resolve,reject)=>{const rejectPromise=__name(error=>{error&&stream.getBufferedLength()<=BufferConstants.MAX_LENGTH&&(error.bufferedData=stream.getBufferedValue()),reject(error)},"rejectPromise");stream=pump(inputStream,bufferStream(options),error=>{error?rejectPromise(error):resolve()}),stream.on("data",()=>{stream.getBufferedLength()>maxBuffer&&rejectPromise(new MaxBufferError)})}),stream.getBufferedValue()})).apply(this,arguments)}__name(MaxBufferError,"MaxBufferError"),__name(getStream,"getStream"),__name(_getStream,"_getStream"),module2.exports=getStream,module2.exports.default=getStream,module2.exports.buffer=(stream,options)=>getStream(stream,{...options,encoding:"buffer"}),module2.exports.array=(stream,options)=>getStream(stream,{...options,array:!0}),module2.exports.MaxBufferError=MaxBufferError},78815:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;const EventEmitter=__webpack_require__2(82361),urlLib=__webpack_require__2(57310),normalizeUrl=__webpack_require__2(27071),getStream=__webpack_require__2(29366),CachePolicy=__webpack_require__2(65069),Response=__webpack_require__2(28984),lowercaseKeys=__webpack_require__2(57566),cloneResponse=__webpack_require__2(65619),Keyv=__webpack_require__2(5048);class CacheableRequest{constructor(request,cacheAdapter){if("function"!=typeof request)throw new TypeError("Parameter `request` must be a function");return this.cache=new Keyv({uri:"string"==typeof cacheAdapter&&cacheAdapter,store:"string"!=typeof cacheAdapter&&cacheAdapter,namespace:"cacheable-request"}),this.createCacheableRequest(request)}createCacheableRequest(request){var _this=this;return(opts,cb)=>{let url;if("string"==typeof opts)url=normalizeUrlObject(urlLib.parse(opts)),opts={};else if(opts instanceof urlLib.URL)url=normalizeUrlObject(urlLib.parse(opts.toString())),opts={};else{const[pathname,...searchParts]=(opts.path||"").split("?"),search=searchParts.length>0?`?${searchParts.join("?")}`:"";url=normalizeUrlObject({...opts,pathname,search})}(opts={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...opts,...urlObjectToRequestOptions(url)}).headers=lowercaseKeys(opts.headers);const ee=new EventEmitter,normalizedUrlString=normalizeUrl(urlLib.format(url),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),key=`${opts.method}:${normalizedUrlString}`;let revalidate=!1,madeRequest=!1;const makeRequest=__name(opts2=>{madeRequest=!0;let requestErrorCallback,requestErrored=!1;const requestErrorPromise=new Promise(resolve=>{requestErrorCallback=__name(()=>{requestErrored||(requestErrored=!0,resolve())},"requestErrorCallback")}),handler=__name(response=>{if(revalidate&&!opts2.forceRefresh){response.status=response.statusCode;const revalidatedPolicy=CachePolicy.fromObject(revalidate.cachePolicy).revalidatedPolicy(opts2,response);if(!revalidatedPolicy.modified){const headers=revalidatedPolicy.policy.responseHeaders();(response=new Response(revalidate.statusCode,headers,revalidate.body,revalidate.url)).cachePolicy=revalidatedPolicy.policy,response.fromCache=!0}}let clonedResponse;response.fromCache||(response.cachePolicy=new CachePolicy(opts2,response,opts2),response.fromCache=!1),opts2.cache&&response.cachePolicy.storable()?(clonedResponse=cloneResponse(response),_asyncToGenerator(function*(){try{const bodyPromise=getStream.buffer(response);if(yield Promise.race([requestErrorPromise,new Promise(resolve=>response.once("end",resolve))]),requestErrored)return;const body=yield bodyPromise,value={cachePolicy:response.cachePolicy.toObject(),url:response.url,statusCode:response.fromCache?revalidate.statusCode:response.statusCode,body};let ttl=opts2.strictTtl?response.cachePolicy.timeToLive():void 0;opts2.maxTtl&&(ttl=ttl?Math.min(ttl,opts2.maxTtl):opts2.maxTtl),yield _this.cache.set(key,value,ttl)}catch(error){ee.emit("error",new CacheableRequest.CacheError(error))}})()):opts2.cache&&revalidate&&_asyncToGenerator(function*(){try{yield _this.cache.delete(key)}catch(error){ee.emit("error",new CacheableRequest.CacheError(error))}})(),ee.emit("response",clonedResponse||response),"function"==typeof cb&&cb(clonedResponse||response)},"handler");try{const req=request(opts2,handler);req.once("error",requestErrorCallback),req.once("abort",requestErrorCallback),ee.emit("request",req)}catch(error){ee.emit("error",new CacheableRequest.RequestError(error))}},"makeRequest");return _asyncToGenerator(function*(){const get=function(){var _ref4=_asyncToGenerator(function*(opts2){yield Promise.resolve();const cacheEntry=opts2.cache?yield _this.cache.get(key):void 0;if(void 0===cacheEntry)return makeRequest(opts2);const policy=CachePolicy.fromObject(cacheEntry.cachePolicy);if(policy.satisfiesWithoutRevalidation(opts2)&&!opts2.forceRefresh){const headers=policy.responseHeaders(),response=new Response(cacheEntry.statusCode,headers,cacheEntry.body,cacheEntry.url);response.cachePolicy=policy,response.fromCache=!0,ee.emit("response",response),"function"==typeof cb&&cb(response)}else revalidate=cacheEntry,opts2.headers=policy.revalidationHeaders(opts2),makeRequest(opts2)});return __name(function(_x){return _ref4.apply(this,arguments)},"get")}(),errorHandler=__name(error=>ee.emit("error",new CacheableRequest.CacheError(error)),"errorHandler");_this.cache.once("error",errorHandler),ee.on("response",()=>_this.cache.removeListener("error",errorHandler));try{yield get(opts)}catch(error){opts.automaticFailover&&!madeRequest&&makeRequest(opts),ee.emit("error",new CacheableRequest.CacheError(error))}})(),ee}}}function urlObjectToRequestOptions(url){const options={...url};return options.path=`${url.pathname||"/"}${url.search||""}`,delete options.pathname,delete options.search,options}function normalizeUrlObject(url){return{protocol:url.protocol,auth:url.auth,hostname:url.hostname||url.host||"localhost",port:url.port,pathname:url.pathname,search:url.search}}__name(CacheableRequest,"CacheableRequest"),__name(urlObjectToRequestOptions,"urlObjectToRequestOptions"),__name(normalizeUrlObject,"normalizeUrlObject"),CacheableRequest.RequestError=class extends Error{constructor(error){super(error.message),this.name="RequestError",Object.assign(this,error)}},CacheableRequest.CacheError=class extends Error{constructor(error){super(error.message),this.name="CacheError",Object.assign(this,error)}},module2.exports=CacheableRequest},75834:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var GetIntrinsic=__webpack_require__2(95203),callBind=__webpack_require__2(55685),$indexOf=callBind(GetIntrinsic("String.prototype.indexOf"));module2.exports=__name(function(name,allowMissing){var intrinsic=GetIntrinsic(name,!!allowMissing);return"function"==typeof intrinsic&&$indexOf(name,".prototype.")>-1?callBind(intrinsic):intrinsic},"callBoundIntrinsic")},55685:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var bind=__webpack_require__2(84444),GetIntrinsic=__webpack_require__2(95203),$apply=GetIntrinsic("%Function.prototype.apply%"),$call=GetIntrinsic("%Function.prototype.call%"),$reflectApply=GetIntrinsic("%Reflect.apply%",!0)||bind.call($call,$apply),$gOPD=GetIntrinsic("%Object.getOwnPropertyDescriptor%",!0),$defineProperty=GetIntrinsic("%Object.defineProperty%",!0),$max=GetIntrinsic("%Math.max%");if($defineProperty)try{$defineProperty({},"a",{value:1})}catch{$defineProperty=null}module2.exports=__name(function(originalFunction){var func=$reflectApply(bind,$call,arguments);if($gOPD&&$defineProperty){var desc=$gOPD(func,"length");desc.configurable&&$defineProperty(func,"length",{value:1+$max(0,originalFunction.length-(arguments.length-1))})}return func},"callBind");var applyBind=__name(function(){return $reflectApply(bind,$apply,arguments)},"applyBind");$defineProperty?$defineProperty(module2.exports,"apply",{value:applyBind}):module2.exports.apply=applyBind},83018:module2=>{var charenc={utf8:{stringToBytes:function(str){return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)))},bytesToString:function(bytes){return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)))}},bin:{stringToBytes:function(str){for(var bytes=[],i2=0;i21&&(h-=1)),[360*h,100*s,100*v]},convert2.rgb.hwb=function(rgb){var r=rgb[0],g=rgb[1],b2=rgb[2];return[convert2.rgb.hsl(rgb)[0],1/255*Math.min(r,Math.min(g,b2))*100,100*(b2=1-1/255*Math.max(r,Math.max(g,b2)))]},convert2.rgb.cmyk=function(rgb){var k2,r=rgb[0]/255,g=rgb[1]/255,b2=rgb[2]/255;return[100*((1-r-(k2=Math.min(1-r,1-g,1-b2)))/(1-k2)||0),100*((1-g-k2)/(1-k2)||0),100*((1-b2-k2)/(1-k2)||0),100*k2]},__name(comparativeDistance,"comparativeDistance"),convert2.rgb.keyword=function(rgb){var reversed=reverseKeywords[rgb];if(reversed)return reversed;var currentClosestKeyword,currentClosestDistance=1/0;for(var keyword2 in colorName)if(colorName.hasOwnProperty(keyword2)){var distance=comparativeDistance(rgb,colorName[keyword2]);distance.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.3576*(g=g>.04045?Math.pow((g+.055)/1.055,2.4):g/12.92)+.1805*(b2=b2>.04045?Math.pow((b2+.055)/1.055,2.4):b2/12.92)),100*(.2126*r+.7152*g+.0722*b2),100*(.0193*r+.1192*g+.9505*b2)]},convert2.rgb.lab=function(rgb){var xyz=convert2.rgb.xyz(rgb),x=xyz[0],y=xyz[1],z=xyz[2];return y/=100,z/=108.883,x=(x/=95.047)>.008856?Math.pow(x,1/3):7.787*x+16/116,[116*(y=y>.008856?Math.pow(y,1/3):7.787*y+16/116)-16,500*(x-y),200*(y-(z=z>.008856?Math.pow(z,1/3):7.787*z+16/116))]},convert2.hsl.rgb=function(hsl){var t1,t2,t3,rgb,val,h=hsl[0]/360,s=hsl[1]/100,l=hsl[2]/100;if(0===s)return[val=255*l,val,val];t1=2*l-(t2=l<.5?l*(1+s):l+s-l*s),rgb=[0,0,0];for(var i2=0;i2<3;i2++)(t3=h+1/3*-(i2-1))<0&&t3++,t3>1&&t3--,val=6*t3<1?t1+6*(t2-t1)*t3:2*t3<1?t2:3*t3<2?t1+(t2-t1)*(2/3-t3)*6:t1,rgb[i2]=255*val;return rgb},convert2.hsl.hsv=function(hsl){var h=hsl[0],s=hsl[1]/100,l=hsl[2]/100,smin=s,lmin=Math.max(l,.01);return s*=(l*=2)<=1?l:2-l,smin*=lmin<=1?lmin:2-lmin,[h,100*(0===l?2*smin/(lmin+smin):2*s/(l+s)),(l+s)/2*100]},convert2.hsv.rgb=function(hsv){var h=hsv[0]/60,s=hsv[1]/100,v=hsv[2]/100,hi=Math.floor(h)%6,f2=h-Math.floor(h),p=255*v*(1-s),q=255*v*(1-s*f2),t=255*v*(1-s*(1-f2));switch(v*=255,hi){case 0:return[v,t,p];case 1:return[q,v,p];case 2:return[p,v,t];case 3:return[p,q,v];case 4:return[t,p,v];case 5:return[v,p,q]}},convert2.hsv.hsl=function(hsv){var lmin,sl,l,h=hsv[0],s=hsv[1]/100,v=hsv[2]/100,vmin=Math.max(v,.01);return l=(2-s)*v,sl=s*vmin,[h,100*(sl=(sl/=(lmin=(2-s)*vmin)<=1?lmin:2-lmin)||0),100*(l/=2)]},convert2.hwb.rgb=function(hwb){var i2,v,f2,n,r,g,b2,h=hwb[0]/360,wh=hwb[1]/100,bl=hwb[2]/100,ratio=wh+bl;switch(ratio>1&&(wh/=ratio,bl/=ratio),f2=6*h-(i2=Math.floor(6*h)),0!=(1&i2)&&(f2=1-f2),n=wh+f2*((v=1-bl)-wh),i2){default:case 6:case 0:r=v,g=n,b2=wh;break;case 1:r=n,g=v,b2=wh;break;case 2:r=wh,g=v,b2=n;break;case 3:r=wh,g=n,b2=v;break;case 4:r=n,g=wh,b2=v;break;case 5:r=v,g=wh,b2=n}return[255*r,255*g,255*b2]},convert2.cmyk.rgb=function(cmyk){var c=cmyk[0]/100,m=cmyk[1]/100,y=cmyk[2]/100,k2=cmyk[3]/100;return[255*(1-Math.min(1,c*(1-k2)+k2)),255*(1-Math.min(1,m*(1-k2)+k2)),255*(1-Math.min(1,y*(1-k2)+k2))]},convert2.xyz.rgb=function(xyz){var r,g,b2,x=xyz[0]/100,y=xyz[1]/100,z=xyz[2]/100;return g=-.9689*x+1.8758*y+.0415*z,b2=.0557*x+-.204*y+1.057*z,r=(r=3.2406*x+-1.5372*y+-.4986*z)>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,g=g>.0031308?1.055*Math.pow(g,1/2.4)-.055:12.92*g,b2=b2>.0031308?1.055*Math.pow(b2,1/2.4)-.055:12.92*b2,[255*(r=Math.min(Math.max(0,r),1)),255*(g=Math.min(Math.max(0,g),1)),255*(b2=Math.min(Math.max(0,b2),1))]},convert2.xyz.lab=function(xyz){var x=xyz[0],y=xyz[1],z=xyz[2];return y/=100,z/=108.883,x=(x/=95.047)>.008856?Math.pow(x,1/3):7.787*x+16/116,[116*(y=y>.008856?Math.pow(y,1/3):7.787*y+16/116)-16,500*(x-y),200*(y-(z=z>.008856?Math.pow(z,1/3):7.787*z+16/116))]},convert2.lab.xyz=function(lab){var x,y,z,l=lab[0];x=lab[1]/500+(y=(l+16)/116),z=y-lab[2]/200;var y2=Math.pow(y,3),x2=Math.pow(x,3),z2=Math.pow(z,3);return y=y2>.008856?y2:(y-16/116)/7.787,x=x2>.008856?x2:(x-16/116)/7.787,z=z2>.008856?z2:(z-16/116)/7.787,[x*=95.047,y*=100,z*=108.883]},convert2.lab.lch=function(lab){var h,l=lab[0],a=lab[1],b2=lab[2];return(h=360*Math.atan2(b2,a)/2/Math.PI)<0&&(h+=360),[l,Math.sqrt(a*a+b2*b2),h]},convert2.lch.lab=function(lch){var hr,l=lch[0],c=lch[1];return hr=lch[2]/360*2*Math.PI,[l,c*Math.cos(hr),c*Math.sin(hr)]},convert2.rgb.ansi16=function(args2){var r=args2[0],g=args2[1],b2=args2[2],value=1 in arguments?arguments[1]:convert2.rgb.hsv(args2)[2];if(0===(value=Math.round(value/50)))return 30;var ansi=30+(Math.round(b2/255)<<2|Math.round(g/255)<<1|Math.round(r/255));return 2===value&&(ansi+=60),ansi},convert2.hsv.ansi16=function(args2){return convert2.rgb.ansi16(convert2.hsv.rgb(args2),args2[2])},convert2.rgb.ansi256=function(args2){var r=args2[0],g=args2[1],b2=args2[2];return r===g&&g===b2?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(g/255*5)+Math.round(b2/255*5)},convert2.ansi16.rgb=function(args2){var color=args2%10;if(0===color||7===color)return args2>50&&(color+=3.5),[color=color/10.5*255,color,color];var mult=.5*(1+~~(args2>50));return[(1&color)*mult*255,(color>>1&1)*mult*255,(color>>2&1)*mult*255]},convert2.ansi256.rgb=function(args2){if(args2>=232){var c=10*(args2-232)+8;return[c,c,c]}var rem;return args2-=16,[Math.floor(args2/36)/5*255,Math.floor((rem=args2%36)/6)/5*255,rem%6/5*255]},convert2.rgb.hex=function(args2){var string=(((255&Math.round(args2[0]))<<16)+((255&Math.round(args2[1]))<<8)+(255&Math.round(args2[2]))).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert2.hex.rgb=function(args2){var match=args2.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match)return[0,0,0];var colorString2=match[0];3===match[0].length&&(colorString2=colorString2.split("").map(function(char){return char+char}).join(""));var integer=parseInt(colorString2,16);return[integer>>16&255,integer>>8&255,255&integer]},convert2.rgb.hcg=function(rgb){var hue,r=rgb[0]/255,g=rgb[1]/255,b2=rgb[2]/255,max=Math.max(Math.max(r,g),b2),min=Math.min(Math.min(r,g),b2),chroma=max-min;return hue=chroma<=0?0:max===r?(g-b2)/chroma%6:max===g?2+(b2-r)/chroma:4+(r-g)/chroma+4,hue/=6,[360*(hue%=1),100*chroma,100*(chroma<1?min/(1-chroma):0)]},convert2.hsl.hcg=function(hsl){var s=hsl[1]/100,l=hsl[2]/100,c=1,f2=0;return(c=l<.5?2*s*l:2*s*(1-l))<1&&(f2=(l-.5*c)/(1-c)),[hsl[0],100*c,100*f2]},convert2.hsv.hcg=function(hsv){var s=hsv[1]/100,v=hsv[2]/100,c=s*v,f2=0;return c<1&&(f2=(v-c)/(1-c)),[hsv[0],100*c,100*f2]},convert2.hcg.rgb=function(hcg){var h=hcg[0]/360,c=hcg[1]/100,g=hcg[2]/100;if(0===c)return[255*g,255*g,255*g];var pure=[0,0,0],hi=h%1*6,v=hi%1,w=1-v,mg=0;switch(Math.floor(hi)){case 0:pure[0]=1,pure[1]=v,pure[2]=0;break;case 1:pure[0]=w,pure[1]=1,pure[2]=0;break;case 2:pure[0]=0,pure[1]=1,pure[2]=v;break;case 3:pure[0]=0,pure[1]=w,pure[2]=1;break;case 4:pure[0]=v,pure[1]=0,pure[2]=1;break;default:pure[0]=1,pure[1]=0,pure[2]=w}return mg=(1-c)*g,[255*(c*pure[0]+mg),255*(c*pure[1]+mg),255*(c*pure[2]+mg)]},convert2.hcg.hsv=function(hcg){var c=hcg[1]/100,v=c+hcg[2]/100*(1-c),f2=0;return v>0&&(f2=c/v),[hcg[0],100*f2,100*v]},convert2.hcg.hsl=function(hcg){var c=hcg[1]/100,l=hcg[2]/100*(1-c)+.5*c,s=0;return l>0&&l<.5?s=c/(2*l):l>=.5&&l<1&&(s=c/(2*(1-l))),[hcg[0],100*s,100*l]},convert2.hcg.hwb=function(hcg){var c=hcg[1]/100,v=c+hcg[2]/100*(1-c);return[hcg[0],100*(v-c),100*(1-v)]},convert2.hwb.hcg=function(hwb){var w=hwb[1]/100,v=1-hwb[2]/100,c=v-w,g=0;return c<1&&(g=(v-c)/(1-c)),[hwb[0],100*c,100*g]},convert2.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]},convert2.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]},convert2.gray.rgb=function(args2){return[args2[0]/100*255,args2[0]/100*255,args2[0]/100*255]},convert2.gray.hsl=convert2.gray.hsv=function(args2){return[0,0,args2[0]]},convert2.gray.hwb=function(gray){return[0,100,gray[0]]},convert2.gray.cmyk=function(gray){return[0,0,0,gray[0]]},convert2.gray.lab=function(gray){return[gray[0],0,0]},convert2.gray.hex=function(gray){var val=255&Math.round(gray[0]/100*255),string=((val<<16)+(val<<8)+val).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert2.rgb.gray=function(rgb){return[(rgb[0]+rgb[1]+rgb[2])/3/255*100]}});function buildGraph(){for(var graph={},models2=Object.keys(conversions),len=models2.length,i2=0;i21&&(args2=Array.prototype.slice.call(arguments)),fn2(args2))},"wrappedFn");return"conversion"in fn2&&(wrappedFn.conversion=fn2.conversion),wrappedFn}function wrapRounded(fn2){var wrappedFn=__name(function(args2){if(null==args2)return args2;arguments.length>1&&(args2=Array.prototype.slice.call(arguments));var result=fn2(args2);if("object"==typeof result)for(var len=result.length,i2=0;i2=0&&a<1?hexDouble(Math.round(255*a)):"")}function rgbString(rgba,alpha){return alpha<1||rgba[3]&&rgba[3]<1?rgbaString(rgba,alpha):"rgb("+rgba[0]+", "+rgba[1]+", "+rgba[2]+")"}function rgbaString(rgba,alpha){return void 0===alpha&&(alpha=void 0!==rgba[3]?rgba[3]:1),"rgba("+rgba[0]+", "+rgba[1]+", "+rgba[2]+", "+alpha+")"}function percentString(rgba,alpha){return alpha<1||rgba[3]&&rgba[3]<1?percentaString(rgba,alpha):"rgb("+Math.round(rgba[0]/255*100)+"%, "+Math.round(rgba[1]/255*100)+"%, "+Math.round(rgba[2]/255*100)+"%)"}function percentaString(rgba,alpha){return"rgba("+Math.round(rgba[0]/255*100)+"%, "+Math.round(rgba[1]/255*100)+"%, "+Math.round(rgba[2]/255*100)+"%, "+(alpha||rgba[3]||1)+")"}function hslString(hsla,alpha){return alpha<1||hsla[3]&&hsla[3]<1?hslaString(hsla,alpha):"hsl("+hsla[0]+", "+hsla[1]+"%, "+hsla[2]+"%)"}function hslaString(hsla,alpha){return void 0===alpha&&(alpha=void 0!==hsla[3]?hsla[3]:1),"hsla("+hsla[0]+", "+hsla[1]+"%, "+hsla[2]+"%, "+alpha+")"}function hwbString(hwb,alpha){return void 0===alpha&&(alpha=void 0!==hwb[3]?hwb[3]:1),"hwb("+hwb[0]+", "+hwb[1]+"%, "+hwb[2]+"%"+(void 0!==alpha&&1!==alpha?", "+alpha:"")+")"}function keyword(rgb){return reverseNames[rgb.slice(0,3)]}function scale(num,min,max){return Math.min(Math.max(min,num),max)}function hexDouble(num){var str=num.toString(16).toUpperCase();return str.length<2?"0"+str:str}__name(getRgba,"getRgba"),__name(getHsla,"getHsla"),__name(getHwb,"getHwb"),__name(getRgb,"getRgb"),__name(getHsl,"getHsl"),__name(getAlpha,"getAlpha"),__name(hexString,"hexString"),__name(rgbString,"rgbString"),__name(rgbaString,"rgbaString"),__name(percentString,"percentString"),__name(percentaString,"percentaString"),__name(hslString,"hslString"),__name(hslaString,"hslaString"),__name(hwbString,"hwbString"),__name(keyword,"keyword"),__name(scale,"scale"),__name(hexDouble,"hexDouble");var reverseNames={};for(var name in colorName$1)reverseNames[colorName$1[name]]=name;var Color=__name(function(obj){return obj instanceof Color?obj:this instanceof Color?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof obj?(vals=colorString.getRgba(obj))?this.setValues("rgb",vals):(vals=colorString.getHsla(obj))?this.setValues("hsl",vals):(vals=colorString.getHwb(obj))&&this.setValues("hwb",vals):"object"==typeof obj&&(void 0!==(vals=obj).r||void 0!==vals.red?this.setValues("rgb",vals):void 0!==vals.l||void 0!==vals.lightness?this.setValues("hsl",vals):void 0!==vals.v||void 0!==vals.value?this.setValues("hsv",vals):void 0!==vals.w||void 0!==vals.whiteness?this.setValues("hwb",vals):(void 0!==vals.c||void 0!==vals.cyan)&&this.setValues("cmyk",vals)))):new Color(obj);var vals},"Color");Color.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var values=this.values;return 1!==values.alpha?values.hwb.concat([values.alpha]):values.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var values=this.values;return values.rgb.concat([values.alpha])},hslaArray:function(){var values=this.values;return values.hsl.concat([values.alpha])},alpha:function(val){return void 0===val?this.values.alpha:(this.setValues("alpha",val),this)},red:function(val){return this.setChannel("rgb",0,val)},green:function(val){return this.setChannel("rgb",1,val)},blue:function(val){return this.setChannel("rgb",2,val)},hue:function(val){return val&&(val=(val%=360)<0?360+val:val),this.setChannel("hsl",0,val)},saturation:function(val){return this.setChannel("hsl",1,val)},lightness:function(val){return this.setChannel("hsl",2,val)},saturationv:function(val){return this.setChannel("hsv",1,val)},whiteness:function(val){return this.setChannel("hwb",1,val)},blackness:function(val){return this.setChannel("hwb",2,val)},value:function(val){return this.setChannel("hsv",2,val)},cyan:function(val){return this.setChannel("cmyk",0,val)},magenta:function(val){return this.setChannel("cmyk",1,val)},yellow:function(val){return this.setChannel("cmyk",2,val)},black:function(val){return this.setChannel("cmyk",3,val)},hexString:function(){return colorString.hexString(this.values.rgb)},rgbString:function(){return colorString.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return colorString.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return colorString.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return colorString.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return colorString.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return colorString.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return colorString.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var rgb=this.values.rgb;return rgb[0]<<16|rgb[1]<<8|rgb[2]},luminosity:function(){for(var rgb=this.values.rgb,lum=[],i2=0;i2lum2?(lum1+.05)/(lum2+.05):(lum2+.05)/(lum1+.05)},level:function(color2){var contrastRatio=this.contrast(color2);return contrastRatio>=7.1?"AAA":contrastRatio>=4.5?"AA":""},dark:function(){var rgb=this.values.rgb;return(299*rgb[0]+587*rgb[1]+114*rgb[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var rgb=[],i2=0;i2<3;i2++)rgb[i2]=255-this.values.rgb[i2];return this.setValues("rgb",rgb),this},lighten:function(ratio){var hsl=this.values.hsl;return hsl[2]+=hsl[2]*ratio,this.setValues("hsl",hsl),this},darken:function(ratio){var hsl=this.values.hsl;return hsl[2]-=hsl[2]*ratio,this.setValues("hsl",hsl),this},saturate:function(ratio){var hsl=this.values.hsl;return hsl[1]+=hsl[1]*ratio,this.setValues("hsl",hsl),this},desaturate:function(ratio){var hsl=this.values.hsl;return hsl[1]-=hsl[1]*ratio,this.setValues("hsl",hsl),this},whiten:function(ratio){var hwb=this.values.hwb;return hwb[1]+=hwb[1]*ratio,this.setValues("hwb",hwb),this},blacken:function(ratio){var hwb=this.values.hwb;return hwb[2]+=hwb[2]*ratio,this.setValues("hwb",hwb),this},greyscale:function(){var rgb=this.values.rgb,val=.3*rgb[0]+.59*rgb[1]+.11*rgb[2];return this.setValues("rgb",[val,val,val]),this},clearer:function(ratio){var alpha=this.values.alpha;return this.setValues("alpha",alpha-alpha*ratio),this},opaquer:function(ratio){var alpha=this.values.alpha;return this.setValues("alpha",alpha+alpha*ratio),this},rotate:function(degrees){var hsl=this.values.hsl,hue=(hsl[0]+degrees)%360;return hsl[0]=hue<0?360+hue:hue,this.setValues("hsl",hsl),this},mix:function(mixinColor,weight){var color1=this,color2=mixinColor,p=void 0===weight?.5:weight,w=2*p-1,a=color1.alpha()-color2.alpha(),w1=((w*a==-1?w:(w+a)/(1+w*a))+1)/2,w2=1-w1;return this.rgb(w1*color1.red()+w2*color2.red(),w1*color1.green()+w2*color2.green(),w1*color1.blue()+w2*color2.blue()).alpha(color1.alpha()*p+color2.alpha()*(1-p))},toJSON:function(){return this.rgb()},clone:function(){var value,type,result=new Color,source=this.values,target=result.values;for(var prop in source)source.hasOwnProperty(prop)&&(value=source[prop],"[object Array]"===(type={}.toString.call(value))?target[prop]=value.slice(0):"[object Number]"===type?target[prop]=value:console.error("unexpected color value:",value));return result}},Color.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},Color.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},Color.prototype.getValues=function(space){for(var values=this.values,vals={},i2=0;i2=0;i2--)fn2.call(thisArg,loopable[i2],i2);else for(i2=0;i2=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var s=1.70158,p=0,a=1;return 0===t?0:1===t?1:(p||(p=.3),a<1?(a=1,s=p/4):s=p/(2*Math.PI)*Math.asin(1/a),-a*Math.pow(2,10*(t-=1))*Math.sin((t-s)*(2*Math.PI)/p))},easeOutElastic:function(t){var s=1.70158,p=0,a=1;return 0===t?0:1===t?1:(p||(p=.3),a<1?(a=1,s=p/4):s=p/(2*Math.PI)*Math.asin(1/a),a*Math.pow(2,-10*t)*Math.sin((t-s)*(2*Math.PI)/p)+1)},easeInOutElastic:function(t){var s=1.70158,p=0,a=1;return 0===t?0:2==(t/=.5)?1:(p||(p=.45),a<1?(a=1,s=p/4):s=p/(2*Math.PI)*Math.asin(1/a),t<1?a*Math.pow(2,10*(t-=1))*Math.sin((t-s)*(2*Math.PI)/p)*-.5:a*Math.pow(2,-10*(t-=1))*Math.sin((t-s)*(2*Math.PI)/p)*.5+1)},easeInBack:function(t){var s=1.70158;return t*t*((s+1)*t-s)},easeOutBack:function(t){var s=1.70158;return(t-=1)*t*((s+1)*t+s)+1},easeInOutBack:function(t){var s=1.70158;return(t/=.5)<1?t*t*((1+(s*=1.525))*t-s)*.5:.5*((t-=2)*t*((1+(s*=1.525))*t+s)+2)},easeInBounce:function(t){return 1-effects.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*effects.easeInBounce(2*t):.5*effects.easeOutBounce(2*t-1)+.5}},helpers_easing={effects};helpers_core.easingEffects=effects;var PI=Math.PI,RAD_PER_DEG=PI/180,DOUBLE_PI=2*PI,HALF_PI=PI/2,QUARTER_PI=PI/4,TWO_THIRDS_PI=2*PI/3,exports$1={clear:function(chart){chart.ctx.clearRect(0,0,chart.width,chart.height)},roundedRect:function(ctx,x,y,width,height,radius){if(radius){var r=Math.min(radius,height/2,width/2),left=x+r,top=y+r,right=x+width-r,bottom=y+height-r;ctx.moveTo(x,top),leftarea.left-epsilon&&point.xarea.top-epsilon&&point.y0&&me.requestAnimationFrame()},advance:function(){for(var animation,chart,numSteps,nextStep,animations=this.animations,i2=0;i2=numSteps?(helpers$1.callback(animation.onAnimationComplete,[animation],chart),chart.animating=!1,animations.splice(i2,1)):++i2}},resolve=helpers$1.options.resolve,arrayEvents=["push","pop","shift","splice","unshift"];function listenArrayEvents(array,listener){array._chartjs?array._chartjs.listeners.push(listener):(Object.defineProperty(array,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[listener]}}),arrayEvents.forEach(function(key){var method="onData"+key.charAt(0).toUpperCase()+key.slice(1),base=array[key];Object.defineProperty(array,key,{configurable:!0,enumerable:!1,value:function(){var args2=Array.prototype.slice.call(arguments),res=base.apply(this,args2);return helpers$1.each(array._chartjs.listeners,function(object){"function"==typeof object[method]&&object[method].apply(object,args2)}),res}})}))}function unlistenArrayEvents(array,listener){var stub=array._chartjs;if(stub){var listeners=stub.listeners,index=listeners.indexOf(listener);-1!==index&&listeners.splice(index,1),!(listeners.length>0)&&(arrayEvents.forEach(function(key){delete array[key]}),delete array._chartjs)}}__name(listenArrayEvents,"listenArrayEvents"),__name(unlistenArrayEvents,"unlistenArrayEvents");var DatasetController=__name(function(chart,datasetIndex){this.initialize(chart,datasetIndex)},"DatasetController");helpers$1.extend(DatasetController.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(chart,datasetIndex){var me=this;me.chart=chart,me.index=datasetIndex,me.linkScales(),me.addElements(),me._type=me.getMeta().type},updateIndex:function(datasetIndex){this.index=datasetIndex},linkScales:function(){var me=this,meta=me.getMeta(),chart=me.chart,scales2=chart.scales,dataset=me.getDataset(),scalesOpts=chart.options.scales;(null===meta.xAxisID||!(meta.xAxisID in scales2)||dataset.xAxisID)&&(meta.xAxisID=dataset.xAxisID||scalesOpts.xAxes[0].id),(null===meta.yAxisID||!(meta.yAxisID in scales2)||dataset.yAxisID)&&(meta.yAxisID=dataset.yAxisID||scalesOpts.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(scaleID){return this.chart.scales[scaleID]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&unlistenArrayEvents(this._data,this)},createMetaDataset:function(){var me=this,type=me.datasetElementType;return type&&new type({_chart:me.chart,_datasetIndex:me.index})},createMetaData:function(index){var me=this,type=me.dataElementType;return type&&new type({_chart:me.chart,_datasetIndex:me.index,_index:index})},addElements:function(){var i2,ilen,me=this,meta=me.getMeta(),data=me.getDataset().data||[],metaData=meta.data;for(i2=0,ilen=data.length;i2numMeta&&me.insertElements(numMeta,numData-numMeta)},insertElements:function(start,count){for(var i2=0;i2pixelMargin?(angleMargin=pixelMargin/arc.innerRadius,ctx.arc(x,y,arc.innerRadius-pixelMargin,endAngle+angleMargin,startAngle-angleMargin,!0)):ctx.arc(x,y,pixelMargin,endAngle+Math.PI/2,startAngle-Math.PI/2),ctx.closePath(),ctx.clip()}function drawFullCircleBorders(ctx,vm,arc,inner){var i2,endAngle=arc.endAngle;for(inner&&(arc.endAngle=arc.startAngle+TAU,clipArc(ctx,arc),arc.endAngle=endAngle,arc.endAngle===arc.startAngle&&arc.fullCircles&&(arc.endAngle+=TAU,arc.fullCircles--)),ctx.beginPath(),ctx.arc(arc.x,arc.y,arc.innerRadius,arc.startAngle+TAU,arc.startAngle,!0),i2=0;i2endAngle;)angle-=TAU;for(;angle=startAngle&&angle<=endAngle,withinRadius=distance>=vm.innerRadius&&distance<=vm.outerRadius;return betweenAngles&&withinRadius}return!1},getCenterPoint:function(){var vm=this._view,halfAngle=(vm.startAngle+vm.endAngle)/2,halfRadius=(vm.innerRadius+vm.outerRadius)/2;return{x:vm.x+Math.cos(halfAngle)*halfRadius,y:vm.y+Math.sin(halfAngle)*halfRadius}},getArea:function(){var vm=this._view;return Math.PI*((vm.endAngle-vm.startAngle)/(2*Math.PI))*(Math.pow(vm.outerRadius,2)-Math.pow(vm.innerRadius,2))},tooltipPosition:function(){var vm=this._view,centreAngle=vm.startAngle+(vm.endAngle-vm.startAngle)/2,rangeFromCentre=(vm.outerRadius-vm.innerRadius)/2+vm.innerRadius;return{x:vm.x+Math.cos(centreAngle)*rangeFromCentre,y:vm.y+Math.sin(centreAngle)*rangeFromCentre}},draw:function(){var i2,ctx=this._chart.ctx,vm=this._view,pixelMargin="inner"===vm.borderAlign?.33:0,arc={x:vm.x,y:vm.y,innerRadius:vm.innerRadius,outerRadius:Math.max(vm.outerRadius-pixelMargin,0),pixelMargin,startAngle:vm.startAngle,endAngle:vm.endAngle,fullCircles:Math.floor(vm.circumference/TAU)};if(ctx.save(),ctx.fillStyle=vm.backgroundColor,ctx.strokeStyle=vm.borderColor,arc.fullCircles){for(arc.endAngle=arc.startAngle+TAU,ctx.beginPath(),ctx.arc(arc.x,arc.y,arc.outerRadius,arc.startAngle,arc.endAngle),ctx.arc(arc.x,arc.y,arc.innerRadius,arc.endAngle,arc.startAngle,!0),ctx.closePath(),i2=0;i2vm.x&&(edge=swap(edge,"left","right")):vm.basemaxH?maxH:t,r:skip2.right||r<0?0:r>maxW?maxW:r,b:skip2.bottom||b2<0?0:b2>maxH?maxH:b2,l:skip2.left||l<0?0:l>maxW?maxW:l}}function boundingRects(vm){var bounds=getBarBounds(vm),width=bounds.right-bounds.left,height=bounds.bottom-bounds.top,border=parseBorderWidth(vm,width/2,height/2);return{outer:{x:bounds.left,y:bounds.top,w:width,h:height},inner:{x:bounds.left+border.l,y:bounds.top+border.t,w:width-border.l-border.r,h:height-border.t-border.b}}}function inRange(vm,x,y){var skipX=null===x,skipY=null===y,bounds=!(!vm||skipX&&skipY)&&getBarBounds(vm);return bounds&&(skipX||x>=bounds.left&&x<=bounds.right)&&(skipY||y>=bounds.top&&y<=bounds.bottom)}core_defaults._set("global",{elements:{rectangle:{backgroundColor:defaultColor$2,borderColor:defaultColor$2,borderSkipped:"bottom",borderWidth:0}}}),__name(isVertical,"isVertical"),__name(getBarBounds,"getBarBounds"),__name(swap,"swap"),__name(parseBorderSkipped,"parseBorderSkipped"),__name(parseBorderWidth,"parseBorderWidth"),__name(boundingRects,"boundingRects"),__name(inRange,"inRange");var element_rectangle=core_element.extend({_type:"rectangle",draw:function(){var ctx=this._chart.ctx,vm=this._view,rects=boundingRects(vm),outer=rects.outer,inner=rects.inner;ctx.fillStyle=vm.backgroundColor,ctx.fillRect(outer.x,outer.y,outer.w,outer.h),(outer.w!==inner.w||outer.h!==inner.h)&&(ctx.save(),ctx.beginPath(),ctx.rect(outer.x,outer.y,outer.w,outer.h),ctx.clip(),ctx.fillStyle=vm.borderColor,ctx.rect(inner.x,inner.y,inner.w,inner.h),ctx.fill("evenodd"),ctx.restore())},height:function(){var vm=this._view;return vm.base-vm.y},inRange:function(mouseX,mouseY){return inRange(this._view,mouseX,mouseY)},inLabelRange:function(mouseX,mouseY){var vm=this._view;return isVertical(vm)?inRange(vm,mouseX,null):inRange(vm,null,mouseY)},inXRange:function(mouseX){return inRange(this._view,mouseX,null)},inYRange:function(mouseY){return inRange(this._view,null,mouseY)},getCenterPoint:function(){var x,y,vm=this._view;return isVertical(vm)?(x=vm.x,y=(vm.y+vm.base)/2):(x=(vm.x+vm.base)/2,y=vm.y),{x,y}},getArea:function(){var vm=this._view;return isVertical(vm)?vm.width*Math.abs(vm.y-vm.base):vm.height*Math.abs(vm.x-vm.base)},tooltipPosition:function(){var vm=this._view;return{x:vm.x,y:vm.y}}}),elements={},Arc=element_arc,Line=element_line,Point=element_point,Rectangle=element_rectangle;elements.Arc=Arc,elements.Line=Line,elements.Point=Point,elements.Rectangle=Rectangle;var deprecated=helpers$1._deprecated,valueOrDefault$3=helpers$1.valueOrDefault;function computeMinSampleSize(scale2,pixels){var prev,curr,i2,ilen,min=scale2._length;for(i2=1,ilen=pixels.length;i20?Math.min(min,Math.abs(curr-prev)):min,prev=curr;return min}function computeFitCategoryTraits(index,ruler,options2){var size,ratio,thickness=options2.barThickness,count=ruler.stackCount,curr=ruler.pixels[index],min=helpers$1.isNullOrUndef(thickness)?computeMinSampleSize(ruler.scale,ruler.pixels):-1;return helpers$1.isNullOrUndef(thickness)?(size=min*options2.categoryPercentage,ratio=options2.barPercentage):(size=thickness*count,ratio=1),{chunk:size/count,ratio,start:curr-size/2}}function computeFlexCategoryTraits(index,ruler,options2){var start,pixels=ruler.pixels,curr=pixels[index],prev=index>0?pixels[index-1]:null,next=index=0&&value.min>=0?value.min:value.max,length=void 0===value.start?value.end:value.max>=0&&value.min>=0?value.max-value.min:value.min-value.max,ilen=metasets.length;if(stacked||void 0===stacked&&void 0!==stack2)for(i2=0;i2=0&&stackLength.max>=0?stackLength.max:stackLength.min,(value.min<0&&ivalue<0||value.max>=0&&ivalue>0)&&(start+=ivalue));return base=scale2.getPixelForValue(start),size=(head=scale2.getPixelForValue(start+length))-base,void 0!==minBarLength&&Math.abs(size)=0&&!isHorizontal||length<0&&isHorizontal?base-minBarLength:base+minBarLength),{size,base,head,center:head+size/2}},calculateBarIndexPixels:function(datasetIndex,index,ruler,options2){var me=this,range="flex"===options2.barThickness?computeFlexCategoryTraits(index,ruler,options2):computeFitCategoryTraits(index,ruler,options2),stackIndex=me.getStackIndex(datasetIndex,me.getMeta().stack),center=range.start+range.chunk*stackIndex+range.chunk/2,size=Math.min(valueOrDefault$3(options2.maxBarThickness,1/0),range.chunk*range.ratio);return{base:center-size/2,head:center+size/2,center,size}},draw:function(){var me=this,chart=me.chart,scale2=me._getValueScale(),rects=me.getMeta().data,dataset=me.getDataset(),ilen=rects.length,i2=0;for(helpers$1.canvas.clipArea(chart.ctx,chart.chartArea);i2=PI$1?-DOUBLE_PI$1:startAngle<-PI$1?DOUBLE_PI$1:0)+circumference,startX=Math.cos(startAngle),startY=Math.sin(startAngle),endX=Math.cos(endAngle),endY=Math.sin(endAngle),contains0=startAngle<=0&&endAngle>=0||endAngle>=DOUBLE_PI$1,contains90=startAngle<=HALF_PI$1&&endAngle>=HALF_PI$1||endAngle>=DOUBLE_PI$1+HALF_PI$1,contains270=startAngle<=-HALF_PI$1&&endAngle>=-HALF_PI$1||endAngle>=PI$1+HALF_PI$1,minX=startAngle===-PI$1||endAngle>=PI$1?-1:Math.min(startX,startX*cutout,endX,endX*cutout),minY=contains270?-1:Math.min(startY,startY*cutout,endY,endY*cutout),maxX=contains0?1:Math.max(startX,startX*cutout,endX,endX*cutout),maxY=contains90?1:Math.max(startY,startY*cutout,endY,endY*cutout);ratioX=(maxX-minX)/2,ratioY=(maxY-minY)/2,offsetX=-(maxX+minX)/2,offsetY=-(maxY+minY)/2}for(i2=0,ilen=arcs.length;i20&&!isNaN(value)?DOUBLE_PI$1*(Math.abs(value)/total):0},getMaxBorderWidth:function(arcs){var i2,ilen,meta,arc,controller,options2,borderWidth,hoverWidth,me=this,max=0,chart=me.chart;if(!arcs)for(i2=0,ilen=chart.data.datasets.length;i2(max=borderWidth>max?borderWidth:max)?hoverWidth:max);return max},setHoverStyle:function(arc){var model=arc._model,options2=arc._options,getHoverColor=helpers$1.getHoverColor;arc.$previousStyle={backgroundColor:model.backgroundColor,borderColor:model.borderColor,borderWidth:model.borderWidth},model.backgroundColor=valueOrDefault$5(options2.hoverBackgroundColor,getHoverColor(options2.backgroundColor)),model.borderColor=valueOrDefault$5(options2.hoverBorderColor,getHoverColor(options2.borderColor)),model.borderWidth=valueOrDefault$5(options2.hoverBorderWidth,options2.borderWidth)},_getRingWeightOffset:function(datasetIndex){for(var ringWeightOffset=0,i2=0;i20&&isPointInArea(points[i2-1]._model,area)&&(model.controlPointPreviousX=capControlPoint(model.controlPointPreviousX,area.left,area.right),model.controlPointPreviousY=capControlPoint(model.controlPointPreviousY,area.top,area.bottom)),i20&&(items=chart.getDatasetMeta(items[0]._datasetIndex).data),items},"x-axis":function(chart,e){return indexMode(chart,e,{intersect:!1})},point:function(chart,e){return getIntersectItems(chart,getRelativePosition(e,chart))},nearest:function(chart,e,options2){var position=getRelativePosition(e,chart);options2.axis=options2.axis||"xy";var distanceMetric=getDistanceMetricForAxis(options2.axis);return getNearestItems(chart,position,options2.intersect,distanceMetric)},x:function(chart,e,options2){var position=getRelativePosition(e,chart),items=[],intersectsItem=!1;return parseVisibleItems(chart,function(element){element.inXRange(position.x)&&items.push(element),element.inRange(position.x,position.y)&&(intersectsItem=!0)}),options2.intersect&&!intersectsItem&&(items=[]),items},y:function(chart,e,options2){var position=getRelativePosition(e,chart),items=[],intersectsItem=!1;return parseVisibleItems(chart,function(element){element.inYRange(position.y)&&items.push(element),element.inRange(position.x,position.y)&&(intersectsItem=!0)}),options2.intersect&&!intersectsItem&&(items=[]),items}}},extend=helpers$1.extend;function filterByPosition(array,position){return helpers$1.where(array,function(v){return v.pos===position})}function sortByWeight(array,reverse){return array.sort(function(a,b2){var v0=reverse?b2:a,v1=reverse?a:b2;return v0.weight===v1.weight?v0.index-v1.index:v0.weight-v1.weight})}function wrapBoxes(boxes){var i2,ilen,box,layoutBoxes=[];for(i2=0,ilen=(boxes||[]).length;i2 div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n",stylesheet=getCjsExportFromNamespace(Object.freeze({__proto__:null,default:platform_dom})),EXPANDO_KEY="$chartjs",CSS_PREFIX="chartjs-",CSS_SIZE_MONITOR=CSS_PREFIX+"size-monitor",CSS_RENDER_MONITOR=CSS_PREFIX+"render-monitor",CSS_RENDER_ANIMATION=CSS_PREFIX+"render-animation",ANIMATION_START_EVENTS=["animationstart","webkitAnimationStart"],EVENT_TYPES={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function readUsedSize(element,property){var value=helpers$1.getStyle(element,property),matches=value&&value.match(/^(\d+)(\.\d+)?px$/);return matches?Number(matches[1]):void 0}function initCanvas(canvas2,config){var style=canvas2.style,renderHeight=canvas2.getAttribute("height"),renderWidth=canvas2.getAttribute("width");if(canvas2[EXPANDO_KEY]={initial:{height:renderHeight,width:renderWidth,style:{display:style.display,height:style.height,width:style.width}}},style.display=style.display||"block",null===renderWidth||""===renderWidth){var displayWidth=readUsedSize(canvas2,"width");void 0!==displayWidth&&(canvas2.width=displayWidth)}if(null===renderHeight||""===renderHeight)if(""===canvas2.style.height)canvas2.height=canvas2.width/(config.options.aspectRatio||2);else{var displayHeight=readUsedSize(canvas2,"height");void 0!==displayWidth&&(canvas2.height=displayHeight)}return canvas2}__name(readUsedSize,"readUsedSize"),__name(initCanvas,"initCanvas");var eventListenerOptions=!!function(){var supports=!1;try{var options2=Object.defineProperty({},"passive",{get:function(){supports=!0}});window.addEventListener("e",null,options2)}catch{}return supports}()&&{passive:!0};function addListener(node,type,listener){node.addEventListener(type,listener,eventListenerOptions)}function removeListener(node,type,listener){node.removeEventListener(type,listener,eventListenerOptions)}function createEvent(type,chart,x,y,nativeEvent){return{type,chart,native:nativeEvent||null,x:void 0!==x?x:null,y:void 0!==y?y:null}}function fromNativeEvent(event,chart){var type=EVENT_TYPES[event.type]||event.type,pos=helpers$1.getRelativePosition(event,chart);return createEvent(type,chart,pos.x,pos.y,event)}function throttled(fn2,thisArg){var ticking=!1,args2=[];return function(){args2=Array.prototype.slice.call(arguments),thisArg=thisArg||this,ticking||(ticking=!0,helpers$1.requestAnimFrame.call(window,function(){ticking=!1,fn2.apply(thisArg,args2)}))}}function createDiv(cls){var el=document.createElement("div");return el.className=cls||"",el}function createResizer(handler){var maxSize=1e6,resizer=createDiv(CSS_SIZE_MONITOR),expand=createDiv(CSS_SIZE_MONITOR+"-expand"),shrink=createDiv(CSS_SIZE_MONITOR+"-shrink");expand.appendChild(createDiv()),shrink.appendChild(createDiv()),resizer.appendChild(expand),resizer.appendChild(shrink),resizer._reset=function(){expand.scrollLeft=maxSize,expand.scrollTop=maxSize,shrink.scrollLeft=maxSize,shrink.scrollTop=maxSize};var onScroll=__name(function(){resizer._reset(),handler()},"onScroll");return addListener(expand,"scroll",onScroll.bind(expand,"expand")),addListener(shrink,"scroll",onScroll.bind(shrink,"shrink")),resizer}function watchForRender(node,handler){var expando=node[EXPANDO_KEY]||(node[EXPANDO_KEY]={}),proxy=expando.renderProxy=function(e){e.animationName===CSS_RENDER_ANIMATION&&handler()};helpers$1.each(ANIMATION_START_EVENTS,function(type){addListener(node,type,proxy)}),expando.reflow=!!node.offsetParent,node.classList.add(CSS_RENDER_MONITOR)}function unwatchForRender(node){var expando=node[EXPANDO_KEY]||{},proxy=expando.renderProxy;proxy&&(helpers$1.each(ANIMATION_START_EVENTS,function(type){removeListener(node,type,proxy)}),delete expando.renderProxy),node.classList.remove(CSS_RENDER_MONITOR)}function addResizeListener(node,listener,chart){var expando=node[EXPANDO_KEY]||(node[EXPANDO_KEY]={}),resizer=expando.resizer=createResizer(throttled(function(){if(expando.resizer){var container=chart.options.maintainAspectRatio&&node.parentNode,w=container?container.clientWidth:0;listener(createEvent("resize",chart)),container&&container.clientWidth0){var item=tooltipItems[0];item.label?title2=item.label:item.xLabel?title2=item.xLabel:labelCount>0&&item.index-1?str.split("\n"):str}function createTooltipItem(element){var xScale=element._xScale,yScale=element._yScale||element._scale,index=element._index,datasetIndex=element._datasetIndex,controller=element._chart.getDatasetMeta(datasetIndex).controller,indexScale=controller._getIndexScale(),valueScale=controller._getValueScale();return{xLabel:xScale?xScale.getLabelForIndex(index,datasetIndex):"",yLabel:yScale?yScale.getLabelForIndex(index,datasetIndex):"",label:indexScale?""+indexScale.getLabelForIndex(index,datasetIndex):"",value:valueScale?""+valueScale.getLabelForIndex(index,datasetIndex):"",index,datasetIndex,x:element._model.x,y:element._model.y}}function getBaseModel(tooltipOpts){var globalDefaults=core_defaults.global;return{xPadding:tooltipOpts.xPadding,yPadding:tooltipOpts.yPadding,xAlign:tooltipOpts.xAlign,yAlign:tooltipOpts.yAlign,rtl:tooltipOpts.rtl,textDirection:tooltipOpts.textDirection,bodyFontColor:tooltipOpts.bodyFontColor,_bodyFontFamily:valueOrDefault$8(tooltipOpts.bodyFontFamily,globalDefaults.defaultFontFamily),_bodyFontStyle:valueOrDefault$8(tooltipOpts.bodyFontStyle,globalDefaults.defaultFontStyle),_bodyAlign:tooltipOpts.bodyAlign,bodyFontSize:valueOrDefault$8(tooltipOpts.bodyFontSize,globalDefaults.defaultFontSize),bodySpacing:tooltipOpts.bodySpacing,titleFontColor:tooltipOpts.titleFontColor,_titleFontFamily:valueOrDefault$8(tooltipOpts.titleFontFamily,globalDefaults.defaultFontFamily),_titleFontStyle:valueOrDefault$8(tooltipOpts.titleFontStyle,globalDefaults.defaultFontStyle),titleFontSize:valueOrDefault$8(tooltipOpts.titleFontSize,globalDefaults.defaultFontSize),_titleAlign:tooltipOpts.titleAlign,titleSpacing:tooltipOpts.titleSpacing,titleMarginBottom:tooltipOpts.titleMarginBottom,footerFontColor:tooltipOpts.footerFontColor,_footerFontFamily:valueOrDefault$8(tooltipOpts.footerFontFamily,globalDefaults.defaultFontFamily),_footerFontStyle:valueOrDefault$8(tooltipOpts.footerFontStyle,globalDefaults.defaultFontStyle),footerFontSize:valueOrDefault$8(tooltipOpts.footerFontSize,globalDefaults.defaultFontSize),_footerAlign:tooltipOpts.footerAlign,footerSpacing:tooltipOpts.footerSpacing,footerMarginTop:tooltipOpts.footerMarginTop,caretSize:tooltipOpts.caretSize,cornerRadius:tooltipOpts.cornerRadius,backgroundColor:tooltipOpts.backgroundColor,opacity:0,legendColorBackground:tooltipOpts.multiKeyBackground,displayColors:tooltipOpts.displayColors,borderColor:tooltipOpts.borderColor,borderWidth:tooltipOpts.borderWidth}}function getTooltipSize(tooltip,model){var ctx=tooltip._chart.ctx,height=2*model.yPadding,width=0,body=model.body,combinedBodyLength=body.reduce(function(count,bodyItem){return count+bodyItem.before.length+bodyItem.lines.length+bodyItem.after.length},0);combinedBodyLength+=model.beforeBody.length+model.afterBody.length;var titleLineCount=model.title.length,footerLineCount=model.footer.length,titleFontSize=model.titleFontSize,bodyFontSize=model.bodyFontSize,footerFontSize=model.footerFontSize;height+=titleLineCount*titleFontSize,height+=titleLineCount?(titleLineCount-1)*model.titleSpacing:0,height+=titleLineCount?model.titleMarginBottom:0,height+=combinedBodyLength*bodyFontSize,height+=combinedBodyLength?(combinedBodyLength-1)*model.bodySpacing:0,height+=footerLineCount?model.footerMarginTop:0,height+=footerLineCount*footerFontSize,height+=footerLineCount?(footerLineCount-1)*model.footerSpacing:0;var widthPadding=0,maxLineWidth=__name(function(line){width=Math.max(width,ctx.measureText(line).width+widthPadding)},"maxLineWidth");return ctx.font=helpers$1.fontString(titleFontSize,model._titleFontStyle,model._titleFontFamily),helpers$1.each(model.title,maxLineWidth),ctx.font=helpers$1.fontString(bodyFontSize,model._bodyFontStyle,model._bodyFontFamily),helpers$1.each(model.beforeBody.concat(model.afterBody),maxLineWidth),widthPadding=model.displayColors?bodyFontSize+2:0,helpers$1.each(body,function(bodyItem){helpers$1.each(bodyItem.before,maxLineWidth),helpers$1.each(bodyItem.lines,maxLineWidth),helpers$1.each(bodyItem.after,maxLineWidth)}),widthPadding=0,ctx.font=helpers$1.fontString(footerFontSize,model._footerFontStyle,model._footerFontFamily),helpers$1.each(model.footer,maxLineWidth),{width:width+=2*model.xPadding,height}}function determineAlignment(tooltip,size){var model=tooltip._model,chart=tooltip._chart,chartArea=tooltip._chart.chartArea,xAlign="center",yAlign="center";model.ychart.height-size.height&&(yAlign="bottom");var lf,rf,olf,orf,yf,midX=(chartArea.left+chartArea.right)/2,midY=(chartArea.top+chartArea.bottom)/2;"center"===yAlign?(lf=__name(function(x){return x<=midX},"lf"),rf=__name(function(x){return x>midX},"rf")):(lf=__name(function(x){return x<=size.width/2},"lf"),rf=__name(function(x){return x>=chart.width-size.width/2},"rf")),olf=__name(function(x){return x+size.width+model.caretSize+model.caretPadding>chart.width},"olf"),orf=__name(function(x){return x-size.width-model.caretSize-model.caretPadding<0},"orf"),yf=__name(function(y){return y<=midY?"top":"bottom"},"yf"),lf(model.x)?(xAlign="left",olf(model.x)&&(xAlign="center",yAlign=yf(model.y))):rf(model.x)&&(xAlign="right",orf(model.x)&&(xAlign="center",yAlign=yf(model.y)));var opts=tooltip._options;return{xAlign:opts.xAlign?opts.xAlign:xAlign,yAlign:opts.yAlign?opts.yAlign:yAlign}}function getBackgroundPoint(vm,size,alignment,chart){var x=vm.x,y=vm.y,caretSize=vm.caretSize,caretPadding=vm.caretPadding,cornerRadius=vm.cornerRadius,xAlign=alignment.xAlign,yAlign=alignment.yAlign,paddingAndSize=caretSize+caretPadding,radiusAndPadding=cornerRadius+caretPadding;return"right"===xAlign?x-=size.width:"center"===xAlign&&((x-=size.width/2)+size.width>chart.width&&(x=chart.width-size.width),x<0&&(x=0)),"top"===yAlign?y+=paddingAndSize:y-="bottom"===yAlign?size.height+paddingAndSize:size.height/2,"center"===yAlign?"left"===xAlign?x+=paddingAndSize:"right"===xAlign&&(x-=paddingAndSize):"left"===xAlign?x-=radiusAndPadding:"right"===xAlign&&(x+=radiusAndPadding),{x,y}}function getAlignedX(vm,align){return"center"===align?vm.x+vm.width/2:"right"===align?vm.x+vm.width-vm.xPadding:vm.x+vm.xPadding}function getBeforeAfterBodyLines(callback){return pushOrConcat([],splitNewlines(callback))}__name(pushOrConcat,"pushOrConcat"),__name(splitNewlines,"splitNewlines"),__name(createTooltipItem,"createTooltipItem"),__name(getBaseModel,"getBaseModel"),__name(getTooltipSize,"getTooltipSize"),__name(determineAlignment,"determineAlignment"),__name(getBackgroundPoint,"getBackgroundPoint"),__name(getAlignedX,"getAlignedX"),__name(getBeforeAfterBodyLines,"getBeforeAfterBodyLines");var exports$4=core_element.extend({initialize:function(){this._model=getBaseModel(this._options),this._lastActive=[]},getTitle:function(){var me=this,callbacks=me._options.callbacks,beforeTitle=callbacks.beforeTitle.apply(me,arguments),title2=callbacks.title.apply(me,arguments),afterTitle=callbacks.afterTitle.apply(me,arguments),lines=[];return lines=pushOrConcat(lines,splitNewlines(beforeTitle)),lines=pushOrConcat(lines,splitNewlines(title2)),lines=pushOrConcat(lines,splitNewlines(afterTitle))},getBeforeBody:function(){return getBeforeAfterBodyLines(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(tooltipItems,data){var me=this,callbacks=me._options.callbacks,bodyItems=[];return helpers$1.each(tooltipItems,function(tooltipItem){var bodyItem={before:[],lines:[],after:[]};pushOrConcat(bodyItem.before,splitNewlines(callbacks.beforeLabel.call(me,tooltipItem,data))),pushOrConcat(bodyItem.lines,callbacks.label.call(me,tooltipItem,data)),pushOrConcat(bodyItem.after,splitNewlines(callbacks.afterLabel.call(me,tooltipItem,data))),bodyItems.push(bodyItem)}),bodyItems},getAfterBody:function(){return getBeforeAfterBodyLines(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var me=this,callbacks=me._options.callbacks,beforeFooter=callbacks.beforeFooter.apply(me,arguments),footer=callbacks.footer.apply(me,arguments),afterFooter=callbacks.afterFooter.apply(me,arguments),lines=[];return lines=pushOrConcat(lines,splitNewlines(beforeFooter)),lines=pushOrConcat(lines,splitNewlines(footer)),lines=pushOrConcat(lines,splitNewlines(afterFooter))},update:function(changed){var i2,len,me=this,opts=me._options,existingModel=me._model,model=me._model=getBaseModel(opts),active=me._active,data=me._data,alignment={xAlign:existingModel.xAlign,yAlign:existingModel.yAlign},backgroundPoint={x:existingModel.x,y:existingModel.y},tooltipSize={width:existingModel.width,height:existingModel.height},tooltipPosition={x:existingModel.caretX,y:existingModel.caretY};if(active.length){model.opacity=1;var labelColors=[],labelTextColors=[];tooltipPosition=positioners[opts.position].call(me,active,me._eventPosition);var tooltipItems=[];for(i2=0,len=active.length;i20&&ctx.stroke()},draw:function(){var ctx=this._chart.ctx,vm=this._view;if(0!==vm.opacity){var tooltipSize={width:vm.width,height:vm.height},pt={x:vm.x,y:vm.y},opacity=Math.abs(vm.opacity<.001)?0:vm.opacity,hasTooltipContent=vm.title.length||vm.beforeBody.length||vm.body.length||vm.afterBody.length||vm.footer.length;this._options.enabled&&hasTooltipContent&&(ctx.save(),ctx.globalAlpha=opacity,this.drawBackground(pt,vm,ctx,tooltipSize),pt.y+=vm.yPadding,helpers$1.rtl.overrideTextDirection(ctx,vm.textDirection),this.drawTitle(pt,vm,ctx),this.drawBody(pt,vm,ctx),this.drawFooter(pt,vm,ctx),helpers$1.rtl.restoreTextDirection(ctx,vm.textDirection),ctx.restore())}},handleEvent:function(e){var me=this,options2=me._options,changed=!1;return me._lastActive=me._lastActive||[],"mouseout"===e.type?me._active=[]:(me._active=me._chart.getElementsAtEventForMode(e,options2.mode,options2),options2.reverse&&me._active.reverse()),(changed=!helpers$1.arrayEquals(me._active,me._lastActive))&&(me._lastActive=me._active,(options2.enabled||options2.custom)&&(me._eventPosition={x:e.x,y:e.y},me.update(!0),me.pivot())),changed}}),positioners_1=positioners,core_tooltip=exports$4;core_tooltip.positioners=positioners_1;var valueOrDefault$9=helpers$1.valueOrDefault;function mergeScaleConfig(){return helpers$1.merge(Object.create(null),[].slice.call(arguments),{merger:function(key,target,source,options2){if("xAxes"===key||"yAxes"===key){var i2,type,scale2,slen=source[key].length;for(target[key]||(target[key]=[]),i2=0;i2=target[key].length&&target[key].push({}),!target[key][i2].type||scale2.type&&scale2.type!==target[key][i2].type?helpers$1.merge(target[key][i2],[core_scaleService.getScaleDefaults(type),scale2]):helpers$1.merge(target[key][i2],scale2)}else helpers$1._merger(key,target,source,options2)}})}function mergeConfig(){return helpers$1.merge(Object.create(null),[].slice.call(arguments),{merger:function(key,target,source,options2){var tval=target[key]||Object.create(null),sval=source[key];"scales"===key?target[key]=mergeScaleConfig(tval,sval):"scale"===key?target[key]=helpers$1.merge(tval,[core_scaleService.getScaleDefaults(sval.type),sval]):helpers$1._merger(key,target,source,options2)}})}function initConfig(config){var data=(config=config||Object.create(null)).data=config.data||{};return data.datasets=data.datasets||[],data.labels=data.labels||[],config.options=mergeConfig(core_defaults.global,core_defaults[config.type],config.options||{}),config}function updateConfig(chart){var newOptions=chart.options;helpers$1.each(chart.scales,function(scale2){core_layouts.removeBox(chart,scale2)}),newOptions=mergeConfig(core_defaults.global,core_defaults[chart.config.type],newOptions),chart.options=chart.config.options=newOptions,chart.ensureScalesHaveIDs(),chart.buildOrUpdateScales(),chart.tooltip._options=newOptions.tooltips,chart.tooltip.initialize()}function nextAvailableScaleId(axesOpts,prefix,index){var id,hasId=__name(function(obj){return obj.id===id},"hasId");do{id=prefix+index++}while(helpers$1.findIndex(axesOpts,hasId)>=0);return id}function positionIsHorizontal(position){return"top"===position||"bottom"===position}function compare2Level(l1,l2){return function(a,b2){return a[l1]===b2[l1]?a[l2]-b2[l2]:a[l1]-b2[l1]}}core_defaults._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0}),__name(mergeScaleConfig,"mergeScaleConfig"),__name(mergeConfig,"mergeConfig"),__name(initConfig,"initConfig"),__name(updateConfig,"updateConfig"),__name(nextAvailableScaleId,"nextAvailableScaleId"),__name(positionIsHorizontal,"positionIsHorizontal"),__name(compare2Level,"compare2Level");var Chart2=__name(function(item,config){return this.construct(item,config),this},"Chart");helpers$1.extend(Chart2.prototype,{construct:function(item,config){var me=this;config=initConfig(config);var context=platform.acquireContext(item,config),canvas2=context&&context.canvas,height=canvas2&&canvas2.height,width=canvas2&&canvas2.width;me.id=helpers$1.uid(),me.ctx=context,me.canvas=canvas2,me.config=config,me.width=width,me.height=height,me.aspectRatio=height?width/height:null,me.options=config.options,me._bufferedRender=!1,me._layers=[],me.chart=me,me.controller=me,Chart2.instances[me.id]=me,Object.defineProperty(me,"data",{get:function(){return me.config.data},set:function(value){me.config.data=value}}),context&&canvas2?(me.initialize(),me.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var me=this;return core_plugins.notify(me,"beforeInit"),helpers$1.retinaScale(me,me.options.devicePixelRatio),me.bindEvents(),me.options.responsive&&me.resize(!0),me.initToolTip(),core_plugins.notify(me,"afterInit"),me},clear:function(){return helpers$1.canvas.clear(this),this},stop:function(){return core_animations.cancelAnimation(this),this},resize:function(silent){var me=this,options2=me.options,canvas2=me.canvas,aspectRatio=options2.maintainAspectRatio&&me.aspectRatio||null,newWidth=Math.max(0,Math.floor(helpers$1.getMaximumWidth(canvas2))),newHeight=Math.max(0,Math.floor(aspectRatio?newWidth/aspectRatio:helpers$1.getMaximumHeight(canvas2)));if((me.width!==newWidth||me.height!==newHeight)&&(canvas2.width=me.width=newWidth,canvas2.height=me.height=newHeight,canvas2.style.width=newWidth+"px",canvas2.style.height=newHeight+"px",helpers$1.retinaScale(me,options2.devicePixelRatio),!silent)){var newSize={width:newWidth,height:newHeight};core_plugins.notify(me,"resize",[newSize]),options2.onResize&&options2.onResize(me,newSize),me.stop(),me.update({duration:options2.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var options2=this.options,scalesOptions=options2.scales||{},scaleOptions=options2.scale;helpers$1.each(scalesOptions.xAxes,function(xAxisOptions,index){xAxisOptions.id||(xAxisOptions.id=nextAvailableScaleId(scalesOptions.xAxes,"x-axis-",index))}),helpers$1.each(scalesOptions.yAxes,function(yAxisOptions,index){yAxisOptions.id||(yAxisOptions.id=nextAvailableScaleId(scalesOptions.yAxes,"y-axis-",index))}),scaleOptions&&(scaleOptions.id=scaleOptions.id||"scale")},buildOrUpdateScales:function(){var me=this,options2=me.options,scales2=me.scales||{},items=[],updated=Object.keys(scales2).reduce(function(obj,id){return obj[id]=!1,obj},{});options2.scales&&(items=items.concat((options2.scales.xAxes||[]).map(function(xAxisOptions){return{options:xAxisOptions,dtype:"category",dposition:"bottom"}}),(options2.scales.yAxes||[]).map(function(yAxisOptions){return{options:yAxisOptions,dtype:"linear",dposition:"left"}}))),options2.scale&&items.push({options:options2.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),helpers$1.each(items,function(item){var scaleOptions=item.options,id=scaleOptions.id,scaleType=valueOrDefault$9(scaleOptions.type,item.dtype);positionIsHorizontal(scaleOptions.position)!==positionIsHorizontal(item.dposition)&&(scaleOptions.position=item.dposition),updated[id]=!0;var scale2=null;if(id in scales2&&scales2[id].type===scaleType)(scale2=scales2[id]).options=scaleOptions,scale2.ctx=me.ctx,scale2.chart=me;else{var scaleClass=core_scaleService.getScaleConstructor(scaleType);if(!scaleClass)return;scale2=new scaleClass({id,type:scaleType,options:scaleOptions,ctx:me.ctx,chart:me}),scales2[scale2.id]=scale2}scale2.mergeTicksOptions(),item.isDefault&&(me.scale=scale2)}),helpers$1.each(updated,function(hasUpdated,id){hasUpdated||delete scales2[id]}),me.scales=scales2,core_scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var i2,ilen,me=this,newControllers=[],datasets=me.data.datasets;for(i2=0,ilen=datasets.length;i2=0;--i2)me.drawDataset(metasets[i2],easingValue);core_plugins.notify(me,"afterDatasetsDraw",[easingValue])}},drawDataset:function(meta,easingValue){var me=this,args2={meta,index:meta.index,easingValue};!1!==core_plugins.notify(me,"beforeDatasetDraw",[args2])&&(meta.controller.draw(easingValue),core_plugins.notify(me,"afterDatasetDraw",[args2]))},_drawTooltip:function(easingValue){var me=this,tooltip=me.tooltip,args2={tooltip,easingValue};!1!==core_plugins.notify(me,"beforeTooltipDraw",[args2])&&(tooltip.draw(),core_plugins.notify(me,"afterTooltipDraw",[args2]))},getElementAtEvent:function(e){return core_interaction.modes.single(this,e)},getElementsAtEvent:function(e){return core_interaction.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return core_interaction.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,mode,options2){var method=core_interaction.modes[mode];return"function"==typeof method?method(this,e,options2):[]},getDatasetAtEvent:function(e){return core_interaction.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(datasetIndex){var me=this,dataset=me.data.datasets[datasetIndex];dataset._meta||(dataset._meta={});var meta=dataset._meta[me.id];return meta||(meta=dataset._meta[me.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:dataset.order||0,index:datasetIndex}),meta},getVisibleDatasetCount:function(){for(var count=0,i2=0,ilen=this.data.datasets.length;i2=0;i2--){var currentItem=arrayToSearch[i2];if(filterCallback(currentItem))return currentItem}},helpers$1.isNumber=function(n){return!isNaN(parseFloat(n))&&isFinite(n)},helpers$1.almostEquals=function(x,y,epsilon){return Math.abs(x-y)=x},helpers$1.max=function(array){return array.reduce(function(max,value){return isNaN(value)?max:Math.max(max,value)},Number.NEGATIVE_INFINITY)},helpers$1.min=function(array){return array.reduce(function(min,value){return isNaN(value)?min:Math.min(min,value)},Number.POSITIVE_INFINITY)},helpers$1.sign=Math.sign?function(x){return Math.sign(x)}:function(x){return 0==(x=+x)||isNaN(x)?x:x>0?1:-1},helpers$1.toRadians=function(degrees){return degrees*(Math.PI/180)},helpers$1.toDegrees=function(radians){return radians*(180/Math.PI)},helpers$1._decimalPlaces=function(x){if(helpers$1.isFinite(x)){for(var e=1,p=0;Math.round(x*e)/e!==x;)e*=10,p++;return p}},helpers$1.getAngleFromPoint=function(centrePoint,anglePoint){var distanceFromXCenter=anglePoint.x-centrePoint.x,distanceFromYCenter=anglePoint.y-centrePoint.y,radialDistanceFromCenter=Math.sqrt(distanceFromXCenter*distanceFromXCenter+distanceFromYCenter*distanceFromYCenter),angle=Math.atan2(distanceFromYCenter,distanceFromXCenter);return angle<-.5*Math.PI&&(angle+=2*Math.PI),{angle,distance:radialDistanceFromCenter}},helpers$1.distanceBetweenPoints=function(pt1,pt2){return Math.sqrt(Math.pow(pt2.x-pt1.x,2)+Math.pow(pt2.y-pt1.y,2))},helpers$1.aliasPixel=function(pixelWidth){return pixelWidth%2==0?0:.5},helpers$1._alignPixel=function(chart,pixel,width){var devicePixelRatio=chart.currentDevicePixelRatio,halfWidth=width/2;return Math.round((pixel-halfWidth)*devicePixelRatio)/devicePixelRatio+halfWidth},helpers$1.splineCurve=function(firstPoint,middlePoint,afterPoint,t){var previous=firstPoint.skip?middlePoint:firstPoint,current=middlePoint,next=afterPoint.skip?middlePoint:afterPoint,d01=Math.sqrt(Math.pow(current.x-previous.x,2)+Math.pow(current.y-previous.y,2)),d12=Math.sqrt(Math.pow(next.x-current.x,2)+Math.pow(next.y-current.y,2)),s01=d01/(d01+d12),s12=d12/(d01+d12),fa=t*(s01=isNaN(s01)?0:s01),fb=t*(s12=isNaN(s12)?0:s12);return{previous:{x:current.x-fa*(next.x-previous.x),y:current.y-fa*(next.y-previous.y)},next:{x:current.x+fb*(next.x-previous.x),y:current.y+fb*(next.y-previous.y)}}},helpers$1.EPSILON=Number.EPSILON||1e-14,helpers$1.splineCurveMonotone=function(points){var i2,pointBefore,pointCurrent,pointAfter,alphaK,betaK,tauK,squaredMagnitude,deltaX,pointsWithTangents=(points||[]).map(function(point){return{model:point._model,deltaK:0,mK:0}}),pointsLen=pointsWithTangents.length;for(i2=0;i20?pointsWithTangents[i2-1]:null,(pointAfter=i20?pointsWithTangents[i2-1]:null,pointAfter=i2=collection.length-1?collection[0]:collection[index+1]:index>=collection.length-1?collection[collection.length-1]:collection[index+1]},helpers$1.previousItem=function(collection,index,loop){return loop?index<=0?collection[collection.length-1]:collection[index-1]:index<=0?collection[0]:collection[index-1]},helpers$1.niceNum=function(range,round){var exponent=Math.floor(helpers$1.log10(range)),fraction=range/Math.pow(10,exponent);return(round?fraction<1.5?1:fraction<3?2:fraction<7?5:10:fraction<=1?1:fraction<=2?2:fraction<=5?5:10)*Math.pow(10,exponent)},helpers$1.requestAnimFrame="undefined"==typeof window?function(callback){callback()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){return window.setTimeout(callback,1e3/60)},helpers$1.getRelativePosition=function(evt,chart){var mouseX,mouseY,e=evt.originalEvent||evt,canvas2=evt.target||evt.srcElement,boundingRect=canvas2.getBoundingClientRect(),touches=e.touches;touches&&touches.length>0?(mouseX=touches[0].clientX,mouseY=touches[0].clientY):(mouseX=e.clientX,mouseY=e.clientY);var paddingLeft=parseFloat(helpers$1.getStyle(canvas2,"padding-left")),paddingTop=parseFloat(helpers$1.getStyle(canvas2,"padding-top")),paddingRight=parseFloat(helpers$1.getStyle(canvas2,"padding-right")),paddingBottom=parseFloat(helpers$1.getStyle(canvas2,"padding-bottom")),width=boundingRect.right-boundingRect.left-paddingLeft-paddingRight,height=boundingRect.bottom-boundingRect.top-paddingTop-paddingBottom;return{x:mouseX=Math.round((mouseX-boundingRect.left-paddingLeft)/width*canvas2.width/chart.currentDevicePixelRatio),y:mouseY=Math.round((mouseY-boundingRect.top-paddingTop)/height*canvas2.height/chart.currentDevicePixelRatio)}},__name(parseMaxStyle,"parseMaxStyle"),__name(isConstrainedValue,"isConstrainedValue"),__name(getConstraintDimension,"getConstraintDimension"),helpers$1.getConstraintWidth=function(domNode){return getConstraintDimension(domNode,"max-width","clientWidth")},helpers$1.getConstraintHeight=function(domNode){return getConstraintDimension(domNode,"max-height","clientHeight")},helpers$1._calculatePadding=function(container,padding,parentDimension){return(padding=helpers$1.getStyle(container,padding)).indexOf("%")>-1?parentDimension*parseInt(padding,10)/100:parseInt(padding,10)},helpers$1._getParentNode=function(domNode){var parent=domNode.parentNode;return parent&&"[object ShadowRoot]"===parent.toString()&&(parent=parent.host),parent},helpers$1.getMaximumWidth=function(domNode){var container=helpers$1._getParentNode(domNode);if(!container)return domNode.clientWidth;var clientWidth=container.clientWidth,w=clientWidth-helpers$1._calculatePadding(container,"padding-left",clientWidth)-helpers$1._calculatePadding(container,"padding-right",clientWidth),cw=helpers$1.getConstraintWidth(domNode);return isNaN(cw)?w:Math.min(w,cw)},helpers$1.getMaximumHeight=function(domNode){var container=helpers$1._getParentNode(domNode);if(!container)return domNode.clientHeight;var clientHeight=container.clientHeight,h=clientHeight-helpers$1._calculatePadding(container,"padding-top",clientHeight)-helpers$1._calculatePadding(container,"padding-bottom",clientHeight),ch=helpers$1.getConstraintHeight(domNode);return isNaN(ch)?h:Math.min(h,ch)},helpers$1.getStyle=function(el,property){return el.currentStyle?el.currentStyle[property]:document.defaultView.getComputedStyle(el,null).getPropertyValue(property)},helpers$1.retinaScale=function(chart,forceRatio){var pixelRatio=chart.currentDevicePixelRatio=forceRatio||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==pixelRatio){var canvas2=chart.canvas,height=chart.height,width=chart.width;canvas2.height=height*pixelRatio,canvas2.width=width*pixelRatio,chart.ctx.scale(pixelRatio,pixelRatio),!canvas2.style.height&&!canvas2.style.width&&(canvas2.style.height=height+"px",canvas2.style.width=width+"px")}},helpers$1.fontString=function(pixelSize,fontStyle,fontFamily){return fontStyle+" "+pixelSize+"px "+fontFamily},helpers$1.longestText=function(ctx,font,arrayOfThings,cache){var data=(cache=cache||{}).data=cache.data||{},gc=cache.garbageCollect=cache.garbageCollect||[];cache.font!==font&&(data=cache.data={},gc=cache.garbageCollect=[],cache.font=font),ctx.font=font;var i2,j,jlen,thing,nestedThing,longest=0,ilen=arrayOfThings.length;for(i2=0;i2arrayOfThings.length){for(i2=0;i2longest&&(longest=textWidth),longest},helpers$1.numberOfLabelLines=function(arrayOfThings){var numberOfLines=1;return helpers$1.each(arrayOfThings,function(thing){helpers$1.isArray(thing)&&thing.length>numberOfLines&&(numberOfLines=thing.length)}),numberOfLines},helpers$1.color=chartjsColor?function(value){return value instanceof CanvasGradient&&(value=core_defaults.global.defaultColor),chartjsColor(value)}:function(value){return console.error("Color.js not found!"),value},helpers$1.getHoverColor=function(colorValue){return colorValue instanceof CanvasPattern||colorValue instanceof CanvasGradient?colorValue:helpers$1.color(colorValue).saturate(.5).darken(.1).rgbString()}},"core_helpers");function abstract(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function DateAdapter(options2){this.options=options2||{}}__name(abstract,"abstract"),__name(DateAdapter,"DateAdapter"),helpers$1.extend(DateAdapter.prototype,{formats:abstract,parse:abstract,format:abstract,add:abstract,diff:abstract,startOf:abstract,endOf:abstract,_create:function(value){return value}}),DateAdapter.override=function(members){helpers$1.extend(DateAdapter.prototype,members)};var core_adapters={_date:DateAdapter},core_ticks={formatters:{values:function(value){return helpers$1.isArray(value)?value:""+value},linear:function(tickValue,index,ticks){var delta=ticks.length>3?ticks[2]-ticks[1]:ticks[1]-ticks[0];Math.abs(delta)>1&&tickValue!==Math.floor(tickValue)&&(delta=tickValue-Math.floor(tickValue));var logDelta=helpers$1.log10(Math.abs(delta)),tickString="";if(0!==tickValue)if(Math.max(Math.abs(ticks[0]),Math.abs(ticks[ticks.length-1]))<1e-4){var logTick=helpers$1.log10(Math.abs(tickValue)),numExponential=Math.floor(logTick)-Math.floor(logDelta);numExponential=Math.max(Math.min(numExponential,20),0),tickString=tickValue.toExponential(numExponential)}else{var numDecimal=-1*Math.floor(logDelta);numDecimal=Math.max(Math.min(numDecimal,20),0),tickString=tickValue.toFixed(numDecimal)}else tickString="0";return tickString},logarithmic:function(tickValue,index,ticks){var remain=tickValue/Math.pow(10,Math.floor(helpers$1.log10(tickValue)));return 0===tickValue?"0":1===remain||2===remain||5===remain||0===index||index===ticks.length-1?tickValue.toExponential():""}}},isArray=helpers$1.isArray,isNullOrUndef=helpers$1.isNullOrUndef,valueOrDefault$a=helpers$1.valueOrDefault,valueAtIndexOrDefault=helpers$1.valueAtIndexOrDefault;function sample(arr,numItems){for(var result=[],increment=arr.length/numItems,i2=0,len=arr.length;i2end+epsilon)))return lineValue}function garbageCollect(caches,length){helpers$1.each(caches,function(cache){var i2,gc=cache.gc,gcLen=gc.length/2;if(gcLen>length){for(i2=0;i2spacing)return factor;return Math.max(spacing,1)}function getMajorIndices(ticks){var i2,ilen,result=[];for(i2=0,ilen=ticks.length;i2=maxRotation||numTicks<=1||!me.isHorizontal()?me.labelRotation=minRotation:(maxLabelWidth=(labelSizes=me._getLabelSizes()).widest.width,maxLabelHeight=labelSizes.highest.height-labelSizes.highest.offset,maxWidth=Math.min(me.maxWidth,me.chart.width-maxLabelWidth),maxLabelWidth+6>(tickWidth=options2.offset?me.maxWidth/numTicks:maxWidth/(numTicks-1))&&(tickWidth=maxWidth/(numTicks-(options2.offset?.5:1)),maxHeight=me.maxHeight-getTickMarkLength(options2.gridLines)-tickOpts.padding-getScaleLabelHeight(options2.scaleLabel),maxLabelDiagonal=Math.sqrt(maxLabelWidth*maxLabelWidth+maxLabelHeight*maxLabelHeight),labelRotation=helpers$1.toDegrees(Math.min(Math.asin(Math.min((labelSizes.highest.height+6)/tickWidth,1)),Math.asin(Math.min(maxHeight/maxLabelDiagonal,1))-Math.asin(maxLabelHeight/maxLabelDiagonal))),labelRotation=Math.max(minRotation,Math.min(maxRotation,labelRotation))),me.labelRotation=labelRotation)},afterCalculateTickRotation:function(){helpers$1.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){helpers$1.callback(this.options.beforeFit,[this])},fit:function(){var me=this,minSize=me.minSize={width:0,height:0},chart=me.chart,opts=me.options,tickOpts=opts.ticks,scaleLabelOpts=opts.scaleLabel,gridLineOpts=opts.gridLines,display=me._isVisible(),isBottom="bottom"===opts.position,isHorizontal=me.isHorizontal();if(isHorizontal?minSize.width=me.maxWidth:display&&(minSize.width=getTickMarkLength(gridLineOpts)+getScaleLabelHeight(scaleLabelOpts)),isHorizontal?display&&(minSize.height=getTickMarkLength(gridLineOpts)+getScaleLabelHeight(scaleLabelOpts)):minSize.height=me.maxHeight,tickOpts.display&&display){var tickFonts=parseTickFontOptions(tickOpts),labelSizes=me._getLabelSizes(),firstLabelSize=labelSizes.first,lastLabelSize=labelSizes.last,widestLabelSize=labelSizes.widest,highestLabelSize=labelSizes.highest,lineSpace=.4*tickFonts.minor.lineHeight,tickPadding=tickOpts.padding;if(isHorizontal){var isRotated=0!==me.labelRotation,angleRadians=helpers$1.toRadians(me.labelRotation),cosRotation=Math.cos(angleRadians),sinRotation=Math.sin(angleRadians),labelHeight=sinRotation*widestLabelSize.width+cosRotation*(highestLabelSize.height-(isRotated?highestLabelSize.offset:0))+(isRotated?0:lineSpace);minSize.height=Math.min(me.maxHeight,minSize.height+labelHeight+tickPadding);var paddingLeft,paddingRight,offsetLeft=me.getPixelForTick(0)-me.left,offsetRight=me.right-me.getPixelForTick(me.getTicks().length-1);isRotated?(paddingLeft=isBottom?cosRotation*firstLabelSize.width+sinRotation*firstLabelSize.offset:sinRotation*(firstLabelSize.height-firstLabelSize.offset),paddingRight=isBottom?sinRotation*(lastLabelSize.height-lastLabelSize.offset):cosRotation*lastLabelSize.width+sinRotation*lastLabelSize.offset):(paddingLeft=firstLabelSize.width/2,paddingRight=lastLabelSize.width/2),me.paddingLeft=Math.max((paddingLeft-offsetLeft)*me.width/(me.width-offsetLeft),0)+3,me.paddingRight=Math.max((paddingRight-offsetRight)*me.width/(me.width-offsetRight),0)+3}else{var labelWidth=tickOpts.mirror?0:widestLabelSize.width+tickPadding+lineSpace;minSize.width=Math.min(me.maxWidth,minSize.width+labelWidth),me.paddingTop=firstLabelSize.height/2,me.paddingBottom=lastLabelSize.height/2}}me.handleMargins(),isHorizontal?(me.width=me._length=chart.width-me.margins.left-me.margins.right,me.height=minSize.height):(me.width=minSize.width,me.height=me._length=chart.height-me.margins.top-me.margins.bottom)},handleMargins:function(){var me=this;me.margins&&(me.margins.left=Math.max(me.paddingLeft,me.margins.left),me.margins.top=Math.max(me.paddingTop,me.margins.top),me.margins.right=Math.max(me.paddingRight,me.margins.right),me.margins.bottom=Math.max(me.paddingBottom,me.margins.bottom))},afterFit:function(){helpers$1.callback(this.options.afterFit,[this])},isHorizontal:function(){var pos=this.options.position;return"top"===pos||"bottom"===pos},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(rawValue){if(isNullOrUndef(rawValue))return NaN;if(("number"==typeof rawValue||rawValue instanceof Number)&&!isFinite(rawValue))return NaN;if(rawValue)if(this.isHorizontal()){if(void 0!==rawValue.x)return this.getRightValue(rawValue.x)}else if(void 0!==rawValue.y)return this.getRightValue(rawValue.y);return rawValue},_convertTicksToLabels:function(ticks){var labels,i2,ilen,me=this;for(me.ticks=ticks.map(function(tick){return tick.value}),me.beforeTickToLabelConversion(),labels=me.convertTicksToLabels(ticks)||me.ticks,me.afterTickToLabelConversion(),i2=0,ilen=ticks.length;i2numTicks-1?null:me.getPixelForDecimal(index*tickWidth+(offset?tickWidth/2:0))},getPixelForDecimal:function(decimal){var me=this;return me._reversePixels&&(decimal=1-decimal),me._startPixel+decimal*me._length},getDecimalForPixel:function(pixel){var decimal=(pixel-this._startPixel)/this._length;return this._reversePixels?1-decimal:decimal},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var me=this,min=me.min,max=me.max;return me.beginAtZero?0:min<0&&max<0?max:min>0&&max>0?min:0},_autoSkip:function(ticks){var i2,ilen,spacing,avgMajorSpacing,me=this,tickOpts=me.options.ticks,axisLength=me._length,ticksLimit=tickOpts.maxTicksLimit||axisLength/me._tickSize()+1,majorIndices=tickOpts.major.enabled?getMajorIndices(ticks):[],numMajorIndices=majorIndices.length,first=majorIndices[0],last=majorIndices[numMajorIndices-1];if(numMajorIndices>ticksLimit)return skipMajors(ticks,majorIndices,numMajorIndices/ticksLimit),nonSkipped(ticks);if(spacing=calculateSpacing(majorIndices,ticks,axisLength,ticksLimit),numMajorIndices>0){for(i2=0,ilen=numMajorIndices-1;i21?(last-first)/(numMajorIndices-1):null,skip(ticks,spacing,helpers$1.isNullOrUndef(avgMajorSpacing)?0:first-avgMajorSpacing,first),skip(ticks,spacing,last,helpers$1.isNullOrUndef(avgMajorSpacing)?ticks.length:last+avgMajorSpacing),nonSkipped(ticks)}return skip(ticks,spacing),nonSkipped(ticks)},_tickSize:function(){var me=this,optionTicks=me.options.ticks,rot=helpers$1.toRadians(me.labelRotation),cos=Math.abs(Math.cos(rot)),sin=Math.abs(Math.sin(rot)),labelSizes=me._getLabelSizes(),padding=optionTicks.autoSkipPadding||0,w=labelSizes?labelSizes.widest.width+padding:0,h=labelSizes?labelSizes.highest.height+padding:0;return me.isHorizontal()?h*cos>w*sin?w/cos:h/sin:h*sin=0&&(minIndex=findIndex),void 0!==max&&(findIndex=labels.indexOf(max))>=0&&(maxIndex=findIndex),me.minIndex=minIndex,me.maxIndex=maxIndex,me.min=labels[minIndex],me.max=labels[maxIndex]},buildTicks:function(){var me=this,labels=me._getLabels(),minIndex=me.minIndex,maxIndex=me.maxIndex;me.ticks=0===minIndex&&maxIndex===labels.length-1?labels:labels.slice(minIndex,maxIndex+1)},getLabelForIndex:function(index,datasetIndex){var me=this,chart=me.chart;return chart.getDatasetMeta(datasetIndex).controller._getValueScaleId()===me.id?me.getRightValue(chart.data.datasets[datasetIndex].data[index]):me._getLabels()[index]},_configure:function(){var me=this,offset=me.options.offset,ticks=me.ticks;core_scale.prototype._configure.call(me),me.isHorizontal()||(me._reversePixels=!me._reversePixels),ticks&&(me._startValue=me.minIndex-(offset?.5:0),me._valueRange=Math.max(ticks.length-(offset?0:1),1))},getPixelForValue:function(value,index,datasetIndex){var valueCategory,labels,idx,me=this;return!isNullOrUndef$1(index)&&!isNullOrUndef$1(datasetIndex)&&(value=me.chart.data.datasets[datasetIndex].data[index]),isNullOrUndef$1(value)||(valueCategory=me.isHorizontal()?value.x:value.y),(void 0!==valueCategory||void 0!==value&&isNaN(index))&&(labels=me._getLabels(),value=helpers$1.valueOrDefault(valueCategory,value),index=-1!==(idx=labels.indexOf(value))?idx:index,isNaN(index)&&(index=value)),me.getPixelForDecimal((index-me._startValue)/me._valueRange)},getPixelForTick:function(index){var ticks=this.ticks;return index<0||index>ticks.length-1?null:this.getPixelForValue(ticks[index],index+this.minIndex)},getValueForPixel:function(pixel){var me=this,value=Math.round(me._startValue+me.getDecimalForPixel(pixel)*me._valueRange);return Math.min(Math.max(value,0),me.ticks.length-1)},getBasePixel:function(){return this.bottom}}),_defaults=defaultConfig;scale_category._defaults=_defaults;var noop=helpers$1.noop,isNullOrUndef$2=helpers$1.isNullOrUndef;function generateTicks(generationOptions,dataRange){var factor,niceMin,niceMax,numSpaces,ticks=[],MIN_SPACING=1e-14,stepSize=generationOptions.stepSize,unit=stepSize||1,maxNumSpaces=generationOptions.maxTicks-1,min=generationOptions.min,max=generationOptions.max,precision=generationOptions.precision,rmin=dataRange.min,rmax=dataRange.max,spacing=helpers$1.niceNum((rmax-rmin)/maxNumSpaces/unit)*unit;if(spacingmaxNumSpaces&&(spacing=helpers$1.niceNum(numSpaces*spacing/maxNumSpaces/unit)*unit),stepSize||isNullOrUndef$2(precision)?factor=Math.pow(10,helpers$1._decimalPlaces(spacing)):(factor=Math.pow(10,precision),spacing=Math.ceil(spacing*factor)/factor),niceMin=Math.floor(rmin/spacing)*spacing,niceMax=Math.ceil(rmax/spacing)*spacing,stepSize&&(!isNullOrUndef$2(min)&&helpers$1.almostWhole(min/spacing,spacing/1e3)&&(niceMin=min),!isNullOrUndef$2(max)&&helpers$1.almostWhole(max/spacing,spacing/1e3)&&(niceMax=max)),numSpaces=(niceMax-niceMin)/spacing,numSpaces=helpers$1.almostEquals(numSpaces,Math.round(numSpaces),spacing/1e3)?Math.round(numSpaces):Math.ceil(numSpaces),niceMin=Math.round(niceMin*factor)/factor,niceMax=Math.round(niceMax*factor)/factor,ticks.push(isNullOrUndef$2(min)?niceMin:min);for(var j=1;j0&&maxSign>0&&(me.min=0)}var setMin=void 0!==tickOpts.min||void 0!==tickOpts.suggestedMin,setMax=void 0!==tickOpts.max||void 0!==tickOpts.suggestedMax;void 0!==tickOpts.min?me.min=tickOpts.min:void 0!==tickOpts.suggestedMin&&(null===me.min?me.min=tickOpts.suggestedMin:me.min=Math.min(me.min,tickOpts.suggestedMin)),void 0!==tickOpts.max?me.max=tickOpts.max:void 0!==tickOpts.suggestedMax&&(null===me.max?me.max=tickOpts.suggestedMax:me.max=Math.max(me.max,tickOpts.suggestedMax)),setMin!==setMax&&me.min>=me.max&&(setMin?me.max=me.min+1:me.min=me.max-1),me.min===me.max&&(me.max++,tickOpts.beginAtZero||me.min--)},getTickLimit:function(){var maxTicks,me=this,tickOpts=me.options.ticks,stepSize=tickOpts.stepSize,maxTicksLimit=tickOpts.maxTicksLimit;return stepSize?maxTicks=Math.ceil(me.max/stepSize)-Math.floor(me.min/stepSize)+1:(maxTicks=me._computeTickLimit(),maxTicksLimit=maxTicksLimit||11),maxTicksLimit&&(maxTicks=Math.min(maxTicksLimit,maxTicks)),maxTicks},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:noop,buildTicks:function(){var me=this,tickOpts=me.options.ticks,maxTicks=me.getTickLimit(),numericGeneratorOptions={maxTicks:maxTicks=Math.max(2,maxTicks),min:tickOpts.min,max:tickOpts.max,precision:tickOpts.precision,stepSize:helpers$1.valueOrDefault(tickOpts.fixedStepSize,tickOpts.stepSize)},ticks=me.ticks=generateTicks(numericGeneratorOptions,me);me.handleDirectionalChanges(),me.max=helpers$1.max(ticks),me.min=helpers$1.min(ticks),tickOpts.reverse?(ticks.reverse(),me.start=me.max,me.end=me.min):(me.start=me.min,me.end=me.max)},convertTicksToLabels:function(){var me=this;me.ticksAsNumbers=me.ticks.slice(),me.zeroLineIndex=me.ticks.indexOf(0),core_scale.prototype.convertTicksToLabels.call(me)},_configure:function(){var offset,me=this,ticks=me.getTicks(),start=me.min,end=me.max;core_scale.prototype._configure.call(me),me.options.offset&&ticks.length&&(start-=offset=(end-start)/Math.max(ticks.length-1,1)/2,end+=offset),me._startValue=start,me._endValue=end,me._valueRange=end-start}}),defaultConfig$1={position:"left",ticks:{callback:core_ticks.formatters.linear}},DEFAULT_MIN=0,DEFAULT_MAX=1;function getOrCreateStack(stacks,stacked,meta){var key=[meta.type,void 0===stacked&&void 0===meta.stack?meta.index:"",meta.stack].join(".");return void 0===stacks[key]&&(stacks[key]={pos:[],neg:[]}),stacks[key]}function stackData(scale2,stacks,meta,data){var i2,value,opts=scale2.options,stack2=getOrCreateStack(stacks,opts.stacked,meta),pos=stack2.pos,neg=stack2.neg,ilen=data.length;for(i2=0;i2ticks.length-1?null:this.getPixelForValue(ticks[index])}}),_defaults$1=defaultConfig$1;scale_linear._defaults=_defaults$1;var valueOrDefault$b=helpers$1.valueOrDefault,log10=helpers$1.math.log10;function generateTicks$1(generationOptions,dataRange){var exp,significand,ticks=[],tickVal=valueOrDefault$b(generationOptions.min,Math.pow(10,Math.floor(log10(dataRange.min)))),endExp=Math.floor(log10(dataRange.max)),endSignificand=Math.ceil(dataRange.max/Math.pow(10,endExp));0===tickVal?(exp=Math.floor(log10(dataRange.minNotZero)),significand=Math.floor(dataRange.minNotZero/Math.pow(10,exp)),ticks.push(tickVal),tickVal=significand*Math.pow(10,exp)):(exp=Math.floor(log10(tickVal)),significand=Math.floor(tickVal/Math.pow(10,exp)));var precision=exp<0?Math.pow(10,Math.abs(exp)):1;do{ticks.push(tickVal),10==++significand&&(significand=1,precision=++exp>=0?1:precision),tickVal=Math.round(significand*Math.pow(10,exp)*precision)/precision}while(exp=0?value:defaultValue}__name(nonNegativeOrDefault,"nonNegativeOrDefault");var scale_logarithmic=core_scale.extend({determineDataLimits:function(){var datasetIndex,meta,value,data,i2,ilen,me=this,opts=me.options,chart=me.chart,datasets=chart.data.datasets,isHorizontal=me.isHorizontal();function IDMatches(meta2){return isHorizontal?meta2.xAxisID===me.id:meta2.yAxisID===me.id}__name(IDMatches,"IDMatches"),me.min=Number.POSITIVE_INFINITY,me.max=Number.NEGATIVE_INFINITY,me.minNotZero=Number.POSITIVE_INFINITY;var hasStacks=opts.stacked;if(void 0===hasStacks)for(datasetIndex=0;datasetIndex0){var minVal=helpers$1.min(valuesForType),maxVal=helpers$1.max(valuesForType);me.min=Math.min(me.min,minVal),me.max=Math.max(me.max,maxVal)}})}else for(datasetIndex=0;datasetIndex0?me.minNotZero=me.min:me.max<1?me.minNotZero=Math.pow(10,Math.floor(log10(me.max))):me.minNotZero=DEFAULT_MIN2)},buildTicks:function(){var me=this,tickOpts=me.options.ticks,reverse=!me.isHorizontal(),generationOptions={min:nonNegativeOrDefault(tickOpts.min),max:nonNegativeOrDefault(tickOpts.max)},ticks=me.ticks=generateTicks$1(generationOptions,me);me.max=helpers$1.max(ticks),me.min=helpers$1.min(ticks),tickOpts.reverse?(reverse=!reverse,me.start=me.max,me.end=me.min):(me.start=me.min,me.end=me.max),reverse&&ticks.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),core_scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(index,datasetIndex){return this._getScaleLabel(this.chart.data.datasets[datasetIndex].data[index])},getPixelForTick:function(index){var ticks=this.tickValues;return index<0||index>ticks.length-1?null:this.getPixelForValue(ticks[index])},_getFirstTickValue:function(value){var exp=Math.floor(log10(value));return Math.floor(value/Math.pow(10,exp))*Math.pow(10,exp)},_configure:function(){var me=this,start=me.min,offset=0;core_scale.prototype._configure.call(me),0===start&&(start=me._getFirstTickValue(me.minNotZero),offset=valueOrDefault$b(me.options.ticks.fontSize,core_defaults.global.defaultFontSize)/me._length),me._startValue=log10(start),me._valueOffset=offset,me._valueRange=(log10(me.max)-log10(start))/(1-offset)},getPixelForValue:function(value){var me=this,decimal=0;return(value=+me.getRightValue(value))>me.min&&value>0&&(decimal=(log10(value)-me._startValue)/me._valueRange+me._valueOffset),me.getPixelForDecimal(decimal)},getValueForPixel:function(pixel){var me=this,decimal=me.getDecimalForPixel(pixel);return 0===decimal&&0===me.min?0:Math.pow(10,me._startValue+(decimal-me._valueOffset)*me._valueRange)}}),_defaults$2=defaultConfig$2;scale_logarithmic._defaults=_defaults$2;var valueOrDefault$c=helpers$1.valueOrDefault,valueAtIndexOrDefault$1=helpers$1.valueAtIndexOrDefault,resolve$4=helpers$1.options.resolve,defaultConfig$3={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:core_ticks.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(label){return label}}};function getTickBackdropHeight(opts){var tickOpts=opts.ticks;return tickOpts.display&&opts.display?valueOrDefault$c(tickOpts.fontSize,core_defaults.global.defaultFontSize)+2*tickOpts.backdropPaddingY:0}function measureLabelSize(ctx,lineHeight,label){return helpers$1.isArray(label)?{w:helpers$1.longestText(ctx,ctx.font,label),h:label.length*lineHeight}:{w:ctx.measureText(label).width,h:lineHeight}}function determineLimits(angle,pos,size,min,max){return angle===min||angle===max?{start:pos-size/2,end:pos+size/2}:anglemax?{start:pos-size,end:pos}:{start:pos,end:pos+size}}function fitWithPointLabels(scale2){var i2,textSize,pointPosition,plFont=helpers$1.options._parseFont(scale2.options.pointLabels),furthestLimits={l:0,r:scale2.width,t:0,b:scale2.height-scale2.paddingTop},furthestAngles={};scale2.ctx.font=plFont.string,scale2._pointLabelSizes=[];var valueCount=scale2.chart.data.labels.length;for(i2=0;i2furthestLimits.r&&(furthestLimits.r=hLimits.end,furthestAngles.r=angleRadians),vLimits.startfurthestLimits.b&&(furthestLimits.b=vLimits.end,furthestAngles.b=angleRadians)}scale2.setReductions(scale2.drawingArea,furthestLimits,furthestAngles)}function getTextAlignForAngle(angle){return 0===angle||180===angle?"center":angle<180?"left":"right"}function fillText(ctx,text,position,lineHeight){var i2,ilen,y=position.y+lineHeight/2;if(helpers$1.isArray(text))for(i2=0,ilen=text.length;i2270||angle<90)&&(position.y-=textSize.h)}function drawPointLabels(scale2){var ctx=scale2.ctx,opts=scale2.options,pointLabelOpts=opts.pointLabels,tickBackdropHeight=getTickBackdropHeight(opts),outerDistance=scale2.getDistanceFromCenterForValue(opts.ticks.reverse?scale2.min:scale2.max),plFont=helpers$1.options._parseFont(pointLabelOpts);ctx.save(),ctx.font=plFont.string,ctx.textBaseline="middle";for(var i2=scale2.chart.data.labels.length-1;i2>=0;i2--){var extra=0===i2?tickBackdropHeight/2:0,pointLabelPosition=scale2.getPointPosition(i2,outerDistance+extra+5),pointLabelFontColor=valueAtIndexOrDefault$1(pointLabelOpts.fontColor,i2,core_defaults.global.defaultFontColor);ctx.fillStyle=pointLabelFontColor;var angleRadians=scale2.getIndexAngle(i2),angle=helpers$1.toDegrees(angleRadians);ctx.textAlign=getTextAlignForAngle(angle),adjustPointPositionForLabelHeight(angle,scale2._pointLabelSizes[i2],pointLabelPosition),fillText(ctx,scale2.pointLabels[i2],pointLabelPosition,plFont.lineHeight)}ctx.restore()}function drawRadiusLine(scale2,gridLineOpts,radius,index){var pointPosition,ctx=scale2.ctx,circular=gridLineOpts.circular,valueCount=scale2.chart.data.labels.length,lineColor=valueAtIndexOrDefault$1(gridLineOpts.color,index-1),lineWidth=valueAtIndexOrDefault$1(gridLineOpts.lineWidth,index-1);if((circular||valueCount)&&lineColor&&lineWidth){if(ctx.save(),ctx.strokeStyle=lineColor,ctx.lineWidth=lineWidth,ctx.setLineDash&&(ctx.setLineDash(gridLineOpts.borderDash||[]),ctx.lineDashOffset=gridLineOpts.borderDashOffset||0),ctx.beginPath(),circular)ctx.arc(scale2.xCenter,scale2.yCenter,radius,0,2*Math.PI);else{pointPosition=scale2.getPointPosition(0,radius),ctx.moveTo(pointPosition.x,pointPosition.y);for(var i2=1;i20&&max>0?min:0)},_drawGrid:function(){var i2,offset,position,me=this,ctx=me.ctx,opts=me.options,gridLineOpts=opts.gridLines,angleLineOpts=opts.angleLines,lineWidth=valueOrDefault$c(angleLineOpts.lineWidth,gridLineOpts.lineWidth),lineColor=valueOrDefault$c(angleLineOpts.color,gridLineOpts.color);if(opts.pointLabels.display&&drawPointLabels(me),gridLineOpts.display&&helpers$1.each(me.ticks,function(label,index){0!==index&&(offset=me.getDistanceFromCenterForValue(me.ticksAsNumbers[index]),drawRadiusLine(me,gridLineOpts,offset,index))}),angleLineOpts.display&&lineWidth&&lineColor){for(ctx.save(),ctx.lineWidth=lineWidth,ctx.strokeStyle=lineColor,ctx.setLineDash&&(ctx.setLineDash(resolve$4([angleLineOpts.borderDash,gridLineOpts.borderDash,[]])),ctx.lineDashOffset=resolve$4([angleLineOpts.borderDashOffset,gridLineOpts.borderDashOffset,0])),i2=me.chart.data.labels.length-1;i2>=0;i2--)offset=me.getDistanceFromCenterForValue(opts.ticks.reverse?me.min:me.max),position=me.getPointPosition(i2,offset),ctx.beginPath(),ctx.moveTo(me.xCenter,me.yCenter),ctx.lineTo(position.x,position.y),ctx.stroke();ctx.restore()}},_drawLabels:function(){var me=this,ctx=me.ctx,tickOpts=me.options.ticks;if(tickOpts.display){var offset,width,startAngle=me.getIndexAngle(0),tickFont=helpers$1.options._parseFont(tickOpts),tickFontColor=valueOrDefault$c(tickOpts.fontColor,core_defaults.global.defaultFontColor);ctx.save(),ctx.font=tickFont.string,ctx.translate(me.xCenter,me.yCenter),ctx.rotate(startAngle),ctx.textAlign="center",ctx.textBaseline="middle",helpers$1.each(me.ticks,function(label,index){0===index&&!tickOpts.reverse||(offset=me.getDistanceFromCenterForValue(me.ticksAsNumbers[index]),tickOpts.showLabelBackdrop&&(width=ctx.measureText(label).width,ctx.fillStyle=tickOpts.backdropColor,ctx.fillRect(-width/2-tickOpts.backdropPaddingX,-offset-tickFont.size/2-tickOpts.backdropPaddingY,width+2*tickOpts.backdropPaddingX,tickFont.size+2*tickOpts.backdropPaddingY)),ctx.fillStyle=tickFontColor,ctx.fillText(label,0,-offset))}),ctx.restore()}},_drawTitle:helpers$1.noop}),_defaults$3=defaultConfig$3;scale_radialLinear._defaults=_defaults$3;var deprecated$1=helpers$1._deprecated,resolve$5=helpers$1.options.resolve,valueOrDefault$d=helpers$1.valueOrDefault,MIN_INTEGER=Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991,INTERVALS={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},UNITS=Object.keys(INTERVALS);function sorter(a,b2){return a-b2}function arrayUnique(items){var i2,ilen,item,hash={},out=[];for(i2=0,ilen=items.length;i2min&&curr=0&&lo<=hi;){if(i0=table[(mid=lo+hi>>1)-1]||null,i1=table[mid],!i0)return{lo:null,hi:i1};if(i1[key]value))return{lo:i0,hi:i1};hi=mid-1}}return{lo:i1,hi:null}}function interpolate$1(table,skey,sval,tkey){var range=lookup(table,skey,sval),prev=range.lo?range.hi?range.lo:table[table.length-2]:table[0],next=range.lo?range.hi?range.hi:table[table.length-1]:table[1],span=next[skey]-prev[skey],ratio=span?(sval-prev[skey])/span:0,offset=(next[tkey]-prev[tkey])*ratio;return prev[tkey]+offset}function toTimestamp(scale2,input){var adapter=scale2._adapter,options2=scale2.options.time,parser=options2.parser,format=parser||options2.format,value=input;return"function"==typeof parser&&(value=parser(value)),helpers$1.isFinite(value)||(value="string"==typeof format?adapter.parse(value,format):adapter.parse(value)),null!==value?+value:(!parser&&"function"==typeof format&&(value=format(input),helpers$1.isFinite(value)||(value=adapter.parse(value))),value)}function parse(scale2,input){if(helpers$1.isNullOrUndef(input))return null;var options2=scale2.options.time,value=toTimestamp(scale2,scale2.getRightValue(input));return null===value||options2.round&&(value=+scale2._adapter.startOf(value,options2.round)),value}function determineUnitForAutoTicks(minUnit,min,max,capacity){var i2,interval,factor,ilen=UNITS.length;for(i2=UNITS.indexOf(minUnit);i2=UNITS.indexOf(minUnit);i2--)if(unit=UNITS[i2],INTERVALS[unit].common&&scale2._adapter.diff(max,min,unit)>=numTicks-1)return unit;return UNITS[minUnit?UNITS.indexOf(minUnit):0]}function determineMajorUnit(unit){for(var i2=UNITS.indexOf(unit)+1,ilen=UNITS.length;i21e5*stepSize)throw min+" and "+max+" are too far apart with stepSize of "+stepSize+" "+minor;for(time=first;time=0&&(ticks[index].major=!0);return ticks}function ticksFromTimestamps(scale2,values,majorUnit){var i2,value,ticks=[],map={},ilen=values.length;for(i2=0;i21?arrayUnique(timestamps).sort(sorter):timestamps.sort(sorter),min=Math.min(min,timestamps[0]),max=Math.max(max,timestamps[timestamps.length-1])),min=parse(me,getMin(options2))||min,max=parse(me,getMax(options2))||max,min=min===MAX_INTEGER?+adapter.startOf(Date.now(),unit):min,max=max===MIN_INTEGER?+adapter.endOf(Date.now(),unit)+1:max,me.min=Math.min(min,max),me.max=Math.max(min+1,max),me._table=[],me._timestamps={data:timestamps,datasets,labels}},buildTicks:function(){var i2,ilen,timestamp,me=this,min=me.min,max=me.max,options2=me.options,tickOpts=options2.ticks,timeOpts=options2.time,timestamps=me._timestamps,ticks=[],capacity=me.getLabelCapacity(min),source=tickOpts.source,distribution=options2.distribution;for(timestamps="data"===source||"auto"===source&&"series"===distribution?timestamps.data:"labels"===source?timestamps.labels:generate(me,min,max,capacity),"ticks"===options2.bounds&×tamps.length&&(min=timestamps[0],max=timestamps[timestamps.length-1]),min=parse(me,getMin(options2))||min,max=parse(me,getMax(options2))||max,i2=0,ilen=timestamps.length;i2=min&×tamp<=max&&ticks.push(timestamp);return me.min=min,me.max=max,me._unit=timeOpts.unit||(tickOpts.autoSkip?determineUnitForAutoTicks(timeOpts.minUnit,me.min,me.max,capacity):determineUnitForFormatting(me,ticks.length,timeOpts.minUnit,me.min,me.max)),me._majorUnit=tickOpts.major.enabled&&"year"!==me._unit?determineMajorUnit(me._unit):void 0,me._table=buildLookupTable(me._timestamps.data,min,max,distribution),me._offsets=computeOffsets(me._table,ticks,min,max,options2),tickOpts.reverse&&ticks.reverse(),ticksFromTimestamps(me,ticks,me._majorUnit)},getLabelForIndex:function(index,datasetIndex){var me=this,adapter=me._adapter,data=me.chart.data,timeOpts=me.options.time,label=data.labels&&index=0&&index0?capacity:1}}),_defaults$4=defaultConfig$4;scale_time._defaults=_defaults$4;var scales={category:scale_category,linear:scale_linear,logarithmic:scale_logarithmic,radialLinear:scale_radialLinear,time:scale_time},FORMATS={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};core_adapters._date.override("function"==typeof moment?{_id:"moment",formats:function(){return FORMATS},parse:function(value,format){return"string"==typeof value&&"string"==typeof format?value=moment(value,format):value instanceof moment||(value=moment(value)),value.isValid()?value.valueOf():null},format:function(time,format){return moment(time).format(format)},add:function(time,amount,unit){return moment(time).add(amount,unit).valueOf()},diff:function(max,min,unit){return moment(max).diff(moment(min),unit)},startOf:function(time,unit,weekday){return time=moment(time),"isoWeek"===unit?time.isoWeekday(weekday).valueOf():time.startOf(unit).valueOf()},endOf:function(time,unit){return moment(time).endOf(unit).valueOf()},_create:function(time){return moment(time)}}:{}),core_defaults._set("global",{plugins:{filler:{propagate:!0}}});var mappers={dataset:function(source){var index=source.fill,chart=source.chart,meta=chart.getDatasetMeta(index),points=meta&&chart.isDatasetVisible(index)&&meta.dataset._children||[],length=points.length||0;return length?function(point,i2){return i2=count)&⌖switch(fill){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return fill;default:return!1}}function computeLinearBoundary(source){var horizontal,model=source.el._model||{},scale2=source.el._scale||{},fill=source.fill,target=null;if(isFinite(fill))return null;if("start"===fill?target=void 0===model.scaleBottom?scale2.bottom:model.scaleBottom:"end"===fill?target=void 0===model.scaleTop?scale2.top:model.scaleTop:void 0!==model.scaleZero?target=model.scaleZero:scale2.getBasePixel&&(target=scale2.getBasePixel()),null!=target){if(void 0!==target.x&&void 0!==target.y)return target;if(helpers$1.isFinite(target))return{x:(horizontal=scale2.isHorizontal())?target:null,y:horizontal?null:target}}return null}function computeCircularBoundary(source){var start,end,center,i2,point,scale2=source.el._scale,options2=scale2.options,length=scale2.chart.data.labels.length,fill=source.fill,target=[];if(!length)return null;for(start=options2.ticks.reverse?scale2.max:scale2.min,end=options2.ticks.reverse?scale2.min:scale2.max,center=scale2.getPointPositionForValue(0,start),i2=0;i20;--i2)ctx.arc(cx,cy,r,curve1[i2].angle,curve1[i2-1].angle,!0);return}for(ctx.lineTo(curve1[len1-1].x,curve1[len1-1].y),i2=len1-1;i2>0;--i2)helpers$1.canvas.lineTo(ctx,curve1[i2],curve1[i2-1],!0)}}function doFill(ctx,points,mapper,view,color,loop){var i2,ilen,index,p0,p1,d0,d1,loopOffset,count=points.length,span=view.spanGaps,curve0=[],curve1=[],len0=0,len1=0;for(ctx.beginPath(),i2=0,ilen=count;i2=0;--i2)(meta=metasets[i2].$filler)&&meta.visible&&(view=(el=meta.el)._view,points=el._children||[],mapper=meta.mapper,color=view.backgroundColor||core_defaults.global.defaultColor,mapper&&color&&points.length&&(helpers$1.canvas.clipArea(ctx,chart.chartArea),doFill(ctx,points,mapper,view,color,el._loop),helpers$1.canvas.unclipArea(ctx)))}},getRtlHelper$1=helpers$1.rtl.getRtlAdapter,noop$1=helpers$1.noop,valueOrDefault$e=helpers$1.valueOrDefault;function getBoxWidth(labelOpts,fontSize){return labelOpts.usePointStyle&&labelOpts.boxWidth>fontSize?fontSize:labelOpts.boxWidth}core_defaults._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,legendItem){var index=legendItem.datasetIndex,ci=this.chart,meta=ci.getDatasetMeta(index);meta.hidden=null===meta.hidden?!ci.data.datasets[index].hidden:null,ci.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(chart){var datasets=chart.data.datasets,options2=chart.options.legend||{},usePointStyle=options2.labels&&options2.labels.usePointStyle;return chart._getSortedDatasetMetas().map(function(meta){var style=meta.controller.getStyle(usePointStyle?0:void 0);return{text:datasets[meta.index].label,fillStyle:style.backgroundColor,hidden:!chart.isDatasetVisible(meta.index),lineCap:style.borderCapStyle,lineDash:style.borderDash,lineDashOffset:style.borderDashOffset,lineJoin:style.borderJoinStyle,lineWidth:style.borderWidth,strokeStyle:style.borderColor,pointStyle:style.pointStyle,rotation:style.rotation,datasetIndex:meta.index}},this)}}},legendCallback:function(chart){var i2,ilen,listItem,list=document.createElement("ul"),datasets=chart.data.datasets;for(list.setAttribute("class",chart.id+"-legend"),i2=0,ilen=datasets.length;i2minSize.width)&&(totalHeight+=fontSize+labelOpts.padding,lineWidths[lineWidths.length-(i2>0?0:1)]=0),hitboxes[i2]={left:0,top:0,width,height:fontSize},lineWidths[lineWidths.length-1]+=width+labelOpts.padding}),minSize.height+=totalHeight}else{var vPadding=labelOpts.padding,columnWidths=me.columnWidths=[],columnHeights=me.columnHeights=[],totalWidth=labelOpts.padding,currentColWidth=0,currentColHeight=0;helpers$1.each(me.legendItems,function(legendItem,i2){var itemWidth=getBoxWidth(labelOpts,fontSize)+fontSize/2+ctx.measureText(legendItem.text).width;i2>0&¤tColHeight+fontSize+2*vPadding>minSize.height&&(totalWidth+=currentColWidth+labelOpts.padding,columnWidths.push(currentColWidth),columnHeights.push(currentColHeight),currentColWidth=0,currentColHeight=0),currentColWidth=Math.max(currentColWidth,itemWidth),currentColHeight+=fontSize+vPadding,hitboxes[i2]={left:0,top:0,width:itemWidth,height:fontSize}}),totalWidth+=currentColWidth,columnWidths.push(currentColWidth),columnHeights.push(currentColHeight),minSize.width+=totalWidth}me.width=minSize.width,me.height=minSize.height}else me.width=minSize.width=me.height=minSize.height=0},afterFit:noop$1,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var me=this,opts=me.options,labelOpts=opts.labels,globalDefaults=core_defaults.global,defaultColor2=globalDefaults.defaultColor,lineDefault=globalDefaults.elements.line,legendHeight=me.height,columnHeights=me.columnHeights,legendWidth=me.width,lineWidths=me.lineWidths;if(opts.display){var cursor,rtlHelper=getRtlHelper$1(opts.rtl,me.left,me.minSize.width),ctx=me.ctx,fontColor=valueOrDefault$e(labelOpts.fontColor,globalDefaults.defaultFontColor),labelFont=helpers$1.options._parseFont(labelOpts),fontSize=labelFont.size;ctx.textAlign=rtlHelper.textAlign("left"),ctx.textBaseline="middle",ctx.lineWidth=.5,ctx.strokeStyle=fontColor,ctx.fillStyle=fontColor,ctx.font=labelFont.string;var boxWidth=getBoxWidth(labelOpts,fontSize),hitboxes=me.legendHitBoxes,drawLegendBox=__name(function(x,y,legendItem){if(!(isNaN(boxWidth)||boxWidth<=0)){ctx.save();var lineWidth=valueOrDefault$e(legendItem.lineWidth,lineDefault.borderWidth);if(ctx.fillStyle=valueOrDefault$e(legendItem.fillStyle,defaultColor2),ctx.lineCap=valueOrDefault$e(legendItem.lineCap,lineDefault.borderCapStyle),ctx.lineDashOffset=valueOrDefault$e(legendItem.lineDashOffset,lineDefault.borderDashOffset),ctx.lineJoin=valueOrDefault$e(legendItem.lineJoin,lineDefault.borderJoinStyle),ctx.lineWidth=lineWidth,ctx.strokeStyle=valueOrDefault$e(legendItem.strokeStyle,defaultColor2),ctx.setLineDash&&ctx.setLineDash(valueOrDefault$e(legendItem.lineDash,lineDefault.borderDash)),labelOpts&&labelOpts.usePointStyle){var radius=boxWidth*Math.SQRT2/2,centerX=rtlHelper.xPlus(x,boxWidth/2),centerY=y+fontSize/2;helpers$1.canvas.drawPoint(ctx,legendItem.pointStyle,radius,centerX,centerY,legendItem.rotation)}else ctx.fillRect(rtlHelper.leftForLtr(x,boxWidth),y,boxWidth,fontSize),0!==lineWidth&&ctx.strokeRect(rtlHelper.leftForLtr(x,boxWidth),y,boxWidth,fontSize);ctx.restore()}},"drawLegendBox"),fillText2=__name(function(x,y,legendItem,textWidth){var halfFontSize=fontSize/2,xLeft=rtlHelper.xPlus(x,boxWidth+halfFontSize),yMiddle=y+halfFontSize;ctx.fillText(legendItem.text,xLeft,yMiddle),legendItem.hidden&&(ctx.beginPath(),ctx.lineWidth=2,ctx.moveTo(xLeft,yMiddle),ctx.lineTo(rtlHelper.xPlus(xLeft,textWidth),yMiddle),ctx.stroke())},"fillText"),alignmentOffset=__name(function(dimension,blockSize){switch(opts.align){case"start":return labelOpts.padding;case"end":return dimension-blockSize;default:return(dimension-blockSize+labelOpts.padding)/2}},"alignmentOffset"),isHorizontal=me.isHorizontal();cursor=isHorizontal?{x:me.left+alignmentOffset(legendWidth,lineWidths[0]),y:me.top+labelOpts.padding,line:0}:{x:me.left+labelOpts.padding,y:me.top+alignmentOffset(legendHeight,columnHeights[0]),line:0},helpers$1.rtl.overrideTextDirection(me.ctx,opts.textDirection);var itemHeight=fontSize+labelOpts.padding;helpers$1.each(me.legendItems,function(legendItem,i2){var textWidth=ctx.measureText(legendItem.text).width,width=boxWidth+fontSize/2+textWidth,x=cursor.x,y=cursor.y;rtlHelper.setWidth(me.minSize.width),isHorizontal?i2>0&&x+width+labelOpts.padding>me.left+me.minSize.width&&(y=cursor.y+=itemHeight,cursor.line++,x=cursor.x=me.left+alignmentOffset(legendWidth,lineWidths[cursor.line])):i2>0&&y+itemHeight>me.top+me.minSize.height&&(x=cursor.x=x+me.columnWidths[cursor.line]+labelOpts.padding,cursor.line++,y=cursor.y=me.top+alignmentOffset(legendHeight,columnHeights[cursor.line]));var realX=rtlHelper.x(x);drawLegendBox(realX,y,legendItem),hitboxes[i2].left=rtlHelper.leftForLtr(realX,hitboxes[i2].width),hitboxes[i2].top=y,fillText2(realX,y,legendItem,textWidth),isHorizontal?cursor.x+=width+labelOpts.padding:cursor.y+=itemHeight}),helpers$1.rtl.restoreTextDirection(me.ctx,opts.textDirection)}},_getLegendItemAt:function(x,y){var i2,hitBox,lh,me=this;if(x>=me.left&&x<=me.right&&y>=me.top&&y<=me.bottom)for(lh=me.legendHitBoxes,i2=0;i2=(hitBox=lh[i2]).left&&x<=hitBox.left+hitBox.width&&y>=hitBox.top&&y<=hitBox.top+hitBox.height)return me.legendItems[i2];return null},handleEvent:function(e){var hoveredItem,me=this,opts=me.options,type="mouseup"===e.type?"click":e.type;if("mousemove"===type){if(!opts.onHover&&!opts.onLeave)return}else{if("click"!==type)return;if(!opts.onClick)return}hoveredItem=me._getLegendItemAt(e.x,e.y),"click"===type?hoveredItem&&opts.onClick&&opts.onClick.call(me,e.native,hoveredItem):(opts.onLeave&&hoveredItem!==me._hoveredItem&&(me._hoveredItem&&opts.onLeave.call(me,e.native,me._hoveredItem),me._hoveredItem=hoveredItem),opts.onHover&&hoveredItem&&opts.onHover.call(me,e.native,hoveredItem))}});function createNewLegendAndAttach(chart,legendOpts){var legend2=new Legend({ctx:chart.ctx,options:legendOpts,chart});core_layouts.configure(chart,legend2,legendOpts),core_layouts.addBox(chart,legend2),chart.legend=legend2}__name(createNewLegendAndAttach,"createNewLegendAndAttach");var plugin_legend={id:"legend",_element:Legend,beforeInit:function(chart){var legendOpts=chart.options.legend;legendOpts&&createNewLegendAndAttach(chart,legendOpts)},beforeUpdate:function(chart){var legendOpts=chart.options.legend,legend2=chart.legend;legendOpts?(helpers$1.mergeIf(legendOpts,core_defaults.global.legend),legend2?(core_layouts.configure(chart,legend2,legendOpts),legend2.options=legendOpts):createNewLegendAndAttach(chart,legendOpts)):legend2&&(core_layouts.removeBox(chart,legend2),delete chart.legend)},afterEvent:function(chart,e){var legend2=chart.legend;legend2&&legend2.handleEvent(e)}},noop$2=helpers$1.noop;core_defaults._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Title=core_element.extend({initialize:function(config){var me=this;helpers$1.extend(me,config),me.legendHitBoxes=[]},beforeUpdate:noop$2,update:function(maxWidth,maxHeight,margins){var me=this;return me.beforeUpdate(),me.maxWidth=maxWidth,me.maxHeight=maxHeight,me.margins=margins,me.beforeSetDimensions(),me.setDimensions(),me.afterSetDimensions(),me.beforeBuildLabels(),me.buildLabels(),me.afterBuildLabels(),me.beforeFit(),me.fit(),me.afterFit(),me.afterUpdate(),me.minSize},afterUpdate:noop$2,beforeSetDimensions:noop$2,setDimensions:function(){var me=this;me.isHorizontal()?(me.width=me.maxWidth,me.left=0,me.right=me.width):(me.height=me.maxHeight,me.top=0,me.bottom=me.height),me.paddingLeft=0,me.paddingTop=0,me.paddingRight=0,me.paddingBottom=0,me.minSize={width:0,height:0}},afterSetDimensions:noop$2,beforeBuildLabels:noop$2,buildLabels:noop$2,afterBuildLabels:noop$2,beforeFit:noop$2,fit:function(){var textSize,me=this,opts=me.options,minSize=me.minSize={},isHorizontal=me.isHorizontal();opts.display?(textSize=(helpers$1.isArray(opts.text)?opts.text.length:1)*helpers$1.options._parseFont(opts).lineHeight+2*opts.padding,me.width=minSize.width=isHorizontal?me.maxWidth:textSize,me.height=minSize.height=isHorizontal?textSize:me.maxHeight):me.width=minSize.width=me.height=minSize.height=0},afterFit:noop$2,isHorizontal:function(){var pos=this.options.position;return"top"===pos||"bottom"===pos},draw:function(){var me=this,ctx=me.ctx,opts=me.options;if(opts.display){var maxWidth,titleX,titleY,fontOpts=helpers$1.options._parseFont(opts),lineHeight=fontOpts.lineHeight,offset=lineHeight/2+opts.padding,rotation=0,top=me.top,left=me.left,bottom=me.bottom,right=me.right;ctx.fillStyle=helpers$1.valueOrDefault(opts.fontColor,core_defaults.global.defaultFontColor),ctx.font=fontOpts.string,me.isHorizontal()?(titleX=left+(right-left)/2,titleY=top+offset,maxWidth=right-left):(titleX="left"===opts.position?left+offset:right-offset,titleY=top+(bottom-top)/2,maxWidth=bottom-top,rotation=Math.PI*("left"===opts.position?-.5:.5)),ctx.save(),ctx.translate(titleX,titleY),ctx.rotate(rotation),ctx.textAlign="center",ctx.textBaseline="middle";var text=opts.text;if(helpers$1.isArray(text))for(var y=0,i2=0;i2{"use strict";var TransformationType,TransformationType2;__webpack_require__2.r(__webpack_exports__2),__webpack_require__2.d(__webpack_exports__2,{ClassTransformer:()=>ClassTransformer,Exclude:()=>Exclude,Expose:()=>Expose,Transform:()=>Transform,TransformInstanceToInstance:()=>TransformInstanceToInstance,TransformInstanceToPlain:()=>TransformInstanceToPlain,TransformPlainToInstance:()=>TransformPlainToInstance,TransformationType:()=>TransformationType,Type:()=>Type,classToClassFromExist:()=>classToClassFromExist,classToPlain:()=>classToPlain,classToPlainFromExist:()=>classToPlainFromExist,deserialize:()=>deserialize,deserializeArray:()=>deserializeArray,instanceToInstance:()=>instanceToInstance,instanceToPlain:()=>instanceToPlain,plainToClass:()=>plainToClass,plainToClassFromExist:()=>plainToClassFromExist,plainToInstance:()=>plainToInstance,serialize:()=>serialize}),(TransformationType2=TransformationType||(TransformationType={}))[TransformationType2.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",TransformationType2[TransformationType2.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",TransformationType2[TransformationType2.CLASS_TO_CLASS=2]="CLASS_TO_CLASS";class MetadataStorage{constructor(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}addTypeMetadata(metadata2){this._typeMetadatas.has(metadata2.target)||this._typeMetadatas.set(metadata2.target,new Map),this._typeMetadatas.get(metadata2.target).set(metadata2.propertyName,metadata2)}addTransformMetadata(metadata2){this._transformMetadatas.has(metadata2.target)||this._transformMetadatas.set(metadata2.target,new Map),this._transformMetadatas.get(metadata2.target).has(metadata2.propertyName)||this._transformMetadatas.get(metadata2.target).set(metadata2.propertyName,[]),this._transformMetadatas.get(metadata2.target).get(metadata2.propertyName).push(metadata2)}addExposeMetadata(metadata2){this._exposeMetadatas.has(metadata2.target)||this._exposeMetadatas.set(metadata2.target,new Map),this._exposeMetadatas.get(metadata2.target).set(metadata2.propertyName,metadata2)}addExcludeMetadata(metadata2){this._excludeMetadatas.has(metadata2.target)||this._excludeMetadatas.set(metadata2.target,new Map),this._excludeMetadatas.get(metadata2.target).set(metadata2.propertyName,metadata2)}findTransformMetadatas(target,propertyName,transformationType){return this.findMetadatas(this._transformMetadatas,target,propertyName).filter(metadata2=>!metadata2.options||!0===metadata2.options.toClassOnly&&!0===metadata2.options.toPlainOnly||(!0===metadata2.options.toClassOnly?transformationType===TransformationType.CLASS_TO_CLASS||transformationType===TransformationType.PLAIN_TO_CLASS:!0!==metadata2.options.toPlainOnly||transformationType===TransformationType.CLASS_TO_PLAIN))}findExcludeMetadata(target,propertyName){return this.findMetadata(this._excludeMetadatas,target,propertyName)}findExposeMetadata(target,propertyName){return this.findMetadata(this._exposeMetadatas,target,propertyName)}findExposeMetadataByCustomName(target,name){return this.getExposedMetadatas(target).find(metadata2=>metadata2.options&&metadata2.options.name===name)}findTypeMetadata(target,propertyName){return this.findMetadata(this._typeMetadatas,target,propertyName)}getStrategy(target){const excludeMap=this._excludeMetadatas.get(target),exclude=excludeMap&&excludeMap.get(void 0),exposeMap=this._exposeMetadatas.get(target),expose=exposeMap&&exposeMap.get(void 0);return exclude&&expose||!exclude&&!expose?"none":exclude?"excludeAll":"exposeAll"}getExposedMetadatas(target){return this.getMetadata(this._exposeMetadatas,target)}getExcludedMetadatas(target){return this.getMetadata(this._excludeMetadatas,target)}getExposedProperties(target,transformationType){return this.getExposedMetadatas(target).filter(metadata2=>!metadata2.options||!0===metadata2.options.toClassOnly&&!0===metadata2.options.toPlainOnly||(!0===metadata2.options.toClassOnly?transformationType===TransformationType.CLASS_TO_CLASS||transformationType===TransformationType.PLAIN_TO_CLASS:!0!==metadata2.options.toPlainOnly||transformationType===TransformationType.CLASS_TO_PLAIN)).map(metadata2=>metadata2.propertyName)}getExcludedProperties(target,transformationType){return this.getExcludedMetadatas(target).filter(metadata2=>!metadata2.options||!0===metadata2.options.toClassOnly&&!0===metadata2.options.toPlainOnly||(!0===metadata2.options.toClassOnly?transformationType===TransformationType.CLASS_TO_CLASS||transformationType===TransformationType.PLAIN_TO_CLASS:!0!==metadata2.options.toPlainOnly||transformationType===TransformationType.CLASS_TO_PLAIN)).map(metadata2=>metadata2.propertyName)}clear(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()}getMetadata(metadatas,target){const metadataFromTargetMap=metadatas.get(target);let metadataFromTarget;metadataFromTargetMap&&(metadataFromTarget=Array.from(metadataFromTargetMap.values()).filter(meta=>void 0!==meta.propertyName));const metadataFromAncestors=[];for(const ancestor of this.getAncestors(target)){const ancestorMetadataMap=metadatas.get(ancestor);if(ancestorMetadataMap){const metadataFromAncestor=Array.from(ancestorMetadataMap.values()).filter(meta=>void 0!==meta.propertyName);metadataFromAncestors.push(...metadataFromAncestor)}}return metadataFromAncestors.concat(metadataFromTarget||[])}findMetadata(metadatas,target,propertyName){const metadataFromTargetMap=metadatas.get(target);if(metadataFromTargetMap){const metadataFromTarget=metadataFromTargetMap.get(propertyName);if(metadataFromTarget)return metadataFromTarget}for(const ancestor of this.getAncestors(target)){const ancestorMetadataMap=metadatas.get(ancestor);if(ancestorMetadataMap){const ancestorResult=ancestorMetadataMap.get(propertyName);if(ancestorResult)return ancestorResult}}}findMetadatas(metadatas,target,propertyName){const metadataFromTargetMap=metadatas.get(target);let metadataFromTarget;metadataFromTargetMap&&(metadataFromTarget=metadataFromTargetMap.get(propertyName));const metadataFromAncestorsTarget=[];for(const ancestor of this.getAncestors(target)){const ancestorMetadataMap=metadatas.get(ancestor);ancestorMetadataMap&&ancestorMetadataMap.has(propertyName)&&metadataFromAncestorsTarget.push(...ancestorMetadataMap.get(propertyName))}return metadataFromAncestorsTarget.slice().reverse().concat((metadataFromTarget||[]).slice().reverse())}getAncestors(target){if(!target)return[];if(!this._ancestorsMap.has(target)){const ancestors=[];for(let baseClass=Object.getPrototypeOf(target.prototype.constructor);void 0!==baseClass.prototype;baseClass=Object.getPrototypeOf(baseClass.prototype.constructor))ancestors.push(baseClass);this._ancestorsMap.set(target,ancestors)}return this._ancestorsMap.get(target)}}__name(MetadataStorage,"MetadataStorage");const defaultMetadataStorage=new MetadataStorage;function getGlobal(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0}function isPromise(p){return null!==p&&"object"==typeof p&&"function"==typeof p.then}function instantiateArrayType(arrayType){const array=new arrayType;return array instanceof Set||"push"in array?array:[]}__name(getGlobal,"getGlobal"),__name(isPromise,"isPromise"),__name(instantiateArrayType,"instantiateArrayType");class TransformOperationExecutor{constructor(transformationType,options){this.transformationType=transformationType,this.options=options,this.recursionStack=new Set}transform(source,value,targetType,arrayType,isMap,level=0){if(Array.isArray(value)||value instanceof Set){const newValue=arrayType&&this.transformationType===TransformationType.PLAIN_TO_CLASS?instantiateArrayType(arrayType):[];return value.forEach((subValue,index)=>{const subSource=source?source[index]:void 0;if(this.options.enableCircularCheck&&this.isCircular(subValue))this.transformationType===TransformationType.CLASS_TO_CLASS&&(newValue instanceof Set?newValue.add(subValue):newValue.push(subValue));else{let realTargetType;if("function"!=typeof targetType&&targetType&&targetType.options&&targetType.options.discriminator&&targetType.options.discriminator.property&&targetType.options.discriminator.subTypes){if(this.transformationType===TransformationType.PLAIN_TO_CLASS){realTargetType=targetType.options.discriminator.subTypes.find(subType=>subType.name===subValue[targetType.options.discriminator.property]);const options={newObject:newValue,object:subValue,property:void 0},newType=targetType.typeFunction(options);realTargetType=void 0===realTargetType?newType:realTargetType.value,targetType.options.keepDiscriminatorProperty||delete subValue[targetType.options.discriminator.property]}this.transformationType===TransformationType.CLASS_TO_CLASS&&(realTargetType=subValue.constructor),this.transformationType===TransformationType.CLASS_TO_PLAIN&&(subValue[targetType.options.discriminator.property]=targetType.options.discriminator.subTypes.find(subType=>subType.value===subValue.constructor).name)}else realTargetType=targetType;const value2=this.transform(subSource,subValue,realTargetType,void 0,subValue instanceof Map,level+1);newValue instanceof Set?newValue.add(value2):newValue.push(value2)}}),newValue}if(targetType===String&&!isMap)return null==value?value:String(value);if(targetType===Number&&!isMap)return null==value?value:Number(value);if(targetType===Boolean&&!isMap)return null==value?value:Boolean(value);if((targetType===Date||value instanceof Date)&&!isMap)return value instanceof Date?new Date(value.valueOf()):null==value?value:new Date(value);if(getGlobal().Buffer&&(targetType===Buffer||value instanceof Buffer)&&!isMap)return null==value?value:Buffer.from(value);if(isPromise(value)&&!isMap)return new Promise((resolve,reject)=>{value.then(data=>resolve(this.transform(void 0,data,targetType,void 0,void 0,level+1)),reject)});if(!isMap&&null!==value&&"object"==typeof value&&"function"==typeof value.then)return value;if("object"==typeof value&&null!==value){!targetType&&value.constructor!==Object&&(!Array.isArray(value)&&value.constructor===Array||(targetType=value.constructor)),!targetType&&source&&(targetType=source.constructor),this.options.enableCircularCheck&&this.recursionStack.add(value);const keys=this.getKeys(targetType,value,isMap);let newValue=source||{};!source&&(this.transformationType===TransformationType.PLAIN_TO_CLASS||this.transformationType===TransformationType.CLASS_TO_CLASS)&&(newValue=isMap?new Map:targetType?new targetType:{});for(const key of keys){if("__proto__"===key||"constructor"===key)continue;const valueKey=key;let subValue,newValueKey=key,propertyName=key;if(!this.options.ignoreDecorators&&targetType)if(this.transformationType===TransformationType.PLAIN_TO_CLASS){const exposeMetadata=defaultMetadataStorage.findExposeMetadataByCustomName(targetType,key);exposeMetadata&&(propertyName=exposeMetadata.propertyName,newValueKey=exposeMetadata.propertyName)}else if(this.transformationType===TransformationType.CLASS_TO_PLAIN||this.transformationType===TransformationType.CLASS_TO_CLASS){const exposeMetadata=defaultMetadataStorage.findExposeMetadata(targetType,key);exposeMetadata&&exposeMetadata.options&&exposeMetadata.options.name&&(newValueKey=exposeMetadata.options.name)}subValue=this.transformationType===TransformationType.PLAIN_TO_CLASS?value[valueKey]:value instanceof Map?value.get(valueKey):value[valueKey]instanceof Function?value[valueKey]():value[valueKey];let type,isSubValueMap=subValue instanceof Map;if(targetType&&isMap)type=targetType;else if(targetType){const metadata2=defaultMetadataStorage.findTypeMetadata(targetType,propertyName);if(metadata2){const options={newObject:newValue,object:value,property:propertyName},newType=metadata2.typeFunction?metadata2.typeFunction(options):metadata2.reflectedType;metadata2.options&&metadata2.options.discriminator&&metadata2.options.discriminator.property&&metadata2.options.discriminator.subTypes?value[valueKey]instanceof Array?type=metadata2:(this.transformationType===TransformationType.PLAIN_TO_CLASS&&(type=metadata2.options.discriminator.subTypes.find(subType=>{if(subValue&&subValue instanceof Object&&metadata2.options.discriminator.property in subValue)return subType.name===subValue[metadata2.options.discriminator.property]}),type=void 0===type?newType:type.value,metadata2.options.keepDiscriminatorProperty||subValue&&subValue instanceof Object&&metadata2.options.discriminator.property in subValue&&delete subValue[metadata2.options.discriminator.property]),this.transformationType===TransformationType.CLASS_TO_CLASS&&(type=subValue.constructor),this.transformationType===TransformationType.CLASS_TO_PLAIN&&subValue&&(subValue[metadata2.options.discriminator.property]=metadata2.options.discriminator.subTypes.find(subType=>subType.value===subValue.constructor).name)):type=newType,isSubValueMap=isSubValueMap||metadata2.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(map=>map.target===targetType&&!!map.properties[propertyName]).forEach(map=>type=map.properties[propertyName]);else if(this.options.enableImplicitConversion&&this.transformationType===TransformationType.PLAIN_TO_CLASS){const reflectedType=Reflect.getMetadata("design:type",targetType.prototype,propertyName);reflectedType&&(type=reflectedType)}}const arrayType2=Array.isArray(value[valueKey])?this.getReflectedType(targetType,propertyName):void 0,subSource=source?source[valueKey]:void 0;if(newValue.constructor.prototype){const descriptor=Object.getOwnPropertyDescriptor(newValue.constructor.prototype,newValueKey);if((this.transformationType===TransformationType.PLAIN_TO_CLASS||this.transformationType===TransformationType.CLASS_TO_CLASS)&&(descriptor&&!descriptor.set||newValue[newValueKey]instanceof Function))continue}if(this.options.enableCircularCheck&&this.isCircular(subValue)){if(this.transformationType===TransformationType.CLASS_TO_CLASS){let finalValue=subValue;finalValue=this.applyCustomTransformations(finalValue,targetType,key,value,this.transformationType),(void 0!==finalValue||this.options.exposeUnsetFields)&&(newValue instanceof Map?newValue.set(newValueKey,finalValue):newValue[newValueKey]=finalValue)}}else{const transformKey=this.transformationType===TransformationType.PLAIN_TO_CLASS?newValueKey:key;let finalValue;this.transformationType===TransformationType.CLASS_TO_PLAIN?(finalValue=value[transformKey],finalValue=this.applyCustomTransformations(finalValue,targetType,transformKey,value,this.transformationType),finalValue=value[transformKey]===finalValue?subValue:finalValue,finalValue=this.transform(subSource,finalValue,type,arrayType2,isSubValueMap,level+1)):void 0===subValue&&this.options.exposeDefaultValues?finalValue=newValue[newValueKey]:(finalValue=this.transform(subSource,subValue,type,arrayType2,isSubValueMap,level+1),finalValue=this.applyCustomTransformations(finalValue,targetType,transformKey,value,this.transformationType)),(void 0!==finalValue||this.options.exposeUnsetFields)&&(newValue instanceof Map?newValue.set(newValueKey,finalValue):newValue[newValueKey]=finalValue)}}return this.options.enableCircularCheck&&this.recursionStack.delete(value),newValue}return value}applyCustomTransformations(value,target,key,obj,transformationType){let metadatas=defaultMetadataStorage.findTransformMetadatas(target,key,this.transformationType);return void 0!==this.options.version&&(metadatas=metadatas.filter(metadata2=>!metadata2.options||this.checkVersion(metadata2.options.since,metadata2.options.until))),metadatas=this.options.groups&&this.options.groups.length?metadatas.filter(metadata2=>!metadata2.options||this.checkGroups(metadata2.options.groups)):metadatas.filter(metadata2=>!metadata2.options||!metadata2.options.groups||!metadata2.options.groups.length),metadatas.forEach(metadata2=>{value=metadata2.transformFn({value,key,obj,type:transformationType,options:this.options})}),value}isCircular(object){return this.recursionStack.has(object)}getReflectedType(target,propertyName){if(!target)return;const meta=defaultMetadataStorage.findTypeMetadata(target,propertyName);return meta?meta.reflectedType:void 0}getKeys(target,object,isMap){let strategy=defaultMetadataStorage.getStrategy(target);"none"===strategy&&(strategy=this.options.strategy||"exposeAll");let keys=[];if(("exposeAll"===strategy||isMap)&&(keys=object instanceof Map?Array.from(object.keys()):Object.keys(object)),isMap)return keys;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&target){keys=[...defaultMetadataStorage.getExposedProperties(target,this.transformationType),...defaultMetadataStorage.getExcludedProperties(target,this.transformationType)]}if(!this.options.ignoreDecorators&&target){let exposedProperties=defaultMetadataStorage.getExposedProperties(target,this.transformationType);this.transformationType===TransformationType.PLAIN_TO_CLASS&&(exposedProperties=exposedProperties.map(key=>{const exposeMetadata=defaultMetadataStorage.findExposeMetadata(target,key);return exposeMetadata&&exposeMetadata.options&&exposeMetadata.options.name?exposeMetadata.options.name:key})),keys=this.options.excludeExtraneousValues?exposedProperties:keys.concat(exposedProperties);const excludedProperties=defaultMetadataStorage.getExcludedProperties(target,this.transformationType);excludedProperties.length>0&&(keys=keys.filter(key=>!excludedProperties.includes(key))),void 0!==this.options.version&&(keys=keys.filter(key=>{const exposeMetadata=defaultMetadataStorage.findExposeMetadata(target,key);return!exposeMetadata||!exposeMetadata.options||this.checkVersion(exposeMetadata.options.since,exposeMetadata.options.until)})),keys=this.options.groups&&this.options.groups.length?keys.filter(key=>{const exposeMetadata=defaultMetadataStorage.findExposeMetadata(target,key);return!exposeMetadata||!exposeMetadata.options||this.checkGroups(exposeMetadata.options.groups)}):keys.filter(key=>{const exposeMetadata=defaultMetadataStorage.findExposeMetadata(target,key);return!(exposeMetadata&&exposeMetadata.options&&exposeMetadata.options.groups&&exposeMetadata.options.groups.length)})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(keys=keys.filter(key=>this.options.excludePrefixes.every(prefix=>key.substr(0,prefix.length)!==prefix))),keys=keys.filter((key,index,self2)=>self2.indexOf(key)===index),keys}checkVersion(since,until){let decision=!0;return decision&&since&&(decision=this.options.version>=since),decision&&until&&(decision=this.options.versiongroups.includes(optionGroup))}}__name(TransformOperationExecutor,"TransformOperationExecutor");const defaultOptions={enableCircularCheck:!1,enableImplicitConversion:!1,excludeExtraneousValues:!1,excludePrefixes:void 0,exposeDefaultValues:!1,exposeUnsetFields:!0,groups:void 0,ignoreDecorators:!1,strategy:void 0,targetMaps:void 0,version:void 0};class ClassTransformer{instanceToPlain(object,options){return new TransformOperationExecutor(TransformationType.CLASS_TO_PLAIN,{...defaultOptions,...options}).transform(void 0,object,void 0,void 0,void 0,void 0)}classToPlainFromExist(object,plainObject,options){return new TransformOperationExecutor(TransformationType.CLASS_TO_PLAIN,{...defaultOptions,...options}).transform(plainObject,object,void 0,void 0,void 0,void 0)}plainToInstance(cls,plain,options){return new TransformOperationExecutor(TransformationType.PLAIN_TO_CLASS,{...defaultOptions,...options}).transform(void 0,plain,cls,void 0,void 0,void 0)}plainToClassFromExist(clsObject,plain,options){return new TransformOperationExecutor(TransformationType.PLAIN_TO_CLASS,{...defaultOptions,...options}).transform(clsObject,plain,void 0,void 0,void 0,void 0)}instanceToInstance(object,options){return new TransformOperationExecutor(TransformationType.CLASS_TO_CLASS,{...defaultOptions,...options}).transform(void 0,object,void 0,void 0,void 0,void 0)}classToClassFromExist(object,fromObject,options){return new TransformOperationExecutor(TransformationType.CLASS_TO_CLASS,{...defaultOptions,...options}).transform(fromObject,object,void 0,void 0,void 0,void 0)}serialize(object,options){return JSON.stringify(this.instanceToPlain(object,options))}deserialize(cls,json,options){const jsonObject=JSON.parse(json);return this.plainToInstance(cls,jsonObject,options)}deserializeArray(cls,json,options){const jsonObject=JSON.parse(json);return this.plainToInstance(cls,jsonObject,options)}}function Exclude(options={}){return function(object,propertyName){defaultMetadataStorage.addExcludeMetadata({target:object instanceof Function?object:object.constructor,propertyName,options})}}function Expose(options={}){return function(object,propertyName){defaultMetadataStorage.addExposeMetadata({target:object instanceof Function?object:object.constructor,propertyName,options})}}function TransformInstanceToInstance(params){return function(target,propertyKey,descriptor){const classTransformer2=new ClassTransformer,originalMethod=descriptor.value;descriptor.value=function(...args2){const result=originalMethod.apply(this,args2);return!result||"object"!=typeof result&&"function"!=typeof result||"function"!=typeof result.then?classTransformer2.instanceToInstance(result,params):result.then(data=>classTransformer2.instanceToInstance(data,params))}}}function TransformInstanceToPlain(params){return function(target,propertyKey,descriptor){const classTransformer2=new ClassTransformer,originalMethod=descriptor.value;descriptor.value=function(...args2){const result=originalMethod.apply(this,args2);return!result||"object"!=typeof result&&"function"!=typeof result||"function"!=typeof result.then?classTransformer2.instanceToPlain(result,params):result.then(data=>classTransformer2.instanceToPlain(data,params))}}}function TransformPlainToInstance(classType,params){return function(target,propertyKey,descriptor){const classTransformer2=new ClassTransformer,originalMethod=descriptor.value;descriptor.value=function(...args2){const result=originalMethod.apply(this,args2);return!result||"object"!=typeof result&&"function"!=typeof result||"function"!=typeof result.then?classTransformer2.plainToInstance(classType,result,params):result.then(data=>classTransformer2.plainToInstance(classType,data,params))}}}function Transform(transformFn,options={}){return function(target,propertyName){defaultMetadataStorage.addTransformMetadata({target:target.constructor,propertyName,transformFn,options})}}function Type(typeFunction,options={}){return function(target,propertyName){const reflectedType=Reflect.getMetadata("design:type",target,propertyName);defaultMetadataStorage.addTypeMetadata({target:target.constructor,propertyName,reflectedType,typeFunction,options})}}__name(ClassTransformer,"ClassTransformer"),__name(Exclude,"Exclude"),__name(Expose,"Expose"),__name(TransformInstanceToInstance,"TransformInstanceToInstance"),__name(TransformInstanceToPlain,"TransformInstanceToPlain"),__name(TransformPlainToInstance,"TransformPlainToInstance"),__name(Transform,"Transform"),__name(Type,"Type");const classTransformer=new ClassTransformer;function classToPlain(object,options){return classTransformer.instanceToPlain(object,options)}function instanceToPlain(object,options){return classTransformer.instanceToPlain(object,options)}function classToPlainFromExist(object,plainObject,options){return classTransformer.classToPlainFromExist(object,plainObject,options)}function plainToClass(cls,plain,options){return classTransformer.plainToInstance(cls,plain,options)}function plainToInstance(cls,plain,options){return classTransformer.plainToInstance(cls,plain,options)}function plainToClassFromExist(clsObject,plain,options){return classTransformer.plainToClassFromExist(clsObject,plain,options)}function instanceToInstance(object,options){return classTransformer.instanceToInstance(object,options)}function classToClassFromExist(object,fromObject,options){return classTransformer.classToClassFromExist(object,fromObject,options)}function serialize(object,options){return classTransformer.serialize(object,options)}function deserialize(cls,json,options){return classTransformer.deserialize(cls,json,options)}function deserializeArray(cls,json,options){return classTransformer.deserializeArray(cls,json,options)}__name(classToPlain,"classToPlain"),__name(instanceToPlain,"instanceToPlain"),__name(classToPlainFromExist,"classToPlainFromExist"),__name(plainToClass,"plainToClass"),__name(plainToInstance,"plainToInstance"),__name(plainToClassFromExist,"plainToClassFromExist"),__name(instanceToInstance,"instanceToInstance"),__name(classToClassFromExist,"classToClassFromExist"),__name(serialize,"serialize"),__name(deserialize,"deserialize"),__name(deserializeArray,"deserializeArray")},13969:(__unused_webpack_module,__webpack_exports__2,__webpack_require__2)=>{"use strict";__webpack_require__2.r(__webpack_exports__2),__webpack_require__2.d(__webpack_exports__2,{ARRAY_CONTAINS:()=>ARRAY_CONTAINS,ARRAY_MAX_SIZE:()=>ARRAY_MAX_SIZE,ARRAY_MIN_SIZE:()=>ARRAY_MIN_SIZE,ARRAY_NOT_CONTAINS:()=>ARRAY_NOT_CONTAINS,ARRAY_NOT_EMPTY:()=>ARRAY_NOT_EMPTY,ARRAY_UNIQUE:()=>ARRAY_UNIQUE,Allow:()=>Allow,ArrayContains:()=>ArrayContains,ArrayMaxSize:()=>ArrayMaxSize,ArrayMinSize:()=>ArrayMinSize,ArrayNotContains:()=>ArrayNotContains,ArrayNotEmpty:()=>ArrayNotEmpty,ArrayUnique:()=>ArrayUnique,CONTAINS:()=>CONTAINS,Contains:()=>Contains,EQUALS:()=>EQUALS,Equals:()=>Equals,IS_ALPHA:()=>IS_ALPHA,IS_ALPHANUMERIC:()=>IS_ALPHANUMERIC,IS_ARRAY:()=>IS_ARRAY,IS_ASCII:()=>IS_ASCII,IS_BASE32:()=>IS_BASE32,IS_BASE64:()=>IS_BASE64,IS_BIC:()=>IS_BIC,IS_BOOLEAN:()=>IS_BOOLEAN,IS_BOOLEAN_STRING:()=>IS_BOOLEAN_STRING,IS_BTC_ADDRESS:()=>IS_BTC_ADDRESS,IS_BYTE_LENGTH:()=>IS_BYTE_LENGTH,IS_CREDIT_CARD:()=>IS_CREDIT_CARD,IS_CURRENCY:()=>IS_CURRENCY,IS_DATA_URI:()=>IS_DATA_URI,IS_DATE:()=>IS_DATE,IS_DATE_STRING:()=>IS_DATE_STRING,IS_DECIMAL:()=>IS_DECIMAL,IS_DEFINED:()=>IS_DEFINED,IS_DIVISIBLE_BY:()=>IS_DIVISIBLE_BY,IS_EAN:()=>IS_EAN,IS_EMAIL:()=>IS_EMAIL,IS_EMPTY:()=>IS_EMPTY,IS_ENUM:()=>IS_ENUM,IS_ETHEREUM_ADDRESS:()=>IS_ETHEREUM_ADDRESS,IS_FIREBASE_PUSH_ID:()=>IS_FIREBASE_PUSH_ID,IS_FQDN:()=>IS_FQDN,IS_FULL_WIDTH:()=>IS_FULL_WIDTH,IS_HALF_WIDTH:()=>IS_HALF_WIDTH,IS_HASH:()=>IS_HASH,IS_HEXADECIMAL:()=>IS_HEXADECIMAL,IS_HEX_COLOR:()=>IS_HEX_COLOR,IS_HSL:()=>IS_HSL,IS_IBAN:()=>IS_IBAN,IS_IDENTITY_CARD:()=>IS_IDENTITY_CARD,IS_IN:()=>IS_IN,IS_INSTANCE:()=>IS_INSTANCE,IS_INT:()=>IS_INT,IS_IP:()=>IS_IP,IS_ISBN:()=>IS_ISBN,IS_ISIN:()=>IS_ISIN,IS_ISO31661_ALPHA_2:()=>IS_ISO31661_ALPHA_2,IS_ISO31661_ALPHA_3:()=>IS_ISO31661_ALPHA_3,IS_ISO8601:()=>IS_ISO8601,IS_ISRC:()=>IS_ISRC,IS_ISSN:()=>IS_ISSN,IS_JSON:()=>IS_JSON,IS_JWT:()=>IS_JWT,IS_LATITUDE:()=>IS_LATITUDE,IS_LATLONG:()=>IS_LATLONG,IS_LENGTH:()=>IS_LENGTH,IS_LOCALE:()=>IS_LOCALE,IS_LONGITUDE:()=>IS_LONGITUDE,IS_LOWERCASE:()=>IS_LOWERCASE,IS_MAC_ADDRESS:()=>IS_MAC_ADDRESS,IS_MAGNET_URI:()=>IS_MAGNET_URI,IS_MILITARY_TIME:()=>IS_MILITARY_TIME,IS_MIME_TYPE:()=>IS_MIME_TYPE,IS_MOBILE_PHONE:()=>IS_MOBILE_PHONE,IS_MONGO_ID:()=>IS_MONGO_ID,IS_MULTIBYTE:()=>IS_MULTIBYTE,IS_NEGATIVE:()=>IS_NEGATIVE,IS_NOT_EMPTY:()=>IS_NOT_EMPTY,IS_NOT_EMPTY_OBJECT:()=>IS_NOT_EMPTY_OBJECT,IS_NOT_IN:()=>IS_NOT_IN,IS_NUMBER:()=>IS_NUMBER,IS_NUMBER_STRING:()=>IS_NUMBER_STRING,IS_OBJECT:()=>IS_OBJECT,IS_OCTAL:()=>IS_OCTAL,IS_PASSPORT_NUMBER:()=>IS_PASSPORT_NUMBER,IS_PHONE_NUMBER:()=>IS_PHONE_NUMBER,IS_PORT:()=>IS_PORT,IS_POSITIVE:()=>IS_POSITIVE,IS_POSTAL_CODE:()=>IS_POSTAL_CODE,IS_RFC_3339:()=>IS_RFC_3339,IS_RGB_COLOR:()=>IS_RGB_COLOR,IS_SEM_VER:()=>IS_SEM_VER,IS_STRING:()=>IS_STRING,IS_SURROGATE_PAIR:()=>IS_SURROGATE_PAIR,IS_UPPERCASE:()=>IS_UPPERCASE,IS_URL:()=>IS_URL,IS_UUID:()=>IS_UUID,IS_VARIABLE_WIDTH:()=>IS_VARIABLE_WIDTH,IsAlpha:()=>IsAlpha,IsAlphanumeric:()=>IsAlphanumeric,IsArray:()=>IsArray,IsAscii:()=>IsAscii,IsBIC:()=>IsBIC,IsBase32:()=>IsBase32,IsBase64:()=>IsBase64,IsBoolean:()=>IsBoolean,IsBooleanString:()=>IsBooleanString,IsBtcAddress:()=>IsBtcAddress,IsByteLength:()=>IsByteLength,IsCreditCard:()=>IsCreditCard,IsCurrency:()=>IsCurrency,IsDataURI:()=>IsDataURI,IsDate:()=>IsDate,IsDateString:()=>IsDateString,IsDecimal:()=>IsDecimal,IsDefined:()=>IsDefined,IsDivisibleBy:()=>IsDivisibleBy,IsEAN:()=>IsEAN,IsEmail:()=>IsEmail,IsEmpty:()=>IsEmpty,IsEnum:()=>IsEnum,IsEthereumAddress:()=>IsEthereumAddress,IsFQDN:()=>IsFQDN,IsFirebasePushId:()=>IsFirebasePushId,IsFullWidth:()=>IsFullWidth,IsHSL:()=>IsHSL,IsHalfWidth:()=>IsHalfWidth,IsHash:()=>IsHash,IsHexColor:()=>IsHexColor,IsHexadecimal:()=>IsHexadecimal,IsIBAN:()=>IsIBAN,IsIP:()=>IsIP,IsISBN:()=>IsISBN,IsISIN:()=>IsISIN,IsISO31661Alpha2:()=>IsISO31661Alpha2,IsISO31661Alpha3:()=>IsISO31661Alpha3,IsISO8601:()=>IsISO8601,IsISRC:()=>IsISRC,IsISSN:()=>IsISSN,IsIdentityCard:()=>IsIdentityCard,IsIn:()=>IsIn,IsInstance:()=>IsInstance,IsInt:()=>IsInt,IsJSON:()=>IsJSON,IsJWT:()=>IsJWT,IsLatLong:()=>IsLatLong,IsLatitude:()=>IsLatitude,IsLocale:()=>IsLocale,IsLongitude:()=>IsLongitude,IsLowercase:()=>IsLowercase,IsMACAddress:()=>IsMACAddress,IsMagnetURI:()=>IsMagnetURI,IsMilitaryTime:()=>IsMilitaryTime,IsMimeType:()=>IsMimeType,IsMobilePhone:()=>IsMobilePhone,IsMongoId:()=>IsMongoId,IsMultibyte:()=>IsMultibyte,IsNegative:()=>IsNegative,IsNotEmpty:()=>IsNotEmpty,IsNotEmptyObject:()=>IsNotEmptyObject,IsNotIn:()=>IsNotIn,IsNumber:()=>IsNumber,IsNumberString:()=>IsNumberString,IsObject:()=>IsObject,IsOctal:()=>IsOctal,IsOptional:()=>IsOptional,IsPassportNumber:()=>IsPassportNumber,IsPhoneNumber:()=>IsPhoneNumber,IsPort:()=>IsPort,IsPositive:()=>IsPositive,IsPostalCode:()=>IsPostalCode,IsRFC3339:()=>IsRFC3339,IsRgbColor:()=>IsRgbColor,IsSemVer:()=>IsSemVer,IsString:()=>IsString,IsSurrogatePair:()=>IsSurrogatePair,IsUUID:()=>IsUUID,IsUppercase:()=>IsUppercase,IsUrl:()=>IsUrl,IsVariableWidth:()=>IsVariableWidth,Length:()=>Length,MATCHES:()=>MATCHES,MAX:()=>MAX,MAX_DATE:()=>MAX_DATE,MAX_LENGTH:()=>MAX_LENGTH,MIN:()=>MIN,MIN_DATE:()=>MIN_DATE,MIN_LENGTH:()=>MIN_LENGTH,Matches:()=>Matches,Max:()=>Max,MaxDate:()=>MaxDate,MaxLength:()=>MaxLength,MetadataStorage:()=>MetadataStorage,Min:()=>Min,MinDate:()=>MinDate,MinLength:()=>MinLength,NOT_CONTAINS:()=>NOT_CONTAINS,NOT_EQUALS:()=>NOT_EQUALS,NotContains:()=>NotContains,NotEquals:()=>NotEquals,Validate:()=>Validate,ValidateBy:()=>ValidateBy,ValidateIf:()=>ValidateIf,ValidateNested:()=>ValidateNested,ValidatePromise:()=>ValidatePromise,ValidationError:()=>ValidationError,ValidationTypes:()=>ValidationTypes,Validator:()=>Validator,ValidatorConstraint:()=>ValidatorConstraint,arrayContains:()=>arrayContains,arrayMaxSize:()=>arrayMaxSize,arrayMinSize:()=>arrayMinSize,arrayNotContains:()=>arrayNotContains,arrayNotEmpty:()=>arrayNotEmpty,arrayUnique:()=>arrayUnique,buildMessage:()=>buildMessage,contains:()=>Contains_contains,equals:()=>equals,getFromContainer:()=>getFromContainer,getMetadataStorage:()=>getMetadataStorage,isAlpha:()=>IsAlpha_isAlpha,isAlphanumeric:()=>IsAlphanumeric_isAlphanumeric,isArray:()=>isArray,isAscii:()=>IsAscii_isAscii,isBIC:()=>IsBIC_isBIC,isBase32:()=>IsBase32_isBase32,isBase64:()=>IsBase64_isBase64,isBoolean:()=>IsBoolean_isBoolean,isBooleanString:()=>isBooleanString,isBtcAddress:()=>IsBtcAddress_isBtcAddress,isByteLength:()=>IsByteLength_isByteLength,isCreditCard:()=>IsCreditCard_isCreditCard,isCurrency:()=>IsCurrency_isCurrency,isDataURI:()=>IsDataURI_isDataURI,isDate:()=>isDate,isDateString:()=>isDateString,isDecimal:()=>IsDecimal_isDecimal,isDefined:()=>isDefined,isDivisibleBy:()=>IsDivisibleBy_isDivisibleBy,isEAN:()=>IsEAN_isEAN,isEmail:()=>IsEmail_isEmail,isEmpty:()=>isEmpty,isEnum:()=>isEnum,isEthereumAddress:()=>IsEthereumAddress_isEthereumAddress,isFQDN:()=>IsFQDN_isFQDN,isFirebasePushId:()=>isFirebasePushId,isFullWidth:()=>IsFullWidth_isFullWidth,isHSL:()=>IsHSL_isHSL,isHalfWidth:()=>IsHalfWidth_isHalfWidth,isHash:()=>IsHash_isHash,isHexColor:()=>IsHexColor_isHexColor,isHexadecimal:()=>IsHexadecimal_isHexadecimal,isIBAN:()=>IsIBAN_isIBAN,isIP:()=>IsIP_isIP,isISBN:()=>IsISBN_isISBN,isISIN:()=>IsISIN_isISIN,isISO31661Alpha2:()=>IsISO31661Alpha2_isISO31661Alpha2,isISO31661Alpha3:()=>IsISO31661Alpha3_isISO31661Alpha3,isISO8601:()=>IsISO8601_isISO8601,isISRC:()=>IsISRC_isISRC,isISSN:()=>IsISSN_isISSN,isIdentityCard:()=>IsIdentityCard_isIdentityCard,isIn:()=>isIn,isInstance:()=>isInstance,isInt:()=>isInt,isJSON:()=>IsJSON_isJSON,isJWT:()=>IsJWT_isJWT,isLatLong:()=>IsLatLong_isLatLong,isLatitude:()=>isLatitude,isLocale:()=>IsLocale_isLocale,isLongitude:()=>isLongitude,isLowercase:()=>IsLowercase_isLowercase,isMACAddress:()=>IsMacAddress_isMACAddress,isMagnetURI:()=>IsMagnetURI_isMagnetURI,isMilitaryTime:()=>isMilitaryTime,isMimeType:()=>IsMimeType_isMimeType,isMobilePhone:()=>IsMobilePhone_isMobilePhone,isMongoId:()=>IsMongoId_isMongoId,isMultibyte:()=>IsMultibyte_isMultibyte,isNegative:()=>isNegative,isNotEmpty:()=>isNotEmpty,isNotEmptyObject:()=>isNotEmptyObject,isNotIn:()=>isNotIn,isNumber:()=>isNumber,isNumberString:()=>isNumberString,isObject:()=>IsObject_isObject,isOctal:()=>IsOctal_isOctal,isPassportNumber:()=>IsPassportNumber_isPassportNumber,isPhoneNumber:()=>isPhoneNumber,isPort:()=>IsPort_isPort,isPositive:()=>isPositive,isPostalCode:()=>IsPostalCode_isPostalCode,isRFC3339:()=>IsRFC3339_isRFC3339,isRgbColor:()=>IsRgbColor_isRgbColor,isSemVer:()=>IsSemVer_isSemVer,isString:()=>isString,isSurrogatePair:()=>IsSurrogatePair_isSurrogatePair,isURL:()=>IsUrl_isURL,isUUID:()=>IsUUID_isUUID,isUppercase:()=>IsUppercase_isUppercase,isValidationOptions:()=>isValidationOptions,isVariableWidth:()=>IsVariableWidth_isVariableWidth,length:()=>Length_length,matches:()=>Matches_matches,max:()=>max,maxDate:()=>maxDate,maxLength:()=>maxLength,min:()=>min,minDate:()=>minDate,minLength:()=>minLength,notContains:()=>notContains,notEquals:()=>notEquals,registerDecorator:()=>registerDecorator,registerSchema:()=>registerSchema,useContainer:()=>useContainer,validate:()=>validate,validateOrReject:()=>validateOrReject,validateSync:()=>validateSync});class ValidationMetadata{constructor(args2){this.groups=[],this.each=!1,this.context=void 0,this.type=args2.type,this.target=args2.target,this.propertyName=args2.propertyName,this.constraints=args2.constraints,this.constraintCls=args2.constraintCls,this.validationTypeOptions=args2.validationTypeOptions,args2.validationOptions&&(this.message=args2.validationOptions.message,this.groups=args2.validationOptions.groups,this.always=args2.validationOptions.always,this.each=args2.validationOptions.each,this.context=args2.validationOptions.context)}}__name(ValidationMetadata,"ValidationMetadata");class ValidationSchemaToMetadataTransformer{transform(schema){const metadatas=[];return Object.keys(schema.properties).forEach(property=>{schema.properties[property].forEach(validation=>{const validationOptions={message:validation.message,groups:validation.groups,always:validation.always,each:validation.each},args2={type:validation.type,target:schema.name,propertyName:property,constraints:validation.constraints,validationTypeOptions:validation.options,validationOptions};metadatas.push(new ValidationMetadata(args2))})}),metadatas}}function getGlobal(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0}__name(ValidationSchemaToMetadataTransformer,"ValidationSchemaToMetadataTransformer"),__name(getGlobal,"getGlobal");class MetadataStorage{constructor(){this.validationMetadatas=[],this.constraintMetadatas=[]}get hasValidationMetaData(){return!!this.validationMetadatas.length}addValidationSchema(schema){(new ValidationSchemaToMetadataTransformer).transform(schema).forEach(validationMetadata=>this.addValidationMetadata(validationMetadata))}addValidationMetadata(metadata2){this.validationMetadatas.push(metadata2)}addConstraintMetadata(metadata2){this.constraintMetadatas.push(metadata2)}groupByPropertyName(metadata2){const grouped={};return metadata2.forEach(metadata3=>{grouped[metadata3.propertyName]||(grouped[metadata3.propertyName]=[]),grouped[metadata3.propertyName].push(metadata3)}),grouped}getTargetValidationMetadatas(targetConstructor,targetSchema,always,strictGroups,groups){const includeMetadataBecauseOfAlwaysOption=__name(metadata2=>void 0!==metadata2.always?metadata2.always:(!metadata2.groups||!metadata2.groups.length)&&always,"includeMetadataBecauseOfAlwaysOption"),excludeMetadataBecauseOfStrictGroupsOption=__name(metadata2=>!(!strictGroups||groups&&groups.length||!metadata2.groups||!metadata2.groups.length),"excludeMetadataBecauseOfStrictGroupsOption"),originalMetadatas=this.validationMetadatas.filter(metadata2=>(metadata2.target===targetConstructor||metadata2.target===targetSchema)&&(!!includeMetadataBecauseOfAlwaysOption(metadata2)||!excludeMetadataBecauseOfStrictGroupsOption(metadata2)&&(!(groups&&groups.length>0)||metadata2.groups&&!!metadata2.groups.find(group=>-1!==groups.indexOf(group))))),uniqueInheritedMetadatas=this.validationMetadatas.filter(metadata2=>"string"!=typeof metadata2.target&&metadata2.target!==targetConstructor&&(!(metadata2.target instanceof Function)||targetConstructor.prototype instanceof metadata2.target)&&(!!includeMetadataBecauseOfAlwaysOption(metadata2)||!excludeMetadataBecauseOfStrictGroupsOption(metadata2)&&(!(groups&&groups.length>0)||metadata2.groups&&!!metadata2.groups.find(group=>-1!==groups.indexOf(group))))).filter(inheritedMetadata=>!originalMetadatas.find(originalMetadata=>originalMetadata.propertyName===inheritedMetadata.propertyName&&originalMetadata.type===inheritedMetadata.type));return originalMetadatas.concat(uniqueInheritedMetadatas)}getTargetValidatorConstraints(target){return this.constraintMetadatas.filter(metadata2=>metadata2.target===target)}}function getMetadataStorage(){const global2=getGlobal();return global2.classValidatorMetadataStorage||(global2.classValidatorMetadataStorage=new MetadataStorage),global2.classValidatorMetadataStorage}__name(MetadataStorage,"MetadataStorage"),__name(getMetadataStorage,"getMetadataStorage");class ValidationError{toString(shouldDecorate=!1,hasParent=!1,parentPath=""){const boldStart=shouldDecorate?"\x1b[1m":"",boldEnd=shouldDecorate?"\x1b[22m":"",propConstraintFailed=__name(propertyName=>` - property ${boldStart}${parentPath}${propertyName}${boldEnd} has failed the following constraints: ${boldStart}${Object.keys(this.constraints).join(", ")}${boldEnd} \n`,"propConstraintFailed");if(hasParent){const formattedProperty=Number.isInteger(+this.property)?`[${this.property}]`:`${parentPath?".":""}${this.property}`;return this.constraints?propConstraintFailed(formattedProperty):this.children?this.children.map(childError=>childError.toString(shouldDecorate,!0,`${parentPath}${formattedProperty}`)).join(""):""}return`An instance of ${boldStart}${this.target?this.target.constructor.name:"an object"}${boldEnd} has failed the validation:\n`+(this.constraints?propConstraintFailed(this.property):"")+(this.children?this.children.map(childError=>childError.toString(shouldDecorate,!0,this.property)).join(""):"")}}__name(ValidationError,"ValidationError");class ValidationTypes{static isValid(type){return"isValid"!==type&&"getMessage"!==type&&-1!==Object.keys(this).map(key=>this[key]).indexOf(type)}}function constraintToString(constraint){return Array.isArray(constraint)?constraint.join(", "):`${constraint}`}__name(ValidationTypes,"ValidationTypes"),ValidationTypes.CUSTOM_VALIDATION="customValidation",ValidationTypes.NESTED_VALIDATION="nestedValidation",ValidationTypes.PROMISE_VALIDATION="promiseValidation",ValidationTypes.CONDITIONAL_VALIDATION="conditionalValidation",ValidationTypes.WHITELIST="whitelistValidation",ValidationTypes.IS_DEFINED="isDefined",__name(constraintToString,"constraintToString");class ValidationUtils{static replaceMessageSpecialTokens(message2,validationArguments){let messageString;return message2 instanceof Function?messageString=message2(validationArguments):"string"==typeof message2&&(messageString=message2),messageString&&Array.isArray(validationArguments.constraints)&&validationArguments.constraints.forEach((constraint,index)=>{messageString=messageString.replace(new RegExp(`\\$constraint${index+1}`,"g"),constraintToString(constraint))}),messageString&&void 0!==validationArguments.value&&null!==validationArguments.value&&"string"==typeof validationArguments.value&&(messageString=messageString.replace(/\$value/g,validationArguments.value)),messageString&&(messageString=messageString.replace(/\$property/g,validationArguments.property)),messageString&&(messageString=messageString.replace(/\$target/g,validationArguments.targetName)),messageString}}function isPromise(p){return null!==p&&"object"==typeof p&&"function"==typeof p.then}function convertToArray(val){return val instanceof Map?Array.from(val.values()):Array.isArray(val)?val:Array.from(val)}__name(ValidationUtils,"ValidationUtils"),__name(isPromise,"isPromise"),__name(convertToArray,"convertToArray");class ValidationExecutor{constructor(validator,validatorOptions){this.validator=validator,this.validatorOptions=validatorOptions,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=getMetadataStorage()}execute(object,targetSchema,validationErrors){var _a;!this.metadataStorage.hasValidationMetaData&&!0===(null===(_a=this.validatorOptions)||void 0===_a?void 0:_a.enableDebugMessages)&&console.warn("No metadata found. There is more than once class-validator version installed probably. You need to flatten your dependencies.");const groups=this.validatorOptions?this.validatorOptions.groups:void 0,strictGroups=this.validatorOptions&&this.validatorOptions.strictGroups||!1,always=this.validatorOptions&&this.validatorOptions.always||!1,targetMetadatas=this.metadataStorage.getTargetValidationMetadatas(object.constructor,targetSchema,always,strictGroups,groups),groupedMetadatas=this.metadataStorage.groupByPropertyName(targetMetadatas);if(this.validatorOptions&&this.validatorOptions.forbidUnknownValues&&!targetMetadatas.length){const validationError=new ValidationError;return(!this.validatorOptions||!this.validatorOptions.validationError||void 0===this.validatorOptions.validationError.target||!0===this.validatorOptions.validationError.target)&&(validationError.target=object),validationError.value=void 0,validationError.property=void 0,validationError.children=[],validationError.constraints={unknownValue:"an unknown value was passed to the validate function"},void validationErrors.push(validationError)}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(object,groupedMetadatas,validationErrors),Object.keys(groupedMetadatas).forEach(propertyName=>{const value=object[propertyName],definedMetadatas=groupedMetadatas[propertyName].filter(metadata2=>metadata2.type===ValidationTypes.IS_DEFINED),metadatas=groupedMetadatas[propertyName].filter(metadata2=>metadata2.type!==ValidationTypes.IS_DEFINED&&metadata2.type!==ValidationTypes.WHITELIST);value instanceof Promise&&metadatas.find(metadata2=>metadata2.type===ValidationTypes.PROMISE_VALIDATION)?this.awaitingPromises.push(value.then(resolvedValue=>{this.performValidations(object,resolvedValue,propertyName,definedMetadatas,metadatas,validationErrors)})):this.performValidations(object,value,propertyName,definedMetadatas,metadatas,validationErrors)})}whitelist(object,groupedMetadatas,validationErrors){const notAllowedProperties=[];Object.keys(object).forEach(propertyName=>{(!groupedMetadatas[propertyName]||0===groupedMetadatas[propertyName].length)&¬AllowedProperties.push(propertyName)}),notAllowedProperties.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?notAllowedProperties.forEach(property=>{const validationError=this.generateValidationError(object,object[property],property);validationError.constraints={[ValidationTypes.WHITELIST]:`property ${property} should not exist`},validationError.children=void 0,validationErrors.push(validationError)}):notAllowedProperties.forEach(property=>delete object[property]))}stripEmptyErrors(errors){return errors.filter(error=>{if(error.children&&(error.children=this.stripEmptyErrors(error.children)),0===Object.keys(error.constraints).length){if(0===error.children.length)return!1;delete error.constraints}return!0})}performValidations(object,value,propertyName,definedMetadatas,metadatas,validationErrors){const customValidationMetadatas=metadatas.filter(metadata2=>metadata2.type===ValidationTypes.CUSTOM_VALIDATION),nestedValidationMetadatas=metadatas.filter(metadata2=>metadata2.type===ValidationTypes.NESTED_VALIDATION),conditionalValidationMetadatas=metadatas.filter(metadata2=>metadata2.type===ValidationTypes.CONDITIONAL_VALIDATION),validationError=this.generateValidationError(object,value,propertyName);validationErrors.push(validationError),this.conditionalValidations(object,value,conditionalValidationMetadatas)&&(this.customValidations(object,value,definedMetadatas,validationError),this.mapContexts(object,value,definedMetadatas,validationError),(void 0!==value||!this.validatorOptions||!0!==this.validatorOptions.skipUndefinedProperties)&&(null===value&&this.validatorOptions&&!0===this.validatorOptions.skipNullProperties||null==value&&this.validatorOptions&&!0===this.validatorOptions.skipMissingProperties||(this.customValidations(object,value,customValidationMetadatas,validationError),this.nestedValidations(value,nestedValidationMetadatas,validationError.children),this.mapContexts(object,value,metadatas,validationError),this.mapContexts(object,value,customValidationMetadatas,validationError))))}generateValidationError(object,value,propertyName){const validationError=new ValidationError;return(!this.validatorOptions||!this.validatorOptions.validationError||void 0===this.validatorOptions.validationError.target||!0===this.validatorOptions.validationError.target)&&(validationError.target=object),(!this.validatorOptions||!this.validatorOptions.validationError||void 0===this.validatorOptions.validationError.value||!0===this.validatorOptions.validationError.value)&&(validationError.value=value),validationError.property=propertyName,validationError.children=[],validationError.constraints={},validationError}conditionalValidations(object,value,metadatas){return metadatas.map(metadata2=>metadata2.constraints[0](object,value)).reduce((resultA,resultB)=>resultA&&resultB,!0)}customValidations(object,value,metadatas,error){metadatas.forEach(metadata2=>{this.metadataStorage.getTargetValidatorConstraints(metadata2.constraintCls).forEach(customConstraintMetadata=>{if(customConstraintMetadata.async&&this.ignoreAsyncValidations||this.validatorOptions&&this.validatorOptions.stopAtFirstError&&Object.keys(error.constraints||{}).length>0)return;const validationArguments={targetName:object.constructor?object.constructor.name:void 0,property:metadata2.propertyName,object,value,constraints:metadata2.constraints};if(!metadata2.each||!(Array.isArray(value)||value instanceof Set||value instanceof Map)){const validatedValue=customConstraintMetadata.instance.validate(value,validationArguments);if(isPromise(validatedValue)){const promise=validatedValue.then(isValid=>{if(!isValid){const[type,message2]=this.createValidationError(object,value,metadata2,customConstraintMetadata);error.constraints[type]=message2,metadata2.context&&(error.contexts||(error.contexts={}),error.contexts[type]=Object.assign(error.contexts[type]||{},metadata2.context))}});this.awaitingPromises.push(promise)}else if(!validatedValue){const[type,message2]=this.createValidationError(object,value,metadata2,customConstraintMetadata);error.constraints[type]=message2}return}const validatedSubValues=convertToArray(value).map(subValue=>customConstraintMetadata.instance.validate(subValue,validationArguments));if(validatedSubValues.some(validatedSubValue=>isPromise(validatedSubValue))){const asyncValidatedSubValues=validatedSubValues.map(validatedSubValue=>isPromise(validatedSubValue)?validatedSubValue:Promise.resolve(validatedSubValue)),asyncValidationIsFinishedPromise=Promise.all(asyncValidatedSubValues).then(flatValidatedValues=>{if(!flatValidatedValues.every(isValid=>isValid)){const[type,message2]=this.createValidationError(object,value,metadata2,customConstraintMetadata);error.constraints[type]=message2,metadata2.context&&(error.contexts||(error.contexts={}),error.contexts[type]=Object.assign(error.contexts[type]||{},metadata2.context))}});this.awaitingPromises.push(asyncValidationIsFinishedPromise)}else if(!validatedSubValues.every(isValid=>isValid)){const[type,message2]=this.createValidationError(object,value,metadata2,customConstraintMetadata);error.constraints[type]=message2}})})}nestedValidations(value,metadatas,errors){void 0!==value&&metadatas.forEach(metadata2=>{if(metadata2.type===ValidationTypes.NESTED_VALIDATION||metadata2.type===ValidationTypes.PROMISE_VALIDATION)if(Array.isArray(value)||value instanceof Set||value instanceof Map)(value instanceof Set?Array.from(value):value).forEach((subValue,index)=>{this.performValidations(value,subValue,index.toString(),[],metadatas,errors)});else if(value instanceof Object){const targetSchema="string"==typeof metadata2.target?metadata2.target:metadata2.target.name;this.execute(value,targetSchema,errors)}else{const error=new ValidationError;error.value=value,error.property=metadata2.propertyName,error.target=metadata2.target;const[type,message2]=this.createValidationError(metadata2.target,value,metadata2);error.constraints={[type]:message2},errors.push(error)}})}mapContexts(object,value,metadatas,error){return metadatas.forEach(metadata2=>{if(metadata2.context){let customConstraint;metadata2.type===ValidationTypes.CUSTOM_VALIDATION&&(customConstraint=this.metadataStorage.getTargetValidatorConstraints(metadata2.constraintCls)[0]);const type=this.getConstraintType(metadata2,customConstraint);error.constraints[type]&&(error.contexts||(error.contexts={}),error.contexts[type]=Object.assign(error.contexts[type]||{},metadata2.context))}})}createValidationError(object,value,metadata2,customValidatorMetadata){const targetName=object.constructor?object.constructor.name:void 0,type=this.getConstraintType(metadata2,customValidatorMetadata),validationArguments={targetName,property:metadata2.propertyName,object,value,constraints:metadata2.constraints};let message2=metadata2.message||"";!metadata2.message&&(!this.validatorOptions||this.validatorOptions&&!this.validatorOptions.dismissDefaultMessages)&&customValidatorMetadata&&customValidatorMetadata.instance.defaultMessage instanceof Function&&(message2=customValidatorMetadata.instance.defaultMessage(validationArguments));return[type,ValidationUtils.replaceMessageSpecialTokens(message2,validationArguments)]}getConstraintType(metadata2,customValidatorMetadata){return customValidatorMetadata&&customValidatorMetadata.name?customValidatorMetadata.name:metadata2.type}}__name(ValidationExecutor,"ValidationExecutor");class Validator{validate(objectOrSchemaName,objectOrValidationOptions,maybeValidatorOptions){return this.coreValidate(objectOrSchemaName,objectOrValidationOptions,maybeValidatorOptions)}async validateOrReject(objectOrSchemaName,objectOrValidationOptions,maybeValidatorOptions){const errors=await this.coreValidate(objectOrSchemaName,objectOrValidationOptions,maybeValidatorOptions);if(errors.length)return Promise.reject(errors)}validateSync(objectOrSchemaName,objectOrValidationOptions,maybeValidatorOptions){const object="string"==typeof objectOrSchemaName?objectOrValidationOptions:objectOrSchemaName,schema="string"==typeof objectOrSchemaName?objectOrSchemaName:void 0,executor=new ValidationExecutor(this,"string"==typeof objectOrSchemaName?maybeValidatorOptions:objectOrValidationOptions);executor.ignoreAsyncValidations=!0;const validationErrors=[];return executor.execute(object,schema,validationErrors),executor.stripEmptyErrors(validationErrors)}coreValidate(objectOrSchemaName,objectOrValidationOptions,maybeValidatorOptions){const object="string"==typeof objectOrSchemaName?objectOrValidationOptions:objectOrSchemaName,schema="string"==typeof objectOrSchemaName?objectOrSchemaName:void 0,executor=new ValidationExecutor(this,"string"==typeof objectOrSchemaName?maybeValidatorOptions:objectOrValidationOptions),validationErrors=[];return executor.execute(object,schema,validationErrors),Promise.all(executor.awaitingPromises).then(()=>executor.stripEmptyErrors(validationErrors))}}__name(Validator,"Validator");const defaultContainer=new class{constructor(){this.instances=[]}get(someClass){let instance=this.instances.find(instance2=>instance2.type===someClass);return instance||(instance={type:someClass,object:new someClass},this.instances.push(instance)),instance.object}};let userContainer,userContainerOptions;function useContainer(iocContainer,options){userContainer=iocContainer,userContainerOptions=options}function getFromContainer(someClass){if(userContainer)try{const instance=userContainer.get(someClass);if(instance||!userContainerOptions||!userContainerOptions.fallback)return instance}catch(error){if(!userContainerOptions||!userContainerOptions.fallbackOnErrors)throw error}return defaultContainer.get(someClass)}function Allow(validationOptions){return function(object,propertyName){const args2={type:ValidationTypes.WHITELIST,target:object.constructor,propertyName,validationOptions};getMetadataStorage().addValidationMetadata(new ValidationMetadata(args2))}}__name(useContainer,"useContainer"),__name(getFromContainer,"getFromContainer"),__name(Allow,"Allow");class ConstraintMetadata{constructor(target,name,async=!1){this.target=target,this.name=name,this.async=async}get instance(){return getFromContainer(this.target)}}function registerDecorator(options){let constraintCls;if(options.validator instanceof Function){if(constraintCls=options.validator,getFromContainer(MetadataStorage).getTargetValidatorConstraints(options.validator).length>1)throw`More than one implementation of ValidatorConstraintInterface found for validator on: ${options.target.name}:${options.propertyName}`}else{const validator=options.validator;constraintCls=__name(class{validate(value,validationArguments){return validator.validate(value,validationArguments)}defaultMessage(validationArguments){return validator.defaultMessage?validator.defaultMessage(validationArguments):""}},"CustomConstraint"),getMetadataStorage().addConstraintMetadata(new ConstraintMetadata(constraintCls,options.name,options.async))}const validationMetadataArgs={type:options.name&&ValidationTypes.isValid(options.name)?options.name:ValidationTypes.CUSTOM_VALIDATION,target:options.target,propertyName:options.propertyName,validationOptions:options.options,constraintCls,constraints:options.constraints};getMetadataStorage().addValidationMetadata(new ValidationMetadata(validationMetadataArgs))}function buildMessage(impl,validationOptions){return validationArguments=>{const eachPrefix=validationOptions&&validationOptions.each?"each value in ":"";return impl(eachPrefix,validationArguments)}}function ValidateBy(options,validationOptions){return function(object,propertyName){registerDecorator({name:options.name,target:object.constructor,propertyName,options:validationOptions,constraints:options.constraints,validator:options.validator})}}__name(ConstraintMetadata,"ConstraintMetadata"),__name(registerDecorator,"registerDecorator"),__name(buildMessage,"buildMessage"),__name(ValidateBy,"ValidateBy");const IS_DEFINED=ValidationTypes.IS_DEFINED;function isDefined(value){return null!=value}function IsDefined(validationOptions){return ValidateBy({name:IS_DEFINED,validator:{validate:value=>isDefined(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property should not be null or undefined",validationOptions)}},validationOptions)}function IsOptional(validationOptions){return function(object,propertyName){const args2={type:ValidationTypes.CONDITIONAL_VALIDATION,target:object.constructor,propertyName,constraints:[(object2,value)=>null!==object2[propertyName]&&void 0!==object2[propertyName]],validationOptions};getMetadataStorage().addValidationMetadata(new ValidationMetadata(args2))}}function ValidatorConstraint(options){return function(target){const isAsync=options&&options.async;let name=options&&options.name?options.name:"";name||(name=target.name,name||(name=name.replace(/\.?([A-Z]+)/g,(x,y)=>"_"+y.toLowerCase()).replace(/^_/,"")));const metadata2=new ConstraintMetadata(target,name,isAsync);getMetadataStorage().addConstraintMetadata(metadata2)}}function Validate(constraintClass,constraintsOrValidationOptions,maybeValidationOptions){return function(object,propertyName){const args2={type:ValidationTypes.CUSTOM_VALIDATION,target:object.constructor,propertyName,constraintCls:constraintClass,constraints:Array.isArray(constraintsOrValidationOptions)?constraintsOrValidationOptions:void 0,validationOptions:Array.isArray(constraintsOrValidationOptions)?maybeValidationOptions:constraintsOrValidationOptions};getMetadataStorage().addValidationMetadata(new ValidationMetadata(args2))}}function ValidateIf(condition,validationOptions){return function(object,propertyName){const args2={type:ValidationTypes.CONDITIONAL_VALIDATION,target:object.constructor,propertyName,constraints:[condition],validationOptions};getMetadataStorage().addValidationMetadata(new ValidationMetadata(args2))}}function ValidateNested(validationOptions){const opts={...validationOptions},eachPrefix=opts.each?"each value in ":"";return opts.message=opts.message||eachPrefix+"nested property $property must be either object or array",function(object,propertyName){const args2={type:ValidationTypes.NESTED_VALIDATION,target:object.constructor,propertyName,validationOptions:opts};getMetadataStorage().addValidationMetadata(new ValidationMetadata(args2))}}function ValidatePromise(validationOptions){return function(object,propertyName){const args2={type:ValidationTypes.PROMISE_VALIDATION,target:object.constructor,propertyName,validationOptions};getMetadataStorage().addValidationMetadata(new ValidationMetadata(args2))}}__name(isDefined,"isDefined"),__name(IsDefined,"IsDefined"),__name(IsOptional,"IsOptional"),__name(ValidatorConstraint,"ValidatorConstraint"),__name(Validate,"Validate"),__name(ValidateIf,"ValidateIf"),__name(ValidateNested,"ValidateNested"),__name(ValidatePromise,"ValidatePromise");var isLatLong=__webpack_require__2(81439),isLatLong_default=__webpack_require__2.n(isLatLong);const IS_LATLONG="isLatLong";function IsLatLong_isLatLong(value){return"string"==typeof value&&isLatLong_default()(value)}function IsLatLong(validationOptions){return ValidateBy({name:IS_LATLONG,validator:{validate:(value,args2)=>IsLatLong_isLatLong(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a latitude,longitude string",validationOptions)}},validationOptions)}__name(IsLatLong_isLatLong,"IsLatLong_isLatLong"),__name(IsLatLong,"IsLatLong");const IS_LATITUDE="isLatitude";function isLatitude(value){return("number"==typeof value||"string"==typeof value)&&IsLatLong_isLatLong(`${value},0`)}function IsLatitude(validationOptions){return ValidateBy({name:IS_LATITUDE,validator:{validate:(value,args2)=>isLatitude(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a latitude string or number",validationOptions)}},validationOptions)}__name(isLatitude,"isLatitude"),__name(IsLatitude,"IsLatitude");const IS_LONGITUDE="isLongitude";function isLongitude(value){return("number"==typeof value||"string"==typeof value)&&IsLatLong_isLatLong(`0,${value}`)}function IsLongitude(validationOptions){return ValidateBy({name:IS_LONGITUDE,validator:{validate:(value,args2)=>isLongitude(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a longitude string or number",validationOptions)}},validationOptions)}__name(isLongitude,"isLongitude"),__name(IsLongitude,"IsLongitude");const EQUALS="equals";function equals(value,comparison){return value===comparison}function Equals(comparison,validationOptions){return ValidateBy({name:EQUALS,constraints:[comparison],validator:{validate:(value,args2)=>equals(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be equal to $constraint1",validationOptions)}},validationOptions)}__name(equals,"equals"),__name(Equals,"Equals");const NOT_EQUALS="notEquals";function notEquals(value,comparison){return value!==comparison}function NotEquals(comparison,validationOptions){return ValidateBy({name:NOT_EQUALS,constraints:[comparison],validator:{validate:(value,args2)=>notEquals(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property should not be equal to $constraint1",validationOptions)}},validationOptions)}__name(notEquals,"notEquals"),__name(NotEquals,"NotEquals");const IS_EMPTY="isEmpty";function isEmpty(value){return""===value||null==value}function IsEmpty(validationOptions){return ValidateBy({name:IS_EMPTY,validator:{validate:(value,args2)=>isEmpty(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be empty",validationOptions)}},validationOptions)}__name(isEmpty,"isEmpty"),__name(IsEmpty,"IsEmpty");const IS_NOT_EMPTY="isNotEmpty";function isNotEmpty(value){return""!==value&&null!=value}function IsNotEmpty(validationOptions){return ValidateBy({name:IS_NOT_EMPTY,validator:{validate:(value,args2)=>isNotEmpty(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property should not be empty",validationOptions)}},validationOptions)}__name(isNotEmpty,"isNotEmpty"),__name(IsNotEmpty,"IsNotEmpty");const IS_IN="isIn";function isIn(value,possibleValues){return!Array.isArray(possibleValues)||possibleValues.some(possibleValue=>possibleValue===value)}function IsIn(values,validationOptions){return ValidateBy({name:IS_IN,constraints:[values],validator:{validate:(value,args2)=>isIn(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be one of the following values: $constraint1",validationOptions)}},validationOptions)}__name(isIn,"isIn"),__name(IsIn,"IsIn");const IS_NOT_IN="isNotIn";function isNotIn(value,possibleValues){return!Array.isArray(possibleValues)||!possibleValues.some(possibleValue=>possibleValue===value)}function IsNotIn(values,validationOptions){return ValidateBy({name:IS_NOT_IN,constraints:[values],validator:{validate:(value,args2)=>isNotIn(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property should not be one of the following values: $constraint1",validationOptions)}},validationOptions)}__name(isNotIn,"isNotIn"),__name(IsNotIn,"IsNotIn");var isDivisibleBy=__webpack_require__2(42173),isDivisibleBy_default=__webpack_require__2.n(isDivisibleBy);const IS_DIVISIBLE_BY="isDivisibleBy";function IsDivisibleBy_isDivisibleBy(value,num){return"number"==typeof value&&"number"==typeof num&&isDivisibleBy_default()(String(value),num)}function IsDivisibleBy(num,validationOptions){return ValidateBy({name:IS_DIVISIBLE_BY,constraints:[num],validator:{validate:(value,args2)=>IsDivisibleBy_isDivisibleBy(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be divisible by $constraint1",validationOptions)}},validationOptions)}__name(IsDivisibleBy_isDivisibleBy,"IsDivisibleBy_isDivisibleBy"),__name(IsDivisibleBy,"IsDivisibleBy");const IS_POSITIVE="isPositive";function isPositive(value){return"number"==typeof value&&value>0}function IsPositive(validationOptions){return ValidateBy({name:IS_POSITIVE,validator:{validate:(value,args2)=>isPositive(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a positive number",validationOptions)}},validationOptions)}__name(isPositive,"isPositive"),__name(IsPositive,"IsPositive");const IS_NEGATIVE="isNegative";function isNegative(value){return"number"==typeof value&&value<0}function IsNegative(validationOptions){return ValidateBy({name:IS_NEGATIVE,validator:{validate:(value,args2)=>isNegative(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a negative number",validationOptions)}},validationOptions)}__name(isNegative,"isNegative"),__name(IsNegative,"IsNegative");const MAX="max";function max(num,max2){return"number"==typeof num&&"number"==typeof max2&&num<=max2}function Max(maxValue,validationOptions){return ValidateBy({name:MAX,constraints:[maxValue],validator:{validate:(value,args2)=>max(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must not be greater than $constraint1",validationOptions)}},validationOptions)}__name(max,"max"),__name(Max,"Max");const MIN="min";function min(num,min2){return"number"==typeof num&&"number"==typeof min2&&num>=min2}function Min(minValue,validationOptions){return ValidateBy({name:MIN,constraints:[minValue],validator:{validate:(value,args2)=>min(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must not be less than $constraint1",validationOptions)}},validationOptions)}__name(min,"min"),__name(Min,"Min");const MIN_DATE="minDate";function minDate(date,minDate2){return date instanceof Date&&date.getTime()>=minDate2.getTime()}function MinDate(date,validationOptions){return ValidateBy({name:MIN_DATE,constraints:[date],validator:{validate:(value,args2)=>minDate(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>"minimal allowed date for "+eachPrefix+"$property is $constraint1",validationOptions)}},validationOptions)}__name(minDate,"minDate"),__name(MinDate,"MinDate");const MAX_DATE="maxDate";function maxDate(date,maxDate2){return date instanceof Date&&date.getTime()<=maxDate2.getTime()}function MaxDate(date,validationOptions){return ValidateBy({name:MAX_DATE,constraints:[date],validator:{validate:(value,args2)=>maxDate(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>"maximal allowed date for "+eachPrefix+"$property is $constraint1",validationOptions)}},validationOptions)}__name(maxDate,"maxDate"),__name(MaxDate,"MaxDate");var contains=__webpack_require__2(62669),contains_default=__webpack_require__2.n(contains);const CONTAINS="contains";function Contains_contains(value,seed){return"string"==typeof value&&contains_default()(value,seed)}function Contains(seed,validationOptions){return ValidateBy({name:CONTAINS,constraints:[seed],validator:{validate:(value,args2)=>Contains_contains(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must contain a $constraint1 string",validationOptions)}},validationOptions)}__name(Contains_contains,"Contains_contains"),__name(Contains,"Contains");const NOT_CONTAINS="notContains";function notContains(value,seed){return"string"==typeof value&&!contains_default()(value,seed)}function NotContains(seed,validationOptions){return ValidateBy({name:NOT_CONTAINS,constraints:[seed],validator:{validate:(value,args2)=>notContains(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property should not contain a $constraint1 string",validationOptions)}},validationOptions)}__name(notContains,"notContains"),__name(NotContains,"NotContains");var isAlpha=__webpack_require__2(30044);const IS_ALPHA="isAlpha";function IsAlpha_isAlpha(value,locale){return"string"==typeof value&&(0,isAlpha.ZP)(value,locale)}function IsAlpha(locale,validationOptions){return ValidateBy({name:IS_ALPHA,constraints:[locale],validator:{validate:(value,args2)=>IsAlpha_isAlpha(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must contain only letters (a-zA-Z)",validationOptions)}},validationOptions)}__name(IsAlpha_isAlpha,"IsAlpha_isAlpha"),__name(IsAlpha,"IsAlpha");var isAlphanumeric=__webpack_require__2(22316);const IS_ALPHANUMERIC="isAlphanumeric";function IsAlphanumeric_isAlphanumeric(value,locale){return"string"==typeof value&&(0,isAlphanumeric.ZP)(value,locale)}function IsAlphanumeric(locale,validationOptions){return ValidateBy({name:IS_ALPHANUMERIC,constraints:[locale],validator:{validate:(value,args2)=>IsAlphanumeric_isAlphanumeric(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must contain only letters and numbers",validationOptions)}},validationOptions)}__name(IsAlphanumeric_isAlphanumeric,"IsAlphanumeric_isAlphanumeric"),__name(IsAlphanumeric,"IsAlphanumeric");var isDecimal=__webpack_require__2(45016),isDecimal_default=__webpack_require__2.n(isDecimal);const IS_DECIMAL="isDecimal";function IsDecimal_isDecimal(value,options){return"string"==typeof value&&isDecimal_default()(value,options)}function IsDecimal(options,validationOptions){return ValidateBy({name:IS_DECIMAL,constraints:[options],validator:{validate:(value,args2)=>IsDecimal_isDecimal(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property is not a valid decimal number.",validationOptions)}},validationOptions)}__name(IsDecimal_isDecimal,"IsDecimal_isDecimal"),__name(IsDecimal,"IsDecimal");var isAscii=__webpack_require__2(12889),isAscii_default=__webpack_require__2.n(isAscii);const IS_ASCII="isAscii";function IsAscii_isAscii(value){return"string"==typeof value&&isAscii_default()(value)}function IsAscii(validationOptions){return ValidateBy({name:IS_ASCII,validator:{validate:(value,args2)=>IsAscii_isAscii(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must contain only ASCII characters",validationOptions)}},validationOptions)}__name(IsAscii_isAscii,"IsAscii_isAscii"),__name(IsAscii,"IsAscii");var isBase64=__webpack_require__2(42746),isBase64_default=__webpack_require__2.n(isBase64);const IS_BASE64="isBase64";function IsBase64_isBase64(value){return"string"==typeof value&&isBase64_default()(value)}function IsBase64(validationOptions){return ValidateBy({name:IS_BASE64,validator:{validate:(value,args2)=>IsBase64_isBase64(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be base64 encoded",validationOptions)}},validationOptions)}__name(IsBase64_isBase64,"IsBase64_isBase64"),__name(IsBase64,"IsBase64");var isByteLength=__webpack_require__2(73776),isByteLength_default=__webpack_require__2.n(isByteLength);const IS_BYTE_LENGTH="isByteLength";function IsByteLength_isByteLength(value,min2,max2){return"string"==typeof value&&isByteLength_default()(value,{min:min2,max:max2})}function IsByteLength(min2,max2,validationOptions){return ValidateBy({name:IS_BYTE_LENGTH,constraints:[min2,max2],validator:{validate:(value,args2)=>IsByteLength_isByteLength(value,args2.constraints[0],args2.constraints[1]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property's byte length must fall into ($constraint1, $constraint2) range",validationOptions)}},validationOptions)}__name(IsByteLength_isByteLength,"IsByteLength_isByteLength"),__name(IsByteLength,"IsByteLength");var isCreditCard=__webpack_require__2(26405),isCreditCard_default=__webpack_require__2.n(isCreditCard);const IS_CREDIT_CARD="isCreditCard";function IsCreditCard_isCreditCard(value){return"string"==typeof value&&isCreditCard_default()(value)}function IsCreditCard(validationOptions){return ValidateBy({name:IS_CREDIT_CARD,validator:{validate:(value,args2)=>IsCreditCard_isCreditCard(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a credit card",validationOptions)}},validationOptions)}__name(IsCreditCard_isCreditCard,"IsCreditCard_isCreditCard"),__name(IsCreditCard,"IsCreditCard");var isCurrency=__webpack_require__2(35966),isCurrency_default=__webpack_require__2.n(isCurrency);const IS_CURRENCY="isCurrency";function IsCurrency_isCurrency(value,options){return"string"==typeof value&&isCurrency_default()(value,options)}function IsCurrency(options,validationOptions){return ValidateBy({name:IS_CURRENCY,constraints:[options],validator:{validate:(value,args2)=>IsCurrency_isCurrency(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a currency",validationOptions)}},validationOptions)}__name(IsCurrency_isCurrency,"IsCurrency_isCurrency"),__name(IsCurrency,"IsCurrency");var isEmail=__webpack_require__2(3542),isEmail_default=__webpack_require__2.n(isEmail);const IS_EMAIL="isEmail";function IsEmail_isEmail(value,options){return"string"==typeof value&&isEmail_default()(value,options)}function IsEmail(options,validationOptions){return ValidateBy({name:IS_EMAIL,constraints:[options],validator:{validate:(value,args2)=>IsEmail_isEmail(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be an email",validationOptions)}},validationOptions)}__name(IsEmail_isEmail,"IsEmail_isEmail"),__name(IsEmail,"IsEmail");var isFQDN=__webpack_require__2(71909),isFQDN_default=__webpack_require__2.n(isFQDN);const IS_FQDN="isFqdn";function IsFQDN_isFQDN(value,options){return"string"==typeof value&&isFQDN_default()(value,options)}function IsFQDN(options,validationOptions){return ValidateBy({name:IS_FQDN,constraints:[options],validator:{validate:(value,args2)=>IsFQDN_isFQDN(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a valid domain name",validationOptions)}},validationOptions)}__name(IsFQDN_isFQDN,"IsFQDN_isFQDN"),__name(IsFQDN,"IsFQDN");var isFullWidth=__webpack_require__2(84502);const IS_FULL_WIDTH="isFullWidth";function IsFullWidth_isFullWidth(value){return"string"==typeof value&&(0,isFullWidth.default)(value)}function IsFullWidth(validationOptions){return ValidateBy({name:IS_FULL_WIDTH,validator:{validate:(value,args2)=>IsFullWidth_isFullWidth(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must contain a full-width characters",validationOptions)}},validationOptions)}__name(IsFullWidth_isFullWidth,"IsFullWidth_isFullWidth"),__name(IsFullWidth,"IsFullWidth");var isHalfWidth=__webpack_require__2(90971);const IS_HALF_WIDTH="isHalfWidth";function IsHalfWidth_isHalfWidth(value){return"string"==typeof value&&(0,isHalfWidth.default)(value)}function IsHalfWidth(validationOptions){return ValidateBy({name:IS_HALF_WIDTH,validator:{validate:(value,args2)=>IsHalfWidth_isHalfWidth(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must contain a half-width characters",validationOptions)}},validationOptions)}__name(IsHalfWidth_isHalfWidth,"IsHalfWidth_isHalfWidth"),__name(IsHalfWidth,"IsHalfWidth");var isVariableWidth=__webpack_require__2(10359),isVariableWidth_default=__webpack_require__2.n(isVariableWidth);const IS_VARIABLE_WIDTH="isVariableWidth";function IsVariableWidth_isVariableWidth(value){return"string"==typeof value&&isVariableWidth_default()(value)}function IsVariableWidth(validationOptions){return ValidateBy({name:IS_VARIABLE_WIDTH,validator:{validate:(value,args2)=>IsVariableWidth_isVariableWidth(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must contain a full-width and half-width characters",validationOptions)}},validationOptions)}__name(IsVariableWidth_isVariableWidth,"IsVariableWidth_isVariableWidth"),__name(IsVariableWidth,"IsVariableWidth");var isHexColor=__webpack_require__2(46223),isHexColor_default=__webpack_require__2.n(isHexColor);const IS_HEX_COLOR="isHexColor";function IsHexColor_isHexColor(value){return"string"==typeof value&&isHexColor_default()(value)}function IsHexColor(validationOptions){return ValidateBy({name:IS_HEX_COLOR,validator:{validate:(value,args2)=>IsHexColor_isHexColor(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a hexadecimal color",validationOptions)}},validationOptions)}__name(IsHexColor_isHexColor,"IsHexColor_isHexColor"),__name(IsHexColor,"IsHexColor");var isHexadecimal=__webpack_require__2(70281),isHexadecimal_default=__webpack_require__2.n(isHexadecimal);const IS_HEXADECIMAL="isHexadecimal";function IsHexadecimal_isHexadecimal(value){return"string"==typeof value&&isHexadecimal_default()(value)}function IsHexadecimal(validationOptions){return ValidateBy({name:IS_HEXADECIMAL,validator:{validate:(value,args2)=>IsHexadecimal_isHexadecimal(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a hexadecimal number",validationOptions)}},validationOptions)}function isValidationOptions(val){return!!val&&("each"in val||"message"in val||"groups"in val||"always"in val||"context"in val)}__name(IsHexadecimal_isHexadecimal,"IsHexadecimal_isHexadecimal"),__name(IsHexadecimal,"IsHexadecimal"),__name(isValidationOptions,"isValidationOptions");var isMACAddress=__webpack_require__2(53930),isMACAddress_default=__webpack_require__2.n(isMACAddress);const IS_MAC_ADDRESS="isMacAddress";function IsMacAddress_isMACAddress(value,options){return"string"==typeof value&&isMACAddress_default()(value,options)}function IsMACAddress(optionsOrValidationOptionsArg,validationOptionsArg){const options=isValidationOptions(optionsOrValidationOptionsArg)?void 0:optionsOrValidationOptionsArg,validationOptions=isValidationOptions(optionsOrValidationOptionsArg)?optionsOrValidationOptionsArg:validationOptionsArg;return ValidateBy({name:IS_MAC_ADDRESS,constraints:[options],validator:{validate:(value,args2)=>IsMacAddress_isMACAddress(value,options),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a MAC Address",validationOptions)}},validationOptions)}__name(IsMacAddress_isMACAddress,"IsMacAddress_isMACAddress"),__name(IsMACAddress,"IsMACAddress");var isIP=__webpack_require__2(54761),isIP_default=__webpack_require__2.n(isIP);const IS_IP="isIp";function IsIP_isIP(value,version){const versionStr=version?`${version}`:void 0;return"string"==typeof value&&isIP_default()(value,versionStr)}function IsIP(version,validationOptions){return ValidateBy({name:IS_IP,constraints:[version],validator:{validate:(value,args2)=>IsIP_isIP(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be an ip address",validationOptions)}},validationOptions)}__name(IsIP_isIP,"IsIP_isIP"),__name(IsIP,"IsIP");var isPort=__webpack_require__2(74258),isPort_default=__webpack_require__2.n(isPort);const IS_PORT="isPort";function IsPort_isPort(value){return"string"==typeof value&&isPort_default()(value)}function IsPort(validationOptions){return ValidateBy({name:IS_PORT,validator:{validate:(value,args2)=>IsPort_isPort(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a port",validationOptions)}},validationOptions)}__name(IsPort_isPort,"IsPort_isPort"),__name(IsPort,"IsPort");var isISBN=__webpack_require__2(13403),isISBN_default=__webpack_require__2.n(isISBN);const IS_ISBN="isIsbn";function IsISBN_isISBN(value,version){const versionStr=version?`${version}`:void 0;return"string"==typeof value&&isISBN_default()(value,versionStr)}function IsISBN(version,validationOptions){return ValidateBy({name:IS_ISBN,constraints:[version],validator:{validate:(value,args2)=>IsISBN_isISBN(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be an ISBN",validationOptions)}},validationOptions)}__name(IsISBN_isISBN,"IsISBN_isISBN"),__name(IsISBN,"IsISBN");var isISIN=__webpack_require__2(59220),isISIN_default=__webpack_require__2.n(isISIN);const IS_ISIN="isIsin";function IsISIN_isISIN(value){return"string"==typeof value&&isISIN_default()(value)}function IsISIN(validationOptions){return ValidateBy({name:IS_ISIN,validator:{validate:(value,args2)=>IsISIN_isISIN(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be an ISIN (stock/security identifier)",validationOptions)}},validationOptions)}__name(IsISIN_isISIN,"IsISIN_isISIN"),__name(IsISIN,"IsISIN");var isISO8601=__webpack_require__2(66894),isISO8601_default=__webpack_require__2.n(isISO8601);const IS_ISO8601="isIso8601";function IsISO8601_isISO8601(value,options){return"string"==typeof value&&isISO8601_default()(value,options)}function IsISO8601(options,validationOptions){return ValidateBy({name:IS_ISO8601,constraints:[options],validator:{validate:(value,args2)=>IsISO8601_isISO8601(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a valid ISO 8601 date string",validationOptions)}},validationOptions)}__name(IsISO8601_isISO8601,"IsISO8601_isISO8601"),__name(IsISO8601,"IsISO8601");var isJSON=__webpack_require__2(43617),isJSON_default=__webpack_require__2.n(isJSON);const IS_JSON="isJson";function IsJSON_isJSON(value){return"string"==typeof value&&isJSON_default()(value)}function IsJSON(validationOptions){return ValidateBy({name:IS_JSON,validator:{validate:(value,args2)=>IsJSON_isJSON(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a json string",validationOptions)}},validationOptions)}__name(IsJSON_isJSON,"IsJSON_isJSON"),__name(IsJSON,"IsJSON");var isJWT=__webpack_require__2(82734),isJWT_default=__webpack_require__2.n(isJWT);const IS_JWT="isJwt";function IsJWT_isJWT(value){return"string"==typeof value&&isJWT_default()(value)}function IsJWT(validationOptions){return ValidateBy({name:IS_JWT,validator:{validate:(value,args2)=>IsJWT_isJWT(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a jwt string",validationOptions)}},validationOptions)}__name(IsJWT_isJWT,"IsJWT_isJWT"),__name(IsJWT,"IsJWT");var isLowercase=__webpack_require__2(20384),isLowercase_default=__webpack_require__2.n(isLowercase);const IS_LOWERCASE="isLowercase";function IsLowercase_isLowercase(value){return"string"==typeof value&&isLowercase_default()(value)}function IsLowercase(validationOptions){return ValidateBy({name:IS_LOWERCASE,validator:{validate:(value,args2)=>IsLowercase_isLowercase(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a lowercase string",validationOptions)}},validationOptions)}__name(IsLowercase_isLowercase,"IsLowercase_isLowercase"),__name(IsLowercase,"IsLowercase");var isMobilePhone=__webpack_require__2(21746);const IS_MOBILE_PHONE="isMobilePhone";function IsMobilePhone_isMobilePhone(value,locale,options){return"string"==typeof value&&(0,isMobilePhone.ZP)(value,locale,options)}function IsMobilePhone(locale,options,validationOptions){return ValidateBy({name:IS_MOBILE_PHONE,constraints:[locale,options],validator:{validate:(value,args2)=>IsMobilePhone_isMobilePhone(value,args2.constraints[0],args2.constraints[1]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a phone number",validationOptions)}},validationOptions)}__name(IsMobilePhone_isMobilePhone,"IsMobilePhone_isMobilePhone"),__name(IsMobilePhone,"IsMobilePhone");var isISO31661Alpha2=__webpack_require__2(75477);const IS_ISO31661_ALPHA_2="isISO31661Alpha2";function IsISO31661Alpha2_isISO31661Alpha2(value){return"string"==typeof value&&(0,isISO31661Alpha2.default)(value)}function IsISO31661Alpha2(validationOptions){return ValidateBy({name:IS_ISO31661_ALPHA_2,validator:{validate:(value,args2)=>IsISO31661Alpha2_isISO31661Alpha2(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a valid ISO31661 Alpha2 code",validationOptions)}},validationOptions)}__name(IsISO31661Alpha2_isISO31661Alpha2,"IsISO31661Alpha2_isISO31661Alpha2"),__name(IsISO31661Alpha2,"IsISO31661Alpha2");var isISO31661Alpha3=__webpack_require__2(71045),isISO31661Alpha3_default=__webpack_require__2.n(isISO31661Alpha3);const IS_ISO31661_ALPHA_3="isISO31661Alpha3";function IsISO31661Alpha3_isISO31661Alpha3(value){return"string"==typeof value&&isISO31661Alpha3_default()(value)}function IsISO31661Alpha3(validationOptions){return ValidateBy({name:IS_ISO31661_ALPHA_3,validator:{validate:(value,args2)=>IsISO31661Alpha3_isISO31661Alpha3(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a valid ISO31661 Alpha3 code",validationOptions)}},validationOptions)}__name(IsISO31661Alpha3_isISO31661Alpha3,"IsISO31661Alpha3_isISO31661Alpha3"),__name(IsISO31661Alpha3,"IsISO31661Alpha3");var isMongoId=__webpack_require__2(57138),isMongoId_default=__webpack_require__2.n(isMongoId);const IS_MONGO_ID="isMongoId";function IsMongoId_isMongoId(value){return"string"==typeof value&&isMongoId_default()(value)}function IsMongoId(validationOptions){return ValidateBy({name:IS_MONGO_ID,validator:{validate:(value,args2)=>IsMongoId_isMongoId(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a mongodb id",validationOptions)}},validationOptions)}__name(IsMongoId_isMongoId,"IsMongoId_isMongoId"),__name(IsMongoId,"IsMongoId");var isMultibyte=__webpack_require__2(98799),isMultibyte_default=__webpack_require__2.n(isMultibyte);const IS_MULTIBYTE="isMultibyte";function IsMultibyte_isMultibyte(value){return"string"==typeof value&&isMultibyte_default()(value)}function IsMultibyte(validationOptions){return ValidateBy({name:IS_MULTIBYTE,validator:{validate:(value,args2)=>IsMultibyte_isMultibyte(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must contain one or more multibyte chars",validationOptions)}},validationOptions)}__name(IsMultibyte_isMultibyte,"IsMultibyte_isMultibyte"),__name(IsMultibyte,"IsMultibyte");var isSurrogatePair=__webpack_require__2(11510),isSurrogatePair_default=__webpack_require__2.n(isSurrogatePair);const IS_SURROGATE_PAIR="isSurrogatePair";function IsSurrogatePair_isSurrogatePair(value){return"string"==typeof value&&isSurrogatePair_default()(value)}function IsSurrogatePair(validationOptions){return ValidateBy({name:IS_SURROGATE_PAIR,validator:{validate:(value,args2)=>IsSurrogatePair_isSurrogatePair(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must contain any surrogate pairs chars",validationOptions)}},validationOptions)}__name(IsSurrogatePair_isSurrogatePair,"IsSurrogatePair_isSurrogatePair"),__name(IsSurrogatePair,"IsSurrogatePair");var isURL=__webpack_require__2(36642),isURL_default=__webpack_require__2.n(isURL);const IS_URL="isUrl";function IsUrl_isURL(value,options){return"string"==typeof value&&isURL_default()(value,options)}function IsUrl(options,validationOptions){return ValidateBy({name:IS_URL,constraints:[options],validator:{validate:(value,args2)=>IsUrl_isURL(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be an URL address",validationOptions)}},validationOptions)}__name(IsUrl_isURL,"IsUrl_isURL"),__name(IsUrl,"IsUrl");var isUUID=__webpack_require__2(23942),isUUID_default=__webpack_require__2.n(isUUID);const IS_UUID="isUuid";function IsUUID_isUUID(value,version){return"string"==typeof value&&isUUID_default()(value,version)}function IsUUID(version,validationOptions){return ValidateBy({name:IS_UUID,constraints:[version],validator:{validate:(value,args2)=>IsUUID_isUUID(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a UUID",validationOptions)}},validationOptions)}__name(IsUUID_isUUID,"IsUUID_isUUID"),__name(IsUUID,"IsUUID");const IS_FIREBASE_PUSH_ID="IsFirebasePushId";function isFirebasePushId(value){return"string"==typeof value&&20===value.length&&/^[a-zA-Z0-9_-]*$/.test(value)}function IsFirebasePushId(validationOptions){return ValidateBy({name:IS_FIREBASE_PUSH_ID,validator:{validate:(value,args2)=>isFirebasePushId(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a Firebase Push Id",validationOptions)}},validationOptions)}__name(isFirebasePushId,"isFirebasePushId"),__name(IsFirebasePushId,"IsFirebasePushId");var isUppercase=__webpack_require__2(68608),isUppercase_default=__webpack_require__2.n(isUppercase);const IS_UPPERCASE="isUppercase";function IsUppercase_isUppercase(value){return"string"==typeof value&&isUppercase_default()(value)}function IsUppercase(validationOptions){return ValidateBy({name:IS_UPPERCASE,validator:{validate:(value,args2)=>IsUppercase_isUppercase(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be uppercase",validationOptions)}},validationOptions)}__name(IsUppercase_isUppercase,"IsUppercase_isUppercase"),__name(IsUppercase,"IsUppercase");var isLength=__webpack_require__2(68109),isLength_default=__webpack_require__2.n(isLength);const IS_LENGTH="isLength";function Length_length(value,min2,max2){return"string"==typeof value&&isLength_default()(value,{min:min2,max:max2})}function Length(min2,max2,validationOptions){return ValidateBy({name:IS_LENGTH,constraints:[min2,max2],validator:{validate:(value,args2)=>Length_length(value,args2.constraints[0],args2.constraints[1]),defaultMessage:buildMessage((eachPrefix,args2)=>{const isMinLength=null!==args2.constraints[0]&&void 0!==args2.constraints[0],isMaxLength=null!==args2.constraints[1]&&void 0!==args2.constraints[1];return isMinLength&&(!args2.value||args2.value.lengthargs2.constraints[1]?eachPrefix+"$property must be shorter than or equal to $constraint2 characters":eachPrefix+"$property must be longer than or equal to $constraint1 and shorter than or equal to $constraint2 characters"},validationOptions)}},validationOptions)}__name(Length_length,"Length_length"),__name(Length,"Length");const MAX_LENGTH="maxLength";function maxLength(value,max2){return"string"==typeof value&&isLength_default()(value,{min:0,max:max2})}function MaxLength(max2,validationOptions){return ValidateBy({name:MAX_LENGTH,constraints:[max2],validator:{validate:(value,args2)=>maxLength(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be shorter than or equal to $constraint1 characters",validationOptions)}},validationOptions)}__name(maxLength,"maxLength"),__name(MaxLength,"MaxLength");const MIN_LENGTH="minLength";function minLength(value,min2){return"string"==typeof value&&isLength_default()(value,{min:min2})}function MinLength(min2,validationOptions){return ValidateBy({name:MIN_LENGTH,constraints:[min2],validator:{validate:(value,args2)=>minLength(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be longer than or equal to $constraint1 characters",validationOptions)}},validationOptions)}__name(minLength,"minLength"),__name(MinLength,"MinLength");var matches=__webpack_require__2(24359),matches_default=__webpack_require__2.n(matches);const MATCHES="matches";function Matches_matches(value,pattern,modifiers){return"string"==typeof value&&matches_default()(value,pattern,modifiers)}function Matches(pattern,modifiersOrAnnotationOptions,validationOptions){let modifiers;return modifiersOrAnnotationOptions&&modifiersOrAnnotationOptions instanceof Object&&!validationOptions?validationOptions=modifiersOrAnnotationOptions:modifiers=modifiersOrAnnotationOptions,ValidateBy({name:MATCHES,constraints:[pattern,modifiers],validator:{validate:(value,args2)=>Matches_matches(value,args2.constraints[0],args2.constraints[1]),defaultMessage:buildMessage((eachPrefix,args2)=>eachPrefix+"$property must match $constraint1 regular expression",validationOptions)}},validationOptions)}__name(Matches_matches,"Matches_matches"),__name(Matches,"Matches");const metadata_min_json={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([457]\\d{6})$","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2457]\\d{6})$","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"1|([267]\\d{6})$","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"0|(183[12])",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:[25689]\\d|40)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-24679]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([3-8]\\d{6})$","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-79]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}",[10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|74)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:355[0-46-9]|4(?:5(?:2[024-9]|5[0-46-9])|60[1-9]|9(?:2[0-5]|49)))\\d{4}|52(?:3(?:[2-46-9][02-9]|5[02-46-9])|4(?:[2-478][02-9]|5[034]|6[2-9]|9[05-9])|7[2-4]\\d)\\d{5}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[1256]|33|44|66|77|88)|622)[2-9]\\d{6}"],0,0,0,["600[2-9]\\d{6}"]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"0|(1(?:[12]\\d|79)\\d\\d)",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:(?:1\\d|[36])\\d{3}|9101)\\d{6}|[124-8]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1 $2",["[146][2-9]|[2578]"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["[39]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["5"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:1\\d|2[02-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[05]\\d|[23]1|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-59]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-59]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-24-69]))|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-278])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94|80\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"0|([25-9]\\d{5})$","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d\\d|606)\\d{5}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|1[0-24-7]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"1|([3-9]\\d{6})$","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-489]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([25-8]\\d{5})$","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|55\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[38]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([0-24-8]\\d{5})$","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|(?:[235-8]\\d|99)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"0|(1001)"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]","5(?:29|38)[89]0"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:29(?:[189][05]|2[29]|3[01])|38(?:8[057]|9[05]))\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|80|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|6[0-367]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"0|([24-9]\\d{6})$","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[57-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[57-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","670$1",0,"670"],MQ:["596","00","(?:69|80)\\d{7}|(?:59|97)6\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"1|([34]\\d{6})$","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:5|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["5"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[3467]|9[13-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[129]\\d|31|77|88)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[017]\\d|[235][1-9]|4[0-35-9]|6[0-46-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9])|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1[36-8]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","[2-57-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[04]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|[89]\\d{6,9}|1\\d{4,5}",[5,6,7,8,9,10],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|59"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-579]|6[2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,0," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","6\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","(?:[45]|80\\d\\d)\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","[2-7]\\d{7}|800\\d{4}(?:\\d{2})?|2\\d{6}",[7,8,9],[["(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]]],RE:["262","00","9769\\d{5}|(?:26|[68]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,"26[23]|69|[89]"],RO:["40","00","(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-5]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["24|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|(5\\d{6})$","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"1|([2-479]\\d{6})$","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:00|[1-57-9]\\d)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-46-8]\\d{6})$","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[26-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["4[45][0-5]|5(?:0|6[37])|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]","4[45][0-5]|5(?:0|6(?:3[14-7]|7))|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["[3-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}",[10],[["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|44))|82(?:2(?:0[0-3]|[268]2)|3(?:0[02]|22|33)|4(?:00|4[24]|65|82)|5(?:00|29|58|83)|6(?:00|66|82)|7(?:58|77)|8(?:00|42|88)|9(?:00|9[89])))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[08]|3[0-289]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01579]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:355[0-46-9]|4(?:5(?:2[024-9]|5[0-46-9])|60[1-9]|9(?:2[0-5]|49)))\\d{4}|52(?:3(?:[2-46-9][02-9]|5[02-46-9])|4(?:[2-478][02-9]|5[034]|6[2-9]|9[05-9])|7[2-4]\\d)\\d{5}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[1256]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","4\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["4"],"0$1"]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:33|55|[679]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-578]\\d{6})$","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","80\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,"269|63"],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:005|[1-9]\\d\\d)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:005|[1-9]\\d\\d)\\d{5}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"[0-36-9]\\d{8}",[9],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],0,0,0,0,0,0,[0,["[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["4"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[19]"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-3]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]],883:["883",0,"(?:210|370\\d\\d)\\d{7}|51\\d{7}(?:\\d{3})?",[9,10,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["2"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[35]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:210|(?:370[1-9]|51[013]0)\\d)\\d{7}|5100\\d{5}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function withMetadata(func,_arguments){var args2=Array.prototype.slice.call(_arguments);return args2.push(metadata_min_json),func.apply(this,args2)}function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?__name(function(obj2){return typeof obj2},"_typeof"):__name(function(obj2){return obj2&&"function"==typeof Symbol&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},"_typeof"))(obj)}function _objectSpread(target){for(var i2=1;i2nb)return 1;if(nb>na)return-1;if(!isNaN(na)&&isNaN(nb))return 1;if(isNaN(na)&&!isNaN(nb))return-1}return a[1]&&b2[1]?a[1]>b2[1]?1:a[1]=2&&VALID_PHONE_NUMBER_PATTERN.test(number)}function isViablePhoneNumberStart(number){return VALID_PHONE_NUMBER_START_REG_EXP.test(number)}__name(isViablePhoneNumber,"isViablePhoneNumber"),__name(isViablePhoneNumberStart,"isViablePhoneNumberStart");var EXTN_PATTERN=new RegExp("(?:"+createExtensionPattern()+")$","i");function extractExtension(number){var start=number.search(EXTN_PATTERN);if(start<0)return{};for(var numberWithoutExtension=number.slice(0,start),matches2=number.match(EXTN_PATTERN),i2=1;i2=_iterator.length)break;_ref=_iterator[_i++]}else{if((_i=_iterator.next()).done)break;_ref=_i.value}result2+=parsePhoneNumberCharacter(_ref,result2)||""}return result2}function parsePhoneNumberCharacter(character,prevParsedCharacters){return"+"===character?prevParsedCharacters?void 0:"+":parseDigit(character)}function mergeArrays(a,b2){var merged=a.slice(),_iterator=b2,_isArray=Array.isArray(_iterator),_i=0;for(_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{if((_i=_iterator.next()).done)break;_ref=_i.value}var element=_ref;a.indexOf(element)<0&&merged.push(element)}return merged.sort(function(a2,b3){return a2-b3})}function checkNumberLength(nationalNumber,metadata2){return checkNumberLengthForType(nationalNumber,void 0,metadata2)}function checkNumberLengthForType(nationalNumber,type,metadata2){var type_info=metadata2.type(type),possible_lengths=type_info&&type_info.possibleLengths()||metadata2.possibleLengths();if(!possible_lengths)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===type){if(!metadata2.type("FIXED_LINE"))return checkNumberLengthForType(nationalNumber,"MOBILE",metadata2);var mobile_type=metadata2.type("MOBILE");mobile_type&&(possible_lengths=mergeArrays(possible_lengths,mobile_type.possibleLengths()))}else if(type&&!type_info)return"INVALID_LENGTH";var actual_length=nationalNumber.length,minimum_length=possible_lengths[0];return minimum_length===actual_length?"IS_POSSIBLE":minimum_length>actual_length?"TOO_SHORT":possible_lengths[possible_lengths.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function isPossiblePhoneNumber(input,options,metadata2){if(void 0===options&&(options={}),metadata2=new Metadata(metadata2),options.v2){if(!input.countryCallingCode)throw new Error("Invalid phone number object passed");metadata2.selectNumberingPlan(input.countryCallingCode)}else{if(!input.phone)return!1;if(input.country){if(!metadata2.hasCountry(input.country))throw new Error("Unknown country: ".concat(input.country));metadata2.country(input.country)}else{if(!input.countryCallingCode)throw new Error("Invalid phone number object passed");metadata2.selectNumberingPlan(input.countryCallingCode)}}if(metadata2.possibleLengths())return isPossibleNumber(input.phone||input.nationalNumber,metadata2);if(input.countryCallingCode&&metadata2.isNonGeographicCallingCode(input.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function isPossibleNumber(nationalNumber,metadata2){return"IS_POSSIBLE"===checkNumberLength(nationalNumber,metadata2)}function RFC3966_slicedToArray(arr,i2){return RFC3966_arrayWithHoles(arr)||RFC3966_iterableToArrayLimit(arr,i2)||RFC3966_nonIterableRest()}function RFC3966_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function RFC3966_iterableToArrayLimit(arr,i2){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i2||_arr.length!==i2);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&null!=_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}function RFC3966_arrayWithHoles(arr){if(Array.isArray(arr))return arr}function parseRFC3966(text){var number,ext,_iterator=(text=text.replace(/^tel:/,"tel=")).split(";"),_isArray=Array.isArray(_iterator),_i=0;for(_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{if((_i=_iterator.next()).done)break;_ref=_i.value}var _part$split2=RFC3966_slicedToArray(_ref.split("="),2),name=_part$split2[0],value=_part$split2[1];switch(name){case"tel":number=value;break;case"ext":ext=value;break;case"phone-context":"+"===value[0]&&(number=value+number)}}if(!isViablePhoneNumber(number))return{};var result2={number};return ext&&(result2.ext=ext),result2}function formatRFC3966(_ref2){var number=_ref2.number,ext=_ref2.ext;if(!number)return"";if("+"!==number[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(number).concat(ext?";ext="+ext:"")}function matchesEntirely(text,regular_expression){return text=text||"",new RegExp("^(?:"+regular_expression+")$").test(text)}__name(parseDigit,"parseDigit"),__name(function parseDigits(string){var result2="",_iterator=string.split(""),_isArray=Array.isArray(_iterator),_i=0;for(_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{if((_i=_iterator.next()).done)break;_ref=_i.value}var digit=parseDigit(_ref);digit&&(result2+=digit)}return result2},"parseDigits"),__name(parseIncompletePhoneNumber,"parseIncompletePhoneNumber"),__name(parsePhoneNumberCharacter,"parsePhoneNumberCharacter"),__name(mergeArrays,"mergeArrays"),__name(checkNumberLength,"checkNumberLength"),__name(checkNumberLengthForType,"checkNumberLengthForType"),__name(isPossiblePhoneNumber,"isPossiblePhoneNumber"),__name(isPossibleNumber,"isPossibleNumber"),__name(RFC3966_slicedToArray,"RFC3966_slicedToArray"),__name(RFC3966_nonIterableRest,"RFC3966_nonIterableRest"),__name(RFC3966_iterableToArrayLimit,"RFC3966_iterableToArrayLimit"),__name(RFC3966_arrayWithHoles,"RFC3966_arrayWithHoles"),__name(parseRFC3966,"parseRFC3966"),__name(formatRFC3966,"formatRFC3966"),__name(matchesEntirely,"matchesEntirely");var NON_FIXED_LINE_PHONE_TYPES=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function getNumberType(input,options,metadata2){if(options=options||{},input.country){(metadata2=new Metadata(metadata2)).selectNumberingPlan(input.country,input.countryCallingCode);var nationalNumber=options.v2?input.nationalNumber:input.phone;if(matchesEntirely(nationalNumber,metadata2.nationalNumberPattern())){if(isNumberTypeEqualTo(nationalNumber,"FIXED_LINE",metadata2))return metadata2.type("MOBILE")&&""===metadata2.type("MOBILE").pattern()||!metadata2.type("MOBILE")||isNumberTypeEqualTo(nationalNumber,"MOBILE",metadata2)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var _i=0,_NON_FIXED_LINE_PHONE=NON_FIXED_LINE_PHONE_TYPES;_i<_NON_FIXED_LINE_PHONE.length;_i++){var type=_NON_FIXED_LINE_PHONE[_i];if(isNumberTypeEqualTo(nationalNumber,type,metadata2))return type}}}}function isNumberTypeEqualTo(nationalNumber,type,metadata2){return!(!(type=metadata2.type(type))||!type.pattern()||type.possibleLengths()&&type.possibleLengths().indexOf(nationalNumber.length)<0)&&matchesEntirely(nationalNumber,type.pattern())}function isValidNumber(input,options,metadata2){return options=options||{},metadata2=new Metadata(metadata2),!!input.country&&(metadata2.selectNumberingPlan(input.country,input.countryCallingCode),metadata2.hasTypes()?void 0!==getNumberType(input,options,metadata2.metadata):matchesEntirely(options.v2?input.nationalNumber:input.phone,metadata2.nationalNumberPattern()))}function applyInternationalSeparatorStyle(formattedNumber){return formattedNumber.replace(new RegExp("[".concat(VALID_PUNCTUATION,"]+"),"g")," ").trim()}__name(getNumberType,"getNumberType"),__name(isNumberTypeEqualTo,"isNumberTypeEqualTo"),__name(isValidNumber,"isValidNumber"),__name(applyInternationalSeparatorStyle,"applyInternationalSeparatorStyle");var FIRST_GROUP_PATTERN=/(\$\d)/;function formatNationalNumberUsingFormat(number,format,_ref){var useInternationalFormat=_ref.useInternationalFormat,withNationalPrefix=_ref.withNationalPrefix,formattedNumber=(_ref.carrierCode,_ref.metadata,number.replace(new RegExp(format.pattern()),useInternationalFormat?format.internationalFormat():withNationalPrefix&&format.nationalPrefixFormattingRule()?format.format().replace(FIRST_GROUP_PATTERN,format.nationalPrefixFormattingRule()):format.format()));return useInternationalFormat?applyInternationalSeparatorStyle(formattedNumber):formattedNumber}__name(formatNationalNumberUsingFormat,"formatNationalNumberUsingFormat");var SINGLE_IDD_PREFIX_REG_EXP=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function getIddPrefix(country,callingCode,metadata2){var countryMetadata=new Metadata(metadata2);return countryMetadata.selectNumberingPlan(country,callingCode),countryMetadata.defaultIDDPrefix()?countryMetadata.defaultIDDPrefix():SINGLE_IDD_PREFIX_REG_EXP.test(countryMetadata.IDDPrefix())?countryMetadata.IDDPrefix():void 0}function format_objectSpread(target){for(var i2=1;i2=_iterator.length)break;_ref=_iterator[_i++]}else{if((_i=_iterator.next()).done)break;_ref=_i.value}var format=_ref;if(format.leadingDigitsPatterns().length>0){var lastLeadingDigitsPattern=format.leadingDigitsPatterns()[format.leadingDigitsPatterns().length-1];if(0!==nationalNnumber.search(lastLeadingDigitsPattern))continue}if(matchesEntirely(nationalNnumber,format.pattern()))return format}}function addExtension(formattedNumber,ext,metadata2,formatExtension){return ext?formatExtension(formattedNumber,ext,metadata2):formattedNumber}function formatIDD(nationalNumber,carrierCode,countryCallingCode,fromCountry,metadata2){if(getCountryCallingCode(fromCountry,metadata2.metadata)===countryCallingCode){var formattedNumber=formatNationalNumber(nationalNumber,carrierCode,"NATIONAL",metadata2);return"1"===countryCallingCode?countryCallingCode+" "+formattedNumber:formattedNumber}var iddPrefix=getIddPrefix(fromCountry,void 0,metadata2.metadata);if(iddPrefix)return"".concat(iddPrefix," ").concat(countryCallingCode," ").concat(formatNationalNumber(nationalNumber,null,"INTERNATIONAL",metadata2))}function PhoneNumber_objectSpread(target){for(var i2=1;i20&&"0"===matchedGroups[1]))return number}}}function extractNationalNumberFromPossiblyIncompleteNumber(number,metadata2){if(number&&metadata2.numberingPlan.nationalPrefixForParsing()){var prefixPattern=new RegExp("^(?:"+metadata2.numberingPlan.nationalPrefixForParsing()+")"),prefixMatch=prefixPattern.exec(number);if(prefixMatch){var nationalNumber,carrierCode,nationalPrefix,capturedGroupsCount=prefixMatch.length-1,hasCapturedGroups=capturedGroupsCount>0&&prefixMatch[capturedGroupsCount];if(metadata2.nationalPrefixTransformRule()&&hasCapturedGroups)nationalNumber=number.replace(prefixPattern,metadata2.nationalPrefixTransformRule()),capturedGroupsCount>1&&(carrierCode=prefixMatch[1]);else{var prefixBeforeNationalNumber=prefixMatch[0];nationalNumber=number.slice(prefixBeforeNationalNumber.length),hasCapturedGroups&&(carrierCode=prefixMatch[1])}if(hasCapturedGroups){var possiblePositionOfTheFirstCapturedGroup=number.indexOf(prefixMatch[1]);number.slice(0,possiblePositionOfTheFirstCapturedGroup)===metadata2.numberingPlan.nationalPrefix()&&(nationalPrefix=metadata2.numberingPlan.nationalPrefix())}else nationalPrefix=prefixMatch[0];return{nationalNumber,nationalPrefix,carrierCode}}}return{nationalNumber:number}}function extractNationalNumber(number,metadata2){var _extractNationalNumbe=extractNationalNumberFromPossiblyIncompleteNumber(number,metadata2),nationalNumber=_extractNationalNumbe.nationalNumber,carrierCode=_extractNationalNumbe.carrierCode;if(!shouldExtractNationalPrefix(number,nationalNumber,metadata2))return{nationalNumber:number};if(number.length!==nationalNumber.length+(carrierCode?carrierCode.length:0)&&metadata2.possibleLengths())switch(checkNumberLength(nationalNumber,metadata2)){case"TOO_SHORT":case"INVALID_LENGTH":return{nationalNumber:number}}return{nationalNumber,carrierCode}}function shouldExtractNationalPrefix(number,nationalSignificantNumber,metadata2){return!(matchesEntirely(number,metadata2.nationalNumberPattern())&&!matchesEntirely(nationalSignificantNumber,metadata2.nationalNumberPattern()))}function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number,country,callingCode,metadata2){var countryCallingCode=country?getCountryCallingCode(country,metadata2):callingCode;if(0===number.indexOf(countryCallingCode)){(metadata2=new Metadata(metadata2)).selectNumberingPlan(country,callingCode);var possibleShorterNumber=number.slice(countryCallingCode.length),possibleShorterNationalNumber=extractNationalNumber(possibleShorterNumber,metadata2).nationalNumber,nationalNumber=extractNationalNumber(number,metadata2).nationalNumber;if(!matchesEntirely(nationalNumber,metadata2.nationalNumberPattern())&&matchesEntirely(possibleShorterNationalNumber,metadata2.nationalNumberPattern())||"TOO_LONG"===checkNumberLength(nationalNumber,metadata2))return{countryCallingCode,number:possibleShorterNumber}}return{number}}function extractCountryCallingCode(number,country,callingCode,metadata2){if(!number)return{};if("+"!==number[0]){var numberWithoutIDD=stripIddPrefix(number,country,callingCode,metadata2);if(!numberWithoutIDD||numberWithoutIDD===number){if(country||callingCode){var _extractCountryCallin=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number,country,callingCode,metadata2),countryCallingCode=_extractCountryCallin.countryCallingCode,shorterNumber=_extractCountryCallin.number;if(countryCallingCode)return{countryCallingCode,number:shorterNumber}}return{number}}number="+"+numberWithoutIDD}if("0"===number[1])return{};metadata2=new Metadata(metadata2);for(var i2=2;i2-1<=3&&i2<=number.length;){var _countryCallingCode=number.slice(1,i2);if(metadata2.hasCallingCode(_countryCallingCode))return metadata2.selectNumberingPlan(_countryCallingCode),{countryCallingCode:_countryCallingCode,number:number.slice(i2)};i2++}return{}}__name(stripIddPrefix,"stripIddPrefix"),__name(extractNationalNumberFromPossiblyIncompleteNumber,"extractNationalNumberFromPossiblyIncompleteNumber"),__name(extractNationalNumber,"extractNationalNumber"),__name(shouldExtractNationalPrefix,"shouldExtractNationalPrefix"),__name(extractCountryCallingCodeFromInternationalNumberWithoutPlusSign,"extractCountryCallingCodeFromInternationalNumberWithoutPlusSign"),__name(extractCountryCallingCode,"extractCountryCallingCode");function getCountryByCallingCode(callingCode,nationalPhoneNumber,metadata2){var possibleCountries=metadata2.getCountryCodesForCallingCode(callingCode);if(possibleCountries)return 1===possibleCountries.length?possibleCountries[0]:selectCountryFromList(possibleCountries,nationalPhoneNumber,metadata2.metadata)}function selectCountryFromList(possibleCountries,nationalPhoneNumber,metadata2){metadata2=new Metadata(metadata2);var _iterator=possibleCountries,_isArray=Array.isArray(_iterator),_i=0;for(_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{if((_i=_iterator.next()).done)break;_ref=_i.value}var country=_ref;if(metadata2.country(country),metadata2.leadingDigits()){if(nationalPhoneNumber&&0===nationalPhoneNumber.search(metadata2.leadingDigits()))return country}else if(getNumberType({phone:nationalPhoneNumber,country},void 0,metadata2.metadata))return country}}__name(getCountryByCallingCode,"getCountryByCallingCode"),__name(selectCountryFromList,"selectCountryFromList");var PHONE_NUMBER_START_PATTERN=new RegExp("[+\uff0b0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]"),AFTER_PHONE_NUMBER_END_PATTERN=new RegExp("[^0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9#]+$");function parse(text,options,metadata2){if(options=options||{},metadata2=new Metadata(metadata2),options.defaultCountry&&!metadata2.hasCountry(options.defaultCountry))throw options.v2?new ParseError("INVALID_COUNTRY"):new Error("Unknown country: ".concat(options.defaultCountry));var _parseInput=parseInput(text,options.v2,options.extract),formattedPhoneNumber=_parseInput.number,ext=_parseInput.ext,error=_parseInput.error;if(!formattedPhoneNumber){if(options.v2)throw new ParseError("TOO_SHORT"===error?"TOO_SHORT":"NOT_A_NUMBER");return{}}var _parsePhoneNumber=parse_parsePhoneNumber(formattedPhoneNumber,options.defaultCountry,options.defaultCallingCode,metadata2),country=_parsePhoneNumber.country,nationalNumber=_parsePhoneNumber.nationalNumber,countryCallingCode=_parsePhoneNumber.countryCallingCode,carrierCode=_parsePhoneNumber.carrierCode;if(!metadata2.hasSelectedNumberingPlan()){if(options.v2)throw new ParseError("INVALID_COUNTRY");return{}}if(!nationalNumber||nationalNumber.length<2){if(options.v2)throw new ParseError("TOO_SHORT");return{}}if(nationalNumber.length>17){if(options.v2)throw new ParseError("TOO_LONG");return{}}if(options.v2){var phoneNumber=new PhoneNumber(countryCallingCode,nationalNumber,metadata2.metadata);return country&&(phoneNumber.country=country),carrierCode&&(phoneNumber.carrierCode=carrierCode),ext&&(phoneNumber.ext=ext),phoneNumber}var valid=!!(options.extended?metadata2.hasSelectedNumberingPlan():country)&&matchesEntirely(nationalNumber,metadata2.nationalNumberPattern());return options.extended?{country,countryCallingCode,carrierCode,valid,possible:!!valid||!(!0!==options.extended||!metadata2.possibleLengths()||!isPossibleNumber(nationalNumber,metadata2)),phone:nationalNumber,ext}:valid?result(country,nationalNumber,ext):{}}function extractFormattedPhoneNumber(text,extract,throwOnError){if(text){if(text.length>250){if(throwOnError)throw new ParseError("TOO_LONG");return}if(!1===extract)return text;var startsAt=text.search(PHONE_NUMBER_START_PATTERN);if(!(startsAt<0))return text.slice(startsAt).replace(AFTER_PHONE_NUMBER_END_PATTERN,"")}}function parseInput(text,v2,extract){if(text&&0===text.indexOf("tel:"))return parseRFC3966(text);var number=extractFormattedPhoneNumber(text,extract,v2);if(!number)return{};if(!isViablePhoneNumber(number))return isViablePhoneNumberStart(number)?{error:"TOO_SHORT"}:{};var withExtensionStripped=extractExtension(number);return withExtensionStripped.ext?withExtensionStripped:{number}}function result(country,nationalNumber,ext){var result2={country,phone:nationalNumber};return ext&&(result2.ext=ext),result2}function parse_parsePhoneNumber(formattedPhoneNumber,defaultCountry,defaultCallingCode,metadata2){var country,_extractCountryCallin=extractCountryCallingCode(parseIncompletePhoneNumber(formattedPhoneNumber),defaultCountry,defaultCallingCode,metadata2.metadata),countryCallingCode=_extractCountryCallin.countryCallingCode,number=_extractCountryCallin.number;if(countryCallingCode)metadata2.selectNumberingPlan(countryCallingCode);else{if(!number||!defaultCountry&&!defaultCallingCode)return{};metadata2.selectNumberingPlan(defaultCountry,defaultCallingCode),!!defaultCountry&&(country=defaultCountry),countryCallingCode=defaultCallingCode||getCountryCallingCode(defaultCountry,metadata2.metadata)}if(!number)return{countryCallingCode};var _extractNationalNumbe=extractNationalNumber(parseIncompletePhoneNumber(number),metadata2),nationalNumber=_extractNationalNumbe.nationalNumber,carrierCode=_extractNationalNumbe.carrierCode,exactCountry=getCountryByCallingCode(countryCallingCode,nationalNumber,metadata2);return exactCountry&&(country=exactCountry,"001"===exactCountry||metadata2.country(country)),{country,countryCallingCode,nationalNumber,carrierCode}}function parsePhoneNumber_objectSpread(target){for(var i2=1;i2isPhoneNumber(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a valid phone number",validationOptions)}},validationOptions)}__name(isPhoneNumber,"isPhoneNumber"),__name(IsPhoneNumber,"IsPhoneNumber");const IS_MILITARY_TIME="isMilitaryTime";function isMilitaryTime(value){return"string"==typeof value&&matches_default()(value,/^([01]\d|2[0-3]):?([0-5]\d)$/)}function IsMilitaryTime(validationOptions){return ValidateBy({name:IS_MILITARY_TIME,validator:{validate:(value,args2)=>isMilitaryTime(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a valid representation of military time in the format HH:MM",validationOptions)}},validationOptions)}__name(isMilitaryTime,"isMilitaryTime"),__name(IsMilitaryTime,"IsMilitaryTime");var isHash=__webpack_require__2(8795),isHash_default=__webpack_require__2.n(isHash);const IS_HASH="isHash";function IsHash_isHash(value,algorithm){return"string"==typeof value&&isHash_default()(value,algorithm)}function IsHash(algorithm,validationOptions){return ValidateBy({name:IS_HASH,constraints:[algorithm],validator:{validate:(value,args2)=>IsHash_isHash(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a hash of type $constraint1",validationOptions)}},validationOptions)}__name(IsHash_isHash,"IsHash_isHash"),__name(IsHash,"IsHash");var isISSN=__webpack_require__2(66329),isISSN_default=__webpack_require__2.n(isISSN);const IS_ISSN="isISSN";function IsISSN_isISSN(value,options){return"string"==typeof value&&isISSN_default()(value,options)}function IsISSN(options,validationOptions){return ValidateBy({name:IS_ISSN,constraints:[options],validator:{validate:(value,args2)=>IsISSN_isISSN(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a ISSN",validationOptions)}},validationOptions)}__name(IsISSN_isISSN,"IsISSN_isISSN"),__name(IsISSN,"IsISSN");const IS_DATE_STRING="isDateString";function isDateString(value,options){return IsISO8601_isISO8601(value,options)}function IsDateString(options,validationOptions){return ValidateBy({name:IS_DATE_STRING,constraints:[options],validator:{validate:(value,args2)=>isDateString(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a valid ISO 8601 date string",validationOptions)}},validationOptions)}__name(isDateString,"isDateString"),__name(IsDateString,"IsDateString");var isBoolean=__webpack_require__2(33758),isBoolean_default=__webpack_require__2.n(isBoolean);const IS_BOOLEAN_STRING="isBooleanString";function isBooleanString(value){return"string"==typeof value&&isBoolean_default()(value)}function IsBooleanString(validationOptions){return ValidateBy({name:IS_BOOLEAN_STRING,validator:{validate:(value,args2)=>isBooleanString(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a boolean string",validationOptions)}},validationOptions)}__name(isBooleanString,"isBooleanString"),__name(IsBooleanString,"IsBooleanString");var isNumeric=__webpack_require__2(80619),isNumeric_default=__webpack_require__2.n(isNumeric);const IS_NUMBER_STRING="isNumberString";function isNumberString(value,options){return"string"==typeof value&&isNumeric_default()(value,options)}function IsNumberString(options,validationOptions){return ValidateBy({name:IS_NUMBER_STRING,constraints:[options],validator:{validate:(value,args2)=>isNumberString(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a number string",validationOptions)}},validationOptions)}__name(isNumberString,"isNumberString"),__name(IsNumberString,"IsNumberString");var isBase32=__webpack_require__2(32371),isBase32_default=__webpack_require__2.n(isBase32);const IS_BASE32="isBase32";function IsBase32_isBase32(value){return"string"==typeof value&&isBase32_default()(value)}function IsBase32(validationOptions){return ValidateBy({name:IS_BASE32,validator:{validate:(value,args2)=>IsBase32_isBase32(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be base32 encoded",validationOptions)}},validationOptions)}__name(IsBase32_isBase32,"IsBase32_isBase32"),__name(IsBase32,"IsBase32");var isBIC=__webpack_require__2(90502),isBIC_default=__webpack_require__2.n(isBIC);const IS_BIC="isBIC";function IsBIC_isBIC(value){return"string"==typeof value&&isBIC_default()(value)}function IsBIC(validationOptions){return ValidateBy({name:IS_BIC,validator:{validate:(value,args2)=>IsBIC_isBIC(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a BIC or SWIFT code",validationOptions)}},validationOptions)}__name(IsBIC_isBIC,"IsBIC_isBIC"),__name(IsBIC,"IsBIC");var isBtcAddress=__webpack_require__2(27885),isBtcAddress_default=__webpack_require__2.n(isBtcAddress);const IS_BTC_ADDRESS="isBtcAddress";function IsBtcAddress_isBtcAddress(value){return"string"==typeof value&&isBtcAddress_default()(value)}function IsBtcAddress(validationOptions){return ValidateBy({name:IS_BTC_ADDRESS,validator:{validate:(value,args2)=>IsBtcAddress_isBtcAddress(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a BTC address",validationOptions)}},validationOptions)}__name(IsBtcAddress_isBtcAddress,"IsBtcAddress_isBtcAddress"),__name(IsBtcAddress,"IsBtcAddress");var isDataURI=__webpack_require__2(36354),isDataURI_default=__webpack_require__2.n(isDataURI);const IS_DATA_URI="isDataURI";function IsDataURI_isDataURI(value){return"string"==typeof value&&isDataURI_default()(value)}function IsDataURI(validationOptions){return ValidateBy({name:IS_DATA_URI,validator:{validate:(value,args2)=>IsDataURI_isDataURI(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a data uri format",validationOptions)}},validationOptions)}__name(IsDataURI_isDataURI,"IsDataURI_isDataURI"),__name(IsDataURI,"IsDataURI");var isEAN=__webpack_require__2(27506),isEAN_default=__webpack_require__2.n(isEAN);const IS_EAN="isEAN";function IsEAN_isEAN(value){return"string"==typeof value&&isEAN_default()(value)}function IsEAN(validationOptions){return ValidateBy({name:IS_EAN,validator:{validate:(value,args2)=>IsEAN_isEAN(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be an EAN (European Article Number)",validationOptions)}},validationOptions)}__name(IsEAN_isEAN,"IsEAN_isEAN"),__name(IsEAN,"IsEAN");var isEthereumAddress=__webpack_require__2(30461),isEthereumAddress_default=__webpack_require__2.n(isEthereumAddress);const IS_ETHEREUM_ADDRESS="isEthereumAddress";function IsEthereumAddress_isEthereumAddress(value){return"string"==typeof value&&isEthereumAddress_default()(value)}function IsEthereumAddress(validationOptions){return ValidateBy({name:IS_ETHEREUM_ADDRESS,validator:{validate:(value,args2)=>IsEthereumAddress_isEthereumAddress(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be an Ethereum address",validationOptions)}},validationOptions)}__name(IsEthereumAddress_isEthereumAddress,"IsEthereumAddress_isEthereumAddress"),__name(IsEthereumAddress,"IsEthereumAddress");var isHSL=__webpack_require__2(31303),isHSL_default=__webpack_require__2.n(isHSL);const IS_HSL="isHSL";function IsHSL_isHSL(value){return"string"==typeof value&&isHSL_default()(value)}function IsHSL(validationOptions){return ValidateBy({name:IS_HSL,validator:{validate:(value,args2)=>IsHSL_isHSL(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a HSL color",validationOptions)}},validationOptions)}__name(IsHSL_isHSL,"IsHSL_isHSL"),__name(IsHSL,"IsHSL");var isIBAN=__webpack_require__2(63566);const IS_IBAN="isIBAN";function IsIBAN_isIBAN(value){return"string"==typeof value&&(0,isIBAN.ZP)(value)}function IsIBAN(validationOptions){return ValidateBy({name:IS_IBAN,validator:{validate:(value,args2)=>IsIBAN_isIBAN(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be an IBAN",validationOptions)}},validationOptions)}__name(IsIBAN_isIBAN,"IsIBAN_isIBAN"),__name(IsIBAN,"IsIBAN");var isIdentityCard=__webpack_require__2(59165),isIdentityCard_default=__webpack_require__2.n(isIdentityCard);const IS_IDENTITY_CARD="isIdentityCard";function IsIdentityCard_isIdentityCard(value,locale){return"string"==typeof value&&isIdentityCard_default()(value,locale)}function IsIdentityCard(locale,validationOptions){return ValidateBy({name:IS_IDENTITY_CARD,constraints:[locale],validator:{validate:(value,args2)=>IsIdentityCard_isIdentityCard(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a identity card number",validationOptions)}},validationOptions)}__name(IsIdentityCard_isIdentityCard,"IsIdentityCard_isIdentityCard"),__name(IsIdentityCard,"IsIdentityCard");var isISRC=__webpack_require__2(2413),isISRC_default=__webpack_require__2.n(isISRC);const IS_ISRC="isISRC";function IsISRC_isISRC(value){return"string"==typeof value&&isISRC_default()(value)}function IsISRC(validationOptions){return ValidateBy({name:IS_ISRC,validator:{validate:(value,args2)=>IsISRC_isISRC(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be an ISRC",validationOptions)}},validationOptions)}__name(IsISRC_isISRC,"IsISRC_isISRC"),__name(IsISRC,"IsISRC");var isLocale=__webpack_require__2(83308),isLocale_default=__webpack_require__2.n(isLocale);const IS_LOCALE="isLocale";function IsLocale_isLocale(value){return"string"==typeof value&&isLocale_default()(value)}function IsLocale(validationOptions){return ValidateBy({name:IS_LOCALE,validator:{validate:(value,args2)=>IsLocale_isLocale(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be locale",validationOptions)}},validationOptions)}__name(IsLocale_isLocale,"IsLocale_isLocale"),__name(IsLocale,"IsLocale");var isMagnetURI=__webpack_require__2(97754),isMagnetURI_default=__webpack_require__2.n(isMagnetURI);const IS_MAGNET_URI="isMagnetURI";function IsMagnetURI_isMagnetURI(value){return"string"==typeof value&&isMagnetURI_default()(value)}function IsMagnetURI(validationOptions){return ValidateBy({name:IS_MAGNET_URI,validator:{validate:(value,args2)=>IsMagnetURI_isMagnetURI(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be magnet uri format",validationOptions)}},validationOptions)}__name(IsMagnetURI_isMagnetURI,"IsMagnetURI_isMagnetURI"),__name(IsMagnetURI,"IsMagnetURI");var isMimeType=__webpack_require__2(83865),isMimeType_default=__webpack_require__2.n(isMimeType);const IS_MIME_TYPE="isMimeType";function IsMimeType_isMimeType(value){return"string"==typeof value&&isMimeType_default()(value)}function IsMimeType(validationOptions){return ValidateBy({name:IS_MIME_TYPE,validator:{validate:(value,args2)=>IsMimeType_isMimeType(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be MIME type format",validationOptions)}},validationOptions)}__name(IsMimeType_isMimeType,"IsMimeType_isMimeType"),__name(IsMimeType,"IsMimeType");var isOctal=__webpack_require__2(45920),isOctal_default=__webpack_require__2.n(isOctal);const IS_OCTAL="isOctal";function IsOctal_isOctal(value){return"string"==typeof value&&isOctal_default()(value)}function IsOctal(validationOptions){return ValidateBy({name:IS_OCTAL,validator:{validate:(value,args2)=>IsOctal_isOctal(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be valid octal number",validationOptions)}},validationOptions)}__name(IsOctal_isOctal,"IsOctal_isOctal"),__name(IsOctal,"IsOctal");var isPassportNumber=__webpack_require__2(89420),isPassportNumber_default=__webpack_require__2.n(isPassportNumber);const IS_PASSPORT_NUMBER="isPassportNumber";function IsPassportNumber_isPassportNumber(value,countryCode){return"string"==typeof value&&isPassportNumber_default()(value,countryCode)}function IsPassportNumber(countryCode,validationOptions){return ValidateBy({name:IS_PASSPORT_NUMBER,constraints:[countryCode],validator:{validate:(value,args2)=>IsPassportNumber_isPassportNumber(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be valid passport number",validationOptions)}},validationOptions)}__name(IsPassportNumber_isPassportNumber,"IsPassportNumber_isPassportNumber"),__name(IsPassportNumber,"IsPassportNumber");var isPostalCode=__webpack_require__2(56249);const IS_POSTAL_CODE="isPostalCode";function IsPostalCode_isPostalCode(value,locale){return"string"==typeof value&&(0,isPostalCode.ZP)(value,locale)}function IsPostalCode(locale,validationOptions){return ValidateBy({name:IS_POSTAL_CODE,constraints:[locale],validator:{validate:(value,args2)=>IsPostalCode_isPostalCode(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a postal code",validationOptions)}},validationOptions)}__name(IsPostalCode_isPostalCode,"IsPostalCode_isPostalCode"),__name(IsPostalCode,"IsPostalCode");var isRFC3339=__webpack_require__2(19150),isRFC3339_default=__webpack_require__2.n(isRFC3339);const IS_RFC_3339="isRFC3339";function IsRFC3339_isRFC3339(value){return"string"==typeof value&&isRFC3339_default()(value)}function IsRFC3339(validationOptions){return ValidateBy({name:IS_RFC_3339,validator:{validate:(value,args2)=>IsRFC3339_isRFC3339(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be RFC 3339 date",validationOptions)}},validationOptions)}__name(IsRFC3339_isRFC3339,"IsRFC3339_isRFC3339"),__name(IsRFC3339,"IsRFC3339");var isRgbColor=__webpack_require__2(53921),isRgbColor_default=__webpack_require__2.n(isRgbColor);const IS_RGB_COLOR="isRgbColor";function IsRgbColor_isRgbColor(value,includePercentValues){return"string"==typeof value&&isRgbColor_default()(value,includePercentValues)}function IsRgbColor(includePercentValues,validationOptions){return ValidateBy({name:IS_RGB_COLOR,constraints:[includePercentValues],validator:{validate:(value,args2)=>IsRgbColor_isRgbColor(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be RGB color",validationOptions)}},validationOptions)}__name(IsRgbColor_isRgbColor,"IsRgbColor_isRgbColor"),__name(IsRgbColor,"IsRgbColor");var isSemVer=__webpack_require__2(45210),isSemVer_default=__webpack_require__2.n(isSemVer);const IS_SEM_VER="isSemVer";function IsSemVer_isSemVer(value){return"string"==typeof value&&isSemVer_default()(value)}function IsSemVer(validationOptions){return ValidateBy({name:IS_SEM_VER,validator:{validate:(value,args2)=>IsSemVer_isSemVer(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a Semantic Versioning Specification",validationOptions)}},validationOptions)}__name(IsSemVer_isSemVer,"IsSemVer_isSemVer"),__name(IsSemVer,"IsSemVer");const IS_BOOLEAN="isBoolean";function IsBoolean_isBoolean(value){return value instanceof Boolean||"boolean"==typeof value}function IsBoolean(validationOptions){return ValidateBy({name:IS_BOOLEAN,validator:{validate:(value,args2)=>IsBoolean_isBoolean(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a boolean value",validationOptions)}},validationOptions)}__name(IsBoolean_isBoolean,"IsBoolean_isBoolean"),__name(IsBoolean,"IsBoolean");const IS_DATE="isDate";function isDate(value){return value instanceof Date&&!isNaN(value.getTime())}function IsDate(validationOptions){return ValidateBy({name:IS_DATE,validator:{validate:(value,args2)=>isDate(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a Date instance",validationOptions)}},validationOptions)}__name(isDate,"isDate"),__name(IsDate,"IsDate");const IS_NUMBER="isNumber";function isNumber(value,options={}){if("number"!=typeof value)return!1;if(value===1/0||value===-1/0)return options.allowInfinity;if(Number.isNaN(value))return options.allowNaN;if(void 0!==options.maxDecimalPlaces){let decimalPlaces=0;if(value%1!=0&&(decimalPlaces=value.toString().split(".")[1].length),decimalPlaces>options.maxDecimalPlaces)return!1}return Number.isFinite(value)}function IsNumber(options={},validationOptions){return ValidateBy({name:IS_NUMBER,constraints:[options],validator:{validate:(value,args2)=>isNumber(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a number conforming to the specified constraints",validationOptions)}},validationOptions)}__name(isNumber,"isNumber"),__name(IsNumber,"IsNumber");const IS_ENUM="isEnum";function isEnum(value,entity){return Object.keys(entity).map(k=>entity[k]).indexOf(value)>=0}function IsEnum(entity,validationOptions){return ValidateBy({name:IS_ENUM,constraints:[entity],validator:{validate:(value,args2)=>isEnum(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a valid enum value",validationOptions)}},validationOptions)}__name(isEnum,"isEnum"),__name(IsEnum,"IsEnum");const IS_INT="isInt";function isInt(val){return"number"==typeof val&&Number.isInteger(val)}function IsInt(validationOptions){return ValidateBy({name:IS_INT,validator:{validate:(value,args2)=>isInt(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be an integer number",validationOptions)}},validationOptions)}__name(isInt,"isInt"),__name(IsInt,"IsInt");const IS_STRING="isString";function isString(value){return value instanceof String||"string"==typeof value}function IsString(validationOptions){return ValidateBy({name:IS_STRING,validator:{validate:(value,args2)=>isString(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a string",validationOptions)}},validationOptions)}__name(isString,"isString"),__name(IsString,"IsString");const IS_ARRAY="isArray";function isArray(value){return Array.isArray(value)}function IsArray(validationOptions){return ValidateBy({name:IS_ARRAY,validator:{validate:(value,args2)=>isArray(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be an array",validationOptions)}},validationOptions)}__name(isArray,"isArray"),__name(IsArray,"IsArray");const IS_OBJECT="isObject";function IsObject_isObject(value){return null!=value&&("object"==typeof value||"function"==typeof value)&&!Array.isArray(value)}function IsObject(validationOptions){return ValidateBy({name:IS_OBJECT,validator:{validate:(value,args2)=>IsObject_isObject(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be an object",validationOptions)}},validationOptions)}__name(IsObject_isObject,"IsObject_isObject"),__name(IsObject,"IsObject");const ARRAY_CONTAINS="arrayContains";function arrayContains(array,values){return!!Array.isArray(array)&&values.every(value=>-1!==array.indexOf(value))}function ArrayContains(values,validationOptions){return ValidateBy({name:ARRAY_CONTAINS,constraints:[values],validator:{validate:(value,args2)=>arrayContains(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must contain $constraint1 values",validationOptions)}},validationOptions)}__name(arrayContains,"arrayContains"),__name(ArrayContains,"ArrayContains");const ARRAY_NOT_CONTAINS="arrayNotContains";function arrayNotContains(array,values){return!!Array.isArray(array)&&values.every(value=>-1===array.indexOf(value))}function ArrayNotContains(values,validationOptions){return ValidateBy({name:ARRAY_NOT_CONTAINS,constraints:[values],validator:{validate:(value,args2)=>arrayNotContains(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property should not contain $constraint1 values",validationOptions)}},validationOptions)}__name(arrayNotContains,"arrayNotContains"),__name(ArrayNotContains,"ArrayNotContains");const ARRAY_NOT_EMPTY="arrayNotEmpty";function arrayNotEmpty(array){return Array.isArray(array)&&array.length>0}function ArrayNotEmpty(validationOptions){return ValidateBy({name:ARRAY_NOT_EMPTY,validator:{validate:(value,args2)=>arrayNotEmpty(value),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property should not be empty",validationOptions)}},validationOptions)}__name(arrayNotEmpty,"arrayNotEmpty"),__name(ArrayNotEmpty,"ArrayNotEmpty");const ARRAY_MIN_SIZE="arrayMinSize";function arrayMinSize(array,min2){return Array.isArray(array)&&array.length>=min2}function ArrayMinSize(min2,validationOptions){return ValidateBy({name:ARRAY_MIN_SIZE,constraints:[min2],validator:{validate:(value,args2)=>arrayMinSize(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must contain at least $constraint1 elements",validationOptions)}},validationOptions)}__name(arrayMinSize,"arrayMinSize"),__name(ArrayMinSize,"ArrayMinSize");const ARRAY_MAX_SIZE="arrayMaxSize";function arrayMaxSize(array,max2){return Array.isArray(array)&&array.length<=max2}function ArrayMaxSize(max2,validationOptions){return ValidateBy({name:ARRAY_MAX_SIZE,constraints:[max2],validator:{validate:(value,args2)=>arrayMaxSize(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must contain not more than $constraint1 elements",validationOptions)}},validationOptions)}__name(arrayMaxSize,"arrayMaxSize"),__name(ArrayMaxSize,"ArrayMaxSize");const ARRAY_UNIQUE="arrayUnique";function arrayUnique(array,identifier){if(!Array.isArray(array))return!1;identifier&&(array=array.map(o=>null!=o?identifier(o):o));const uniqueItems=array.filter((a,b2,c)=>c.indexOf(a)===b2);return array.length===uniqueItems.length}function ArrayUnique(identifierOrOptions,validationOptions){const identifier="function"==typeof identifierOrOptions?identifierOrOptions:void 0,options="function"!=typeof identifierOrOptions?identifierOrOptions:validationOptions;return ValidateBy({name:ARRAY_UNIQUE,validator:{validate:(value,args2)=>arrayUnique(value,identifier),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"All $property's elements must be unique",options)}},options)}__name(arrayUnique,"arrayUnique"),__name(ArrayUnique,"ArrayUnique");const IS_NOT_EMPTY_OBJECT="isNotEmptyObject";function isNotEmptyObject(value,options){if(!IsObject_isObject(value))return!1;if(!0===(null==options?void 0:options.nullable))return!Object.values(value).every(propertyValue=>null==propertyValue);for(const key in value)if(value.hasOwnProperty(key))return!0;return!1}function IsNotEmptyObject(options,validationOptions){return ValidateBy({name:IS_NOT_EMPTY_OBJECT,constraints:[options],validator:{validate:(value,args2)=>isNotEmptyObject(value,args2.constraints[0]),defaultMessage:buildMessage(eachPrefix=>eachPrefix+"$property must be a non-empty object",validationOptions)}},validationOptions)}__name(isNotEmptyObject,"isNotEmptyObject"),__name(IsNotEmptyObject,"IsNotEmptyObject");const IS_INSTANCE="isInstance";function isInstance(object,targetTypeConstructor){return targetTypeConstructor&&"function"==typeof targetTypeConstructor&&object instanceof targetTypeConstructor}function IsInstance(targetType,validationOptions){return ValidateBy({name:IS_INSTANCE,constraints:[targetType],validator:{validate:(value,args2)=>isInstance(value,args2.constraints[0]),defaultMessage:buildMessage((eachPrefix,args2)=>args2.constraints[0]?eachPrefix+`$property must be an instance of ${args2.constraints[0].name}`:eachPrefix+`${IS_INSTANCE} decorator expects and object as value, but got falsy value.`,validationOptions)}},validationOptions)}function validate(schemaNameOrObject,objectOrValidationOptions,maybeValidatorOptions){return"string"==typeof schemaNameOrObject?getFromContainer(Validator).validate(schemaNameOrObject,objectOrValidationOptions,maybeValidatorOptions):getFromContainer(Validator).validate(schemaNameOrObject,objectOrValidationOptions)}function validateOrReject(schemaNameOrObject,objectOrValidationOptions,maybeValidatorOptions){return"string"==typeof schemaNameOrObject?getFromContainer(Validator).validateOrReject(schemaNameOrObject,objectOrValidationOptions,maybeValidatorOptions):getFromContainer(Validator).validateOrReject(schemaNameOrObject,objectOrValidationOptions)}function validateSync(schemaNameOrObject,objectOrValidationOptions,maybeValidatorOptions){return"string"==typeof schemaNameOrObject?getFromContainer(Validator).validateSync(schemaNameOrObject,objectOrValidationOptions,maybeValidatorOptions):getFromContainer(Validator).validateSync(schemaNameOrObject,objectOrValidationOptions)}function registerSchema(schema){getMetadataStorage().addValidationSchema(schema)}__name(isInstance,"isInstance"),__name(IsInstance,"IsInstance"),__name(validate,"validate"),__name(validateOrReject,"validateOrReject"),__name(validateSync,"validateSync"),__name(registerSchema,"registerSchema")},83769:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__exportStar=this&&this.__exportStar||function(m,exports3){for(var p in m)"default"!==p&&!Object.prototype.hasOwnProperty.call(exports3,p)&&__createBinding(exports3,m,p)},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.supportsLanguage=exports2.listLanguages=exports2.highlight=void 0;var hljs=__importStar(__webpack_require__2(82376)),parse5=__importStar(__webpack_require__2(68839)),parse5_htmlparser2_tree_adapter_1=__importDefault(__webpack_require__2(59093)),theme_1=__webpack_require__2(1591);function colorizeNode(node,theme,context){switch(void 0===theme&&(theme={}),node.type){case"text":var text=node.data;return void 0===context?(theme.default||theme_1.DEFAULT_THEME.default||theme_1.plain)(text):text;case"tag":var hljsClass=/hljs-(\w+)/.exec(node.attribs.class);if(hljsClass){var token_1=hljsClass[1],nodeData=node.childNodes.map(function(node2){return colorizeNode(node2,theme,token_1)}).join("");return(theme[token_1]||theme_1.DEFAULT_THEME[token_1]||theme_1.plain)(nodeData)}return node.childNodes.map(function(node2){return colorizeNode(node2,theme)}).join("")}throw new Error("Invalid node type "+node.type)}function colorize(code2,theme){return void 0===theme&&(theme={}),parse5.parseFragment(code2,{treeAdapter:parse5_htmlparser2_tree_adapter_1.default}).childNodes.map(function(node){return colorizeNode(node,theme)}).join("")}function highlight(code2,options){return void 0===options&&(options={}),colorize(options.language?hljs.highlight(code2,{language:options.language,ignoreIllegals:options.ignoreIllegals}).value:hljs.highlightAuto(code2,options.languageSubset).value,options.theme)}function listLanguages(){return hljs.listLanguages()}function supportsLanguage(name){return!!hljs.getLanguage(name)}__name(colorizeNode,"colorizeNode"),__name(colorize,"colorize"),__name(highlight,"highlight"),exports2.highlight=highlight,__name(listLanguages,"listLanguages"),exports2.listLanguages=listLanguages,__name(supportsLanguage,"supportsLanguage"),exports2.supportsLanguage=supportsLanguage,exports2.default=highlight,__exportStar(__webpack_require__2(1591),exports2)},1591:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.parse=exports2.stringify=exports2.toJson=exports2.fromJson=exports2.DEFAULT_THEME=exports2.plain=void 0;var chalk_1=__importDefault(__webpack_require__2(74497)),plain=__name(function(codePart){return codePart},"plain");function fromJson(json){for(var theme={},_i=0,_a=Object.keys(json);_i<_a.length;_i++){var key=_a[_i],style=json[key];Array.isArray(style)?theme[key]=style.reduce(function(previous,current){return"plain"===current?exports2.plain:previous[current]},chalk_1.default):theme[key]=chalk_1.default[style]}return theme}function toJson(theme){for(var jsonTheme={},_i=0,_a=Object.keys(jsonTheme);_i<_a.length;_i++){var key=_a[_i],style=jsonTheme[key];jsonTheme[key]=style._styles}return jsonTheme}function stringify(theme){return JSON.stringify(toJson())}function parse(json){return fromJson(JSON.parse(json))}exports2.plain=plain,exports2.DEFAULT_THEME={keyword:chalk_1.default.blue,built_in:chalk_1.default.cyan,type:chalk_1.default.cyan.dim,literal:chalk_1.default.blue,number:chalk_1.default.green,regexp:chalk_1.default.red,string:chalk_1.default.red,subst:exports2.plain,symbol:exports2.plain,class:chalk_1.default.blue,function:chalk_1.default.yellow,title:exports2.plain,params:exports2.plain,comment:chalk_1.default.green,doctag:chalk_1.default.green,meta:chalk_1.default.grey,"meta-keyword":exports2.plain,"meta-string":exports2.plain,section:exports2.plain,tag:chalk_1.default.grey,name:chalk_1.default.blue,"builtin-name":exports2.plain,attr:chalk_1.default.cyan,attribute:exports2.plain,variable:exports2.plain,bullet:exports2.plain,code:exports2.plain,emphasis:chalk_1.default.italic,strong:chalk_1.default.bold,formula:exports2.plain,link:chalk_1.default.underline,quote:exports2.plain,"selector-tag":exports2.plain,"selector-id":exports2.plain,"selector-class":exports2.plain,"selector-attr":exports2.plain,"selector-pseudo":exports2.plain,"template-tag":exports2.plain,"template-variable":exports2.plain,addition:chalk_1.default.green,deletion:chalk_1.default.red,default:exports2.plain},__name(fromJson,"fromJson"),exports2.fromJson=fromJson,__name(toJson,"toJson"),exports2.toJson=toJson,__name(stringify,"stringify"),exports2.stringify=stringify,__name(parse,"parse"),exports2.parse=parse},22990:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2=__webpack_require__2.nmd(module2);const wrapAnsi16=__name((fn2,offset)=>(...args2)=>`\x1b[${fn2(...args2)+offset}m`,"wrapAnsi16"),wrapAnsi256=__name((fn2,offset)=>(...args2)=>{const code2=fn2(...args2);return`\x1b[${38+offset};5;${code2}m`},"wrapAnsi256"),wrapAnsi16m=__name((fn2,offset)=>(...args2)=>{const rgb=fn2(...args2);return`\x1b[${38+offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`},"wrapAnsi16m"),ansi2ansi=__name(n=>n,"ansi2ansi"),rgb2rgb=__name((r,g,b2)=>[r,g,b2],"rgb2rgb"),setLazyProperty=__name((object,property,get)=>{Object.defineProperty(object,property,{get:()=>{const value=get();return Object.defineProperty(object,property,{value,enumerable:!0,configurable:!0}),value},enumerable:!0,configurable:!0})},"setLazyProperty");let colorConvert;const makeDynamicStyles=__name((wrap,targetSpace,identity,isBackground)=>{void 0===colorConvert&&(colorConvert=__webpack_require__2(75848));const offset=isBackground?10:0,styles={};for(const[sourceSpace,suite]of Object.entries(colorConvert)){const name="ansi16"===sourceSpace?"ansi":sourceSpace;sourceSpace===targetSpace?styles[name]=wrap(identity,offset):"object"==typeof suite&&(styles[name]=wrap(suite[targetSpace],offset))}return styles},"makeDynamicStyles");function assembleStyles(){const codes=new Map,styles={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};styles.color.gray=styles.color.blackBright,styles.bgColor.bgGray=styles.bgColor.bgBlackBright,styles.color.grey=styles.color.blackBright,styles.bgColor.bgGrey=styles.bgColor.bgBlackBright;for(const[groupName,group]of Object.entries(styles)){for(const[styleName,style]of Object.entries(group))styles[styleName]={open:`\x1b[${style[0]}m`,close:`\x1b[${style[1]}m`},group[styleName]=styles[styleName],codes.set(style[0],style[1]);Object.defineProperty(styles,groupName,{value:group,enumerable:!1})}return Object.defineProperty(styles,"codes",{value:codes,enumerable:!1}),styles.color.close="\x1b[39m",styles.bgColor.close="\x1b[49m",setLazyProperty(styles.color,"ansi",()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,!1)),setLazyProperty(styles.color,"ansi256",()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,!1)),setLazyProperty(styles.color,"ansi16m",()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,!1)),setLazyProperty(styles.bgColor,"ansi",()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,!0)),setLazyProperty(styles.bgColor,"ansi256",()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,!0)),setLazyProperty(styles.bgColor,"ansi16m",()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,!0)),styles}__name(assembleStyles,"assembleStyles"),Object.defineProperty(module2,"exports",{enumerable:!0,get:assembleStyles})},74497:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const ansiStyles=__webpack_require__2(22990),{stdout:stdoutColor,stderr:stderrColor}=__webpack_require__2(33921),{stringReplaceAll,stringEncaseCRLFWithFirstIndex}=__webpack_require__2(35926),{isArray}=Array,levelMapping=["ansi","ansi","ansi256","ansi16m"],styles=Object.create(null),applyOptions=__name((object,options={})=>{if(options.level&&!(Number.isInteger(options.level)&&options.level>=0&&options.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const colorLevel=stdoutColor?stdoutColor.level:0;object.level=void 0===options.level?colorLevel:options.level},"applyOptions");class ChalkClass{constructor(options){return chalkFactory(options)}}__name(ChalkClass,"ChalkClass");const chalkFactory=__name(options=>{const chalk2={};return applyOptions(chalk2,options),chalk2.template=(...arguments_)=>chalkTag(chalk2.template,...arguments_),Object.setPrototypeOf(chalk2,Chalk.prototype),Object.setPrototypeOf(chalk2.template,chalk2),chalk2.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},chalk2.template.Instance=ChalkClass,chalk2.template},"chalkFactory");function Chalk(options){return chalkFactory(options)}__name(Chalk,"Chalk");for(const[styleName,style]of Object.entries(ansiStyles))styles[styleName]={get(){const builder=createBuilder(this,createStyler(style.open,style.close,this._styler),this._isEmpty);return Object.defineProperty(this,styleName,{value:builder}),builder}};styles.visible={get(){const builder=createBuilder(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:builder}),builder}};const usedModels=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const model of usedModels)styles[model]={get(){const{level}=this;return function(...arguments_){const styler=createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_),ansiStyles.color.close,this._styler);return createBuilder(this,styler,this._isEmpty)}}};for(const model of usedModels){styles["bg"+model[0].toUpperCase()+model.slice(1)]={get(){const{level}=this;return function(...arguments_){const styler=createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_),ansiStyles.bgColor.close,this._styler);return createBuilder(this,styler,this._isEmpty)}}}}const proto=Object.defineProperties(()=>{},{...styles,level:{enumerable:!0,get(){return this._generator.level},set(level){this._generator.level=level}}}),createStyler=__name((open2,close,parent)=>{let openAll,closeAll;return void 0===parent?(openAll=open2,closeAll=close):(openAll=parent.openAll+open2,closeAll=close+parent.closeAll),{open:open2,close,openAll,closeAll,parent}},"createStyler"),createBuilder=__name((self2,_styler,_isEmpty)=>{const builder=__name((...arguments_)=>isArray(arguments_[0])&&isArray(arguments_[0].raw)?applyStyle(builder,chalkTag(builder,...arguments_)):applyStyle(builder,1===arguments_.length?""+arguments_[0]:arguments_.join(" ")),"builder");return Object.setPrototypeOf(builder,proto),builder._generator=self2,builder._styler=_styler,builder._isEmpty=_isEmpty,builder},"createBuilder"),applyStyle=__name((self2,string)=>{if(self2.level<=0||!string)return self2._isEmpty?"":string;let styler=self2._styler;if(void 0===styler)return string;const{openAll,closeAll}=styler;if(-1!==string.indexOf("\x1b"))for(;void 0!==styler;)string=stringReplaceAll(string,styler.close,styler.open),styler=styler.parent;const lfIndex=string.indexOf("\n");return-1!==lfIndex&&(string=stringEncaseCRLFWithFirstIndex(string,closeAll,openAll,lfIndex)),openAll+string+closeAll},"applyStyle");let template;const chalkTag=__name((chalk2,...strings)=>{const[firstString]=strings;if(!isArray(firstString)||!isArray(firstString.raw))return strings.join(" ");const arguments_=strings.slice(1),parts=[firstString.raw[0]];for(let i2=1;i2{"use strict";const TEMPLATE_REGEX=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,STYLE_REGEX=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,STRING_REGEX=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ESCAPE_REGEX=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,ESCAPES=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function unescape2(c){const u="u"===c[0],bracket="{"===c[1];return u&&!bracket&&5===c.length||"x"===c[0]&&3===c.length?String.fromCharCode(parseInt(c.slice(1),16)):u&&bracket?String.fromCodePoint(parseInt(c.slice(2,-1),16)):ESCAPES.get(c)||c}function parseArguments(name,arguments_){const results=[],chunks=arguments_.trim().split(/\s*,\s*/g);let matches;for(const chunk of chunks){const number=Number(chunk);if(Number.isNaN(number)){if(!(matches=chunk.match(STRING_REGEX)))throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);results.push(matches[2].replace(ESCAPE_REGEX,(m,escape2,character)=>escape2?unescape2(escape2):character))}else results.push(number)}return results}function parseStyle(style){STYLE_REGEX.lastIndex=0;const results=[];let matches;for(;null!==(matches=STYLE_REGEX.exec(style));){const name=matches[1];if(matches[2]){const args2=parseArguments(name,matches[2]);results.push([name].concat(args2))}else results.push([name])}return results}function buildStyle(chalk,styles){const enabled={};for(const layer of styles)for(const style of layer.styles)enabled[style[0]]=layer.inverse?null:style.slice(1);let current=chalk;for(const[styleName,styles2]of Object.entries(enabled))if(Array.isArray(styles2)){if(!(styleName in current))throw new Error(`Unknown Chalk style: ${styleName}`);current=styles2.length>0?current[styleName](...styles2):current[styleName]}return current}__name(unescape2,"unescape"),__name(parseArguments,"parseArguments"),__name(parseStyle,"parseStyle"),__name(buildStyle,"buildStyle"),module2.exports=(chalk,temporary)=>{const styles=[],chunks=[];let chunk=[];if(temporary.replace(TEMPLATE_REGEX,(m,escapeCharacter,inverse,style,close,character)=>{if(escapeCharacter)chunk.push(unescape2(escapeCharacter));else if(style){const string=chunk.join("");chunk=[],chunks.push(0===styles.length?string:buildStyle(chalk,styles)(string)),styles.push({inverse,styles:parseStyle(style)})}else if(close){if(0===styles.length)throw new Error("Found extraneous } in Chalk template literal");chunks.push(buildStyle(chalk,styles)(chunk.join(""))),chunk=[],styles.pop()}else chunk.push(character)}),chunks.push(chunk.join("")),styles.length>0){const errMessage=`Chalk template literal is missing ${styles.length} closing bracket${1===styles.length?"":"s"} (\`}\`)`;throw new Error(errMessage)}return chunks.join("")}},35926:module2=>{"use strict";const stringReplaceAll=__name((string,substring,replacer)=>{let index=string.indexOf(substring);if(-1===index)return string;const substringLength=substring.length;let endIndex=0,returnValue="";do{returnValue+=string.substr(endIndex,index-endIndex)+substring+replacer,endIndex=index+substringLength,index=string.indexOf(substring,endIndex)}while(-1!==index);return returnValue+=string.substr(endIndex),returnValue},"stringReplaceAll"),stringEncaseCRLFWithFirstIndex=__name((string,prefix,postfix,index)=>{let endIndex=0,returnValue="";do{const gotCR="\r"===string[index-1];returnValue+=string.substr(endIndex,(gotCR?index-1:index)-endIndex)+prefix+(gotCR?"\r\n":"\n")+postfix,endIndex=index+1,index=string.indexOf("\n",endIndex)}while(-1!==index);return returnValue+=string.substr(endIndex),returnValue},"stringEncaseCRLFWithFirstIndex");module2.exports={stringReplaceAll,stringEncaseCRLFWithFirstIndex}},81582:(module2,__unused_webpack_exports2,__webpack_require__2)=>{const cssKeywords=__webpack_require__2(15485),reverseKeywords={};for(const key of Object.keys(cssKeywords))reverseKeywords[cssKeywords[key]]=key;const convert={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};module2.exports=convert;for(const model of Object.keys(convert)){if(!("channels"in convert[model]))throw new Error("missing channels property: "+model);if(!("labels"in convert[model]))throw new Error("missing channel labels property: "+model);if(convert[model].labels.length!==convert[model].channels)throw new Error("channel and label counts mismatch: "+model);const{channels,labels}=convert[model];delete convert[model].channels,delete convert[model].labels,Object.defineProperty(convert[model],"channels",{value:channels}),Object.defineProperty(convert[model],"labels",{value:labels})}function comparativeDistance(x,y){return(x[0]-y[0])**2+(x[1]-y[1])**2+(x[2]-y[2])**2}convert.rgb.hsl=function(rgb){const r=rgb[0]/255,g=rgb[1]/255,b2=rgb[2]/255,min=Math.min(r,g,b2),max=Math.max(r,g,b2),delta=max-min;let h,s;max===min?h=0:r===max?h=(g-b2)/delta:g===max?h=2+(b2-r)/delta:b2===max&&(h=4+(r-g)/delta),h=Math.min(60*h,360),h<0&&(h+=360);const l=(min+max)/2;return s=max===min?0:l<=.5?delta/(max+min):delta/(2-max-min),[h,100*s,100*l]},convert.rgb.hsv=function(rgb){let rdif,gdif,bdif,h,s;const r=rgb[0]/255,g=rgb[1]/255,b2=rgb[2]/255,v=Math.max(r,g,b2),diff=v-Math.min(r,g,b2),diffc=__name(function(c){return(v-c)/6/diff+.5},"diffc");return 0===diff?(h=0,s=0):(s=diff/v,rdif=diffc(r),gdif=diffc(g),bdif=diffc(b2),r===v?h=bdif-gdif:g===v?h=.3333333333333333+rdif-bdif:b2===v&&(h=.6666666666666666+gdif-rdif),h<0?h+=1:h>1&&(h-=1)),[360*h,100*s,100*v]},convert.rgb.hwb=function(rgb){const r=rgb[0],g=rgb[1];let b2=rgb[2];const h=convert.rgb.hsl(rgb)[0],w=1/255*Math.min(r,Math.min(g,b2));return b2=1-.00392156862745098*Math.max(r,Math.max(g,b2)),[h,100*w,100*b2]},convert.rgb.cmyk=function(rgb){const r=rgb[0]/255,g=rgb[1]/255,b2=rgb[2]/255,k=Math.min(1-r,1-g,1-b2);return[100*((1-r-k)/(1-k)||0),100*((1-g-k)/(1-k)||0),100*((1-b2-k)/(1-k)||0),100*k]},__name(comparativeDistance,"comparativeDistance"),convert.rgb.keyword=function(rgb){const reversed=reverseKeywords[rgb];if(reversed)return reversed;let currentClosestKeyword,currentClosestDistance=1/0;for(const keyword of Object.keys(cssKeywords)){const distance=comparativeDistance(rgb,cssKeywords[keyword]);distance.04045?((r+.055)/1.055)**2.4:r/12.92,g=g>.04045?((g+.055)/1.055)**2.4:g/12.92,b2=b2>.04045?((b2+.055)/1.055)**2.4:b2/12.92;return[100*(.4124*r+.3576*g+.1805*b2),100*(.2126*r+.7152*g+.0722*b2),100*(.0193*r+.1192*g+.9505*b2)]},convert.rgb.lab=function(rgb){const xyz=convert.rgb.xyz(rgb);let x=xyz[0],y=xyz[1],z=xyz[2];x/=95.047,y/=100,z/=108.883,x=x>.008856?x**.3333333333333333:7.787*x+.13793103448275862,y=y>.008856?y**.3333333333333333:7.787*y+.13793103448275862,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862;return[116*y-16,500*(x-y),200*(y-z)]},convert.hsl.rgb=function(hsl){const h=hsl[0]/360,s=hsl[1]/100,l=hsl[2]/100;let t2,t3,val;if(0===s)return val=255*l,[val,val,val];t2=l<.5?l*(1+s):l+s-l*s;const t1=2*l-t2,rgb=[0,0,0];for(let i2=0;i2<3;i2++)t3=h+.3333333333333333*-(i2-1),t3<0&&t3++,t3>1&&t3--,val=6*t3<1?t1+6*(t2-t1)*t3:2*t3<1?t2:3*t3<2?t1+(t2-t1)*(.6666666666666666-t3)*6:t1,rgb[i2]=255*val;return rgb},convert.hsl.hsv=function(hsl){const h=hsl[0];let s=hsl[1]/100,l=hsl[2]/100,smin=s;const lmin=Math.max(l,.01);l*=2,s*=l<=1?l:2-l,smin*=lmin<=1?lmin:2-lmin;return[h,100*(0===l?2*smin/(lmin+smin):2*s/(l+s)),100*((l+s)/2)]},convert.hsv.rgb=function(hsv){const h=hsv[0]/60,s=hsv[1]/100;let v=hsv[2]/100;const hi=Math.floor(h)%6,f2=h-Math.floor(h),p=255*v*(1-s),q=255*v*(1-s*f2),t=255*v*(1-s*(1-f2));switch(v*=255,hi){case 0:return[v,t,p];case 1:return[q,v,p];case 2:return[p,v,t];case 3:return[p,q,v];case 4:return[t,p,v];case 5:return[v,p,q]}},convert.hsv.hsl=function(hsv){const h=hsv[0],s=hsv[1]/100,v=hsv[2]/100,vmin=Math.max(v,.01);let sl,l;l=(2-s)*v;const lmin=(2-s)*vmin;return sl=s*vmin,sl/=lmin<=1?lmin:2-lmin,sl=sl||0,l/=2,[h,100*sl,100*l]},convert.hwb.rgb=function(hwb){const h=hwb[0]/360;let wh=hwb[1]/100,bl=hwb[2]/100;const ratio=wh+bl;let f2;ratio>1&&(wh/=ratio,bl/=ratio);const i2=Math.floor(6*h),v=1-bl;f2=6*h-i2,0!=(1&i2)&&(f2=1-f2);const n=wh+f2*(v-wh);let r,g,b2;switch(i2){default:case 6:case 0:r=v,g=n,b2=wh;break;case 1:r=n,g=v,b2=wh;break;case 2:r=wh,g=v,b2=n;break;case 3:r=wh,g=n,b2=v;break;case 4:r=n,g=wh,b2=v;break;case 5:r=v,g=wh,b2=n}return[255*r,255*g,255*b2]},convert.cmyk.rgb=function(cmyk){const c=cmyk[0]/100,m=cmyk[1]/100,y=cmyk[2]/100,k=cmyk[3]/100;return[255*(1-Math.min(1,c*(1-k)+k)),255*(1-Math.min(1,m*(1-k)+k)),255*(1-Math.min(1,y*(1-k)+k))]},convert.xyz.rgb=function(xyz){const x=xyz[0]/100,y=xyz[1]/100,z=xyz[2]/100;let r,g,b2;return r=3.2406*x+-1.5372*y+-.4986*z,g=-.9689*x+1.8758*y+.0415*z,b2=.0557*x+-.204*y+1.057*z,r=r>.0031308?1.055*r**.4166666666666667-.055:12.92*r,g=g>.0031308?1.055*g**.4166666666666667-.055:12.92*g,b2=b2>.0031308?1.055*b2**.4166666666666667-.055:12.92*b2,r=Math.min(Math.max(0,r),1),g=Math.min(Math.max(0,g),1),b2=Math.min(Math.max(0,b2),1),[255*r,255*g,255*b2]},convert.xyz.lab=function(xyz){let x=xyz[0],y=xyz[1],z=xyz[2];x/=95.047,y/=100,z/=108.883,x=x>.008856?x**.3333333333333333:7.787*x+.13793103448275862,y=y>.008856?y**.3333333333333333:7.787*y+.13793103448275862,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862;return[116*y-16,500*(x-y),200*(y-z)]},convert.lab.xyz=function(lab){let x,y,z;y=(lab[0]+16)/116,x=lab[1]/500+y,z=y-lab[2]/200;const y2=y**3,x2=x**3,z2=z**3;return y=y2>.008856?y2:(y-.13793103448275862)/7.787,x=x2>.008856?x2:(x-.13793103448275862)/7.787,z=z2>.008856?z2:(z-.13793103448275862)/7.787,x*=95.047,y*=100,z*=108.883,[x,y,z]},convert.lab.lch=function(lab){const l=lab[0],a=lab[1],b2=lab[2];let h;h=360*Math.atan2(b2,a)/2/Math.PI,h<0&&(h+=360);return[l,Math.sqrt(a*a+b2*b2),h]},convert.lch.lab=function(lch){const l=lch[0],c=lch[1],hr=lch[2]/360*2*Math.PI;return[l,c*Math.cos(hr),c*Math.sin(hr)]},convert.rgb.ansi16=function(args2,saturation=null){const[r,g,b2]=args2;let value=null===saturation?convert.rgb.hsv(args2)[2]:saturation;if(value=Math.round(value/50),0===value)return 30;let ansi=30+(Math.round(b2/255)<<2|Math.round(g/255)<<1|Math.round(r/255));return 2===value&&(ansi+=60),ansi},convert.hsv.ansi16=function(args2){return convert.rgb.ansi16(convert.hsv.rgb(args2),args2[2])},convert.rgb.ansi256=function(args2){const r=args2[0],g=args2[1],b2=args2[2];return r===g&&g===b2?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(g/255*5)+Math.round(b2/255*5)},convert.ansi16.rgb=function(args2){let color=args2%10;if(0===color||7===color)return args2>50&&(color+=3.5),color=color/10.5*255,[color,color,color];const mult=.5*(1+~~(args2>50));return[(1&color)*mult*255,(color>>1&1)*mult*255,(color>>2&1)*mult*255]},convert.ansi256.rgb=function(args2){if(args2>=232){const c=10*(args2-232)+8;return[c,c,c]}let rem;args2-=16;return[Math.floor(args2/36)/5*255,Math.floor((rem=args2%36)/6)/5*255,rem%6/5*255]},convert.rgb.hex=function(args2){const string=(((255&Math.round(args2[0]))<<16)+((255&Math.round(args2[1]))<<8)+(255&Math.round(args2[2]))).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert.hex.rgb=function(args2){const match=args2.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match)return[0,0,0];let colorString=match[0];3===match[0].length&&(colorString=colorString.split("").map(char=>char+char).join(""));const integer=parseInt(colorString,16);return[integer>>16&255,integer>>8&255,255&integer]},convert.rgb.hcg=function(rgb){const r=rgb[0]/255,g=rgb[1]/255,b2=rgb[2]/255,max=Math.max(Math.max(r,g),b2),min=Math.min(Math.min(r,g),b2),chroma=max-min;let grayscale,hue;return grayscale=chroma<1?min/(1-chroma):0,hue=chroma<=0?0:max===r?(g-b2)/chroma%6:max===g?2+(b2-r)/chroma:4+(r-g)/chroma,hue/=6,hue%=1,[360*hue,100*chroma,100*grayscale]},convert.hsl.hcg=function(hsl){const s=hsl[1]/100,l=hsl[2]/100,c=l<.5?2*s*l:2*s*(1-l);let f2=0;return c<1&&(f2=(l-.5*c)/(1-c)),[hsl[0],100*c,100*f2]},convert.hsv.hcg=function(hsv){const s=hsv[1]/100,v=hsv[2]/100,c=s*v;let f2=0;return c<1&&(f2=(v-c)/(1-c)),[hsv[0],100*c,100*f2]},convert.hcg.rgb=function(hcg){const h=hcg[0]/360,c=hcg[1]/100,g=hcg[2]/100;if(0===c)return[255*g,255*g,255*g];const pure=[0,0,0],hi=h%1*6,v=hi%1,w=1-v;let mg=0;switch(Math.floor(hi)){case 0:pure[0]=1,pure[1]=v,pure[2]=0;break;case 1:pure[0]=w,pure[1]=1,pure[2]=0;break;case 2:pure[0]=0,pure[1]=1,pure[2]=v;break;case 3:pure[0]=0,pure[1]=w,pure[2]=1;break;case 4:pure[0]=v,pure[1]=0,pure[2]=1;break;default:pure[0]=1,pure[1]=0,pure[2]=w}return mg=(1-c)*g,[255*(c*pure[0]+mg),255*(c*pure[1]+mg),255*(c*pure[2]+mg)]},convert.hcg.hsv=function(hcg){const c=hcg[1]/100,v=c+hcg[2]/100*(1-c);let f2=0;return v>0&&(f2=c/v),[hcg[0],100*f2,100*v]},convert.hcg.hsl=function(hcg){const c=hcg[1]/100,l=hcg[2]/100*(1-c)+.5*c;let s=0;return l>0&&l<.5?s=c/(2*l):l>=.5&&l<1&&(s=c/(2*(1-l))),[hcg[0],100*s,100*l]},convert.hcg.hwb=function(hcg){const c=hcg[1]/100,v=c+hcg[2]/100*(1-c);return[hcg[0],100*(v-c),100*(1-v)]},convert.hwb.hcg=function(hwb){const w=hwb[1]/100,v=1-hwb[2]/100,c=v-w;let g=0;return c<1&&(g=(v-c)/(1-c)),[hwb[0],100*c,100*g]},convert.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]},convert.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]},convert.gray.rgb=function(args2){return[args2[0]/100*255,args2[0]/100*255,args2[0]/100*255]},convert.gray.hsl=function(args2){return[0,0,args2[0]]},convert.gray.hsv=convert.gray.hsl,convert.gray.hwb=function(gray){return[0,100,gray[0]]},convert.gray.cmyk=function(gray){return[0,0,0,gray[0]]},convert.gray.lab=function(gray){return[gray[0],0,0]},convert.gray.hex=function(gray){const val=255&Math.round(gray[0]/100*255),string=((val<<16)+(val<<8)+val).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert.rgb.gray=function(rgb){return[(rgb[0]+rgb[1]+rgb[2])/3/255*100]}},75848:(module2,__unused_webpack_exports2,__webpack_require__2)=>{const conversions=__webpack_require__2(81582),route=__webpack_require__2(95726),convert={},models=Object.keys(conversions);function wrapRaw(fn2){const wrappedFn=__name(function(...args2){const arg0=args2[0];return null==arg0?arg0:(arg0.length>1&&(args2=arg0),fn2(args2))},"wrappedFn");return"conversion"in fn2&&(wrappedFn.conversion=fn2.conversion),wrappedFn}function wrapRounded(fn2){const wrappedFn=__name(function(...args2){const arg0=args2[0];if(null==arg0)return arg0;arg0.length>1&&(args2=arg0);const result=fn2(args2);if("object"==typeof result)for(let len=result.length,i2=0;i2{convert[fromModel]={},Object.defineProperty(convert[fromModel],"channels",{value:conversions[fromModel].channels}),Object.defineProperty(convert[fromModel],"labels",{value:conversions[fromModel].labels});const routes=route(fromModel);Object.keys(routes).forEach(toModel=>{const fn2=routes[toModel];convert[fromModel][toModel]=wrapRounded(fn2),convert[fromModel][toModel].raw=wrapRaw(fn2)})}),module2.exports=convert},95726:(module2,__unused_webpack_exports2,__webpack_require__2)=>{const conversions=__webpack_require__2(81582);function buildGraph(){const graph={},models=Object.keys(conversions);for(let len=models.length,i2=0;i2{"use strict";module2.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},1196:module2=>{"use strict";module2.exports=(flag,argv=process.argv)=>{const prefix=flag.startsWith("-")?"":1===flag.length?"-":"--",position=argv.indexOf(prefix+flag),terminatorPosition=argv.indexOf("--");return-1!==position&&(-1===terminatorPosition||position{"use strict";const{DOCUMENT_MODE}=__webpack_require__2(42712),QUIRKS_MODE_PUBLIC_ID_PREFIXES=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES=QUIRKS_MODE_PUBLIC_ID_PREFIXES.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),QUIRKS_MODE_PUBLIC_IDS=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],LIMITED_QUIRKS_PUBLIC_ID_PREFIXES=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES=LIMITED_QUIRKS_PUBLIC_ID_PREFIXES.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function enquoteDoctypeId(id){const quote=-1!==id.indexOf('"')?"'":'"';return quote+id+quote}function hasPrefix(publicId,prefixes){for(let i2=0;i2-1)return DOCUMENT_MODE.QUIRKS;let prefixes=null===systemId?QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES:QUIRKS_MODE_PUBLIC_ID_PREFIXES;if(hasPrefix(publicId,prefixes))return DOCUMENT_MODE.QUIRKS;if(prefixes=null===systemId?LIMITED_QUIRKS_PUBLIC_ID_PREFIXES:LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES,hasPrefix(publicId,prefixes))return DOCUMENT_MODE.LIMITED_QUIRKS}return DOCUMENT_MODE.NO_QUIRKS},exports2.serializeContent=function(name,publicId,systemId){let str="!DOCTYPE ";return name&&(str+=name),publicId?str+=" PUBLIC "+enquoteDoctypeId(publicId):systemId&&(str+=" SYSTEM"),null!==systemId&&(str+=" "+enquoteDoctypeId(systemId)),str}},61853:module2=>{"use strict";module2.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},84938:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";const Tokenizer=__webpack_require__2(24548),HTML=__webpack_require__2(42712),$=HTML.TAG_NAMES,NS=HTML.NAMESPACES,ATTRS=HTML.ATTRS,MIME_TYPES_TEXT_HTML="text/html",MIME_TYPES_APPLICATION_XML="application/xhtml+xml",SVG_ATTRS_ADJUSTMENT_MAP={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},XML_ATTRS_ADJUSTMENT_MAP={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:NS.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:NS.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:NS.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:NS.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:NS.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:NS.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:NS.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:NS.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:NS.XML},"xml:space":{prefix:"xml",name:"space",namespace:NS.XML},xmlns:{prefix:"",name:"xmlns",namespace:NS.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:NS.XMLNS}},SVG_TAG_NAMES_ADJUSTMENT_MAP=exports2.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},EXITS_FOREIGN_CONTENT={[$.B]:!0,[$.BIG]:!0,[$.BLOCKQUOTE]:!0,[$.BODY]:!0,[$.BR]:!0,[$.CENTER]:!0,[$.CODE]:!0,[$.DD]:!0,[$.DIV]:!0,[$.DL]:!0,[$.DT]:!0,[$.EM]:!0,[$.EMBED]:!0,[$.H1]:!0,[$.H2]:!0,[$.H3]:!0,[$.H4]:!0,[$.H5]:!0,[$.H6]:!0,[$.HEAD]:!0,[$.HR]:!0,[$.I]:!0,[$.IMG]:!0,[$.LI]:!0,[$.LISTING]:!0,[$.MENU]:!0,[$.META]:!0,[$.NOBR]:!0,[$.OL]:!0,[$.P]:!0,[$.PRE]:!0,[$.RUBY]:!0,[$.S]:!0,[$.SMALL]:!0,[$.SPAN]:!0,[$.STRONG]:!0,[$.STRIKE]:!0,[$.SUB]:!0,[$.SUP]:!0,[$.TABLE]:!0,[$.TT]:!0,[$.U]:!0,[$.UL]:!0,[$.VAR]:!0};function isMathMLTextIntegrationPoint(tn,ns){return ns===NS.MATHML&&(tn===$.MI||tn===$.MO||tn===$.MN||tn===$.MS||tn===$.MTEXT)}function isHtmlIntegrationPoint(tn,ns,attrs){if(ns===NS.MATHML&&tn===$.ANNOTATION_XML)for(let i2=0;i2{"use strict";const NS=exports2.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};exports2.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},exports2.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const $=exports2.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};exports2.SPECIAL_ELEMENTS={[NS.HTML]:{[$.ADDRESS]:!0,[$.APPLET]:!0,[$.AREA]:!0,[$.ARTICLE]:!0,[$.ASIDE]:!0,[$.BASE]:!0,[$.BASEFONT]:!0,[$.BGSOUND]:!0,[$.BLOCKQUOTE]:!0,[$.BODY]:!0,[$.BR]:!0,[$.BUTTON]:!0,[$.CAPTION]:!0,[$.CENTER]:!0,[$.COL]:!0,[$.COLGROUP]:!0,[$.DD]:!0,[$.DETAILS]:!0,[$.DIR]:!0,[$.DIV]:!0,[$.DL]:!0,[$.DT]:!0,[$.EMBED]:!0,[$.FIELDSET]:!0,[$.FIGCAPTION]:!0,[$.FIGURE]:!0,[$.FOOTER]:!0,[$.FORM]:!0,[$.FRAME]:!0,[$.FRAMESET]:!0,[$.H1]:!0,[$.H2]:!0,[$.H3]:!0,[$.H4]:!0,[$.H5]:!0,[$.H6]:!0,[$.HEAD]:!0,[$.HEADER]:!0,[$.HGROUP]:!0,[$.HR]:!0,[$.HTML]:!0,[$.IFRAME]:!0,[$.IMG]:!0,[$.INPUT]:!0,[$.LI]:!0,[$.LINK]:!0,[$.LISTING]:!0,[$.MAIN]:!0,[$.MARQUEE]:!0,[$.MENU]:!0,[$.META]:!0,[$.NAV]:!0,[$.NOEMBED]:!0,[$.NOFRAMES]:!0,[$.NOSCRIPT]:!0,[$.OBJECT]:!0,[$.OL]:!0,[$.P]:!0,[$.PARAM]:!0,[$.PLAINTEXT]:!0,[$.PRE]:!0,[$.SCRIPT]:!0,[$.SECTION]:!0,[$.SELECT]:!0,[$.SOURCE]:!0,[$.STYLE]:!0,[$.SUMMARY]:!0,[$.TABLE]:!0,[$.TBODY]:!0,[$.TD]:!0,[$.TEMPLATE]:!0,[$.TEXTAREA]:!0,[$.TFOOT]:!0,[$.TH]:!0,[$.THEAD]:!0,[$.TITLE]:!0,[$.TR]:!0,[$.TRACK]:!0,[$.UL]:!0,[$.WBR]:!0,[$.XMP]:!0},[NS.MATHML]:{[$.MI]:!0,[$.MO]:!0,[$.MN]:!0,[$.MS]:!0,[$.MTEXT]:!0,[$.ANNOTATION_XML]:!0},[NS.SVG]:{[$.TITLE]:!0,[$.FOREIGN_OBJECT]:!0,[$.DESC]:!0}}},47835:(__unused_webpack_module,exports2)=>{"use strict";const UNDEFINED_CODE_POINTS=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];exports2.REPLACEMENT_CHARACTER="\ufffd",exports2.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},exports2.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},exports2.isSurrogate=function(cp){return cp>=55296&&cp<=57343},exports2.isSurrogatePair=function(cp){return cp>=56320&&cp<=57343},exports2.getSurrogatePairCodePoint=function(cp1,cp2){return 1024*(cp1-55296)+9216+cp2},exports2.isControlCodePoint=function(cp){return 32!==cp&&10!==cp&&13!==cp&&9!==cp&&12!==cp&&cp>=1&&cp<=31||cp>=127&&cp<=159},exports2.isUndefinedCodePoint=function(cp){return cp>=64976&&cp<=65007||UNDEFINED_CODE_POINTS.indexOf(cp)>-1}},49279:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const Mixin=__webpack_require__2(37878);class ErrorReportingMixinBase extends Mixin{constructor(host,opts){super(host),this.posTracker=null,this.onParseError=opts.onParseError}_setErrorLocation(err){err.startLine=err.endLine=this.posTracker.line,err.startCol=err.endCol=this.posTracker.col,err.startOffset=err.endOffset=this.posTracker.offset}_reportError(code2){const err={code:code2,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(err),this.onParseError(err)}_getOverriddenMethods(mxn){return{_err(code2){mxn._reportError(code2)}}}}__name(ErrorReportingMixinBase,"ErrorReportingMixinBase"),module2.exports=ErrorReportingMixinBase},93564:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const ErrorReportingMixinBase=__webpack_require__2(49279),ErrorReportingTokenizerMixin=__webpack_require__2(49184),LocationInfoTokenizerMixin=__webpack_require__2(91433),Mixin=__webpack_require__2(37878);class ErrorReportingParserMixin extends ErrorReportingMixinBase{constructor(parser,opts){super(parser,opts),this.opts=opts,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(err){this.ctLoc&&(err.startLine=this.ctLoc.startLine,err.startCol=this.ctLoc.startCol,err.startOffset=this.ctLoc.startOffset,err.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,err.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,err.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(mxn,orig){return{_bootstrap(document2,fragmentContext){orig._bootstrap.call(this,document2,fragmentContext),Mixin.install(this.tokenizer,ErrorReportingTokenizerMixin,mxn.opts),Mixin.install(this.tokenizer,LocationInfoTokenizerMixin)},_processInputToken(token){mxn.ctLoc=token.location,orig._processInputToken.call(this,token)},_err(code2,options){mxn.locBeforeToken=options&&options.beforeToken,mxn._reportError(code2)}}}}__name(ErrorReportingParserMixin,"ErrorReportingParserMixin"),module2.exports=ErrorReportingParserMixin},32742:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const ErrorReportingMixinBase=__webpack_require__2(49279),PositionTrackingPreprocessorMixin=__webpack_require__2(11974),Mixin=__webpack_require__2(37878);class ErrorReportingPreprocessorMixin extends ErrorReportingMixinBase{constructor(preprocessor,opts){super(preprocessor,opts),this.posTracker=Mixin.install(preprocessor,PositionTrackingPreprocessorMixin),this.lastErrOffset=-1}_reportError(code2){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(code2))}}__name(ErrorReportingPreprocessorMixin,"ErrorReportingPreprocessorMixin"),module2.exports=ErrorReportingPreprocessorMixin},49184:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const ErrorReportingMixinBase=__webpack_require__2(49279),ErrorReportingPreprocessorMixin=__webpack_require__2(32742),Mixin=__webpack_require__2(37878);class ErrorReportingTokenizerMixin extends ErrorReportingMixinBase{constructor(tokenizer,opts){super(tokenizer,opts);const preprocessorMixin=Mixin.install(tokenizer.preprocessor,ErrorReportingPreprocessorMixin,opts);this.posTracker=preprocessorMixin.posTracker}}__name(ErrorReportingTokenizerMixin,"ErrorReportingTokenizerMixin"),module2.exports=ErrorReportingTokenizerMixin},20223:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const Mixin=__webpack_require__2(37878);class LocationInfoOpenElementStackMixin extends Mixin{constructor(stack2,opts){super(stack2),this.onItemPop=opts.onItemPop}_getOverriddenMethods(mxn,orig){return{pop(){mxn.onItemPop(this.current),orig.pop.call(this)},popAllUpToHtmlElement(){for(let i2=this.stackTop;i2>0;i2--)mxn.onItemPop(this.items[i2]);orig.popAllUpToHtmlElement.call(this)},remove(element){mxn.onItemPop(this.current),orig.remove.call(this,element)}}}}__name(LocationInfoOpenElementStackMixin,"LocationInfoOpenElementStackMixin"),module2.exports=LocationInfoOpenElementStackMixin},14226:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const Mixin=__webpack_require__2(37878),Tokenizer=__webpack_require__2(24548),LocationInfoTokenizerMixin=__webpack_require__2(91433),LocationInfoOpenElementStackMixin=__webpack_require__2(20223),$=__webpack_require__2(42712).TAG_NAMES;class LocationInfoParserMixin extends Mixin{constructor(parser){super(parser),this.parser=parser,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(element){let loc=null;this.lastStartTagToken&&(loc=Object.assign({},this.lastStartTagToken.location),loc.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(element,loc)}_setEndLocation(element,closingToken){const loc=this.treeAdapter.getNodeSourceCodeLocation(element);if(loc&&closingToken.location){const ctLoc=closingToken.location,tn=this.treeAdapter.getTagName(element);closingToken.type===Tokenizer.END_TAG_TOKEN&&tn===closingToken.tagName?(loc.endTag=Object.assign({},ctLoc),loc.endLine=ctLoc.endLine,loc.endCol=ctLoc.endCol,loc.endOffset=ctLoc.endOffset):(loc.endLine=ctLoc.startLine,loc.endCol=ctLoc.startCol,loc.endOffset=ctLoc.startOffset)}}_getOverriddenMethods(mxn,orig){return{_bootstrap(document2,fragmentContext){orig._bootstrap.call(this,document2,fragmentContext),mxn.lastStartTagToken=null,mxn.lastFosterParentingLocation=null,mxn.currentToken=null;const tokenizerMixin=Mixin.install(this.tokenizer,LocationInfoTokenizerMixin);mxn.posTracker=tokenizerMixin.posTracker,Mixin.install(this.openElements,LocationInfoOpenElementStackMixin,{onItemPop:function(element){mxn._setEndLocation(element,mxn.currentToken)}})},_runParsingLoop(scriptHandler){orig._runParsingLoop.call(this,scriptHandler);for(let i2=this.openElements.stackTop;i2>=0;i2--)mxn._setEndLocation(this.openElements.items[i2],mxn.currentToken)},_processTokenInForeignContent(token){mxn.currentToken=token,orig._processTokenInForeignContent.call(this,token)},_processToken(token){if(mxn.currentToken=token,orig._processToken.call(this,token),token.type===Tokenizer.END_TAG_TOKEN&&(token.tagName===$.HTML||token.tagName===$.BODY&&this.openElements.hasInScope($.BODY)))for(let i2=this.openElements.stackTop;i2>=0;i2--){const element=this.openElements.items[i2];if(this.treeAdapter.getTagName(element)===token.tagName){mxn._setEndLocation(element,token);break}}},_setDocumentType(token){orig._setDocumentType.call(this,token);const documentChildren=this.treeAdapter.getChildNodes(this.document),cnLength=documentChildren.length;for(let i2=0;i2{"use strict";const Mixin=__webpack_require__2(37878),Tokenizer=__webpack_require__2(24548),PositionTrackingPreprocessorMixin=__webpack_require__2(11974);class LocationInfoTokenizerMixin extends Mixin{constructor(tokenizer){super(tokenizer),this.tokenizer=tokenizer,this.posTracker=Mixin.install(tokenizer.preprocessor,PositionTrackingPreprocessorMixin),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const currentToken=this.tokenizer.currentToken,currentAttr=this.tokenizer.currentAttr;currentToken.location.attrs||(currentToken.location.attrs=Object.create(null)),currentToken.location.attrs[currentAttr.name]=this.currentAttrLocation}_getOverriddenMethods(mxn,orig){const methods={_createStartTagToken(){orig._createStartTagToken.call(this),this.currentToken.location=mxn.ctLoc},_createEndTagToken(){orig._createEndTagToken.call(this),this.currentToken.location=mxn.ctLoc},_createCommentToken(){orig._createCommentToken.call(this),this.currentToken.location=mxn.ctLoc},_createDoctypeToken(initialName){orig._createDoctypeToken.call(this,initialName),this.currentToken.location=mxn.ctLoc},_createCharacterToken(type,ch){orig._createCharacterToken.call(this,type,ch),this.currentCharacterToken.location=mxn.ctLoc},_createEOFToken(){orig._createEOFToken.call(this),this.currentToken.location=mxn._getCurrentLocation()},_createAttr(attrNameFirstCh){orig._createAttr.call(this,attrNameFirstCh),mxn.currentAttrLocation=mxn._getCurrentLocation()},_leaveAttrName(toState){orig._leaveAttrName.call(this,toState),mxn._attachCurrentAttrLocationInfo()},_leaveAttrValue(toState){orig._leaveAttrValue.call(this,toState),mxn._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const ctLoc=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=ctLoc.startLine,this.currentCharacterToken.location.endCol=ctLoc.startCol,this.currentCharacterToken.location.endOffset=ctLoc.startOffset),this.currentToken.type===Tokenizer.EOF_TOKEN?(ctLoc.endLine=ctLoc.startLine,ctLoc.endCol=ctLoc.startCol,ctLoc.endOffset=ctLoc.startOffset):(ctLoc.endLine=mxn.posTracker.line,ctLoc.endCol=mxn.posTracker.col+1,ctLoc.endOffset=mxn.posTracker.offset+1),orig._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const ctLoc=this.currentCharacterToken&&this.currentCharacterToken.location;ctLoc&&-1===ctLoc.endOffset&&(ctLoc.endLine=mxn.posTracker.line,ctLoc.endCol=mxn.posTracker.col,ctLoc.endOffset=mxn.posTracker.offset),orig._emitCurrentCharacterToken.call(this)}};return Object.keys(Tokenizer.MODE).forEach(modeName=>{const state=Tokenizer.MODE[modeName];methods[state]=function(cp){mxn.ctLoc=mxn._getCurrentLocation(),orig[state].call(this,cp)}}),methods}}__name(LocationInfoTokenizerMixin,"LocationInfoTokenizerMixin"),module2.exports=LocationInfoTokenizerMixin},11974:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const Mixin=__webpack_require__2(37878);class PositionTrackingPreprocessorMixin extends Mixin{constructor(preprocessor){super(preprocessor),this.preprocessor=preprocessor,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(mxn,orig){return{advance(){const pos=this.pos+1,ch=this.html[pos];return mxn.isEol&&(mxn.isEol=!1,mxn.line++,mxn.lineStartPos=pos),("\n"===ch||"\r"===ch&&"\n"!==this.html[pos+1])&&(mxn.isEol=!0),mxn.col=pos-mxn.lineStartPos+1,mxn.offset=mxn.droppedBufferSize+pos,orig.advance.call(this)},retreat(){orig.retreat.call(this),mxn.isEol=!1,mxn.col=this.pos-mxn.lineStartPos+1},dropParsedChunk(){const prevPos=this.pos;orig.dropParsedChunk.call(this);const reduction=prevPos-this.pos;mxn.lineStartPos-=reduction,mxn.droppedBufferSize+=reduction,mxn.offset=mxn.droppedBufferSize+this.pos}}}}__name(PositionTrackingPreprocessorMixin,"PositionTrackingPreprocessorMixin"),module2.exports=PositionTrackingPreprocessorMixin},68839:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";const Parser=__webpack_require__2(51441),Serializer=__webpack_require__2(84244);exports2.parse=__name(function(html,options){return new Parser(options).parse(html)},"parse"),exports2.parseFragment=__name(function(fragmentContext,html,options){return"string"==typeof fragmentContext&&(options=html,html=fragmentContext,fragmentContext=null),new Parser(options).parseFragment(html,fragmentContext)},"parseFragment"),exports2.serialize=function(node,options){return new Serializer(node,options).serialize()}},36253:module2=>{"use strict";class FormattingElementList{constructor(treeAdapter){this.length=0,this.entries=[],this.treeAdapter=treeAdapter,this.bookmark=null}_getNoahArkConditionCandidates(newElement){const candidates=[];if(this.length>=3){const neAttrsLength=this.treeAdapter.getAttrList(newElement).length,neTagName=this.treeAdapter.getTagName(newElement),neNamespaceURI=this.treeAdapter.getNamespaceURI(newElement);for(let i2=this.length-1;i2>=0;i2--){const entry=this.entries[i2];if(entry.type===FormattingElementList.MARKER_ENTRY)break;const element=entry.element,elementAttrs=this.treeAdapter.getAttrList(element);this.treeAdapter.getTagName(element)===neTagName&&this.treeAdapter.getNamespaceURI(element)===neNamespaceURI&&elementAttrs.length===neAttrsLength&&candidates.push({idx:i2,attrs:elementAttrs})}}return candidates.length<3?[]:candidates}_ensureNoahArkCondition(newElement){const candidates=this._getNoahArkConditionCandidates(newElement);let cLength=candidates.length;if(cLength){const neAttrs=this.treeAdapter.getAttrList(newElement),neAttrsLength=neAttrs.length,neAttrsMap=Object.create(null);for(let i2=0;i2=2;i2--)this.entries.splice(candidates[i2].idx,1),this.length--}}insertMarker(){this.entries.push({type:FormattingElementList.MARKER_ENTRY}),this.length++}pushElement(element,token){this._ensureNoahArkCondition(element),this.entries.push({type:FormattingElementList.ELEMENT_ENTRY,element,token}),this.length++}insertElementAfterBookmark(element,token){let bookmarkIdx=this.length-1;for(;bookmarkIdx>=0&&this.entries[bookmarkIdx]!==this.bookmark;bookmarkIdx--);this.entries.splice(bookmarkIdx+1,0,{type:FormattingElementList.ELEMENT_ENTRY,element,token}),this.length++}removeEntry(entry){for(let i2=this.length-1;i2>=0;i2--)if(this.entries[i2]===entry){this.entries.splice(i2,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const entry=this.entries.pop();if(this.length--,entry.type===FormattingElementList.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(tagName){for(let i2=this.length-1;i2>=0;i2--){const entry=this.entries[i2];if(entry.type===FormattingElementList.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(entry.element)===tagName)return entry}return null}getElementEntry(element){for(let i2=this.length-1;i2>=0;i2--){const entry=this.entries[i2];if(entry.type===FormattingElementList.ELEMENT_ENTRY&&entry.element===element)return entry}return null}}__name(FormattingElementList,"FormattingElementList"),FormattingElementList.MARKER_ENTRY="MARKER_ENTRY",FormattingElementList.ELEMENT_ENTRY="ELEMENT_ENTRY",module2.exports=FormattingElementList},51441:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const Tokenizer=__webpack_require__2(24548),OpenElementStack=__webpack_require__2(44593),FormattingElementList=__webpack_require__2(36253),LocationInfoParserMixin=__webpack_require__2(14226),ErrorReportingParserMixin=__webpack_require__2(93564),Mixin=__webpack_require__2(37878),defaultTreeAdapter=__webpack_require__2(72057),mergeOptions=__webpack_require__2(58244),doctype=__webpack_require__2(67822),foreignContent=__webpack_require__2(84938),ERR=__webpack_require__2(61853),unicode=__webpack_require__2(47835),HTML=__webpack_require__2(42712),$=HTML.TAG_NAMES,NS=HTML.NAMESPACES,ATTRS=HTML.ATTRS,DEFAULT_OPTIONS={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:defaultTreeAdapter},IN_TABLE_MODE="IN_TABLE_MODE",INSERTION_MODE_RESET_MAP={[$.TR]:"IN_ROW_MODE",[$.TBODY]:"IN_TABLE_BODY_MODE",[$.THEAD]:"IN_TABLE_BODY_MODE",[$.TFOOT]:"IN_TABLE_BODY_MODE",[$.CAPTION]:"IN_CAPTION_MODE",[$.COLGROUP]:"IN_COLUMN_GROUP_MODE",[$.TABLE]:IN_TABLE_MODE,[$.BODY]:"IN_BODY_MODE",[$.FRAMESET]:"IN_FRAMESET_MODE"},TEMPLATE_INSERTION_MODE_SWITCH_MAP={[$.CAPTION]:IN_TABLE_MODE,[$.COLGROUP]:IN_TABLE_MODE,[$.TBODY]:IN_TABLE_MODE,[$.TFOOT]:IN_TABLE_MODE,[$.THEAD]:IN_TABLE_MODE,[$.COL]:"IN_COLUMN_GROUP_MODE",[$.TR]:"IN_TABLE_BODY_MODE",[$.TD]:"IN_ROW_MODE",[$.TH]:"IN_ROW_MODE"},TOKEN_HANDLERS={INITIAL_MODE:{[Tokenizer.CHARACTER_TOKEN]:tokenInInitialMode,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenInInitialMode,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:doctypeInInitialMode,[Tokenizer.START_TAG_TOKEN]:tokenInInitialMode,[Tokenizer.END_TAG_TOKEN]:tokenInInitialMode,[Tokenizer.EOF_TOKEN]:tokenInInitialMode},BEFORE_HTML_MODE:{[Tokenizer.CHARACTER_TOKEN]:tokenBeforeHtml,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenBeforeHtml,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagBeforeHtml,[Tokenizer.END_TAG_TOKEN]:endTagBeforeHtml,[Tokenizer.EOF_TOKEN]:tokenBeforeHtml},BEFORE_HEAD_MODE:{[Tokenizer.CHARACTER_TOKEN]:tokenBeforeHead,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenBeforeHead,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:misplacedDoctype,[Tokenizer.START_TAG_TOKEN]:startTagBeforeHead,[Tokenizer.END_TAG_TOKEN]:endTagBeforeHead,[Tokenizer.EOF_TOKEN]:tokenBeforeHead},IN_HEAD_MODE:{[Tokenizer.CHARACTER_TOKEN]:tokenInHead,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenInHead,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:misplacedDoctype,[Tokenizer.START_TAG_TOKEN]:startTagInHead,[Tokenizer.END_TAG_TOKEN]:endTagInHead,[Tokenizer.EOF_TOKEN]:tokenInHead},IN_HEAD_NO_SCRIPT_MODE:{[Tokenizer.CHARACTER_TOKEN]:tokenInHeadNoScript,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenInHeadNoScript,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:misplacedDoctype,[Tokenizer.START_TAG_TOKEN]:startTagInHeadNoScript,[Tokenizer.END_TAG_TOKEN]:endTagInHeadNoScript,[Tokenizer.EOF_TOKEN]:tokenInHeadNoScript},AFTER_HEAD_MODE:{[Tokenizer.CHARACTER_TOKEN]:tokenAfterHead,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenAfterHead,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:misplacedDoctype,[Tokenizer.START_TAG_TOKEN]:startTagAfterHead,[Tokenizer.END_TAG_TOKEN]:endTagAfterHead,[Tokenizer.EOF_TOKEN]:tokenAfterHead},IN_BODY_MODE:{[Tokenizer.CHARACTER_TOKEN]:characterInBody,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInBody,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInBody,[Tokenizer.END_TAG_TOKEN]:endTagInBody,[Tokenizer.EOF_TOKEN]:eofInBody},TEXT_MODE:{[Tokenizer.CHARACTER_TOKEN]:insertCharacters,[Tokenizer.NULL_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:ignoreToken,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:ignoreToken,[Tokenizer.END_TAG_TOKEN]:endTagInText,[Tokenizer.EOF_TOKEN]:eofInText},[IN_TABLE_MODE]:{[Tokenizer.CHARACTER_TOKEN]:characterInTable,[Tokenizer.NULL_CHARACTER_TOKEN]:characterInTable,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:characterInTable,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInTable,[Tokenizer.END_TAG_TOKEN]:endTagInTable,[Tokenizer.EOF_TOKEN]:eofInBody},IN_TABLE_TEXT_MODE:{[Tokenizer.CHARACTER_TOKEN]:characterInTableText,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInTableText,[Tokenizer.COMMENT_TOKEN]:tokenInTableText,[Tokenizer.DOCTYPE_TOKEN]:tokenInTableText,[Tokenizer.START_TAG_TOKEN]:tokenInTableText,[Tokenizer.END_TAG_TOKEN]:tokenInTableText,[Tokenizer.EOF_TOKEN]:tokenInTableText},IN_CAPTION_MODE:{[Tokenizer.CHARACTER_TOKEN]:characterInBody,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInBody,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInCaption,[Tokenizer.END_TAG_TOKEN]:endTagInCaption,[Tokenizer.EOF_TOKEN]:eofInBody},IN_COLUMN_GROUP_MODE:{[Tokenizer.CHARACTER_TOKEN]:tokenInColumnGroup,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenInColumnGroup,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInColumnGroup,[Tokenizer.END_TAG_TOKEN]:endTagInColumnGroup,[Tokenizer.EOF_TOKEN]:eofInBody},IN_TABLE_BODY_MODE:{[Tokenizer.CHARACTER_TOKEN]:characterInTable,[Tokenizer.NULL_CHARACTER_TOKEN]:characterInTable,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:characterInTable,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInTableBody,[Tokenizer.END_TAG_TOKEN]:endTagInTableBody,[Tokenizer.EOF_TOKEN]:eofInBody},IN_ROW_MODE:{[Tokenizer.CHARACTER_TOKEN]:characterInTable,[Tokenizer.NULL_CHARACTER_TOKEN]:characterInTable,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:characterInTable,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInRow,[Tokenizer.END_TAG_TOKEN]:endTagInRow,[Tokenizer.EOF_TOKEN]:eofInBody},IN_CELL_MODE:{[Tokenizer.CHARACTER_TOKEN]:characterInBody,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInBody,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInCell,[Tokenizer.END_TAG_TOKEN]:endTagInCell,[Tokenizer.EOF_TOKEN]:eofInBody},IN_SELECT_MODE:{[Tokenizer.CHARACTER_TOKEN]:insertCharacters,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInSelect,[Tokenizer.END_TAG_TOKEN]:endTagInSelect,[Tokenizer.EOF_TOKEN]:eofInBody},IN_SELECT_IN_TABLE_MODE:{[Tokenizer.CHARACTER_TOKEN]:insertCharacters,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInSelectInTable,[Tokenizer.END_TAG_TOKEN]:endTagInSelectInTable,[Tokenizer.EOF_TOKEN]:eofInBody},IN_TEMPLATE_MODE:{[Tokenizer.CHARACTER_TOKEN]:characterInBody,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInBody,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInTemplate,[Tokenizer.END_TAG_TOKEN]:endTagInTemplate,[Tokenizer.EOF_TOKEN]:eofInTemplate},AFTER_BODY_MODE:{[Tokenizer.CHARACTER_TOKEN]:tokenAfterBody,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenAfterBody,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInBody,[Tokenizer.COMMENT_TOKEN]:appendCommentToRootHtmlElement,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagAfterBody,[Tokenizer.END_TAG_TOKEN]:endTagAfterBody,[Tokenizer.EOF_TOKEN]:stopParsing},IN_FRAMESET_MODE:{[Tokenizer.CHARACTER_TOKEN]:ignoreToken,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInFrameset,[Tokenizer.END_TAG_TOKEN]:endTagInFrameset,[Tokenizer.EOF_TOKEN]:stopParsing},AFTER_FRAMESET_MODE:{[Tokenizer.CHARACTER_TOKEN]:ignoreToken,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagAfterFrameset,[Tokenizer.END_TAG_TOKEN]:endTagAfterFrameset,[Tokenizer.EOF_TOKEN]:stopParsing},AFTER_AFTER_BODY_MODE:{[Tokenizer.CHARACTER_TOKEN]:tokenAfterAfterBody,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenAfterAfterBody,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInBody,[Tokenizer.COMMENT_TOKEN]:appendCommentToDocument,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagAfterAfterBody,[Tokenizer.END_TAG_TOKEN]:tokenAfterAfterBody,[Tokenizer.EOF_TOKEN]:stopParsing},AFTER_AFTER_FRAMESET_MODE:{[Tokenizer.CHARACTER_TOKEN]:ignoreToken,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInBody,[Tokenizer.COMMENT_TOKEN]:appendCommentToDocument,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagAfterAfterFrameset,[Tokenizer.END_TAG_TOKEN]:ignoreToken,[Tokenizer.EOF_TOKEN]:stopParsing}};class Parser{constructor(options){this.options=mergeOptions(DEFAULT_OPTIONS,options),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&Mixin.install(this,LocationInfoParserMixin),this.options.onParseError&&Mixin.install(this,ErrorReportingParserMixin,{onParseError:this.options.onParseError})}parse(html){const document2=this.treeAdapter.createDocument();return this._bootstrap(document2,null),this.tokenizer.write(html,!0),this._runParsingLoop(null),document2}parseFragment(html,fragmentContext){fragmentContext||(fragmentContext=this.treeAdapter.createElement($.TEMPLATE,NS.HTML,[]));const documentMock=this.treeAdapter.createElement("documentmock",NS.HTML,[]);this._bootstrap(documentMock,fragmentContext),this.treeAdapter.getTagName(fragmentContext)===$.TEMPLATE&&this._pushTmplInsertionMode("IN_TEMPLATE_MODE"),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(html,!0),this._runParsingLoop(null);const rootElement=this.treeAdapter.getFirstChild(documentMock),fragment=this.treeAdapter.createDocumentFragment();return this._adoptNodes(rootElement,fragment),fragment}_bootstrap(document2,fragmentContext){this.tokenizer=new Tokenizer(this.options),this.stopped=!1,this.insertionMode="INITIAL_MODE",this.originalInsertionMode="",this.document=document2,this.fragmentContext=fragmentContext,this.headElement=null,this.formElement=null,this.openElements=new OpenElementStack(this.document,this.treeAdapter),this.activeFormattingElements=new FormattingElementList(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(scriptHandler){for(;!this.stopped;){this._setupTokenizerCDATAMode();const token=this.tokenizer.getNextToken();if(token.type===Tokenizer.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,token.type===Tokenizer.WHITESPACE_CHARACTER_TOKEN&&"\n"===token.chars[0])){if(1===token.chars.length)continue;token.chars=token.chars.substr(1)}if(this._processInputToken(token),scriptHandler&&this.pendingScript)break}}runParsingLoopForCurrentChunk(writeCallback,scriptHandler){if(this._runParsingLoop(scriptHandler),scriptHandler&&this.pendingScript){const script=this.pendingScript;return this.pendingScript=null,void scriptHandler(script)}writeCallback&&writeCallback()}_setupTokenizerCDATAMode(){const current=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=current&¤t!==this.document&&this.treeAdapter.getNamespaceURI(current)!==NS.HTML&&!this._isIntegrationPoint(current)}_switchToTextParsing(currentToken,nextTokenizerState){this._insertElement(currentToken,NS.HTML),this.tokenizer.state=nextTokenizerState,this.originalInsertionMode=this.insertionMode,this.insertionMode="TEXT_MODE"}switchToPlaintextParsing(){this.insertionMode="TEXT_MODE",this.originalInsertionMode="IN_BODY_MODE",this.tokenizer.state=Tokenizer.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let node=this.fragmentContext;do{if(this.treeAdapter.getTagName(node)===$.FORM){this.formElement=node;break}node=this.treeAdapter.getParentNode(node)}while(node)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===NS.HTML){const tn=this.treeAdapter.getTagName(this.fragmentContext);tn===$.TITLE||tn===$.TEXTAREA?this.tokenizer.state=Tokenizer.MODE.RCDATA:tn===$.STYLE||tn===$.XMP||tn===$.IFRAME||tn===$.NOEMBED||tn===$.NOFRAMES||tn===$.NOSCRIPT?this.tokenizer.state=Tokenizer.MODE.RAWTEXT:tn===$.SCRIPT?this.tokenizer.state=Tokenizer.MODE.SCRIPT_DATA:tn===$.PLAINTEXT&&(this.tokenizer.state=Tokenizer.MODE.PLAINTEXT)}}_setDocumentType(token){const name=token.name||"",publicId=token.publicId||"",systemId=token.systemId||"";this.treeAdapter.setDocumentType(this.document,name,publicId,systemId)}_attachElementToTree(element){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(element);else{const parent=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(parent,element)}}_appendElement(token,namespaceURI){const element=this.treeAdapter.createElement(token.tagName,namespaceURI,token.attrs);this._attachElementToTree(element)}_insertElement(token,namespaceURI){const element=this.treeAdapter.createElement(token.tagName,namespaceURI,token.attrs);this._attachElementToTree(element),this.openElements.push(element)}_insertFakeElement(tagName){const element=this.treeAdapter.createElement(tagName,NS.HTML,[]);this._attachElementToTree(element),this.openElements.push(element)}_insertTemplate(token){const tmpl=this.treeAdapter.createElement(token.tagName,NS.HTML,token.attrs),content=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(tmpl,content),this._attachElementToTree(tmpl),this.openElements.push(tmpl)}_insertFakeRootElement(){const element=this.treeAdapter.createElement($.HTML,NS.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,element),this.openElements.push(element)}_appendCommentNode(token,parent){const commentNode=this.treeAdapter.createCommentNode(token.data);this.treeAdapter.appendChild(parent,commentNode)}_insertCharacters(token){if(this._shouldFosterParentOnInsertion())this._fosterParentText(token.chars);else{const parent=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(parent,token.chars)}}_adoptNodes(donor,recipient){for(let child=this.treeAdapter.getFirstChild(donor);child;child=this.treeAdapter.getFirstChild(donor))this.treeAdapter.detachNode(child),this.treeAdapter.appendChild(recipient,child)}_shouldProcessTokenInForeignContent(token){const current=this._getAdjustedCurrentElement();if(!current||current===this.document)return!1;const ns=this.treeAdapter.getNamespaceURI(current);if(ns===NS.HTML||this.treeAdapter.getTagName(current)===$.ANNOTATION_XML&&ns===NS.MATHML&&token.type===Tokenizer.START_TAG_TOKEN&&token.tagName===$.SVG)return!1;const isCharacterToken=token.type===Tokenizer.CHARACTER_TOKEN||token.type===Tokenizer.NULL_CHARACTER_TOKEN||token.type===Tokenizer.WHITESPACE_CHARACTER_TOKEN;return!((token.type===Tokenizer.START_TAG_TOKEN&&token.tagName!==$.MGLYPH&&token.tagName!==$.MALIGNMARK||isCharacterToken)&&this._isIntegrationPoint(current,NS.MATHML)||(token.type===Tokenizer.START_TAG_TOKEN||isCharacterToken)&&this._isIntegrationPoint(current,NS.HTML))&&token.type!==Tokenizer.EOF_TOKEN}_processToken(token){TOKEN_HANDLERS[this.insertionMode][token.type](this,token)}_processTokenInBodyMode(token){TOKEN_HANDLERS.IN_BODY_MODE[token.type](this,token)}_processTokenInForeignContent(token){token.type===Tokenizer.CHARACTER_TOKEN?characterInForeignContent(this,token):token.type===Tokenizer.NULL_CHARACTER_TOKEN?nullCharacterInForeignContent(this,token):token.type===Tokenizer.WHITESPACE_CHARACTER_TOKEN?insertCharacters(this,token):token.type===Tokenizer.COMMENT_TOKEN?appendComment(this,token):token.type===Tokenizer.START_TAG_TOKEN?startTagInForeignContent(this,token):token.type===Tokenizer.END_TAG_TOKEN&&endTagInForeignContent(this,token)}_processInputToken(token){this._shouldProcessTokenInForeignContent(token)?this._processTokenInForeignContent(token):this._processToken(token),token.type===Tokenizer.START_TAG_TOKEN&&token.selfClosing&&!token.ackSelfClosing&&this._err(ERR.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(element,foreignNS){const tn=this.treeAdapter.getTagName(element),ns=this.treeAdapter.getNamespaceURI(element),attrs=this.treeAdapter.getAttrList(element);return foreignContent.isIntegrationPoint(tn,ns,attrs,foreignNS)}_reconstructActiveFormattingElements(){const listLength=this.activeFormattingElements.length;if(listLength){let unopenIdx=listLength,entry=null;do{if(unopenIdx--,entry=this.activeFormattingElements.entries[unopenIdx],entry.type===FormattingElementList.MARKER_ENTRY||this.openElements.contains(entry.element)){unopenIdx++;break}}while(unopenIdx>0);for(let i2=unopenIdx;i2=0;i2--){let element=this.openElements.items[i2];0===i2&&(last=!0,this.fragmentContext&&(element=this.fragmentContext));const tn=this.treeAdapter.getTagName(element),newInsertionMode=INSERTION_MODE_RESET_MAP[tn];if(newInsertionMode){this.insertionMode=newInsertionMode;break}if(!(last||tn!==$.TD&&tn!==$.TH)){this.insertionMode="IN_CELL_MODE";break}if(!last&&tn===$.HEAD){this.insertionMode="IN_HEAD_MODE";break}if(tn===$.SELECT){this._resetInsertionModeForSelect(i2);break}if(tn===$.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(tn===$.HTML){this.insertionMode=this.headElement?"AFTER_HEAD_MODE":"BEFORE_HEAD_MODE";break}if(last){this.insertionMode="IN_BODY_MODE";break}}}_resetInsertionModeForSelect(selectIdx){if(selectIdx>0)for(let i2=selectIdx-1;i2>0;i2--){const ancestor=this.openElements.items[i2],tn=this.treeAdapter.getTagName(ancestor);if(tn===$.TEMPLATE)break;if(tn===$.TABLE)return void(this.insertionMode="IN_SELECT_IN_TABLE_MODE")}this.insertionMode="IN_SELECT_MODE"}_pushTmplInsertionMode(mode){this.tmplInsertionModeStack.push(mode),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=mode}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(element){const tn=this.treeAdapter.getTagName(element);return tn===$.TABLE||tn===$.TBODY||tn===$.TFOOT||tn===$.THEAD||tn===$.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const location2={parent:null,beforeElement:null};for(let i2=this.openElements.stackTop;i2>=0;i2--){const openElement=this.openElements.items[i2],tn=this.treeAdapter.getTagName(openElement),ns=this.treeAdapter.getNamespaceURI(openElement);if(tn===$.TEMPLATE&&ns===NS.HTML){location2.parent=this.treeAdapter.getTemplateContent(openElement);break}if(tn===$.TABLE){location2.parent=this.treeAdapter.getParentNode(openElement),location2.parent?location2.beforeElement=openElement:location2.parent=this.openElements.items[i2-1];break}}return location2.parent||(location2.parent=this.openElements.items[0]),location2}_fosterParentElement(element){const location2=this._findFosterParentingLocation();location2.beforeElement?this.treeAdapter.insertBefore(location2.parent,element,location2.beforeElement):this.treeAdapter.appendChild(location2.parent,element)}_fosterParentText(chars){const location2=this._findFosterParentingLocation();location2.beforeElement?this.treeAdapter.insertTextBefore(location2.parent,chars,location2.beforeElement):this.treeAdapter.insertText(location2.parent,chars)}_isSpecialElement(element){const tn=this.treeAdapter.getTagName(element),ns=this.treeAdapter.getNamespaceURI(element);return HTML.SPECIAL_ELEMENTS[ns][tn]}}function aaObtainFormattingElementEntry(p,token){let formattingElementEntry=p.activeFormattingElements.getElementEntryInScopeWithTagName(token.tagName);return formattingElementEntry?p.openElements.contains(formattingElementEntry.element)?p.openElements.hasInScope(token.tagName)||(formattingElementEntry=null):(p.activeFormattingElements.removeEntry(formattingElementEntry),formattingElementEntry=null):genericEndTagInBody(p,token),formattingElementEntry}function aaObtainFurthestBlock(p,formattingElementEntry){let furthestBlock=null;for(let i2=p.openElements.stackTop;i2>=0;i2--){const element=p.openElements.items[i2];if(element===formattingElementEntry.element)break;p._isSpecialElement(element)&&(furthestBlock=element)}return furthestBlock||(p.openElements.popUntilElementPopped(formattingElementEntry.element),p.activeFormattingElements.removeEntry(formattingElementEntry)),furthestBlock}function aaInnerLoop(p,furthestBlock,formattingElement){let lastElement=furthestBlock,nextElement=p.openElements.getCommonAncestor(furthestBlock);for(let i2=0,element=nextElement;element!==formattingElement;i2++,element=nextElement){nextElement=p.openElements.getCommonAncestor(element);const elementEntry=p.activeFormattingElements.getElementEntry(element),counterOverflow=elementEntry&&i2>=3;!elementEntry||counterOverflow?(counterOverflow&&p.activeFormattingElements.removeEntry(elementEntry),p.openElements.remove(element)):(element=aaRecreateElementFromEntry(p,elementEntry),lastElement===furthestBlock&&(p.activeFormattingElements.bookmark=elementEntry),p.treeAdapter.detachNode(lastElement),p.treeAdapter.appendChild(element,lastElement),lastElement=element)}return lastElement}function aaRecreateElementFromEntry(p,elementEntry){const ns=p.treeAdapter.getNamespaceURI(elementEntry.element),newElement=p.treeAdapter.createElement(elementEntry.token.tagName,ns,elementEntry.token.attrs);return p.openElements.replace(elementEntry.element,newElement),elementEntry.element=newElement,newElement}function aaInsertLastNodeInCommonAncestor(p,commonAncestor,lastElement){if(p._isElementCausesFosterParenting(commonAncestor))p._fosterParentElement(lastElement);else{const tn=p.treeAdapter.getTagName(commonAncestor),ns=p.treeAdapter.getNamespaceURI(commonAncestor);tn===$.TEMPLATE&&ns===NS.HTML&&(commonAncestor=p.treeAdapter.getTemplateContent(commonAncestor)),p.treeAdapter.appendChild(commonAncestor,lastElement)}}function aaReplaceFormattingElement(p,furthestBlock,formattingElementEntry){const ns=p.treeAdapter.getNamespaceURI(formattingElementEntry.element),token=formattingElementEntry.token,newElement=p.treeAdapter.createElement(token.tagName,ns,token.attrs);p._adoptNodes(furthestBlock,newElement),p.treeAdapter.appendChild(furthestBlock,newElement),p.activeFormattingElements.insertElementAfterBookmark(newElement,formattingElementEntry.token),p.activeFormattingElements.removeEntry(formattingElementEntry),p.openElements.remove(formattingElementEntry.element),p.openElements.insertAfter(furthestBlock,newElement)}function callAdoptionAgency(p,token){let formattingElementEntry;for(let i2=0;i2<8&&(formattingElementEntry=aaObtainFormattingElementEntry(p,token),formattingElementEntry);i2++){const furthestBlock=aaObtainFurthestBlock(p,formattingElementEntry);if(!furthestBlock)break;p.activeFormattingElements.bookmark=formattingElementEntry;const lastElement=aaInnerLoop(p,furthestBlock,formattingElementEntry.element),commonAncestor=p.openElements.getCommonAncestor(formattingElementEntry.element);p.treeAdapter.detachNode(lastElement),aaInsertLastNodeInCommonAncestor(p,commonAncestor,lastElement),aaReplaceFormattingElement(p,furthestBlock,formattingElementEntry)}}function ignoreToken(){}function misplacedDoctype(p){p._err(ERR.misplacedDoctype)}function appendComment(p,token){p._appendCommentNode(token,p.openElements.currentTmplContent||p.openElements.current)}function appendCommentToRootHtmlElement(p,token){p._appendCommentNode(token,p.openElements.items[0])}function appendCommentToDocument(p,token){p._appendCommentNode(token,p.document)}function insertCharacters(p,token){p._insertCharacters(token)}function stopParsing(p){p.stopped=!0}function doctypeInInitialMode(p,token){p._setDocumentType(token);const mode=token.forceQuirks?HTML.DOCUMENT_MODE.QUIRKS:doctype.getDocumentMode(token);doctype.isConforming(token)||p._err(ERR.nonConformingDoctype),p.treeAdapter.setDocumentMode(p.document,mode),p.insertionMode="BEFORE_HTML_MODE"}function tokenInInitialMode(p,token){p._err(ERR.missingDoctype,{beforeToken:!0}),p.treeAdapter.setDocumentMode(p.document,HTML.DOCUMENT_MODE.QUIRKS),p.insertionMode="BEFORE_HTML_MODE",p._processToken(token)}function startTagBeforeHtml(p,token){token.tagName===$.HTML?(p._insertElement(token,NS.HTML),p.insertionMode="BEFORE_HEAD_MODE"):tokenBeforeHtml(p,token)}function endTagBeforeHtml(p,token){const tn=token.tagName;(tn===$.HTML||tn===$.HEAD||tn===$.BODY||tn===$.BR)&&tokenBeforeHtml(p,token)}function tokenBeforeHtml(p,token){p._insertFakeRootElement(),p.insertionMode="BEFORE_HEAD_MODE",p._processToken(token)}function startTagBeforeHead(p,token){const tn=token.tagName;tn===$.HTML?startTagInBody(p,token):tn===$.HEAD?(p._insertElement(token,NS.HTML),p.headElement=p.openElements.current,p.insertionMode="IN_HEAD_MODE"):tokenBeforeHead(p,token)}function endTagBeforeHead(p,token){const tn=token.tagName;tn===$.HEAD||tn===$.BODY||tn===$.HTML||tn===$.BR?tokenBeforeHead(p,token):p._err(ERR.endTagWithoutMatchingOpenElement)}function tokenBeforeHead(p,token){p._insertFakeElement($.HEAD),p.headElement=p.openElements.current,p.insertionMode="IN_HEAD_MODE",p._processToken(token)}function startTagInHead(p,token){const tn=token.tagName;tn===$.HTML?startTagInBody(p,token):tn===$.BASE||tn===$.BASEFONT||tn===$.BGSOUND||tn===$.LINK||tn===$.META?(p._appendElement(token,NS.HTML),token.ackSelfClosing=!0):tn===$.TITLE?p._switchToTextParsing(token,Tokenizer.MODE.RCDATA):tn===$.NOSCRIPT?p.options.scriptingEnabled?p._switchToTextParsing(token,Tokenizer.MODE.RAWTEXT):(p._insertElement(token,NS.HTML),p.insertionMode="IN_HEAD_NO_SCRIPT_MODE"):tn===$.NOFRAMES||tn===$.STYLE?p._switchToTextParsing(token,Tokenizer.MODE.RAWTEXT):tn===$.SCRIPT?p._switchToTextParsing(token,Tokenizer.MODE.SCRIPT_DATA):tn===$.TEMPLATE?(p._insertTemplate(token,NS.HTML),p.activeFormattingElements.insertMarker(),p.framesetOk=!1,p.insertionMode="IN_TEMPLATE_MODE",p._pushTmplInsertionMode("IN_TEMPLATE_MODE")):tn===$.HEAD?p._err(ERR.misplacedStartTagForHeadElement):tokenInHead(p,token)}function endTagInHead(p,token){const tn=token.tagName;tn===$.HEAD?(p.openElements.pop(),p.insertionMode="AFTER_HEAD_MODE"):tn===$.BODY||tn===$.BR||tn===$.HTML?tokenInHead(p,token):tn===$.TEMPLATE&&p.openElements.tmplCount>0?(p.openElements.generateImpliedEndTagsThoroughly(),p.openElements.currentTagName!==$.TEMPLATE&&p._err(ERR.closingOfElementWithOpenChildElements),p.openElements.popUntilTagNamePopped($.TEMPLATE),p.activeFormattingElements.clearToLastMarker(),p._popTmplInsertionMode(),p._resetInsertionMode()):p._err(ERR.endTagWithoutMatchingOpenElement)}function tokenInHead(p,token){p.openElements.pop(),p.insertionMode="AFTER_HEAD_MODE",p._processToken(token)}function startTagInHeadNoScript(p,token){const tn=token.tagName;tn===$.HTML?startTagInBody(p,token):tn===$.BASEFONT||tn===$.BGSOUND||tn===$.HEAD||tn===$.LINK||tn===$.META||tn===$.NOFRAMES||tn===$.STYLE?startTagInHead(p,token):tn===$.NOSCRIPT?p._err(ERR.nestedNoscriptInHead):tokenInHeadNoScript(p,token)}function endTagInHeadNoScript(p,token){const tn=token.tagName;tn===$.NOSCRIPT?(p.openElements.pop(),p.insertionMode="IN_HEAD_MODE"):tn===$.BR?tokenInHeadNoScript(p,token):p._err(ERR.endTagWithoutMatchingOpenElement)}function tokenInHeadNoScript(p,token){const errCode=token.type===Tokenizer.EOF_TOKEN?ERR.openElementsLeftAfterEof:ERR.disallowedContentInNoscriptInHead;p._err(errCode),p.openElements.pop(),p.insertionMode="IN_HEAD_MODE",p._processToken(token)}function startTagAfterHead(p,token){const tn=token.tagName;tn===$.HTML?startTagInBody(p,token):tn===$.BODY?(p._insertElement(token,NS.HTML),p.framesetOk=!1,p.insertionMode="IN_BODY_MODE"):tn===$.FRAMESET?(p._insertElement(token,NS.HTML),p.insertionMode="IN_FRAMESET_MODE"):tn===$.BASE||tn===$.BASEFONT||tn===$.BGSOUND||tn===$.LINK||tn===$.META||tn===$.NOFRAMES||tn===$.SCRIPT||tn===$.STYLE||tn===$.TEMPLATE||tn===$.TITLE?(p._err(ERR.abandonedHeadElementChild),p.openElements.push(p.headElement),startTagInHead(p,token),p.openElements.remove(p.headElement)):tn===$.HEAD?p._err(ERR.misplacedStartTagForHeadElement):tokenAfterHead(p,token)}function endTagAfterHead(p,token){const tn=token.tagName;tn===$.BODY||tn===$.HTML||tn===$.BR?tokenAfterHead(p,token):tn===$.TEMPLATE?endTagInHead(p,token):p._err(ERR.endTagWithoutMatchingOpenElement)}function tokenAfterHead(p,token){p._insertFakeElement($.BODY),p.insertionMode="IN_BODY_MODE",p._processToken(token)}function whitespaceCharacterInBody(p,token){p._reconstructActiveFormattingElements(),p._insertCharacters(token)}function characterInBody(p,token){p._reconstructActiveFormattingElements(),p._insertCharacters(token),p.framesetOk=!1}function htmlStartTagInBody(p,token){0===p.openElements.tmplCount&&p.treeAdapter.adoptAttributes(p.openElements.items[0],token.attrs)}function bodyStartTagInBody(p,token){const bodyElement=p.openElements.tryPeekProperlyNestedBodyElement();bodyElement&&0===p.openElements.tmplCount&&(p.framesetOk=!1,p.treeAdapter.adoptAttributes(bodyElement,token.attrs))}function framesetStartTagInBody(p,token){const bodyElement=p.openElements.tryPeekProperlyNestedBodyElement();p.framesetOk&&bodyElement&&(p.treeAdapter.detachNode(bodyElement),p.openElements.popAllUpToHtmlElement(),p._insertElement(token,NS.HTML),p.insertionMode="IN_FRAMESET_MODE")}function addressStartTagInBody(p,token){p.openElements.hasInButtonScope($.P)&&p._closePElement(),p._insertElement(token,NS.HTML)}function numberedHeaderStartTagInBody(p,token){p.openElements.hasInButtonScope($.P)&&p._closePElement();const tn=p.openElements.currentTagName;(tn===$.H1||tn===$.H2||tn===$.H3||tn===$.H4||tn===$.H5||tn===$.H6)&&p.openElements.pop(),p._insertElement(token,NS.HTML)}function preStartTagInBody(p,token){p.openElements.hasInButtonScope($.P)&&p._closePElement(),p._insertElement(token,NS.HTML),p.skipNextNewLine=!0,p.framesetOk=!1}function formStartTagInBody(p,token){const inTemplate=p.openElements.tmplCount>0;(!p.formElement||inTemplate)&&(p.openElements.hasInButtonScope($.P)&&p._closePElement(),p._insertElement(token,NS.HTML),inTemplate||(p.formElement=p.openElements.current))}function listItemStartTagInBody(p,token){p.framesetOk=!1;const tn=token.tagName;for(let i2=p.openElements.stackTop;i2>=0;i2--){const element=p.openElements.items[i2],elementTn=p.treeAdapter.getTagName(element);let closeTn=null;if(tn===$.LI&&elementTn===$.LI?closeTn=$.LI:(tn===$.DD||tn===$.DT)&&(elementTn===$.DD||elementTn===$.DT)&&(closeTn=elementTn),closeTn){p.openElements.generateImpliedEndTagsWithExclusion(closeTn),p.openElements.popUntilTagNamePopped(closeTn);break}if(elementTn!==$.ADDRESS&&elementTn!==$.DIV&&elementTn!==$.P&&p._isSpecialElement(element))break}p.openElements.hasInButtonScope($.P)&&p._closePElement(),p._insertElement(token,NS.HTML)}function plaintextStartTagInBody(p,token){p.openElements.hasInButtonScope($.P)&&p._closePElement(),p._insertElement(token,NS.HTML),p.tokenizer.state=Tokenizer.MODE.PLAINTEXT}function buttonStartTagInBody(p,token){p.openElements.hasInScope($.BUTTON)&&(p.openElements.generateImpliedEndTags(),p.openElements.popUntilTagNamePopped($.BUTTON)),p._reconstructActiveFormattingElements(),p._insertElement(token,NS.HTML),p.framesetOk=!1}function aStartTagInBody(p,token){const activeElementEntry=p.activeFormattingElements.getElementEntryInScopeWithTagName($.A);activeElementEntry&&(callAdoptionAgency(p,token),p.openElements.remove(activeElementEntry.element),p.activeFormattingElements.removeEntry(activeElementEntry)),p._reconstructActiveFormattingElements(),p._insertElement(token,NS.HTML),p.activeFormattingElements.pushElement(p.openElements.current,token)}function bStartTagInBody(p,token){p._reconstructActiveFormattingElements(),p._insertElement(token,NS.HTML),p.activeFormattingElements.pushElement(p.openElements.current,token)}function nobrStartTagInBody(p,token){p._reconstructActiveFormattingElements(),p.openElements.hasInScope($.NOBR)&&(callAdoptionAgency(p,token),p._reconstructActiveFormattingElements()),p._insertElement(token,NS.HTML),p.activeFormattingElements.pushElement(p.openElements.current,token)}function appletStartTagInBody(p,token){p._reconstructActiveFormattingElements(),p._insertElement(token,NS.HTML),p.activeFormattingElements.insertMarker(),p.framesetOk=!1}function tableStartTagInBody(p,token){p.treeAdapter.getDocumentMode(p.document)!==HTML.DOCUMENT_MODE.QUIRKS&&p.openElements.hasInButtonScope($.P)&&p._closePElement(),p._insertElement(token,NS.HTML),p.framesetOk=!1,p.insertionMode=IN_TABLE_MODE}function areaStartTagInBody(p,token){p._reconstructActiveFormattingElements(),p._appendElement(token,NS.HTML),p.framesetOk=!1,token.ackSelfClosing=!0}function inputStartTagInBody(p,token){p._reconstructActiveFormattingElements(),p._appendElement(token,NS.HTML);const inputType=Tokenizer.getTokenAttr(token,ATTRS.TYPE);(!inputType||"hidden"!==inputType.toLowerCase())&&(p.framesetOk=!1),token.ackSelfClosing=!0}function paramStartTagInBody(p,token){p._appendElement(token,NS.HTML),token.ackSelfClosing=!0}function hrStartTagInBody(p,token){p.openElements.hasInButtonScope($.P)&&p._closePElement(),p._appendElement(token,NS.HTML),p.framesetOk=!1,p.ackSelfClosing=!0}function imageStartTagInBody(p,token){token.tagName=$.IMG,areaStartTagInBody(p,token)}function textareaStartTagInBody(p,token){p._insertElement(token,NS.HTML),p.skipNextNewLine=!0,p.tokenizer.state=Tokenizer.MODE.RCDATA,p.originalInsertionMode=p.insertionMode,p.framesetOk=!1,p.insertionMode="TEXT_MODE"}function xmpStartTagInBody(p,token){p.openElements.hasInButtonScope($.P)&&p._closePElement(),p._reconstructActiveFormattingElements(),p.framesetOk=!1,p._switchToTextParsing(token,Tokenizer.MODE.RAWTEXT)}function iframeStartTagInBody(p,token){p.framesetOk=!1,p._switchToTextParsing(token,Tokenizer.MODE.RAWTEXT)}function noembedStartTagInBody(p,token){p._switchToTextParsing(token,Tokenizer.MODE.RAWTEXT)}function selectStartTagInBody(p,token){p._reconstructActiveFormattingElements(),p._insertElement(token,NS.HTML),p.framesetOk=!1,p.insertionMode===IN_TABLE_MODE||"IN_CAPTION_MODE"===p.insertionMode||"IN_TABLE_BODY_MODE"===p.insertionMode||"IN_ROW_MODE"===p.insertionMode||"IN_CELL_MODE"===p.insertionMode?p.insertionMode="IN_SELECT_IN_TABLE_MODE":p.insertionMode="IN_SELECT_MODE"}function optgroupStartTagInBody(p,token){p.openElements.currentTagName===$.OPTION&&p.openElements.pop(),p._reconstructActiveFormattingElements(),p._insertElement(token,NS.HTML)}function rbStartTagInBody(p,token){p.openElements.hasInScope($.RUBY)&&p.openElements.generateImpliedEndTags(),p._insertElement(token,NS.HTML)}function rtStartTagInBody(p,token){p.openElements.hasInScope($.RUBY)&&p.openElements.generateImpliedEndTagsWithExclusion($.RTC),p._insertElement(token,NS.HTML)}function menuStartTagInBody(p,token){p.openElements.hasInButtonScope($.P)&&p._closePElement(),p._insertElement(token,NS.HTML)}function mathStartTagInBody(p,token){p._reconstructActiveFormattingElements(),foreignContent.adjustTokenMathMLAttrs(token),foreignContent.adjustTokenXMLAttrs(token),token.selfClosing?p._appendElement(token,NS.MATHML):p._insertElement(token,NS.MATHML),token.ackSelfClosing=!0}function svgStartTagInBody(p,token){p._reconstructActiveFormattingElements(),foreignContent.adjustTokenSVGAttrs(token),foreignContent.adjustTokenXMLAttrs(token),token.selfClosing?p._appendElement(token,NS.SVG):p._insertElement(token,NS.SVG),token.ackSelfClosing=!0}function genericStartTagInBody(p,token){p._reconstructActiveFormattingElements(),p._insertElement(token,NS.HTML)}function startTagInBody(p,token){const tn=token.tagName;switch(tn.length){case 1:tn===$.I||tn===$.S||tn===$.B||tn===$.U?bStartTagInBody(p,token):tn===$.P?addressStartTagInBody(p,token):tn===$.A?aStartTagInBody(p,token):genericStartTagInBody(p,token);break;case 2:tn===$.DL||tn===$.OL||tn===$.UL?addressStartTagInBody(p,token):tn===$.H1||tn===$.H2||tn===$.H3||tn===$.H4||tn===$.H5||tn===$.H6?numberedHeaderStartTagInBody(p,token):tn===$.LI||tn===$.DD||tn===$.DT?listItemStartTagInBody(p,token):tn===$.EM||tn===$.TT?bStartTagInBody(p,token):tn===$.BR?areaStartTagInBody(p,token):tn===$.HR?hrStartTagInBody(p,token):tn===$.RB?rbStartTagInBody(p,token):tn===$.RT||tn===$.RP?rtStartTagInBody(p,token):tn!==$.TH&&tn!==$.TD&&tn!==$.TR&&genericStartTagInBody(p,token);break;case 3:tn===$.DIV||tn===$.DIR||tn===$.NAV?addressStartTagInBody(p,token):tn===$.PRE?preStartTagInBody(p,token):tn===$.BIG?bStartTagInBody(p,token):tn===$.IMG||tn===$.WBR?areaStartTagInBody(p,token):tn===$.XMP?xmpStartTagInBody(p,token):tn===$.SVG?svgStartTagInBody(p,token):tn===$.RTC?rbStartTagInBody(p,token):tn!==$.COL&&genericStartTagInBody(p,token);break;case 4:tn===$.HTML?htmlStartTagInBody(p,token):tn===$.BASE||tn===$.LINK||tn===$.META?startTagInHead(p,token):tn===$.BODY?bodyStartTagInBody(p,token):tn===$.MAIN||tn===$.MENU?addressStartTagInBody(p,token):tn===$.FORM?formStartTagInBody(p,token):tn===$.CODE||tn===$.FONT?bStartTagInBody(p,token):tn===$.NOBR?nobrStartTagInBody(p,token):tn===$.AREA?areaStartTagInBody(p,token):tn===$.MATH?mathStartTagInBody(p,token):tn===$.MENU?menuStartTagInBody(p,token):tn!==$.HEAD&&genericStartTagInBody(p,token);break;case 5:tn===$.STYLE||tn===$.TITLE?startTagInHead(p,token):tn===$.ASIDE?addressStartTagInBody(p,token):tn===$.SMALL?bStartTagInBody(p,token):tn===$.TABLE?tableStartTagInBody(p,token):tn===$.EMBED?areaStartTagInBody(p,token):tn===$.INPUT?inputStartTagInBody(p,token):tn===$.PARAM||tn===$.TRACK?paramStartTagInBody(p,token):tn===$.IMAGE?imageStartTagInBody(p,token):tn!==$.FRAME&&tn!==$.TBODY&&tn!==$.TFOOT&&tn!==$.THEAD&&genericStartTagInBody(p,token);break;case 6:tn===$.SCRIPT?startTagInHead(p,token):tn===$.CENTER||tn===$.FIGURE||tn===$.FOOTER||tn===$.HEADER||tn===$.HGROUP||tn===$.DIALOG?addressStartTagInBody(p,token):tn===$.BUTTON?buttonStartTagInBody(p,token):tn===$.STRIKE||tn===$.STRONG?bStartTagInBody(p,token):tn===$.APPLET||tn===$.OBJECT?appletStartTagInBody(p,token):tn===$.KEYGEN?areaStartTagInBody(p,token):tn===$.SOURCE?paramStartTagInBody(p,token):tn===$.IFRAME?iframeStartTagInBody(p,token):tn===$.SELECT?selectStartTagInBody(p,token):tn===$.OPTION?optgroupStartTagInBody(p,token):genericStartTagInBody(p,token);break;case 7:tn===$.BGSOUND?startTagInHead(p,token):tn===$.DETAILS||tn===$.ADDRESS||tn===$.ARTICLE||tn===$.SECTION||tn===$.SUMMARY?addressStartTagInBody(p,token):tn===$.LISTING?preStartTagInBody(p,token):tn===$.MARQUEE?appletStartTagInBody(p,token):tn===$.NOEMBED?noembedStartTagInBody(p,token):tn!==$.CAPTION&&genericStartTagInBody(p,token);break;case 8:tn===$.BASEFONT?startTagInHead(p,token):tn===$.FRAMESET?framesetStartTagInBody(p,token):tn===$.FIELDSET?addressStartTagInBody(p,token):tn===$.TEXTAREA?textareaStartTagInBody(p,token):tn===$.TEMPLATE?startTagInHead(p,token):tn===$.NOSCRIPT?p.options.scriptingEnabled?noembedStartTagInBody(p,token):genericStartTagInBody(p,token):tn===$.OPTGROUP?optgroupStartTagInBody(p,token):tn!==$.COLGROUP&&genericStartTagInBody(p,token);break;case 9:tn===$.PLAINTEXT?plaintextStartTagInBody(p,token):genericStartTagInBody(p,token);break;case 10:tn===$.BLOCKQUOTE||tn===$.FIGCAPTION?addressStartTagInBody(p,token):genericStartTagInBody(p,token);break;default:genericStartTagInBody(p,token)}}function bodyEndTagInBody(p){p.openElements.hasInScope($.BODY)&&(p.insertionMode="AFTER_BODY_MODE")}function htmlEndTagInBody(p,token){p.openElements.hasInScope($.BODY)&&(p.insertionMode="AFTER_BODY_MODE",p._processToken(token))}function addressEndTagInBody(p,token){const tn=token.tagName;p.openElements.hasInScope(tn)&&(p.openElements.generateImpliedEndTags(),p.openElements.popUntilTagNamePopped(tn))}function formEndTagInBody(p){const inTemplate=p.openElements.tmplCount>0,formElement=p.formElement;inTemplate||(p.formElement=null),(formElement||inTemplate)&&p.openElements.hasInScope($.FORM)&&(p.openElements.generateImpliedEndTags(),inTemplate?p.openElements.popUntilTagNamePopped($.FORM):p.openElements.remove(formElement))}function pEndTagInBody(p){p.openElements.hasInButtonScope($.P)||p._insertFakeElement($.P),p._closePElement()}function liEndTagInBody(p){p.openElements.hasInListItemScope($.LI)&&(p.openElements.generateImpliedEndTagsWithExclusion($.LI),p.openElements.popUntilTagNamePopped($.LI))}function ddEndTagInBody(p,token){const tn=token.tagName;p.openElements.hasInScope(tn)&&(p.openElements.generateImpliedEndTagsWithExclusion(tn),p.openElements.popUntilTagNamePopped(tn))}function numberedHeaderEndTagInBody(p){p.openElements.hasNumberedHeaderInScope()&&(p.openElements.generateImpliedEndTags(),p.openElements.popUntilNumberedHeaderPopped())}function appletEndTagInBody(p,token){const tn=token.tagName;p.openElements.hasInScope(tn)&&(p.openElements.generateImpliedEndTags(),p.openElements.popUntilTagNamePopped(tn),p.activeFormattingElements.clearToLastMarker())}function brEndTagInBody(p){p._reconstructActiveFormattingElements(),p._insertFakeElement($.BR),p.openElements.pop(),p.framesetOk=!1}function genericEndTagInBody(p,token){const tn=token.tagName;for(let i2=p.openElements.stackTop;i2>0;i2--){const element=p.openElements.items[i2];if(p.treeAdapter.getTagName(element)===tn){p.openElements.generateImpliedEndTagsWithExclusion(tn),p.openElements.popUntilElementPopped(element);break}if(p._isSpecialElement(element))break}}function endTagInBody(p,token){const tn=token.tagName;switch(tn.length){case 1:tn===$.A||tn===$.B||tn===$.I||tn===$.S||tn===$.U?callAdoptionAgency(p,token):tn===$.P?pEndTagInBody(p):genericEndTagInBody(p,token);break;case 2:tn===$.DL||tn===$.UL||tn===$.OL?addressEndTagInBody(p,token):tn===$.LI?liEndTagInBody(p):tn===$.DD||tn===$.DT?ddEndTagInBody(p,token):tn===$.H1||tn===$.H2||tn===$.H3||tn===$.H4||tn===$.H5||tn===$.H6?numberedHeaderEndTagInBody(p):tn===$.BR?brEndTagInBody(p):tn===$.EM||tn===$.TT?callAdoptionAgency(p,token):genericEndTagInBody(p,token);break;case 3:tn===$.BIG?callAdoptionAgency(p,token):tn===$.DIR||tn===$.DIV||tn===$.NAV||tn===$.PRE?addressEndTagInBody(p,token):genericEndTagInBody(p,token);break;case 4:tn===$.BODY?bodyEndTagInBody(p):tn===$.HTML?htmlEndTagInBody(p,token):tn===$.FORM?formEndTagInBody(p):tn===$.CODE||tn===$.FONT||tn===$.NOBR?callAdoptionAgency(p,token):tn===$.MAIN||tn===$.MENU?addressEndTagInBody(p,token):genericEndTagInBody(p,token);break;case 5:tn===$.ASIDE?addressEndTagInBody(p,token):tn===$.SMALL?callAdoptionAgency(p,token):genericEndTagInBody(p,token);break;case 6:tn===$.CENTER||tn===$.FIGURE||tn===$.FOOTER||tn===$.HEADER||tn===$.HGROUP||tn===$.DIALOG?addressEndTagInBody(p,token):tn===$.APPLET||tn===$.OBJECT?appletEndTagInBody(p,token):tn===$.STRIKE||tn===$.STRONG?callAdoptionAgency(p,token):genericEndTagInBody(p,token);break;case 7:tn===$.ADDRESS||tn===$.ARTICLE||tn===$.DETAILS||tn===$.SECTION||tn===$.SUMMARY||tn===$.LISTING?addressEndTagInBody(p,token):tn===$.MARQUEE?appletEndTagInBody(p,token):genericEndTagInBody(p,token);break;case 8:tn===$.FIELDSET?addressEndTagInBody(p,token):tn===$.TEMPLATE?endTagInHead(p,token):genericEndTagInBody(p,token);break;case 10:tn===$.BLOCKQUOTE||tn===$.FIGCAPTION?addressEndTagInBody(p,token):genericEndTagInBody(p,token);break;default:genericEndTagInBody(p,token)}}function eofInBody(p,token){p.tmplInsertionModeStackTop>-1?eofInTemplate(p,token):p.stopped=!0}function endTagInText(p,token){token.tagName===$.SCRIPT&&(p.pendingScript=p.openElements.current),p.openElements.pop(),p.insertionMode=p.originalInsertionMode}function eofInText(p,token){p._err(ERR.eofInElementThatCanContainOnlyText),p.openElements.pop(),p.insertionMode=p.originalInsertionMode,p._processToken(token)}function characterInTable(p,token){const curTn=p.openElements.currentTagName;curTn===$.TABLE||curTn===$.TBODY||curTn===$.TFOOT||curTn===$.THEAD||curTn===$.TR?(p.pendingCharacterTokens=[],p.hasNonWhitespacePendingCharacterToken=!1,p.originalInsertionMode=p.insertionMode,p.insertionMode="IN_TABLE_TEXT_MODE",p._processToken(token)):tokenInTable(p,token)}function captionStartTagInTable(p,token){p.openElements.clearBackToTableContext(),p.activeFormattingElements.insertMarker(),p._insertElement(token,NS.HTML),p.insertionMode="IN_CAPTION_MODE"}function colgroupStartTagInTable(p,token){p.openElements.clearBackToTableContext(),p._insertElement(token,NS.HTML),p.insertionMode="IN_COLUMN_GROUP_MODE"}function colStartTagInTable(p,token){p.openElements.clearBackToTableContext(),p._insertFakeElement($.COLGROUP),p.insertionMode="IN_COLUMN_GROUP_MODE",p._processToken(token)}function tbodyStartTagInTable(p,token){p.openElements.clearBackToTableContext(),p._insertElement(token,NS.HTML),p.insertionMode="IN_TABLE_BODY_MODE"}function tdStartTagInTable(p,token){p.openElements.clearBackToTableContext(),p._insertFakeElement($.TBODY),p.insertionMode="IN_TABLE_BODY_MODE",p._processToken(token)}function tableStartTagInTable(p,token){p.openElements.hasInTableScope($.TABLE)&&(p.openElements.popUntilTagNamePopped($.TABLE),p._resetInsertionMode(),p._processToken(token))}function inputStartTagInTable(p,token){const inputType=Tokenizer.getTokenAttr(token,ATTRS.TYPE);inputType&&"hidden"===inputType.toLowerCase()?p._appendElement(token,NS.HTML):tokenInTable(p,token),token.ackSelfClosing=!0}function formStartTagInTable(p,token){!p.formElement&&0===p.openElements.tmplCount&&(p._insertElement(token,NS.HTML),p.formElement=p.openElements.current,p.openElements.pop())}function startTagInTable(p,token){const tn=token.tagName;switch(tn.length){case 2:tn===$.TD||tn===$.TH||tn===$.TR?tdStartTagInTable(p,token):tokenInTable(p,token);break;case 3:tn===$.COL?colStartTagInTable(p,token):tokenInTable(p,token);break;case 4:tn===$.FORM?formStartTagInTable(p,token):tokenInTable(p,token);break;case 5:tn===$.TABLE?tableStartTagInTable(p,token):tn===$.STYLE?startTagInHead(p,token):tn===$.TBODY||tn===$.TFOOT||tn===$.THEAD?tbodyStartTagInTable(p,token):tn===$.INPUT?inputStartTagInTable(p,token):tokenInTable(p,token);break;case 6:tn===$.SCRIPT?startTagInHead(p,token):tokenInTable(p,token);break;case 7:tn===$.CAPTION?captionStartTagInTable(p,token):tokenInTable(p,token);break;case 8:tn===$.COLGROUP?colgroupStartTagInTable(p,token):tn===$.TEMPLATE?startTagInHead(p,token):tokenInTable(p,token);break;default:tokenInTable(p,token)}}function endTagInTable(p,token){const tn=token.tagName;tn===$.TABLE?p.openElements.hasInTableScope($.TABLE)&&(p.openElements.popUntilTagNamePopped($.TABLE),p._resetInsertionMode()):tn===$.TEMPLATE?endTagInHead(p,token):tn!==$.BODY&&tn!==$.CAPTION&&tn!==$.COL&&tn!==$.COLGROUP&&tn!==$.HTML&&tn!==$.TBODY&&tn!==$.TD&&tn!==$.TFOOT&&tn!==$.TH&&tn!==$.THEAD&&tn!==$.TR&&tokenInTable(p,token)}function tokenInTable(p,token){const savedFosterParentingState=p.fosterParentingEnabled;p.fosterParentingEnabled=!0,p._processTokenInBodyMode(token),p.fosterParentingEnabled=savedFosterParentingState}function whitespaceCharacterInTableText(p,token){p.pendingCharacterTokens.push(token)}function characterInTableText(p,token){p.pendingCharacterTokens.push(token),p.hasNonWhitespacePendingCharacterToken=!0}function tokenInTableText(p,token){let i2=0;if(p.hasNonWhitespacePendingCharacterToken)for(;i20?(p.openElements.popUntilTagNamePopped($.TEMPLATE),p.activeFormattingElements.clearToLastMarker(),p._popTmplInsertionMode(),p._resetInsertionMode(),p._processToken(token)):p.stopped=!0}function startTagAfterBody(p,token){token.tagName===$.HTML?startTagInBody(p,token):tokenAfterBody(p,token)}function endTagAfterBody(p,token){token.tagName===$.HTML?p.fragmentContext||(p.insertionMode="AFTER_AFTER_BODY_MODE"):tokenAfterBody(p,token)}function tokenAfterBody(p,token){p.insertionMode="IN_BODY_MODE",p._processToken(token)}function startTagInFrameset(p,token){const tn=token.tagName;tn===$.HTML?startTagInBody(p,token):tn===$.FRAMESET?p._insertElement(token,NS.HTML):tn===$.FRAME?(p._appendElement(token,NS.HTML),token.ackSelfClosing=!0):tn===$.NOFRAMES&&startTagInHead(p,token)}function endTagInFrameset(p,token){token.tagName===$.FRAMESET&&!p.openElements.isRootHtmlElementCurrent()&&(p.openElements.pop(),!p.fragmentContext&&p.openElements.currentTagName!==$.FRAMESET&&(p.insertionMode="AFTER_FRAMESET_MODE"))}function startTagAfterFrameset(p,token){const tn=token.tagName;tn===$.HTML?startTagInBody(p,token):tn===$.NOFRAMES&&startTagInHead(p,token)}function endTagAfterFrameset(p,token){token.tagName===$.HTML&&(p.insertionMode="AFTER_AFTER_FRAMESET_MODE")}function startTagAfterAfterBody(p,token){token.tagName===$.HTML?startTagInBody(p,token):tokenAfterAfterBody(p,token)}function tokenAfterAfterBody(p,token){p.insertionMode="IN_BODY_MODE",p._processToken(token)}function startTagAfterAfterFrameset(p,token){const tn=token.tagName;tn===$.HTML?startTagInBody(p,token):tn===$.NOFRAMES&&startTagInHead(p,token)}function nullCharacterInForeignContent(p,token){token.chars=unicode.REPLACEMENT_CHARACTER,p._insertCharacters(token)}function characterInForeignContent(p,token){p._insertCharacters(token),p.framesetOk=!1}function startTagInForeignContent(p,token){if(foreignContent.causesExit(token)&&!p.fragmentContext){for(;p.treeAdapter.getNamespaceURI(p.openElements.current)!==NS.HTML&&!p._isIntegrationPoint(p.openElements.current);)p.openElements.pop();p._processToken(token)}else{const current=p._getAdjustedCurrentElement(),currentNs=p.treeAdapter.getNamespaceURI(current);currentNs===NS.MATHML?foreignContent.adjustTokenMathMLAttrs(token):currentNs===NS.SVG&&(foreignContent.adjustTokenSVGTagName(token),foreignContent.adjustTokenSVGAttrs(token)),foreignContent.adjustTokenXMLAttrs(token),token.selfClosing?p._appendElement(token,currentNs):p._insertElement(token,currentNs),token.ackSelfClosing=!0}}function endTagInForeignContent(p,token){for(let i2=p.openElements.stackTop;i2>0;i2--){const element=p.openElements.items[i2];if(p.treeAdapter.getNamespaceURI(element)===NS.HTML){p._processToken(token);break}if(p.treeAdapter.getTagName(element).toLowerCase()===token.tagName){p.openElements.popUntilElementPopped(element);break}}}__name(Parser,"Parser"),module2.exports=Parser,__name(aaObtainFormattingElementEntry,"aaObtainFormattingElementEntry"),__name(aaObtainFurthestBlock,"aaObtainFurthestBlock"),__name(aaInnerLoop,"aaInnerLoop"),__name(aaRecreateElementFromEntry,"aaRecreateElementFromEntry"),__name(aaInsertLastNodeInCommonAncestor,"aaInsertLastNodeInCommonAncestor"),__name(aaReplaceFormattingElement,"aaReplaceFormattingElement"),__name(callAdoptionAgency,"callAdoptionAgency"),__name(ignoreToken,"ignoreToken"),__name(misplacedDoctype,"misplacedDoctype"),__name(appendComment,"appendComment"),__name(appendCommentToRootHtmlElement,"appendCommentToRootHtmlElement"),__name(appendCommentToDocument,"appendCommentToDocument"),__name(insertCharacters,"insertCharacters"),__name(stopParsing,"stopParsing"),__name(doctypeInInitialMode,"doctypeInInitialMode"),__name(tokenInInitialMode,"tokenInInitialMode"),__name(startTagBeforeHtml,"startTagBeforeHtml"),__name(endTagBeforeHtml,"endTagBeforeHtml"),__name(tokenBeforeHtml,"tokenBeforeHtml"),__name(startTagBeforeHead,"startTagBeforeHead"),__name(endTagBeforeHead,"endTagBeforeHead"),__name(tokenBeforeHead,"tokenBeforeHead"),__name(startTagInHead,"startTagInHead"),__name(endTagInHead,"endTagInHead"),__name(tokenInHead,"tokenInHead"),__name(startTagInHeadNoScript,"startTagInHeadNoScript"),__name(endTagInHeadNoScript,"endTagInHeadNoScript"),__name(tokenInHeadNoScript,"tokenInHeadNoScript"),__name(startTagAfterHead,"startTagAfterHead"),__name(endTagAfterHead,"endTagAfterHead"),__name(tokenAfterHead,"tokenAfterHead"),__name(whitespaceCharacterInBody,"whitespaceCharacterInBody"),__name(characterInBody,"characterInBody"),__name(htmlStartTagInBody,"htmlStartTagInBody"),__name(bodyStartTagInBody,"bodyStartTagInBody"),__name(framesetStartTagInBody,"framesetStartTagInBody"),__name(addressStartTagInBody,"addressStartTagInBody"),__name(numberedHeaderStartTagInBody,"numberedHeaderStartTagInBody"),__name(preStartTagInBody,"preStartTagInBody"),__name(formStartTagInBody,"formStartTagInBody"),__name(listItemStartTagInBody,"listItemStartTagInBody"),__name(plaintextStartTagInBody,"plaintextStartTagInBody"),__name(buttonStartTagInBody,"buttonStartTagInBody"),__name(aStartTagInBody,"aStartTagInBody"),__name(bStartTagInBody,"bStartTagInBody"),__name(nobrStartTagInBody,"nobrStartTagInBody"),__name(appletStartTagInBody,"appletStartTagInBody"),__name(tableStartTagInBody,"tableStartTagInBody"),__name(areaStartTagInBody,"areaStartTagInBody"),__name(inputStartTagInBody,"inputStartTagInBody"),__name(paramStartTagInBody,"paramStartTagInBody"),__name(hrStartTagInBody,"hrStartTagInBody"),__name(imageStartTagInBody,"imageStartTagInBody"),__name(textareaStartTagInBody,"textareaStartTagInBody"),__name(xmpStartTagInBody,"xmpStartTagInBody"),__name(iframeStartTagInBody,"iframeStartTagInBody"),__name(noembedStartTagInBody,"noembedStartTagInBody"),__name(selectStartTagInBody,"selectStartTagInBody"),__name(optgroupStartTagInBody,"optgroupStartTagInBody"),__name(rbStartTagInBody,"rbStartTagInBody"),__name(rtStartTagInBody,"rtStartTagInBody"),__name(menuStartTagInBody,"menuStartTagInBody"),__name(mathStartTagInBody,"mathStartTagInBody"),__name(svgStartTagInBody,"svgStartTagInBody"),__name(genericStartTagInBody,"genericStartTagInBody"),__name(startTagInBody,"startTagInBody"),__name(bodyEndTagInBody,"bodyEndTagInBody"),__name(htmlEndTagInBody,"htmlEndTagInBody"),__name(addressEndTagInBody,"addressEndTagInBody"),__name(formEndTagInBody,"formEndTagInBody"),__name(pEndTagInBody,"pEndTagInBody"),__name(liEndTagInBody,"liEndTagInBody"),__name(ddEndTagInBody,"ddEndTagInBody"),__name(numberedHeaderEndTagInBody,"numberedHeaderEndTagInBody"),__name(appletEndTagInBody,"appletEndTagInBody"),__name(brEndTagInBody,"brEndTagInBody"),__name(genericEndTagInBody,"genericEndTagInBody"),__name(endTagInBody,"endTagInBody"),__name(eofInBody,"eofInBody"),__name(endTagInText,"endTagInText"),__name(eofInText,"eofInText"),__name(characterInTable,"characterInTable"),__name(captionStartTagInTable,"captionStartTagInTable"),__name(colgroupStartTagInTable,"colgroupStartTagInTable"),__name(colStartTagInTable,"colStartTagInTable"),__name(tbodyStartTagInTable,"tbodyStartTagInTable"),__name(tdStartTagInTable,"tdStartTagInTable"),__name(tableStartTagInTable,"tableStartTagInTable"),__name(inputStartTagInTable,"inputStartTagInTable"),__name(formStartTagInTable,"formStartTagInTable"),__name(startTagInTable,"startTagInTable"),__name(endTagInTable,"endTagInTable"),__name(tokenInTable,"tokenInTable"),__name(whitespaceCharacterInTableText,"whitespaceCharacterInTableText"),__name(characterInTableText,"characterInTableText"),__name(tokenInTableText,"tokenInTableText"),__name(startTagInCaption,"startTagInCaption"),__name(endTagInCaption,"endTagInCaption"),__name(startTagInColumnGroup,"startTagInColumnGroup"),__name(endTagInColumnGroup,"endTagInColumnGroup"),__name(tokenInColumnGroup,"tokenInColumnGroup"),__name(startTagInTableBody,"startTagInTableBody"),__name(endTagInTableBody,"endTagInTableBody"),__name(startTagInRow,"startTagInRow"),__name(endTagInRow,"endTagInRow"),__name(startTagInCell,"startTagInCell"),__name(endTagInCell,"endTagInCell"),__name(startTagInSelect,"startTagInSelect"),__name(endTagInSelect,"endTagInSelect"),__name(startTagInSelectInTable,"startTagInSelectInTable"),__name(endTagInSelectInTable,"endTagInSelectInTable"),__name(startTagInTemplate,"startTagInTemplate"),__name(endTagInTemplate,"endTagInTemplate"),__name(eofInTemplate,"eofInTemplate"),__name(startTagAfterBody,"startTagAfterBody"),__name(endTagAfterBody,"endTagAfterBody"),__name(tokenAfterBody,"tokenAfterBody"),__name(startTagInFrameset,"startTagInFrameset"),__name(endTagInFrameset,"endTagInFrameset"),__name(startTagAfterFrameset,"startTagAfterFrameset"),__name(endTagAfterFrameset,"endTagAfterFrameset"),__name(startTagAfterAfterBody,"startTagAfterAfterBody"),__name(tokenAfterAfterBody,"tokenAfterAfterBody"),__name(startTagAfterAfterFrameset,"startTagAfterAfterFrameset"),__name(nullCharacterInForeignContent,"nullCharacterInForeignContent"),__name(characterInForeignContent,"characterInForeignContent"),__name(startTagInForeignContent,"startTagInForeignContent"),__name(endTagInForeignContent,"endTagInForeignContent")},44593:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const HTML=__webpack_require__2(42712),$=HTML.TAG_NAMES,NS=HTML.NAMESPACES;function isImpliedEndTagRequired(tn){switch(tn.length){case 1:return tn===$.P;case 2:return tn===$.RB||tn===$.RP||tn===$.RT||tn===$.DD||tn===$.DT||tn===$.LI;case 3:return tn===$.RTC;case 6:return tn===$.OPTION;case 8:return tn===$.OPTGROUP}return!1}function isImpliedEndTagRequiredThoroughly(tn){switch(tn.length){case 1:return tn===$.P;case 2:return tn===$.RB||tn===$.RP||tn===$.RT||tn===$.DD||tn===$.DT||tn===$.LI||tn===$.TD||tn===$.TH||tn===$.TR;case 3:return tn===$.RTC;case 5:return tn===$.TBODY||tn===$.TFOOT||tn===$.THEAD;case 6:return tn===$.OPTION;case 7:return tn===$.CAPTION;case 8:return tn===$.OPTGROUP||tn===$.COLGROUP}return!1}function isScopingElement(tn,ns){switch(tn.length){case 2:if(tn===$.TD||tn===$.TH)return ns===NS.HTML;if(tn===$.MI||tn===$.MO||tn===$.MN||tn===$.MS)return ns===NS.MATHML;break;case 4:if(tn===$.HTML)return ns===NS.HTML;if(tn===$.DESC)return ns===NS.SVG;break;case 5:if(tn===$.TABLE)return ns===NS.HTML;if(tn===$.MTEXT)return ns===NS.MATHML;if(tn===$.TITLE)return ns===NS.SVG;break;case 6:return(tn===$.APPLET||tn===$.OBJECT)&&ns===NS.HTML;case 7:return(tn===$.CAPTION||tn===$.MARQUEE)&&ns===NS.HTML;case 8:return tn===$.TEMPLATE&&ns===NS.HTML;case 13:return tn===$.FOREIGN_OBJECT&&ns===NS.SVG;case 14:return tn===$.ANNOTATION_XML&&ns===NS.MATHML}return!1}__name(isImpliedEndTagRequired,"isImpliedEndTagRequired"),__name(isImpliedEndTagRequiredThoroughly,"isImpliedEndTagRequiredThoroughly"),__name(isScopingElement,"isScopingElement");class OpenElementStack{constructor(document2,treeAdapter){this.stackTop=-1,this.items=[],this.current=document2,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=treeAdapter}_indexOf(element){let idx=-1;for(let i2=this.stackTop;i2>=0;i2--)if(this.items[i2]===element){idx=i2;break}return idx}_isInTemplate(){return this.currentTagName===$.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===NS.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(element){this.items[++this.stackTop]=element,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(oldElement,newElement){const idx=this._indexOf(oldElement);this.items[idx]=newElement,idx===this.stackTop&&this._updateCurrentElement()}insertAfter(referenceElement,newElement){const insertionIdx=this._indexOf(referenceElement)+1;this.items.splice(insertionIdx,0,newElement),insertionIdx===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(tagName){for(;this.stackTop>-1;){const tn=this.currentTagName,ns=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),tn===tagName&&ns===NS.HTML)break}}popUntilElementPopped(element){for(;this.stackTop>-1;){const poppedElement=this.current;if(this.pop(),poppedElement===element)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const tn=this.currentTagName,ns=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),tn===$.H1||tn===$.H2||tn===$.H3||tn===$.H4||tn===$.H5||tn===$.H6&&ns===NS.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const tn=this.currentTagName,ns=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),tn===$.TD||tn===$.TH&&ns===NS.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==$.TABLE&&this.currentTagName!==$.TEMPLATE&&this.currentTagName!==$.HTML||this.treeAdapter.getNamespaceURI(this.current)!==NS.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==$.TBODY&&this.currentTagName!==$.TFOOT&&this.currentTagName!==$.THEAD&&this.currentTagName!==$.TEMPLATE&&this.currentTagName!==$.HTML||this.treeAdapter.getNamespaceURI(this.current)!==NS.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==$.TR&&this.currentTagName!==$.TEMPLATE&&this.currentTagName!==$.HTML||this.treeAdapter.getNamespaceURI(this.current)!==NS.HTML;)this.pop()}remove(element){for(let i2=this.stackTop;i2>=0;i2--)if(this.items[i2]===element){this.items.splice(i2,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const element=this.items[1];return element&&this.treeAdapter.getTagName(element)===$.BODY?element:null}contains(element){return this._indexOf(element)>-1}getCommonAncestor(element){let elementIdx=this._indexOf(element);return--elementIdx>=0?this.items[elementIdx]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===$.HTML}hasInScope(tagName){for(let i2=this.stackTop;i2>=0;i2--){const tn=this.treeAdapter.getTagName(this.items[i2]),ns=this.treeAdapter.getNamespaceURI(this.items[i2]);if(tn===tagName&&ns===NS.HTML)return!0;if(isScopingElement(tn,ns))return!1}return!0}hasNumberedHeaderInScope(){for(let i2=this.stackTop;i2>=0;i2--){const tn=this.treeAdapter.getTagName(this.items[i2]),ns=this.treeAdapter.getNamespaceURI(this.items[i2]);if((tn===$.H1||tn===$.H2||tn===$.H3||tn===$.H4||tn===$.H5||tn===$.H6)&&ns===NS.HTML)return!0;if(isScopingElement(tn,ns))return!1}return!0}hasInListItemScope(tagName){for(let i2=this.stackTop;i2>=0;i2--){const tn=this.treeAdapter.getTagName(this.items[i2]),ns=this.treeAdapter.getNamespaceURI(this.items[i2]);if(tn===tagName&&ns===NS.HTML)return!0;if((tn===$.UL||tn===$.OL)&&ns===NS.HTML||isScopingElement(tn,ns))return!1}return!0}hasInButtonScope(tagName){for(let i2=this.stackTop;i2>=0;i2--){const tn=this.treeAdapter.getTagName(this.items[i2]),ns=this.treeAdapter.getNamespaceURI(this.items[i2]);if(tn===tagName&&ns===NS.HTML)return!0;if(tn===$.BUTTON&&ns===NS.HTML||isScopingElement(tn,ns))return!1}return!0}hasInTableScope(tagName){for(let i2=this.stackTop;i2>=0;i2--){const tn=this.treeAdapter.getTagName(this.items[i2]);if(this.treeAdapter.getNamespaceURI(this.items[i2])===NS.HTML){if(tn===tagName)return!0;if(tn===$.TABLE||tn===$.TEMPLATE||tn===$.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let i2=this.stackTop;i2>=0;i2--){const tn=this.treeAdapter.getTagName(this.items[i2]);if(this.treeAdapter.getNamespaceURI(this.items[i2])===NS.HTML){if(tn===$.TBODY||tn===$.THEAD||tn===$.TFOOT)return!0;if(tn===$.TABLE||tn===$.HTML)return!1}}return!0}hasInSelectScope(tagName){for(let i2=this.stackTop;i2>=0;i2--){const tn=this.treeAdapter.getTagName(this.items[i2]);if(this.treeAdapter.getNamespaceURI(this.items[i2])===NS.HTML){if(tn===tagName)return!0;if(tn!==$.OPTION&&tn!==$.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;isImpliedEndTagRequired(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;isImpliedEndTagRequiredThoroughly(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(exclusionTagName){for(;isImpliedEndTagRequired(this.currentTagName)&&this.currentTagName!==exclusionTagName;)this.pop()}}__name(OpenElementStack,"OpenElementStack"),module2.exports=OpenElementStack},84244:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const defaultTreeAdapter=__webpack_require__2(72057),mergeOptions=__webpack_require__2(58244),doctype=__webpack_require__2(67822),HTML=__webpack_require__2(42712),$=HTML.TAG_NAMES,NS=HTML.NAMESPACES,DEFAULT_OPTIONS={treeAdapter:defaultTreeAdapter},AMP_REGEX=/&/g,NBSP_REGEX=/\u00a0/g,DOUBLE_QUOTE_REGEX=/"/g,LT_REGEX=//g;class Serializer{constructor(node,options){this.options=mergeOptions(DEFAULT_OPTIONS,options),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=node}serialize(){return this._serializeChildNodes(this.startNode),this.html}_serializeChildNodes(parentNode){const childNodes=this.treeAdapter.getChildNodes(parentNode);if(childNodes)for(let i2=0,cnLength=childNodes.length;i2",tn!==$.AREA&&tn!==$.BASE&&tn!==$.BASEFONT&&tn!==$.BGSOUND&&tn!==$.BR&&tn!==$.COL&&tn!==$.EMBED&&tn!==$.FRAME&&tn!==$.HR&&tn!==$.IMG&&tn!==$.INPUT&&tn!==$.KEYGEN&&tn!==$.LINK&&tn!==$.META&&tn!==$.PARAM&&tn!==$.SOURCE&&tn!==$.TRACK&&tn!==$.WBR){const childNodesHolder=tn===$.TEMPLATE&&ns===NS.HTML?this.treeAdapter.getTemplateContent(node):node;this._serializeChildNodes(childNodesHolder),this.html+=""}}_serializeAttributes(node){const attrs=this.treeAdapter.getAttrList(node);for(let i2=0,attrsLength=attrs.length;i2"}}__name(Serializer,"Serializer"),Serializer.escapeString=function(str,attrMode){return str=str.replace(AMP_REGEX,"&").replace(NBSP_REGEX," "),str=attrMode?str.replace(DOUBLE_QUOTE_REGEX,"""):str.replace(LT_REGEX,"<").replace(GT_REGEX,">")},module2.exports=Serializer},24548:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const Preprocessor=__webpack_require__2(89482),unicode=__webpack_require__2(47835),neTree=__webpack_require__2(72679),ERR=__webpack_require__2(61853),$=unicode.CODE_POINTS,$$=unicode.CODE_POINT_SEQUENCES,C1_CONTROLS_REFERENCE_REPLACEMENTS={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},DATA_STATE="DATA_STATE";function isWhitespace(cp){return cp===$.SPACE||cp===$.LINE_FEED||cp===$.TABULATION||cp===$.FORM_FEED}function isAsciiDigit(cp){return cp>=$.DIGIT_0&&cp<=$.DIGIT_9}function isAsciiUpper(cp){return cp>=$.LATIN_CAPITAL_A&&cp<=$.LATIN_CAPITAL_Z}function isAsciiLower(cp){return cp>=$.LATIN_SMALL_A&&cp<=$.LATIN_SMALL_Z}function isAsciiLetter(cp){return isAsciiLower(cp)||isAsciiUpper(cp)}function isAsciiAlphaNumeric(cp){return isAsciiLetter(cp)||isAsciiDigit(cp)}function isAsciiUpperHexDigit(cp){return cp>=$.LATIN_CAPITAL_A&&cp<=$.LATIN_CAPITAL_F}function isAsciiLowerHexDigit(cp){return cp>=$.LATIN_SMALL_A&&cp<=$.LATIN_SMALL_F}function isAsciiHexDigit(cp){return isAsciiDigit(cp)||isAsciiUpperHexDigit(cp)||isAsciiLowerHexDigit(cp)}function toAsciiLowerCodePoint(cp){return cp+32}function toChar(cp){return cp<=65535?String.fromCharCode(cp):(cp-=65536,String.fromCharCode(cp>>>10&1023|55296)+String.fromCharCode(56320|1023&cp))}function toAsciiLowerChar(cp){return String.fromCharCode(toAsciiLowerCodePoint(cp))}function findNamedEntityTreeBranch(nodeIx,cp){const branchCount=neTree[++nodeIx];let lo=++nodeIx,hi=lo+branchCount-1;for(;lo<=hi;){const mid=lo+hi>>>1,midCp=neTree[mid];if(midCpcp))return neTree[mid+branchCount];hi=mid-1}}return-1}__name(isWhitespace,"isWhitespace"),__name(isAsciiDigit,"isAsciiDigit"),__name(isAsciiUpper,"isAsciiUpper"),__name(isAsciiLower,"isAsciiLower"),__name(isAsciiLetter,"isAsciiLetter"),__name(isAsciiAlphaNumeric,"isAsciiAlphaNumeric"),__name(isAsciiUpperHexDigit,"isAsciiUpperHexDigit"),__name(isAsciiLowerHexDigit,"isAsciiLowerHexDigit"),__name(isAsciiHexDigit,"isAsciiHexDigit"),__name(toAsciiLowerCodePoint,"toAsciiLowerCodePoint"),__name(toChar,"toChar"),__name(toAsciiLowerChar,"toAsciiLowerChar"),__name(findNamedEntityTreeBranch,"findNamedEntityTreeBranch");class Tokenizer{constructor(){this.preprocessor=new Preprocessor,this.tokenQueue=[],this.allowCDATA=!1,this.state=DATA_STATE,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(err){this._consume(),this._err(err),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const cp=this._consume();this._ensureHibernation()||this[this.state](cp)}return this.tokenQueue.shift()}write(chunk,isLastChunk){this.active=!0,this.preprocessor.write(chunk,isLastChunk)}insertHtmlAtCurrentPos(chunk){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(chunk)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Tokenizer.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(state){this.state=state,this._unconsume()}_consumeSequenceIfMatch(pattern,startCp,caseSensitive){let consumedCount=0,isMatch=!0;const patternLength=pattern.length;let patternCp,patternPos=0,cp=startCp;for(;patternPos0&&(cp=this._consume(),consumedCount++),cp===$.EOF){isMatch=!1;break}if(patternCp=pattern[patternPos],cp!==patternCp&&(caseSensitive||cp!==toAsciiLowerCodePoint(patternCp))){isMatch=!1;break}}if(!isMatch)for(;consumedCount--;)this._unconsume();return isMatch}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==$$.SCRIPT_STRING.length)return!1;for(let i2=0;i20&&this._err(ERR.endTagWithAttributes),ct.selfClosing&&this._err(ERR.endTagWithTrailingSolidus)),this.tokenQueue.push(ct)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(type,ch){this.currentCharacterToken&&this.currentCharacterToken.type!==type&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=ch:this._createCharacterToken(type,ch)}_emitCodePoint(cp){let type=Tokenizer.CHARACTER_TOKEN;isWhitespace(cp)?type=Tokenizer.WHITESPACE_CHARACTER_TOKEN:cp===$.NULL&&(type=Tokenizer.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(type,toChar(cp))}_emitSeveralCodePoints(codePoints){for(let i2=0;i2-1;){const current=neTree[i2],inNode=current<7;inNode&&1¤t&&(result=2¤t?[neTree[++i2],neTree[++i2]]:[neTree[++i2]],excess=0);const cp=this._consume();if(this.tempBuff.push(cp),excess++,cp===$.EOF)break;i2=inNode?4¤t?findNamedEntityTreeBranch(i2,cp):-1:cp===current?++i2:-1}for(;excess--;)this.tempBuff.pop(),this._unconsume();return result}_isCharacterReferenceInAttribute(){return"ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE"===this.returnState||"ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE"===this.returnState||"ATTRIBUTE_VALUE_UNQUOTED_STATE"===this.returnState}_isCharacterReferenceAttributeQuirk(withSemicolon){if(!withSemicolon&&this._isCharacterReferenceInAttribute()){const nextCp=this._consume();return this._unconsume(),nextCp===$.EQUALS_SIGN||isAsciiAlphaNumeric(nextCp)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let i2=0;i2")):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChars(unicode.REPLACEMENT_CHARACTER)):cp===$.EOF?(this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(cp))}SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE(cp){cp===$.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE"):isAsciiLetter(cp)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE")):(this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))}SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE(cp){isAsciiLetter(cp)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE")):(this._emitChars("")):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChars(unicode.REPLACEMENT_CHARACTER)):cp===$.EOF?(this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(cp))}SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE(cp){cp===$.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",this._emitChars("/")):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")}SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE(cp){isWhitespace(cp)||cp===$.SOLIDUS||cp===$.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?"SCRIPT_DATA_ESCAPED_STATE":"SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(cp)):isAsciiUpper(cp)?(this.tempBuff.push(toAsciiLowerCodePoint(cp)),this._emitCodePoint(cp)):isAsciiLower(cp)?(this.tempBuff.push(cp),this._emitCodePoint(cp)):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")}BEFORE_ATTRIBUTE_NAME_STATE(cp){isWhitespace(cp)||(cp===$.SOLIDUS||cp===$.GREATER_THAN_SIGN||cp===$.EOF?this._reconsumeInState("AFTER_ATTRIBUTE_NAME_STATE"):cp===$.EQUALS_SIGN?(this._err(ERR.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state="ATTRIBUTE_NAME_STATE"):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))}ATTRIBUTE_NAME_STATE(cp){isWhitespace(cp)||cp===$.SOLIDUS||cp===$.GREATER_THAN_SIGN||cp===$.EOF?(this._leaveAttrName("AFTER_ATTRIBUTE_NAME_STATE"),this._unconsume()):cp===$.EQUALS_SIGN?this._leaveAttrName("BEFORE_ATTRIBUTE_VALUE_STATE"):isAsciiUpper(cp)?this.currentAttr.name+=toAsciiLowerChar(cp):cp===$.QUOTATION_MARK||cp===$.APOSTROPHE||cp===$.LESS_THAN_SIGN?(this._err(ERR.unexpectedCharacterInAttributeName),this.currentAttr.name+=toChar(cp)):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentAttr.name+=unicode.REPLACEMENT_CHARACTER):this.currentAttr.name+=toChar(cp)}AFTER_ATTRIBUTE_NAME_STATE(cp){isWhitespace(cp)||(cp===$.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":cp===$.EQUALS_SIGN?this.state="BEFORE_ATTRIBUTE_VALUE_STATE":cp===$.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))}BEFORE_ATTRIBUTE_VALUE_STATE(cp){isWhitespace(cp)||(cp===$.QUOTATION_MARK?this.state="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE":cp===$.APOSTROPHE?this.state="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE":cp===$.GREATER_THAN_SIGN?(this._err(ERR.missingAttributeValue),this.state=DATA_STATE,this._emitCurrentToken()):this._reconsumeInState("ATTRIBUTE_VALUE_UNQUOTED_STATE"))}ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE(cp){cp===$.QUOTATION_MARK?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":cp===$.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentAttr.value+=unicode.REPLACEMENT_CHARACTER):cp===$.EOF?(this._err(ERR.eofInTag),this._emitEOFToken()):this.currentAttr.value+=toChar(cp)}ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE(cp){cp===$.APOSTROPHE?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":cp===$.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentAttr.value+=unicode.REPLACEMENT_CHARACTER):cp===$.EOF?(this._err(ERR.eofInTag),this._emitEOFToken()):this.currentAttr.value+=toChar(cp)}ATTRIBUTE_VALUE_UNQUOTED_STATE(cp){isWhitespace(cp)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):cp===$.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_UNQUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):cp===$.GREATER_THAN_SIGN?(this._leaveAttrValue(DATA_STATE),this._emitCurrentToken()):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentAttr.value+=unicode.REPLACEMENT_CHARACTER):cp===$.QUOTATION_MARK||cp===$.APOSTROPHE||cp===$.LESS_THAN_SIGN||cp===$.EQUALS_SIGN||cp===$.GRAVE_ACCENT?(this._err(ERR.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=toChar(cp)):cp===$.EOF?(this._err(ERR.eofInTag),this._emitEOFToken()):this.currentAttr.value+=toChar(cp)}AFTER_ATTRIBUTE_VALUE_QUOTED_STATE(cp){isWhitespace(cp)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):cp===$.SOLIDUS?this._leaveAttrValue("SELF_CLOSING_START_TAG_STATE"):cp===$.GREATER_THAN_SIGN?(this._leaveAttrValue(DATA_STATE),this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInTag),this._emitEOFToken()):(this._err(ERR.missingWhitespaceBetweenAttributes),this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE"))}SELF_CLOSING_START_TAG_STATE(cp){cp===$.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInTag),this._emitEOFToken()):(this._err(ERR.unexpectedSolidusInTag),this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE"))}BOGUS_COMMENT_STATE(cp){cp===$.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._emitCurrentToken(),this._emitEOFToken()):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentToken.data+=unicode.REPLACEMENT_CHARACTER):this.currentToken.data+=toChar(cp)}MARKUP_DECLARATION_OPEN_STATE(cp){this._consumeSequenceIfMatch($$.DASH_DASH_STRING,cp,!0)?(this._createCommentToken(),this.state="COMMENT_START_STATE"):this._consumeSequenceIfMatch($$.DOCTYPE_STRING,cp,!1)?this.state="DOCTYPE_STATE":this._consumeSequenceIfMatch($$.CDATA_START_STRING,cp,!0)?this.allowCDATA?this.state="CDATA_SECTION_STATE":(this._err(ERR.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state="BOGUS_COMMENT_STATE"):this._ensureHibernation()||(this._err(ERR.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE"))}COMMENT_START_STATE(cp){cp===$.HYPHEN_MINUS?this.state="COMMENT_START_DASH_STATE":cp===$.GREATER_THAN_SIGN?(this._err(ERR.abruptClosingOfEmptyComment),this.state=DATA_STATE,this._emitCurrentToken()):this._reconsumeInState("COMMENT_STATE")}COMMENT_START_DASH_STATE(cp){cp===$.HYPHEN_MINUS?this.state="COMMENT_END_STATE":cp===$.GREATER_THAN_SIGN?(this._err(ERR.abruptClosingOfEmptyComment),this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState("COMMENT_STATE"))}COMMENT_STATE(cp){cp===$.HYPHEN_MINUS?this.state="COMMENT_END_DASH_STATE":cp===$.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state="COMMENT_LESS_THAN_SIGN_STATE"):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentToken.data+=unicode.REPLACEMENT_CHARACTER):cp===$.EOF?(this._err(ERR.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=toChar(cp)}COMMENT_LESS_THAN_SIGN_STATE(cp){cp===$.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state="COMMENT_LESS_THAN_SIGN_BANG_STATE"):cp===$.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState("COMMENT_STATE")}COMMENT_LESS_THAN_SIGN_BANG_STATE(cp){cp===$.HYPHEN_MINUS?this.state="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE":this._reconsumeInState("COMMENT_STATE")}COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE(cp){cp===$.HYPHEN_MINUS?this.state="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE":this._reconsumeInState("COMMENT_END_DASH_STATE")}COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE(cp){cp!==$.GREATER_THAN_SIGN&&cp!==$.EOF&&this._err(ERR.nestedComment),this._reconsumeInState("COMMENT_END_STATE")}COMMENT_END_DASH_STATE(cp){cp===$.HYPHEN_MINUS?this.state="COMMENT_END_STATE":cp===$.EOF?(this._err(ERR.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState("COMMENT_STATE"))}COMMENT_END_STATE(cp){cp===$.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EXCLAMATION_MARK?this.state="COMMENT_END_BANG_STATE":cp===$.HYPHEN_MINUS?this.currentToken.data+="-":cp===$.EOF?(this._err(ERR.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState("COMMENT_STATE"))}COMMENT_END_BANG_STATE(cp){cp===$.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state="COMMENT_END_DASH_STATE"):cp===$.GREATER_THAN_SIGN?(this._err(ERR.incorrectlyClosedComment),this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState("COMMENT_STATE"))}DOCTYPE_STATE(cp){isWhitespace(cp)?this.state="BEFORE_DOCTYPE_NAME_STATE":cp===$.GREATER_THAN_SIGN?this._reconsumeInState("BEFORE_DOCTYPE_NAME_STATE"):cp===$.EOF?(this._err(ERR.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.missingWhitespaceBeforeDoctypeName),this._reconsumeInState("BEFORE_DOCTYPE_NAME_STATE"))}BEFORE_DOCTYPE_NAME_STATE(cp){isWhitespace(cp)||(isAsciiUpper(cp)?(this._createDoctypeToken(toAsciiLowerChar(cp)),this.state="DOCTYPE_NAME_STATE"):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this._createDoctypeToken(unicode.REPLACEMENT_CHARACTER),this.state="DOCTYPE_NAME_STATE"):cp===$.GREATER_THAN_SIGN?(this._err(ERR.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):cp===$.EOF?(this._err(ERR.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(toChar(cp)),this.state="DOCTYPE_NAME_STATE"))}DOCTYPE_NAME_STATE(cp){isWhitespace(cp)?this.state="AFTER_DOCTYPE_NAME_STATE":cp===$.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):isAsciiUpper(cp)?this.currentToken.name+=toAsciiLowerChar(cp):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentToken.name+=unicode.REPLACEMENT_CHARACTER):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=toChar(cp)}AFTER_DOCTYPE_NAME_STATE(cp){isWhitespace(cp)||(cp===$.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch($$.PUBLIC_STRING,cp,!1)?this.state="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE":this._consumeSequenceIfMatch($$.SYSTEM_STRING,cp,!1)?this.state="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE":this._ensureHibernation()||(this._err(ERR.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE(cp){isWhitespace(cp)?this.state="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE":cp===$.QUOTATION_MARK?(this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):cp===$.APOSTROPHE?(this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):cp===$.GREATER_THAN_SIGN?(this._err(ERR.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE(cp){isWhitespace(cp)||(cp===$.QUOTATION_MARK?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):cp===$.APOSTROPHE?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):cp===$.GREATER_THAN_SIGN?(this._err(ERR.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE(cp){cp===$.QUOTATION_MARK?this.state="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE":cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentToken.publicId+=unicode.REPLACEMENT_CHARACTER):cp===$.GREATER_THAN_SIGN?(this._err(ERR.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=toChar(cp)}DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE(cp){cp===$.APOSTROPHE?this.state="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE":cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentToken.publicId+=unicode.REPLACEMENT_CHARACTER):cp===$.GREATER_THAN_SIGN?(this._err(ERR.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=toChar(cp)}AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE(cp){isWhitespace(cp)?this.state="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE":cp===$.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):cp===$.QUOTATION_MARK?(this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):cp===$.APOSTROPHE?(this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE(cp){isWhitespace(cp)||(cp===$.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=DATA_STATE):cp===$.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):cp===$.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE(cp){isWhitespace(cp)?this.state="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE":cp===$.QUOTATION_MARK?(this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):cp===$.APOSTROPHE?(this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):cp===$.GREATER_THAN_SIGN?(this._err(ERR.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE(cp){isWhitespace(cp)||(cp===$.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):cp===$.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):cp===$.GREATER_THAN_SIGN?(this._err(ERR.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE(cp){cp===$.QUOTATION_MARK?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentToken.systemId+=unicode.REPLACEMENT_CHARACTER):cp===$.GREATER_THAN_SIGN?(this._err(ERR.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=toChar(cp)}DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE(cp){cp===$.APOSTROPHE?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentToken.systemId+=unicode.REPLACEMENT_CHARACTER):cp===$.GREATER_THAN_SIGN?(this._err(ERR.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=toChar(cp)}AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE(cp){isWhitespace(cp)||(cp===$.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=DATA_STATE):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}BOGUS_DOCTYPE_STATE(cp){cp===$.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=DATA_STATE):cp===$.NULL?this._err(ERR.unexpectedNullCharacter):cp===$.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}CDATA_SECTION_STATE(cp){cp===$.RIGHT_SQUARE_BRACKET?this.state="CDATA_SECTION_BRACKET_STATE":cp===$.EOF?(this._err(ERR.eofInCdata),this._emitEOFToken()):this._emitCodePoint(cp)}CDATA_SECTION_BRACKET_STATE(cp){cp===$.RIGHT_SQUARE_BRACKET?this.state="CDATA_SECTION_END_STATE":(this._emitChars("]"),this._reconsumeInState("CDATA_SECTION_STATE"))}CDATA_SECTION_END_STATE(cp){cp===$.GREATER_THAN_SIGN?this.state=DATA_STATE:cp===$.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState("CDATA_SECTION_STATE"))}CHARACTER_REFERENCE_STATE(cp){this.tempBuff=[$.AMPERSAND],cp===$.NUMBER_SIGN?(this.tempBuff.push(cp),this.state="NUMERIC_CHARACTER_REFERENCE_STATE"):isAsciiAlphaNumeric(cp)?this._reconsumeInState("NAMED_CHARACTER_REFERENCE_STATE"):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}NAMED_CHARACTER_REFERENCE_STATE(cp){const matchResult=this._matchNamedCharacterReference(cp);if(this._ensureHibernation())this.tempBuff=[$.AMPERSAND];else if(matchResult){const withSemicolon=this.tempBuff[this.tempBuff.length-1]===$.SEMICOLON;this._isCharacterReferenceAttributeQuirk(withSemicolon)||(withSemicolon||this._errOnNextCodePoint(ERR.missingSemicolonAfterCharacterReference),this.tempBuff=matchResult),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state="AMBIGUOS_AMPERSAND_STATE"}AMBIGUOS_AMPERSAND_STATE(cp){isAsciiAlphaNumeric(cp)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=toChar(cp):this._emitCodePoint(cp):(cp===$.SEMICOLON&&this._err(ERR.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}NUMERIC_CHARACTER_REFERENCE_STATE(cp){this.charRefCode=0,cp===$.LATIN_SMALL_X||cp===$.LATIN_CAPITAL_X?(this.tempBuff.push(cp),this.state="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE"):this._reconsumeInState("DECIMAL_CHARACTER_REFERENCE_START_STATE")}HEXADEMICAL_CHARACTER_REFERENCE_START_STATE(cp){isAsciiHexDigit(cp)?this._reconsumeInState("HEXADEMICAL_CHARACTER_REFERENCE_STATE"):(this._err(ERR.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}DECIMAL_CHARACTER_REFERENCE_START_STATE(cp){isAsciiDigit(cp)?this._reconsumeInState("DECIMAL_CHARACTER_REFERENCE_STATE"):(this._err(ERR.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}HEXADEMICAL_CHARACTER_REFERENCE_STATE(cp){isAsciiUpperHexDigit(cp)?this.charRefCode=16*this.charRefCode+cp-55:isAsciiLowerHexDigit(cp)?this.charRefCode=16*this.charRefCode+cp-87:isAsciiDigit(cp)?this.charRefCode=16*this.charRefCode+cp-48:cp===$.SEMICOLON?this.state="NUMERIC_CHARACTER_REFERENCE_END_STATE":(this._err(ERR.missingSemicolonAfterCharacterReference),this._reconsumeInState("NUMERIC_CHARACTER_REFERENCE_END_STATE"))}DECIMAL_CHARACTER_REFERENCE_STATE(cp){isAsciiDigit(cp)?this.charRefCode=10*this.charRefCode+cp-48:cp===$.SEMICOLON?this.state="NUMERIC_CHARACTER_REFERENCE_END_STATE":(this._err(ERR.missingSemicolonAfterCharacterReference),this._reconsumeInState("NUMERIC_CHARACTER_REFERENCE_END_STATE"))}NUMERIC_CHARACTER_REFERENCE_END_STATE(){if(this.charRefCode===$.NULL)this._err(ERR.nullCharacterReference),this.charRefCode=$.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(ERR.characterReferenceOutsideUnicodeRange),this.charRefCode=$.REPLACEMENT_CHARACTER;else if(unicode.isSurrogate(this.charRefCode))this._err(ERR.surrogateCharacterReference),this.charRefCode=$.REPLACEMENT_CHARACTER;else if(unicode.isUndefinedCodePoint(this.charRefCode))this._err(ERR.noncharacterCharacterReference);else if(unicode.isControlCodePoint(this.charRefCode)||this.charRefCode===$.CARRIAGE_RETURN){this._err(ERR.controlCharacterReference);const replacement=C1_CONTROLS_REFERENCE_REPLACEMENTS[this.charRefCode];replacement&&(this.charRefCode=replacement)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}__name(Tokenizer,"Tokenizer"),Tokenizer.CHARACTER_TOKEN="CHARACTER_TOKEN",Tokenizer.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Tokenizer.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Tokenizer.START_TAG_TOKEN="START_TAG_TOKEN",Tokenizer.END_TAG_TOKEN="END_TAG_TOKEN",Tokenizer.COMMENT_TOKEN="COMMENT_TOKEN",Tokenizer.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Tokenizer.EOF_TOKEN="EOF_TOKEN",Tokenizer.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Tokenizer.MODE={DATA:DATA_STATE,RCDATA:"RCDATA_STATE",RAWTEXT:"RAWTEXT_STATE",SCRIPT_DATA:"SCRIPT_DATA_STATE",PLAINTEXT:"PLAINTEXT_STATE"},Tokenizer.getTokenAttr=function(token,attrName){for(let i2=token.attrs.length-1;i2>=0;i2--)if(token.attrs[i2].name===attrName)return token.attrs[i2].value;return null},module2.exports=Tokenizer},72679:module2=>{"use strict";module2.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},89482:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const unicode=__webpack_require__2(47835),ERR=__webpack_require__2(61853),$=unicode.CODE_POINTS;class Preprocessor{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(cp){if(this.pos!==this.lastCharPos){const nextCp=this.html.charCodeAt(this.pos+1);if(unicode.isSurrogatePair(nextCp))return this.pos++,this._addGap(),unicode.getSurrogatePairCodePoint(cp,nextCp)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$.EOF;return this._err(ERR.surrogateInInputStream),cp}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(chunk,isLastChunk){this.html?this.html+=chunk:this.html=chunk,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=isLastChunk}insertHtmlAtCurrentPos(chunk){this.html=this.html.substring(0,this.pos+1)+chunk+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,$.EOF;let cp=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&cp===$.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):cp===$.CARRIAGE_RETURN?(this.skipNextNewLine=!0,$.LINE_FEED):(this.skipNextNewLine=!1,unicode.isSurrogate(cp)&&(cp=this._processSurrogate(cp)),cp>31&&cp<127||cp===$.LINE_FEED||cp===$.CARRIAGE_RETURN||cp>159&&cp<64976||this._checkForProblematicCharacters(cp),cp)}_checkForProblematicCharacters(cp){unicode.isControlCodePoint(cp)?this._err(ERR.controlCharacterInInputStream):unicode.isUndefinedCodePoint(cp)&&this._err(ERR.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}__name(Preprocessor,"Preprocessor"),module2.exports=Preprocessor},72057:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";const{DOCUMENT_MODE}=__webpack_require__2(42712);exports2.createDocument=function(){return{nodeName:"#document",mode:DOCUMENT_MODE.NO_QUIRKS,childNodes:[]}},exports2.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},exports2.createElement=function(tagName,namespaceURI,attrs){return{nodeName:tagName,tagName,attrs,namespaceURI,childNodes:[],parentNode:null}},exports2.createCommentNode=function(data){return{nodeName:"#comment",data,parentNode:null}};const createTextNode=__name(function(value){return{nodeName:"#text",value,parentNode:null}},"createTextNode"),appendChild=exports2.appendChild=function(parentNode,newNode){parentNode.childNodes.push(newNode),newNode.parentNode=parentNode},insertBefore=exports2.insertBefore=function(parentNode,newNode,referenceNode){const insertionIdx=parentNode.childNodes.indexOf(referenceNode);parentNode.childNodes.splice(insertionIdx,0,newNode),newNode.parentNode=parentNode};exports2.setTemplateContent=function(templateElement,contentElement){templateElement.content=contentElement},exports2.getTemplateContent=function(templateElement){return templateElement.content},exports2.setDocumentType=function(document2,name,publicId,systemId){let doctypeNode=null;for(let i2=0;i2{"use strict";module2.exports=__name(function(defaults,options){return[defaults,options=options||Object.create(null)].reduce((merged,optObj)=>(Object.keys(optObj).forEach(key=>{merged[key]=optObj[key]}),merged),Object.create(null))},"mergeOptions")},37878:module2=>{"use strict";class Mixin{constructor(host){const originalMethods={},overriddenMethods=this._getOverriddenMethods(this,originalMethods);for(const key of Object.keys(overriddenMethods))"function"==typeof overriddenMethods[key]&&(originalMethods[key]=host[key],host[key]=overriddenMethods[key])}_getOverriddenMethods(){throw new Error("Not implemented")}}__name(Mixin,"Mixin"),Mixin.install=function(host,Ctor,opts){host.__mixins||(host.__mixins=[]);for(let i2=0;i2{"use strict";const os=__webpack_require__2(22037),tty=__webpack_require__2(76224),hasFlag=__webpack_require__2(1196),{env}=process;let forceColor;function translateLevel(level){return 0!==level&&{level,hasBasic:!0,has256:level>=2,has16m:level>=3}}function supportsColor(haveStream,streamIsTTY){if(0===forceColor)return 0;if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor"))return 3;if(hasFlag("color=256"))return 2;if(haveStream&&!streamIsTTY&&void 0===forceColor)return 0;const min=forceColor||0;if("dumb"===env.TERM)return min;if("win32"===process.platform){const osRelease=os.release().split(".");return Number(osRelease[0])>=10&&Number(osRelease[2])>=10586?Number(osRelease[2])>=14931?3:2:1}if("CI"in env)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(sign=>sign in env)||"codeship"===env.CI_NAME?1:min;if("TEAMCITY_VERSION"in env)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION)?1:0;if("truecolor"===env.COLORTERM)return 3;if("TERM_PROGRAM"in env){const version=parseInt((env.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(env.TERM_PROGRAM){case"iTerm.app":return version>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(env.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)||"COLORTERM"in env?1:min}function getSupportLevel(stream){return translateLevel(supportsColor(stream,stream&&stream.isTTY))}hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")?forceColor=0:(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always"))&&(forceColor=1),"FORCE_COLOR"in env&&(forceColor="true"===env.FORCE_COLOR?1:"false"===env.FORCE_COLOR?0:0===env.FORCE_COLOR.length?1:Math.min(parseInt(env.FORCE_COLOR,10),3)),__name(translateLevel,"translateLevel"),__name(supportsColor,"supportsColor"),__name(getSupportLevel,"getSupportLevel"),module2.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(!0,tty.isatty(1))),stderr:translateLevel(supportsColor(!0,tty.isatty(2)))}},44867:module2=>{"use strict";const knownProps=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];module2.exports=(fromStream,toStream)=>{const fromProps=new Set(Object.keys(fromStream).concat(knownProps));for(const prop of fromProps)prop in toStream||(toStream[prop]="function"==typeof fromStream[prop]?fromStream[prop].bind(fromStream):fromStream[prop])}},65619:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const PassThrough=__webpack_require__2(12781).PassThrough,mimicResponse=__webpack_require__2(44867),cloneResponse=__name(response=>{if(!response||!response.pipe)throw new TypeError("Parameter `response` must be a response stream.");const clone=new PassThrough;return mimicResponse(response,clone),response.pipe(clone)},"cloneResponse");module2.exports=cloneResponse},38275:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var util=__webpack_require__2(73837),Stream=__webpack_require__2(12781).Stream,DelayedStream=__webpack_require__2(13943);function CombinedStream(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}module2.exports=CombinedStream,__name(CombinedStream,"CombinedStream"),util.inherits(CombinedStream,Stream),CombinedStream.create=function(options){var combinedStream=new this;for(var option in options=options||{})combinedStream[option]=options[option];return combinedStream},CombinedStream.isStreamLike=function(stream){return"function"!=typeof stream&&"string"!=typeof stream&&"boolean"!=typeof stream&&"number"!=typeof stream&&!Buffer.isBuffer(stream)},CombinedStream.prototype.append=function(stream){if(CombinedStream.isStreamLike(stream)){if(!(stream instanceof DelayedStream)){var newStream=DelayedStream.create(stream,{maxDataSize:1/0,pauseStream:this.pauseStreams});stream.on("data",this._checkDataSize.bind(this)),stream=newStream}this._handleErrors(stream),this.pauseStreams&&stream.pause()}return this._streams.push(stream),this},CombinedStream.prototype.pipe=function(dest,options){return Stream.prototype.pipe.call(this,dest,options),this.resume(),dest},CombinedStream.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},CombinedStream.prototype._realGetNext=function(){var stream=this._streams.shift();void 0!==stream?"function"==typeof stream?stream(function(stream2){CombinedStream.isStreamLike(stream2)&&(stream2.on("data",this._checkDataSize.bind(this)),this._handleErrors(stream2)),this._pipeNext(stream2)}.bind(this)):this._pipeNext(stream):this.end()},CombinedStream.prototype._pipeNext=function(stream){if(this._currentStream=stream,CombinedStream.isStreamLike(stream))return stream.on("end",this._getNext.bind(this)),void stream.pipe(this,{end:!1});var value=stream;this.write(value),this._getNext()},CombinedStream.prototype._handleErrors=function(stream){var self2=this;stream.on("error",function(err){self2._emitError(err)})},CombinedStream.prototype.write=function(data){this.emit("data",data)},CombinedStream.prototype.pause=function(){!this.pauseStreams||(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},CombinedStream.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},CombinedStream.prototype.end=function(){this._reset(),this.emit("end")},CombinedStream.prototype.destroy=function(){this._reset(),this.emit("close")},CombinedStream.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},CombinedStream.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var message2="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(message2))}},CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var self2=this;this._streams.forEach(function(stream){!stream.dataSize||(self2.dataSize+=stream.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},CombinedStream.prototype._emitError=function(err){this._reset(),this.emit("error",err)}},84257:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var ipaddr=__webpack_require__2(1396),compact2string=__name(function(buf){switch(buf.length){case 6:return buf[0]+"."+buf[1]+"."+buf[2]+"."+buf[3]+":"+buf.readUInt16BE(4);case 18:for(var hexGroups=[],i2=0;i2<8;i2++)hexGroups.push(buf.readUInt16BE(2*i2).toString(16));return"["+ipaddr.parse(hexGroups.join(":")).toString()+"]:"+buf.readUInt16BE(16);default:throw new Error("Invalid Compact IP/PORT, It should contain 6 or 18 bytes")}},"compact2string");compact2string.multi=function(buf){if(buf.length%6!=0)throw new Error("buf length isn't multiple of compact IP/PORTs (6 bytes)");for(var output=[],i2=0;i2<=buf.length-1;i2+=6)output.push(compact2string(buf.slice(i2,i2+6)));return output},compact2string.multi6=function(buf){if(buf.length%18!=0)throw new Error("buf length isn't multiple of compact IP6/PORTs (18 bytes)");for(var output=[],i2=0;i2<=buf.length-1;i2+=18)output.push(compact2string(buf.slice(i2,i2+18)));return output},module2.exports=compact2string},1213:module2=>{var slice=[].slice;module2.exports=function(obj,fn2){if("string"==typeof fn2&&(fn2=obj[fn2]),"function"!=typeof fn2)throw new Error("bind() requires a function");var args2=slice.call(arguments,2);return function(){return fn2.apply(obj,args2.concat(slice.call(arguments)))}}},1264:module2=>{function Emitter(obj){if(obj)return mixin(obj)}function mixin(obj){for(var key in Emitter.prototype)obj[key]=Emitter.prototype[key];return obj}module2.exports=Emitter,__name(Emitter,"Emitter"),__name(mixin,"mixin"),Emitter.prototype.on=Emitter.prototype.addEventListener=function(event,fn2){return this._callbacks=this._callbacks||{},(this._callbacks["$"+event]=this._callbacks["$"+event]||[]).push(fn2),this},Emitter.prototype.once=function(event,fn2){function on(){this.off(event,on),fn2.apply(this,arguments)}return __name(on,"on"),on.fn=fn2,this.on(event,on),this},Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(event,fn2){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var callbacks=this._callbacks["$"+event];if(!callbacks)return this;if(1==arguments.length)return delete this._callbacks["$"+event],this;for(var cb,i2=0;i2{module2.exports=function(a,b2){var fn2=__name(function(){},"fn");fn2.prototype=b2.prototype,a.prototype=new fn2,a.prototype.constructor=a}},63284:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(48926).default;const{promisify}=__webpack_require__2(73837),JSONB=__webpack_require__2(78683),zlib=__webpack_require__2(59796),mergeOptions=__webpack_require__2(89025),compress=promisify(zlib.brotliCompress),decompress=promisify(zlib.brotliDecompress),identity=__name(val=>val,"identity"),createCompress=__name(({enable=!0,serialize=JSONB.stringify,deserialize=JSONB.parse,compressOptions,decompressOptions}={})=>{return enable?{serialize,deserialize,compress:(_ref=_asyncToGenerator(function*(data,options={}){if(void 0===data)return data;const serializedData=serialize(data);return compress(serializedData,mergeOptions(compressOptions,options))}),__name(function(_x){return _ref.apply(this,arguments)},"compress")),decompress:(_ref2=_asyncToGenerator(function*(data,options={}){return void 0===data?data:deserialize(yield decompress(data,mergeOptions(decompressOptions,options)))}),__name(function(_x2){return _ref2.apply(this,arguments)},"decompress"))}:{serialize,deserialize,decompress:identity,compress:identity};var _ref2,_ref},"createCompress");module2.exports=createCompress,module2.exports.stringify=JSONB.stringify,module2.exports.parse=JSONB.parse},89025:module2=>{"use strict";module2.exports=(defaultOptions={},options={})=>{const params={...defaultOptions.params||{},...options.params||{}};return{...defaultOptions,...options,...Object.keys(params).length?{params}:{}}}},44278:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var db=__webpack_require__2(6401),COMPRESSIBLE_TYPE_REGEXP=/^text\/|\+(?:json|text|xml)$/i,EXTRACT_TYPE_REGEXP=/^\s*([^;\s]*)(?:;|\s|$)/;function compressible(type){if(!type||"string"!=typeof type)return!1;var match=EXTRACT_TYPE_REGEXP.exec(type),mime=match&&match[1].toLowerCase(),data=db[mime];return data&&void 0!==data.compressible?data.compressible:COMPRESSIBLE_TYPE_REGEXP.test(mime)||void 0}module2.exports=compressible,__name(compressible,"compressible")},27787:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var accepts=__webpack_require__2(80800),Buffer2=__webpack_require__2(73502).Buffer,bytes=__webpack_require__2(75961),compressible=__webpack_require__2(44278),debug=__webpack_require__2(90516)("compression"),onHeaders=__webpack_require__2(83054),vary=__webpack_require__2(30973),zlib=__webpack_require__2(59796);module2.exports=compression,module2.exports.filter=shouldCompress;var cacheControlNoTransformRegExp=/(?:^|,)\s*?no-transform\s*?(?:,|$)/;function compression(options){var opts=options||{},filter=opts.filter||shouldCompress,threshold=bytes.parse(opts.threshold);return null==threshold&&(threshold=1024),__name(function(req,res,next){var length,stream,ended=!1,listeners=[],_end=res.end,_on=res.on,_write=res.write;function nocompress(msg){debug("no compression: %s",msg),addListeners(res,_on,listeners),listeners=null}res.flush=__name(function(){stream&&stream.flush()},"flush"),res.write=__name(function(chunk,encoding){return!ended&&(this._header||this._implicitHeader(),stream?stream.write(toBuffer(chunk,encoding)):_write.call(this,chunk,encoding))},"write"),res.end=__name(function(chunk,encoding){return!ended&&(this._header||(this.getHeader("Content-Length")||(length=chunkLength(chunk,encoding)),this._implicitHeader()),stream?(ended=!0,chunk?stream.end(toBuffer(chunk,encoding)):stream.end()):_end.call(this,chunk,encoding))},"end"),res.on=__name(function(type,listener){return listeners&&"drain"===type?stream?stream.on(type,listener):(listeners.push([type,listener]),this):_on.call(this,type,listener)},"on"),__name(nocompress,"nocompress"),onHeaders(res,__name(function(){if(filter(req,res))if(shouldTransform(req,res))if(vary(res,"Accept-Encoding"),Number(res.getHeader("Content-Length")){"use strict";module2.exports=bytes,module2.exports.format=format,module2.exports.parse=parse;var formatThousandsRegExp=/\B(?=(\d{3})+(?!\d))/g,formatDecimalsRegExp=/(?:\.0*|(\.[^0]+)0+)$/,map={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:1024*(1<<30)},parseRegExp=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb)$/i;function bytes(value,options){return"string"==typeof value?parse(value):"number"==typeof value?format(value,options):null}function format(value,options){if(!Number.isFinite(value))return null;var mag=Math.abs(value),thousandsSeparator=options&&options.thousandsSeparator||"",unitSeparator=options&&options.unitSeparator||"",decimalPlaces=options&&void 0!==options.decimalPlaces?options.decimalPlaces:2,fixedDecimals=Boolean(options&&options.fixedDecimals),unit=options&&options.unit||"";(!unit||!map[unit.toLowerCase()])&&(unit=mag>=map.tb?"TB":mag>=map.gb?"GB":mag>=map.mb?"MB":mag>=map.kb?"KB":"B");var str=(value/map[unit.toLowerCase()]).toFixed(decimalPlaces);return fixedDecimals||(str=str.replace(formatDecimalsRegExp,"$1")),thousandsSeparator&&(str=str.replace(formatThousandsRegExp,thousandsSeparator)),str+unitSeparator+unit}function parse(val){if("number"==typeof val&&!isNaN(val))return val;if("string"!=typeof val)return null;var floatValue,results=parseRegExp.exec(val),unit="b";return results?(floatValue=parseFloat(results[1]),unit=results[4].toLowerCase()):(floatValue=parseInt(val,10),unit="b"),Math.floor(map[unit]*floatValue)}__name(bytes,"bytes"),__name(format,"format"),__name(parse,"parse")},15204:(module2,exports2,__webpack_require__2)=>{function useColors(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function formatArgs(args2){var useColors2=this.useColors;if(args2[0]=(useColors2?"%c":"")+this.namespace+(useColors2?" %c":" ")+args2[0]+(useColors2?"%c ":" ")+"+"+exports2.humanize(this.diff),useColors2){var c="color: "+this.color;args2.splice(1,0,c,"color: inherit");var index=0,lastC=0;args2[0].replace(/%[a-zA-Z%]/g,function(match){"%%"!==match&&(index++,"%c"===match&&(lastC=index))}),args2.splice(lastC,0,c)}}function log2(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(namespaces){try{null==namespaces?exports2.storage.removeItem("debug"):exports2.storage.debug=namespaces}catch{}}function load(){var r;try{r=exports2.storage.debug}catch{}return!r&&"undefined"!=typeof process&&"env"in process&&(r=process.env.DEBUG),r}function localstorage(){try{return window.localStorage}catch{}}(exports2=module2.exports=__webpack_require__2(79039)).log=log2,exports2.formatArgs=formatArgs,exports2.save=save,exports2.load=load,exports2.useColors=useColors,exports2.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:localstorage(),exports2.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],__name(useColors,"useColors"),exports2.formatters.j=function(v){try{return JSON.stringify(v)}catch(err){return"[UnexpectedJSONParseError]: "+err.message}},__name(formatArgs,"formatArgs"),__name(log2,"log"),__name(save,"save"),__name(load,"load"),exports2.enable(load()),__name(localstorage,"localstorage")},79039:(module2,exports2,__webpack_require__2)=>{var prevTime;function selectColor(namespace){var i2,hash=0;for(i2 in namespace)hash=(hash<<5)-hash+namespace.charCodeAt(i2),hash|=0;return exports2.colors[Math.abs(hash)%exports2.colors.length]}function createDebug(namespace){function debug(){if(debug.enabled){var self2=debug,curr=+new Date,ms=curr-(prevTime||curr);self2.diff=ms,self2.prev=prevTime,self2.curr=curr,prevTime=curr;for(var args2=new Array(arguments.length),i2=0;i2{"undefined"!=typeof process&&"renderer"===process.type?module2.exports=__webpack_require__2(15204):module2.exports=__webpack_require__2(80563)},80563:(module2,exports2,__webpack_require__2)=>{var tty=__webpack_require__2(76224),util=__webpack_require__2(73837);(exports2=module2.exports=__webpack_require__2(79039)).init=init,exports2.log=log2,exports2.formatArgs=formatArgs,exports2.save=save,exports2.load=load,exports2.useColors=useColors,exports2.colors=[6,2,3,4,5,1],exports2.inspectOpts=Object.keys(process.env).filter(function(key){return/^debug_/i.test(key)}).reduce(function(obj,key){var prop=key.substring(6).toLowerCase().replace(/_([a-z])/g,function(_,k){return k.toUpperCase()}),val=process.env[key];return val=!!/^(yes|on|true|enabled)$/i.test(val)||!/^(no|off|false|disabled)$/i.test(val)&&("null"===val?null:Number(val)),obj[prop]=val,obj},{});var fd=parseInt(process.env.DEBUG_FD,10)||2;1!==fd&&2!==fd&&util.deprecate(function(){},"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();var stream=1===fd?process.stdout:2===fd?process.stderr:createWritableStdioStream(fd);function useColors(){return"colors"in exports2.inspectOpts?Boolean(exports2.inspectOpts.colors):tty.isatty(fd)}function formatArgs(args2){var name=this.namespace;if(this.useColors){var c=this.color,prefix=" \x1b[3"+c+";1m"+name+" \x1b[0m";args2[0]=prefix+args2[0].split("\n").join("\n"+prefix),args2.push("\x1b[3"+c+"m+"+exports2.humanize(this.diff)+"\x1b[0m")}else args2[0]=(new Date).toUTCString()+" "+name+" "+args2[0]}function log2(){return stream.write(util.format.apply(util,arguments)+"\n")}function save(namespaces){null==namespaces?delete process.env.DEBUG:process.env.DEBUG=namespaces}function load(){return process.env.DEBUG}function createWritableStdioStream(fd2){var stream2;switch(process.binding("tty_wrap").guessHandleType(fd2)){case"TTY":(stream2=new tty.WriteStream(fd2))._type="tty",stream2._handle&&stream2._handle.unref&&stream2._handle.unref();break;case"FILE":(stream2=new(__webpack_require__2(57147).SyncWriteStream)(fd2,{autoClose:!1}))._type="fs";break;case"PIPE":case"TCP":(stream2=new(__webpack_require__2(41808).Socket)({fd:fd2,readable:!1,writable:!0})).readable=!1,stream2.read=null,stream2._type="pipe",stream2._handle&&stream2._handle.unref&&stream2._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return stream2.fd=fd2,stream2._isStdio=!0,stream2}function init(debug){debug.inspectOpts={};for(var keys=Object.keys(exports2.inspectOpts),i2=0;i2{var s=1e3,m=60*s,h=60*m,d=24*h;function parse(str){if(!((str=String(str)).length>100)){var match=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);if(match){var n=parseFloat(match[1]);switch((match[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"days":case"day":case"d":return n*d;case"hours":case"hour":case"hrs":case"hr":case"h":return n*h;case"minutes":case"minute":case"mins":case"min":case"m":return n*m;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function fmtShort(ms){return ms>=d?Math.round(ms/d)+"d":ms>=h?Math.round(ms/h)+"h":ms>=m?Math.round(ms/m)+"m":ms>=s?Math.round(ms/s)+"s":ms+"ms"}function fmtLong(ms){return plural(ms,d,"day")||plural(ms,h,"hour")||plural(ms,m,"minute")||plural(ms,s,"second")||ms+" ms"}function plural(ms,n,name){if(!(ms0)return parse(val);if("number"===type&&!1===isNaN(val))return options.long?fmtLong(val):fmtShort(val);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(val))},__name(parse,"parse"),__name(fmtShort,"fmtShort"),__name(fmtLong,"fmtLong"),__name(plural,"plural")},80212:module2=>{module2.exports=function(xs,fn2){for(var res=[],i2=0;i2{var Writable=__webpack_require__2(78937).Writable,inherits=__webpack_require__2(88527),bufferFrom=__webpack_require__2(58905);if("undefined"==typeof Uint8Array)var U8=__webpack_require__2(69830).U2;else U8=Uint8Array;function ConcatStream(opts,cb){if(!(this instanceof ConcatStream))return new ConcatStream(opts,cb);"function"==typeof opts&&(cb=opts,opts={}),opts||(opts={});var encoding=opts.encoding,shouldInferEncoding=!1;encoding?("u8"===(encoding=String(encoding).toLowerCase())||"uint8"===encoding)&&(encoding="uint8array"):shouldInferEncoding=!0,Writable.call(this,{objectMode:!0}),this.encoding=encoding,this.shouldInferEncoding=shouldInferEncoding,cb&&this.on("finish",function(){cb(this.getBody())}),this.body=[]}__name(ConcatStream,"ConcatStream"),module2.exports=ConcatStream,inherits(ConcatStream,Writable),ConcatStream.prototype._write=function(chunk,enc,next){this.body.push(chunk),next()},ConcatStream.prototype.inferEncoding=function(buff){var firstBuffer=void 0===buff?this.body[0]:buff;return Buffer.isBuffer(firstBuffer)?"buffer":"undefined"!=typeof Uint8Array&&firstBuffer instanceof Uint8Array?"uint8array":Array.isArray(firstBuffer)?"array":"string"==typeof firstBuffer?"string":"[object Object]"===Object.prototype.toString.call(firstBuffer)?"object":"buffer"},ConcatStream.prototype.getBody=function(){return this.encoding||0!==this.body.length?(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),"array"===this.encoding?arrayConcat(this.body):"string"===this.encoding?stringConcat(this.body):"buffer"===this.encoding?bufferConcat(this.body):"uint8array"===this.encoding?u8Concat(this.body):this.body):[]};Array.isArray;function isArrayish(arr){return/Array\]$/.test(Object.prototype.toString.call(arr))}function isBufferish(p){return"string"==typeof p||isArrayish(p)||p&&"function"==typeof p.subarray}function stringConcat(parts){for(var strings=[],i2=0;i2{"use strict";var pna=__webpack_require__2(95857),objectKeys=Object.keys||function(obj){var keys2=[];for(var key in obj)keys2.push(key);return keys2};module2.exports=Duplex;var util=Object.create(__webpack_require__2(26156));util.inherits=__webpack_require__2(88527);var Readable=__webpack_require__2(58044),Writable=__webpack_require__2(46615);util.inherits(Duplex,Readable);for(var keys=objectKeys(Writable.prototype),v=0;v{"use strict";module2.exports=PassThrough;var Transform=__webpack_require__2(55446),util=Object.create(__webpack_require__2(26156));function PassThrough(options){if(!(this instanceof PassThrough))return new PassThrough(options);Transform.call(this,options)}util.inherits=__webpack_require__2(88527),util.inherits(PassThrough,Transform),__name(PassThrough,"PassThrough"),PassThrough.prototype._transform=function(chunk,encoding,cb){cb(null,chunk)}},58044:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var pna=__webpack_require__2(95857);module2.exports=Readable;var Duplex,isArray=__webpack_require__2(66425);Readable.ReadableState=ReadableState;__webpack_require__2(82361).EventEmitter;var EElistenerCount=__name(function(emitter,type){return emitter.listeners(type).length},"EElistenerCount"),Stream=__webpack_require__2(55835),Buffer2=__webpack_require__2(73502).Buffer,OurUint8Array=global.Uint8Array||function(){};function _uint8ArrayToBuffer(chunk){return Buffer2.from(chunk)}function _isUint8Array(obj){return Buffer2.isBuffer(obj)||obj instanceof OurUint8Array}__name(_uint8ArrayToBuffer,"_uint8ArrayToBuffer"),__name(_isUint8Array,"_isUint8Array");var util=Object.create(__webpack_require__2(26156));util.inherits=__webpack_require__2(88527);var debugUtil=__webpack_require__2(73837),debug=void 0;debug=debugUtil&&debugUtil.debuglog?debugUtil.debuglog("stream"):__name(function(){},"debug");var StringDecoder,BufferList=__webpack_require__2(81054),destroyImpl=__webpack_require__2(8064);util.inherits(Readable,Stream);var kProxyEvents=["error","close","destroy","pause","resume"];function prependListener(emitter,event,fn2){if("function"==typeof emitter.prependListener)return emitter.prependListener(event,fn2);emitter._events&&emitter._events[event]?isArray(emitter._events[event])?emitter._events[event].unshift(fn2):emitter._events[event]=[fn2,emitter._events[event]]:emitter.on(event,fn2)}function ReadableState(options,stream){options=options||{};var isDuplex=stream instanceof(Duplex=Duplex||__webpack_require__2(58961));this.objectMode=!!options.objectMode,isDuplex&&(this.objectMode=this.objectMode||!!options.readableObjectMode);var hwm=options.highWaterMark,readableHwm=options.readableHighWaterMark,defaultHwm=this.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:isDuplex&&(readableHwm||0===readableHwm)?readableHwm:defaultHwm,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new BufferList,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=options.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,options.encoding&&(StringDecoder||(StringDecoder=__webpack_require__2(95139).s),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){if(Duplex=Duplex||__webpack_require__2(58961),!(this instanceof Readable))return new Readable(options);this._readableState=new ReadableState(options,this),this.readable=!0,options&&("function"==typeof options.read&&(this._read=options.read),"function"==typeof options.destroy&&(this._destroy=options.destroy)),Stream.call(this)}function readableAddChunk(stream,chunk,encoding,addToFront,skipChunkCheck){var er,state=stream._readableState;null===chunk?(state.reading=!1,onEofChunk(stream,state)):(skipChunkCheck||(er=chunkInvalid(state,chunk)),er?stream.emit("error",er):state.objectMode||chunk&&chunk.length>0?("string"!=typeof chunk&&!state.objectMode&&Object.getPrototypeOf(chunk)!==Buffer2.prototype&&(chunk=_uint8ArrayToBuffer(chunk)),addToFront?state.endEmitted?stream.emit("error",new Error("stream.unshift() after end event")):addChunk(stream,state,chunk,!0):state.ended?stream.emit("error",new Error("stream.push() after EOF")):(state.reading=!1,state.decoder&&!encoding?(chunk=state.decoder.write(chunk),state.objectMode||0!==chunk.length?addChunk(stream,state,chunk,!1):maybeReadMore(stream,state)):addChunk(stream,state,chunk,!1))):addToFront||(state.reading=!1));return needMoreData(state)}function addChunk(stream,state,chunk,addToFront){state.flowing&&0===state.length&&!state.sync?(stream.emit("data",chunk),stream.read(0)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream)),maybeReadMore(stream,state)}function chunkInvalid(state,chunk){var er;return!_isUint8Array(chunk)&&"string"!=typeof chunk&&void 0!==chunk&&!state.objectMode&&(er=new TypeError("Invalid non-string/buffer chunk")),er}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=8388608?n=8388608:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}function howMuchToRead(n,state){return n<=0||0===state.length&&state.ended?0:state.objectMode?1:n!=n?state.flowing&&state.length?state.buffer.head.data.length:state.length:(n>state.highWaterMark&&(state.highWaterMark=computeNewHighWaterMark(n)),n<=state.length?n:state.ended?state.length:(state.needReadable=!0,0))}function onEofChunk(stream,state){if(!state.ended){if(state.decoder){var chunk=state.decoder.end();chunk&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length)}state.ended=!0,emitReadable(stream)}}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1,state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,state.sync?pna.nextTick(emitReadable_,stream):emitReadable_(stream))}function emitReadable_(stream){debug("emit readable"),stream.emit("readable"),flow(stream)}function maybeReadMore(stream,state){state.readingMore||(state.readingMore=!0,pna.nextTick(maybeReadMore_,stream,state))}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length=state.length?(ret=state.decoder?state.buffer.join(""):1===state.buffer.length?state.buffer.head.data:state.buffer.concat(state.length),state.buffer.clear()):ret=fromListPartial(n,state.buffer,state.decoder),ret);var ret}function fromListPartial(n,list,hasStrings){var ret;return nstr.length?str.length:n;if(nb===str.length?ret+=str:ret+=str.slice(0,n),0===(n-=nb)){nb===str.length?(++c,p.next?list.head=p.next:list.head=list.tail=null):(list.head=p,p.data=str.slice(nb));break}++c}return list.length-=c,ret}function copyFromBuffer(n,list){var ret=Buffer2.allocUnsafe(n),p=list.head,c=1;for(p.data.copy(ret),n-=p.data.length;p=p.next;){var buf=p.data,nb=n>buf.length?buf.length:n;if(buf.copy(ret,ret.length-n,0,nb),0===(n-=nb)){nb===buf.length?(++c,p.next?list.head=p.next:list.head=list.tail=null):(list.head=p,p.data=buf.slice(nb));break}++c}return list.length-=c,ret}function endReadable(stream){var state=stream._readableState;if(state.length>0)throw new Error('"endReadable()" called on non-empty stream');state.endEmitted||(state.ended=!0,pna.nextTick(endReadableNT,state,stream))}function endReadableNT(state,stream){!state.endEmitted&&0===state.length&&(state.endEmitted=!0,stream.readable=!1,stream.emit("end"))}function indexOf(xs,x){for(var i2=0,l=xs.length;i2=state.highWaterMark||state.ended))return debug("read: emitReadable",state.length,state.ended),0===state.length&&state.ended?endReadable(this):emitReadable(this),null;if(0===(n=howMuchToRead(n,state))&&state.ended)return 0===state.length&&endReadable(this),null;var ret,doRead=state.needReadable;return debug("need readable",doRead),(0===state.length||state.length-n0?fromList(n,state):null)?(state.needReadable=!0,n=0):state.length-=n,0===state.length&&(state.ended||(state.needReadable=!0),nOrig!==n&&state.ended&&endReadable(this)),null!==ret&&this.emit("data",ret),ret},__name(onEofChunk,"onEofChunk"),__name(emitReadable,"emitReadable"),__name(emitReadable_,"emitReadable_"),__name(maybeReadMore,"maybeReadMore"),__name(maybeReadMore_,"maybeReadMore_"),Readable.prototype._read=function(n){this.emit("error",new Error("_read() is not implemented"))},Readable.prototype.pipe=function(dest,pipeOpts){var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest)}state.pipesCount+=1,debug("pipe count=%d opts=%j",state.pipesCount,pipeOpts);var endFn=(!pipeOpts||!1!==pipeOpts.end)&&dest!==process.stdout&&dest!==process.stderr?onend:unpipe;function onunpipe(readable,unpipeInfo){debug("onunpipe"),readable===src&&unpipeInfo&&!1===unpipeInfo.hasUnpiped&&(unpipeInfo.hasUnpiped=!0,cleanup())}function onend(){debug("onend"),dest.end()}state.endEmitted?pna.nextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe),__name(onunpipe,"onunpipe"),__name(onend,"onend");var ondrain=pipeOnDrain(src);dest.on("drain",ondrain);var cleanedUp=!1;function cleanup(){debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",unpipe),src.removeListener("data",ondata),cleanedUp=!0,state.awaitDrain&&(!dest._writableState||dest._writableState.needDrain)&&ondrain()}__name(cleanup,"cleanup");var increasedAwaitDrain=!1;function ondata(chunk){debug("ondata"),increasedAwaitDrain=!1,!1===dest.write(chunk)&&!increasedAwaitDrain&&((1===state.pipesCount&&state.pipes===dest||state.pipesCount>1&&-1!==indexOf(state.pipes,dest))&&!cleanedUp&&(debug("false write response, pause",src._readableState.awaitDrain),src._readableState.awaitDrain++,increasedAwaitDrain=!0),src.pause())}function onerror(er){debug("onerror",er),unpipe(),dest.removeListener("error",onerror),0===EElistenerCount(dest,"error")&&dest.emit("error",er)}function onclose(){dest.removeListener("finish",onfinish),unpipe()}function onfinish(){debug("onfinish"),dest.removeListener("close",onclose),unpipe()}function unpipe(){debug("unpipe"),src.unpipe(dest)}return src.on("data",ondata),__name(ondata,"ondata"),__name(onerror,"onerror"),prependListener(dest,"error",onerror),__name(onclose,"onclose"),dest.once("close",onclose),__name(onfinish,"onfinish"),dest.once("finish",onfinish),__name(unpipe,"unpipe"),dest.emit("pipe",src),state.flowing||(debug("pipe resume"),src.resume()),dest},__name(pipeOnDrain,"pipeOnDrain"),Readable.prototype.unpipe=function(dest){var state=this._readableState,unpipeInfo={hasUnpiped:!1};if(0===state.pipesCount)return this;if(1===state.pipesCount)return dest&&dest!==state.pipes||(dest||(dest=state.pipes),state.pipes=null,state.pipesCount=0,state.flowing=!1,dest&&dest.emit("unpipe",this,unpipeInfo)),this;if(!dest){var dests=state.pipes,len=state.pipesCount;state.pipes=null,state.pipesCount=0,state.flowing=!1;for(var i2=0;i2{"use strict";module2.exports=Transform;var Duplex=__webpack_require__2(58961),util=Object.create(__webpack_require__2(26156));function afterTransform(er,data){var ts=this._transformState;ts.transforming=!1;var cb=ts.writecb;if(!cb)return this.emit("error",new Error("write callback called multiple times"));ts.writechunk=null,ts.writecb=null,null!=data&&this.push(data),cb(er);var rs=this._readableState;rs.reading=!1,(rs.needReadable||rs.length{"use strict";var pna=__webpack_require__2(95857);function CorkedRequest(state){var _this=this;this.next=null,this.entry=null,this.finish=function(){onCorkedFinish(_this,state)}}module2.exports=Writable,__name(function WriteReq(chunk,encoding,cb){this.chunk=chunk,this.encoding=encoding,this.callback=cb,this.next=null},"WriteReq"),__name(CorkedRequest,"CorkedRequest");var Duplex,asyncWrite=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:pna.nextTick;Writable.WritableState=WritableState;var util=Object.create(__webpack_require__2(26156));util.inherits=__webpack_require__2(88527);var internalUtil={deprecate:__webpack_require__2(81069)},Stream=__webpack_require__2(55835),Buffer2=__webpack_require__2(73502).Buffer,OurUint8Array=global.Uint8Array||function(){};function _uint8ArrayToBuffer(chunk){return Buffer2.from(chunk)}function _isUint8Array(obj){return Buffer2.isBuffer(obj)||obj instanceof OurUint8Array}__name(_uint8ArrayToBuffer,"_uint8ArrayToBuffer"),__name(_isUint8Array,"_isUint8Array");var realHasInstance,destroyImpl=__webpack_require__2(8064);function nop(){}function WritableState(options,stream){Duplex=Duplex||__webpack_require__2(58961),options=options||{};var isDuplex=stream instanceof Duplex;this.objectMode=!!options.objectMode,isDuplex&&(this.objectMode=this.objectMode||!!options.writableObjectMode);var hwm=options.highWaterMark,writableHwm=options.writableHighWaterMark,defaultHwm=this.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:isDuplex&&(writableHwm||0===writableHwm)?writableHwm:defaultHwm,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var noDecode=!1===options.decodeStrings;this.decodeStrings=!noDecode,this.defaultEncoding=options.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(er){onwrite(stream,er)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this)}function Writable(options){if(Duplex=Duplex||__webpack_require__2(58961),!(realHasInstance.call(Writable,this)||this instanceof Duplex))return new Writable(options);this._writableState=new WritableState(options,this),this.writable=!0,options&&("function"==typeof options.write&&(this._write=options.write),"function"==typeof options.writev&&(this._writev=options.writev),"function"==typeof options.destroy&&(this._destroy=options.destroy),"function"==typeof options.final&&(this._final=options.final)),Stream.call(this)}function writeAfterEnd(stream,cb){var er=new Error("write after end");stream.emit("error",er),pna.nextTick(cb,er)}function validChunk(stream,state,chunk,cb){var valid=!0,er=!1;return null===chunk?er=new TypeError("May not write null values to stream"):"string"!=typeof chunk&&void 0!==chunk&&!state.objectMode&&(er=new TypeError("Invalid non-string/buffer chunk")),er&&(stream.emit("error",er),pna.nextTick(cb,er),valid=!1),valid}function decodeChunk(state,chunk,encoding){return!state.objectMode&&!1!==state.decodeStrings&&"string"==typeof chunk&&(chunk=Buffer2.from(chunk,encoding)),chunk}function writeOrBuffer(stream,state,isBuf,chunk,encoding,cb){if(!isBuf){var newChunk=decodeChunk(state,chunk,encoding);chunk!==newChunk&&(isBuf=!0,encoding="buffer",chunk=newChunk)}var len=state.objectMode?1:chunk.length;state.length+=len;var ret=state.length-1))throw new TypeError("Unknown encoding: "+encoding);return this._writableState.defaultEncoding=encoding,this},"setDefaultEncoding"),__name(decodeChunk,"decodeChunk"),Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),__name(writeOrBuffer,"writeOrBuffer"),__name(doWrite,"doWrite"),__name(onwriteError,"onwriteError"),__name(onwriteStateUpdate,"onwriteStateUpdate"),__name(onwrite,"onwrite"),__name(afterWrite,"afterWrite"),__name(onwriteDrain,"onwriteDrain"),__name(clearBuffer,"clearBuffer"),Writable.prototype._write=function(chunk,encoding,cb){cb(new Error("_write() is not implemented"))},Writable.prototype._writev=null,Writable.prototype.end=function(chunk,encoding,cb){var state=this._writableState;"function"==typeof chunk?(cb=chunk,chunk=null,encoding=null):"function"==typeof encoding&&(cb=encoding,encoding=null),null!=chunk&&this.write(chunk,encoding),state.corked&&(state.corked=1,this.uncork()),!state.ending&&!state.finished&&endWritable(this,state,cb)},__name(needFinish,"needFinish"),__name(callFinal,"callFinal"),__name(prefinish,"prefinish"),__name(finishMaybe,"finishMaybe"),__name(endWritable,"endWritable"),__name(onCorkedFinish,"onCorkedFinish"),Object.defineProperty(Writable.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(value){!this._writableState||(this._writableState.destroyed=value)}}),Writable.prototype.destroy=destroyImpl.destroy,Writable.prototype._undestroy=destroyImpl.undestroy,Writable.prototype._destroy=function(err,cb){this.end(),cb(err)}},81054:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}__name(_classCallCheck,"_classCallCheck");var Buffer2=__webpack_require__2(73502).Buffer,util=__webpack_require__2(73837);function copyBuffer(src,target,offset){src.copy(target,offset)}__name(copyBuffer,"copyBuffer"),module2.exports=function(){function BufferList(){_classCallCheck(this,BufferList),this.head=null,this.tail=null,this.length=0}return __name(BufferList,"BufferList"),BufferList.prototype.push=__name(function(v){var entry={data:v,next:null};this.length>0?this.tail.next=entry:this.head=entry,this.tail=entry,++this.length},"push"),BufferList.prototype.unshift=__name(function(v){var entry={data:v,next:this.head};0===this.length&&(this.tail=entry),this.head=entry,++this.length},"unshift"),BufferList.prototype.shift=__name(function(){if(0!==this.length){var ret=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,ret}},"shift"),BufferList.prototype.clear=__name(function(){this.head=this.tail=null,this.length=0},"clear"),BufferList.prototype.join=__name(function(s){if(0===this.length)return"";for(var p=this.head,ret=""+p.data;p=p.next;)ret+=s+p.data;return ret},"join"),BufferList.prototype.concat=__name(function(n){if(0===this.length)return Buffer2.alloc(0);if(1===this.length)return this.head.data;for(var ret=Buffer2.allocUnsafe(n>>>0),p=this.head,i2=0;p;)copyBuffer(p.data,ret,i2),i2+=p.data.length,p=p.next;return ret},"concat"),BufferList}(),util&&util.inspect&&util.inspect.custom&&(module2.exports.prototype[util.inspect.custom]=function(){var obj=util.inspect({length:this.length});return this.constructor.name+" "+obj})},8064:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var pna=__webpack_require__2(95857);function destroy(err,cb){var _this=this,readableDestroyed=this._readableState&&this._readableState.destroyed,writableDestroyed=this._writableState&&this._writableState.destroyed;return readableDestroyed||writableDestroyed?(cb?cb(err):err&&(!this._writableState||!this._writableState.errorEmitted)&&pna.nextTick(emitErrorNT,this,err),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(err||null,function(err2){!cb&&err2?(pna.nextTick(emitErrorNT,_this,err2),_this._writableState&&(_this._writableState.errorEmitted=!0)):cb&&cb(err2)}),this)}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(self2,err){self2.emit("error",err)}__name(destroy,"destroy"),__name(undestroy,"undestroy"),__name(emitErrorNT,"emitErrorNT"),module2.exports={destroy,undestroy}},55835:(module2,__unused_webpack_exports2,__webpack_require__2)=>{module2.exports=__webpack_require__2(12781)},78937:(module2,exports2,__webpack_require__2)=>{var Stream=__webpack_require__2(12781);"disable"===process.env.READABLE_STREAM&&Stream?(module2.exports=Stream,(exports2=module2.exports=Stream.Readable).Readable=Stream.Readable,exports2.Writable=Stream.Writable,exports2.Duplex=Stream.Duplex,exports2.Transform=Stream.Transform,exports2.PassThrough=Stream.PassThrough,exports2.Stream=Stream):((exports2=module2.exports=__webpack_require__2(58044)).Stream=Stream||exports2,exports2.Readable=exports2,exports2.Writable=__webpack_require__2(46615),exports2.Duplex=__webpack_require__2(58961),exports2.Transform=__webpack_require__2(55446),exports2.PassThrough=__webpack_require__2(60757))},95139:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var Buffer2=__webpack_require__2(73502).Buffer,isEncoding=Buffer2.isEncoding||function(encoding){switch((encoding=""+encoding)&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(enc){if(!enc)return"utf8";for(var retried;;)switch(enc){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return enc;default:if(retried)return;enc=(""+enc).toLowerCase(),retried=!0}}function normalizeEncoding(enc){var nenc=_normalizeEncoding(enc);if("string"!=typeof nenc&&(Buffer2.isEncoding===isEncoding||!isEncoding(enc)))throw new Error("Unknown encoding: "+enc);return nenc||enc}function StringDecoder(encoding){var nb;switch(this.encoding=normalizeEncoding(encoding),this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,nb=4;break;case"utf8":this.fillLast=utf8FillLast,nb=4;break;case"base64":this.text=base64Text,this.end=base64End,nb=3;break;default:return this.write=simpleWrite,void(this.end=simpleEnd)}this.lastNeed=0,this.lastTotal=0,this.lastChar=Buffer2.allocUnsafe(nb)}function utf8CheckByte(byte){return byte<=127?0:byte>>5==6?2:byte>>4==14?3:byte>>3==30?4:byte>>6==2?-1:-2}function utf8CheckIncomplete(self2,buf,i2){var j=buf.length-1;if(j=0?(nb>0&&(self2.lastNeed=nb-1),nb):--j=0?(nb>0&&(self2.lastNeed=nb-2),nb):--j=0?(nb>0&&(2===nb?nb=0:self2.lastNeed=nb-3),nb):0}function utf8CheckExtraBytes(self2,buf,p){if(128!=(192&buf[0]))return self2.lastNeed=0,"\ufffd";if(self2.lastNeed>1&&buf.length>1){if(128!=(192&buf[1]))return self2.lastNeed=1,"\ufffd";if(self2.lastNeed>2&&buf.length>2&&128!=(192&buf[2]))return self2.lastNeed=2,"\ufffd"}}function utf8FillLast(buf){var p=this.lastTotal-this.lastNeed,r=utf8CheckExtraBytes(this,buf);return void 0!==r?r:this.lastNeed<=buf.length?(buf.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(buf.copy(this.lastChar,p,0,buf.length),void(this.lastNeed-=buf.length))}function utf8Text(buf,i2){var total=utf8CheckIncomplete(this,buf,i2);if(!this.lastNeed)return buf.toString("utf8",i2);this.lastTotal=total;var end=buf.length-(total-this.lastNeed);return buf.copy(this.lastChar,0,end),buf.toString("utf8",i2,end)}function utf8End(buf){var r=buf&&buf.length?this.write(buf):"";return this.lastNeed?r+"\ufffd":r}function utf16Text(buf,i2){if((buf.length-i2)%2==0){var r=buf.toString("utf16le",i2);if(r){var c=r.charCodeAt(r.length-1);if(c>=55296&&c<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=buf[buf.length-2],this.lastChar[1]=buf[buf.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=buf[buf.length-1],buf.toString("utf16le",i2,buf.length-1)}function utf16End(buf){var r=buf&&buf.length?this.write(buf):"";if(this.lastNeed){var end=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,end)}return r}function base64Text(buf,i2){var n=(buf.length-i2)%3;return 0===n?buf.toString("base64",i2):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=buf[buf.length-1]:(this.lastChar[0]=buf[buf.length-2],this.lastChar[1]=buf[buf.length-1]),buf.toString("base64",i2,buf.length-n))}function base64End(buf){var r=buf&&buf.length?this.write(buf):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function simpleWrite(buf){return buf.toString(this.encoding)}function simpleEnd(buf){return buf&&buf.length?this.write(buf):""}__name(_normalizeEncoding,"_normalizeEncoding"),__name(normalizeEncoding,"normalizeEncoding"),exports2.s=StringDecoder,__name(StringDecoder,"StringDecoder"),StringDecoder.prototype.write=function(buf){if(0===buf.length)return"";var r,i2;if(this.lastNeed){if(void 0===(r=this.fillLast(buf)))return"";i2=this.lastNeed,this.lastNeed=0}else i2=0;return i2{"use strict";module2.exports=contentDisposition,module2.exports.parse=parse;var basename=__webpack_require__2(71017).basename,Buffer2=__webpack_require__2(94542).Buffer,ENCODE_URL_ATTR_CHAR_REGEXP=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,HEX_ESCAPE_REGEXP=/%[0-9A-Fa-f]{2}/,HEX_ESCAPE_REPLACE_REGEXP=/%([0-9A-Fa-f]{2})/g,NON_LATIN1_REGEXP=/[^\x20-\x7e\xa0-\xff]/g,QESC_REGEXP=/\\([\u0000-\u007f])/g,QUOTE_REGEXP=/([\\"])/g,PARAM_REGEXP=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,TEXT_REGEXP=/^[\x20-\x7e\x80-\xff]+$/,TOKEN_REGEXP=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,EXT_VALUE_REGEXP=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,DISPOSITION_TYPE_REGEXP=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function contentDisposition(filename,options){var opts=options||{};return format(new ContentDisposition(opts.type||"attachment",createparams(filename,opts.fallback)))}function createparams(filename,fallback){if(void 0!==filename){var params={};if("string"!=typeof filename)throw new TypeError("filename must be a string");if(void 0===fallback&&(fallback=!0),"string"!=typeof fallback&&"boolean"!=typeof fallback)throw new TypeError("fallback must be a string or boolean");if("string"==typeof fallback&&NON_LATIN1_REGEXP.test(fallback))throw new TypeError("fallback must be ISO-8859-1 string");var name=basename(filename),isQuotedString=TEXT_REGEXP.test(name),fallbackName="string"!=typeof fallback?fallback&&getlatin1(name):basename(fallback),hasFallback="string"==typeof fallbackName&&fallbackName!==name;return(hasFallback||!isQuotedString||HEX_ESCAPE_REGEXP.test(name))&&(params["filename*"]=name),(isQuotedString||hasFallback)&&(params.filename=hasFallback?fallbackName:name),params}}function format(obj){var parameters=obj.parameters,type=obj.type;if(!type||"string"!=typeof type||!TOKEN_REGEXP.test(type))throw new TypeError("invalid type");var string=String(type).toLowerCase();if(parameters&&"object"==typeof parameters)for(var param,params=Object.keys(parameters).sort(),i2=0;i2{var buffer=__webpack_require__2(14300),Buffer2=buffer.Buffer;function copyProps(src,dst){for(var key in src)dst[key]=src[key]}function SafeBuffer(arg,encodingOrOffset,length){return Buffer2(arg,encodingOrOffset,length)}__name(copyProps,"copyProps"),Buffer2.from&&Buffer2.alloc&&Buffer2.allocUnsafe&&Buffer2.allocUnsafeSlow?module2.exports=buffer:(copyProps(buffer,exports2),exports2.Buffer=SafeBuffer),__name(SafeBuffer,"SafeBuffer"),SafeBuffer.prototype=Object.create(Buffer2.prototype),copyProps(Buffer2,SafeBuffer),SafeBuffer.from=function(arg,encodingOrOffset,length){if("number"==typeof arg)throw new TypeError("Argument must not be a number");return Buffer2(arg,encodingOrOffset,length)},SafeBuffer.alloc=function(size,fill,encoding){if("number"!=typeof size)throw new TypeError("Argument must be a number");var buf=Buffer2(size);return void 0!==fill?"string"==typeof encoding?buf.fill(fill,encoding):buf.fill(fill):buf.fill(0),buf},SafeBuffer.allocUnsafe=function(size){if("number"!=typeof size)throw new TypeError("Argument must be a number");return Buffer2(size)},SafeBuffer.allocUnsafeSlow=function(size){if("number"!=typeof size)throw new TypeError("Argument must be a number");return buffer.SlowBuffer(size)}},85812:(__unused_webpack_module,exports2)=>{"use strict";var PARAM_REGEXP=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,TEXT_REGEXP=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,TOKEN_REGEXP=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,QESC_REGEXP=/\\([\u000b\u0020-\u00ff])/g,QUOTE_REGEXP=/([\\"])/g,TYPE_REGEXP=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function format(obj){if(!obj||"object"!=typeof obj)throw new TypeError("argument obj is required");var parameters=obj.parameters,type=obj.type;if(!type||!TYPE_REGEXP.test(type))throw new TypeError("invalid type");var string=type;if(parameters&&"object"==typeof parameters)for(var param,params=Object.keys(parameters).sort(),i2=0;i20&&!TEXT_REGEXP.test(str))throw new TypeError("invalid parameter value");return'"'+str.replace(QUOTE_REGEXP,"\\$1")+'"'}function ContentType(type){this.parameters=Object.create(null),this.type=type}exports2.format=format,exports2.parse=parse,__name(format,"format"),__name(parse,"parse"),__name(getcontenttype,"getcontenttype"),__name(qstring,"qstring"),__name(ContentType,"ContentType")},82500:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var cookie=__webpack_require__2(79530),signature=__webpack_require__2(58267);function cookieParser(secret,options){var secrets=!secret||Array.isArray(secret)?secret||[]:[secret];return __name(function(req,res,next){if(req.cookies)return next();var cookies=req.headers.cookie;if(req.secret=secrets[0],req.cookies=Object.create(null),req.signedCookies=Object.create(null),!cookies)return next();req.cookies=cookie.parse(cookies,options),0!==secrets.length&&(req.signedCookies=signedCookies(req.cookies,secrets),req.signedCookies=JSONCookies(req.signedCookies)),req.cookies=JSONCookies(req.cookies),next()},"cookieParser")}function JSONCookie(str){if("string"==typeof str&&"j:"===str.substr(0,2))try{return JSON.parse(str.slice(2))}catch{return}}function JSONCookies(obj){for(var key,val,cookies=Object.keys(obj),i2=0;i2{"use strict";exports2.parse=parse,exports2.serialize=serialize;var decode=decodeURIComponent,encode=encodeURIComponent,pairSplitRegExp=/; */,fieldContentRegExp=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function parse(str,options){if("string"!=typeof str)throw new TypeError("argument str must be a string");for(var obj={},opt=options||{},pairs=str.split(pairSplitRegExp),dec=opt.decode||decode,i2=0;i2{var crypto2=__webpack_require__2(6113);function sha1(str){return crypto2.createHash("sha1").update(str).digest("hex")}exports2.sign=function(val,secret){if("string"!=typeof val)throw new TypeError("Cookie value must be provided as a string.");if("string"!=typeof secret)throw new TypeError("Secret string must be provided.");return val+"."+crypto2.createHmac("sha256",secret).update(val).digest("base64").replace(/\=+$/,"")},exports2.unsign=function(val,secret){if("string"!=typeof val)throw new TypeError("Signed cookie string must be provided.");if("string"!=typeof secret)throw new TypeError("Secret string must be provided.");var str=val.slice(0,val.lastIndexOf("."));return sha1(exports2.sign(str,secret))==sha1(val)&&str},__name(sha1,"sha1")},23555:(__unused_webpack_module,exports2)=>{"use strict";exports2.parse=parse,exports2.serialize=serialize;var decode=decodeURIComponent,encode=encodeURIComponent,fieldContentRegExp=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function parse(str,options){if("string"!=typeof str)throw new TypeError("argument str must be a string");for(var obj={},opt=options||{},pairs=str.split(";"),dec=opt.decode||decode,i2=0;i2{function isArray(arg){return Array.isArray?Array.isArray(arg):"[object Array]"===objectToString(arg)}function isBoolean(arg){return"boolean"==typeof arg}function isNull(arg){return null===arg}function isNullOrUndefined(arg){return null==arg}function isNumber(arg){return"number"==typeof arg}function isString(arg){return"string"==typeof arg}function isSymbol(arg){return"symbol"==typeof arg}function isUndefined(arg){return void 0===arg}function isRegExp(re){return"[object RegExp]"===objectToString(re)}function isObject(arg){return"object"==typeof arg&&null!==arg}function isDate(d){return"[object Date]"===objectToString(d)}function isError(e){return"[object Error]"===objectToString(e)||e instanceof Error}function isFunction(arg){return"function"==typeof arg}function isPrimitive(arg){return null===arg||"boolean"==typeof arg||"number"==typeof arg||"string"==typeof arg||"symbol"==typeof arg||void 0===arg}function objectToString(o){return Object.prototype.toString.call(o)}__name(isArray,"isArray"),exports2.isArray=isArray,__name(isBoolean,"isBoolean"),exports2.isBoolean=isBoolean,__name(isNull,"isNull"),exports2.isNull=isNull,__name(isNullOrUndefined,"isNullOrUndefined"),exports2.isNullOrUndefined=isNullOrUndefined,__name(isNumber,"isNumber"),exports2.isNumber=isNumber,__name(isString,"isString"),exports2.isString=isString,__name(isSymbol,"isSymbol"),exports2.isSymbol=isSymbol,__name(isUndefined,"isUndefined"),exports2.isUndefined=isUndefined,__name(isRegExp,"isRegExp"),exports2.isRegExp=isRegExp,__name(isObject,"isObject"),exports2.isObject=isObject,__name(isDate,"isDate"),exports2.isDate=isDate,__name(isError,"isError"),exports2.isError=isError,__name(isFunction,"isFunction"),exports2.isFunction=isFunction,__name(isPrimitive,"isPrimitive"),exports2.isPrimitive=isPrimitive,exports2.isBuffer=__webpack_require__2(14300).Buffer.isBuffer,__name(objectToString,"objectToString")},5630:(module2,__unused_webpack_exports2,__webpack_require__2)=>{!function(){"use strict";var assign=__webpack_require__2(35943),vary=__webpack_require__2(30973),defaults={origin:"*",methods:"GET,HEAD,PUT,PATCH,POST,DELETE",preflightContinue:!1,optionsSuccessStatus:204};function isString(s){return"string"==typeof s||s instanceof String}function isOriginAllowed(origin,allowedOrigin){if(Array.isArray(allowedOrigin)){for(var i2=0;i2new CronJob(cronTime,onTick,onComplete,startNow,timeZone,context,runOnInit,utcOffset,unrefTimeout),exports3.time=(cronTime,timeZone)=>new CronTime(cronTime,timeZone),exports3.sendAt=cronTime=>exports3.time(cronTime).sendAt(),exports3.timeout=cronTime=>exports3.time(cronTime).getTimeout(),exports3.CronJob=CronJob,exports3.CronTime=CronTime,exports3})?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports2,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)&&(module2.exports=__WEBPACK_AMD_DEFINE_RESULT__)},82793:module2=>{function CronJob(CronTime,spawn){function fnWrap(cmd){var command,args2;switch(typeof cmd){case"string":return command=(args2=cmd.split(" ")).shift(),spawn.bind(void 0,command,args2);case"object":if(command=cmd&&cmd.command){args2=cmd.args;var options=cmd.options;return spawn.bind(void 0,command,args2,options)}}return cmd}function CJ(cronTime,onTick,onComplete,startNow,timeZone,context,runOnInit,utcOffset,unrefTimeout){for(var _cronTime=cronTime,argCount=0,i2=0;i2=0;i2--)this._callbacks[i2].call(this.context,this.onComplete)},"fireOnTick");CJ.prototype.fireOnTick=fireOnTick,CJ.prototype.nextDates=function(i2){return this.cronTime.sendAt(i2)};var start=__name(function(){if(!this.running){var startTime,self2=this,timeout=this.cronTime.getTimeout(),remaining=0;this.cronTime.realDate&&(this.runOnce=!0),__name(_setTimeout,"_setTimeout"),__name(callbackWrapper,"callbackWrapper"),timeout>=0?(this.running=!0,timeout>2147483647&&(remaining=timeout-2147483647,timeout=2147483647),_setTimeout(timeout)):this.stop()}function _setTimeout(timeout2){startTime=Date.now(),self2._timeout=setTimeout(callbackWrapper,timeout2),self2.unrefTimeout&&"function"==typeof self2._timeout.unref&&self2._timeout.unref()}function callbackWrapper(){var diff=startTime+timeout-Date.now();if(diff>0){var newTimeout=self2.cronTime.getTimeout();newTimeout>diff&&(newTimeout=diff),remaining+=newTimeout}self2.lastExecution=new Date,remaining?(remaining>2147483647?(remaining-=2147483647,timeout=2147483647):(timeout=remaining,remaining=0),_setTimeout(timeout)):(self2.running=!1,self2.runOnce||self2.start(),self2.fireOnTick())}},"start");return CJ.prototype.start=start,CJ.prototype.lastDate=function(){return this.lastExecution},CJ.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this.running=!1,"function"==typeof this.onComplete&&this.onComplete()},CJ}__name(CronJob,"CronJob"),module2.exports=CronJob},60389:module2=>{const CONSTRAINTS=[[0,59],[0,59],[0,23],[1,31],[0,11],[0,6]],MONTH_CONSTRAINTS=[31,29,31,30,31,30,31,31,30,31,30,31],PARSE_DEFAULTS=["0","*","*","*","*","*"],ALIASES={jan:0,feb:1,mar:2,apr:3,may:4,jun:5,jul:6,aug:7,sep:8,oct:9,nov:10,dec:11,sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},TIME_UNITS=["second","minute","hour","dayOfMonth","month","dayOfWeek"],TIME_UNITS_LEN=TIME_UNITS.length,PRESETS={"@yearly":"0 0 0 1 0 *","@monthly":"0 0 0 1 * *","@weekly":"0 0 0 * * 0","@daily":"0 0 0 * * *","@hourly":"0 0 * * * *","@minutely":"0 * * * * *","@secondly":"* * * * * *","@weekdays":"0 0 0 * * 1-5","@weekends":"0 0 0 * * 0,6"},RE_WILDCARDS=/\*/g,RE_RANGE=/^(\d+)(?:-(\d+))?(?:\/(\d+))?$/g;function CronTime(luxon){function CT(source,zone,utcOffset){if(this.source=source,zone){if(luxon.DateTime.fromObject({zone}).invalid)throw new Error("Invalid timezone.");this.zone=zone}void 0!==utcOffset&&(this.utcOffset=utcOffset);var that=this;TIME_UNITS.map(timeUnit=>{that[timeUnit]={}}),this.source instanceof Date||this.source instanceof luxon.DateTime?(this.source instanceof Date&&(this.source=luxon.DateTime.fromJSDate(this.source)),this.realDate=!0):(this._parse(this.source),this._verifyParse())}return __name(CT,"CT"),CT.prototype={_verifyParse:function(){for(var months=Object.keys(this.month),dom=Object.keys(this.dayOfMonth),ok=!1,lastWrongMonth=NaN,i2=0;i2notOkCon){delete this.dayOfMonth[notOkDay];var fixedDay=Number(notOkDay)%notOkCon;this.dayOfMonth[fixedDay]=!0}}},sendAt:function(i2){var date=this.realDate?this.source:luxon.DateTime.local();if(this.zone&&(date=date.setZone(this.zone)),void 0!==this.utcOffset){let offset=this.utcOffset>=60||this.utcOffset<=-60?this.utcOffset/60:this.utcOffset;offset=parseInt(offset);let utcZone="UTC";if(offset<0?utcZone+=offset:offset>0&&(utcZone+=`+${offset}`),(date=date.setZone(utcZone)).invalid)throw new Error("ERROR: You specified an invalid UTC offset.")}if(this.realDate){if(luxon.DateTime.local()>date)throw new Error("WARNING: Date in past. Will never be fired.");return date}if(isNaN(i2)||i2<0)return this._getNextDateFrom(date);for(var dates=[];i2>0;i2--)date=this._getNextDateFrom(date),dates.push(date);return dates},getTimeout:function(){return Math.max(-1,this.sendAt()-luxon.DateTime.local())},toString:function(){return this.toJSON().join(" ")},toJSON:function(){var self2=this;return TIME_UNITS.map(function(timeName){return self2._wcOrAll(timeName)})},_getNextDateFrom:function(start,zone){start instanceof Date&&(start=luxon.DateTime.fromJSDate(start));var date=start,firstDate=start.toMillis();if(zone&&(date=date.setZone(zone)),this.realDate||date.millisecond>0&&(date=date.set({millisecond:0,second:date.second+1})),date.invalid)throw new Error("ERROR: You specified an invalid date.");for(var timeout=Date.now()+5e3;;){var diff=date-start;if(Date.now()>timeout)throw new Error(`Something went wrong. cron reached maximum iterations.\n\t\t\t\t\t\t\tPlease open an issue (https://github.com/kelektiv/node-cron/issues/new) and provide the following string\n\t\t\t\t\t\t\tTime Zone: ${zone||'""'} - Cron String: ${this} - UTC offset: ${date.format("Z")} - current Date: ${luxon.DateTime.local().toString()}`);if(date.month-1 in this.month||12===Object.keys(this.month).length)if(date.day in this.dayOfMonth||31===Object.keys(this.dayOfMonth).length||date.getWeekDay()in this.dayOfWeek&&7!==Object.keys(this.dayOfWeek).length)if(date.getWeekDay()in this.dayOfWeek||7===Object.keys(this.dayOfWeek).length||date.day in this.dayOfMonth&&31!==Object.keys(this.dayOfMonth).length)if(date.hour in this.hour||24===Object.keys(this.hour).length)if(date.minute in this.minute||60===Object.keys(this.minute).length)if(date.second in this.second||60===Object.keys(this.second).length){if(date.toMillis()!==firstDate)break;date=date.set({second:date.second+1})}else date=date.set({second:59===date.second&&diff>6e4?0:date.second+1});else date=(date=date.set({minute:59===date.minute&&diff>36e5?0:date.minute+1})).set({second:0});else date=(date=date.set({hour:23===date.hour&&diff>864e5?0:date.hour+1})).set({minute:0,second:0});else date=(date=date.plus({days:1})).set({hour:0,minute:0,second:0});else date=(date=date.plus({days:1})).set({hour:0,minute:0,second:0});else date=(date=date.plus({months:1})).set({day:1,hour:0,minute:0,second:0})}return date},_wcOrAll:function(type){if(this._hasAll(type))return"*";var all=[];for(var time in this[type])all.push(time);return all.join(",")},_hasAll:function(type){for(var constraints=CONSTRAINTS[TIME_UNITS.indexOf(type)],i2=constraints[0],n=constraints[1];i2{if(alias in ALIASES)return ALIASES[alias];throw new Error(`Unknown alias: ${alias}`)})).trim().split(/\s+/);if(units.lengthTIME_UNITS_LEN)throw new Error("Too many fields");for(var unitsLen=units.length,i2=0;i2{var wildcardIndex=field.indexOf("*");if(-1!==wildcardIndex&&0!==wildcardIndex)throw new Error(`Field (${field}) has an invalid wildcard expression`)});for(var allRanges=(value=value.replace(RE_WILDCARDS,`${low}-${high}`)).split(","),i2=0;i2{lower=parseInt(lower,10),upper=parseInt(upper,10)||void 0;const wasStepDefined=!isNaN(parseInt(step,10));if("0"===step)throw new Error(`Field (${type}) has a step of zero`);if(step=parseInt(step,10)||1,upper&&lower>upper)throw new Error(`Field (${type}) has an invalid range`);if(lowerhigh||!upper&&lower>high)throw new Error(`Field value (${value}) is out of range`);lower=Math.min(Math.max(low,~~Math.abs(lower)),high),upper=upper?Math.min(high,~~Math.abs(upper)):wasStepDefined?high:lower,pointer=lower;do{typeObj[pointer]=!0,pointer+=step}while(pointer<=upper)})}}},CT}__name(CronTime,"CronTime"),module2.exports=CronTime},25585:module2=>{var base64map,crypt;base64map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",crypt={rotl:function(n,b2){return n<>>32-b2},rotr:function(n,b2){return n<<32-b2|n>>>b2},endian:function(n){if(n.constructor==Number)return 16711935&crypt.rotl(n,8)|4278255360&crypt.rotl(n,24);for(var i2=0;i20;n--)bytes.push(Math.floor(256*Math.random()));return bytes},bytesToWords:function(bytes){for(var words=[],i2=0,b2=0;i2>>5]|=bytes[i2]<<24-b2%32;return words},wordsToBytes:function(words){for(var bytes=[],b2=0;b2<32*words.length;b2+=8)bytes.push(words[b2>>>5]>>>24-b2%32&255);return bytes},bytesToHex:function(bytes){for(var hex=[],i2=0;i2>>4).toString(16)),hex.push((15&bytes[i2]).toString(16));return hex.join("")},hexToBytes:function(hex){for(var bytes=[],c=0;c>>6*(3-j)&63)):base64.push("=");return base64.join("")},base64ToBytes:function(base64){base64=base64.replace(/[^A-Z0-9+\/]/gi,"");for(var bytes=[],i2=0,imod4=0;i2>>6-2*imod4);return bytes}},module2.exports=crypt},77466:function(module2,exports2,__webpack_require__2){var CryptoJS;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(58319),__webpack_require__2(9493),__webpack_require__2(37865),__webpack_require__2(53057),function(){var C=CryptoJS,BlockCipher=C.lib.BlockCipher,C_algo=C.algo,SBOX=[],INV_SBOX=[],SUB_MIX_0=[],SUB_MIX_1=[],SUB_MIX_2=[],SUB_MIX_3=[],INV_SUB_MIX_0=[],INV_SUB_MIX_1=[],INV_SUB_MIX_2=[],INV_SUB_MIX_3=[];!function(){for(var d=[],i2=0;i2<256;i2++)d[i2]=i2<128?i2<<1:i2<<1^283;var x=0,xi=0;for(i2=0;i2<256;i2++){var sx=xi^xi<<1^xi<<2^xi<<3^xi<<4;sx=sx>>>8^255&sx^99,SBOX[x]=sx,INV_SBOX[sx]=x;var x2=d[x],x4=d[x2],x8=d[x4],t=257*d[sx]^16843008*sx;SUB_MIX_0[x]=t<<24|t>>>8,SUB_MIX_1[x]=t<<16|t>>>16,SUB_MIX_2[x]=t<<8|t>>>24,SUB_MIX_3[x]=t,t=16843009*x8^65537*x4^257*x2^16843008*x,INV_SUB_MIX_0[sx]=t<<24|t>>>8,INV_SUB_MIX_1[sx]=t<<16|t>>>16,INV_SUB_MIX_2[sx]=t<<8|t>>>24,INV_SUB_MIX_3[sx]=t,x?(x=x2^d[d[d[x8^x2]]],xi^=d[d[xi]]):x=xi=1}}();var RCON=[0,1,2,4,8,16,32,64,128,27,54],AES=C_algo.AES=BlockCipher.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var key=this._keyPriorReset=this._key,keyWords=key.words,keySize=key.sigBytes/4,ksRows=4*((this._nRounds=keySize+6)+1),keySchedule=this._keySchedule=[],ksRow=0;ksRow6&&ksRow%keySize==4&&(t=SBOX[t>>>24]<<24|SBOX[t>>>16&255]<<16|SBOX[t>>>8&255]<<8|SBOX[255&t]):(t=SBOX[(t=t<<8|t>>>24)>>>24]<<24|SBOX[t>>>16&255]<<16|SBOX[t>>>8&255]<<8|SBOX[255&t],t^=RCON[ksRow/keySize|0]<<24),keySchedule[ksRow]=keySchedule[ksRow-keySize]^t);for(var invKeySchedule=this._invKeySchedule=[],invKsRow=0;invKsRow>>24]]^INV_SUB_MIX_1[SBOX[t>>>16&255]]^INV_SUB_MIX_2[SBOX[t>>>8&255]]^INV_SUB_MIX_3[SBOX[255&t]]}}},encryptBlock:function(M,offset){this._doCryptBlock(M,offset,this._keySchedule,SUB_MIX_0,SUB_MIX_1,SUB_MIX_2,SUB_MIX_3,SBOX)},decryptBlock:function(M,offset){var t=M[offset+1];M[offset+1]=M[offset+3],M[offset+3]=t,this._doCryptBlock(M,offset,this._invKeySchedule,INV_SUB_MIX_0,INV_SUB_MIX_1,INV_SUB_MIX_2,INV_SUB_MIX_3,INV_SBOX),t=M[offset+1],M[offset+1]=M[offset+3],M[offset+3]=t},_doCryptBlock:function(M,offset,keySchedule,SUB_MIX_02,SUB_MIX_12,SUB_MIX_22,SUB_MIX_32,SBOX2){for(var nRounds=this._nRounds,s0=M[offset]^keySchedule[0],s1=M[offset+1]^keySchedule[1],s2=M[offset+2]^keySchedule[2],s3=M[offset+3]^keySchedule[3],ksRow=4,round=1;round>>24]^SUB_MIX_12[s1>>>16&255]^SUB_MIX_22[s2>>>8&255]^SUB_MIX_32[255&s3]^keySchedule[ksRow++],t1=SUB_MIX_02[s1>>>24]^SUB_MIX_12[s2>>>16&255]^SUB_MIX_22[s3>>>8&255]^SUB_MIX_32[255&s0]^keySchedule[ksRow++],t2=SUB_MIX_02[s2>>>24]^SUB_MIX_12[s3>>>16&255]^SUB_MIX_22[s0>>>8&255]^SUB_MIX_32[255&s1]^keySchedule[ksRow++],t3=SUB_MIX_02[s3>>>24]^SUB_MIX_12[s0>>>16&255]^SUB_MIX_22[s1>>>8&255]^SUB_MIX_32[255&s2]^keySchedule[ksRow++];s0=t0,s1=t1,s2=t2,s3=t3}t0=(SBOX2[s0>>>24]<<24|SBOX2[s1>>>16&255]<<16|SBOX2[s2>>>8&255]<<8|SBOX2[255&s3])^keySchedule[ksRow++],t1=(SBOX2[s1>>>24]<<24|SBOX2[s2>>>16&255]<<16|SBOX2[s3>>>8&255]<<8|SBOX2[255&s0])^keySchedule[ksRow++],t2=(SBOX2[s2>>>24]<<24|SBOX2[s3>>>16&255]<<16|SBOX2[s0>>>8&255]<<8|SBOX2[255&s1])^keySchedule[ksRow++],t3=(SBOX2[s3>>>24]<<24|SBOX2[s0>>>16&255]<<16|SBOX2[s1>>>8&255]<<8|SBOX2[255&s2])^keySchedule[ksRow++],M[offset]=t0,M[offset+1]=t1,M[offset+2]=t2,M[offset+3]=t3},keySize:8});C.AES=BlockCipher._createHelper(AES)}(),CryptoJS.AES)},53057:function(module2,exports2,__webpack_require__2){var CryptoJS,undefined2,C,C_lib,Base,WordArray,BufferedBlockAlgorithm,C_enc,Base64,EvpKDF,Cipher,C_mode,BlockCipherMode,CBC,Pkcs7,CipherParams,OpenSSLFormatter,SerializableCipher,OpenSSLKdf,PasswordBasedCipher;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(37865),void(CryptoJS.lib.Cipher||(C=CryptoJS,C_lib=C.lib,Base=C_lib.Base,WordArray=C_lib.WordArray,BufferedBlockAlgorithm=C_lib.BufferedBlockAlgorithm,C_enc=C.enc,C_enc.Utf8,Base64=C_enc.Base64,EvpKDF=C.algo.EvpKDF,Cipher=C_lib.Cipher=BufferedBlockAlgorithm.extend({cfg:Base.extend(),createEncryptor:function(key,cfg){return this.create(this._ENC_XFORM_MODE,key,cfg)},createDecryptor:function(key,cfg){return this.create(this._DEC_XFORM_MODE,key,cfg)},init:function(xformMode,key,cfg){this.cfg=this.cfg.extend(cfg),this._xformMode=xformMode,this._key=key,this.reset()},reset:function(){BufferedBlockAlgorithm.reset.call(this),this._doReset()},process:function(dataUpdate){return this._append(dataUpdate),this._process()},finalize:function(dataUpdate){return dataUpdate&&this._append(dataUpdate),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function selectCipherStrategy(key){return"string"==typeof key?PasswordBasedCipher:SerializableCipher}return __name(selectCipherStrategy,"selectCipherStrategy"),function(cipher){return{encrypt:function(message2,key,cfg){return selectCipherStrategy(key).encrypt(cipher,message2,key,cfg)},decrypt:function(ciphertext,key,cfg){return selectCipherStrategy(key).decrypt(cipher,ciphertext,key,cfg)}}}}()}),C_lib.StreamCipher=Cipher.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),C_mode=C.mode={},BlockCipherMode=C_lib.BlockCipherMode=Base.extend({createEncryptor:function(cipher,iv){return this.Encryptor.create(cipher,iv)},createDecryptor:function(cipher,iv){return this.Decryptor.create(cipher,iv)},init:function(cipher,iv){this._cipher=cipher,this._iv=iv}}),CBC=C_mode.CBC=function(){var CBC2=BlockCipherMode.extend();function xorBlock(words,offset,blockSize){var block,iv=this._iv;iv?(block=iv,this._iv=undefined2):block=this._prevBlock;for(var i2=0;i2>>2];data.sigBytes-=nPaddingBytes}},C_lib.BlockCipher=Cipher.extend({cfg:Cipher.cfg.extend({mode:CBC,padding:Pkcs7}),reset:function(){var modeCreator;Cipher.reset.call(this);var cfg=this.cfg,iv=cfg.iv,mode=cfg.mode;this._xformMode==this._ENC_XFORM_MODE?modeCreator=mode.createEncryptor:(modeCreator=mode.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==modeCreator?this._mode.init(this,iv&&iv.words):(this._mode=modeCreator.call(mode,this,iv&&iv.words),this._mode.__creator=modeCreator)},_doProcessBlock:function(words,offset){this._mode.processBlock(words,offset)},_doFinalize:function(){var finalProcessedBlocks,padding=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(padding.pad(this._data,this.blockSize),finalProcessedBlocks=this._process(!0)):(finalProcessedBlocks=this._process(!0),padding.unpad(finalProcessedBlocks)),finalProcessedBlocks},blockSize:4}),CipherParams=C_lib.CipherParams=Base.extend({init:function(cipherParams){this.mixIn(cipherParams)},toString:function(formatter){return(formatter||this.formatter).stringify(this)}}),OpenSSLFormatter=(C.format={}).OpenSSL={stringify:function(cipherParams){var ciphertext=cipherParams.ciphertext,salt=cipherParams.salt;return(salt?WordArray.create([1398893684,1701076831]).concat(salt).concat(ciphertext):ciphertext).toString(Base64)},parse:function(openSSLStr){var salt,ciphertext=Base64.parse(openSSLStr),ciphertextWords=ciphertext.words;return 1398893684==ciphertextWords[0]&&1701076831==ciphertextWords[1]&&(salt=WordArray.create(ciphertextWords.slice(2,4)),ciphertextWords.splice(0,4),ciphertext.sigBytes-=16),CipherParams.create({ciphertext,salt})}},SerializableCipher=C_lib.SerializableCipher=Base.extend({cfg:Base.extend({format:OpenSSLFormatter}),encrypt:function(cipher,message2,key,cfg){cfg=this.cfg.extend(cfg);var encryptor=cipher.createEncryptor(key,cfg),ciphertext=encryptor.finalize(message2),cipherCfg=encryptor.cfg;return CipherParams.create({ciphertext,key,iv:cipherCfg.iv,algorithm:cipher,mode:cipherCfg.mode,padding:cipherCfg.padding,blockSize:cipher.blockSize,formatter:cfg.format})},decrypt:function(cipher,ciphertext,key,cfg){return cfg=this.cfg.extend(cfg),ciphertext=this._parse(ciphertext,cfg.format),cipher.createDecryptor(key,cfg).finalize(ciphertext.ciphertext)},_parse:function(ciphertext,format){return"string"==typeof ciphertext?format.parse(ciphertext,this):ciphertext}}),OpenSSLKdf=(C.kdf={}).OpenSSL={execute:function(password,keySize,ivSize,salt){salt||(salt=WordArray.random(8));var key=EvpKDF.create({keySize:keySize+ivSize}).compute(password,salt),iv=WordArray.create(key.words.slice(keySize),4*ivSize);return key.sigBytes=4*keySize,CipherParams.create({key,iv,salt})}},PasswordBasedCipher=C_lib.PasswordBasedCipher=SerializableCipher.extend({cfg:SerializableCipher.cfg.extend({kdf:OpenSSLKdf}),encrypt:function(cipher,message2,password,cfg){var derivedParams=(cfg=this.cfg.extend(cfg)).kdf.execute(password,cipher.keySize,cipher.ivSize);cfg.iv=derivedParams.iv;var ciphertext=SerializableCipher.encrypt.call(this,cipher,message2,derivedParams.key,cfg);return ciphertext.mixIn(derivedParams),ciphertext},decrypt:function(cipher,ciphertext,password,cfg){cfg=this.cfg.extend(cfg),ciphertext=this._parse(ciphertext,cfg.format);var derivedParams=cfg.kdf.execute(password,cipher.keySize,cipher.ivSize,ciphertext.salt);return cfg.iv=derivedParams.iv,SerializableCipher.decrypt.call(this,cipher,ciphertext,derivedParams.key,cfg)}}))))},67585:function(module2,exports2,__webpack_require__2){var CryptoJS;module2.exports=(CryptoJS=CryptoJS||function(Math2,undefined2){var crypto2;if("undefined"!=typeof window&&window.crypto&&(crypto2=window.crypto),"undefined"!=typeof self&&self.crypto&&(crypto2=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(crypto2=globalThis.crypto),!crypto2&&"undefined"!=typeof window&&window.msCrypto&&(crypto2=window.msCrypto),!crypto2&&"undefined"!=typeof global&&global.crypto&&(crypto2=global.crypto),!crypto2)try{crypto2=__webpack_require__2(6113)}catch{}var cryptoSecureRandomInt=__name(function(){if(crypto2){if("function"==typeof crypto2.getRandomValues)try{return crypto2.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof crypto2.randomBytes)try{return crypto2.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},"cryptoSecureRandomInt"),create=Object.create||function(){function F2(){}return __name(F2,"F"),function(obj){var subtype;return F2.prototype=obj,subtype=new F2,F2.prototype=null,subtype}}(),C={},C_lib=C.lib={},Base=C_lib.Base={extend:function(overrides){var subtype=create(this);return overrides&&subtype.mixIn(overrides),(!subtype.hasOwnProperty("init")||this.init===subtype.init)&&(subtype.init=function(){subtype.$super.init.apply(this,arguments)}),subtype.init.prototype=subtype,subtype.$super=this,subtype},create:function(){var instance=this.extend();return instance.init.apply(instance,arguments),instance},init:function(){},mixIn:function(properties){for(var propertyName in properties)properties.hasOwnProperty(propertyName)&&(this[propertyName]=properties[propertyName]);properties.hasOwnProperty("toString")&&(this.toString=properties.toString)},clone:function(){return this.init.prototype.extend(this)}},WordArray=C_lib.WordArray=Base.extend({init:function(words,sigBytes){words=this.words=words||[],this.sigBytes=sigBytes!=undefined2?sigBytes:4*words.length},toString:function(encoder){return(encoder||Hex).stringify(this)},concat:function(wordArray){var thisWords=this.words,thatWords=wordArray.words,thisSigBytes=this.sigBytes,thatSigBytes=wordArray.sigBytes;if(this.clamp(),thisSigBytes%4)for(var i2=0;i2>>2]>>>24-i2%4*8&255;thisWords[thisSigBytes+i2>>>2]|=thatByte<<24-(thisSigBytes+i2)%4*8}else for(var j=0;j>>2]=thatWords[j>>>2];return this.sigBytes+=thatSigBytes,this},clamp:function(){var words=this.words,sigBytes=this.sigBytes;words[sigBytes>>>2]&=4294967295<<32-sigBytes%4*8,words.length=Math2.ceil(sigBytes/4)},clone:function(){var clone=Base.clone.call(this);return clone.words=this.words.slice(0),clone},random:function(nBytes){for(var words=[],i2=0;i2>>2]>>>24-i2%4*8&255;hexChars.push((bite>>>4).toString(16)),hexChars.push((15&bite).toString(16))}return hexChars.join("")},parse:function(hexStr){for(var hexStrLength=hexStr.length,words=[],i2=0;i2>>3]|=parseInt(hexStr.substr(i2,2),16)<<24-i2%8*4;return new WordArray.init(words,hexStrLength/2)}},Latin1=C_enc.Latin1={stringify:function(wordArray){for(var words=wordArray.words,sigBytes=wordArray.sigBytes,latin1Chars=[],i2=0;i2>>2]>>>24-i2%4*8&255;latin1Chars.push(String.fromCharCode(bite))}return latin1Chars.join("")},parse:function(latin1Str){for(var latin1StrLength=latin1Str.length,words=[],i2=0;i2>>2]|=(255&latin1Str.charCodeAt(i2))<<24-i2%4*8;return new WordArray.init(words,latin1StrLength)}},Utf8=C_enc.Utf8={stringify:function(wordArray){try{return decodeURIComponent(escape(Latin1.stringify(wordArray)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(utf8Str){return Latin1.parse(unescape(encodeURIComponent(utf8Str)))}},BufferedBlockAlgorithm=C_lib.BufferedBlockAlgorithm=Base.extend({reset:function(){this._data=new WordArray.init,this._nDataBytes=0},_append:function(data){"string"==typeof data&&(data=Utf8.parse(data)),this._data.concat(data),this._nDataBytes+=data.sigBytes},_process:function(doFlush){var processedWords,data=this._data,dataWords=data.words,dataSigBytes=data.sigBytes,blockSize=this.blockSize,nBlocksReady=dataSigBytes/(4*blockSize),nWordsReady=(nBlocksReady=doFlush?Math2.ceil(nBlocksReady):Math2.max((0|nBlocksReady)-this._minBufferSize,0))*blockSize,nBytesReady=Math2.min(4*nWordsReady,dataSigBytes);if(nWordsReady){for(var offset=0;offset>>6-i2%4*2;words[nBytes>>>2]|=bitsCombined<<24-nBytes%4*8,nBytes++}return WordArray.create(words,nBytes)}C.enc.Base64={stringify:function(wordArray){var words=wordArray.words,sigBytes=wordArray.sigBytes,map=this._map;wordArray.clamp();for(var base64Chars=[],i2=0;i2>>2]>>>24-i2%4*8&255)<<16|(words[i2+1>>>2]>>>24-(i2+1)%4*8&255)<<8|words[i2+2>>>2]>>>24-(i2+2)%4*8&255,j=0;j<4&&i2+.75*j>>6*(3-j)&63));var paddingChar=map.charAt(64);if(paddingChar)for(;base64Chars.length%4;)base64Chars.push(paddingChar);return base64Chars.join("")},parse:function(base64Str){var base64StrLength=base64Str.length,map=this._map,reverseMap=this._reverseMap;if(!reverseMap){reverseMap=this._reverseMap=[];for(var j=0;j>>6-i2%4*2;words[nBytes>>>2]|=bitsCombined<<24-nBytes%4*8,nBytes++}return WordArray.create(words,nBytes)}C.enc.Base64url={stringify:function(wordArray,urlSafe=!0){var words=wordArray.words,sigBytes=wordArray.sigBytes,map=urlSafe?this._safe_map:this._map;wordArray.clamp();for(var base64Chars=[],i2=0;i2>>2]>>>24-i2%4*8&255)<<16|(words[i2+1>>>2]>>>24-(i2+1)%4*8&255)<<8|words[i2+2>>>2]>>>24-(i2+2)%4*8&255,j=0;j<4&&i2+.75*j>>6*(3-j)&63));var paddingChar=map.charAt(64);if(paddingChar)for(;base64Chars.length%4;)base64Chars.push(paddingChar);return base64Chars.join("")},parse:function(base64Str,urlSafe=!0){var base64StrLength=base64Str.length,map=urlSafe?this._safe_map:this._map,reverseMap=this._reverseMap;if(!reverseMap){reverseMap=this._reverseMap=[];for(var j=0;j>>8&16711935}C_enc.Utf16=C_enc.Utf16BE={stringify:function(wordArray){for(var words=wordArray.words,sigBytes=wordArray.sigBytes,utf16Chars=[],i2=0;i2>>2]>>>16-i2%4*8&65535;utf16Chars.push(String.fromCharCode(codePoint))}return utf16Chars.join("")},parse:function(utf16Str){for(var utf16StrLength=utf16Str.length,words=[],i2=0;i2>>1]|=utf16Str.charCodeAt(i2)<<16-i2%2*16;return WordArray.create(words,2*utf16StrLength)}},C_enc.Utf16LE={stringify:function(wordArray){for(var words=wordArray.words,sigBytes=wordArray.sigBytes,utf16Chars=[],i2=0;i2>>2]>>>16-i2%4*8&65535);utf16Chars.push(String.fromCharCode(codePoint))}return utf16Chars.join("")},parse:function(utf16Str){for(var utf16StrLength=utf16Str.length,words=[],i2=0;i2>>1]|=swapEndian(utf16Str.charCodeAt(i2)<<16-i2%2*16);return WordArray.create(words,2*utf16StrLength)}},__name(swapEndian,"swapEndian")}(),CryptoJS.enc.Utf16)},37865:function(module2,exports2,__webpack_require__2){var CryptoJS,C,C_lib,Base,WordArray,C_algo,MD5,EvpKDF;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(75162),__webpack_require__2(43764),C_lib=(C=CryptoJS).lib,Base=C_lib.Base,WordArray=C_lib.WordArray,C_algo=C.algo,MD5=C_algo.MD5,EvpKDF=C_algo.EvpKDF=Base.extend({cfg:Base.extend({keySize:4,hasher:MD5,iterations:1}),init:function(cfg){this.cfg=this.cfg.extend(cfg)},compute:function(password,salt){for(var block,cfg=this.cfg,hasher=cfg.hasher.create(),derivedKey=WordArray.create(),derivedKeyWords=derivedKey.words,keySize=cfg.keySize,iterations=cfg.iterations;derivedKeyWords.lengthhasherBlockSizeBytes&&(key=hasher.finalize(key)),key.clamp();for(var oKey=this._oKey=key.clone(),iKey=this._iKey=key.clone(),oKeyWords=oKey.words,iKeyWords=iKey.words,i2=0;i2>>2]|=typedArray[i2]<<24-i2%4*8;superInit.call(this,words,typedArrayByteLength)}else superInit.apply(this,arguments)};subInit.prototype=WordArray}}(),CryptoJS.lib.WordArray)},9493:function(module2,exports2,__webpack_require__2){var CryptoJS;module2.exports=(CryptoJS=__webpack_require__2(67585),function(Math2){var C=CryptoJS,C_lib=C.lib,WordArray=C_lib.WordArray,Hasher=C_lib.Hasher,C_algo=C.algo,T=[];!function(){for(var i2=0;i2<64;i2++)T[i2]=4294967296*Math2.abs(Math2.sin(i2+1))|0}();var MD5=C_algo.MD5=Hasher.extend({_doReset:function(){this._hash=new WordArray.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(M,offset){for(var i2=0;i2<16;i2++){var offset_i=offset+i2,M_offset_i=M[offset_i];M[offset_i]=16711935&(M_offset_i<<8|M_offset_i>>>24)|4278255360&(M_offset_i<<24|M_offset_i>>>8)}var H=this._hash.words,M_offset_0=M[offset+0],M_offset_1=M[offset+1],M_offset_2=M[offset+2],M_offset_3=M[offset+3],M_offset_4=M[offset+4],M_offset_5=M[offset+5],M_offset_6=M[offset+6],M_offset_7=M[offset+7],M_offset_8=M[offset+8],M_offset_9=M[offset+9],M_offset_10=M[offset+10],M_offset_11=M[offset+11],M_offset_12=M[offset+12],M_offset_13=M[offset+13],M_offset_14=M[offset+14],M_offset_15=M[offset+15],a=H[0],b2=H[1],c=H[2],d=H[3];a=FF(a,b2,c,d,M_offset_0,7,T[0]),d=FF(d,a,b2,c,M_offset_1,12,T[1]),c=FF(c,d,a,b2,M_offset_2,17,T[2]),b2=FF(b2,c,d,a,M_offset_3,22,T[3]),a=FF(a,b2,c,d,M_offset_4,7,T[4]),d=FF(d,a,b2,c,M_offset_5,12,T[5]),c=FF(c,d,a,b2,M_offset_6,17,T[6]),b2=FF(b2,c,d,a,M_offset_7,22,T[7]),a=FF(a,b2,c,d,M_offset_8,7,T[8]),d=FF(d,a,b2,c,M_offset_9,12,T[9]),c=FF(c,d,a,b2,M_offset_10,17,T[10]),b2=FF(b2,c,d,a,M_offset_11,22,T[11]),a=FF(a,b2,c,d,M_offset_12,7,T[12]),d=FF(d,a,b2,c,M_offset_13,12,T[13]),c=FF(c,d,a,b2,M_offset_14,17,T[14]),a=GG(a,b2=FF(b2,c,d,a,M_offset_15,22,T[15]),c,d,M_offset_1,5,T[16]),d=GG(d,a,b2,c,M_offset_6,9,T[17]),c=GG(c,d,a,b2,M_offset_11,14,T[18]),b2=GG(b2,c,d,a,M_offset_0,20,T[19]),a=GG(a,b2,c,d,M_offset_5,5,T[20]),d=GG(d,a,b2,c,M_offset_10,9,T[21]),c=GG(c,d,a,b2,M_offset_15,14,T[22]),b2=GG(b2,c,d,a,M_offset_4,20,T[23]),a=GG(a,b2,c,d,M_offset_9,5,T[24]),d=GG(d,a,b2,c,M_offset_14,9,T[25]),c=GG(c,d,a,b2,M_offset_3,14,T[26]),b2=GG(b2,c,d,a,M_offset_8,20,T[27]),a=GG(a,b2,c,d,M_offset_13,5,T[28]),d=GG(d,a,b2,c,M_offset_2,9,T[29]),c=GG(c,d,a,b2,M_offset_7,14,T[30]),a=HH(a,b2=GG(b2,c,d,a,M_offset_12,20,T[31]),c,d,M_offset_5,4,T[32]),d=HH(d,a,b2,c,M_offset_8,11,T[33]),c=HH(c,d,a,b2,M_offset_11,16,T[34]),b2=HH(b2,c,d,a,M_offset_14,23,T[35]),a=HH(a,b2,c,d,M_offset_1,4,T[36]),d=HH(d,a,b2,c,M_offset_4,11,T[37]),c=HH(c,d,a,b2,M_offset_7,16,T[38]),b2=HH(b2,c,d,a,M_offset_10,23,T[39]),a=HH(a,b2,c,d,M_offset_13,4,T[40]),d=HH(d,a,b2,c,M_offset_0,11,T[41]),c=HH(c,d,a,b2,M_offset_3,16,T[42]),b2=HH(b2,c,d,a,M_offset_6,23,T[43]),a=HH(a,b2,c,d,M_offset_9,4,T[44]),d=HH(d,a,b2,c,M_offset_12,11,T[45]),c=HH(c,d,a,b2,M_offset_15,16,T[46]),a=II(a,b2=HH(b2,c,d,a,M_offset_2,23,T[47]),c,d,M_offset_0,6,T[48]),d=II(d,a,b2,c,M_offset_7,10,T[49]),c=II(c,d,a,b2,M_offset_14,15,T[50]),b2=II(b2,c,d,a,M_offset_5,21,T[51]),a=II(a,b2,c,d,M_offset_12,6,T[52]),d=II(d,a,b2,c,M_offset_3,10,T[53]),c=II(c,d,a,b2,M_offset_10,15,T[54]),b2=II(b2,c,d,a,M_offset_1,21,T[55]),a=II(a,b2,c,d,M_offset_8,6,T[56]),d=II(d,a,b2,c,M_offset_15,10,T[57]),c=II(c,d,a,b2,M_offset_6,15,T[58]),b2=II(b2,c,d,a,M_offset_13,21,T[59]),a=II(a,b2,c,d,M_offset_4,6,T[60]),d=II(d,a,b2,c,M_offset_11,10,T[61]),c=II(c,d,a,b2,M_offset_2,15,T[62]),b2=II(b2,c,d,a,M_offset_9,21,T[63]),H[0]=H[0]+a|0,H[1]=H[1]+b2|0,H[2]=H[2]+c|0,H[3]=H[3]+d|0},_doFinalize:function(){var data=this._data,dataWords=data.words,nBitsTotal=8*this._nDataBytes,nBitsLeft=8*data.sigBytes;dataWords[nBitsLeft>>>5]|=128<<24-nBitsLeft%32;var nBitsTotalH=Math2.floor(nBitsTotal/4294967296),nBitsTotalL=nBitsTotal;dataWords[15+(nBitsLeft+64>>>9<<4)]=16711935&(nBitsTotalH<<8|nBitsTotalH>>>24)|4278255360&(nBitsTotalH<<24|nBitsTotalH>>>8),dataWords[14+(nBitsLeft+64>>>9<<4)]=16711935&(nBitsTotalL<<8|nBitsTotalL>>>24)|4278255360&(nBitsTotalL<<24|nBitsTotalL>>>8),data.sigBytes=4*(dataWords.length+1),this._process();for(var hash=this._hash,H=hash.words,i2=0;i2<4;i2++){var H_i=H[i2];H[i2]=16711935&(H_i<<8|H_i>>>24)|4278255360&(H_i<<24|H_i>>>8)}return hash},clone:function(){var clone=Hasher.clone.call(this);return clone._hash=this._hash.clone(),clone}});function FF(a,b2,c,d,x,s,t){var n=a+(b2&c|~b2&d)+x+t;return(n<>>32-s)+b2}function GG(a,b2,c,d,x,s,t){var n=a+(b2&d|c&~d)+x+t;return(n<>>32-s)+b2}function HH(a,b2,c,d,x,s,t){var n=a+(b2^c^d)+x+t;return(n<>>32-s)+b2}function II(a,b2,c,d,x,s,t){var n=a+(c^(b2|~d))+x+t;return(n<>>32-s)+b2}__name(FF,"FF"),__name(GG,"GG"),__name(HH,"HH"),__name(II,"II"),C.MD5=Hasher._createHelper(MD5),C.HmacMD5=Hasher._createHmacHelper(MD5)}(Math),CryptoJS.MD5)},4424:function(module2,exports2,__webpack_require__2){var CryptoJS;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(53057),CryptoJS.mode.CFB=function(){var CFB=CryptoJS.lib.BlockCipherMode.extend();function generateKeystreamAndEncrypt(words,offset,blockSize,cipher){var keystream,iv=this._iv;iv?(keystream=iv.slice(0),this._iv=void 0):keystream=this._prevBlock,cipher.encryptBlock(keystream,0);for(var i2=0;i2>24&255)){var b1=word>>16&255,b2=word>>8&255,b3=255&word;255===b1?(b1=0,255===b2?(b2=0,255===b3?b3=0:++b3):++b2):++b1,word=0,word+=b1<<16,word+=b2<<8,word+=b3}else word+=16777216;return word}function incCounter(counter){return 0===(counter[0]=incWord(counter[0]))&&(counter[1]=incWord(counter[1])),counter}__name(incWord,"incWord"),__name(incCounter,"incCounter");var Encryptor=CTRGladman.Encryptor=CTRGladman.extend({processBlock:function(words,offset){var cipher=this._cipher,blockSize=cipher.blockSize,iv=this._iv,counter=this._counter;iv&&(counter=this._counter=iv.slice(0),this._iv=void 0),incCounter(counter);var keystream=counter.slice(0);cipher.encryptBlock(keystream,0);for(var i2=0;i2>>2]|=nPaddingBytes<<24-lastBytePos%4*8,data.sigBytes+=nPaddingBytes},unpad:function(data){var nPaddingBytes=255&data.words[data.sigBytes-1>>>2];data.sigBytes-=nPaddingBytes}},CryptoJS.pad.Ansix923)},64630:function(module2,exports2,__webpack_require__2){var CryptoJS;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(53057),CryptoJS.pad.Iso10126={pad:function(data,blockSize){var blockSizeBytes=4*blockSize,nPaddingBytes=blockSizeBytes-data.sigBytes%blockSizeBytes;data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes-1)).concat(CryptoJS.lib.WordArray.create([nPaddingBytes<<24],1))},unpad:function(data){var nPaddingBytes=255&data.words[data.sigBytes-1>>>2];data.sigBytes-=nPaddingBytes}},CryptoJS.pad.Iso10126)},187:function(module2,exports2,__webpack_require__2){var CryptoJS;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(53057),CryptoJS.pad.Iso97971={pad:function(data,blockSize){data.concat(CryptoJS.lib.WordArray.create([2147483648],1)),CryptoJS.pad.ZeroPadding.pad(data,blockSize)},unpad:function(data){CryptoJS.pad.ZeroPadding.unpad(data),data.sigBytes--}},CryptoJS.pad.Iso97971)},63237:function(module2,exports2,__webpack_require__2){var CryptoJS;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(53057),CryptoJS.pad.NoPadding={pad:function(){},unpad:function(){}},CryptoJS.pad.NoPadding)},81691:function(module2,exports2,__webpack_require__2){var CryptoJS;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(53057),CryptoJS.pad.ZeroPadding={pad:function(data,blockSize){var blockSizeBytes=4*blockSize;data.clamp(),data.sigBytes+=blockSizeBytes-(data.sigBytes%blockSizeBytes||blockSizeBytes)},unpad:function(data){var dataWords=data.words,i2=data.sigBytes-1;for(i2=data.sigBytes-1;i2>=0;i2--)if(dataWords[i2>>>2]>>>24-i2%4*8&255){data.sigBytes=i2+1;break}}},CryptoJS.pad.ZeroPadding)},98812:function(module2,exports2,__webpack_require__2){var CryptoJS,C,C_lib,Base,WordArray,C_algo,SHA1,HMAC,PBKDF2;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(75162),__webpack_require__2(43764),C_lib=(C=CryptoJS).lib,Base=C_lib.Base,WordArray=C_lib.WordArray,C_algo=C.algo,SHA1=C_algo.SHA1,HMAC=C_algo.HMAC,PBKDF2=C_algo.PBKDF2=Base.extend({cfg:Base.extend({keySize:4,hasher:SHA1,iterations:1}),init:function(cfg){this.cfg=this.cfg.extend(cfg)},compute:function(password,salt){for(var cfg=this.cfg,hmac=HMAC.create(cfg.hasher,password),derivedKey=WordArray.create(),blockIndex=WordArray.create([1]),derivedKeyWords=derivedKey.words,blockIndexWords=blockIndex.words,keySize=cfg.keySize,iterations=cfg.iterations;derivedKeyWords.length>>16,K[1],K[0]<<16|K[3]>>>16,K[2],K[1]<<16|K[0]>>>16,K[3],K[2]<<16|K[1]>>>16],C2=this._C=[K[2]<<16|K[2]>>>16,4294901760&K[0]|65535&K[1],K[3]<<16|K[3]>>>16,4294901760&K[1]|65535&K[2],K[0]<<16|K[0]>>>16,4294901760&K[2]|65535&K[3],K[1]<<16|K[1]>>>16,4294901760&K[3]|65535&K[0]];this._b=0;for(var i2=0;i2<4;i2++)nextState.call(this);for(i2=0;i2<8;i2++)C2[i2]^=X[i2+4&7];if(iv){var IV=iv.words,IV_0=IV[0],IV_1=IV[1],i0=16711935&(IV_0<<8|IV_0>>>24)|4278255360&(IV_0<<24|IV_0>>>8),i22=16711935&(IV_1<<8|IV_1>>>24)|4278255360&(IV_1<<24|IV_1>>>8),i1=i0>>>16|4294901760&i22,i3=i22<<16|65535&i0;for(C2[0]^=i0,C2[1]^=i1,C2[2]^=i22,C2[3]^=i3,C2[4]^=i0,C2[5]^=i1,C2[6]^=i22,C2[7]^=i3,i2=0;i2<4;i2++)nextState.call(this)}},_doProcessBlock:function(M,offset){var X=this._X;nextState.call(this),S[0]=X[0]^X[5]>>>16^X[3]<<16,S[1]=X[2]^X[7]>>>16^X[5]<<16,S[2]=X[4]^X[1]>>>16^X[7]<<16,S[3]=X[6]^X[3]>>>16^X[1]<<16;for(var i2=0;i2<4;i2++)S[i2]=16711935&(S[i2]<<8|S[i2]>>>24)|4278255360&(S[i2]<<24|S[i2]>>>8),M[offset+i2]^=S[i2]},blockSize:4,ivSize:2});function nextState(){for(var X=this._X,C2=this._C,i2=0;i2<8;i2++)C_[i2]=C2[i2];for(C2[0]=C2[0]+1295307597+this._b|0,C2[1]=C2[1]+3545052371+(C2[0]>>>0>>0?1:0)|0,C2[2]=C2[2]+886263092+(C2[1]>>>0>>0?1:0)|0,C2[3]=C2[3]+1295307597+(C2[2]>>>0>>0?1:0)|0,C2[4]=C2[4]+3545052371+(C2[3]>>>0>>0?1:0)|0,C2[5]=C2[5]+886263092+(C2[4]>>>0>>0?1:0)|0,C2[6]=C2[6]+1295307597+(C2[5]>>>0>>0?1:0)|0,C2[7]=C2[7]+3545052371+(C2[6]>>>0>>0?1:0)|0,this._b=C2[7]>>>0>>0?1:0,i2=0;i2<8;i2++){var gx=X[i2]+C2[i2],ga=65535&gx,gb=gx>>>16,gh=((ga*ga>>>17)+ga*gb>>>15)+gb*gb,gl=((4294901760&gx)*gx|0)+((65535&gx)*gx|0);G[i2]=gh^gl}X[0]=G[0]+(G[7]<<16|G[7]>>>16)+(G[6]<<16|G[6]>>>16)|0,X[1]=G[1]+(G[0]<<8|G[0]>>>24)+G[7]|0,X[2]=G[2]+(G[1]<<16|G[1]>>>16)+(G[0]<<16|G[0]>>>16)|0,X[3]=G[3]+(G[2]<<8|G[2]>>>24)+G[1]|0,X[4]=G[4]+(G[3]<<16|G[3]>>>16)+(G[2]<<16|G[2]>>>16)|0,X[5]=G[5]+(G[4]<<8|G[4]>>>24)+G[3]|0,X[6]=G[6]+(G[5]<<16|G[5]>>>16)+(G[4]<<16|G[4]>>>16)|0,X[7]=G[7]+(G[6]<<8|G[6]>>>24)+G[5]|0}__name(nextState,"nextState"),C.RabbitLegacy=StreamCipher._createHelper(RabbitLegacy)}(),CryptoJS.RabbitLegacy)},28182:function(module2,exports2,__webpack_require__2){var CryptoJS;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(58319),__webpack_require__2(9493),__webpack_require__2(37865),__webpack_require__2(53057),function(){var C=CryptoJS,StreamCipher=C.lib.StreamCipher,C_algo=C.algo,S=[],C_=[],G=[],Rabbit=C_algo.Rabbit=StreamCipher.extend({_doReset:function(){for(var K=this._key.words,iv=this.cfg.iv,i2=0;i2<4;i2++)K[i2]=16711935&(K[i2]<<8|K[i2]>>>24)|4278255360&(K[i2]<<24|K[i2]>>>8);var X=this._X=[K[0],K[3]<<16|K[2]>>>16,K[1],K[0]<<16|K[3]>>>16,K[2],K[1]<<16|K[0]>>>16,K[3],K[2]<<16|K[1]>>>16],C2=this._C=[K[2]<<16|K[2]>>>16,4294901760&K[0]|65535&K[1],K[3]<<16|K[3]>>>16,4294901760&K[1]|65535&K[2],K[0]<<16|K[0]>>>16,4294901760&K[2]|65535&K[3],K[1]<<16|K[1]>>>16,4294901760&K[3]|65535&K[0]];for(this._b=0,i2=0;i2<4;i2++)nextState.call(this);for(i2=0;i2<8;i2++)C2[i2]^=X[i2+4&7];if(iv){var IV=iv.words,IV_0=IV[0],IV_1=IV[1],i0=16711935&(IV_0<<8|IV_0>>>24)|4278255360&(IV_0<<24|IV_0>>>8),i22=16711935&(IV_1<<8|IV_1>>>24)|4278255360&(IV_1<<24|IV_1>>>8),i1=i0>>>16|4294901760&i22,i3=i22<<16|65535&i0;for(C2[0]^=i0,C2[1]^=i1,C2[2]^=i22,C2[3]^=i3,C2[4]^=i0,C2[5]^=i1,C2[6]^=i22,C2[7]^=i3,i2=0;i2<4;i2++)nextState.call(this)}},_doProcessBlock:function(M,offset){var X=this._X;nextState.call(this),S[0]=X[0]^X[5]>>>16^X[3]<<16,S[1]=X[2]^X[7]>>>16^X[5]<<16,S[2]=X[4]^X[1]>>>16^X[7]<<16,S[3]=X[6]^X[3]>>>16^X[1]<<16;for(var i2=0;i2<4;i2++)S[i2]=16711935&(S[i2]<<8|S[i2]>>>24)|4278255360&(S[i2]<<24|S[i2]>>>8),M[offset+i2]^=S[i2]},blockSize:4,ivSize:2});function nextState(){for(var X=this._X,C2=this._C,i2=0;i2<8;i2++)C_[i2]=C2[i2];for(C2[0]=C2[0]+1295307597+this._b|0,C2[1]=C2[1]+3545052371+(C2[0]>>>0>>0?1:0)|0,C2[2]=C2[2]+886263092+(C2[1]>>>0>>0?1:0)|0,C2[3]=C2[3]+1295307597+(C2[2]>>>0>>0?1:0)|0,C2[4]=C2[4]+3545052371+(C2[3]>>>0>>0?1:0)|0,C2[5]=C2[5]+886263092+(C2[4]>>>0>>0?1:0)|0,C2[6]=C2[6]+1295307597+(C2[5]>>>0>>0?1:0)|0,C2[7]=C2[7]+3545052371+(C2[6]>>>0>>0?1:0)|0,this._b=C2[7]>>>0>>0?1:0,i2=0;i2<8;i2++){var gx=X[i2]+C2[i2],ga=65535&gx,gb=gx>>>16,gh=((ga*ga>>>17)+ga*gb>>>15)+gb*gb,gl=((4294901760&gx)*gx|0)+((65535&gx)*gx|0);G[i2]=gh^gl}X[0]=G[0]+(G[7]<<16|G[7]>>>16)+(G[6]<<16|G[6]>>>16)|0,X[1]=G[1]+(G[0]<<8|G[0]>>>24)+G[7]|0,X[2]=G[2]+(G[1]<<16|G[1]>>>16)+(G[0]<<16|G[0]>>>16)|0,X[3]=G[3]+(G[2]<<8|G[2]>>>24)+G[1]|0,X[4]=G[4]+(G[3]<<16|G[3]>>>16)+(G[2]<<16|G[2]>>>16)|0,X[5]=G[5]+(G[4]<<8|G[4]>>>24)+G[3]|0,X[6]=G[6]+(G[5]<<16|G[5]>>>16)+(G[4]<<16|G[4]>>>16)|0,X[7]=G[7]+(G[6]<<8|G[6]>>>24)+G[5]|0}__name(nextState,"nextState"),C.Rabbit=StreamCipher._createHelper(Rabbit)}(),CryptoJS.Rabbit)},10486:function(module2,exports2,__webpack_require__2){var CryptoJS;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(58319),__webpack_require__2(9493),__webpack_require__2(37865),__webpack_require__2(53057),function(){var C=CryptoJS,StreamCipher=C.lib.StreamCipher,C_algo=C.algo,RC4=C_algo.RC4=StreamCipher.extend({_doReset:function(){for(var key=this._key,keyWords=key.words,keySigBytes=key.sigBytes,S=this._S=[],i2=0;i2<256;i2++)S[i2]=i2;i2=0;for(var j=0;i2<256;i2++){var keyByteIndex=i2%keySigBytes,keyByte=keyWords[keyByteIndex>>>2]>>>24-keyByteIndex%4*8&255;j=(j+S[i2]+keyByte)%256;var t=S[i2];S[i2]=S[j],S[j]=t}this._i=this._j=0},_doProcessBlock:function(M,offset){M[offset]^=generateKeystreamWord.call(this)},keySize:8,ivSize:0});function generateKeystreamWord(){for(var S=this._S,i2=this._i,j=this._j,keystreamWord=0,n=0;n<4;n++){j=(j+S[i2=(i2+1)%256])%256;var t=S[i2];S[i2]=S[j],S[j]=t,keystreamWord|=S[(S[i2]+S[j])%256]<<24-8*n}return this._i=i2,this._j=j,keystreamWord}__name(generateKeystreamWord,"generateKeystreamWord"),C.RC4=StreamCipher._createHelper(RC4);var RC4Drop=C_algo.RC4Drop=RC4.extend({cfg:RC4.cfg.extend({drop:192}),_doReset:function(){RC4._doReset.call(this);for(var i2=this.cfg.drop;i2>0;i2--)generateKeystreamWord.call(this)}});C.RC4Drop=StreamCipher._createHelper(RC4Drop)}(),CryptoJS.RC4)},34973:function(module2,exports2,__webpack_require__2){var CryptoJS;module2.exports=(CryptoJS=__webpack_require__2(67585),function(Math2){var C=CryptoJS,C_lib=C.lib,WordArray=C_lib.WordArray,Hasher=C_lib.Hasher,C_algo=C.algo,_zl=WordArray.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),_zr=WordArray.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),_sl=WordArray.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),_sr=WordArray.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),_hl=WordArray.create([0,1518500249,1859775393,2400959708,2840853838]),_hr=WordArray.create([1352829926,1548603684,1836072691,2053994217,0]),RIPEMD160=C_algo.RIPEMD160=Hasher.extend({_doReset:function(){this._hash=WordArray.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(M,offset){for(var i2=0;i2<16;i2++){var offset_i=offset+i2,M_offset_i=M[offset_i];M[offset_i]=16711935&(M_offset_i<<8|M_offset_i>>>24)|4278255360&(M_offset_i<<24|M_offset_i>>>8)}var al,bl,cl,dl,el,ar,br,cr,dr,er,t,H=this._hash.words,hl=_hl.words,hr=_hr.words,zl=_zl.words,zr=_zr.words,sl=_sl.words,sr=_sr.words;for(ar=al=H[0],br=bl=H[1],cr=cl=H[2],dr=dl=H[3],er=el=H[4],i2=0;i2<80;i2+=1)t=al+M[offset+zl[i2]]|0,t+=i2<16?f1(bl,cl,dl)+hl[0]:i2<32?f2(bl,cl,dl)+hl[1]:i2<48?f3(bl,cl,dl)+hl[2]:i2<64?f4(bl,cl,dl)+hl[3]:f5(bl,cl,dl)+hl[4],t=(t=rotl(t|=0,sl[i2]))+el|0,al=el,el=dl,dl=rotl(cl,10),cl=bl,bl=t,t=ar+M[offset+zr[i2]]|0,t+=i2<16?f5(br,cr,dr)+hr[0]:i2<32?f4(br,cr,dr)+hr[1]:i2<48?f3(br,cr,dr)+hr[2]:i2<64?f2(br,cr,dr)+hr[3]:f1(br,cr,dr)+hr[4],t=(t=rotl(t|=0,sr[i2]))+er|0,ar=er,er=dr,dr=rotl(cr,10),cr=br,br=t;t=H[1]+cl+dr|0,H[1]=H[2]+dl+er|0,H[2]=H[3]+el+ar|0,H[3]=H[4]+al+br|0,H[4]=H[0]+bl+cr|0,H[0]=t},_doFinalize:function(){var data=this._data,dataWords=data.words,nBitsTotal=8*this._nDataBytes,nBitsLeft=8*data.sigBytes;dataWords[nBitsLeft>>>5]|=128<<24-nBitsLeft%32,dataWords[14+(nBitsLeft+64>>>9<<4)]=16711935&(nBitsTotal<<8|nBitsTotal>>>24)|4278255360&(nBitsTotal<<24|nBitsTotal>>>8),data.sigBytes=4*(dataWords.length+1),this._process();for(var hash=this._hash,H=hash.words,i2=0;i2<5;i2++){var H_i=H[i2];H[i2]=16711935&(H_i<<8|H_i>>>24)|4278255360&(H_i<<24|H_i>>>8)}return hash},clone:function(){var clone=Hasher.clone.call(this);return clone._hash=this._hash.clone(),clone}});function f1(x,y,z){return x^y^z}function f2(x,y,z){return x&y|~x&z}function f3(x,y,z){return(x|~y)^z}function f4(x,y,z){return x&z|y&~z}function f5(x,y,z){return x^(y|~z)}function rotl(x,n){return x<>>32-n}__name(f1,"f1"),__name(f2,"f2"),__name(f3,"f3"),__name(f4,"f4"),__name(f5,"f5"),__name(rotl,"rotl"),C.RIPEMD160=Hasher._createHelper(RIPEMD160),C.HmacRIPEMD160=Hasher._createHmacHelper(RIPEMD160)}(Math),CryptoJS.RIPEMD160)},75162:function(module2,exports2,__webpack_require__2){var CryptoJS,C,C_lib,WordArray,Hasher,C_algo,W,SHA1;module2.exports=(CryptoJS=__webpack_require__2(67585),C_lib=(C=CryptoJS).lib,WordArray=C_lib.WordArray,Hasher=C_lib.Hasher,C_algo=C.algo,W=[],SHA1=C_algo.SHA1=Hasher.extend({_doReset:function(){this._hash=new WordArray.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(M,offset){for(var H=this._hash.words,a=H[0],b2=H[1],c=H[2],d=H[3],e=H[4],i2=0;i2<80;i2++){if(i2<16)W[i2]=0|M[offset+i2];else{var n=W[i2-3]^W[i2-8]^W[i2-14]^W[i2-16];W[i2]=n<<1|n>>>31}var t=(a<<5|a>>>27)+e+W[i2];t+=i2<20?1518500249+(b2&c|~b2&d):i2<40?1859775393+(b2^c^d):i2<60?(b2&c|b2&d|c&d)-1894007588:(b2^c^d)-899497514,e=d,d=c,c=b2<<30|b2>>>2,b2=a,a=t}H[0]=H[0]+a|0,H[1]=H[1]+b2|0,H[2]=H[2]+c|0,H[3]=H[3]+d|0,H[4]=H[4]+e|0},_doFinalize:function(){var data=this._data,dataWords=data.words,nBitsTotal=8*this._nDataBytes,nBitsLeft=8*data.sigBytes;return dataWords[nBitsLeft>>>5]|=128<<24-nBitsLeft%32,dataWords[14+(nBitsLeft+64>>>9<<4)]=Math.floor(nBitsTotal/4294967296),dataWords[15+(nBitsLeft+64>>>9<<4)]=nBitsTotal,data.sigBytes=4*dataWords.length,this._process(),this._hash},clone:function(){var clone=Hasher.clone.call(this);return clone._hash=this._hash.clone(),clone}}),C.SHA1=Hasher._createHelper(SHA1),C.HmacSHA1=Hasher._createHmacHelper(SHA1),CryptoJS.SHA1)},68769:function(module2,exports2,__webpack_require__2){var CryptoJS,C,WordArray,C_algo,SHA256,SHA224;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(31817),WordArray=(C=CryptoJS).lib.WordArray,C_algo=C.algo,SHA256=C_algo.SHA256,SHA224=C_algo.SHA224=SHA256.extend({_doReset:function(){this._hash=new WordArray.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var hash=SHA256._doFinalize.call(this);return hash.sigBytes-=4,hash}}),C.SHA224=SHA256._createHelper(SHA224),C.HmacSHA224=SHA256._createHmacHelper(SHA224),CryptoJS.SHA224)},31817:function(module2,exports2,__webpack_require__2){var CryptoJS;module2.exports=(CryptoJS=__webpack_require__2(67585),function(Math2){var C=CryptoJS,C_lib=C.lib,WordArray=C_lib.WordArray,Hasher=C_lib.Hasher,C_algo=C.algo,H=[],K=[];!function(){function isPrime(n2){for(var sqrtN=Math2.sqrt(n2),factor=2;factor<=sqrtN;factor++)if(!(n2%factor))return!1;return!0}function getFractionalBits(n2){return 4294967296*(n2-(0|n2))|0}__name(isPrime,"isPrime"),__name(getFractionalBits,"getFractionalBits");for(var n=2,nPrime=0;nPrime<64;)isPrime(n)&&(nPrime<8&&(H[nPrime]=getFractionalBits(Math2.pow(n,.5))),K[nPrime]=getFractionalBits(Math2.pow(n,.3333333333333333)),nPrime++),n++}();var W=[],SHA256=C_algo.SHA256=Hasher.extend({_doReset:function(){this._hash=new WordArray.init(H.slice(0))},_doProcessBlock:function(M,offset){for(var H2=this._hash.words,a=H2[0],b2=H2[1],c=H2[2],d=H2[3],e=H2[4],f2=H2[5],g=H2[6],h=H2[7],i2=0;i2<64;i2++){if(i2<16)W[i2]=0|M[offset+i2];else{var gamma0x=W[i2-15],gamma0=(gamma0x<<25|gamma0x>>>7)^(gamma0x<<14|gamma0x>>>18)^gamma0x>>>3,gamma1x=W[i2-2],gamma1=(gamma1x<<15|gamma1x>>>17)^(gamma1x<<13|gamma1x>>>19)^gamma1x>>>10;W[i2]=gamma0+W[i2-7]+gamma1+W[i2-16]}var maj=a&b2^a&c^b2&c,sigma0=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),t1=h+((e<<26|e>>>6)^(e<<21|e>>>11)^(e<<7|e>>>25))+(e&f2^~e&g)+K[i2]+W[i2];h=g,g=f2,f2=e,e=d+t1|0,d=c,c=b2,b2=a,a=t1+(sigma0+maj)|0}H2[0]=H2[0]+a|0,H2[1]=H2[1]+b2|0,H2[2]=H2[2]+c|0,H2[3]=H2[3]+d|0,H2[4]=H2[4]+e|0,H2[5]=H2[5]+f2|0,H2[6]=H2[6]+g|0,H2[7]=H2[7]+h|0},_doFinalize:function(){var data=this._data,dataWords=data.words,nBitsTotal=8*this._nDataBytes,nBitsLeft=8*data.sigBytes;return dataWords[nBitsLeft>>>5]|=128<<24-nBitsLeft%32,dataWords[14+(nBitsLeft+64>>>9<<4)]=Math2.floor(nBitsTotal/4294967296),dataWords[15+(nBitsLeft+64>>>9<<4)]=nBitsTotal,data.sigBytes=4*dataWords.length,this._process(),this._hash},clone:function(){var clone=Hasher.clone.call(this);return clone._hash=this._hash.clone(),clone}});C.SHA256=Hasher._createHelper(SHA256),C.HmacSHA256=Hasher._createHmacHelper(SHA256)}(Math),CryptoJS.SHA256)},21971:function(module2,exports2,__webpack_require__2){var CryptoJS;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(70401),function(Math2){var C=CryptoJS,C_lib=C.lib,WordArray=C_lib.WordArray,Hasher=C_lib.Hasher,X64Word=C.x64.Word,C_algo=C.algo,RHO_OFFSETS=[],PI_INDEXES=[],ROUND_CONSTANTS=[];!function(){for(var x=1,y=0,t=0;t<24;t++){RHO_OFFSETS[x+5*y]=(t+1)*(t+2)/2%64;var newY=(2*x+3*y)%5;x=y%5,y=newY}for(x=0;x<5;x++)for(y=0;y<5;y++)PI_INDEXES[x+5*y]=y+(2*x+3*y)%5*5;for(var LFSR=1,i2=0;i2<24;i2++){for(var roundConstantMsw=0,roundConstantLsw=0,j=0;j<7;j++){if(1&LFSR){var bitPosition=(1<>>24)|4278255360&(M2i<<24|M2i>>>8),M2i1=16711935&(M2i1<<8|M2i1>>>24)|4278255360&(M2i1<<24|M2i1>>>8),(lane=state[i2]).high^=M2i1,lane.low^=M2i}for(var round=0;round<24;round++){for(var x=0;x<5;x++){for(var tMsw=0,tLsw=0,y=0;y<5;y++)tMsw^=(lane=state[x+5*y]).high,tLsw^=lane.low;var Tx=T[x];Tx.high=tMsw,Tx.low=tLsw}for(x=0;x<5;x++){var Tx4=T[(x+4)%5],Tx1=T[(x+1)%5],Tx1Msw=Tx1.high,Tx1Lsw=Tx1.low;for(tMsw=Tx4.high^(Tx1Msw<<1|Tx1Lsw>>>31),tLsw=Tx4.low^(Tx1Lsw<<1|Tx1Msw>>>31),y=0;y<5;y++)(lane=state[x+5*y]).high^=tMsw,lane.low^=tLsw}for(var laneIndex=1;laneIndex<25;laneIndex++){var laneMsw=(lane=state[laneIndex]).high,laneLsw=lane.low,rhoOffset=RHO_OFFSETS[laneIndex];rhoOffset<32?(tMsw=laneMsw<>>32-rhoOffset,tLsw=laneLsw<>>32-rhoOffset):(tMsw=laneLsw<>>64-rhoOffset,tLsw=laneMsw<>>64-rhoOffset);var TPiLane=T[PI_INDEXES[laneIndex]];TPiLane.high=tMsw,TPiLane.low=tLsw}var T0=T[0],state0=state[0];for(T0.high=state0.high,T0.low=state0.low,x=0;x<5;x++)for(y=0;y<5;y++){var lane=state[laneIndex=x+5*y],TLane=T[laneIndex],Tx1Lane=T[(x+1)%5+5*y],Tx2Lane=T[(x+2)%5+5*y];lane.high=TLane.high^~Tx1Lane.high&Tx2Lane.high,lane.low=TLane.low^~Tx1Lane.low&Tx2Lane.low}lane=state[0];var roundConstant=ROUND_CONSTANTS[round];lane.high^=roundConstant.high,lane.low^=roundConstant.low}},_doFinalize:function(){var data=this._data,dataWords=data.words,nBitsLeft=(this._nDataBytes,8*data.sigBytes),blockSizeBits=32*this.blockSize;dataWords[nBitsLeft>>>5]|=1<<24-nBitsLeft%32,dataWords[(Math2.ceil((nBitsLeft+1)/blockSizeBits)*blockSizeBits>>>5)-1]|=128,data.sigBytes=4*dataWords.length,this._process();for(var state=this._state,outputLengthBytes=this.cfg.outputLength/8,outputLengthLanes=outputLengthBytes/8,hashWords=[],i2=0;i2>>24)|4278255360&(laneMsw<<24|laneMsw>>>8),laneLsw=16711935&(laneLsw<<8|laneLsw>>>24)|4278255360&(laneLsw<<24|laneLsw>>>8),hashWords.push(laneLsw),hashWords.push(laneMsw)}return new WordArray.init(hashWords,outputLengthBytes)},clone:function(){for(var clone=Hasher.clone.call(this),state=clone._state=this._state.slice(0),i2=0;i2<25;i2++)state[i2]=state[i2].clone();return clone}});C.SHA3=Hasher._createHelper(SHA3),C.HmacSHA3=Hasher._createHmacHelper(SHA3)}(Math),CryptoJS.SHA3)},6787:function(module2,exports2,__webpack_require__2){var CryptoJS,C,C_x64,X64Word,X64WordArray,C_algo,SHA512,SHA384;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(70401),__webpack_require__2(83351),C_x64=(C=CryptoJS).x64,X64Word=C_x64.Word,X64WordArray=C_x64.WordArray,C_algo=C.algo,SHA512=C_algo.SHA512,SHA384=C_algo.SHA384=SHA512.extend({_doReset:function(){this._hash=new X64WordArray.init([new X64Word.init(3418070365,3238371032),new X64Word.init(1654270250,914150663),new X64Word.init(2438529370,812702999),new X64Word.init(355462360,4144912697),new X64Word.init(1731405415,4290775857),new X64Word.init(2394180231,1750603025),new X64Word.init(3675008525,1694076839),new X64Word.init(1203062813,3204075428)])},_doFinalize:function(){var hash=SHA512._doFinalize.call(this);return hash.sigBytes-=16,hash}}),C.SHA384=SHA512._createHelper(SHA384),C.HmacSHA384=SHA512._createHmacHelper(SHA384),CryptoJS.SHA384)},83351:function(module2,exports2,__webpack_require__2){var CryptoJS;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(70401),function(){var C=CryptoJS,Hasher=C.lib.Hasher,C_x64=C.x64,X64Word=C_x64.Word,X64WordArray=C_x64.WordArray,C_algo=C.algo;function X64Word_create(){return X64Word.create.apply(X64Word,arguments)}__name(X64Word_create,"X64Word_create");var K=[X64Word_create(1116352408,3609767458),X64Word_create(1899447441,602891725),X64Word_create(3049323471,3964484399),X64Word_create(3921009573,2173295548),X64Word_create(961987163,4081628472),X64Word_create(1508970993,3053834265),X64Word_create(2453635748,2937671579),X64Word_create(2870763221,3664609560),X64Word_create(3624381080,2734883394),X64Word_create(310598401,1164996542),X64Word_create(607225278,1323610764),X64Word_create(1426881987,3590304994),X64Word_create(1925078388,4068182383),X64Word_create(2162078206,991336113),X64Word_create(2614888103,633803317),X64Word_create(3248222580,3479774868),X64Word_create(3835390401,2666613458),X64Word_create(4022224774,944711139),X64Word_create(264347078,2341262773),X64Word_create(604807628,2007800933),X64Word_create(770255983,1495990901),X64Word_create(1249150122,1856431235),X64Word_create(1555081692,3175218132),X64Word_create(1996064986,2198950837),X64Word_create(2554220882,3999719339),X64Word_create(2821834349,766784016),X64Word_create(2952996808,2566594879),X64Word_create(3210313671,3203337956),X64Word_create(3336571891,1034457026),X64Word_create(3584528711,2466948901),X64Word_create(113926993,3758326383),X64Word_create(338241895,168717936),X64Word_create(666307205,1188179964),X64Word_create(773529912,1546045734),X64Word_create(1294757372,1522805485),X64Word_create(1396182291,2643833823),X64Word_create(1695183700,2343527390),X64Word_create(1986661051,1014477480),X64Word_create(2177026350,1206759142),X64Word_create(2456956037,344077627),X64Word_create(2730485921,1290863460),X64Word_create(2820302411,3158454273),X64Word_create(3259730800,3505952657),X64Word_create(3345764771,106217008),X64Word_create(3516065817,3606008344),X64Word_create(3600352804,1432725776),X64Word_create(4094571909,1467031594),X64Word_create(275423344,851169720),X64Word_create(430227734,3100823752),X64Word_create(506948616,1363258195),X64Word_create(659060556,3750685593),X64Word_create(883997877,3785050280),X64Word_create(958139571,3318307427),X64Word_create(1322822218,3812723403),X64Word_create(1537002063,2003034995),X64Word_create(1747873779,3602036899),X64Word_create(1955562222,1575990012),X64Word_create(2024104815,1125592928),X64Word_create(2227730452,2716904306),X64Word_create(2361852424,442776044),X64Word_create(2428436474,593698344),X64Word_create(2756734187,3733110249),X64Word_create(3204031479,2999351573),X64Word_create(3329325298,3815920427),X64Word_create(3391569614,3928383900),X64Word_create(3515267271,566280711),X64Word_create(3940187606,3454069534),X64Word_create(4118630271,4000239992),X64Word_create(116418474,1914138554),X64Word_create(174292421,2731055270),X64Word_create(289380356,3203993006),X64Word_create(460393269,320620315),X64Word_create(685471733,587496836),X64Word_create(852142971,1086792851),X64Word_create(1017036298,365543100),X64Word_create(1126000580,2618297676),X64Word_create(1288033470,3409855158),X64Word_create(1501505948,4234509866),X64Word_create(1607167915,987167468),X64Word_create(1816402316,1246189591)],W=[];!function(){for(var i2=0;i2<80;i2++)W[i2]=X64Word_create()}();var SHA512=C_algo.SHA512=Hasher.extend({_doReset:function(){this._hash=new X64WordArray.init([new X64Word.init(1779033703,4089235720),new X64Word.init(3144134277,2227873595),new X64Word.init(1013904242,4271175723),new X64Word.init(2773480762,1595750129),new X64Word.init(1359893119,2917565137),new X64Word.init(2600822924,725511199),new X64Word.init(528734635,4215389547),new X64Word.init(1541459225,327033209)])},_doProcessBlock:function(M,offset){for(var H=this._hash.words,H0=H[0],H1=H[1],H2=H[2],H3=H[3],H4=H[4],H5=H[5],H6=H[6],H7=H[7],H0h=H0.high,H0l=H0.low,H1h=H1.high,H1l=H1.low,H2h=H2.high,H2l=H2.low,H3h=H3.high,H3l=H3.low,H4h=H4.high,H4l=H4.low,H5h=H5.high,H5l=H5.low,H6h=H6.high,H6l=H6.low,H7h=H7.high,H7l=H7.low,ah=H0h,al=H0l,bh=H1h,bl=H1l,ch=H2h,cl=H2l,dh=H3h,dl=H3l,eh=H4h,el=H4l,fh=H5h,fl=H5l,gh=H6h,gl=H6l,hh=H7h,hl=H7l,i2=0;i2<80;i2++){var Wil,Wih,Wi=W[i2];if(i2<16)Wih=Wi.high=0|M[offset+2*i2],Wil=Wi.low=0|M[offset+2*i2+1];else{var gamma0x=W[i2-15],gamma0xh=gamma0x.high,gamma0xl=gamma0x.low,gamma0h=(gamma0xh>>>1|gamma0xl<<31)^(gamma0xh>>>8|gamma0xl<<24)^gamma0xh>>>7,gamma0l=(gamma0xl>>>1|gamma0xh<<31)^(gamma0xl>>>8|gamma0xh<<24)^(gamma0xl>>>7|gamma0xh<<25),gamma1x=W[i2-2],gamma1xh=gamma1x.high,gamma1xl=gamma1x.low,gamma1h=(gamma1xh>>>19|gamma1xl<<13)^(gamma1xh<<3|gamma1xl>>>29)^gamma1xh>>>6,gamma1l=(gamma1xl>>>19|gamma1xh<<13)^(gamma1xl<<3|gamma1xh>>>29)^(gamma1xl>>>6|gamma1xh<<26),Wi7=W[i2-7],Wi7h=Wi7.high,Wi7l=Wi7.low,Wi16=W[i2-16],Wi16h=Wi16.high,Wi16l=Wi16.low;Wih=(Wih=(Wih=gamma0h+Wi7h+((Wil=gamma0l+Wi7l)>>>0>>0?1:0))+gamma1h+((Wil+=gamma1l)>>>0>>0?1:0))+Wi16h+((Wil+=Wi16l)>>>0>>0?1:0),Wi.high=Wih,Wi.low=Wil}var t1l,chh=eh&fh^~eh&gh,chl=el&fl^~el&gl,majh=ah&bh^ah&ch^bh&ch,majl=al&bl^al&cl^bl&cl,sigma0h=(ah>>>28|al<<4)^(ah<<30|al>>>2)^(ah<<25|al>>>7),sigma0l=(al>>>28|ah<<4)^(al<<30|ah>>>2)^(al<<25|ah>>>7),sigma1h=(eh>>>14|el<<18)^(eh>>>18|el<<14)^(eh<<23|el>>>9),sigma1l=(el>>>14|eh<<18)^(el>>>18|eh<<14)^(el<<23|eh>>>9),Ki=K[i2],Kih=Ki.high,Kil=Ki.low,t1h=hh+sigma1h+((t1l=hl+sigma1l)>>>0>>0?1:0),t2l=sigma0l+majl;hh=gh,hl=gl,gh=fh,gl=fl,fh=eh,fl=el,eh=dh+(t1h=(t1h=(t1h=t1h+chh+((t1l+=chl)>>>0>>0?1:0))+Kih+((t1l+=Kil)>>>0>>0?1:0))+Wih+((t1l+=Wil)>>>0>>0?1:0))+((el=dl+t1l|0)>>>0
>>0?1:0)|0,dh=ch,dl=cl,ch=bh,cl=bl,bh=ah,bl=al,ah=t1h+(sigma0h+majh+(t2l>>>0>>0?1:0))+((al=t1l+t2l|0)>>>0>>0?1:0)|0}H0l=H0.low=H0l+al,H0.high=H0h+ah+(H0l>>>0>>0?1:0),H1l=H1.low=H1l+bl,H1.high=H1h+bh+(H1l>>>0>>0?1:0),H2l=H2.low=H2l+cl,H2.high=H2h+ch+(H2l>>>0>>0?1:0),H3l=H3.low=H3l+dl,H3.high=H3h+dh+(H3l>>>0
>>0?1:0),H4l=H4.low=H4l+el,H4.high=H4h+eh+(H4l>>>0>>0?1:0),H5l=H5.low=H5l+fl,H5.high=H5h+fh+(H5l>>>0>>0?1:0),H6l=H6.low=H6l+gl,H6.high=H6h+gh+(H6l>>>0>>0?1:0),H7l=H7.low=H7l+hl,H7.high=H7h+hh+(H7l>>>0>>0?1:0)},_doFinalize:function(){var data=this._data,dataWords=data.words,nBitsTotal=8*this._nDataBytes,nBitsLeft=8*data.sigBytes;return dataWords[nBitsLeft>>>5]|=128<<24-nBitsLeft%32,dataWords[30+(nBitsLeft+128>>>10<<5)]=Math.floor(nBitsTotal/4294967296),dataWords[31+(nBitsLeft+128>>>10<<5)]=nBitsTotal,data.sigBytes=4*dataWords.length,this._process(),this._hash.toX32()},clone:function(){var clone=Hasher.clone.call(this);return clone._hash=this._hash.clone(),clone},blockSize:32});C.SHA512=Hasher._createHelper(SHA512),C.HmacSHA512=Hasher._createHmacHelper(SHA512)}(),CryptoJS.SHA512)},57243:function(module2,exports2,__webpack_require__2){var CryptoJS;module2.exports=(CryptoJS=__webpack_require__2(67585),__webpack_require__2(58319),__webpack_require__2(9493),__webpack_require__2(37865),__webpack_require__2(53057),function(){var C=CryptoJS,C_lib=C.lib,WordArray=C_lib.WordArray,BlockCipher=C_lib.BlockCipher,C_algo=C.algo,PC1=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],PC2=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],BIT_SHIFTS=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],SBOX_P=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],SBOX_MASK=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],DES=C_algo.DES=BlockCipher.extend({_doReset:function(){for(var keyWords=this._key.words,keyBits=[],i2=0;i2<56;i2++){var keyBitPos=PC1[i2]-1;keyBits[i2]=keyWords[keyBitPos>>>5]>>>31-keyBitPos%32&1}for(var subKeys=this._subKeys=[],nSubKey=0;nSubKey<16;nSubKey++){var subKey=subKeys[nSubKey]=[],bitShift=BIT_SHIFTS[nSubKey];for(i2=0;i2<24;i2++)subKey[i2/6|0]|=keyBits[(PC2[i2]-1+bitShift)%28]<<31-i2%6,subKey[4+(i2/6|0)]|=keyBits[28+(PC2[i2+24]-1+bitShift)%28]<<31-i2%6;for(subKey[0]=subKey[0]<<1|subKey[0]>>>31,i2=1;i2<7;i2++)subKey[i2]=subKey[i2]>>>4*(i2-1)+3;subKey[7]=subKey[7]<<5|subKey[7]>>>27}var invSubKeys=this._invSubKeys=[];for(i2=0;i2<16;i2++)invSubKeys[i2]=subKeys[15-i2]},encryptBlock:function(M,offset){this._doCryptBlock(M,offset,this._subKeys)},decryptBlock:function(M,offset){this._doCryptBlock(M,offset,this._invSubKeys)},_doCryptBlock:function(M,offset,subKeys){this._lBlock=M[offset],this._rBlock=M[offset+1],exchangeLR.call(this,4,252645135),exchangeLR.call(this,16,65535),exchangeRL.call(this,2,858993459),exchangeRL.call(this,8,16711935),exchangeLR.call(this,1,1431655765);for(var round=0;round<16;round++){for(var subKey=subKeys[round],lBlock=this._lBlock,rBlock=this._rBlock,f2=0,i2=0;i2<8;i2++)f2|=SBOX_P[i2][((rBlock^subKey[i2])&SBOX_MASK[i2])>>>0];this._lBlock=rBlock,this._rBlock=lBlock^f2}var t=this._lBlock;this._lBlock=this._rBlock,this._rBlock=t,exchangeLR.call(this,1,1431655765),exchangeRL.call(this,8,16711935),exchangeRL.call(this,2,858993459),exchangeLR.call(this,16,65535),exchangeLR.call(this,4,252645135),M[offset]=this._lBlock,M[offset+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function exchangeLR(offset,mask){var t=(this._lBlock>>>offset^this._rBlock)&mask;this._rBlock^=t,this._lBlock^=t<>>offset^this._lBlock)&mask;this._lBlock^=t,this._rBlock^=t<192.");var key1=keyWords.slice(0,2),key2=keyWords.length<4?keyWords.slice(0,2):keyWords.slice(2,4),key3=keyWords.length<6?keyWords.slice(0,2):keyWords.slice(4,6);this._des1=DES.createEncryptor(WordArray.create(key1)),this._des2=DES.createEncryptor(WordArray.create(key2)),this._des3=DES.createEncryptor(WordArray.create(key3))},encryptBlock:function(M,offset){this._des1.encryptBlock(M,offset),this._des2.decryptBlock(M,offset),this._des3.encryptBlock(M,offset)},decryptBlock:function(M,offset){this._des3.decryptBlock(M,offset),this._des2.encryptBlock(M,offset),this._des1.decryptBlock(M,offset)},keySize:6,ivSize:2,blockSize:2});C.TripleDES=BlockCipher._createHelper(TripleDES)}(),CryptoJS.TripleDES)},70401:function(module2,exports2,__webpack_require__2){var CryptoJS,undefined2,C,C_lib,Base,X32WordArray,C_x64;module2.exports=(CryptoJS=__webpack_require__2(67585),C_lib=(C=CryptoJS).lib,Base=C_lib.Base,X32WordArray=C_lib.WordArray,(C_x64=C.x64={}).Word=Base.extend({init:function(high,low){this.high=high,this.low=low}}),C_x64.WordArray=Base.extend({init:function(words,sigBytes){words=this.words=words||[],this.sigBytes=sigBytes!=undefined2?sigBytes:8*words.length},toX32:function(){for(var x64Words=this.words,x64WordsLength=x64Words.length,x32Words=[],i2=0;i2{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.attributeRules=void 0;var boolbase_1=__webpack_require__2(77834),reChars=/[-[\]{}()*+?.,\\^$|#\s]/g;function escapeRegex(value){return value.replace(reChars,"\\$&")}__name(escapeRegex,"escapeRegex");var caseInsensitiveAttributes=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function shouldIgnoreCase(selector,options){return"boolean"==typeof selector.ignoreCase?selector.ignoreCase:"quirks"===selector.ignoreCase?!!options.quirksMode:!options.xmlMode&&caseInsensitiveAttributes.has(selector.name)}__name(shouldIgnoreCase,"shouldIgnoreCase"),exports2.attributeRules={equals:function(next,data,options){var adapter=options.adapter,name=data.name,value=data.value;return shouldIgnoreCase(data,options)?(value=value.toLowerCase(),function(elem){var attr=adapter.getAttributeValue(elem,name);return null!=attr&&attr.length===value.length&&attr.toLowerCase()===value&&next(elem)}):function(elem){return adapter.getAttributeValue(elem,name)===value&&next(elem)}},hyphen:function(next,data,options){var adapter=options.adapter,name=data.name,value=data.value,len=value.length;return shouldIgnoreCase(data,options)?(value=value.toLowerCase(),__name(function(elem){var attr=adapter.getAttributeValue(elem,name);return null!=attr&&(attr.length===len||"-"===attr.charAt(len))&&attr.substr(0,len).toLowerCase()===value&&next(elem)},"hyphenIC")):__name(function(elem){var attr=adapter.getAttributeValue(elem,name);return null!=attr&&(attr.length===len||"-"===attr.charAt(len))&&attr.substr(0,len)===value&&next(elem)},"hyphen")},element:function(next,data,options){var adapter=options.adapter,name=data.name,value=data.value;if(/\s/.test(value))return boolbase_1.falseFunc;var regex=new RegExp("(?:^|\\s)".concat(escapeRegex(value),"(?:$|\\s)"),shouldIgnoreCase(data,options)?"i":"");return __name(function(elem){var attr=adapter.getAttributeValue(elem,name);return null!=attr&&attr.length>=value.length&®ex.test(attr)&&next(elem)},"element")},exists:function(next,_a,_b){var name=_a.name,adapter=_b.adapter;return function(elem){return adapter.hasAttrib(elem,name)&&next(elem)}},start:function(next,data,options){var adapter=options.adapter,name=data.name,value=data.value,len=value.length;return 0===len?boolbase_1.falseFunc:shouldIgnoreCase(data,options)?(value=value.toLowerCase(),function(elem){var attr=adapter.getAttributeValue(elem,name);return null!=attr&&attr.length>=len&&attr.substr(0,len).toLowerCase()===value&&next(elem)}):function(elem){var _a;return!!(null===(_a=adapter.getAttributeValue(elem,name))||void 0===_a?void 0:_a.startsWith(value))&&next(elem)}},end:function(next,data,options){var adapter=options.adapter,name=data.name,value=data.value,len=-value.length;return 0===len?boolbase_1.falseFunc:shouldIgnoreCase(data,options)?(value=value.toLowerCase(),function(elem){var _a;return(null===(_a=adapter.getAttributeValue(elem,name))||void 0===_a?void 0:_a.substr(len).toLowerCase())===value&&next(elem)}):function(elem){var _a;return!!(null===(_a=adapter.getAttributeValue(elem,name))||void 0===_a?void 0:_a.endsWith(value))&&next(elem)}},any:function(next,data,options){var adapter=options.adapter,name=data.name,value=data.value;if(""===value)return boolbase_1.falseFunc;if(shouldIgnoreCase(data,options)){var regex_1=new RegExp(escapeRegex(value),"i");return __name(function(elem){var attr=adapter.getAttributeValue(elem,name);return null!=attr&&attr.length>=value.length&®ex_1.test(attr)&&next(elem)},"anyIC")}return function(elem){var _a;return!!(null===(_a=adapter.getAttributeValue(elem,name))||void 0===_a?void 0:_a.includes(value))&&next(elem)}},not:function(next,data,options){var adapter=options.adapter,name=data.name,value=data.value;return""===value?function(elem){return!!adapter.getAttributeValue(elem,name)&&next(elem)}:shouldIgnoreCase(data,options)?(value=value.toLowerCase(),function(elem){var attr=adapter.getAttributeValue(elem,name);return(null==attr||attr.length!==value.length||attr.toLowerCase()!==value)&&next(elem)}):function(elem){return adapter.getAttributeValue(elem,name)!==value&&next(elem)}}}},98312:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.compileToken=exports2.compileUnsafe=exports2.compile=void 0;var css_what_1=__webpack_require__2(92627),boolbase_1=__webpack_require__2(77834),sort_1=__importDefault(__webpack_require__2(90702)),procedure_1=__webpack_require__2(30448),general_1=__webpack_require__2(82897),subselects_1=__webpack_require__2(869);function compile(selector,options,context){var next=compileUnsafe(selector,options,context);return(0,subselects_1.ensureIsTag)(next,options.adapter)}function compileUnsafe(selector,options,context){return compileToken("string"==typeof selector?(0,css_what_1.parse)(selector):selector,options,context)}function includesScopePseudo(t){return"pseudo"===t.type&&("scope"===t.name||Array.isArray(t.data)&&t.data.some(function(data){return data.some(includesScopePseudo)}))}__name(compile,"compile"),exports2.compile=compile,__name(compileUnsafe,"compileUnsafe"),exports2.compileUnsafe=compileUnsafe,__name(includesScopePseudo,"includesScopePseudo");var DESCENDANT_TOKEN={type:css_what_1.SelectorType.Descendant},FLEXIBLE_DESCENDANT_TOKEN={type:"_flexibleDescendant"},SCOPE_TOKEN={type:css_what_1.SelectorType.Pseudo,name:"scope",data:null};function absolutize(token,_a,context){for(var adapter=_a.adapter,hasContext=!!(null==context?void 0:context.every(function(e){var parent=adapter.isTag(e)&&adapter.getParent(e);return e===subselects_1.PLACEHOLDER_ELEMENT||parent&&adapter.isTag(parent)})),_i=0,token_1=token;_i0&&(0,procedure_1.isTraversal)(t[0])&&"descendant"!==t[0].type)){if(!hasContext||t.some(includesScopePseudo))continue;t.unshift(DESCENDANT_TOKEN)}t.unshift(SCOPE_TOKEN)}}function compileToken(token,options,context){var _a;(token=token.filter(function(t){return t.length>0})).forEach(sort_1.default),context=null!==(_a=options.context)&&void 0!==_a?_a:context;var isArrayContext=Array.isArray(context),finalContext=context&&(Array.isArray(context)?context:[context]);absolutize(token,options,finalContext);var shouldTestNextSiblings=!1,query=token.map(function(rules){if(rules.length>=2){var first=rules[0],second=rules[1];"pseudo"!==first.type||"scope"!==first.name||(isArrayContext&&"descendant"===second.type?rules[1]=FLEXIBLE_DESCENDANT_TOKEN:("adjacent"===second.type||"sibling"===second.type)&&(shouldTestNextSiblings=!0))}return compileRules(rules,options,finalContext)}).reduce(reduceRules,boolbase_1.falseFunc);return query.shouldTestNextSiblings=shouldTestNextSiblings,query}function compileRules(rules,options,context){var _a;return rules.reduce(function(previous,rule){return previous===boolbase_1.falseFunc?boolbase_1.falseFunc:(0,general_1.compileGeneralSelector)(previous,rule,options,context,compileToken)},null!==(_a=options.rootFunc)&&void 0!==_a?_a:boolbase_1.trueFunc)}function reduceRules(a,b2){return b2===boolbase_1.falseFunc||a===boolbase_1.trueFunc?a:a===boolbase_1.falseFunc||b2===boolbase_1.trueFunc?b2:__name(function(elem){return a(elem)||b2(elem)},"combine")}__name(absolutize,"absolutize"),__name(compileToken,"compileToken"),exports2.compileToken=compileToken,__name(compileRules,"compileRules"),__name(reduceRules,"reduceRules")},82897:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.compileGeneralSelector=void 0;var attributes_1=__webpack_require__2(50982),pseudo_selectors_1=__webpack_require__2(14575),css_what_1=__webpack_require__2(92627);function compileGeneralSelector(next,selector,options,context,compileToken){var adapter=options.adapter,equals=options.equals;switch(selector.type){case css_what_1.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case css_what_1.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case css_what_1.SelectorType.Attribute:if(null!=selector.namespace)throw new Error("Namespaced attributes are not yet supported by css-select");return(!options.xmlMode||options.lowerCaseAttributeNames)&&(selector.name=selector.name.toLowerCase()),attributes_1.attributeRules[selector.action](next,selector,options);case css_what_1.SelectorType.Pseudo:return(0,pseudo_selectors_1.compilePseudoSelector)(next,selector,options,context,compileToken);case css_what_1.SelectorType.Tag:if(null!=selector.namespace)throw new Error("Namespaced tag names are not yet supported by css-select");var name_1=selector.name;return(!options.xmlMode||options.lowerCaseTags)&&(name_1=name_1.toLowerCase()),__name(function(elem){return adapter.getName(elem)===name_1&&next(elem)},"tag");case css_what_1.SelectorType.Descendant:if(!1===options.cacheResults||"undefined"==typeof WeakSet)return __name(function(elem){for(var current=elem;current=adapter.getParent(current);)if(adapter.isTag(current)&&next(current))return!0;return!1},"descendant");var isFalseCache_1=new WeakSet;return __name(function(elem){for(var current=elem;current=adapter.getParent(current);)if(!isFalseCache_1.has(current)){if(adapter.isTag(current)&&next(current))return!0;isFalseCache_1.add(current)}return!1},"cachedDescendant");case"_flexibleDescendant":return __name(function(elem){var current=elem;do{if(adapter.isTag(current)&&next(current))return!0}while(current=adapter.getParent(current));return!1},"flexibleDescendant");case css_what_1.SelectorType.Parent:return __name(function(elem){return adapter.getChildren(elem).some(function(elem2){return adapter.isTag(elem2)&&next(elem2)})},"parent");case css_what_1.SelectorType.Child:return __name(function(elem){var parent=adapter.getParent(elem);return null!=parent&&adapter.isTag(parent)&&next(parent)},"child");case css_what_1.SelectorType.Sibling:return __name(function(elem){for(var siblings=adapter.getSiblings(elem),i2=0;i2{"use strict";function isTraversal(t){return exports2.procedure[t.type]<0}Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.isTraversal=exports2.procedure=void 0,exports2.procedure={universal:50,tag:30,attribute:1,pseudo:0,"pseudo-element":0,"column-combinator":-1,descendant:-1,child:-1,parent:-1,sibling:-1,adjacent:-1,_flexibleDescendant:-1},__name(isTraversal,"isTraversal"),exports2.isTraversal=isTraversal},3366:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.aliases=void 0,exports2.aliases={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:":is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )",enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"}},59637:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.filters=void 0;var nth_check_1=__importDefault(__webpack_require__2(76712)),boolbase_1=__webpack_require__2(77834);function getChildFunc(next,adapter){return function(elem){var parent=adapter.getParent(elem);return null!=parent&&adapter.isTag(parent)&&next(elem)}}function dynamicStatePseudo(name){return __name(function(next,_rule,_a){var func=_a.adapter[name];return"function"!=typeof func?boolbase_1.falseFunc:__name(function(elem){return func(elem)&&next(elem)},"active")},"dynamicPseudo")}__name(getChildFunc,"getChildFunc"),exports2.filters={contains:function(next,text,_a){var adapter=_a.adapter;return __name(function(elem){return next(elem)&&adapter.getText(elem).includes(text)},"contains")},icontains:function(next,text,_a){var adapter=_a.adapter,itext=text.toLowerCase();return __name(function(elem){return next(elem)&&adapter.getText(elem).toLowerCase().includes(itext)},"icontains")},"nth-child":function(next,rule,_a){var adapter=_a.adapter,equals=_a.equals,func=(0,nth_check_1.default)(rule);return func===boolbase_1.falseFunc?boolbase_1.falseFunc:func===boolbase_1.trueFunc?getChildFunc(next,adapter):__name(function(elem){for(var siblings=adapter.getSiblings(elem),pos=0,i2=0;i2=0&&!equals(elem,siblings[i2]);i2--)adapter.isTag(siblings[i2])&&pos++;return func(pos)&&next(elem)},"nthLastChild")},"nth-of-type":function(next,rule,_a){var adapter=_a.adapter,equals=_a.equals,func=(0,nth_check_1.default)(rule);return func===boolbase_1.falseFunc?boolbase_1.falseFunc:func===boolbase_1.trueFunc?getChildFunc(next,adapter):__name(function(elem){for(var siblings=adapter.getSiblings(elem),pos=0,i2=0;i2=0;i2--){var currentSibling=siblings[i2];if(equals(elem,currentSibling))break;adapter.isTag(currentSibling)&&adapter.getName(currentSibling)===adapter.getName(elem)&&pos++}return func(pos)&&next(elem)},"nthLastOfType")},root:function(next,_rule,_a){var adapter=_a.adapter;return function(elem){var parent=adapter.getParent(elem);return(null==parent||!adapter.isTag(parent))&&next(elem)}},scope:function(next,rule,options,context){var equals=options.equals;return context&&0!==context.length?1===context.length?function(elem){return equals(context[0],elem)&&next(elem)}:function(elem){return context.includes(elem)&&next(elem)}:exports2.filters.root(next,rule,options)},hover:dynamicStatePseudo("isHovered"),visited:dynamicStatePseudo("isVisited"),active:dynamicStatePseudo("isActive")},__name(dynamicStatePseudo,"dynamicStatePseudo")},14575:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.compilePseudoSelector=exports2.aliases=exports2.pseudos=exports2.filters=void 0;var boolbase_1=__webpack_require__2(77834),css_what_1=__webpack_require__2(92627),filters_1=__webpack_require__2(59637);Object.defineProperty(exports2,"filters",{enumerable:!0,get:function(){return filters_1.filters}});var pseudos_1=__webpack_require__2(74342);Object.defineProperty(exports2,"pseudos",{enumerable:!0,get:function(){return pseudos_1.pseudos}});var aliases_1=__webpack_require__2(3366);Object.defineProperty(exports2,"aliases",{enumerable:!0,get:function(){return aliases_1.aliases}});var subselects_1=__webpack_require__2(869);function compilePseudoSelector(next,selector,options,context,compileToken){var name=selector.name,data=selector.data;if(Array.isArray(data))return subselects_1.subselects[name](next,data,options,context,compileToken);if(name in aliases_1.aliases){if(null!=data)throw new Error("Pseudo ".concat(name," doesn't have any arguments"));var alias=(0,css_what_1.parse)(aliases_1.aliases[name]);return subselects_1.subselects.is(next,alias,options,context,compileToken)}if(name in filters_1.filters)return filters_1.filters[name](next,data,options,context);if(name in pseudos_1.pseudos){var pseudo_1=pseudos_1.pseudos[name];return(0,pseudos_1.verifyPseudoArgs)(pseudo_1,name,data),pseudo_1===boolbase_1.falseFunc?boolbase_1.falseFunc:next===boolbase_1.trueFunc?function(elem){return pseudo_1(elem,options,data)}:function(elem){return pseudo_1(elem,options,data)&&next(elem)}}throw new Error("unmatched pseudo-class :".concat(name))}__name(compilePseudoSelector,"compilePseudoSelector"),exports2.compilePseudoSelector=compilePseudoSelector},74342:(__unused_webpack_module,exports2)=>{"use strict";function verifyPseudoArgs(func,name,subselect){if(null===subselect){if(func.length>2)throw new Error("pseudo-selector :".concat(name," requires an argument"))}else if(2===func.length)throw new Error("pseudo-selector :".concat(name," doesn't have any arguments"))}Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.verifyPseudoArgs=exports2.pseudos=void 0,exports2.pseudos={empty:function(elem,_a){var adapter=_a.adapter;return!adapter.getChildren(elem).some(function(elem2){return adapter.isTag(elem2)||""!==adapter.getText(elem2)})},"first-child":function(elem,_a){var adapter=_a.adapter,equals=_a.equals,firstChild=adapter.getSiblings(elem).find(function(elem2){return adapter.isTag(elem2)});return null!=firstChild&&equals(elem,firstChild)},"last-child":function(elem,_a){for(var adapter=_a.adapter,equals=_a.equals,siblings=adapter.getSiblings(elem),i2=siblings.length-1;i2>=0;i2--){if(equals(elem,siblings[i2]))return!0;if(adapter.isTag(siblings[i2]))break}return!1},"first-of-type":function(elem,_a){for(var adapter=_a.adapter,equals=_a.equals,siblings=adapter.getSiblings(elem),elemName=adapter.getName(elem),i2=0;i2=0;i2--){var currentSibling=siblings[i2];if(equals(elem,currentSibling))return!0;if(adapter.isTag(currentSibling)&&adapter.getName(currentSibling)===elemName)break}return!1},"only-of-type":function(elem,_a){var adapter=_a.adapter,equals=_a.equals,elemName=adapter.getName(elem);return adapter.getSiblings(elem).every(function(sibling){return equals(elem,sibling)||!adapter.isTag(sibling)||adapter.getName(sibling)!==elemName})},"only-child":function(elem,_a){var adapter=_a.adapter,equals=_a.equals;return adapter.getSiblings(elem).every(function(sibling){return equals(elem,sibling)||!adapter.isTag(sibling)})}},__name(verifyPseudoArgs,"verifyPseudoArgs"),exports2.verifyPseudoArgs=verifyPseudoArgs},869:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __spreadArray=this&&this.__spreadArray||function(to,from,pack){if(pack||2===arguments.length)for(var ar,i2=0,l=from.length;i2{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});var css_what_1=__webpack_require__2(92627),procedure_1=__webpack_require__2(30448),attributes={exists:10,equals:8,not:7,start:6,end:6,any:5,hyphen:4,element:4};function sortByProcedure(arr){for(var procs=arr.map(getProcedure),i2=1;i2=0&&procNew>=1);else if(token.type===css_what_1.SelectorType.Pseudo)if(token.data)if("has"===token.name||"contains"===token.name)proc=0;else if(Array.isArray(token.data)){proc=0;for(var i2=0;i2proc&&(proc=cur)}token.data.length>1&&proc>0&&(proc-=1)}else proc=1;else proc=3;return proc}__name(sortByProcedure,"sortByProcedure"),exports2.default=sortByProcedure,__name(getProcedure,"getProcedure")},92627:(__unused_webpack_module,__webpack_exports__2,__webpack_require__2)=>{"use strict";var SelectorType,SelectorType2;__webpack_require__2.r(__webpack_exports__2),__webpack_require__2.d(__webpack_exports__2,{AttributeAction:()=>AttributeAction,IgnoreCaseMode:()=>IgnoreCaseMode,SelectorType:()=>SelectorType,isTraversal:()=>isTraversal,parse:()=>parse,stringify:()=>stringify}),(SelectorType2=SelectorType||(SelectorType={})).Attribute="attribute",SelectorType2.Pseudo="pseudo",SelectorType2.PseudoElement="pseudo-element",SelectorType2.Tag="tag",SelectorType2.Universal="universal",SelectorType2.Adjacent="adjacent",SelectorType2.Child="child",SelectorType2.Descendant="descendant",SelectorType2.Parent="parent",SelectorType2.Sibling="sibling",SelectorType2.ColumnCombinator="column-combinator";const IgnoreCaseMode={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1};var AttributeAction,AttributeAction2;(AttributeAction2=AttributeAction||(AttributeAction={})).Any="any",AttributeAction2.Element="element",AttributeAction2.End="end",AttributeAction2.Equals="equals",AttributeAction2.Exists="exists",AttributeAction2.Hyphen="hyphen",AttributeAction2.Not="not",AttributeAction2.Start="start";const reName=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,reEscape=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,actionTypes=new Map([[126,AttributeAction.Element],[94,AttributeAction.Start],[36,AttributeAction.End],[42,AttributeAction.Any],[33,AttributeAction.Not],[124,AttributeAction.Hyphen]]),unpackPseudos=new Set(["has","not","matches","is","where","host","host-context"]);function isTraversal(selector){switch(selector.type){case SelectorType.Adjacent:case SelectorType.Child:case SelectorType.Descendant:case SelectorType.Parent:case SelectorType.Sibling:case SelectorType.ColumnCombinator:return!0;default:return!1}}__name(isTraversal,"isTraversal");const stripQuotesFromPseudos=new Set(["contains","icontains"]);function funescape(_,escaped,escapedWhitespace){const high=parseInt(escaped,16)-65536;return high!=high||escapedWhitespace?escaped:high<0?String.fromCharCode(high+65536):String.fromCharCode(high>>10|55296,1023&high|56320)}function unescapeCSS(str){return str.replace(reEscape,funescape)}function isQuote(c){return 39===c||34===c}function isWhitespace(c){return 32===c||9===c||10===c||12===c||13===c}function parse(selector){const subselects=[],endIndex=parseSelector(subselects,`${selector}`,0);if(endIndex0&&selectorIndex0&&isTraversal(tokens[tokens.length-1]))throw new Error("Did not expect successive traversals.")}function addTraversal(type){tokens.length>0&&tokens[tokens.length-1].type===SelectorType.Descendant?tokens[tokens.length-1].type=type:(ensureNotTraversal(),tokens.push({type}))}function addSpecialAttribute(name,action){tokens.push({type:SelectorType.Attribute,name,action,value:getName(1),namespace:null,ignoreCase:"quirks"})}function finalizeSubselector(){if(tokens.length&&tokens[tokens.length-1].type===SelectorType.Descendant&&tokens.pop(),0===tokens.length)throw new Error("Empty sub-selector");subselects.push(tokens)}if(__name(getName,"getName"),__name(stripWhitespace,"stripWhitespace"),__name(readValueWithParenthesis,"readValueWithParenthesis"),__name(isEscaped,"isEscaped"),__name(ensureNotTraversal,"ensureNotTraversal"),__name(addTraversal,"addTraversal"),__name(addSpecialAttribute,"addSpecialAttribute"),__name(finalizeSubselector,"finalizeSubselector"),stripWhitespace(0),selector.length===selectorIndex)return selectorIndex;loop:for(;selectorIndexc.charCodeAt(0))),charsToEscapeInPseudoValue=new Set(pseudoValChars.map(c=>c.charCodeAt(0))),charsToEscapeInName=new Set([...pseudoValChars,"~","^","$","*","+","!","|",":","[","]"," ","."].map(c=>c.charCodeAt(0)));function stringify(selector){return selector.map(token=>token.map(stringifyToken).join("")).join(", ")}function stringifyToken(token,index,arr){switch(token.type){case SelectorType.Child:return 0===index?"> ":" > ";case SelectorType.Parent:return 0===index?"< ":" < ";case SelectorType.Sibling:return 0===index?"~ ":" ~ ";case SelectorType.Adjacent:return 0===index?"+ ":" + ";case SelectorType.Descendant:return" ";case SelectorType.ColumnCombinator:return 0===index?"|| ":" || ";case SelectorType.Universal:return"*"===token.namespace&&index+10?ret+str.slice(lastIdx):str}__name(stringify,"stringify"),__name(stringifyToken,"stringifyToken"),__name(getActionValue,"getActionValue"),__name(getNamespacedName,"getNamespacedName"),__name(getNamespace,"getNamespace"),__name(escapeName,"escapeName")},51455:(module2,exports2,__webpack_require__2)=>{function useColors(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function formatArgs(args2){if(args2[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+args2[0]+(this.useColors?"%c ":" ")+"+"+module2.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;args2.splice(1,0,c,"color: inherit");let index=0,lastC=0;args2[0].replace(/%[a-zA-Z%]/g,match=>{"%%"!==match&&(index++,"%c"===match&&(lastC=index))}),args2.splice(lastC,0,c)}function save(namespaces){try{namespaces?exports2.storage.setItem("debug",namespaces):exports2.storage.removeItem("debug")}catch{}}function load(){let r;try{r=exports2.storage.getItem("debug")}catch{}return!r&&"undefined"!=typeof process&&"env"in process&&(r=process.env.DEBUG),r}function localstorage(){try{return localStorage}catch{}}exports2.formatArgs=formatArgs,exports2.save=save,exports2.load=load,exports2.useColors=useColors,exports2.storage=localstorage(),exports2.destroy=(()=>{let warned=!1;return()=>{warned||(warned=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),exports2.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],__name(useColors,"useColors"),__name(formatArgs,"formatArgs"),exports2.log=console.debug||console.log||(()=>{}),__name(save,"save"),__name(load,"load"),__name(localstorage,"localstorage"),module2.exports=__webpack_require__2(23283)(exports2);const{formatters}=module2.exports;formatters.j=function(v){try{return JSON.stringify(v)}catch(error){return"[UnexpectedJSONParseError]: "+error.message}}},23283:(module2,__unused_webpack_exports2,__webpack_require__2)=>{function setup(env){function selectColor(namespace){let hash=0;for(let i2=0;i2{if("%%"===match)return"%";index++;const formatter=createDebug.formatters[format];if("function"==typeof formatter){const val=args2[index];match=formatter.call(self2,val),args2.splice(index,1),index--}return match}),createDebug.formatArgs.call(self2,args2),(self2.log||createDebug.log).apply(self2,args2)}return __name(debug,"debug"),debug.namespace=namespace,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(namespace),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==enableOverride?enableOverride:(namespacesCache!==createDebug.namespaces&&(namespacesCache=createDebug.namespaces,enabledCache=createDebug.enabled(namespace)),enabledCache),set:v=>{enableOverride=v}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(namespace,delimiter){const newDebug=createDebug(this.namespace+(void 0===delimiter?":":delimiter)+namespace);return newDebug.log=this.log,newDebug}function enable(namespaces){let i2;createDebug.save(namespaces),createDebug.namespaces=namespaces,createDebug.names=[],createDebug.skips=[];const split=("string"==typeof namespaces?namespaces:"").split(/[\s,]+/),len=split.length;for(i2=0;i2"-"+namespace)].join(",");return createDebug.enable(""),namespaces}function enabled(name){if("*"===name[name.length-1])return!0;let i2,len;for(i2=0,len=createDebug.skips.length;i2{createDebug[key]=env[key]}),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},__name(selectColor,"selectColor"),createDebug.selectColor=selectColor,__name(createDebug,"createDebug"),__name(extend,"extend"),__name(enable,"enable"),__name(disable,"disable"),__name(enabled,"enabled"),__name(toNamespace,"toNamespace"),__name(coerce,"coerce"),__name(destroy,"destroy"),createDebug.enable(createDebug.load()),createDebug}__name(setup,"setup"),module2.exports=setup},58574:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?module2.exports=__webpack_require__2(51455):module2.exports=__webpack_require__2(3224)},3224:(module2,exports2,__webpack_require__2)=>{const tty=__webpack_require__2(76224),util=__webpack_require__2(73837);exports2.init=init,exports2.log=log2,exports2.formatArgs=formatArgs,exports2.save=save,exports2.load=load,exports2.useColors=useColors,exports2.destroy=util.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),exports2.colors=[6,2,3,4,5,1];try{const supportsColor=__webpack_require__2(85429);supportsColor&&(supportsColor.stderr||supportsColor).level>=2&&(exports2.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}function useColors(){return"colors"in exports2.inspectOpts?Boolean(exports2.inspectOpts.colors):tty.isatty(process.stderr.fd)}function formatArgs(args2){const{namespace:name,useColors:useColors2}=this;if(useColors2){const c=this.color,colorCode="\x1b[3"+(c<8?c:"8;5;"+c),prefix=` ${colorCode};1m${name} \x1b[0m`;args2[0]=prefix+args2[0].split("\n").join("\n"+prefix),args2.push(colorCode+"m+"+module2.exports.humanize(this.diff)+"\x1b[0m")}else args2[0]=getDate()+name+" "+args2[0]}function getDate(){return exports2.inspectOpts.hideDate?"":(new Date).toISOString()+" "}function log2(...args2){return process.stderr.write(util.format(...args2)+"\n")}function save(namespaces){namespaces?process.env.DEBUG=namespaces:delete process.env.DEBUG}function load(){return process.env.DEBUG}function init(debug){debug.inspectOpts={};const keys=Object.keys(exports2.inspectOpts);for(let i2=0;i2/^debug_/i.test(key)).reduce((obj,key)=>{const prop=key.substring(6).toLowerCase().replace(/_([a-z])/g,(_,k)=>k.toUpperCase());let val=process.env[key];return val=!!/^(yes|on|true|enabled)$/i.test(val)||!/^(no|off|false|disabled)$/i.test(val)&&("null"===val?null:Number(val)),obj[prop]=val,obj},{}),__name(useColors,"useColors"),__name(formatArgs,"formatArgs"),__name(getDate,"getDate"),__name(log2,"log"),__name(save,"save"),__name(load,"load"),__name(init,"init"),module2.exports=__webpack_require__2(23283)(exports2);const{formatters}=module2.exports;formatters.o=function(v){return this.inspectOpts.colors=this.useColors,util.inspect(v,this.inspectOpts).split("\n").map(str=>str.trim()).join(" ")},formatters.O=function(v){return this.inspectOpts.colors=this.useColors,util.inspect(v,this.inspectOpts)}},60701:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";const{Transform,PassThrough}=__webpack_require__2(12781),zlib=__webpack_require__2(59796),mimicResponse=__webpack_require__2(73900);module2.exports=response=>{const contentEncoding=(response.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(contentEncoding))return response;const isBrotli="br"===contentEncoding;if(isBrotli&&"function"!=typeof zlib.createBrotliDecompress)return response.destroy(new Error("Brotli is not supported on Node.js < 12")),response;let isEmpty=!0;const checker=new Transform({transform(data,_encoding,callback){isEmpty=!1,callback(null,data)},flush(callback){callback()}}),finalStream=new PassThrough({autoDestroy:!1,destroy(error,callback){response.destroy(),callback(error)}}),decompressStream=isBrotli?zlib.createBrotliDecompress():zlib.createUnzip();return decompressStream.once("error",error=>{!isEmpty||response.readable?finalStream.destroy(error):finalStream.end()}),mimicResponse(response,finalStream),response.pipe(checker).pipe(decompressStream).pipe(finalStream),finalStream}},14978:(module2,exports2)=>{"use strict";function isTLSSocket(socket){return socket.encrypted}Object.defineProperty(exports2,"__esModule",{value:!0}),__name(isTLSSocket,"isTLSSocket");const deferToConnect=__name((socket,fn2)=>{let listeners;listeners="function"==typeof fn2?{connect:fn2}:fn2;const hasConnectListener="function"==typeof listeners.connect,hasSecureConnectListener="function"==typeof listeners.secureConnect,hasCloseListener="function"==typeof listeners.close,onConnect=__name(()=>{hasConnectListener&&listeners.connect(),isTLSSocket(socket)&&hasSecureConnectListener&&(socket.authorized?listeners.secureConnect():socket.authorizationError||socket.once("secureConnect",listeners.secureConnect)),hasCloseListener&&socket.once("close",listeners.close)},"onConnect");socket.writable&&!socket.connecting?onConnect():socket.connecting?socket.once("connect",onConnect):socket.destroyed&&hasCloseListener&&listeners.close(socket._hadError)},"deferToConnect");exports2.default=deferToConnect,module2.exports=deferToConnect,module2.exports.default=deferToConnect},13943:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var Stream=__webpack_require__2(12781).Stream,util=__webpack_require__2(73837);function DelayedStream(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}module2.exports=DelayedStream,__name(DelayedStream,"DelayedStream"),util.inherits(DelayedStream,Stream),DelayedStream.create=function(source,options){var delayedStream=new this;for(var option in options=options||{})delayedStream[option]=options[option];delayedStream.source=source;var realEmit=source.emit;return source.emit=function(){return delayedStream._handleEmit(arguments),realEmit.apply(source,arguments)},source.on("error",function(){}),delayedStream.pauseStream&&source.pause(),delayedStream},Object.defineProperty(DelayedStream.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},DelayedStream.prototype.resume=function(){this._released||this.release(),this.source.resume()},DelayedStream.prototype.pause=function(){this.source.pause()},DelayedStream.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(args2){this.emit.apply(this,args2)}.bind(this)),this._bufferedEvents=[]},DelayedStream.prototype.pipe=function(){var r=Stream.prototype.pipe.apply(this,arguments);return this.resume(),r},DelayedStream.prototype._handleEmit=function(args2){this._released?this.emit.apply(this,args2):("data"===args2[0]&&(this.dataSize+=args2[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(args2))},DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var message2="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(message2))}}},64297:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var relative2=__webpack_require__2(71017).relative;module2.exports=depd2;var basePath2=process.cwd();function containsNamespace2(str,namespace){for(var vals=str.split(/[ ,]+/),ns=String(namespace).toLowerCase(),i2=0;i20}function isignored2(namespace){return!!process.noDeprecation||containsNamespace2(process.env.NO_DEPRECATION||"",namespace)}function istraced2(namespace){return!!process.traceDeprecation||containsNamespace2(process.env.TRACE_DEPRECATION||"",namespace)}function log2(message2,site2){var haslisteners=eehaslisteners(process,"deprecation");if(haslisteners||!this._ignored){var caller,callFile,callSite,depSite,i2=0,seen=!1,stack2=getStack2(),file2=this._file;for(site2?(depSite=site2,(callSite=callSiteLocation2(stack2[1])).name=depSite.name,file2=callSite[0]):callSite=depSite=callSiteLocation2(stack2[i2=2]);i2",line=callSite.getLineNumber(),colm=callSite.getColumnNumber();callSite.isEval()&&(file2=callSite.getEvalOrigin()+", "+file2);var site2=[file2,line,colm];return site2.callSite=callSite,site2.name=callSite.getFunctionName(),site2}function defaultMessage2(site2){var callSite=site2.callSite,funcName=site2.name;funcName||(funcName="");var context=callSite.getThis(),typeName=context&&callSite.getTypeName();return"Object"===typeName&&(typeName=void 0),"Function"===typeName&&(typeName=context.name||typeName),typeName&&callSite.getMethodName()?typeName+"."+funcName:funcName}function formatPlain2(msg,caller,stack2){var formatted=(new Date).toUTCString()+" "+this._namespace+" deprecated "+msg;if(this._traced){for(var i2=0;i2{"use strict";var EventEmitter=__webpack_require__2(82361).EventEmitter,ReadStream=__webpack_require__2(57147).ReadStream,Stream=__webpack_require__2(12781),Zlib=__webpack_require__2(59796);function destroy(stream,suppress){return isFsReadStream(stream)?destroyReadStream(stream):isZlibStream(stream)?destroyZlibStream(stream):hasDestroy(stream)&&stream.destroy(),isEventEmitter(stream)&&suppress&&(stream.removeAllListeners("error"),stream.addListener("error",noop)),stream}function destroyReadStream(stream){stream.destroy(),"function"==typeof stream.close&&stream.on("open",onOpenClose)}function closeZlibStream(stream){if(!0===stream._hadError){var prop=null===stream._binding?"_binding":"_handle";stream[prop]={close:function(){this[prop]=null}}}stream.close()}function destroyZlibStream(stream){"function"==typeof stream.destroy?stream._binding?(stream.destroy(),stream._processing?(stream._needDrain=!0,stream.once("drain",onDrainClearBinding)):stream._binding.clear()):stream._destroy&&stream._destroy!==Stream.Transform.prototype._destroy?stream.destroy():stream._destroy&&"function"==typeof stream.close?(stream.destroyed=!0,stream.close()):stream.destroy():"function"==typeof stream.close&&closeZlibStream(stream)}function hasDestroy(stream){return stream instanceof Stream&&"function"==typeof stream.destroy}function isEventEmitter(val){return val instanceof EventEmitter}function isFsReadStream(stream){return stream instanceof ReadStream}function isZlibStream(stream){return stream instanceof Zlib.Gzip||stream instanceof Zlib.Gunzip||stream instanceof Zlib.Deflate||stream instanceof Zlib.DeflateRaw||stream instanceof Zlib.Inflate||stream instanceof Zlib.InflateRaw||stream instanceof Zlib.Unzip}function noop(){}function onDrainClearBinding(){this._binding.clear()}function onOpenClose(){"number"==typeof this.fd&&this.close()}module2.exports=destroy,__name(destroy,"destroy"),__name(destroyReadStream,"destroyReadStream"),__name(closeZlibStream,"closeZlibStream"),__name(destroyZlibStream,"destroyZlibStream"),__name(hasDestroy,"hasDestroy"),__name(isEventEmitter,"isEventEmitter"),__name(isFsReadStream,"isFsReadStream"),__name(isZlibStream,"isZlibStream"),__name(noop,"noop"),__name(onDrainClearBinding,"onDrainClearBinding"),__name(onOpenClose,"onOpenClose")},74223:(module2,__unused_webpack_exports2,__webpack_require__2)=>{var WritableStream=__webpack_require__2(12781).Writable||__webpack_require__2(72616).Writable,inherits=__webpack_require__2(73837).inherits,StreamSearch=__webpack_require__2(1805),PartStream=__webpack_require__2(74389),HeaderParser=__webpack_require__2(89977),B_ONEDASH=new Buffer("-"),B_CRLF=new Buffer("\r\n"),EMPTY_FN=__name(function(){},"EMPTY_FN");function Dicer(cfg){if(!(this instanceof Dicer))return new Dicer(cfg);if(WritableStream.call(this,cfg),!cfg||!cfg.headerFirst&&"string"!=typeof cfg.boundary)throw new TypeError("Boundary required");"string"==typeof cfg.boundary?this.setBoundary(cfg.boundary):this._bparser=void 0,this._headerFirst=cfg.headerFirst;var self2=this;this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts="number"==typeof cfg.partHwm?{highWaterMark:cfg.partHwm}:{},this._pause=!1,this._hparser=new HeaderParser(cfg),this._hparser.on("header",function(header){self2._inHeader=!1,self2._part.emit("header",header)})}__name(Dicer,"Dicer"),inherits(Dicer,WritableStream),Dicer.prototype.emit=function(ev){if("finish"!==ev||this._realFinish)WritableStream.prototype.emit.apply(this,arguments);else if(!this._finished){var self2=this;process.nextTick(function(){if(self2.emit("error",new Error("Unexpected end of multipart data")),self2._part&&!self2._ignoreData){var type=self2._isPreamble?"Preamble":"Part";return self2._part.emit("error",new Error(type+" terminated early due to unexpected end of multipart data")),self2._part.push(null),void process.nextTick(function(){self2._realFinish=!0,self2.emit("finish"),self2._realFinish=!1})}self2._realFinish=!0,self2.emit("finish"),self2._realFinish=!1})}},Dicer.prototype._write=function(data,encoding,cb){if(!this._hparser&&!this._bparser)return cb();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new PartStream(this._partOpts),this._events.preamble?this.emit("preamble",this._part):this._ignore());var r=this._hparser.push(data);if(this._inHeader||void 0===r||!(r{var EventEmitter=__webpack_require__2(82361).EventEmitter,inherits=__webpack_require__2(73837).inherits,StreamSearch=__webpack_require__2(1805),B_DCRLF=new Buffer("\r\n\r\n"),RE_CRLF=/\r\n/g,RE_HDR=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(cfg){EventEmitter.call(this);var self2=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=cfg&&"number"==typeof cfg.maxHeaderPairs?cfg.maxHeaderPairs:2e3,this.buffer="",this.header={},this.finished=!1,this.ss=new StreamSearch(B_DCRLF),this.ss.on("info",function(isMatch,data,start,end){data&&!self2.maxed&&(self2.nread+(end-start)>81920?(end=81920-self2.nread,self2.nread=81920):self2.nread+=end-start,81920===self2.nread&&(self2.maxed=!0),self2.buffer+=data.toString("binary",start,end)),isMatch&&self2._finish()})}__name(HeaderParser,"HeaderParser"),inherits(HeaderParser,EventEmitter),HeaderParser.prototype.push=function(data){var r=this.ss.push(data);if(this.finished)return r},HeaderParser.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()},HeaderParser.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;var header=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",header)},HeaderParser.prototype._parseHeader=function(){if(this.npairs!==this.maxHeaderPairs){for(var m,h,lines=this.buffer.split(RE_CRLF),len=lines.length,modded=!1,i2=0;i2{var inherits=__webpack_require__2(73837).inherits,ReadableStream2=__webpack_require__2(12781).Readable||__webpack_require__2(72616);function PartStream(opts){ReadableStream2.call(this,opts)}__name(PartStream,"PartStream"),inherits(PartStream,ReadableStream2),PartStream.prototype._read=function(n){},module2.exports=PartStream},79537:module2=>{module2.exports=Array.isArray||function(arr){return"[object Array]"==Object.prototype.toString.call(arr)}},45524:(module2,__unused_webpack_exports2,__webpack_require__2)=>{module2.exports=Duplex;var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)keys.push(key);return keys},util=__webpack_require__2(26156);util.inherits=__webpack_require__2(88527);var Readable=__webpack_require__2(13773),Writable=__webpack_require__2(91945);function Duplex(options){if(!(this instanceof Duplex))return new Duplex(options);Readable.call(this,options),Writable.call(this,options),options&&!1===options.readable&&(this.readable=!1),options&&!1===options.writable&&(this.writable=!1),this.allowHalfOpen=!0,options&&!1===options.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",onend)}function onend(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}function forEach(xs,f2){for(var i2=0,l=xs.length;i2{module2.exports=PassThrough;var Transform=__webpack_require__2(79038),util=__webpack_require__2(26156);function PassThrough(options){if(!(this instanceof PassThrough))return new PassThrough(options);Transform.call(this,options)}util.inherits=__webpack_require__2(88527),util.inherits(PassThrough,Transform),__name(PassThrough,"PassThrough"),PassThrough.prototype._transform=function(chunk,encoding,cb){cb(null,chunk)}},13773:(module2,__unused_webpack_exports2,__webpack_require__2)=>{module2.exports=Readable;var isArray=__webpack_require__2(79537),Buffer2=__webpack_require__2(14300).Buffer;Readable.ReadableState=ReadableState;var EE=__webpack_require__2(82361).EventEmitter;EE.listenerCount||(EE.listenerCount=function(emitter,type){return emitter.listeners(type).length});var Stream=__webpack_require__2(12781),util=__webpack_require__2(26156);util.inherits=__webpack_require__2(88527);var StringDecoder,debug=__webpack_require__2(73837);function ReadableState(options,stream){var Duplex=__webpack_require__2(45524),hwm=(options=options||{}).highWaterMark,defaultHwm=options.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:defaultHwm,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.readableObjectMode),this.defaultEncoding=options.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,options.encoding&&(StringDecoder||(StringDecoder=__webpack_require__2(23053).s),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){__webpack_require__2(45524);if(!(this instanceof Readable))return new Readable(options);this._readableState=new ReadableState(options,this),this.readable=!0,Stream.call(this)}function readableAddChunk(stream,state,chunk,encoding,addToFront){var er=chunkInvalid(state,chunk);if(er)stream.emit("error",er);else if(util.isNullOrUndefined(chunk))state.reading=!1,state.ended||onEofChunk(stream,state);else if(state.objectMode||chunk&&chunk.length>0)if(state.ended&&!addToFront){var e=new Error("stream.push() after EOF");stream.emit("error",e)}else if(state.endEmitted&&addToFront){e=new Error("stream.unshift() after end event");stream.emit("error",e)}else state.decoder&&!addToFront&&!encoding&&(chunk=state.decoder.write(chunk)),addToFront||(state.reading=!1),state.flowing&&0===state.length&&!state.sync?(stream.emit("data",chunk),stream.read(0)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream)),maybeReadMore(stream,state);else addToFront||(state.reading=!1);return needMoreData(state)}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=8388608)n=8388608;else{n--;for(var p=1;p<32;p<<=1)n|=n>>p;n++}return n}function howMuchToRead(n,state){return 0===state.length&&state.ended?0:state.objectMode?0===n?0:1:isNaN(n)||util.isNull(n)?state.flowing&&state.buffer.length?state.buffer[0].length:state.length:n<=0?0:(n>state.highWaterMark&&(state.highWaterMark=roundUpToNextPowerOf2(n)),n>state.length?state.ended?state.length:(state.needReadable=!0,0):n)}function chunkInvalid(state,chunk){var er=null;return!util.isBuffer(chunk)&&!util.isString(chunk)&&!util.isNullOrUndefined(chunk)&&!state.objectMode&&(er=new TypeError("Invalid non-string/buffer chunk")),er}function onEofChunk(stream,state){if(state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length)}state.ended=!0,emitReadable(stream)}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1,state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,state.sync?process.nextTick(function(){emitReadable_(stream)}):emitReadable_(stream))}function emitReadable_(stream){debug("emit readable"),stream.emit("readable"),flow(stream)}function maybeReadMore(stream,state){state.readingMore||(state.readingMore=!0,process.nextTick(function(){maybeReadMore_(stream,state)}))}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length=length)ret=stringMode?list.join(""):Buffer2.concat(list,length),list.length=0;else if(n0)throw new Error("endReadable called on non-empty stream");state.endEmitted||(state.ended=!0,process.nextTick(function(){!state.endEmitted&&0===state.length&&(state.endEmitted=!0,stream.readable=!1,stream.emit("end"))}))}function forEach(xs,f2){for(var i2=0,l=xs.length;i20)&&(state.emittedReadable=!1),0===n&&state.needReadable&&(state.length>=state.highWaterMark||state.ended))return debug("read: emitReadable",state.length,state.ended),0===state.length&&state.ended?endReadable(this):emitReadable(this),null;if(0===(n=howMuchToRead(n,state))&&state.ended)return 0===state.length&&endReadable(this),null;var ret,doRead=state.needReadable;return debug("need readable",doRead),(0===state.length||state.length-n0?fromList(n,state):null,util.isNull(ret)&&(state.needReadable=!0,n=0),state.length-=n,0===state.length&&!state.ended&&(state.needReadable=!0),nOrig!==n&&state.ended&&0===state.length&&endReadable(this),util.isNull(ret)||this.emit("data",ret),ret},__name(chunkInvalid,"chunkInvalid"),__name(onEofChunk,"onEofChunk"),__name(emitReadable,"emitReadable"),__name(emitReadable_,"emitReadable_"),__name(maybeReadMore,"maybeReadMore"),__name(maybeReadMore_,"maybeReadMore_"),Readable.prototype._read=function(n){this.emit("error",new Error("not implemented"))},Readable.prototype.pipe=function(dest,pipeOpts){var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest)}state.pipesCount+=1,debug("pipe count=%d opts=%j",state.pipesCount,pipeOpts);var endFn=(!pipeOpts||!1!==pipeOpts.end)&&dest!==process.stdout&&dest!==process.stderr?onend:cleanup;function onunpipe(readable){debug("onunpipe"),readable===src&&cleanup()}function onend(){debug("onend"),dest.end()}state.endEmitted?process.nextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe),__name(onunpipe,"onunpipe"),__name(onend,"onend");var ondrain=pipeOnDrain(src);function cleanup(){debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",cleanup),src.removeListener("data",ondata),state.awaitDrain&&(!dest._writableState||dest._writableState.needDrain)&&ondrain()}function ondata(chunk){debug("ondata"),!1===dest.write(chunk)&&(debug("false write response, pause",src._readableState.awaitDrain),src._readableState.awaitDrain++,src.pause())}function onerror(er){debug("onerror",er),unpipe(),dest.removeListener("error",onerror),0===EE.listenerCount(dest,"error")&&dest.emit("error",er)}function onclose(){dest.removeListener("finish",onfinish),unpipe()}function onfinish(){debug("onfinish"),dest.removeListener("close",onclose),unpipe()}function unpipe(){debug("unpipe"),src.unpipe(dest)}return dest.on("drain",ondrain),__name(cleanup,"cleanup"),src.on("data",ondata),__name(ondata,"ondata"),__name(onerror,"onerror"),dest._events&&dest._events.error?isArray(dest._events.error)?dest._events.error.unshift(onerror):dest._events.error=[onerror,dest._events.error]:dest.on("error",onerror),__name(onclose,"onclose"),dest.once("close",onclose),__name(onfinish,"onfinish"),dest.once("finish",onfinish),__name(unpipe,"unpipe"),dest.emit("pipe",src),state.flowing||(debug("pipe resume"),src.resume()),dest},__name(pipeOnDrain,"pipeOnDrain"),Readable.prototype.unpipe=function(dest){var state=this._readableState;if(0===state.pipesCount)return this;if(1===state.pipesCount)return dest&&dest!==state.pipes||(dest||(dest=state.pipes),state.pipes=null,state.pipesCount=0,state.flowing=!1,dest&&dest.emit("unpipe",this)),this;if(!dest){var dests=state.pipes,len=state.pipesCount;state.pipes=null,state.pipesCount=0,state.flowing=!1;for(var i2=0;i2{module2.exports=Transform;var Duplex=__webpack_require__2(45524),util=__webpack_require__2(26156);function TransformState(options,stream){this.afterTransform=function(er,data){return afterTransform(stream,er,data)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function afterTransform(stream,er,data){var ts=stream._transformState;ts.transforming=!1;var cb=ts.writecb;if(!cb)return stream.emit("error",new Error("no writecb in Transform class"));ts.writechunk=null,ts.writecb=null,util.isNullOrUndefined(data)||stream.push(data),cb&&cb(er);var rs=stream._readableState;rs.reading=!1,(rs.needReadable||rs.length{module2.exports=Writable;var Buffer2=__webpack_require__2(14300).Buffer;Writable.WritableState=WritableState;var util=__webpack_require__2(26156);util.inherits=__webpack_require__2(88527);var Stream=__webpack_require__2(12781);function WriteReq(chunk,encoding,cb){this.chunk=chunk,this.encoding=encoding,this.callback=cb}function WritableState(options,stream){var Duplex=__webpack_require__2(45524),hwm=(options=options||{}).highWaterMark,defaultHwm=options.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:defaultHwm,this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.writableObjectMode),this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var noDecode=!1===options.decodeStrings;this.decodeStrings=!noDecode,this.defaultEncoding=options.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(er){onwrite(stream,er)},this.writecb=null,this.writelen=0,this.buffer=[],this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function Writable(options){var Duplex=__webpack_require__2(45524);if(!(this instanceof Writable||this instanceof Duplex))return new Writable(options);this._writableState=new WritableState(options,this),this.writable=!0,Stream.call(this)}function writeAfterEnd(stream,state,cb){var er=new Error("write after end");stream.emit("error",er),process.nextTick(function(){cb(er)})}function validChunk(stream,state,chunk,cb){var valid=!0;if(!(util.isBuffer(chunk)||util.isString(chunk)||util.isNullOrUndefined(chunk)||state.objectMode)){var er=new TypeError("Invalid non-string/buffer chunk");stream.emit("error",er),process.nextTick(function(){cb(er)}),valid=!1}return valid}function decodeChunk(state,chunk,encoding){return!state.objectMode&&!1!==state.decodeStrings&&util.isString(chunk)&&(chunk=new Buffer2(chunk,encoding)),chunk}function writeOrBuffer(stream,state,chunk,encoding,cb){chunk=decodeChunk(state,chunk,encoding),util.isBuffer(chunk)&&(encoding="buffer");var len=state.objectMode?1:chunk.length;state.length+=len;var ret=state.length1){for(var cbs=[],c=0;c{(exports2=module2.exports=__webpack_require__2(13773)).Stream=__webpack_require__2(12781),exports2.Readable=exports2,exports2.Writable=__webpack_require__2(91945),exports2.Duplex=__webpack_require__2(45524),exports2.Transform=__webpack_require__2(79038),exports2.PassThrough=__webpack_require__2(37182),!process.browser&&"disable"===process.env.READABLE_STREAM&&(module2.exports=__webpack_require__2(12781))},23053:(__unused_webpack_module,exports2,__webpack_require__2)=>{var Buffer2=__webpack_require__2(14300).Buffer,isBufferEncoding=Buffer2.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding))throw new Error("Unknown encoding: "+encoding)}__name(assertEncoding,"assertEncoding");var StringDecoder=exports2.s=function(encoding){switch(this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(encoding),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new Buffer2(6),this.charReceived=0,this.charLength=0};function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3,this.charLength=this.charReceived?3:0}StringDecoder.prototype.write=function(buffer){for(var charStr="";this.charLength;){var available=buffer.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:buffer.length;if(buffer.copy(this.charBuffer,this.charReceived,0,available),this.charReceived+=available,this.charReceived=55296&&charCode<=56319)){if(this.charReceived=this.charLength=0,0===buffer.length)return charStr;break}this.charLength+=this.surrogateSize,charStr=""}this.detectIncompleteChar(buffer);var end=buffer.length;this.charLength&&(buffer.copy(this.charBuffer,0,buffer.length-this.charReceived,end),end-=this.charReceived);var charCode;end=(charStr+=buffer.toString(this.encoding,0,end)).length-1;if((charCode=charStr.charCodeAt(end))>=55296&&charCode<=56319){var size=this.surrogateSize;return this.charLength+=size,this.charReceived+=size,this.charBuffer.copy(this.charBuffer,size,0,size),buffer.copy(this.charBuffer,0,0,size),charStr.substring(0,end)}return charStr},StringDecoder.prototype.detectIncompleteChar=function(buffer){for(var i2=buffer.length>=3?3:buffer.length;i2>0;i2--){var c=buffer[buffer.length-i2];if(1==i2&&c>>5==6){this.charLength=2;break}if(i2<=2&&c>>4==14){this.charLength=3;break}if(i2<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=i2},StringDecoder.prototype.end=function(buffer){var res="";if(buffer&&buffer.length&&(res=this.write(buffer)),this.charReceived){var cr=this.charReceived,buf=this.charBuffer,enc=this.encoding;res+=buf.slice(0,cr).toString(enc)}return res},__name(passThroughWrite,"passThroughWrite"),__name(utf16DetectIncompleteChar,"utf16DetectIncompleteChar"),__name(base64DetectIncompleteChar,"base64DetectIncompleteChar")},2094:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.attributeNames=exports2.elementNames=void 0,exports2.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),exports2.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},43192:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i2=1,n=arguments.length;i20&&(tag+=render(elem.children,opts)),(opts.xmlMode||!singleTag.has(elem.name))&&(tag+="")),tag}function renderDirective(elem){return"<"+elem.data+">"}function renderText(elem,opts){var data=elem.data||"";return!1!==opts.decodeEntities&&!(!opts.xmlMode&&elem.parent&&unencodedElements.has(elem.parent.name))&&(data=entities_1.encodeXML(data)),data}function renderCdata(elem){return""}function renderComment(elem){return"\x3c!--"+elem.data+"--\x3e"}__name(renderTag,"renderTag"),__name(renderDirective,"renderDirective"),__name(renderText,"renderText"),__name(renderCdata,"renderCdata"),__name(renderComment,"renderComment")},68786:module2=>{var slice=Array.prototype.slice;function iterativelyWalk(nodes,cb){for(("length"in nodes||(nodes=[nodes]),nodes=slice.call(nodes));nodes.length;){var node=nodes.shift(),ret=cb(node);if(ret)return ret;node.childNodes&&node.childNodes.length&&(nodes=slice.call(node.childNodes).concat(nodes))}}module2.exports=iterativelyWalk,__name(iterativelyWalk,"iterativelyWalk")},76316:(__unused_webpack_module,exports2)=>{"use strict";var ElementType,ElementType2;function isTag(elem){return elem.type===ElementType.Tag||elem.type===ElementType.Script||elem.type===ElementType.Style}Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Doctype=exports2.CDATA=exports2.Tag=exports2.Style=exports2.Script=exports2.Comment=exports2.Directive=exports2.Text=exports2.Root=exports2.isTag=exports2.ElementType=void 0,(ElementType2=ElementType=exports2.ElementType||(exports2.ElementType={})).Root="root",ElementType2.Text="text",ElementType2.Directive="directive",ElementType2.Comment="comment",ElementType2.Script="script",ElementType2.Style="style",ElementType2.Tag="tag",ElementType2.CDATA="cdata",ElementType2.Doctype="doctype",__name(isTag,"isTag"),exports2.isTag=isTag,exports2.Root=ElementType.Root,exports2.Text=ElementType.Text,exports2.Directive=ElementType.Directive,exports2.Comment=ElementType.Comment,exports2.Script=ElementType.Script,exports2.Style=ElementType.Style,exports2.Tag=ElementType.Tag,exports2.CDATA=ElementType.CDATA,exports2.Doctype=ElementType.Doctype},92962:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports3){for(var p in m)"default"!==p&&!Object.prototype.hasOwnProperty.call(exports3,p)&&__createBinding(exports3,m,p)};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.DomHandler=void 0;var domelementtype_1=__webpack_require__2(76316),node_1=__webpack_require__2(93416);__exportStar(__webpack_require__2(93416),exports2);var reWhitespace=/\s+/g,defaultOpts={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},DomHandler=function(){function DomHandler2(callback,options,elementCB){this.dom=[],this.root=new node_1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof options&&(elementCB=options,options=defaultOpts),"object"==typeof callback&&(options=callback,callback=void 0),this.callback=null!=callback?callback:null,this.options=null!=options?options:defaultOpts,this.elementCB=null!=elementCB?elementCB:null}return __name(DomHandler2,"DomHandler"),DomHandler2.prototype.onparserinit=function(parser){this.parser=parser},DomHandler2.prototype.onreset=function(){this.dom=[],this.root=new node_1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},DomHandler2.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},DomHandler2.prototype.onerror=function(error){this.handleCallback(error)},DomHandler2.prototype.onclosetag=function(){this.lastNode=null;var elem=this.tagStack.pop();this.options.withEndIndices&&(elem.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(elem)},DomHandler2.prototype.onopentag=function(name,attribs){var type=this.options.xmlMode?domelementtype_1.ElementType.Tag:void 0,element=new node_1.Element(name,attribs,void 0,type);this.addNode(element),this.tagStack.push(element)},DomHandler2.prototype.ontext=function(data){var normalizeWhitespace=this.options.normalizeWhitespace,lastNode=this.lastNode;if(lastNode&&lastNode.type===domelementtype_1.ElementType.Text)normalizeWhitespace?lastNode.data=(lastNode.data+data).replace(reWhitespace," "):lastNode.data+=data,this.options.withEndIndices&&(lastNode.endIndex=this.parser.endIndex);else{normalizeWhitespace&&(data=data.replace(reWhitespace," "));var node=new node_1.Text(data);this.addNode(node),this.lastNode=node}},DomHandler2.prototype.oncomment=function(data){if(this.lastNode&&this.lastNode.type===domelementtype_1.ElementType.Comment)this.lastNode.data+=data;else{var node=new node_1.Comment(data);this.addNode(node),this.lastNode=node}},DomHandler2.prototype.oncommentend=function(){this.lastNode=null},DomHandler2.prototype.oncdatastart=function(){var text=new node_1.Text(""),node=new node_1.NodeWithChildren(domelementtype_1.ElementType.CDATA,[text]);this.addNode(node),text.parent=node,this.lastNode=text},DomHandler2.prototype.oncdataend=function(){this.lastNode=null},DomHandler2.prototype.onprocessinginstruction=function(name,data){var node=new node_1.ProcessingInstruction(name,data);this.addNode(node)},DomHandler2.prototype.handleCallback=function(error){if("function"==typeof this.callback)this.callback(error,this.dom);else if(error)throw error},DomHandler2.prototype.addNode=function(node){var parent=this.tagStack[this.tagStack.length-1],previousSibling=parent.children[parent.children.length-1];this.options.withStartIndices&&(node.startIndex=this.parser.startIndex),this.options.withEndIndices&&(node.endIndex=this.parser.endIndex),parent.children.push(node),previousSibling&&(node.prev=previousSibling,previousSibling.next=node),node.parent=parent,this.lastNode=null},DomHandler2}();exports2.DomHandler=DomHandler,exports2.default=DomHandler},93416:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=__name(function(d,b2){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d2,b3){d2.__proto__=b3}||function(d2,b3){for(var p in b3)Object.prototype.hasOwnProperty.call(b3,p)&&(d2[p]=b3[p])})(d,b2)},"extendStatics"),function(d,b2){if("function"!=typeof b2&&null!==b2)throw new TypeError("Class extends value "+String(b2)+" is not a constructor or null");function __(){this.constructor=d}extendStatics(d,b2),__name(__,"__"),d.prototype=null===b2?Object.create(b2):(__.prototype=b2.prototype,new __)}),__assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i2=1,n=arguments.length;i20?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(NodeWithChildren2.prototype,"childNodes",{get:function(){return this.children},set:function(children2){this.children=children2},enumerable:!1,configurable:!0}),NodeWithChildren2}(Node2);exports2.NodeWithChildren=NodeWithChildren;var Document2=function(_super){function Document3(children2){return _super.call(this,domelementtype_1.ElementType.Root,children2)||this}return __extends(Document3,_super),__name(Document3,"Document"),Document3}(NodeWithChildren);exports2.Document=Document2;var Element2=function(_super){function Element3(name,attribs,children2,type){void 0===children2&&(children2=[]),void 0===type&&(type="script"===name?domelementtype_1.ElementType.Script:"style"===name?domelementtype_1.ElementType.Style:domelementtype_1.ElementType.Tag);var _this=_super.call(this,type,children2)||this;return _this.name=name,_this.attribs=attribs,_this}return __extends(Element3,_super),__name(Element3,"Element"),Object.defineProperty(Element3.prototype,"tagName",{get:function(){return this.name},set:function(name){this.name=name},enumerable:!1,configurable:!0}),Object.defineProperty(Element3.prototype,"attributes",{get:function(){var _this=this;return Object.keys(this.attribs).map(function(name){var _a,_b;return{name,value:_this.attribs[name],namespace:null===(_a=_this["x-attribsNamespace"])||void 0===_a?void 0:_a[name],prefix:null===(_b=_this["x-attribsPrefix"])||void 0===_b?void 0:_b[name]}})},enumerable:!1,configurable:!0}),Element3}(NodeWithChildren);function isTag(node){return(0,domelementtype_1.isTag)(node)}function isCDATA(node){return node.type===domelementtype_1.ElementType.CDATA}function isText(node){return node.type===domelementtype_1.ElementType.Text}function isComment(node){return node.type===domelementtype_1.ElementType.Comment}function isDirective(node){return node.type===domelementtype_1.ElementType.Directive}function isDocument(node){return node.type===domelementtype_1.ElementType.Root}function hasChildren(node){return Object.prototype.hasOwnProperty.call(node,"children")}function cloneNode(node,recursive){var result;if(void 0===recursive&&(recursive=!1),isText(node))result=new Text2(node.data);else if(isComment(node))result=new Comment(node.data);else if(isTag(node)){var children2=recursive?cloneChildren(node.children):[],clone_1=new Element2(node.name,__assign({},node.attribs),children2);children2.forEach(function(child){return child.parent=clone_1}),null!=node.namespace&&(clone_1.namespace=node.namespace),node["x-attribsNamespace"]&&(clone_1["x-attribsNamespace"]=__assign({},node["x-attribsNamespace"])),node["x-attribsPrefix"]&&(clone_1["x-attribsPrefix"]=__assign({},node["x-attribsPrefix"])),result=clone_1}else if(isCDATA(node)){children2=recursive?cloneChildren(node.children):[];var clone_2=new NodeWithChildren(domelementtype_1.ElementType.CDATA,children2);children2.forEach(function(child){return child.parent=clone_2}),result=clone_2}else if(isDocument(node)){children2=recursive?cloneChildren(node.children):[];var clone_3=new Document2(children2);children2.forEach(function(child){return child.parent=clone_3}),node["x-mode"]&&(clone_3["x-mode"]=node["x-mode"]),result=clone_3}else{if(!isDirective(node))throw new Error("Not implemented yet: ".concat(node.type));var instruction=new ProcessingInstruction(node.name,node.data);null!=node["x-name"]&&(instruction["x-name"]=node["x-name"],instruction["x-publicId"]=node["x-publicId"],instruction["x-systemId"]=node["x-systemId"]),result=instruction}return result.startIndex=node.startIndex,result.endIndex=node.endIndex,null!=node.sourceCodeLocation&&(result.sourceCodeLocation=node.sourceCodeLocation),result}function cloneChildren(childs){for(var children2=childs.map(function(child){return cloneNode(child,!0)}),i2=1;i2{"use strict";var parserlib=__webpack_require__2(93671);function CSSStyleDeclaration(elt){this._element=elt}function parseStyles(s){var parser=new parserlib.css.Parser,result={property:Object.create(null),priority:Object.create(null)};return parser.addListener("property",function(e){e.invalid||(result.property[e.property.text]=e.value.text,e.important&&(result.priority[e.property.text]="important"))}),s=(""+s).replace(/^;/,""),parser.parseStyleAttribute(s),result}module2.exports=CSSStyleDeclaration,__name(CSSStyleDeclaration,"CSSStyleDeclaration"),__name(parseStyles,"parseStyles");var NO_CHANGE={};CSSStyleDeclaration.prototype=Object.create(Object.prototype,{_parsed:{get:function(){if(!this._parsedStyles||this.cssText!==this._lastParsedText){var text=this.cssText;this._parsedStyles=parseStyles(text),this._lastParsedText=text,delete this._names}return this._parsedStyles}},_serialize:{value:function(){var styles=this._parsed,s="";for(var name in styles.property)s&&(s+=" "),s+=name+": "+styles.property[name],styles.priority[name]&&(s+=" !"+styles.priority[name]),s+=";";this.cssText=s,this._lastParsedText=s,delete this._names}},cssText:{get:function(){return this._element.getAttribute("style")},set:function(value){this._element.setAttribute("style",value)}},length:{get:function(){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names.length}},item:{value:function(n){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names[n]}},getPropertyValue:{value:function(property){return property=property.toLowerCase(),this._parsed.property[property]||""}},getPropertyPriority:{value:function(property){return property=property.toLowerCase(),this._parsed.priority[property]||""}},setProperty:{value:function(property,value,priority){if(property=property.toLowerCase(),null==value&&(value=""),null==priority&&(priority=""),value!==NO_CHANGE&&(value=""+value),""!==value){if(""===priority||priority===NO_CHANGE||/^important$/i.test(priority)){var styles=this._parsed;if(value===NO_CHANGE){if(!styles.property[property])return;""!==priority?styles.priority[property]="important":delete styles.priority[property]}else{if(-1!==value.indexOf(";"))return;var newprops=parseStyles(property+":"+value);if(0===Object.getOwnPropertyNames(newprops.property).length||0!==Object.getOwnPropertyNames(newprops.priority).length)return;for(var p in newprops.property)styles.property[p]=newprops.property[p],priority!==NO_CHANGE&&(""!==priority?styles.priority[p]="important":styles.priority[p]&&delete styles.priority[p])}this._serialize()}}else this.removeProperty(property)}},setPropertyValue:{value:function(property,value){return this.setProperty(property,value,NO_CHANGE)}},setPropertyPriority:{value:function(property,priority){return this.setProperty(property,NO_CHANGE,priority)}},removeProperty:{value:function(property){property=property.toLowerCase();var styles=this._parsed;property in styles.property&&(delete styles.property[property],delete styles.priority[property],this._serialize())}}});var cssProperties={alignContent:"align-content",alignItems:"align-items",alignmentBaseline:"alignment-baseline",alignSelf:"align-self",animation:"animation",animationDelay:"animation-delay",animationDirection:"animation-direction",animationDuration:"animation-duration",animationFillMode:"animation-fill-mode",animationIterationCount:"animation-iteration-count",animationName:"animation-name",animationPlayState:"animation-play-state",animationTimingFunction:"animation-timing-function",backfaceVisibility:"backface-visibility",background:"background",backgroundAttachment:"background-attachment",backgroundClip:"background-clip",backgroundColor:"background-color",backgroundImage:"background-image",backgroundOrigin:"background-origin",backgroundPosition:"background-position",backgroundPositionX:"background-position-x",backgroundPositionY:"background-position-y",backgroundRepeat:"background-repeat",backgroundSize:"background-size",baselineShift:"baseline-shift",border:"border",borderBottom:"border-bottom",borderBottomColor:"border-bottom-color",borderBottomLeftRadius:"border-bottom-left-radius",borderBottomRightRadius:"border-bottom-right-radius",borderBottomStyle:"border-bottom-style",borderBottomWidth:"border-bottom-width",borderCollapse:"border-collapse",borderColor:"border-color",borderImage:"border-image",borderImageOutset:"border-image-outset",borderImageRepeat:"border-image-repeat",borderImageSlice:"border-image-slice",borderImageSource:"border-image-source",borderImageWidth:"border-image-width",borderLeft:"border-left",borderLeftColor:"border-left-color",borderLeftStyle:"border-left-style",borderLeftWidth:"border-left-width",borderRadius:"border-radius",borderRight:"border-right",borderRightColor:"border-right-color",borderRightStyle:"border-right-style",borderRightWidth:"border-right-width",borderSpacing:"border-spacing",borderStyle:"border-style",borderTop:"border-top",borderTopColor:"border-top-color",borderTopLeftRadius:"border-top-left-radius",borderTopRightRadius:"border-top-right-radius",borderTopStyle:"border-top-style",borderTopWidth:"border-top-width",borderWidth:"border-width",bottom:"bottom",boxShadow:"box-shadow",boxSizing:"box-sizing",breakAfter:"break-after",breakBefore:"break-before",breakInside:"break-inside",captionSide:"caption-side",clear:"clear",clip:"clip",clipPath:"clip-path",clipRule:"clip-rule",color:"color",colorInterpolationFilters:"color-interpolation-filters",columnCount:"column-count",columnFill:"column-fill",columnGap:"column-gap",columnRule:"column-rule",columnRuleColor:"column-rule-color",columnRuleStyle:"column-rule-style",columnRuleWidth:"column-rule-width",columns:"columns",columnSpan:"column-span",columnWidth:"column-width",content:"content",counterIncrement:"counter-increment",counterReset:"counter-reset",cssFloat:"float",cursor:"cursor",direction:"direction",display:"display",dominantBaseline:"dominant-baseline",emptyCells:"empty-cells",enableBackground:"enable-background",fill:"fill",fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:"filter",flex:"flex",flexBasis:"flex-basis",flexDirection:"flex-direction",flexFlow:"flex-flow",flexGrow:"flex-grow",flexShrink:"flex-shrink",flexWrap:"flex-wrap",floodColor:"flood-color",floodOpacity:"flood-opacity",font:"font",fontFamily:"font-family",fontFeatureSettings:"font-feature-settings",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",grid:"grid",gridArea:"grid-area",gridAutoColumns:"grid-auto-columns",gridAutoFlow:"grid-auto-flow",gridAutoRows:"grid-auto-rows",gridColumn:"grid-column",gridColumnEnd:"grid-column-end",gridColumnGap:"grid-column-gap",gridColumnStart:"grid-column-start",gridGap:"grid-gap",gridRow:"grid-row",gridRowEnd:"grid-row-end",gridRowGap:"grid-row-gap",gridRowStart:"grid-row-start",gridTemplate:"grid-template",gridTemplateAreas:"grid-template-areas",gridTemplateColumns:"grid-template-columns",gridTemplateRows:"grid-template-rows",height:"height",imeMode:"ime-mode",justifyContent:"justify-content",kerning:"kerning",layoutGrid:"layout-grid",layoutGridChar:"layout-grid-char",layoutGridLine:"layout-grid-line",layoutGridMode:"layout-grid-mode",layoutGridType:"layout-grid-type",left:"left",letterSpacing:"letter-spacing",lightingColor:"lighting-color",lineBreak:"line-break",lineHeight:"line-height",listStyle:"list-style",listStyleImage:"list-style-image",listStylePosition:"list-style-position",listStyleType:"list-style-type",margin:"margin",marginBottom:"margin-bottom",marginLeft:"margin-left",marginRight:"margin-right",marginTop:"margin-top",marker:"marker",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",mask:"mask",maxHeight:"max-height",maxWidth:"max-width",minHeight:"min-height",minWidth:"min-width",msContentZoomChaining:"-ms-content-zoom-chaining",msContentZooming:"-ms-content-zooming",msContentZoomLimit:"-ms-content-zoom-limit",msContentZoomLimitMax:"-ms-content-zoom-limit-max",msContentZoomLimitMin:"-ms-content-zoom-limit-min",msContentZoomSnap:"-ms-content-zoom-snap",msContentZoomSnapPoints:"-ms-content-zoom-snap-points",msContentZoomSnapType:"-ms-content-zoom-snap-type",msFlowFrom:"-ms-flow-from",msFlowInto:"-ms-flow-into",msFontFeatureSettings:"-ms-font-feature-settings",msGridColumn:"-ms-grid-column",msGridColumnAlign:"-ms-grid-column-align",msGridColumns:"-ms-grid-columns",msGridColumnSpan:"-ms-grid-column-span",msGridRow:"-ms-grid-row",msGridRowAlign:"-ms-grid-row-align",msGridRows:"-ms-grid-rows",msGridRowSpan:"-ms-grid-row-span",msHighContrastAdjust:"-ms-high-contrast-adjust",msHyphenateLimitChars:"-ms-hyphenate-limit-chars",msHyphenateLimitLines:"-ms-hyphenate-limit-lines",msHyphenateLimitZone:"-ms-hyphenate-limit-zone",msHyphens:"-ms-hyphens",msImeAlign:"-ms-ime-align",msOverflowStyle:"-ms-overflow-style",msScrollChaining:"-ms-scroll-chaining",msScrollLimit:"-ms-scroll-limit",msScrollLimitXMax:"-ms-scroll-limit-x-max",msScrollLimitXMin:"-ms-scroll-limit-x-min",msScrollLimitYMax:"-ms-scroll-limit-y-max",msScrollLimitYMin:"-ms-scroll-limit-y-min",msScrollRails:"-ms-scroll-rails",msScrollSnapPointsX:"-ms-scroll-snap-points-x",msScrollSnapPointsY:"-ms-scroll-snap-points-y",msScrollSnapType:"-ms-scroll-snap-type",msScrollSnapX:"-ms-scroll-snap-x",msScrollSnapY:"-ms-scroll-snap-y",msScrollTranslation:"-ms-scroll-translation",msTextCombineHorizontal:"-ms-text-combine-horizontal",msTextSizeAdjust:"-ms-text-size-adjust",msTouchAction:"-ms-touch-action",msTouchSelect:"-ms-touch-select",msUserSelect:"-ms-user-select",msWrapFlow:"-ms-wrap-flow",msWrapMargin:"-ms-wrap-margin",msWrapThrough:"-ms-wrap-through",opacity:"opacity",order:"order",orphans:"orphans",outline:"outline",outlineColor:"outline-color",outlineOffset:"outline-offset",outlineStyle:"outline-style",outlineWidth:"outline-width",overflow:"overflow",overflowX:"overflow-x",overflowY:"overflow-y",padding:"padding",paddingBottom:"padding-bottom",paddingLeft:"padding-left",paddingRight:"padding-right",paddingTop:"padding-top",page:"page",pageBreakAfter:"page-break-after",pageBreakBefore:"page-break-before",pageBreakInside:"page-break-inside",perspective:"perspective",perspectiveOrigin:"perspective-origin",pointerEvents:"pointer-events",position:"position",quotes:"quotes",right:"right",rotate:"rotate",rubyAlign:"ruby-align",rubyOverhang:"ruby-overhang",rubyPosition:"ruby-position",scale:"scale",size:"size",stopColor:"stop-color",stopOpacity:"stop-opacity",stroke:"stroke",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tableLayout:"table-layout",textAlign:"text-align",textAlignLast:"text-align-last",textAnchor:"text-anchor",textDecoration:"text-decoration",textIndent:"text-indent",textJustify:"text-justify",textKashida:"text-kashida",textKashidaSpace:"text-kashida-space",textOverflow:"text-overflow",textShadow:"text-shadow",textTransform:"text-transform",textUnderlinePosition:"text-underline-position",top:"top",touchAction:"touch-action",transform:"transform",transformOrigin:"transform-origin",transformStyle:"transform-style",transition:"transition",transitionDelay:"transition-delay",transitionDuration:"transition-duration",transitionProperty:"transition-property",transitionTimingFunction:"transition-timing-function",translate:"translate",unicodeBidi:"unicode-bidi",verticalAlign:"vertical-align",visibility:"visibility",webkitAlignContent:"-webkit-align-content",webkitAlignItems:"-webkit-align-items",webkitAlignSelf:"-webkit-align-self",webkitAnimation:"-webkit-animation",webkitAnimationDelay:"-webkit-animation-delay",webkitAnimationDirection:"-webkit-animation-direction",webkitAnimationDuration:"-webkit-animation-duration",webkitAnimationFillMode:"-webkit-animation-fill-mode",webkitAnimationIterationCount:"-webkit-animation-iteration-count",webkitAnimationName:"-webkit-animation-name",webkitAnimationPlayState:"-webkit-animation-play-state",webkitAnimationTimingFunction:"-webkit-animation-timing-funciton",webkitAppearance:"-webkit-appearance",webkitBackfaceVisibility:"-webkit-backface-visibility",webkitBackgroundClip:"-webkit-background-clip",webkitBackgroundOrigin:"-webkit-background-origin",webkitBackgroundSize:"-webkit-background-size",webkitBorderBottomLeftRadius:"-webkit-border-bottom-left-radius",webkitBorderBottomRightRadius:"-webkit-border-bottom-right-radius",webkitBorderImage:"-webkit-border-image",webkitBorderRadius:"-webkit-border-radius",webkitBorderTopLeftRadius:"-webkit-border-top-left-radius",webkitBorderTopRightRadius:"-webkit-border-top-right-radius",webkitBoxAlign:"-webkit-box-align",webkitBoxDirection:"-webkit-box-direction",webkitBoxFlex:"-webkit-box-flex",webkitBoxOrdinalGroup:"-webkit-box-ordinal-group",webkitBoxOrient:"-webkit-box-orient",webkitBoxPack:"-webkit-box-pack",webkitBoxSizing:"-webkit-box-sizing",webkitColumnBreakAfter:"-webkit-column-break-after",webkitColumnBreakBefore:"-webkit-column-break-before",webkitColumnBreakInside:"-webkit-column-break-inside",webkitColumnCount:"-webkit-column-count",webkitColumnGap:"-webkit-column-gap",webkitColumnRule:"-webkit-column-rule",webkitColumnRuleColor:"-webkit-column-rule-color",webkitColumnRuleStyle:"-webkit-column-rule-style",webkitColumnRuleWidth:"-webkit-column-rule-width",webkitColumns:"-webkit-columns",webkitColumnSpan:"-webkit-column-span",webkitColumnWidth:"-webkit-column-width",webkitFilter:"-webkit-filter",webkitFlex:"-webkit-flex",webkitFlexBasis:"-webkit-flex-basis",webkitFlexDirection:"-webkit-flex-direction",webkitFlexFlow:"-webkit-flex-flow",webkitFlexGrow:"-webkit-flex-grow",webkitFlexShrink:"-webkit-flex-shrink",webkitFlexWrap:"-webkit-flex-wrap",webkitJustifyContent:"-webkit-justify-content",webkitOrder:"-webkit-order",webkitPerspective:"-webkit-perspective-origin",webkitPerspectiveOrigin:"-webkit-perspective-origin",webkitTapHighlightColor:"-webkit-tap-highlight-color",webkitTextFillColor:"-webkit-text-fill-color",webkitTextSizeAdjust:"-webkit-text-size-adjust",webkitTextStroke:"-webkit-text-stroke",webkitTextStrokeColor:"-webkit-text-stroke-color",webkitTextStrokeWidth:"-webkit-text-stroke-width",webkitTransform:"-webkit-transform",webkitTransformOrigin:"-webkit-transform-origin",webkitTransformStyle:"-webkit-transform-style",webkitTransition:"-webkit-transition",webkitTransitionDelay:"-webkit-transition-delay",webkitTransitionDuration:"-webkit-transition-duration",webkitTransitionProperty:"-webkit-transition-property",webkitTransitionTimingFunction:"-webkit-transition-timing-function",webkitUserModify:"-webkit-user-modify",webkitUserSelect:"-webkit-user-select",webkitWritingMode:"-webkit-writing-mode",whiteSpace:"white-space",widows:"widows",width:"width",wordBreak:"word-break",wordSpacing:"word-spacing",wordWrap:"word-wrap",writingMode:"writing-mode",zIndex:"z-index",zoom:"zoom",resize:"resize",userSelect:"user-select"};for(var prop in cssProperties)defineStyleProperty(prop);function defineStyleProperty(jsname){var cssname=cssProperties[jsname];Object.defineProperty(CSSStyleDeclaration.prototype,jsname,{get:function(){return this.getPropertyValue(cssname)},set:function(value){this.setProperty(cssname,value)}}),CSSStyleDeclaration.prototype.hasOwnProperty(cssname)||Object.defineProperty(CSSStyleDeclaration.prototype,cssname,{get:function(){return this.getPropertyValue(cssname)},set:function(value){this.setProperty(cssname,value)}})}__name(defineStyleProperty,"defineStyleProperty")},61534:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=CharacterData;var Leaf=__webpack_require__2(15869),utils=__webpack_require__2(59510),ChildNode=__webpack_require__2(90696),NonDocumentTypeChildNode=__webpack_require__2(76859);function CharacterData(){Leaf.call(this)}__name(CharacterData,"CharacterData"),CharacterData.prototype=Object.create(Leaf.prototype,{substringData:{value:__name(function(offset,count){if(arguments.length<2)throw new TypeError("Not enough arguments");return count>>>=0,((offset>>>=0)>this.data.length||offset<0||count<0)&&utils.IndexSizeError(),this.data.substring(offset,offset+count)},"substringData")},appendData:{value:__name(function(data){if(arguments.length<1)throw new TypeError("Not enough arguments");this.data+=String(data)},"appendData")},insertData:{value:__name(function(offset,data){return this.replaceData(offset,0,data)},"insertData")},deleteData:{value:__name(function(offset,count){return this.replaceData(offset,count,"")},"deleteData")},replaceData:{value:__name(function(offset,count,data){var curtext=this.data,len=curtext.length;offset>>>=0,count>>>=0,data=String(data),(offset>len||offset<0)&&utils.IndexSizeError(),offset+count>len&&(count=len-offset);var prefix=curtext.substring(0,offset),suffix=curtext.substring(offset+count);this.data=prefix+data+suffix},"replaceData")},isEqual:{value:__name(function(n){return this._data===n._data},"isEqual")},length:{get:function(){return this.data.length}}}),Object.defineProperties(CharacterData.prototype,ChildNode),Object.defineProperties(CharacterData.prototype,NonDocumentTypeChildNode)},90696:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var Node2=__webpack_require__2(20416),LinkedList=__webpack_require__2(20889),createDocumentFragmentFromArguments=__name(function(document2,args2){for(var docFrag=document2.createDocumentFragment(),i2=0;i2{"use strict";module2.exports=Comment;var Node2=__webpack_require__2(20416),CharacterData=__webpack_require__2(61534);function Comment(doc,data){CharacterData.call(this),this.nodeType=Node2.COMMENT_NODE,this.ownerDocument=doc,this._data=data}__name(Comment,"Comment");var nodeValue={get:function(){return this._data},set:function(v){v=null==v?"":String(v),this._data=v,this.rooted&&this.ownerDocument.mutateValue(this)}};Comment.prototype=Object.create(CharacterData.prototype,{nodeName:{value:"#comment"},nodeValue,textContent:nodeValue,data:{get:nodeValue.get,set:function(v){nodeValue.set.call(this,null===v?"":String(v))}},clone:{value:__name(function(){return new Comment(this.ownerDocument,this._data)},"clone")}})},76941:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=ContainerNode;var Node2=__webpack_require__2(20416),NodeList=__webpack_require__2(277);function ContainerNode(){Node2.call(this),this._firstChild=this._childNodes=null}__name(ContainerNode,"ContainerNode"),ContainerNode.prototype=Object.create(Node2.prototype,{hasChildNodes:{value:function(){return this._childNodes?this._childNodes.length>0:null!==this._firstChild}},childNodes:{get:function(){return this._ensureChildNodes(),this._childNodes}},firstChild:{get:function(){return this._childNodes?0===this._childNodes.length?null:this._childNodes[0]:this._firstChild}},lastChild:{get:function(){var first,kids=this._childNodes;return kids?0===kids.length?null:kids[kids.length-1]:null===(first=this._firstChild)?null:first._previousSibling}},_ensureChildNodes:{value:function(){if(!this._childNodes){var first=this._firstChild,kid=first,childNodes=this._childNodes=new NodeList;if(first)do{childNodes.push(kid),kid=kid._nextSibling}while(kid!==first);this._firstChild=null}}},removeChildren:{value:__name(function(){for(var kid,root=this.rooted?this.ownerDocument:null,next=this.firstChild;null!==next;)next=(kid=next).nextSibling,root&&root.mutateRemove(kid),kid.parentNode=null;this._childNodes?this._childNodes.length=0:this._firstChild=null,this.modify()},"removeChildren")}})},10466:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=CustomEvent;var Event=__webpack_require__2(82339);function CustomEvent(type,dictionary){Event.call(this,type,dictionary)}__name(CustomEvent,"CustomEvent"),CustomEvent.prototype=Object.create(Event.prototype,{constructor:{value:CustomEvent}})},37018:module2=>{"use strict";module2.exports=DOMException2;var names=[null,"INDEX_SIZE_ERR",null,"HIERARCHY_REQUEST_ERR","WRONG_DOCUMENT_ERR","INVALID_CHARACTER_ERR",null,"NO_MODIFICATION_ALLOWED_ERR","NOT_FOUND_ERR","NOT_SUPPORTED_ERR","INUSE_ATTRIBUTE_ERR","INVALID_STATE_ERR","SYNTAX_ERR","INVALID_MODIFICATION_ERR","NAMESPACE_ERR","INVALID_ACCESS_ERR",null,"TYPE_MISMATCH_ERR","SECURITY_ERR","NETWORK_ERR","ABORT_ERR","URL_MISMATCH_ERR","QUOTA_EXCEEDED_ERR","TIMEOUT_ERR","INVALID_NODE_TYPE_ERR","DATA_CLONE_ERR"],messages=[null,"INDEX_SIZE_ERR (1): the index is not in the allowed range",null,"HIERARCHY_REQUEST_ERR (3): the operation would yield an incorrect nodes model","WRONG_DOCUMENT_ERR (4): the object is in the wrong Document, a call to importNode is required","INVALID_CHARACTER_ERR (5): the string contains invalid characters",null,"NO_MODIFICATION_ALLOWED_ERR (7): the object can not be modified","NOT_FOUND_ERR (8): the object can not be found here","NOT_SUPPORTED_ERR (9): this operation is not supported","INUSE_ATTRIBUTE_ERR (10): setAttributeNode called on owned Attribute","INVALID_STATE_ERR (11): the object is in an invalid state","SYNTAX_ERR (12): the string did not match the expected pattern","INVALID_MODIFICATION_ERR (13): the object can not be modified in this way","NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML","INVALID_ACCESS_ERR (15): the object does not support the operation or argument",null,"TYPE_MISMATCH_ERR (17): the type of the object does not match the expected type","SECURITY_ERR (18): the operation is insecure","NETWORK_ERR (19): a network error occurred","ABORT_ERR (20): the user aborted an operation","URL_MISMATCH_ERR (21): the given URL does not match another URL","QUOTA_EXCEEDED_ERR (22): the quota has been exceeded","TIMEOUT_ERR (23): a timeout occurred","INVALID_NODE_TYPE_ERR (24): the supplied node is invalid or has an invalid ancestor for this operation","DATA_CLONE_ERR (25): the object can not be cloned."],constants={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25};function DOMException2(code2){Error.call(this),Error.captureStackTrace(this,this.constructor),this.code=code2,this.message=messages[code2],this.name=names[code2]}for(var c in __name(DOMException2,"DOMException"),DOMException2.prototype.__proto__=Error.prototype,constants){var v={value:constants[c]};Object.defineProperty(DOMException2,c,v),Object.defineProperty(DOMException2.prototype,c,v)}},35301:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=DOMImplementation;var Document2=__webpack_require__2(69096),DocumentType=__webpack_require__2(78973),HTMLParser=__webpack_require__2(96149),utils=__webpack_require__2(59510),xml=__webpack_require__2(66083);function DOMImplementation(contextObject){this.contextObject=contextObject}__name(DOMImplementation,"DOMImplementation");var supportedFeatures={xml:{"":!0,"1.0":!0,"2.0":!0},core:{"":!0,"2.0":!0},html:{"":!0,"1.0":!0,"2.0":!0},xhtml:{"":!0,"1.0":!0,"2.0":!0}};DOMImplementation.prototype={hasFeature:__name(function(feature,version){var f2=supportedFeatures[(feature||"").toLowerCase()];return f2&&f2[version||""]||!1},"hasFeature"),createDocumentType:__name(function(qualifiedName,publicId,systemId){return xml.isValidQName(qualifiedName)||utils.InvalidCharacterError(),new DocumentType(this.contextObject,qualifiedName,publicId,systemId)},"createDocumentType"),createDocument:__name(function(namespace,qualifiedName,doctype){var e,d=new Document2(!1,null);return e=qualifiedName?d.createElementNS(namespace,qualifiedName):null,doctype&&d.appendChild(doctype),e&&d.appendChild(e),namespace===utils.NAMESPACE.HTML?d._contentType="application/xhtml+xml":namespace===utils.NAMESPACE.SVG?d._contentType="image/svg+xml":d._contentType="application/xml",d},"createDocument"),createHTMLDocument:__name(function(titleText){var d=new Document2(!0,null);d.appendChild(new DocumentType(d,"html"));var html=d.createElement("html");d.appendChild(html);var head=d.createElement("head");if(html.appendChild(head),void 0!==titleText){var title=d.createElement("title");head.appendChild(title),title.appendChild(d.createTextNode(titleText))}return html.appendChild(d.createElement("body")),d.modclock=1,d},"createHTMLDocument"),mozSetOutputMutationHandler:function(doc,handler){doc.mutationHandler=handler},mozGetInputMutationHandler:function(doc){utils.nyi()},mozHTMLParser:HTMLParser}},94995:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(59510);function DOMTokenList(getter,setter){this._getString=getter,this._setString=setter,this._length=0,this._lastStringValue="",this._update()}function fixIndex(clist,list){var i2,oldLength=clist._length;for(clist._length=list.length,i2=0;i2=list.length?null:list[index]}},contains:{value:function(token){return token=String(token),getList(this).indexOf(token)>-1}},add:{value:function(){for(var list=getList(this),i2=0,len=arguments.length;i2-1&&list.splice(index,1)}this._update(list)}},toggle:{value:__name(function(token,force){return token=handleErrors(token),this.contains(token)?void 0!==force&&!1!==force||(this.remove(token),!1):(void 0===force||!0===force)&&(this.add(token),!0)},"toggle")},replace:{value:__name(function(token,newToken){""===String(newToken)&&utils.SyntaxError(),token=handleErrors(token),newToken=handleErrors(newToken);var list=getList(this),idx=list.indexOf(token);if(idx<0)return!1;var idx2=list.indexOf(newToken);return idx2<0?list[idx]=newToken:idx{"use strict";module2.exports=Document2;var Node2=__webpack_require__2(20416),NodeList=__webpack_require__2(277),ContainerNode=__webpack_require__2(76941),Element2=__webpack_require__2(23713),Text2=__webpack_require__2(44762),Comment=__webpack_require__2(42054),Event=__webpack_require__2(82339),DocumentFragment2=__webpack_require__2(46627),ProcessingInstruction=__webpack_require__2(41289),DOMImplementation=__webpack_require__2(35301),TreeWalker=__webpack_require__2(52553),NodeIterator=__webpack_require__2(39339),NodeFilter2=__webpack_require__2(88495),URL2=__webpack_require__2(19910),select=__webpack_require__2(92855),events=__webpack_require__2(52670),xml=__webpack_require__2(66083),html=__webpack_require__2(46620),svg=__webpack_require__2(60548),utils=__webpack_require__2(59510),MUTATE=__webpack_require__2(84091),NAMESPACE=utils.NAMESPACE,isApiWritable=__webpack_require__2(35009).S;function Document2(isHTML,address){ContainerNode.call(this),this.nodeType=Node2.DOCUMENT_NODE,this.isHTML=isHTML,this._address=address||"about:blank",this.readyState="loading",this.implementation=new DOMImplementation(this),this.ownerDocument=null,this._contentType=isHTML?"text/html":"application/xml",this.doctype=null,this.documentElement=null,this._templateDocCache=null,this._nodeIterators=null,this._nid=1,this._nextnid=2,this._nodes=[null,this],this.byId=Object.create(null),this.modclock=0}__name(Document2,"Document");var supportedEvents={event:"Event",customevent:"CustomEvent",uievent:"UIEvent",mouseevent:"MouseEvent"},replacementEvent={events:"event",htmlevents:"event",mouseevents:"mouseevent",mutationevents:"mutationevent",uievents:"uievent"},mirrorAttr=__name(function(f2,name,defaultValue){return{get:function(){var o=f2.call(this);return o?o[name]:defaultValue},set:function(value){var o=f2.call(this);o&&(o[name]=value)}}},"mirrorAttr");function validateAndExtract(namespace,qualifiedName){var prefix,localName,pos;return""===namespace&&(namespace=null),xml.isValidQName(qualifiedName)||utils.InvalidCharacterError(),prefix=null,localName=qualifiedName,(pos=qualifiedName.indexOf(":"))>=0&&(prefix=qualifiedName.substring(0,pos),localName=qualifiedName.substring(pos+1)),null!==prefix&&null===namespace&&utils.NamespaceError(),"xml"===prefix&&namespace!==NAMESPACE.XML&&utils.NamespaceError(),("xmlns"===prefix||"xmlns"===qualifiedName)&&namespace!==NAMESPACE.XMLNS&&utils.NamespaceError(),namespace===NAMESPACE.XMLNS&&!("xmlns"===prefix||"xmlns"===qualifiedName)&&utils.NamespaceError(),{namespace,prefix,localName}}__name(validateAndExtract,"validateAndExtract"),Document2.prototype=Object.create(ContainerNode.prototype,{_setMutationHandler:{value:function(handler){this.mutationHandler=handler}},_dispatchRendererEvent:{value:function(targetNid,type,details){var target=this._nodes[targetNid];!target||target._dispatchEvent(new Event(type,details),!0)}},nodeName:{value:"#document"},nodeValue:{get:function(){return null},set:function(){}},documentURI:{get:function(){return this._address},set:utils.nyi},compatMode:{get:function(){return this._quirks?"BackCompat":"CSS1Compat"}},createTextNode:{value:function(data){return new Text2(this,String(data))}},createComment:{value:function(data){return new Comment(this,data)}},createDocumentFragment:{value:function(){return new DocumentFragment2(this)}},createProcessingInstruction:{value:function(target,data){return(!xml.isValidName(target)||-1!==data.indexOf("?>"))&&utils.InvalidCharacterError(),new ProcessingInstruction(this,target,data)}},createAttribute:{value:function(localName){return localName=String(localName),xml.isValidName(localName)||utils.InvalidCharacterError(),this.isHTML&&(localName=utils.toASCIILowerCase(localName)),new Element2._Attr(null,localName,null,null,"")}},createAttributeNS:{value:function(namespace,qualifiedName){var ve=validateAndExtract(namespace=null==namespace||""===namespace?null:String(namespace),qualifiedName=String(qualifiedName));return new Element2._Attr(null,ve.localName,ve.prefix,ve.namespace,"")}},createElement:{value:function(localName){return localName=String(localName),xml.isValidName(localName)||utils.InvalidCharacterError(),this.isHTML?(/[A-Z]/.test(localName)&&(localName=utils.toASCIILowerCase(localName)),html.createElement(this,localName,null)):"application/xhtml+xml"===this.contentType?html.createElement(this,localName,null):new Element2(this,localName,null,null)},writable:isApiWritable},createElementNS:{value:function(namespace,qualifiedName){var ve=validateAndExtract(namespace=null==namespace||""===namespace?null:String(namespace),qualifiedName=String(qualifiedName));return this._createElementNS(ve.localName,ve.namespace,ve.prefix)},writable:isApiWritable},_createElementNS:{value:function(localName,namespace,prefix){return namespace===NAMESPACE.HTML?html.createElement(this,localName,prefix):namespace===NAMESPACE.SVG?svg.createElement(this,localName,prefix):new Element2(this,localName,namespace,prefix)}},createEvent:{value:__name(function(interfaceName){interfaceName=interfaceName.toLowerCase();var name=replacementEvent[interfaceName]||interfaceName,constructor=events[supportedEvents[name]];if(constructor){var e=new constructor;return e._initialized=!1,e}utils.NotSupportedError()},"createEvent")},createTreeWalker:{value:function(root2,whatToShow,filter){if(!root2)throw new TypeError("root argument is required");if(!(root2 instanceof Node2))throw new TypeError("root not a node");return whatToShow=void 0===whatToShow?NodeFilter2.SHOW_ALL:+whatToShow,new TreeWalker(root2,whatToShow,filter=void 0===filter?null:filter)}},createNodeIterator:{value:function(root2,whatToShow,filter){if(!root2)throw new TypeError("root argument is required");if(!(root2 instanceof Node2))throw new TypeError("root not a node");return whatToShow=void 0===whatToShow?NodeFilter2.SHOW_ALL:+whatToShow,new NodeIterator(root2,whatToShow,filter=void 0===filter?null:filter)}},_attachNodeIterator:{value:function(ni){this._nodeIterators||(this._nodeIterators=[]),this._nodeIterators.push(ni)}},_detachNodeIterator:{value:function(ni){var idx=this._nodeIterators.indexOf(ni);this._nodeIterators.splice(idx,1)}},_preremoveNodeIterators:{value:function(toBeRemoved){this._nodeIterators&&this._nodeIterators.forEach(function(ni){ni._preremove(toBeRemoved)})}},_updateDocTypeElement:{value:__name(function(){this.doctype=this.documentElement=null;for(var kid=this.firstChild;null!==kid;kid=kid.nextSibling)kid.nodeType===Node2.DOCUMENT_TYPE_NODE?this.doctype=kid:kid.nodeType===Node2.ELEMENT_NODE&&(this.documentElement=kid)},"_updateDocTypeElement")},insertBefore:{value:__name(function(child,refChild){return Node2.prototype.insertBefore.call(this,child,refChild),this._updateDocTypeElement(),child},"insertBefore")},replaceChild:{value:__name(function(node,child){return Node2.prototype.replaceChild.call(this,node,child),this._updateDocTypeElement(),child},"replaceChild")},removeChild:{value:__name(function(child){return Node2.prototype.removeChild.call(this,child),this._updateDocTypeElement(),child},"removeChild")},getElementById:{value:function(id){var n=this.byId[id];return n?n instanceof MultiId?n.getFirst():n:null}},_hasMultipleElementsWithId:{value:function(id){return this.byId[id]instanceof MultiId}},getElementsByName:{value:Element2.prototype.getElementsByName},getElementsByTagName:{value:Element2.prototype.getElementsByTagName},getElementsByTagNameNS:{value:Element2.prototype.getElementsByTagNameNS},getElementsByClassName:{value:Element2.prototype.getElementsByClassName},adoptNode:{value:__name(function(node){return node.nodeType===Node2.DOCUMENT_NODE&&utils.NotSupportedError(),node.nodeType===Node2.ATTRIBUTE_NODE||(node.parentNode&&node.parentNode.removeChild(node),node.ownerDocument!==this&&recursivelySetOwner(node,this)),node},"adoptNode")},importNode:{value:__name(function(node,deep){return this.adoptNode(node.cloneNode(deep))},"importNode"),writable:isApiWritable},origin:{get:__name(function(){return null},"origin")},characterSet:{get:__name(function(){return"UTF-8"},"characterSet")},contentType:{get:__name(function(){return this._contentType},"contentType")},URL:{get:__name(function(){return this._address},"URL")},domain:{get:utils.nyi,set:utils.nyi},referrer:{get:utils.nyi},cookie:{get:utils.nyi,set:utils.nyi},lastModified:{get:utils.nyi},location:{get:function(){return this.defaultView?this.defaultView.location:null},set:utils.nyi},_titleElement:{get:function(){return this.getElementsByTagName("title").item(0)||null}},title:{get:function(){var elt=this._titleElement;return(elt?elt.textContent:"").replace(/[ \t\n\r\f]+/g," ").replace(/(^ )|( $)/g,"")},set:function(value){var elt=this._titleElement,head=this.head;!elt&&!head||(elt||(elt=this.createElement("title"),head.appendChild(elt)),elt.textContent=value)}},dir:mirrorAttr(function(){var htmlElement=this.documentElement;if(htmlElement&&"HTML"===htmlElement.tagName)return htmlElement},"dir",""),fgColor:mirrorAttr(function(){return this.body},"text",""),linkColor:mirrorAttr(function(){return this.body},"link",""),vlinkColor:mirrorAttr(function(){return this.body},"vLink",""),alinkColor:mirrorAttr(function(){return this.body},"aLink",""),bgColor:mirrorAttr(function(){return this.body},"bgColor",""),charset:{get:function(){return this.characterSet}},inputEncoding:{get:function(){return this.characterSet}},scrollingElement:{get:function(){return this._quirks?this.body:this.documentElement}},body:{get:function(){return namedHTMLChild(this.documentElement,"body")},set:utils.nyi},head:{get:function(){return namedHTMLChild(this.documentElement,"head")}},images:{get:utils.nyi},embeds:{get:utils.nyi},plugins:{get:utils.nyi},links:{get:utils.nyi},forms:{get:utils.nyi},scripts:{get:utils.nyi},applets:{get:function(){return[]}},activeElement:{get:function(){return null}},innerHTML:{get:function(){return this.serialize()},set:utils.nyi},outerHTML:{get:function(){return this.serialize()},set:utils.nyi},write:{value:function(args2){if(this.isHTML||utils.InvalidStateError(),this._parser){this._parser;var s=arguments.join("");this._parser.parse(s)}}},writeln:{value:__name(function(args2){this.write(Array.prototype.join.call(arguments,"")+"\n")},"writeln")},open:{value:function(){this.documentElement=null}},close:{value:function(){this.readyState="interactive",this._dispatchEvent(new Event("readystatechange"),!0),this._dispatchEvent(new Event("DOMContentLoaded"),!0),this.readyState="complete",this._dispatchEvent(new Event("readystatechange"),!0),this.defaultView&&this.defaultView._dispatchEvent(new Event("load"),!0)}},clone:{value:__name(function(){var d=new Document2(this.isHTML,this._address);return d._quirks=this._quirks,d._contentType=this._contentType,d},"clone")},cloneNode:{value:__name(function(deep){var clone=Node2.prototype.cloneNode.call(this,!1);if(deep)for(var kid=this.firstChild;null!==kid;kid=kid.nextSibling)clone._appendChild(clone.importNode(kid,!0));return clone._updateDocTypeElement(),clone},"cloneNode")},isEqual:{value:__name(function(n){return!0},"isEqual")},mutateValue:{value:function(node){this.mutationHandler&&this.mutationHandler({type:MUTATE.VALUE,target:node,data:node.data})}},mutateAttr:{value:function(attr,oldval){this.mutationHandler&&this.mutationHandler({type:MUTATE.ATTR,target:attr.ownerElement,attr})}},mutateRemoveAttr:{value:function(attr){this.mutationHandler&&this.mutationHandler({type:MUTATE.REMOVE_ATTR,target:attr.ownerElement,attr})}},mutateRemove:{value:function(node){this.mutationHandler&&this.mutationHandler({type:MUTATE.REMOVE,target:node.parentNode,node}),recursivelyUproot(node)}},mutateInsert:{value:function(node){recursivelyRoot(node),this.mutationHandler&&this.mutationHandler({type:MUTATE.INSERT,target:node.parentNode,node})}},mutateMove:{value:function(node){this.mutationHandler&&this.mutationHandler({type:MUTATE.MOVE,target:node})}},addId:{value:__name(function(id,n){var val=this.byId[id];val?(val instanceof MultiId||(val=new MultiId(val),this.byId[id]=val),val.add(n)):this.byId[id]=n},"addId")},delId:{value:__name(function(id,n){var val=this.byId[id];utils.assert(val),val instanceof MultiId?(val.del(n),1===val.length&&(this.byId[id]=val.downgrade())):this.byId[id]=void 0},"delId")},_resolve:{value:function(href){return new URL2(this._documentBaseURL).resolve(href)}},_documentBaseURL:{get:function(){var url=this._address;"about:blank"===url&&(url="/");var base=this.querySelector("base[href]");return base?new URL2(url).resolve(base.getAttribute("href")):url}},_templateDoc:{get:function(){if(!this._templateDocCache){var newDoc=new Document2(this.isHTML,this._address);this._templateDocCache=newDoc._templateDocCache=newDoc}return this._templateDocCache}},querySelector:{value:function(selector){return select(selector,this)[0]}},querySelectorAll:{value:function(selector){var nodes=select(selector,this);return nodes.item?nodes:new NodeList(nodes)}}});function namedHTMLChild(parent,name){if(parent&&parent.isHTML)for(var kid=parent.firstChild;null!==kid;kid=kid.nextSibling)if(kid.nodeType===Node2.ELEMENT_NODE&&kid.localName===name&&kid.namespaceURI===NAMESPACE.HTML)return kid;return null}function root(n){if(n._nid=n.ownerDocument._nextnid++,n.ownerDocument._nodes[n._nid]=n,n.nodeType===Node2.ELEMENT_NODE){var id=n.getAttribute("id");id&&n.ownerDocument.addId(id,n),n._roothook&&n._roothook()}}function uproot(n){if(n.nodeType===Node2.ELEMENT_NODE){var id=n.getAttribute("id");id&&n.ownerDocument.delId(id,n)}n.ownerDocument._nodes[n._nid]=void 0,n._nid=void 0}function recursivelyRoot(node){if(root(node),node.nodeType===Node2.ELEMENT_NODE)for(var kid=node.firstChild;null!==kid;kid=kid.nextSibling)recursivelyRoot(kid)}function recursivelyUproot(node){uproot(node);for(var kid=node.firstChild;null!==kid;kid=kid.nextSibling)recursivelyUproot(kid)}function recursivelySetOwner(node,owner){node.ownerDocument=owner,node._lastModTime=void 0,Object.prototype.hasOwnProperty.call(node,"_tagName")&&(node._tagName=void 0);for(var kid=node.firstChild;null!==kid;kid=kid.nextSibling)recursivelySetOwner(kid,owner)}function MultiId(node){this.nodes=Object.create(null),this.nodes[node._nid]=node,this.length=1,this.firstNode=void 0}["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"].forEach(function(type){Object.defineProperty(Document2.prototype,"on"+type,{get:function(){return this._getEventHandler(type)},set:function(v){this._setEventHandler(type,v)}})}),__name(namedHTMLChild,"namedHTMLChild"),__name(root,"root"),__name(uproot,"uproot"),__name(recursivelyRoot,"recursivelyRoot"),__name(recursivelyUproot,"recursivelyUproot"),__name(recursivelySetOwner,"recursivelySetOwner"),__name(MultiId,"MultiId"),MultiId.prototype.add=function(node){this.nodes[node._nid]||(this.nodes[node._nid]=node,this.length++,this.firstNode=void 0)},MultiId.prototype.del=function(node){this.nodes[node._nid]&&(delete this.nodes[node._nid],this.length--,this.firstNode=void 0)},MultiId.prototype.getFirst=function(){var nid;if(!this.firstNode)for(nid in this.nodes)(void 0===this.firstNode||this.firstNode.compareDocumentPosition(this.nodes[nid])&Node2.DOCUMENT_POSITION_PRECEDING)&&(this.firstNode=this.nodes[nid]);return this.firstNode},MultiId.prototype.downgrade=function(){var nid;if(1===this.length)for(nid in this.nodes)return this.nodes[nid];return this}},46627:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=DocumentFragment2;var Node2=__webpack_require__2(20416),NodeList=__webpack_require__2(277),ContainerNode=__webpack_require__2(76941),Element2=__webpack_require__2(23713),select=__webpack_require__2(92855),utils=__webpack_require__2(59510);function DocumentFragment2(doc){ContainerNode.call(this),this.nodeType=Node2.DOCUMENT_FRAGMENT_NODE,this.ownerDocument=doc}__name(DocumentFragment2,"DocumentFragment"),DocumentFragment2.prototype=Object.create(ContainerNode.prototype,{nodeName:{value:"#document-fragment"},nodeValue:{get:function(){return null},set:function(){}},textContent:Object.getOwnPropertyDescriptor(Element2.prototype,"textContent"),querySelector:{value:function(selector){var nodes=this.querySelectorAll(selector);return nodes.length?nodes[0]:null}},querySelectorAll:{value:function(selector){var context=Object.create(this);context.isHTML=!0,context.getElementsByTagName=Element2.prototype.getElementsByTagName,context.nextElement=Object.getOwnPropertyDescriptor(Element2.prototype,"firstElementChild").get;var nodes=select(selector,context);return nodes.item?nodes:new NodeList(nodes)}},clone:{value:__name(function(){return new DocumentFragment2(this.ownerDocument)},"clone")},isEqual:{value:__name(function(n){return!0},"isEqual")},innerHTML:{get:function(){return this.serialize()},set:utils.nyi},outerHTML:{get:function(){return this.serialize()},set:utils.nyi}})},78973:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=DocumentType;var Node2=__webpack_require__2(20416),Leaf=__webpack_require__2(15869),ChildNode=__webpack_require__2(90696);function DocumentType(ownerDocument,name,publicId,systemId){Leaf.call(this),this.nodeType=Node2.DOCUMENT_TYPE_NODE,this.ownerDocument=ownerDocument||null,this.name=name,this.publicId=publicId||"",this.systemId=systemId||""}__name(DocumentType,"DocumentType"),DocumentType.prototype=Object.create(Leaf.prototype,{nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return null},set:function(){}},clone:{value:__name(function(){return new DocumentType(this.ownerDocument,this.name,this.publicId,this.systemId)},"clone")},isEqual:{value:__name(function(n){return this.name===n.name&&this.publicId===n.publicId&&this.systemId===n.systemId},"isEqual")}}),Object.defineProperties(DocumentType.prototype,ChildNode)},23713:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=Element2;var xml=__webpack_require__2(66083),utils=__webpack_require__2(59510),NAMESPACE=utils.NAMESPACE,attributes=__webpack_require__2(29593),Node2=__webpack_require__2(20416),NodeList=__webpack_require__2(277),NodeUtils=__webpack_require__2(41348),FilteredElementList=__webpack_require__2(76295),DOMException2=__webpack_require__2(37018),DOMTokenList=__webpack_require__2(94995),select=__webpack_require__2(92855),ContainerNode=__webpack_require__2(76941),ChildNode=__webpack_require__2(90696),NonDocumentTypeChildNode=__webpack_require__2(76859),NamedNodeMap=__webpack_require__2(72587),uppercaseCache=Object.create(null);function Element2(doc,localName,namespaceURI,prefix){ContainerNode.call(this),this.nodeType=Node2.ELEMENT_NODE,this.ownerDocument=doc,this.localName=localName,this.namespaceURI=namespaceURI,this.prefix=prefix,this._tagName=void 0,this._attrsByQName=Object.create(null),this._attrsByLName=Object.create(null),this._attrKeys=[]}function recursiveGetText(node,a){if(node.nodeType===Node2.TEXT_NODE)a.push(node._data);else for(var i2=0,n=node.childNodes.length;i20},"hasAttributes")},toggleAttribute:{value:__name(function(qname,force){return qname=String(qname),xml.isValidName(qname)||utils.InvalidCharacterError(),/[A-Z]/.test(qname)&&this.isHTML&&(qname=utils.toASCIILowerCase(qname)),void 0===this._attrsByQName[qname]?(void 0===force||!0===force)&&(this._setAttribute(qname,""),!0):void 0!==force&&!1!==force||(this.removeAttribute(qname),!1)},"toggleAttribute")},_setAttribute:{value:__name(function(qname,value){var isnew,attr=this._attrsByQName[qname];attr?Array.isArray(attr)&&(attr=attr[0]):(attr=this._newattr(qname),isnew=!0),attr.value=value,this._attributes&&(this._attributes[qname]=attr),isnew&&this._newattrhook&&this._newattrhook(qname,value)},"_setAttribute")},setAttribute:{value:__name(function(qname,value){qname=String(qname),xml.isValidName(qname)||utils.InvalidCharacterError(),/[A-Z]/.test(qname)&&this.isHTML&&(qname=utils.toASCIILowerCase(qname)),this._setAttribute(qname,String(value))},"setAttribute")},_setAttributeNS:{value:__name(function(ns,qname,value){var prefix,lname,pos=qname.indexOf(":");pos<0?(prefix=null,lname=qname):(prefix=qname.substring(0,pos),lname=qname.substring(pos+1)),(""===ns||void 0===ns)&&(ns=null);var isnew,key=(null===ns?"":ns)+"|"+lname,attr=this._attrsByLName[key];attr||(attr=new Attr(this,lname,prefix,ns),isnew=!0,this._attrsByLName[key]=attr,this._attributes&&(this._attributes[this._attrKeys.length]=attr),this._attrKeys.push(key),this._addQName(attr)),attr.value=value,isnew&&this._newattrhook&&this._newattrhook(qname,value)},"_setAttributeNS")},setAttributeNS:{value:__name(function(ns,qname,value){ns=null==ns||""===ns?null:String(ns),qname=String(qname),xml.isValidQName(qname)||utils.InvalidCharacterError();var pos=qname.indexOf(":"),prefix=pos<0?null:qname.substring(0,pos);(null!==prefix&&null===ns||"xml"===prefix&&ns!==NAMESPACE.XML||("xmlns"===qname||"xmlns"===prefix)&&ns!==NAMESPACE.XMLNS||ns===NAMESPACE.XMLNS&&!("xmlns"===qname||"xmlns"===prefix))&&utils.NamespaceError(),this._setAttributeNS(ns,qname,String(value))},"setAttributeNS")},setAttributeNode:{value:__name(function(attr){if(null!==attr.ownerElement&&attr.ownerElement!==this)throw new DOMException2(DOMException2.INUSE_ATTRIBUTE_ERR);var result=null,oldAttrs=this._attrsByQName[attr.name];if(oldAttrs){if(Array.isArray(oldAttrs)||(oldAttrs=[oldAttrs]),oldAttrs.some(function(a){return a===attr}))return attr;if(null!==attr.ownerElement)throw new DOMException2(DOMException2.INUSE_ATTRIBUTE_ERR);oldAttrs.forEach(function(a){this.removeAttributeNode(a)},this),result=oldAttrs[0]}return this.setAttributeNodeNS(attr),result},"setAttributeNode")},setAttributeNodeNS:{value:__name(function(attr){if(null!==attr.ownerElement)throw new DOMException2(DOMException2.INUSE_ATTRIBUTE_ERR);var ns=attr.namespaceURI,key=(null===ns?"":ns)+"|"+attr.localName,oldAttr=this._attrsByLName[key];return oldAttr&&this.removeAttributeNode(oldAttr),attr._setOwnerElement(this),this._attrsByLName[key]=attr,this._attributes&&(this._attributes[this._attrKeys.length]=attr),this._attrKeys.push(key),this._addQName(attr),this._newattrhook&&this._newattrhook(attr.name,attr.value),oldAttr||null},"setAttributeNodeNS")},removeAttribute:{value:__name(function(qname){qname=String(qname),/[A-Z]/.test(qname)&&this.isHTML&&(qname=utils.toASCIILowerCase(qname));var attr=this._attrsByQName[qname];if(attr){Array.isArray(attr)?attr.length>2?attr=attr.shift():(this._attrsByQName[qname]=attr[1],attr=attr[0]):this._attrsByQName[qname]=void 0;var ns=attr.namespaceURI,key=(null===ns?"":ns)+"|"+attr.localName;this._attrsByLName[key]=void 0;var i2=this._attrKeys.indexOf(key);this._attributes&&(Array.prototype.splice.call(this._attributes,i2,1),this._attributes[qname]=void 0),this._attrKeys.splice(i2,1);var onchange=attr.onchange;attr._setOwnerElement(null),onchange&&onchange.call(attr,this,attr.localName,attr.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(attr)}},"removeAttribute")},removeAttributeNS:{value:__name(function(ns,lname){var key=(ns=null==ns?"":String(ns))+"|"+(lname=String(lname)),attr=this._attrsByLName[key];if(attr){this._attrsByLName[key]=void 0;var i2=this._attrKeys.indexOf(key);this._attributes&&Array.prototype.splice.call(this._attributes,i2,1),this._attrKeys.splice(i2,1),this._removeQName(attr);var onchange=attr.onchange;attr._setOwnerElement(null),onchange&&onchange.call(attr,this,attr.localName,attr.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(attr)}},"removeAttributeNS")},removeAttributeNode:{value:__name(function(attr){var ns=attr.namespaceURI,key=(null===ns?"":ns)+"|"+attr.localName;return this._attrsByLName[key]!==attr&&utils.NotFoundError(),this.removeAttributeNS(ns,attr.localName),attr},"removeAttributeNode")},getAttributeNames:{value:__name(function(){var elt=this;return this._attrKeys.map(function(key){return elt._attrsByLName[key].name})},"getAttributeNames")},_getattr:{value:__name(function(qname){var attr=this._attrsByQName[qname];return attr?attr.value:null},"_getattr")},_setattr:{value:__name(function(qname,value){var isnew,attr=this._attrsByQName[qname];attr||(attr=this._newattr(qname),isnew=!0),attr.value=String(value),this._attributes&&(this._attributes[qname]=attr),isnew&&this._newattrhook&&this._newattrhook(qname,value)},"_setattr")},_newattr:{value:__name(function(qname){var attr=new Attr(this,qname,null,null),key="|"+qname;return this._attrsByQName[qname]=attr,this._attrsByLName[key]=attr,this._attributes&&(this._attributes[this._attrKeys.length]=attr),this._attrKeys.push(key),attr},"_newattr")},_addQName:{value:function(attr){var qname=attr.name,existing=this._attrsByQName[qname];existing?Array.isArray(existing)?existing.push(attr):this._attrsByQName[qname]=[existing,attr]:this._attrsByQName[qname]=attr,this._attributes&&(this._attributes[qname]=attr)}},_removeQName:{value:function(attr){var qname=attr.name,target=this._attrsByQName[qname];if(Array.isArray(target)){var idx=target.indexOf(attr);utils.assert(-1!==idx),2===target.length?(this._attrsByQName[qname]=target[1-idx],this._attributes&&(this._attributes[qname]=this._attrsByQName[qname])):(target.splice(idx,1),this._attributes&&this._attributes[qname]===attr&&(this._attributes[qname]=target[0]))}else utils.assert(target===attr),this._attrsByQName[qname]=void 0,this._attributes&&(this._attributes[qname]=void 0)}},_numattrs:{get:function(){return this._attrKeys.length}},_attr:{value:function(n){return this._attrsByLName[this._attrKeys[n]]}},id:attributes.property({name:"id"}),className:attributes.property({name:"class"}),classList:{get:function(){var self2=this;if(this._classList)return this._classList;var dtlist=new DOMTokenList(function(){return self2.className||""},function(v){self2.className=v});return this._classList=dtlist,dtlist},set:function(v){this.className=v}},matches:{value:function(selector){return select.matches(this,selector)}},closest:{value:function(selector){var el=this;do{if(el.matches&&el.matches(selector))return el;el=el.parentElement||el.parentNode}while(null!==el&&el.nodeType===Node2.ELEMENT_NODE);return null}},querySelector:{value:function(selector){return select(selector,this)[0]}},querySelectorAll:{value:function(selector){var nodes=select(selector,this);return nodes.item?nodes:new NodeList(nodes)}}}),Object.defineProperties(Element2.prototype,ChildNode),Object.defineProperties(Element2.prototype,NonDocumentTypeChildNode),attributes.registerChangeHandler(Element2,"id",function(element,lname,oldval,newval){element.rooted&&(oldval&&element.ownerDocument.delId(oldval,element),newval&&element.ownerDocument.addId(newval,element))}),attributes.registerChangeHandler(Element2,"class",function(element,lname,oldval,newval){element._classList&&element._classList._update()}),__name(Attr,"Attr"),Attr.prototype=Object.create(Object.prototype,{ownerElement:{get:function(){return this._ownerElement}},_setOwnerElement:{value:__name(function(elt){this._ownerElement=elt,null===this.prefix&&null===this.namespaceURI&&elt?this.onchange=elt._attributeChangeHandlers[this.localName]:this.onchange=null},"_setOwnerElement")},name:{get:function(){return this.prefix?this.prefix+":"+this.localName:this.localName}},specified:{get:function(){return!0}},value:{get:function(){return this.data},set:function(value){var oldval=this.data;(value=void 0===value?"":value+"")!==oldval&&(this.data=value,this.ownerElement&&(this.onchange&&this.onchange(this.ownerElement,this.localName,oldval,value),this.ownerElement.rooted&&this.ownerElement.ownerDocument.mutateAttr(this,oldval)))}},cloneNode:{value:__name(function(deep){return new Attr(null,this.localName,this.prefix,this.namespaceURI,this.data)},"cloneNode")},nodeType:{get:function(){return Node2.ATTRIBUTE_NODE}},nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return this.value},set:function(v){this.value=v}},textContent:{get:function(){return this.value},set:function(v){null==v&&(v=""),this.value=v}}}),Element2._Attr=Attr,__name(AttributesArray,"AttributesArray"),AttributesArray.prototype=Object.create(NamedNodeMap.prototype,{length:{get:function(){return this.element._attrKeys.length},set:function(){}},item:{value:function(n){return(n>>>=0)>=this.length?null:this.element._attrsByLName[this.element._attrKeys[n]]}}}),global.Symbol&&global.Symbol.iterator&&(AttributesArray.prototype[global.Symbol.iterator]=function(){var i2=0,n=this.length,self2=this;return{next:function(){return i2{"use strict";function Event(type,dictionary){if(this.type="",this.target=null,this.currentTarget=null,this.eventPhase=Event.AT_TARGET,this.bubbles=!1,this.cancelable=!1,this.isTrusted=!1,this.defaultPrevented=!1,this.timeStamp=Date.now(),this._propagationStopped=!1,this._immediatePropagationStopped=!1,this._initialized=!0,this._dispatching=!1,type&&(this.type=type),dictionary)for(var p in dictionary)this[p]=dictionary[p]}module2.exports=Event,Event.CAPTURING_PHASE=1,Event.AT_TARGET=2,Event.BUBBLING_PHASE=3,__name(Event,"Event"),Event.prototype=Object.create(Object.prototype,{constructor:{value:Event},stopPropagation:{value:__name(function(){this._propagationStopped=!0},"stopPropagation")},stopImmediatePropagation:{value:__name(function(){this._propagationStopped=!0,this._immediatePropagationStopped=!0},"stopImmediatePropagation")},preventDefault:{value:__name(function(){this.cancelable&&(this.defaultPrevented=!0)},"preventDefault")},initEvent:{value:__name(function(type,bubbles,cancelable){this._initialized=!0,!this._dispatching&&(this._propagationStopped=!1,this._immediatePropagationStopped=!1,this.defaultPrevented=!1,this.isTrusted=!1,this.target=null,this.type=type,this.bubbles=bubbles,this.cancelable=cancelable)},"initEvent")}})},79998:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var Event=__webpack_require__2(82339),MouseEvent2=__webpack_require__2(36073),utils=__webpack_require__2(59510);function EventTarget(){}module2.exports=EventTarget,__name(EventTarget,"EventTarget"),EventTarget.prototype={addEventListener:__name(function(type,listener,capture){if(listener){void 0===capture&&(capture=!1),this._listeners||(this._listeners=Object.create(null)),this._listeners[type]||(this._listeners[type]=[]);for(var list=this._listeners[type],i2=0,n=list.length;i2=0&&(invoke(ancestors[i2],event),!event._propagationStopped);i2--);if(event._propagationStopped||(event.eventPhase=Event.AT_TARGET,invoke(this,event)),event.bubbles&&!event._propagationStopped){event.eventPhase=Event.BUBBLING_PHASE;for(var ii=0,nn=ancestors.length;ii{"use strict";module2.exports=FilteredElementList;var Node2=__webpack_require__2(20416);function FilteredElementList(root,filter){this.root=root,this.filter=filter,this.lastModTime=root.lastModTime,this.done=!1,this.cache=[],this.traverse()}__name(FilteredElementList,"FilteredElementList"),FilteredElementList.prototype=Object.create(Object.prototype,{length:{get:function(){return this.checkcache(),this.done||this.traverse(),this.cache.length}},item:{value:function(n){return this.checkcache(),!this.done&&n>=this.cache.length&&this.traverse(),this.cache[n]}},checkcache:{value:function(){if(this.lastModTime!==this.root.lastModTime){for(var i2=this.cache.length-1;i2>=0;i2--)this[i2]=void 0;this.cache.length=0,this.done=!1,this.lastModTime=this.root.lastModTime}}},traverse:{value:function(n){void 0!==n&&n++;for(var elt;null!==(elt=this.next());)if(this[this.cache.length]=elt,this.cache.push(elt),n&&this.cache.length===n)return;this.done=!0}},next:{value:function(){var elt,start=0===this.cache.length?this.root:this.cache[this.cache.length-1];for(elt=start.nodeType===Node2.DOCUMENT_NODE?start.documentElement:start.nextElement(this.root);elt;){if(this.filter(elt))return elt;elt=elt.nextElement(this.root)}return null}}})},96149:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=HTMLParser;var Document2=__webpack_require__2(69096),DocumentType=__webpack_require__2(78973),Node2=__webpack_require__2(20416),NAMESPACE=__webpack_require__2(59510).NAMESPACE,html=__webpack_require__2(46620),impl=html.elements,pushAll=Function.prototype.apply.bind(Array.prototype.push),NOATTRS=[],quirkyPublicIds=/^HTML$|^-\/\/W3O\/\/DTD W3 HTML Strict 3\.0\/\/EN\/\/$|^-\/W3C\/DTD HTML 4\.0 Transitional\/EN$|^\+\/\/Silmaril\/\/dtd html Pro v0r11 19970101\/\/|^-\/\/AdvaSoft Ltd\/\/DTD HTML 3\.0 asWedit \+ extensions\/\/|^-\/\/AS\/\/DTD HTML 3\.0 asWedit \+ extensions\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Level 1\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Level 2\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict Level 1\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict Level 2\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict\/\/|^-\/\/IETF\/\/DTD HTML 2\.0\/\/|^-\/\/IETF\/\/DTD HTML 2\.1E\/\/|^-\/\/IETF\/\/DTD HTML 3\.0\/\/|^-\/\/IETF\/\/DTD HTML 3\.2 Final\/\/|^-\/\/IETF\/\/DTD HTML 3\.2\/\/|^-\/\/IETF\/\/DTD HTML 3\/\/|^-\/\/IETF\/\/DTD HTML Level 0\/\/|^-\/\/IETF\/\/DTD HTML Level 1\/\/|^-\/\/IETF\/\/DTD HTML Level 2\/\/|^-\/\/IETF\/\/DTD HTML Level 3\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 0\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 1\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 2\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 3\/\/|^-\/\/IETF\/\/DTD HTML Strict\/\/|^-\/\/IETF\/\/DTD HTML\/\/|^-\/\/Metrius\/\/DTD Metrius Presentational\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 HTML Strict\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 HTML\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 Tables\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 HTML Strict\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 HTML\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 Tables\/\/|^-\/\/Netscape Comm\. Corp\.\/\/DTD HTML\/\/|^-\/\/Netscape Comm\. Corp\.\/\/DTD Strict HTML\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML 2\.0\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML Extended 1\.0\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML Extended Relaxed 1\.0\/\/|^-\/\/SoftQuad Software\/\/DTD HoTMetaL PRO 6\.0::19990601::extensions to HTML 4\.0\/\/|^-\/\/SoftQuad\/\/DTD HoTMetaL PRO 4\.0::19971010::extensions to HTML 4\.0\/\/|^-\/\/Spyglass\/\/DTD HTML 2\.0 Extended\/\/|^-\/\/SQ\/\/DTD HTML 2\.0 HoTMetaL \+ extensions\/\/|^-\/\/Sun Microsystems Corp\.\/\/DTD HotJava HTML\/\/|^-\/\/Sun Microsystems Corp\.\/\/DTD HotJava Strict HTML\/\/|^-\/\/W3C\/\/DTD HTML 3 1995-03-24\/\/|^-\/\/W3C\/\/DTD HTML 3\.2 Draft\/\/|^-\/\/W3C\/\/DTD HTML 3\.2 Final\/\/|^-\/\/W3C\/\/DTD HTML 3\.2\/\/|^-\/\/W3C\/\/DTD HTML 3\.2S Draft\/\/|^-\/\/W3C\/\/DTD HTML 4\.0 Frameset\/\/|^-\/\/W3C\/\/DTD HTML 4\.0 Transitional\/\/|^-\/\/W3C\/\/DTD HTML Experimental 19960712\/\/|^-\/\/W3C\/\/DTD HTML Experimental 970421\/\/|^-\/\/W3C\/\/DTD W3 HTML\/\/|^-\/\/W3O\/\/DTD W3 HTML 3\.0\/\/|^-\/\/WebTechs\/\/DTD Mozilla HTML 2\.0\/\/|^-\/\/WebTechs\/\/DTD Mozilla HTML\/\//i,conditionallyQuirkyPublicIds=/^-\/\/W3C\/\/DTD HTML 4\.01 Frameset\/\/|^-\/\/W3C\/\/DTD HTML 4\.01 Transitional\/\//i,limitedQuirkyPublicIds=/^-\/\/W3C\/\/DTD XHTML 1\.0 Frameset\/\/|^-\/\/W3C\/\/DTD XHTML 1\.0 Transitional\/\//i,specialSet=Object.create(null);specialSet[NAMESPACE.HTML]={__proto__:null,address:!0,applet:!0,area:!0,article:!0,aside:!0,base:!0,basefont:!0,bgsound:!0,blockquote:!0,body:!0,br:!0,button:!0,caption:!0,center:!0,col:!0,colgroup:!0,dd:!0,details:!0,dir:!0,div:!0,dl:!0,dt:!0,embed:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,frame:!0,frameset:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,head:!0,header:!0,hgroup:!0,hr:!0,html:!0,iframe:!0,img:!0,input:!0,li:!0,link:!0,listing:!0,main:!0,marquee:!0,menu:!0,meta:!0,nav:!0,noembed:!0,noframes:!0,noscript:!0,object:!0,ol:!0,p:!0,param:!0,plaintext:!0,pre:!0,script:!0,section:!0,select:!0,source:!0,style:!0,summary:!0,table:!0,tbody:!0,td:!0,template:!0,textarea:!0,tfoot:!0,th:!0,thead:!0,title:!0,tr:!0,track:!0,ul:!0,wbr:!0,xmp:!0},specialSet[NAMESPACE.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0},specialSet[NAMESPACE.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0};var addressdivpSet=Object.create(null);addressdivpSet[NAMESPACE.HTML]={__proto__:null,address:!0,div:!0,p:!0};var dddtSet=Object.create(null);dddtSet[NAMESPACE.HTML]={__proto__:null,dd:!0,dt:!0};var tablesectionrowSet=Object.create(null);tablesectionrowSet[NAMESPACE.HTML]={__proto__:null,table:!0,thead:!0,tbody:!0,tfoot:!0,tr:!0};var impliedEndTagsSet=Object.create(null);impliedEndTagsSet[NAMESPACE.HTML]={__proto__:null,dd:!0,dt:!0,li:!0,menuitem:!0,optgroup:!0,option:!0,p:!0,rb:!0,rp:!0,rt:!0,rtc:!0};var thoroughImpliedEndTagsSet=Object.create(null);thoroughImpliedEndTagsSet[NAMESPACE.HTML]={__proto__:null,caption:!0,colgroup:!0,dd:!0,dt:!0,li:!0,optgroup:!0,option:!0,p:!0,rb:!0,rp:!0,rt:!0,rtc:!0,tbody:!0,td:!0,tfoot:!0,th:!0,thead:!0,tr:!0};var tableContextSet=Object.create(null);tableContextSet[NAMESPACE.HTML]={__proto__:null,table:!0,template:!0,html:!0};var tableBodyContextSet=Object.create(null);tableBodyContextSet[NAMESPACE.HTML]={__proto__:null,tbody:!0,tfoot:!0,thead:!0,template:!0,html:!0};var tableRowContextSet=Object.create(null);tableRowContextSet[NAMESPACE.HTML]={__proto__:null,tr:!0,template:!0,html:!0};var formassociatedSet=Object.create(null);formassociatedSet[NAMESPACE.HTML]={__proto__:null,button:!0,fieldset:!0,input:!0,keygen:!0,object:!0,output:!0,select:!0,textarea:!0,img:!0};var inScopeSet=Object.create(null);inScopeSet[NAMESPACE.HTML]={__proto__:null,applet:!0,caption:!0,html:!0,table:!0,td:!0,th:!0,marquee:!0,object:!0,template:!0},inScopeSet[NAMESPACE.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0},inScopeSet[NAMESPACE.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var inListItemScopeSet=Object.create(inScopeSet);inListItemScopeSet[NAMESPACE.HTML]=Object.create(inScopeSet[NAMESPACE.HTML]),inListItemScopeSet[NAMESPACE.HTML].ol=!0,inListItemScopeSet[NAMESPACE.HTML].ul=!0;var inButtonScopeSet=Object.create(inScopeSet);inButtonScopeSet[NAMESPACE.HTML]=Object.create(inScopeSet[NAMESPACE.HTML]),inButtonScopeSet[NAMESPACE.HTML].button=!0;var inTableScopeSet=Object.create(null);inTableScopeSet[NAMESPACE.HTML]={__proto__:null,html:!0,table:!0,template:!0},Object.create(null)[NAMESPACE.HTML]={__proto__:null,optgroup:!0,option:!0};var mathmlTextIntegrationPointSet=Object.create(null);mathmlTextIntegrationPointSet[NAMESPACE.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0};var htmlIntegrationPointSet=Object.create(null);htmlIntegrationPointSet[NAMESPACE.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var foreignAttributes={__proto__:null,"xlink:actuate":NAMESPACE.XLINK,"xlink:arcrole":NAMESPACE.XLINK,"xlink:href":NAMESPACE.XLINK,"xlink:role":NAMESPACE.XLINK,"xlink:show":NAMESPACE.XLINK,"xlink:title":NAMESPACE.XLINK,"xlink:type":NAMESPACE.XLINK,"xml:base":NAMESPACE.XML,"xml:lang":NAMESPACE.XML,"xml:space":NAMESPACE.XML,xmlns:NAMESPACE.XMLNS,"xmlns:xlink":NAMESPACE.XMLNS},svgAttrAdjustments={__proto__:null,attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},svgTagNameAdjustments={__proto__:null,altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},numericCharRefReplacements={__proto__:null,0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},namedCharRefs={__proto__:null,AElig:198,"AElig;":198,AMP:38,"AMP;":38,Aacute:193,"Aacute;":193,"Abreve;":258,Acirc:194,"Acirc;":194,"Acy;":1040,"Afr;":[55349,56580],Agrave:192,"Agrave;":192,"Alpha;":913,"Amacr;":256,"And;":10835,"Aogon;":260,"Aopf;":[55349,56632],"ApplyFunction;":8289,Aring:197,"Aring;":197,"Ascr;":[55349,56476],"Assign;":8788,Atilde:195,"Atilde;":195,Auml:196,"Auml;":196,"Backslash;":8726,"Barv;":10983,"Barwed;":8966,"Bcy;":1041,"Because;":8757,"Bernoullis;":8492,"Beta;":914,"Bfr;":[55349,56581],"Bopf;":[55349,56633],"Breve;":728,"Bscr;":8492,"Bumpeq;":8782,"CHcy;":1063,COPY:169,"COPY;":169,"Cacute;":262,"Cap;":8914,"CapitalDifferentialD;":8517,"Cayleys;":8493,"Ccaron;":268,Ccedil:199,"Ccedil;":199,"Ccirc;":264,"Cconint;":8752,"Cdot;":266,"Cedilla;":184,"CenterDot;":183,"Cfr;":8493,"Chi;":935,"CircleDot;":8857,"CircleMinus;":8854,"CirclePlus;":8853,"CircleTimes;":8855,"ClockwiseContourIntegral;":8754,"CloseCurlyDoubleQuote;":8221,"CloseCurlyQuote;":8217,"Colon;":8759,"Colone;":10868,"Congruent;":8801,"Conint;":8751,"ContourIntegral;":8750,"Copf;":8450,"Coproduct;":8720,"CounterClockwiseContourIntegral;":8755,"Cross;":10799,"Cscr;":[55349,56478],"Cup;":8915,"CupCap;":8781,"DD;":8517,"DDotrahd;":10513,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Dagger;":8225,"Darr;":8609,"Dashv;":10980,"Dcaron;":270,"Dcy;":1044,"Del;":8711,"Delta;":916,"Dfr;":[55349,56583],"DiacriticalAcute;":180,"DiacriticalDot;":729,"DiacriticalDoubleAcute;":733,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"Diamond;":8900,"DifferentialD;":8518,"Dopf;":[55349,56635],"Dot;":168,"DotDot;":8412,"DotEqual;":8784,"DoubleContourIntegral;":8751,"DoubleDot;":168,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DoubleLeftRightArrow;":8660,"DoubleLeftTee;":10980,"DoubleLongLeftArrow;":10232,"DoubleLongLeftRightArrow;":10234,"DoubleLongRightArrow;":10233,"DoubleRightArrow;":8658,"DoubleRightTee;":8872,"DoubleUpArrow;":8657,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownArrow;":8595,"DownArrowBar;":10515,"DownArrowUpArrow;":8693,"DownBreve;":785,"DownLeftRightVector;":10576,"DownLeftTeeVector;":10590,"DownLeftVector;":8637,"DownLeftVectorBar;":10582,"DownRightTeeVector;":10591,"DownRightVector;":8641,"DownRightVectorBar;":10583,"DownTee;":8868,"DownTeeArrow;":8615,"Downarrow;":8659,"Dscr;":[55349,56479],"Dstrok;":272,"ENG;":330,ETH:208,"ETH;":208,Eacute:201,"Eacute;":201,"Ecaron;":282,Ecirc:202,"Ecirc;":202,"Ecy;":1069,"Edot;":278,"Efr;":[55349,56584],Egrave:200,"Egrave;":200,"Element;":8712,"Emacr;":274,"EmptySmallSquare;":9723,"EmptyVerySmallSquare;":9643,"Eogon;":280,"Eopf;":[55349,56636],"Epsilon;":917,"Equal;":10869,"EqualTilde;":8770,"Equilibrium;":8652,"Escr;":8496,"Esim;":10867,"Eta;":919,Euml:203,"Euml;":203,"Exists;":8707,"ExponentialE;":8519,"Fcy;":1060,"Ffr;":[55349,56585],"FilledSmallSquare;":9724,"FilledVerySmallSquare;":9642,"Fopf;":[55349,56637],"ForAll;":8704,"Fouriertrf;":8497,"Fscr;":8497,"GJcy;":1027,GT:62,"GT;":62,"Gamma;":915,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"Gcirc;":284,"Gcy;":1043,"Gdot;":288,"Gfr;":[55349,56586],"Gg;":8921,"Gopf;":[55349,56638],"GreaterEqual;":8805,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"GreaterGreater;":10914,"GreaterLess;":8823,"GreaterSlantEqual;":10878,"GreaterTilde;":8819,"Gscr;":[55349,56482],"Gt;":8811,"HARDcy;":1066,"Hacek;":711,"Hat;":94,"Hcirc;":292,"Hfr;":8460,"HilbertSpace;":8459,"Hopf;":8461,"HorizontalLine;":9472,"Hscr;":8459,"Hstrok;":294,"HumpDownHump;":8782,"HumpEqual;":8783,"IEcy;":1045,"IJlig;":306,"IOcy;":1025,Iacute:205,"Iacute;":205,Icirc:206,"Icirc;":206,"Icy;":1048,"Idot;":304,"Ifr;":8465,Igrave:204,"Igrave;":204,"Im;":8465,"Imacr;":298,"ImaginaryI;":8520,"Implies;":8658,"Int;":8748,"Integral;":8747,"Intersection;":8898,"InvisibleComma;":8291,"InvisibleTimes;":8290,"Iogon;":302,"Iopf;":[55349,56640],"Iota;":921,"Iscr;":8464,"Itilde;":296,"Iukcy;":1030,Iuml:207,"Iuml;":207,"Jcirc;":308,"Jcy;":1049,"Jfr;":[55349,56589],"Jopf;":[55349,56641],"Jscr;":[55349,56485],"Jsercy;":1032,"Jukcy;":1028,"KHcy;":1061,"KJcy;":1036,"Kappa;":922,"Kcedil;":310,"Kcy;":1050,"Kfr;":[55349,56590],"Kopf;":[55349,56642],"Kscr;":[55349,56486],"LJcy;":1033,LT:60,"LT;":60,"Lacute;":313,"Lambda;":923,"Lang;":10218,"Laplacetrf;":8466,"Larr;":8606,"Lcaron;":317,"Lcedil;":315,"Lcy;":1051,"LeftAngleBracket;":10216,"LeftArrow;":8592,"LeftArrowBar;":8676,"LeftArrowRightArrow;":8646,"LeftCeiling;":8968,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVector;":8643,"LeftDownVectorBar;":10585,"LeftFloor;":8970,"LeftRightArrow;":8596,"LeftRightVector;":10574,"LeftTee;":8867,"LeftTeeArrow;":8612,"LeftTeeVector;":10586,"LeftTriangle;":8882,"LeftTriangleBar;":10703,"LeftTriangleEqual;":8884,"LeftUpDownVector;":10577,"LeftUpTeeVector;":10592,"LeftUpVector;":8639,"LeftUpVectorBar;":10584,"LeftVector;":8636,"LeftVectorBar;":10578,"Leftarrow;":8656,"Leftrightarrow;":8660,"LessEqualGreater;":8922,"LessFullEqual;":8806,"LessGreater;":8822,"LessLess;":10913,"LessSlantEqual;":10877,"LessTilde;":8818,"Lfr;":[55349,56591],"Ll;":8920,"Lleftarrow;":8666,"Lmidot;":319,"LongLeftArrow;":10229,"LongLeftRightArrow;":10231,"LongRightArrow;":10230,"Longleftarrow;":10232,"Longleftrightarrow;":10234,"Longrightarrow;":10233,"Lopf;":[55349,56643],"LowerLeftArrow;":8601,"LowerRightArrow;":8600,"Lscr;":8466,"Lsh;":8624,"Lstrok;":321,"Lt;":8810,"Map;":10501,"Mcy;":1052,"MediumSpace;":8287,"Mellintrf;":8499,"Mfr;":[55349,56592],"MinusPlus;":8723,"Mopf;":[55349,56644],"Mscr;":8499,"Mu;":924,"NJcy;":1034,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ncy;":1053,"NegativeMediumSpace;":8203,"NegativeThickSpace;":8203,"NegativeThinSpace;":8203,"NegativeVeryThinSpace;":8203,"NestedGreaterGreater;":8811,"NestedLessLess;":8810,"NewLine;":10,"Nfr;":[55349,56593],"NoBreak;":8288,"NonBreakingSpace;":160,"Nopf;":8469,"Not;":10988,"NotCongruent;":8802,"NotCupCap;":8813,"NotDoubleVerticalBar;":8742,"NotElement;":8713,"NotEqual;":8800,"NotEqualTilde;":[8770,824],"NotExists;":8708,"NotGreater;":8815,"NotGreaterEqual;":8817,"NotGreaterFullEqual;":[8807,824],"NotGreaterGreater;":[8811,824],"NotGreaterLess;":8825,"NotGreaterSlantEqual;":[10878,824],"NotGreaterTilde;":8821,"NotHumpDownHump;":[8782,824],"NotHumpEqual;":[8783,824],"NotLeftTriangle;":8938,"NotLeftTriangleBar;":[10703,824],"NotLeftTriangleEqual;":8940,"NotLess;":8814,"NotLessEqual;":8816,"NotLessGreater;":8824,"NotLessLess;":[8810,824],"NotLessSlantEqual;":[10877,824],"NotLessTilde;":8820,"NotNestedGreaterGreater;":[10914,824],"NotNestedLessLess;":[10913,824],"NotPrecedes;":8832,"NotPrecedesEqual;":[10927,824],"NotPrecedesSlantEqual;":8928,"NotReverseElement;":8716,"NotRightTriangle;":8939,"NotRightTriangleBar;":[10704,824],"NotRightTriangleEqual;":8941,"NotSquareSubset;":[8847,824],"NotSquareSubsetEqual;":8930,"NotSquareSuperset;":[8848,824],"NotSquareSupersetEqual;":8931,"NotSubset;":[8834,8402],"NotSubsetEqual;":8840,"NotSucceeds;":8833,"NotSucceedsEqual;":[10928,824],"NotSucceedsSlantEqual;":8929,"NotSucceedsTilde;":[8831,824],"NotSuperset;":[8835,8402],"NotSupersetEqual;":8841,"NotTilde;":8769,"NotTildeEqual;":8772,"NotTildeFullEqual;":8775,"NotTildeTilde;":8777,"NotVerticalBar;":8740,"Nscr;":[55349,56489],Ntilde:209,"Ntilde;":209,"Nu;":925,"OElig;":338,Oacute:211,"Oacute;":211,Ocirc:212,"Ocirc;":212,"Ocy;":1054,"Odblac;":336,"Ofr;":[55349,56594],Ograve:210,"Ograve;":210,"Omacr;":332,"Omega;":937,"Omicron;":927,"Oopf;":[55349,56646],"OpenCurlyDoubleQuote;":8220,"OpenCurlyQuote;":8216,"Or;":10836,"Oscr;":[55349,56490],Oslash:216,"Oslash;":216,Otilde:213,"Otilde;":213,"Otimes;":10807,Ouml:214,"Ouml;":214,"OverBar;":8254,"OverBrace;":9182,"OverBracket;":9140,"OverParenthesis;":9180,"PartialD;":8706,"Pcy;":1055,"Pfr;":[55349,56595],"Phi;":934,"Pi;":928,"PlusMinus;":177,"Poincareplane;":8460,"Popf;":8473,"Pr;":10939,"Precedes;":8826,"PrecedesEqual;":10927,"PrecedesSlantEqual;":8828,"PrecedesTilde;":8830,"Prime;":8243,"Product;":8719,"Proportion;":8759,"Proportional;":8733,"Pscr;":[55349,56491],"Psi;":936,QUOT:34,"QUOT;":34,"Qfr;":[55349,56596],"Qopf;":8474,"Qscr;":[55349,56492],"RBarr;":10512,REG:174,"REG;":174,"Racute;":340,"Rang;":10219,"Rarr;":8608,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"Rcy;":1056,"Re;":8476,"ReverseElement;":8715,"ReverseEquilibrium;":8651,"ReverseUpEquilibrium;":10607,"Rfr;":8476,"Rho;":929,"RightAngleBracket;":10217,"RightArrow;":8594,"RightArrowBar;":8677,"RightArrowLeftArrow;":8644,"RightCeiling;":8969,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVector;":8642,"RightDownVectorBar;":10581,"RightFloor;":8971,"RightTee;":8866,"RightTeeArrow;":8614,"RightTeeVector;":10587,"RightTriangle;":8883,"RightTriangleBar;":10704,"RightTriangleEqual;":8885,"RightUpDownVector;":10575,"RightUpTeeVector;":10588,"RightUpVector;":8638,"RightUpVectorBar;":10580,"RightVector;":8640,"RightVectorBar;":10579,"Rightarrow;":8658,"Ropf;":8477,"RoundImplies;":10608,"Rrightarrow;":8667,"Rscr;":8475,"Rsh;":8625,"RuleDelayed;":10740,"SHCHcy;":1065,"SHcy;":1064,"SOFTcy;":1068,"Sacute;":346,"Sc;":10940,"Scaron;":352,"Scedil;":350,"Scirc;":348,"Scy;":1057,"Sfr;":[55349,56598],"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"ShortRightArrow;":8594,"ShortUpArrow;":8593,"Sigma;":931,"SmallCircle;":8728,"Sopf;":[55349,56650],"Sqrt;":8730,"Square;":9633,"SquareIntersection;":8851,"SquareSubset;":8847,"SquareSubsetEqual;":8849,"SquareSuperset;":8848,"SquareSupersetEqual;":8850,"SquareUnion;":8852,"Sscr;":[55349,56494],"Star;":8902,"Sub;":8912,"Subset;":8912,"SubsetEqual;":8838,"Succeeds;":8827,"SucceedsEqual;":10928,"SucceedsSlantEqual;":8829,"SucceedsTilde;":8831,"SuchThat;":8715,"Sum;":8721,"Sup;":8913,"Superset;":8835,"SupersetEqual;":8839,"Supset;":8913,THORN:222,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"TScy;":1062,"Tab;":9,"Tau;":932,"Tcaron;":356,"Tcedil;":354,"Tcy;":1058,"Tfr;":[55349,56599],"Therefore;":8756,"Theta;":920,"ThickSpace;":[8287,8202],"ThinSpace;":8201,"Tilde;":8764,"TildeEqual;":8771,"TildeFullEqual;":8773,"TildeTilde;":8776,"Topf;":[55349,56651],"TripleDot;":8411,"Tscr;":[55349,56495],"Tstrok;":358,Uacute:218,"Uacute;":218,"Uarr;":8607,"Uarrocir;":10569,"Ubrcy;":1038,"Ubreve;":364,Ucirc:219,"Ucirc;":219,"Ucy;":1059,"Udblac;":368,"Ufr;":[55349,56600],Ugrave:217,"Ugrave;":217,"Umacr;":362,"UnderBar;":95,"UnderBrace;":9183,"UnderBracket;":9141,"UnderParenthesis;":9181,"Union;":8899,"UnionPlus;":8846,"Uogon;":370,"Uopf;":[55349,56652],"UpArrow;":8593,"UpArrowBar;":10514,"UpArrowDownArrow;":8645,"UpDownArrow;":8597,"UpEquilibrium;":10606,"UpTee;":8869,"UpTeeArrow;":8613,"Uparrow;":8657,"Updownarrow;":8661,"UpperLeftArrow;":8598,"UpperRightArrow;":8599,"Upsi;":978,"Upsilon;":933,"Uring;":366,"Uscr;":[55349,56496],"Utilde;":360,Uuml:220,"Uuml;":220,"VDash;":8875,"Vbar;":10987,"Vcy;":1042,"Vdash;":8873,"Vdashl;":10982,"Vee;":8897,"Verbar;":8214,"Vert;":8214,"VerticalBar;":8739,"VerticalLine;":124,"VerticalSeparator;":10072,"VerticalTilde;":8768,"VeryThinSpace;":8202,"Vfr;":[55349,56601],"Vopf;":[55349,56653],"Vscr;":[55349,56497],"Vvdash;":8874,"Wcirc;":372,"Wedge;":8896,"Wfr;":[55349,56602],"Wopf;":[55349,56654],"Wscr;":[55349,56498],"Xfr;":[55349,56603],"Xi;":926,"Xopf;":[55349,56655],"Xscr;":[55349,56499],"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,Yacute:221,"Yacute;":221,"Ycirc;":374,"Ycy;":1067,"Yfr;":[55349,56604],"Yopf;":[55349,56656],"Yscr;":[55349,56500],"Yuml;":376,"ZHcy;":1046,"Zacute;":377,"Zcaron;":381,"Zcy;":1047,"Zdot;":379,"ZeroWidthSpace;":8203,"Zeta;":918,"Zfr;":8488,"Zopf;":8484,"Zscr;":[55349,56501],aacute:225,"aacute;":225,"abreve;":259,"ac;":8766,"acE;":[8766,819],"acd;":8767,acirc:226,"acirc;":226,acute:180,"acute;":180,"acy;":1072,aelig:230,"aelig;":230,"af;":8289,"afr;":[55349,56606],agrave:224,"agrave;":224,"alefsym;":8501,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,amp:38,"amp;":38,"and;":8743,"andand;":10837,"andd;":10844,"andslope;":10840,"andv;":10842,"ang;":8736,"ange;":10660,"angle;":8736,"angmsd;":8737,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrt;":8735,"angrtvb;":8894,"angrtvbd;":10653,"angsph;":8738,"angst;":197,"angzarr;":9084,"aogon;":261,"aopf;":[55349,56658],"ap;":8776,"apE;":10864,"apacir;":10863,"ape;":8778,"apid;":8779,"apos;":39,"approx;":8776,"approxeq;":8778,aring:229,"aring;":229,"ascr;":[55349,56502],"ast;":42,"asymp;":8776,"asympeq;":8781,atilde:227,"atilde;":227,auml:228,"auml;":228,"awconint;":8755,"awint;":10769,"bNot;":10989,"backcong;":8780,"backepsilon;":1014,"backprime;":8245,"backsim;":8765,"backsimeq;":8909,"barvee;":8893,"barwed;":8965,"barwedge;":8965,"bbrk;":9141,"bbrktbrk;":9142,"bcong;":8780,"bcy;":1073,"bdquo;":8222,"becaus;":8757,"because;":8757,"bemptyv;":10672,"bepsi;":1014,"bernou;":8492,"beta;":946,"beth;":8502,"between;":8812,"bfr;":[55349,56607],"bigcap;":8898,"bigcirc;":9711,"bigcup;":8899,"bigodot;":10752,"bigoplus;":10753,"bigotimes;":10754,"bigsqcup;":10758,"bigstar;":9733,"bigtriangledown;":9661,"bigtriangleup;":9651,"biguplus;":10756,"bigvee;":8897,"bigwedge;":8896,"bkarow;":10509,"blacklozenge;":10731,"blacksquare;":9642,"blacktriangle;":9652,"blacktriangledown;":9662,"blacktriangleleft;":9666,"blacktriangleright;":9656,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"bne;":[61,8421],"bnequiv;":[8801,8421],"bnot;":8976,"bopf;":[55349,56659],"bot;":8869,"bottom;":8869,"bowtie;":8904,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxH;":9552,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxV;":9553,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxbox;":10697,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxh;":9472,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxminus;":8863,"boxplus;":8862,"boxtimes;":8864,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxv;":9474,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"bprime;":8245,"breve;":728,brvbar:166,"brvbar;":166,"bscr;":[55349,56503],"bsemi;":8271,"bsim;":8765,"bsime;":8909,"bsol;":92,"bsolb;":10693,"bsolhsub;":10184,"bull;":8226,"bullet;":8226,"bump;":8782,"bumpE;":10926,"bumpe;":8783,"bumpeq;":8783,"cacute;":263,"cap;":8745,"capand;":10820,"capbrcup;":10825,"capcap;":10827,"capcup;":10823,"capdot;":10816,"caps;":[8745,65024],"caret;":8257,"caron;":711,"ccaps;":10829,"ccaron;":269,ccedil:231,"ccedil;":231,"ccirc;":265,"ccups;":10828,"ccupssm;":10832,"cdot;":267,cedil:184,"cedil;":184,"cemptyv;":10674,cent:162,"cent;":162,"centerdot;":183,"cfr;":[55349,56608],"chcy;":1095,"check;":10003,"checkmark;":10003,"chi;":967,"cir;":9675,"cirE;":10691,"circ;":710,"circeq;":8791,"circlearrowleft;":8634,"circlearrowright;":8635,"circledR;":174,"circledS;":9416,"circledast;":8859,"circledcirc;":8858,"circleddash;":8861,"cire;":8791,"cirfnint;":10768,"cirmid;":10991,"cirscir;":10690,"clubs;":9827,"clubsuit;":9827,"colon;":58,"colone;":8788,"coloneq;":8788,"comma;":44,"commat;":64,"comp;":8705,"compfn;":8728,"complement;":8705,"complexes;":8450,"cong;":8773,"congdot;":10861,"conint;":8750,"copf;":[55349,56660],"coprod;":8720,copy:169,"copy;":169,"copysr;":8471,"crarr;":8629,"cross;":10007,"cscr;":[55349,56504],"csub;":10959,"csube;":10961,"csup;":10960,"csupe;":10962,"ctdot;":8943,"cudarrl;":10552,"cudarrr;":10549,"cuepr;":8926,"cuesc;":8927,"cularr;":8630,"cularrp;":10557,"cup;":8746,"cupbrcap;":10824,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"cupor;":10821,"cups;":[8746,65024],"curarr;":8631,"curarrm;":10556,"curlyeqprec;":8926,"curlyeqsucc;":8927,"curlyvee;":8910,"curlywedge;":8911,curren:164,"curren;":164,"curvearrowleft;":8630,"curvearrowright;":8631,"cuvee;":8910,"cuwed;":8911,"cwconint;":8754,"cwint;":8753,"cylcty;":9005,"dArr;":8659,"dHar;":10597,"dagger;":8224,"daleth;":8504,"darr;":8595,"dash;":8208,"dashv;":8867,"dbkarow;":10511,"dblac;":733,"dcaron;":271,"dcy;":1076,"dd;":8518,"ddagger;":8225,"ddarr;":8650,"ddotseq;":10871,deg:176,"deg;":176,"delta;":948,"demptyv;":10673,"dfisht;":10623,"dfr;":[55349,56609],"dharl;":8643,"dharr;":8642,"diam;":8900,"diamond;":8900,"diamondsuit;":9830,"diams;":9830,"die;":168,"digamma;":989,"disin;":8946,"div;":247,divide:247,"divide;":247,"divideontimes;":8903,"divonx;":8903,"djcy;":1106,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"dopf;":[55349,56661],"dot;":729,"doteq;":8784,"doteqdot;":8785,"dotminus;":8760,"dotplus;":8724,"dotsquare;":8865,"doublebarwedge;":8966,"downarrow;":8595,"downdownarrows;":8650,"downharpoonleft;":8643,"downharpoonright;":8642,"drbkarow;":10512,"drcorn;":8991,"drcrop;":8972,"dscr;":[55349,56505],"dscy;":1109,"dsol;":10742,"dstrok;":273,"dtdot;":8945,"dtri;":9663,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"dwangle;":10662,"dzcy;":1119,"dzigrarr;":10239,"eDDot;":10871,"eDot;":8785,eacute:233,"eacute;":233,"easter;":10862,"ecaron;":283,"ecir;":8790,ecirc:234,"ecirc;":234,"ecolon;":8789,"ecy;":1101,"edot;":279,"ee;":8519,"efDot;":8786,"efr;":[55349,56610],"eg;":10906,egrave:232,"egrave;":232,"egs;":10902,"egsdot;":10904,"el;":10905,"elinters;":9191,"ell;":8467,"els;":10901,"elsdot;":10903,"emacr;":275,"empty;":8709,"emptyset;":8709,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"emsp;":8195,"eng;":331,"ensp;":8194,"eogon;":281,"eopf;":[55349,56662],"epar;":8917,"eparsl;":10723,"eplus;":10865,"epsi;":949,"epsilon;":949,"epsiv;":1013,"eqcirc;":8790,"eqcolon;":8789,"eqsim;":8770,"eqslantgtr;":10902,"eqslantless;":10901,"equals;":61,"equest;":8799,"equiv;":8801,"equivDD;":10872,"eqvparsl;":10725,"erDot;":8787,"erarr;":10609,"escr;":8495,"esdot;":8784,"esim;":8770,"eta;":951,eth:240,"eth;":240,euml:235,"euml;":235,"euro;":8364,"excl;":33,"exist;":8707,"expectation;":8496,"exponentiale;":8519,"fallingdotseq;":8786,"fcy;":1092,"female;":9792,"ffilig;":64259,"fflig;":64256,"ffllig;":64260,"ffr;":[55349,56611],"filig;":64257,"fjlig;":[102,106],"flat;":9837,"fllig;":64258,"fltns;":9649,"fnof;":402,"fopf;":[55349,56663],"forall;":8704,"fork;":8916,"forkv;":10969,"fpartint;":10765,frac12:189,"frac12;":189,"frac13;":8531,frac14:188,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,frac34:190,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"frasl;":8260,"frown;":8994,"fscr;":[55349,56507],"gE;":8807,"gEl;":10892,"gacute;":501,"gamma;":947,"gammad;":989,"gap;":10886,"gbreve;":287,"gcirc;":285,"gcy;":1075,"gdot;":289,"ge;":8805,"gel;":8923,"geq;":8805,"geqq;":8807,"geqslant;":10878,"ges;":10878,"gescc;":10921,"gesdot;":10880,"gesdoto;":10882,"gesdotol;":10884,"gesl;":[8923,65024],"gesles;":10900,"gfr;":[55349,56612],"gg;":8811,"ggg;":8921,"gimel;":8503,"gjcy;":1107,"gl;":8823,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gnap;":10890,"gnapprox;":10890,"gne;":10888,"gneq;":10888,"gneqq;":8809,"gnsim;":8935,"gopf;":[55349,56664],"grave;":96,"gscr;":8458,"gsim;":8819,"gsime;":10894,"gsiml;":10896,gt:62,"gt;":62,"gtcc;":10919,"gtcir;":10874,"gtdot;":8919,"gtlPar;":10645,"gtquest;":10876,"gtrapprox;":10886,"gtrarr;":10616,"gtrdot;":8919,"gtreqless;":8923,"gtreqqless;":10892,"gtrless;":8823,"gtrsim;":8819,"gvertneqq;":[8809,65024],"gvnE;":[8809,65024],"hArr;":8660,"hairsp;":8202,"half;":189,"hamilt;":8459,"hardcy;":1098,"harr;":8596,"harrcir;":10568,"harrw;":8621,"hbar;":8463,"hcirc;":293,"hearts;":9829,"heartsuit;":9829,"hellip;":8230,"hercon;":8889,"hfr;":[55349,56613],"hksearow;":10533,"hkswarow;":10534,"hoarr;":8703,"homtht;":8763,"hookleftarrow;":8617,"hookrightarrow;":8618,"hopf;":[55349,56665],"horbar;":8213,"hscr;":[55349,56509],"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,iacute:237,"iacute;":237,"ic;":8291,icirc:238,"icirc;":238,"icy;":1080,"iecy;":1077,iexcl:161,"iexcl;":161,"iff;":8660,"ifr;":[55349,56614],igrave:236,"igrave;":236,"ii;":8520,"iiiint;":10764,"iiint;":8749,"iinfin;":10716,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imagline;":8464,"imagpart;":8465,"imath;":305,"imof;":8887,"imped;":437,"in;":8712,"incare;":8453,"infin;":8734,"infintie;":10717,"inodot;":305,"int;":8747,"intcal;":8890,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"intprod;":10812,"iocy;":1105,"iogon;":303,"iopf;":[55349,56666],"iota;":953,"iprod;":10812,iquest:191,"iquest;":191,"iscr;":[55349,56510],"isin;":8712,"isinE;":8953,"isindot;":8949,"isins;":8948,"isinsv;":8947,"isinv;":8712,"it;":8290,"itilde;":297,"iukcy;":1110,iuml:239,"iuml;":239,"jcirc;":309,"jcy;":1081,"jfr;":[55349,56615],"jmath;":567,"jopf;":[55349,56667],"jscr;":[55349,56511],"jsercy;":1112,"jukcy;":1108,"kappa;":954,"kappav;":1008,"kcedil;":311,"kcy;":1082,"kfr;":[55349,56616],"kgreen;":312,"khcy;":1093,"kjcy;":1116,"kopf;":[55349,56668],"kscr;":[55349,56512],"lAarr;":8666,"lArr;":8656,"lAtail;":10523,"lBarr;":10510,"lE;":8806,"lEg;":10891,"lHar;":10594,"lacute;":314,"laemptyv;":10676,"lagran;":8466,"lambda;":955,"lang;":10216,"langd;":10641,"langle;":10216,"lap;":10885,laquo:171,"laquo;":171,"larr;":8592,"larrb;":8676,"larrbfs;":10527,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrsim;":10611,"larrtl;":8610,"lat;":10923,"latail;":10521,"late;":10925,"lates;":[10925,65024],"lbarr;":10508,"lbbrk;":10098,"lbrace;":123,"lbrack;":91,"lbrke;":10635,"lbrksld;":10639,"lbrkslu;":10637,"lcaron;":318,"lcedil;":316,"lceil;":8968,"lcub;":123,"lcy;":1083,"ldca;":10550,"ldquo;":8220,"ldquor;":8222,"ldrdhar;":10599,"ldrushar;":10571,"ldsh;":8626,"le;":8804,"leftarrow;":8592,"leftarrowtail;":8610,"leftharpoondown;":8637,"leftharpoonup;":8636,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftrightarrows;":8646,"leftrightharpoons;":8651,"leftrightsquigarrow;":8621,"leftthreetimes;":8907,"leg;":8922,"leq;":8804,"leqq;":8806,"leqslant;":10877,"les;":10877,"lescc;":10920,"lesdot;":10879,"lesdoto;":10881,"lesdotor;":10883,"lesg;":[8922,65024],"lesges;":10899,"lessapprox;":10885,"lessdot;":8918,"lesseqgtr;":8922,"lesseqqgtr;":10891,"lessgtr;":8822,"lesssim;":8818,"lfisht;":10620,"lfloor;":8970,"lfr;":[55349,56617],"lg;":8822,"lgE;":10897,"lhard;":8637,"lharu;":8636,"lharul;":10602,"lhblk;":9604,"ljcy;":1113,"ll;":8810,"llarr;":8647,"llcorner;":8990,"llhard;":10603,"lltri;":9722,"lmidot;":320,"lmoust;":9136,"lmoustache;":9136,"lnE;":8808,"lnap;":10889,"lnapprox;":10889,"lne;":10887,"lneq;":10887,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"longleftarrow;":10229,"longleftrightarrow;":10231,"longmapsto;":10236,"longrightarrow;":10230,"looparrowleft;":8619,"looparrowright;":8620,"lopar;":10629,"lopf;":[55349,56669],"loplus;":10797,"lotimes;":10804,"lowast;":8727,"lowbar;":95,"loz;":9674,"lozenge;":9674,"lozf;":10731,"lpar;":40,"lparlt;":10643,"lrarr;":8646,"lrcorner;":8991,"lrhar;":8651,"lrhard;":10605,"lrm;":8206,"lrtri;":8895,"lsaquo;":8249,"lscr;":[55349,56513],"lsh;":8624,"lsim;":8818,"lsime;":10893,"lsimg;":10895,"lsqb;":91,"lsquo;":8216,"lsquor;":8218,"lstrok;":322,lt:60,"lt;":60,"ltcc;":10918,"ltcir;":10873,"ltdot;":8918,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltquest;":10875,"ltrPar;":10646,"ltri;":9667,"ltrie;":8884,"ltrif;":9666,"lurdshar;":10570,"luruhar;":10598,"lvertneqq;":[8808,65024],"lvnE;":[8808,65024],"mDDot;":8762,macr:175,"macr;":175,"male;":9794,"malt;":10016,"maltese;":10016,"map;":8614,"mapsto;":8614,"mapstodown;":8615,"mapstoleft;":8612,"mapstoup;":8613,"marker;":9646,"mcomma;":10793,"mcy;":1084,"mdash;":8212,"measuredangle;":8737,"mfr;":[55349,56618],"mho;":8487,micro:181,"micro;":181,"mid;":8739,"midast;":42,"midcir;":10992,middot:183,"middot;":183,"minus;":8722,"minusb;":8863,"minusd;":8760,"minusdu;":10794,"mlcp;":10971,"mldr;":8230,"mnplus;":8723,"models;":8871,"mopf;":[55349,56670],"mp;":8723,"mscr;":[55349,56514],"mstpos;":8766,"mu;":956,"multimap;":8888,"mumap;":8888,"nGg;":[8921,824],"nGt;":[8811,8402],"nGtv;":[8811,824],"nLeftarrow;":8653,"nLeftrightarrow;":8654,"nLl;":[8920,824],"nLt;":[8810,8402],"nLtv;":[8810,824],"nRightarrow;":8655,"nVDash;":8879,"nVdash;":8878,"nabla;":8711,"nacute;":324,"nang;":[8736,8402],"nap;":8777,"napE;":[10864,824],"napid;":[8779,824],"napos;":329,"napprox;":8777,"natur;":9838,"natural;":9838,"naturals;":8469,nbsp:160,"nbsp;":160,"nbump;":[8782,824],"nbumpe;":[8783,824],"ncap;":10819,"ncaron;":328,"ncedil;":326,"ncong;":8775,"ncongdot;":[10861,824],"ncup;":10818,"ncy;":1085,"ndash;":8211,"ne;":8800,"neArr;":8663,"nearhk;":10532,"nearr;":8599,"nearrow;":8599,"nedot;":[8784,824],"nequiv;":8802,"nesear;":10536,"nesim;":[8770,824],"nexist;":8708,"nexists;":8708,"nfr;":[55349,56619],"ngE;":[8807,824],"nge;":8817,"ngeq;":8817,"ngeqq;":[8807,824],"ngeqslant;":[10878,824],"nges;":[10878,824],"ngsim;":8821,"ngt;":8815,"ngtr;":8815,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"ni;":8715,"nis;":8956,"nisd;":8954,"niv;":8715,"njcy;":1114,"nlArr;":8653,"nlE;":[8806,824],"nlarr;":8602,"nldr;":8229,"nle;":8816,"nleftarrow;":8602,"nleftrightarrow;":8622,"nleq;":8816,"nleqq;":[8806,824],"nleqslant;":[10877,824],"nles;":[10877,824],"nless;":8814,"nlsim;":8820,"nlt;":8814,"nltri;":8938,"nltrie;":8940,"nmid;":8740,"nopf;":[55349,56671],not:172,"not;":172,"notin;":8713,"notinE;":[8953,824],"notindot;":[8949,824],"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notni;":8716,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npar;":8742,"nparallel;":8742,"nparsl;":[11005,8421],"npart;":[8706,824],"npolint;":10772,"npr;":8832,"nprcue;":8928,"npre;":[10927,824],"nprec;":8832,"npreceq;":[10927,824],"nrArr;":8655,"nrarr;":8603,"nrarrc;":[10547,824],"nrarrw;":[8605,824],"nrightarrow;":8603,"nrtri;":8939,"nrtrie;":8941,"nsc;":8833,"nsccue;":8929,"nsce;":[10928,824],"nscr;":[55349,56515],"nshortmid;":8740,"nshortparallel;":8742,"nsim;":8769,"nsime;":8772,"nsimeq;":8772,"nsmid;":8740,"nspar;":8742,"nsqsube;":8930,"nsqsupe;":8931,"nsub;":8836,"nsubE;":[10949,824],"nsube;":8840,"nsubset;":[8834,8402],"nsubseteq;":8840,"nsubseteqq;":[10949,824],"nsucc;":8833,"nsucceq;":[10928,824],"nsup;":8837,"nsupE;":[10950,824],"nsupe;":8841,"nsupset;":[8835,8402],"nsupseteq;":8841,"nsupseteqq;":[10950,824],"ntgl;":8825,ntilde:241,"ntilde;":241,"ntlg;":8824,"ntriangleleft;":8938,"ntrianglelefteq;":8940,"ntriangleright;":8939,"ntrianglerighteq;":8941,"nu;":957,"num;":35,"numero;":8470,"numsp;":8199,"nvDash;":8877,"nvHarr;":10500,"nvap;":[8781,8402],"nvdash;":8876,"nvge;":[8805,8402],"nvgt;":[62,8402],"nvinfin;":10718,"nvlArr;":10498,"nvle;":[8804,8402],"nvlt;":[60,8402],"nvltrie;":[8884,8402],"nvrArr;":10499,"nvrtrie;":[8885,8402],"nvsim;":[8764,8402],"nwArr;":8662,"nwarhk;":10531,"nwarr;":8598,"nwarrow;":8598,"nwnear;":10535,"oS;":9416,oacute:243,"oacute;":243,"oast;":8859,"ocir;":8858,ocirc:244,"ocirc;":244,"ocy;":1086,"odash;":8861,"odblac;":337,"odiv;":10808,"odot;":8857,"odsold;":10684,"oelig;":339,"ofcir;":10687,"ofr;":[55349,56620],"ogon;":731,ograve:242,"ograve;":242,"ogt;":10689,"ohbar;":10677,"ohm;":937,"oint;":8750,"olarr;":8634,"olcir;":10686,"olcross;":10683,"oline;":8254,"olt;":10688,"omacr;":333,"omega;":969,"omicron;":959,"omid;":10678,"ominus;":8854,"oopf;":[55349,56672],"opar;":10679,"operp;":10681,"oplus;":8853,"or;":8744,"orarr;":8635,"ord;":10845,"order;":8500,"orderof;":8500,ordf:170,"ordf;":170,ordm:186,"ordm;":186,"origof;":8886,"oror;":10838,"orslope;":10839,"orv;":10843,"oscr;":8500,oslash:248,"oslash;":248,"osol;":8856,otilde:245,"otilde;":245,"otimes;":8855,"otimesas;":10806,ouml:246,"ouml;":246,"ovbar;":9021,"par;":8741,para:182,"para;":182,"parallel;":8741,"parsim;":10995,"parsl;":11005,"part;":8706,"pcy;":1087,"percnt;":37,"period;":46,"permil;":8240,"perp;":8869,"pertenk;":8241,"pfr;":[55349,56621],"phi;":966,"phiv;":981,"phmmat;":8499,"phone;":9742,"pi;":960,"pitchfork;":8916,"piv;":982,"planck;":8463,"planckh;":8462,"plankv;":8463,"plus;":43,"plusacir;":10787,"plusb;":8862,"pluscir;":10786,"plusdo;":8724,"plusdu;":10789,"pluse;":10866,plusmn:177,"plusmn;":177,"plussim;":10790,"plustwo;":10791,"pm;":177,"pointint;":10773,"popf;":[55349,56673],pound:163,"pound;":163,"pr;":8826,"prE;":10931,"prap;":10935,"prcue;":8828,"pre;":10927,"prec;":8826,"precapprox;":10935,"preccurlyeq;":8828,"preceq;":10927,"precnapprox;":10937,"precneqq;":10933,"precnsim;":8936,"precsim;":8830,"prime;":8242,"primes;":8473,"prnE;":10933,"prnap;":10937,"prnsim;":8936,"prod;":8719,"profalar;":9006,"profline;":8978,"profsurf;":8979,"prop;":8733,"propto;":8733,"prsim;":8830,"prurel;":8880,"pscr;":[55349,56517],"psi;":968,"puncsp;":8200,"qfr;":[55349,56622],"qint;":10764,"qopf;":[55349,56674],"qprime;":8279,"qscr;":[55349,56518],"quaternions;":8461,"quatint;":10774,"quest;":63,"questeq;":8799,quot:34,"quot;":34,"rAarr;":8667,"rArr;":8658,"rAtail;":10524,"rBarr;":10511,"rHar;":10596,"race;":[8765,817],"racute;":341,"radic;":8730,"raemptyv;":10675,"rang;":10217,"rangd;":10642,"range;":10661,"rangle;":10217,raquo:187,"raquo;":187,"rarr;":8594,"rarrap;":10613,"rarrb;":8677,"rarrbfs;":10528,"rarrc;":10547,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrsim;":10612,"rarrtl;":8611,"rarrw;":8605,"ratail;":10522,"ratio;":8758,"rationals;":8474,"rbarr;":10509,"rbbrk;":10099,"rbrace;":125,"rbrack;":93,"rbrke;":10636,"rbrksld;":10638,"rbrkslu;":10640,"rcaron;":345,"rcedil;":343,"rceil;":8969,"rcub;":125,"rcy;":1088,"rdca;":10551,"rdldhar;":10601,"rdquo;":8221,"rdquor;":8221,"rdsh;":8627,"real;":8476,"realine;":8475,"realpart;":8476,"reals;":8477,"rect;":9645,reg:174,"reg;":174,"rfisht;":10621,"rfloor;":8971,"rfr;":[55349,56623],"rhard;":8641,"rharu;":8640,"rharul;":10604,"rho;":961,"rhov;":1009,"rightarrow;":8594,"rightarrowtail;":8611,"rightharpoondown;":8641,"rightharpoonup;":8640,"rightleftarrows;":8644,"rightleftharpoons;":8652,"rightrightarrows;":8649,"rightsquigarrow;":8605,"rightthreetimes;":8908,"ring;":730,"risingdotseq;":8787,"rlarr;":8644,"rlhar;":8652,"rlm;":8207,"rmoust;":9137,"rmoustache;":9137,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"ropf;":[55349,56675],"roplus;":10798,"rotimes;":10805,"rpar;":41,"rpargt;":10644,"rppolint;":10770,"rrarr;":8649,"rsaquo;":8250,"rscr;":[55349,56519],"rsh;":8625,"rsqb;":93,"rsquo;":8217,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"rtri;":9657,"rtrie;":8885,"rtrif;":9656,"rtriltri;":10702,"ruluhar;":10600,"rx;":8478,"sacute;":347,"sbquo;":8218,"sc;":8827,"scE;":10932,"scap;":10936,"scaron;":353,"sccue;":8829,"sce;":10928,"scedil;":351,"scirc;":349,"scnE;":10934,"scnap;":10938,"scnsim;":8937,"scpolint;":10771,"scsim;":8831,"scy;":1089,"sdot;":8901,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searhk;":10533,"searr;":8600,"searrow;":8600,sect:167,"sect;":167,"semi;":59,"seswar;":10537,"setminus;":8726,"setmn;":8726,"sext;":10038,"sfr;":[55349,56624],"sfrown;":8994,"sharp;":9839,"shchcy;":1097,"shcy;":1096,"shortmid;":8739,"shortparallel;":8741,shy:173,"shy;":173,"sigma;":963,"sigmaf;":962,"sigmav;":962,"sim;":8764,"simdot;":10858,"sime;":8771,"simeq;":8771,"simg;":10910,"simgE;":10912,"siml;":10909,"simlE;":10911,"simne;":8774,"simplus;":10788,"simrarr;":10610,"slarr;":8592,"smallsetminus;":8726,"smashp;":10803,"smeparsl;":10724,"smid;":8739,"smile;":8995,"smt;":10922,"smte;":10924,"smtes;":[10924,65024],"softcy;":1100,"sol;":47,"solb;":10692,"solbar;":9023,"sopf;":[55349,56676],"spades;":9824,"spadesuit;":9824,"spar;":8741,"sqcap;":8851,"sqcaps;":[8851,65024],"sqcup;":8852,"sqcups;":[8852,65024],"sqsub;":8847,"sqsube;":8849,"sqsubset;":8847,"sqsubseteq;":8849,"sqsup;":8848,"sqsupe;":8850,"sqsupset;":8848,"sqsupseteq;":8850,"squ;":9633,"square;":9633,"squarf;":9642,"squf;":9642,"srarr;":8594,"sscr;":[55349,56520],"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"star;":9734,"starf;":9733,"straightepsilon;":1013,"straightphi;":981,"strns;":175,"sub;":8834,"subE;":10949,"subdot;":10941,"sube;":8838,"subedot;":10947,"submult;":10945,"subnE;":10955,"subne;":8842,"subplus;":10943,"subrarr;":10617,"subset;":8834,"subseteq;":8838,"subseteqq;":10949,"subsetneq;":8842,"subsetneqq;":10955,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succ;":8827,"succapprox;":10936,"succcurlyeq;":8829,"succeq;":10928,"succnapprox;":10938,"succneqq;":10934,"succnsim;":8937,"succsim;":8831,"sum;":8721,"sung;":9834,sup1:185,"sup1;":185,sup2:178,"sup2;":178,sup3:179,"sup3;":179,"sup;":8835,"supE;":10950,"supdot;":10942,"supdsub;":10968,"supe;":8839,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supnE;":10956,"supne;":8843,"supplus;":10944,"supset;":8835,"supseteq;":8839,"supseteqq;":10950,"supsetneq;":8843,"supsetneqq;":10956,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swArr;":8665,"swarhk;":10534,"swarr;":8601,"swarrow;":8601,"swnwar;":10538,szlig:223,"szlig;":223,"target;":8982,"tau;":964,"tbrk;":9140,"tcaron;":357,"tcedil;":355,"tcy;":1090,"tdot;":8411,"telrec;":8981,"tfr;":[55349,56625],"there4;":8756,"therefore;":8756,"theta;":952,"thetasym;":977,"thetav;":977,"thickapprox;":8776,"thicksim;":8764,"thinsp;":8201,"thkap;":8776,"thksim;":8764,thorn:254,"thorn;":254,"tilde;":732,times:215,"times;":215,"timesb;":8864,"timesbar;":10801,"timesd;":10800,"tint;":8749,"toea;":10536,"top;":8868,"topbot;":9014,"topcir;":10993,"topf;":[55349,56677],"topfork;":10970,"tosa;":10537,"tprime;":8244,"trade;":8482,"triangle;":9653,"triangledown;":9663,"triangleleft;":9667,"trianglelefteq;":8884,"triangleq;":8796,"triangleright;":9657,"trianglerighteq;":8885,"tridot;":9708,"trie;":8796,"triminus;":10810,"triplus;":10809,"trisb;":10701,"tritime;":10811,"trpezium;":9186,"tscr;":[55349,56521],"tscy;":1094,"tshcy;":1115,"tstrok;":359,"twixt;":8812,"twoheadleftarrow;":8606,"twoheadrightarrow;":8608,"uArr;":8657,"uHar;":10595,uacute:250,"uacute;":250,"uarr;":8593,"ubrcy;":1118,"ubreve;":365,ucirc:251,"ucirc;":251,"ucy;":1091,"udarr;":8645,"udblac;":369,"udhar;":10606,"ufisht;":10622,"ufr;":[55349,56626],ugrave:249,"ugrave;":249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ulcorn;":8988,"ulcorner;":8988,"ulcrop;":8975,"ultri;":9720,"umacr;":363,uml:168,"uml;":168,"uogon;":371,"uopf;":[55349,56678],"uparrow;":8593,"updownarrow;":8597,"upharpoonleft;":8639,"upharpoonright;":8638,"uplus;":8846,"upsi;":965,"upsih;":978,"upsilon;":965,"upuparrows;":8648,"urcorn;":8989,"urcorner;":8989,"urcrop;":8974,"uring;":367,"urtri;":9721,"uscr;":[55349,56522],"utdot;":8944,"utilde;":361,"utri;":9653,"utrif;":9652,"uuarr;":8648,uuml:252,"uuml;":252,"uwangle;":10663,"vArr;":8661,"vBar;":10984,"vBarv;":10985,"vDash;":8872,"vangrt;":10652,"varepsilon;":1013,"varkappa;":1008,"varnothing;":8709,"varphi;":981,"varpi;":982,"varpropto;":8733,"varr;":8597,"varrho;":1009,"varsigma;":962,"varsubsetneq;":[8842,65024],"varsubsetneqq;":[10955,65024],"varsupsetneq;":[8843,65024],"varsupsetneqq;":[10956,65024],"vartheta;":977,"vartriangleleft;":8882,"vartriangleright;":8883,"vcy;":1074,"vdash;":8866,"vee;":8744,"veebar;":8891,"veeeq;":8794,"vellip;":8942,"verbar;":124,"vert;":124,"vfr;":[55349,56627],"vltri;":8882,"vnsub;":[8834,8402],"vnsup;":[8835,8402],"vopf;":[55349,56679],"vprop;":8733,"vrtri;":8883,"vscr;":[55349,56523],"vsubnE;":[10955,65024],"vsubne;":[8842,65024],"vsupnE;":[10956,65024],"vsupne;":[8843,65024],"vzigzag;":10650,"wcirc;":373,"wedbar;":10847,"wedge;":8743,"wedgeq;":8793,"weierp;":8472,"wfr;":[55349,56628],"wopf;":[55349,56680],"wp;":8472,"wr;":8768,"wreath;":8768,"wscr;":[55349,56524],"xcap;":8898,"xcirc;":9711,"xcup;":8899,"xdtri;":9661,"xfr;":[55349,56629],"xhArr;":10234,"xharr;":10231,"xi;":958,"xlArr;":10232,"xlarr;":10229,"xmap;":10236,"xnis;":8955,"xodot;":10752,"xopf;":[55349,56681],"xoplus;":10753,"xotime;":10754,"xrArr;":10233,"xrarr;":10230,"xscr;":[55349,56525],"xsqcup;":10758,"xuplus;":10756,"xutri;":9651,"xvee;":8897,"xwedge;":8896,yacute:253,"yacute;":253,"yacy;":1103,"ycirc;":375,"ycy;":1099,yen:165,"yen;":165,"yfr;":[55349,56630],"yicy;":1111,"yopf;":[55349,56682],"yscr;":[55349,56526],"yucy;":1102,yuml:255,"yuml;":255,"zacute;":378,"zcaron;":382,"zcy;":1079,"zdot;":380,"zeetrf;":8488,"zeta;":950,"zfr;":[55349,56631],"zhcy;":1078,"zigrarr;":8669,"zopf;":[55349,56683],"zscr;":[55349,56527],"zwj;":8205,"zwnj;":8204},NAMEDCHARREF=/(A(?:Elig;?|MP;?|acute;?|breve;|c(?:irc;?|y;)|fr;|grave;?|lpha;|macr;|nd;|o(?:gon;|pf;)|pplyFunction;|ring;?|s(?:cr;|sign;)|tilde;?|uml;?)|B(?:a(?:ckslash;|r(?:v;|wed;))|cy;|e(?:cause;|rnoullis;|ta;)|fr;|opf;|reve;|scr;|umpeq;)|C(?:Hcy;|OPY;?|a(?:cute;|p(?:;|italDifferentialD;)|yleys;)|c(?:aron;|edil;?|irc;|onint;)|dot;|e(?:dilla;|nterDot;)|fr;|hi;|ircle(?:Dot;|Minus;|Plus;|Times;)|lo(?:ckwiseContourIntegral;|seCurly(?:DoubleQuote;|Quote;))|o(?:lon(?:;|e;)|n(?:gruent;|int;|tourIntegral;)|p(?:f;|roduct;)|unterClockwiseContourIntegral;)|ross;|scr;|up(?:;|Cap;))|D(?:D(?:;|otrahd;)|Jcy;|Scy;|Zcy;|a(?:gger;|rr;|shv;)|c(?:aron;|y;)|el(?:;|ta;)|fr;|i(?:a(?:critical(?:Acute;|Do(?:t;|ubleAcute;)|Grave;|Tilde;)|mond;)|fferentialD;)|o(?:pf;|t(?:;|Dot;|Equal;)|uble(?:ContourIntegral;|Do(?:t;|wnArrow;)|L(?:eft(?:Arrow;|RightArrow;|Tee;)|ong(?:Left(?:Arrow;|RightArrow;)|RightArrow;))|Right(?:Arrow;|Tee;)|Up(?:Arrow;|DownArrow;)|VerticalBar;)|wn(?:Arrow(?:;|Bar;|UpArrow;)|Breve;|Left(?:RightVector;|TeeVector;|Vector(?:;|Bar;))|Right(?:TeeVector;|Vector(?:;|Bar;))|Tee(?:;|Arrow;)|arrow;))|s(?:cr;|trok;))|E(?:NG;|TH;?|acute;?|c(?:aron;|irc;?|y;)|dot;|fr;|grave;?|lement;|m(?:acr;|pty(?:SmallSquare;|VerySmallSquare;))|o(?:gon;|pf;)|psilon;|qu(?:al(?:;|Tilde;)|ilibrium;)|s(?:cr;|im;)|ta;|uml;?|x(?:ists;|ponentialE;))|F(?:cy;|fr;|illed(?:SmallSquare;|VerySmallSquare;)|o(?:pf;|rAll;|uriertrf;)|scr;)|G(?:Jcy;|T;?|amma(?:;|d;)|breve;|c(?:edil;|irc;|y;)|dot;|fr;|g;|opf;|reater(?:Equal(?:;|Less;)|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;)|scr;|t;)|H(?:ARDcy;|a(?:cek;|t;)|circ;|fr;|ilbertSpace;|o(?:pf;|rizontalLine;)|s(?:cr;|trok;)|ump(?:DownHump;|Equal;))|I(?:Ecy;|Jlig;|Ocy;|acute;?|c(?:irc;?|y;)|dot;|fr;|grave;?|m(?:;|a(?:cr;|ginaryI;)|plies;)|n(?:t(?:;|e(?:gral;|rsection;))|visible(?:Comma;|Times;))|o(?:gon;|pf;|ta;)|scr;|tilde;|u(?:kcy;|ml;?))|J(?:c(?:irc;|y;)|fr;|opf;|s(?:cr;|ercy;)|ukcy;)|K(?:Hcy;|Jcy;|appa;|c(?:edil;|y;)|fr;|opf;|scr;)|L(?:Jcy;|T;?|a(?:cute;|mbda;|ng;|placetrf;|rr;)|c(?:aron;|edil;|y;)|e(?:ft(?:A(?:ngleBracket;|rrow(?:;|Bar;|RightArrow;))|Ceiling;|Do(?:ubleBracket;|wn(?:TeeVector;|Vector(?:;|Bar;)))|Floor;|Right(?:Arrow;|Vector;)|T(?:ee(?:;|Arrow;|Vector;)|riangle(?:;|Bar;|Equal;))|Up(?:DownVector;|TeeVector;|Vector(?:;|Bar;))|Vector(?:;|Bar;)|arrow;|rightarrow;)|ss(?:EqualGreater;|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;))|fr;|l(?:;|eftarrow;)|midot;|o(?:ng(?:Left(?:Arrow;|RightArrow;)|RightArrow;|left(?:arrow;|rightarrow;)|rightarrow;)|pf;|wer(?:LeftArrow;|RightArrow;))|s(?:cr;|h;|trok;)|t;)|M(?:ap;|cy;|e(?:diumSpace;|llintrf;)|fr;|inusPlus;|opf;|scr;|u;)|N(?:Jcy;|acute;|c(?:aron;|edil;|y;)|e(?:gative(?:MediumSpace;|Thi(?:ckSpace;|nSpace;)|VeryThinSpace;)|sted(?:GreaterGreater;|LessLess;)|wLine;)|fr;|o(?:Break;|nBreakingSpace;|pf;|t(?:;|C(?:ongruent;|upCap;)|DoubleVerticalBar;|E(?:lement;|qual(?:;|Tilde;)|xists;)|Greater(?:;|Equal;|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;)|Hump(?:DownHump;|Equal;)|Le(?:ftTriangle(?:;|Bar;|Equal;)|ss(?:;|Equal;|Greater;|Less;|SlantEqual;|Tilde;))|Nested(?:GreaterGreater;|LessLess;)|Precedes(?:;|Equal;|SlantEqual;)|R(?:everseElement;|ightTriangle(?:;|Bar;|Equal;))|S(?:quareSu(?:bset(?:;|Equal;)|perset(?:;|Equal;))|u(?:bset(?:;|Equal;)|cceeds(?:;|Equal;|SlantEqual;|Tilde;)|perset(?:;|Equal;)))|Tilde(?:;|Equal;|FullEqual;|Tilde;)|VerticalBar;))|scr;|tilde;?|u;)|O(?:Elig;|acute;?|c(?:irc;?|y;)|dblac;|fr;|grave;?|m(?:acr;|ega;|icron;)|opf;|penCurly(?:DoubleQuote;|Quote;)|r;|s(?:cr;|lash;?)|ti(?:lde;?|mes;)|uml;?|ver(?:B(?:ar;|rac(?:e;|ket;))|Parenthesis;))|P(?:artialD;|cy;|fr;|hi;|i;|lusMinus;|o(?:incareplane;|pf;)|r(?:;|ecedes(?:;|Equal;|SlantEqual;|Tilde;)|ime;|o(?:duct;|portion(?:;|al;)))|s(?:cr;|i;))|Q(?:UOT;?|fr;|opf;|scr;)|R(?:Barr;|EG;?|a(?:cute;|ng;|rr(?:;|tl;))|c(?:aron;|edil;|y;)|e(?:;|verse(?:E(?:lement;|quilibrium;)|UpEquilibrium;))|fr;|ho;|ight(?:A(?:ngleBracket;|rrow(?:;|Bar;|LeftArrow;))|Ceiling;|Do(?:ubleBracket;|wn(?:TeeVector;|Vector(?:;|Bar;)))|Floor;|T(?:ee(?:;|Arrow;|Vector;)|riangle(?:;|Bar;|Equal;))|Up(?:DownVector;|TeeVector;|Vector(?:;|Bar;))|Vector(?:;|Bar;)|arrow;)|o(?:pf;|undImplies;)|rightarrow;|s(?:cr;|h;)|uleDelayed;)|S(?:H(?:CHcy;|cy;)|OFTcy;|acute;|c(?:;|aron;|edil;|irc;|y;)|fr;|hort(?:DownArrow;|LeftArrow;|RightArrow;|UpArrow;)|igma;|mallCircle;|opf;|q(?:rt;|uare(?:;|Intersection;|Su(?:bset(?:;|Equal;)|perset(?:;|Equal;))|Union;))|scr;|tar;|u(?:b(?:;|set(?:;|Equal;))|c(?:ceeds(?:;|Equal;|SlantEqual;|Tilde;)|hThat;)|m;|p(?:;|erset(?:;|Equal;)|set;)))|T(?:HORN;?|RADE;|S(?:Hcy;|cy;)|a(?:b;|u;)|c(?:aron;|edil;|y;)|fr;|h(?:e(?:refore;|ta;)|i(?:ckSpace;|nSpace;))|ilde(?:;|Equal;|FullEqual;|Tilde;)|opf;|ripleDot;|s(?:cr;|trok;))|U(?:a(?:cute;?|rr(?:;|ocir;))|br(?:cy;|eve;)|c(?:irc;?|y;)|dblac;|fr;|grave;?|macr;|n(?:der(?:B(?:ar;|rac(?:e;|ket;))|Parenthesis;)|ion(?:;|Plus;))|o(?:gon;|pf;)|p(?:Arrow(?:;|Bar;|DownArrow;)|DownArrow;|Equilibrium;|Tee(?:;|Arrow;)|arrow;|downarrow;|per(?:LeftArrow;|RightArrow;)|si(?:;|lon;))|ring;|scr;|tilde;|uml;?)|V(?:Dash;|bar;|cy;|dash(?:;|l;)|e(?:e;|r(?:bar;|t(?:;|ical(?:Bar;|Line;|Separator;|Tilde;))|yThinSpace;))|fr;|opf;|scr;|vdash;)|W(?:circ;|edge;|fr;|opf;|scr;)|X(?:fr;|i;|opf;|scr;)|Y(?:Acy;|Icy;|Ucy;|acute;?|c(?:irc;|y;)|fr;|opf;|scr;|uml;)|Z(?:Hcy;|acute;|c(?:aron;|y;)|dot;|e(?:roWidthSpace;|ta;)|fr;|opf;|scr;)|a(?:acute;?|breve;|c(?:;|E;|d;|irc;?|ute;?|y;)|elig;?|f(?:;|r;)|grave;?|l(?:e(?:fsym;|ph;)|pha;)|m(?:a(?:cr;|lg;)|p;?)|n(?:d(?:;|and;|d;|slope;|v;)|g(?:;|e;|le;|msd(?:;|a(?:a;|b;|c;|d;|e;|f;|g;|h;))|rt(?:;|vb(?:;|d;))|s(?:ph;|t;)|zarr;))|o(?:gon;|pf;)|p(?:;|E;|acir;|e;|id;|os;|prox(?:;|eq;))|ring;?|s(?:cr;|t;|ymp(?:;|eq;))|tilde;?|uml;?|w(?:conint;|int;))|b(?:Not;|a(?:ck(?:cong;|epsilon;|prime;|sim(?:;|eq;))|r(?:vee;|wed(?:;|ge;)))|brk(?:;|tbrk;)|c(?:ong;|y;)|dquo;|e(?:caus(?:;|e;)|mptyv;|psi;|rnou;|t(?:a;|h;|ween;))|fr;|ig(?:c(?:ap;|irc;|up;)|o(?:dot;|plus;|times;)|s(?:qcup;|tar;)|triangle(?:down;|up;)|uplus;|vee;|wedge;)|karow;|l(?:a(?:ck(?:lozenge;|square;|triangle(?:;|down;|left;|right;))|nk;)|k(?:1(?:2;|4;)|34;)|ock;)|n(?:e(?:;|quiv;)|ot;)|o(?:pf;|t(?:;|tom;)|wtie;|x(?:D(?:L;|R;|l;|r;)|H(?:;|D;|U;|d;|u;)|U(?:L;|R;|l;|r;)|V(?:;|H;|L;|R;|h;|l;|r;)|box;|d(?:L;|R;|l;|r;)|h(?:;|D;|U;|d;|u;)|minus;|plus;|times;|u(?:L;|R;|l;|r;)|v(?:;|H;|L;|R;|h;|l;|r;)))|prime;|r(?:eve;|vbar;?)|s(?:cr;|emi;|im(?:;|e;)|ol(?:;|b;|hsub;))|u(?:ll(?:;|et;)|mp(?:;|E;|e(?:;|q;))))|c(?:a(?:cute;|p(?:;|and;|brcup;|c(?:ap;|up;)|dot;|s;)|r(?:et;|on;))|c(?:a(?:ps;|ron;)|edil;?|irc;|ups(?:;|sm;))|dot;|e(?:dil;?|mptyv;|nt(?:;|erdot;|))|fr;|h(?:cy;|eck(?:;|mark;)|i;)|ir(?:;|E;|c(?:;|eq;|le(?:arrow(?:left;|right;)|d(?:R;|S;|ast;|circ;|dash;)))|e;|fnint;|mid;|scir;)|lubs(?:;|uit;)|o(?:lon(?:;|e(?:;|q;))|m(?:ma(?:;|t;)|p(?:;|fn;|le(?:ment;|xes;)))|n(?:g(?:;|dot;)|int;)|p(?:f;|rod;|y(?:;|sr;|)))|r(?:arr;|oss;)|s(?:cr;|u(?:b(?:;|e;)|p(?:;|e;)))|tdot;|u(?:darr(?:l;|r;)|e(?:pr;|sc;)|larr(?:;|p;)|p(?:;|brcap;|c(?:ap;|up;)|dot;|or;|s;)|r(?:arr(?:;|m;)|ly(?:eq(?:prec;|succ;)|vee;|wedge;)|ren;?|vearrow(?:left;|right;))|vee;|wed;)|w(?:conint;|int;)|ylcty;)|d(?:Arr;|Har;|a(?:gger;|leth;|rr;|sh(?:;|v;))|b(?:karow;|lac;)|c(?:aron;|y;)|d(?:;|a(?:gger;|rr;)|otseq;)|e(?:g;?|lta;|mptyv;)|f(?:isht;|r;)|har(?:l;|r;)|i(?:am(?:;|ond(?:;|suit;)|s;)|e;|gamma;|sin;|v(?:;|ide(?:;|ontimes;|)|onx;))|jcy;|lc(?:orn;|rop;)|o(?:llar;|pf;|t(?:;|eq(?:;|dot;)|minus;|plus;|square;)|ublebarwedge;|wn(?:arrow;|downarrows;|harpoon(?:left;|right;)))|r(?:bkarow;|c(?:orn;|rop;))|s(?:c(?:r;|y;)|ol;|trok;)|t(?:dot;|ri(?:;|f;))|u(?:arr;|har;)|wangle;|z(?:cy;|igrarr;))|e(?:D(?:Dot;|ot;)|a(?:cute;?|ster;)|c(?:aron;|ir(?:;|c;?)|olon;|y;)|dot;|e;|f(?:Dot;|r;)|g(?:;|rave;?|s(?:;|dot;))|l(?:;|inters;|l;|s(?:;|dot;))|m(?:acr;|pty(?:;|set;|v;)|sp(?:1(?:3;|4;)|;))|n(?:g;|sp;)|o(?:gon;|pf;)|p(?:ar(?:;|sl;)|lus;|si(?:;|lon;|v;))|q(?:c(?:irc;|olon;)|s(?:im;|lant(?:gtr;|less;))|u(?:als;|est;|iv(?:;|DD;))|vparsl;)|r(?:Dot;|arr;)|s(?:cr;|dot;|im;)|t(?:a;|h;?)|u(?:ml;?|ro;)|x(?:cl;|ist;|p(?:ectation;|onentiale;)))|f(?:allingdotseq;|cy;|emale;|f(?:ilig;|l(?:ig;|lig;)|r;)|ilig;|jlig;|l(?:at;|lig;|tns;)|nof;|o(?:pf;|r(?:all;|k(?:;|v;)))|partint;|r(?:a(?:c(?:1(?:2;?|3;|4;?|5;|6;|8;)|2(?:3;|5;)|3(?:4;?|5;|8;)|45;|5(?:6;|8;)|78;)|sl;)|own;)|scr;)|g(?:E(?:;|l;)|a(?:cute;|mma(?:;|d;)|p;)|breve;|c(?:irc;|y;)|dot;|e(?:;|l;|q(?:;|q;|slant;)|s(?:;|cc;|dot(?:;|o(?:;|l;))|l(?:;|es;)))|fr;|g(?:;|g;)|imel;|jcy;|l(?:;|E;|a;|j;)|n(?:E;|ap(?:;|prox;)|e(?:;|q(?:;|q;))|sim;)|opf;|rave;|s(?:cr;|im(?:;|e;|l;))|t(?:;|c(?:c;|ir;)|dot;|lPar;|quest;|r(?:a(?:pprox;|rr;)|dot;|eq(?:less;|qless;)|less;|sim;)|)|v(?:ertneqq;|nE;))|h(?:Arr;|a(?:irsp;|lf;|milt;|r(?:dcy;|r(?:;|cir;|w;)))|bar;|circ;|e(?:arts(?:;|uit;)|llip;|rcon;)|fr;|ks(?:earow;|warow;)|o(?:arr;|mtht;|ok(?:leftarrow;|rightarrow;)|pf;|rbar;)|s(?:cr;|lash;|trok;)|y(?:bull;|phen;))|i(?:acute;?|c(?:;|irc;?|y;)|e(?:cy;|xcl;?)|f(?:f;|r;)|grave;?|i(?:;|i(?:int;|nt;)|nfin;|ota;)|jlig;|m(?:a(?:cr;|g(?:e;|line;|part;)|th;)|of;|ped;)|n(?:;|care;|fin(?:;|tie;)|odot;|t(?:;|cal;|e(?:gers;|rcal;)|larhk;|prod;))|o(?:cy;|gon;|pf;|ta;)|prod;|quest;?|s(?:cr;|in(?:;|E;|dot;|s(?:;|v;)|v;))|t(?:;|ilde;)|u(?:kcy;|ml;?))|j(?:c(?:irc;|y;)|fr;|math;|opf;|s(?:cr;|ercy;)|ukcy;)|k(?:appa(?:;|v;)|c(?:edil;|y;)|fr;|green;|hcy;|jcy;|opf;|scr;)|l(?:A(?:arr;|rr;|tail;)|Barr;|E(?:;|g;)|Har;|a(?:cute;|emptyv;|gran;|mbda;|ng(?:;|d;|le;)|p;|quo;?|rr(?:;|b(?:;|fs;)|fs;|hk;|lp;|pl;|sim;|tl;)|t(?:;|ail;|e(?:;|s;)))|b(?:arr;|brk;|r(?:ac(?:e;|k;)|k(?:e;|sl(?:d;|u;))))|c(?:aron;|e(?:dil;|il;)|ub;|y;)|d(?:ca;|quo(?:;|r;)|r(?:dhar;|ushar;)|sh;)|e(?:;|ft(?:arrow(?:;|tail;)|harpoon(?:down;|up;)|leftarrows;|right(?:arrow(?:;|s;)|harpoons;|squigarrow;)|threetimes;)|g;|q(?:;|q;|slant;)|s(?:;|cc;|dot(?:;|o(?:;|r;))|g(?:;|es;)|s(?:approx;|dot;|eq(?:gtr;|qgtr;)|gtr;|sim;)))|f(?:isht;|loor;|r;)|g(?:;|E;)|h(?:ar(?:d;|u(?:;|l;))|blk;)|jcy;|l(?:;|arr;|corner;|hard;|tri;)|m(?:idot;|oust(?:;|ache;))|n(?:E;|ap(?:;|prox;)|e(?:;|q(?:;|q;))|sim;)|o(?:a(?:ng;|rr;)|brk;|ng(?:left(?:arrow;|rightarrow;)|mapsto;|rightarrow;)|oparrow(?:left;|right;)|p(?:ar;|f;|lus;)|times;|w(?:ast;|bar;)|z(?:;|enge;|f;))|par(?:;|lt;)|r(?:arr;|corner;|har(?:;|d;)|m;|tri;)|s(?:aquo;|cr;|h;|im(?:;|e;|g;)|q(?:b;|uo(?:;|r;))|trok;)|t(?:;|c(?:c;|ir;)|dot;|hree;|imes;|larr;|quest;|r(?:Par;|i(?:;|e;|f;))|)|ur(?:dshar;|uhar;)|v(?:ertneqq;|nE;))|m(?:DDot;|a(?:cr;?|l(?:e;|t(?:;|ese;))|p(?:;|sto(?:;|down;|left;|up;))|rker;)|c(?:omma;|y;)|dash;|easuredangle;|fr;|ho;|i(?:cro;?|d(?:;|ast;|cir;|dot;?)|nus(?:;|b;|d(?:;|u;)))|l(?:cp;|dr;)|nplus;|o(?:dels;|pf;)|p;|s(?:cr;|tpos;)|u(?:;|ltimap;|map;))|n(?:G(?:g;|t(?:;|v;))|L(?:eft(?:arrow;|rightarrow;)|l;|t(?:;|v;))|Rightarrow;|V(?:Dash;|dash;)|a(?:bla;|cute;|ng;|p(?:;|E;|id;|os;|prox;)|tur(?:;|al(?:;|s;)))|b(?:sp;?|ump(?:;|e;))|c(?:a(?:p;|ron;)|edil;|ong(?:;|dot;)|up;|y;)|dash;|e(?:;|Arr;|ar(?:hk;|r(?:;|ow;))|dot;|quiv;|s(?:ear;|im;)|xist(?:;|s;))|fr;|g(?:E;|e(?:;|q(?:;|q;|slant;)|s;)|sim;|t(?:;|r;))|h(?:Arr;|arr;|par;)|i(?:;|s(?:;|d;)|v;)|jcy;|l(?:Arr;|E;|arr;|dr;|e(?:;|ft(?:arrow;|rightarrow;)|q(?:;|q;|slant;)|s(?:;|s;))|sim;|t(?:;|ri(?:;|e;)))|mid;|o(?:pf;|t(?:;|in(?:;|E;|dot;|v(?:a;|b;|c;))|ni(?:;|v(?:a;|b;|c;))|))|p(?:ar(?:;|allel;|sl;|t;)|olint;|r(?:;|cue;|e(?:;|c(?:;|eq;))))|r(?:Arr;|arr(?:;|c;|w;)|ightarrow;|tri(?:;|e;))|s(?:c(?:;|cue;|e;|r;)|hort(?:mid;|parallel;)|im(?:;|e(?:;|q;))|mid;|par;|qsu(?:be;|pe;)|u(?:b(?:;|E;|e;|set(?:;|eq(?:;|q;)))|cc(?:;|eq;)|p(?:;|E;|e;|set(?:;|eq(?:;|q;)))))|t(?:gl;|ilde;?|lg;|riangle(?:left(?:;|eq;)|right(?:;|eq;)))|u(?:;|m(?:;|ero;|sp;))|v(?:Dash;|Harr;|ap;|dash;|g(?:e;|t;)|infin;|l(?:Arr;|e;|t(?:;|rie;))|r(?:Arr;|trie;)|sim;)|w(?:Arr;|ar(?:hk;|r(?:;|ow;))|near;))|o(?:S;|a(?:cute;?|st;)|c(?:ir(?:;|c;?)|y;)|d(?:ash;|blac;|iv;|ot;|sold;)|elig;|f(?:cir;|r;)|g(?:on;|rave;?|t;)|h(?:bar;|m;)|int;|l(?:arr;|c(?:ir;|ross;)|ine;|t;)|m(?:acr;|ega;|i(?:cron;|d;|nus;))|opf;|p(?:ar;|erp;|lus;)|r(?:;|arr;|d(?:;|er(?:;|of;)|f;?|m;?)|igof;|or;|slope;|v;)|s(?:cr;|lash;?|ol;)|ti(?:lde;?|mes(?:;|as;))|uml;?|vbar;)|p(?:ar(?:;|a(?:;|llel;|)|s(?:im;|l;)|t;)|cy;|er(?:cnt;|iod;|mil;|p;|tenk;)|fr;|h(?:i(?:;|v;)|mmat;|one;)|i(?:;|tchfork;|v;)|l(?:an(?:ck(?:;|h;)|kv;)|us(?:;|acir;|b;|cir;|d(?:o;|u;)|e;|mn;?|sim;|two;))|m;|o(?:intint;|pf;|und;?)|r(?:;|E;|ap;|cue;|e(?:;|c(?:;|approx;|curlyeq;|eq;|n(?:approx;|eqq;|sim;)|sim;))|ime(?:;|s;)|n(?:E;|ap;|sim;)|o(?:d;|f(?:alar;|line;|surf;)|p(?:;|to;))|sim;|urel;)|s(?:cr;|i;)|uncsp;)|q(?:fr;|int;|opf;|prime;|scr;|u(?:at(?:ernions;|int;)|est(?:;|eq;)|ot;?))|r(?:A(?:arr;|rr;|tail;)|Barr;|Har;|a(?:c(?:e;|ute;)|dic;|emptyv;|ng(?:;|d;|e;|le;)|quo;?|rr(?:;|ap;|b(?:;|fs;)|c;|fs;|hk;|lp;|pl;|sim;|tl;|w;)|t(?:ail;|io(?:;|nals;)))|b(?:arr;|brk;|r(?:ac(?:e;|k;)|k(?:e;|sl(?:d;|u;))))|c(?:aron;|e(?:dil;|il;)|ub;|y;)|d(?:ca;|ldhar;|quo(?:;|r;)|sh;)|e(?:al(?:;|ine;|part;|s;)|ct;|g;?)|f(?:isht;|loor;|r;)|h(?:ar(?:d;|u(?:;|l;))|o(?:;|v;))|i(?:ght(?:arrow(?:;|tail;)|harpoon(?:down;|up;)|left(?:arrows;|harpoons;)|rightarrows;|squigarrow;|threetimes;)|ng;|singdotseq;)|l(?:arr;|har;|m;)|moust(?:;|ache;)|nmid;|o(?:a(?:ng;|rr;)|brk;|p(?:ar;|f;|lus;)|times;)|p(?:ar(?:;|gt;)|polint;)|rarr;|s(?:aquo;|cr;|h;|q(?:b;|uo(?:;|r;)))|t(?:hree;|imes;|ri(?:;|e;|f;|ltri;))|uluhar;|x;)|s(?:acute;|bquo;|c(?:;|E;|a(?:p;|ron;)|cue;|e(?:;|dil;)|irc;|n(?:E;|ap;|sim;)|polint;|sim;|y;)|dot(?:;|b;|e;)|e(?:Arr;|ar(?:hk;|r(?:;|ow;))|ct;?|mi;|swar;|tm(?:inus;|n;)|xt;)|fr(?:;|own;)|h(?:arp;|c(?:hcy;|y;)|ort(?:mid;|parallel;)|y;?)|i(?:gma(?:;|f;|v;)|m(?:;|dot;|e(?:;|q;)|g(?:;|E;)|l(?:;|E;)|ne;|plus;|rarr;))|larr;|m(?:a(?:llsetminus;|shp;)|eparsl;|i(?:d;|le;)|t(?:;|e(?:;|s;)))|o(?:ftcy;|l(?:;|b(?:;|ar;))|pf;)|pa(?:des(?:;|uit;)|r;)|q(?:c(?:ap(?:;|s;)|up(?:;|s;))|su(?:b(?:;|e;|set(?:;|eq;))|p(?:;|e;|set(?:;|eq;)))|u(?:;|ar(?:e;|f;)|f;))|rarr;|s(?:cr;|etmn;|mile;|tarf;)|t(?:ar(?:;|f;)|r(?:aight(?:epsilon;|phi;)|ns;))|u(?:b(?:;|E;|dot;|e(?:;|dot;)|mult;|n(?:E;|e;)|plus;|rarr;|s(?:et(?:;|eq(?:;|q;)|neq(?:;|q;))|im;|u(?:b;|p;)))|cc(?:;|approx;|curlyeq;|eq;|n(?:approx;|eqq;|sim;)|sim;)|m;|ng;|p(?:1;?|2;?|3;?|;|E;|d(?:ot;|sub;)|e(?:;|dot;)|hs(?:ol;|ub;)|larr;|mult;|n(?:E;|e;)|plus;|s(?:et(?:;|eq(?:;|q;)|neq(?:;|q;))|im;|u(?:b;|p;))))|w(?:Arr;|ar(?:hk;|r(?:;|ow;))|nwar;)|zlig;?)|t(?:a(?:rget;|u;)|brk;|c(?:aron;|edil;|y;)|dot;|elrec;|fr;|h(?:e(?:re(?:4;|fore;)|ta(?:;|sym;|v;))|i(?:ck(?:approx;|sim;)|nsp;)|k(?:ap;|sim;)|orn;?)|i(?:lde;|mes(?:;|b(?:;|ar;)|d;|)|nt;)|o(?:ea;|p(?:;|bot;|cir;|f(?:;|ork;))|sa;)|prime;|r(?:ade;|i(?:angle(?:;|down;|left(?:;|eq;)|q;|right(?:;|eq;))|dot;|e;|minus;|plus;|sb;|time;)|pezium;)|s(?:c(?:r;|y;)|hcy;|trok;)|w(?:ixt;|ohead(?:leftarrow;|rightarrow;)))|u(?:Arr;|Har;|a(?:cute;?|rr;)|br(?:cy;|eve;)|c(?:irc;?|y;)|d(?:arr;|blac;|har;)|f(?:isht;|r;)|grave;?|h(?:ar(?:l;|r;)|blk;)|l(?:c(?:orn(?:;|er;)|rop;)|tri;)|m(?:acr;|l;?)|o(?:gon;|pf;)|p(?:arrow;|downarrow;|harpoon(?:left;|right;)|lus;|si(?:;|h;|lon;)|uparrows;)|r(?:c(?:orn(?:;|er;)|rop;)|ing;|tri;)|scr;|t(?:dot;|ilde;|ri(?:;|f;))|u(?:arr;|ml;?)|wangle;)|v(?:Arr;|Bar(?:;|v;)|Dash;|a(?:ngrt;|r(?:epsilon;|kappa;|nothing;|p(?:hi;|i;|ropto;)|r(?:;|ho;)|s(?:igma;|u(?:bsetneq(?:;|q;)|psetneq(?:;|q;)))|t(?:heta;|riangle(?:left;|right;))))|cy;|dash;|e(?:e(?:;|bar;|eq;)|llip;|r(?:bar;|t;))|fr;|ltri;|nsu(?:b;|p;)|opf;|prop;|rtri;|s(?:cr;|u(?:bn(?:E;|e;)|pn(?:E;|e;)))|zigzag;)|w(?:circ;|e(?:d(?:bar;|ge(?:;|q;))|ierp;)|fr;|opf;|p;|r(?:;|eath;)|scr;)|x(?:c(?:ap;|irc;|up;)|dtri;|fr;|h(?:Arr;|arr;)|i;|l(?:Arr;|arr;)|map;|nis;|o(?:dot;|p(?:f;|lus;)|time;)|r(?:Arr;|arr;)|s(?:cr;|qcup;)|u(?:plus;|tri;)|vee;|wedge;)|y(?:ac(?:ute;?|y;)|c(?:irc;|y;)|en;?|fr;|icy;|opf;|scr;|u(?:cy;|ml;?))|z(?:acute;|c(?:aron;|y;)|dot;|e(?:etrf;|ta;)|fr;|hcy;|igrarr;|opf;|scr;|w(?:j;|nj;)))|[\s\S]/g,DBLQUOTEATTRVAL=/[^\r"&\u0000]+/g,SINGLEQUOTEATTRVAL=/[^\r'&\u0000]+/g,UNQUOTEDATTRVAL=/[^\r\t\n\f &>\u0000]+/g,TAGNAME=/[^\r\t\n\f \/>A-Z\u0000]+/g,ATTRNAME=/[^\r\t\n\f \/=>A-Z\u0000]+/g,CDATATEXT=/[^\]\r\u0000\uffff]*/g,DATATEXT=/[^&<\r\u0000\uffff]*/g,RAWTEXT=/[^<\r\u0000\uffff]*/g,PLAINTEXT=/[^\r\u0000\uffff]*/g,SIMPLETAG=/(?:(\/)?([a-z]+)>)|[\s\S]/g,SIMPLEATTR=/(?:([-a-z]+)[ \t\n\f]*=[ \t\n\f]*('[^'&\r\u0000]*'|"[^"&\r\u0000]*"|[^\t\n\r\f "&'\u0000>][^&> \t\n\r\f\u0000]*[ \t\n\f]))|[\s\S]/g,NONWS=/[^\x09\x0A\x0C\x0D\x20]/,ALLNONWS=/[^\x09\x0A\x0C\x0D\x20]/g,NONWSNONNUL=/[^\x00\x09\x0A\x0C\x0D\x20]/,LEADINGWS=/^[\x09\x0A\x0C\x0D\x20]+/,NULCHARS=/\x00/g;function buf2str(buf){if(buf.length<16384)return String.fromCharCode.apply(String,buf);for(var result="",i2=0;i20?(leftovers+=s,!0):(0===reentrant_invocations?(leftovers&&(s=leftovers+s,leftovers=""),end&&(s+="\uffff",input_complete=!0),chars=s,numchars=s.length,nextchar=0,first_batch&&(first_batch=!1,65279===chars.charCodeAt(0)&&(nextchar=1)),reentrant_invocations++,moreToDo=scanChars(shouldPauseFunc),leftovers=chars.substring(nextchar,numchars),reentrant_invocations--):(reentrant_invocations++,saved_scanner_state.push(chars,numchars,nextchar),chars=s,numchars=s.length,nextchar=0,scanChars(),moreToDo=!1,leftovers=chars.substring(nextchar,numchars),nextchar=saved_scanner_state.pop(),numchars=saved_scanner_state.pop(),chars=saved_scanner_state.pop(),leftovers&&(chars=leftovers+chars.substring(nextchar),numchars=chars.length,nextchar=0,leftovers=""),reentrant_invocations--),moreToDo)}},doc=new Document2(!0,address);if(doc._parser=htmlparser,doc._scripting_enabled=scripting_enabled,fragmentContext){if(fragmentContext.ownerDocument._quirks&&(doc._quirks=!0),fragmentContext.ownerDocument._limitedQuirks&&(doc._limitedQuirks=!0),fragmentContext.namespaceURI===NAMESPACE.HTML)switch(fragmentContext.localName){case"title":case"textarea":tokenizer=rcdata_state;break;case"style":case"xmp":case"iframe":case"noembed":case"noframes":case"script":case"plaintext":tokenizer=plaintext_state;break;case"noscript":scripting_enabled&&(tokenizer=plaintext_state)}var root=doc.createElement("html");doc._appendChild(root),stack2.push(root),fragmentContext instanceof impl.HTMLTemplateElement&&templateInsertionModes.push(in_template_mode),resetInsertionMode();for(var e=fragmentContext;null!==e;e=e.parentElement)if(e instanceof impl.HTMLFormElement){form_element_pointer=e;break}}function scanChars(shouldPauseFunc){for(var codepoint,s,pattern,eof;nextchar0||shouldPauseFunc&&shouldPauseFunc())return!0;switch(typeof tokenizer.lookahead){case"undefined":if(codepoint=chars.charCodeAt(nextchar++),scanner_skip_newline&&(scanner_skip_newline=!1,10===codepoint)){nextchar++;continue}switch(codepoint){case 13:nextchar0){var s=buf2str(textrun);if(textrun.length=0,ignore_linefeed&&(ignore_linefeed=!1,"\n"===s[0]&&(s=s.substring(1)),0===s.length))return;insertToken(1,s),textIncludesNUL=!1}ignore_linefeed=!1}function getMatchingChars(pattern){pattern.lastIndex=nextchar-1;var match=pattern.exec(chars);if(match&&match.index===nextchar-1)return match=match[0],nextchar+=match.length-1,input_complete&&nextchar===numchars&&(match=match.slice(0,-1),nextchar--),match;throw new Error("should never happen")}function emitCharsWhile(pattern){pattern.lastIndex=nextchar-1;var match=pattern.exec(chars)[0];return!!match&&(emitCharString(match),nextchar+=match.length-1,!0)}function emitCharString(s){textrun.length>0&&flushText(),(!ignore_linefeed||(ignore_linefeed=!1,"\n"===s[0]&&(s=s.substring(1)),0!==s.length))&&insertToken(1,s)}function emitTag(){if(is_end_tag)insertToken(3,tagnamebuf);else{var tagname=tagnamebuf;tagnamebuf="",lasttagname=tagname,insertToken(2,tagname,attributes)}}function emitSimpleTag(){if(nextchar===numchars)return!1;SIMPLETAG.lastIndex=nextchar;var matched=SIMPLETAG.exec(chars);if(!matched)throw new Error("should never happen");var tagname=matched[2];return!!tagname&&(matched[1]?(nextchar+=tagname.length+2,insertToken(3,tagname)):(nextchar+=tagname.length+1,lasttagname=tagname,insertToken(2,tagname,NOATTRS)),!0)}function emitSelfClosingTag(){is_end_tag?insertToken(3,tagnamebuf,null,!0):insertToken(2,tagnamebuf,attributes,!0)}function emitDoctype(){insertToken(5,buf2str(doctypenamebuf),doctypepublicbuf?buf2str(doctypepublicbuf):void 0,doctypesystembuf?buf2str(doctypesystembuf):void 0)}function emitEOF(){flushText(),parser(-1),doc.modclock=1}__name(scanChars,"scanChars"),__name(addAttribute,"addAttribute"),__name(handleSimpleAttribute,"handleSimpleAttribute"),__name(beginTagName,"beginTagName"),__name(beginEndTagName,"beginEndTagName"),__name(beginTempBuf,"beginTempBuf"),__name(beginAttrName,"beginAttrName"),__name(beginAttrValue,"beginAttrValue"),__name(beginComment,"beginComment"),__name(beginDoctype,"beginDoctype"),__name(beginDoctypePublicId,"beginDoctypePublicId"),__name(beginDoctypeSystemId,"beginDoctypeSystemId"),__name(forcequirks,"forcequirks"),__name(cdataAllowed,"cdataAllowed"),__name(appropriateEndTag,"appropriateEndTag"),__name(flushText,"flushText"),__name(getMatchingChars,"getMatchingChars"),__name(emitCharsWhile,"emitCharsWhile"),__name(emitCharString,"emitCharString"),__name(emitTag,"emitTag"),__name(emitSimpleTag,"emitSimpleTag"),__name(emitSelfClosingTag,"emitSelfClosingTag"),__name(emitDoctype,"emitDoctype"),__name(emitEOF,"emitEOF");var insertToken=htmlparser.insertToken=__name(function(t,value,arg3,arg4){flushText();var current=stack2.top;current&¤t.namespaceURI!==NAMESPACE.HTML?2!==t&&1!==t?insertForeignToken(t,value,arg3,arg4):isMathmlTextIntegrationPoint(current)&&(1===t||2===t&&"mglyph"!==value&&"malignmark"!==value)||2===t&&"svg"===value&¤t.namespaceURI===NAMESPACE.MATHML&&"annotation-xml"===current.localName||isHTMLIntegrationPoint(current)?(text_integration_mode=!0,parser(t,value,arg3,arg4),text_integration_mode=!1):insertForeignToken(t,value,arg3,arg4):parser(t,value,arg3,arg4)},"insertToken");function insertComment(data){var parent=stack2.top;foster_parent_mode&&isA(parent,tablesectionrowSet)?fosterParent(function(doc2){return doc2.createComment(data)}):(parent instanceof impl.HTMLTemplateElement&&(parent=parent.content),parent._appendChild(parent.ownerDocument.createComment(data)))}function insertText(s){var parent=stack2.top;if(foster_parent_mode&&isA(parent,tablesectionrowSet))fosterParent(function(doc2){return doc2.createTextNode(s)});else{parent instanceof impl.HTMLTemplateElement&&(parent=parent.content);var lastChild=parent.lastChild;lastChild&&lastChild.nodeType===Node2.TEXT_NODE?lastChild.appendData(s):parent._appendChild(parent.ownerDocument.createTextNode(s))}}function createHTMLElt(doc2,name,attrs){var elt=html.createElement(doc2,name,null);if(attrs)for(var i2=0,n=attrs.length;i2=0;i2--)if(stack2.elements[i2]instanceof type)return i2;return-1}function fosterParent(eltFunc){var parent,before,lastTable,lastTemplate,elt,prev;if((lastTable=lastElementOfType(impl.HTMLTableElement),(lastTemplate=lastElementOfType(impl.HTMLTemplateElement))>=0&&(lastTable<0||lastTemplate>lastTable)?parent=stack2.elements[lastTemplate]:lastTable>=0&&((parent=stack2.elements[lastTable].parentNode)?before=stack2.elements[lastTable]:parent=stack2.elements[lastTable-1]),parent||(parent=stack2.elements[0]),parent instanceof impl.HTMLTemplateElement&&(parent=parent.content),(elt=eltFunc(parent.ownerDocument)).nodeType===Node2.TEXT_NODE)&&((prev=before?before.previousSibling:parent.lastChild)&&prev.nodeType===Node2.TEXT_NODE))return prev.appendData(elt.data),elt;return before?parent.insertBefore(elt,before):parent._appendChild(elt),elt}function resetInsertionMode(){for(var last=!1,i2=stack2.elements.length-1;i2>=0;i2--){var node=stack2.elements[i2];if(0===i2&&(last=!0,fragment&&(node=fragmentContext)),node.namespaceURI===NAMESPACE.HTML){var tag=node.localName;switch(tag){case"select":for(var j=i2;j>0;){var ancestor=stack2.elements[--j];if(ancestor instanceof impl.HTMLTemplateElement)break;if(ancestor instanceof impl.HTMLTableElement)return void(parser=in_select_in_table_mode)}return void(parser=in_select_mode);case"tr":return void(parser=in_row_mode);case"tbody":case"tfoot":case"thead":return void(parser=in_table_body_mode);case"caption":return void(parser=in_caption_mode);case"colgroup":return void(parser=in_column_group_mode);case"table":return void(parser=in_table_mode);case"template":return void(parser=templateInsertionModes[templateInsertionModes.length-1]);case"body":return void(parser=in_body_mode);case"frameset":return void(parser=in_frameset_mode);case"html":return void(parser=null===head_element_pointer?before_head_mode:after_head_mode);default:if(!last){if("head"===tag)return void(parser=in_head_mode);if("td"===tag||"th"===tag)return void(parser=in_cell_mode)}}}if(last)return void(parser=in_body_mode)}}function parseRawText(name,attrs){insertHTMLElement(name,attrs),tokenizer=rawtext_state,originalInsertionMode=parser,parser=text_mode}function parseRCDATA(name,attrs){insertHTMLElement(name,attrs),tokenizer=rcdata_state,originalInsertionMode=parser,parser=text_mode}function afeclone(doc2,i2){return{elt:createHTMLElt(doc2,afe.list[i2].localName,afe.attrs[i2]),attrs:afe.attrs[i2]}}function afereconstruct(){if(0!==afe.list.length){var entry=afe.list[afe.list.length-1];if(entry!==afe.MARKER&&-1===stack2.elements.lastIndexOf(entry)){for(var i2=afe.list.length-2;i2>=0&&((entry=afe.list[i2])!==afe.MARKER&&-1===stack2.elements.lastIndexOf(entry));i2--);for(i2+=1;i23&&-1!==nodeafeindex&&(afe.remove(node),nodeafeindex=-1),-1!==nodeafeindex){var newelt=afeclone(ancestor.ownerDocument,nodeafeindex);afe.replace(node,newelt.elt,newelt.attrs),stack2.elements[nodeindex]=newelt.elt,node=newelt.elt,lastnode===furthestblock&&(afe.remove(BOOKMARK),afe.insertAfter(newelt.elt,BOOKMARK)),node._appendChild(lastnode),lastnode=node}else stack2.removeElement(node);foster_parent_mode&&isA(ancestor,tablesectionrowSet)?fosterParent(function(){return lastnode}):ancestor instanceof impl.HTMLTemplateElement?ancestor.content._appendChild(lastnode):ancestor._appendChild(lastnode);for(var newelt2=afeclone(furthestblock.ownerDocument,afe.indexOf(fmtelt));furthestblock.hasChildNodes();)newelt2.elt._appendChild(furthestblock.firstChild);furthestblock._appendChild(newelt2.elt),afe.remove(fmtelt),afe.replace(BOOKMARK,newelt2.elt,newelt2.attrs),stack2.removeElement(fmtelt);var pos=stack2.elements.lastIndexOf(furthestblock);stack2.elements.splice(pos+1,0,newelt2.elt)}return!0}function handleScriptEnd(){stack2.pop(),parser=originalInsertionMode}function stopParsing(){delete doc._parser,stack2.elements.length=0,doc.defaultView&&doc.defaultView.dispatchEvent(new impl.Event("load",{}))}function reconsume(c,new_state){tokenizer=new_state,nextchar--}function data_state(c){switch(c){case 38:return_state=data_state,tokenizer=character_reference_state;break;case 60:if(emitSimpleTag())break;tokenizer=tag_open_state;break;case 0:textrun.push(c),textIncludesNUL=!0;break;case-1:emitEOF();break;default:emitCharsWhile(DATATEXT)||textrun.push(c)}}function rcdata_state(c){switch(c){case 38:return_state=rcdata_state,tokenizer=character_reference_state;break;case 60:tokenizer=rcdata_less_than_sign_state;break;case 0:textrun.push(65533),textIncludesNUL=!0;break;case-1:emitEOF();break;default:textrun.push(c)}}function rawtext_state(c){switch(c){case 60:tokenizer=rawtext_less_than_sign_state;break;case 0:textrun.push(65533);break;case-1:emitEOF();break;default:emitCharsWhile(RAWTEXT)||textrun.push(c)}}function script_data_state(c){switch(c){case 60:tokenizer=script_data_less_than_sign_state;break;case 0:textrun.push(65533);break;case-1:emitEOF();break;default:emitCharsWhile(RAWTEXT)||textrun.push(c)}}function plaintext_state(c){switch(c){case 0:textrun.push(65533);break;case-1:emitEOF();break;default:emitCharsWhile(PLAINTEXT)||textrun.push(c)}}function tag_open_state(c){switch(c){case 33:tokenizer=markup_declaration_open_state;break;case 47:tokenizer=end_tag_open_state;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:beginTagName(),reconsume(0,tag_name_state);break;case 63:reconsume(0,bogus_comment_state);break;default:textrun.push(60),reconsume(0,data_state)}}function end_tag_open_state(c){switch(c){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:beginEndTagName(),reconsume(0,tag_name_state);break;case 62:tokenizer=data_state;break;case-1:textrun.push(60),textrun.push(47),emitEOF();break;default:reconsume(0,bogus_comment_state)}}function tag_name_state(c){switch(c){case 9:case 10:case 12:case 32:tokenizer=before_attribute_name_state;break;case 47:tokenizer=self_closing_start_tag_state;break;case 62:tokenizer=data_state,emitTag();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:tagnamebuf+=String.fromCharCode(c+32);break;case 0:tagnamebuf+=String.fromCharCode(65533);break;case-1:emitEOF();break;default:tagnamebuf+=getMatchingChars(TAGNAME)}}function rcdata_less_than_sign_state(c){47===c?(beginTempBuf(),tokenizer=rcdata_end_tag_open_state):(textrun.push(60),reconsume(0,rcdata_state))}function rcdata_end_tag_open_state(c){switch(c){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:beginEndTagName(),reconsume(0,rcdata_end_tag_name_state);break;default:textrun.push(60),textrun.push(47),reconsume(0,rcdata_state)}}function rcdata_end_tag_name_state(c){switch(c){case 9:case 10:case 12:case 32:if(appropriateEndTag(tagnamebuf))return void(tokenizer=before_attribute_name_state);break;case 47:if(appropriateEndTag(tagnamebuf))return void(tokenizer=self_closing_start_tag_state);break;case 62:if(appropriateEndTag(tagnamebuf))return tokenizer=data_state,void emitTag();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:return tagnamebuf+=String.fromCharCode(c+32),void tempbuf.push(c);case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return tagnamebuf+=String.fromCharCode(c),void tempbuf.push(c)}textrun.push(60),textrun.push(47),pushAll(textrun,tempbuf),reconsume(0,rcdata_state)}function rawtext_less_than_sign_state(c){47===c?(beginTempBuf(),tokenizer=rawtext_end_tag_open_state):(textrun.push(60),reconsume(0,rawtext_state))}function rawtext_end_tag_open_state(c){switch(c){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:beginEndTagName(),reconsume(0,rawtext_end_tag_name_state);break;default:textrun.push(60),textrun.push(47),reconsume(0,rawtext_state)}}function rawtext_end_tag_name_state(c){switch(c){case 9:case 10:case 12:case 32:if(appropriateEndTag(tagnamebuf))return void(tokenizer=before_attribute_name_state);break;case 47:if(appropriateEndTag(tagnamebuf))return void(tokenizer=self_closing_start_tag_state);break;case 62:if(appropriateEndTag(tagnamebuf))return tokenizer=data_state,void emitTag();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:return tagnamebuf+=String.fromCharCode(c+32),void tempbuf.push(c);case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return tagnamebuf+=String.fromCharCode(c),void tempbuf.push(c)}textrun.push(60),textrun.push(47),pushAll(textrun,tempbuf),reconsume(0,rawtext_state)}function script_data_less_than_sign_state(c){switch(c){case 47:beginTempBuf(),tokenizer=script_data_end_tag_open_state;break;case 33:tokenizer=script_data_escape_start_state,textrun.push(60),textrun.push(33);break;default:textrun.push(60),reconsume(0,script_data_state)}}function script_data_end_tag_open_state(c){switch(c){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:beginEndTagName(),reconsume(0,script_data_end_tag_name_state);break;default:textrun.push(60),textrun.push(47),reconsume(0,script_data_state)}}function script_data_end_tag_name_state(c){switch(c){case 9:case 10:case 12:case 32:if(appropriateEndTag(tagnamebuf))return void(tokenizer=before_attribute_name_state);break;case 47:if(appropriateEndTag(tagnamebuf))return void(tokenizer=self_closing_start_tag_state);break;case 62:if(appropriateEndTag(tagnamebuf))return tokenizer=data_state,void emitTag();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:return tagnamebuf+=String.fromCharCode(c+32),void tempbuf.push(c);case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return tagnamebuf+=String.fromCharCode(c),void tempbuf.push(c)}textrun.push(60),textrun.push(47),pushAll(textrun,tempbuf),reconsume(0,script_data_state)}function script_data_escape_start_state(c){45===c?(tokenizer=script_data_escape_start_dash_state,textrun.push(45)):reconsume(0,script_data_state)}function script_data_escape_start_dash_state(c){45===c?(tokenizer=script_data_escaped_dash_dash_state,textrun.push(45)):reconsume(0,script_data_state)}function script_data_escaped_state(c){switch(c){case 45:tokenizer=script_data_escaped_dash_state,textrun.push(45);break;case 60:tokenizer=script_data_escaped_less_than_sign_state;break;case 0:textrun.push(65533);break;case-1:emitEOF();break;default:textrun.push(c)}}function script_data_escaped_dash_state(c){switch(c){case 45:tokenizer=script_data_escaped_dash_dash_state,textrun.push(45);break;case 60:tokenizer=script_data_escaped_less_than_sign_state;break;case 0:tokenizer=script_data_escaped_state,textrun.push(65533);break;case-1:emitEOF();break;default:tokenizer=script_data_escaped_state,textrun.push(c)}}function script_data_escaped_dash_dash_state(c){switch(c){case 45:textrun.push(45);break;case 60:tokenizer=script_data_escaped_less_than_sign_state;break;case 62:tokenizer=script_data_state,textrun.push(62);break;case 0:tokenizer=script_data_escaped_state,textrun.push(65533);break;case-1:emitEOF();break;default:tokenizer=script_data_escaped_state,textrun.push(c)}}function script_data_escaped_less_than_sign_state(c){switch(c){case 47:beginTempBuf(),tokenizer=script_data_escaped_end_tag_open_state;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:beginTempBuf(),textrun.push(60),reconsume(0,script_data_double_escape_start_state);break;default:textrun.push(60),reconsume(0,script_data_escaped_state)}}function script_data_escaped_end_tag_open_state(c){switch(c){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:beginEndTagName(),reconsume(0,script_data_escaped_end_tag_name_state);break;default:textrun.push(60),textrun.push(47),reconsume(0,script_data_escaped_state)}}function script_data_escaped_end_tag_name_state(c){switch(c){case 9:case 10:case 12:case 32:if(appropriateEndTag(tagnamebuf))return void(tokenizer=before_attribute_name_state);break;case 47:if(appropriateEndTag(tagnamebuf))return void(tokenizer=self_closing_start_tag_state);break;case 62:if(appropriateEndTag(tagnamebuf))return tokenizer=data_state,void emitTag();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:return tagnamebuf+=String.fromCharCode(c+32),void tempbuf.push(c);case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return tagnamebuf+=String.fromCharCode(c),void tempbuf.push(c)}textrun.push(60),textrun.push(47),pushAll(textrun,tempbuf),reconsume(0,script_data_escaped_state)}function script_data_double_escape_start_state(c){switch(c){case 9:case 10:case 12:case 32:case 47:case 62:tokenizer="script"===buf2str(tempbuf)?script_data_double_escaped_state:script_data_escaped_state,textrun.push(c);break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:tempbuf.push(c+32),textrun.push(c);break;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:tempbuf.push(c),textrun.push(c);break;default:reconsume(0,script_data_escaped_state)}}function script_data_double_escaped_state(c){switch(c){case 45:tokenizer=script_data_double_escaped_dash_state,textrun.push(45);break;case 60:tokenizer=script_data_double_escaped_less_than_sign_state,textrun.push(60);break;case 0:textrun.push(65533);break;case-1:emitEOF();break;default:textrun.push(c)}}function script_data_double_escaped_dash_state(c){switch(c){case 45:tokenizer=script_data_double_escaped_dash_dash_state,textrun.push(45);break;case 60:tokenizer=script_data_double_escaped_less_than_sign_state,textrun.push(60);break;case 0:tokenizer=script_data_double_escaped_state,textrun.push(65533);break;case-1:emitEOF();break;default:tokenizer=script_data_double_escaped_state,textrun.push(c)}}function script_data_double_escaped_dash_dash_state(c){switch(c){case 45:textrun.push(45);break;case 60:tokenizer=script_data_double_escaped_less_than_sign_state,textrun.push(60);break;case 62:tokenizer=script_data_state,textrun.push(62);break;case 0:tokenizer=script_data_double_escaped_state,textrun.push(65533);break;case-1:emitEOF();break;default:tokenizer=script_data_double_escaped_state,textrun.push(c)}}function script_data_double_escaped_less_than_sign_state(c){47===c?(beginTempBuf(),tokenizer=script_data_double_escape_end_state,textrun.push(47)):reconsume(0,script_data_double_escaped_state)}function script_data_double_escape_end_state(c){switch(c){case 9:case 10:case 12:case 32:case 47:case 62:tokenizer="script"===buf2str(tempbuf)?script_data_escaped_state:script_data_double_escaped_state,textrun.push(c);break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:tempbuf.push(c+32),textrun.push(c);break;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:tempbuf.push(c),textrun.push(c);break;default:reconsume(0,script_data_double_escaped_state)}}function before_attribute_name_state(c){switch(c){case 9:case 10:case 12:case 32:break;case 47:tokenizer=self_closing_start_tag_state;break;case 62:tokenizer=data_state,emitTag();break;case-1:emitEOF();break;case 61:beginAttrName(),attrnamebuf+=String.fromCharCode(c),tokenizer=attribute_name_state;break;default:if(handleSimpleAttribute())break;beginAttrName(),reconsume(0,attribute_name_state)}}function attribute_name_state(c){switch(c){case 9:case 10:case 12:case 32:case 47:case 62:case-1:reconsume(0,after_attribute_name_state);break;case 61:tokenizer=before_attribute_value_state;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:attrnamebuf+=String.fromCharCode(c+32);break;case 0:attrnamebuf+=String.fromCharCode(65533);break;default:attrnamebuf+=getMatchingChars(ATTRNAME)}}function after_attribute_name_state(c){switch(c){case 9:case 10:case 12:case 32:break;case 47:addAttribute(attrnamebuf),tokenizer=self_closing_start_tag_state;break;case 61:tokenizer=before_attribute_value_state;break;case 62:tokenizer=data_state,addAttribute(attrnamebuf),emitTag();break;case-1:addAttribute(attrnamebuf),emitEOF();break;default:addAttribute(attrnamebuf),beginAttrName(),reconsume(0,attribute_name_state)}}function before_attribute_value_state(c){switch(c){case 9:case 10:case 12:case 32:break;case 34:beginAttrValue(),tokenizer=attribute_value_double_quoted_state;break;case 39:beginAttrValue(),tokenizer=attribute_value_single_quoted_state;break;default:beginAttrValue(),reconsume(0,attribute_value_unquoted_state)}}function attribute_value_double_quoted_state(c){switch(c){case 34:addAttribute(attrnamebuf,attrvaluebuf),tokenizer=after_attribute_value_quoted_state;break;case 38:return_state=attribute_value_double_quoted_state,tokenizer=character_reference_state;break;case 0:attrvaluebuf+=String.fromCharCode(65533);break;case-1:emitEOF();break;case 10:attrvaluebuf+=String.fromCharCode(c);break;default:attrvaluebuf+=getMatchingChars(DBLQUOTEATTRVAL)}}function attribute_value_single_quoted_state(c){switch(c){case 39:addAttribute(attrnamebuf,attrvaluebuf),tokenizer=after_attribute_value_quoted_state;break;case 38:return_state=attribute_value_single_quoted_state,tokenizer=character_reference_state;break;case 0:attrvaluebuf+=String.fromCharCode(65533);break;case-1:emitEOF();break;case 10:attrvaluebuf+=String.fromCharCode(c);break;default:attrvaluebuf+=getMatchingChars(SINGLEQUOTEATTRVAL)}}function attribute_value_unquoted_state(c){switch(c){case 9:case 10:case 12:case 32:addAttribute(attrnamebuf,attrvaluebuf),tokenizer=before_attribute_name_state;break;case 38:return_state=attribute_value_unquoted_state,tokenizer=character_reference_state;break;case 62:addAttribute(attrnamebuf,attrvaluebuf),tokenizer=data_state,emitTag();break;case 0:attrvaluebuf+=String.fromCharCode(65533);break;case-1:nextchar--,tokenizer=data_state;break;default:attrvaluebuf+=getMatchingChars(UNQUOTEDATTRVAL)}}function after_attribute_value_quoted_state(c){switch(c){case 9:case 10:case 12:case 32:tokenizer=before_attribute_name_state;break;case 47:tokenizer=self_closing_start_tag_state;break;case 62:tokenizer=data_state,emitTag();break;case-1:emitEOF();break;default:reconsume(0,before_attribute_name_state)}}function self_closing_start_tag_state(c){switch(c){case 62:tokenizer=data_state,emitSelfClosingTag();break;case-1:emitEOF();break;default:reconsume(0,before_attribute_name_state)}}function bogus_comment_state(c,lookahead,eof){var len=lookahead.length;nextchar+=eof?len-1:len;var comment=lookahead.substring(0,len-1);comment=(comment=(comment=comment.replace(/\u0000/g,"\ufffd")).replace(/\u000D\u000A/g,"\n")).replace(/\u000D/g,"\n"),insertToken(4,comment),tokenizer=data_state}function markup_declaration_open_state(c,lookahead,eof){if("-"===lookahead[0]&&"-"===lookahead[1])return nextchar+=2,beginComment(),void(tokenizer=comment_start_state);"DOCTYPE"===lookahead.toUpperCase()?(nextchar+=7,tokenizer=doctype_state):"[CDATA["===lookahead&&cdataAllowed()?(nextchar+=7,tokenizer=cdata_section_state):tokenizer=bogus_comment_state}function comment_start_state(c){switch(beginComment(),c){case 45:tokenizer=comment_start_dash_state;break;case 62:tokenizer=data_state,insertToken(4,buf2str(commentbuf));break;default:reconsume(0,comment_state)}}function comment_start_dash_state(c){switch(c){case 45:tokenizer=comment_end_state;break;case 62:tokenizer=data_state,insertToken(4,buf2str(commentbuf));break;case-1:insertToken(4,buf2str(commentbuf)),emitEOF();break;default:commentbuf.push(45),reconsume(0,comment_state)}}function comment_state(c){switch(c){case 60:commentbuf.push(c),tokenizer=comment_less_than_sign_state;break;case 45:tokenizer=comment_end_dash_state;break;case 0:commentbuf.push(65533);break;case-1:insertToken(4,buf2str(commentbuf)),emitEOF();break;default:commentbuf.push(c)}}function comment_less_than_sign_state(c){switch(c){case 33:commentbuf.push(c),tokenizer=comment_less_than_sign_bang_state;break;case 60:commentbuf.push(c);break;default:reconsume(0,comment_state)}}function comment_less_than_sign_bang_state(c){if(45===c)tokenizer=comment_less_than_sign_bang_dash_state;else reconsume(0,comment_state)}function comment_less_than_sign_bang_dash_state(c){if(45===c)tokenizer=comment_less_than_sign_bang_dash_dash_state;else reconsume(0,comment_end_dash_state)}function comment_less_than_sign_bang_dash_dash_state(c){reconsume(0,comment_end_state)}function comment_end_dash_state(c){switch(c){case 45:tokenizer=comment_end_state;break;case-1:insertToken(4,buf2str(commentbuf)),emitEOF();break;default:commentbuf.push(45),reconsume(0,comment_state)}}function comment_end_state(c){switch(c){case 62:tokenizer=data_state,insertToken(4,buf2str(commentbuf));break;case 33:tokenizer=comment_end_bang_state;break;case 45:commentbuf.push(45);break;case-1:insertToken(4,buf2str(commentbuf)),emitEOF();break;default:commentbuf.push(45),commentbuf.push(45),reconsume(0,comment_state)}}function comment_end_bang_state(c){switch(c){case 45:commentbuf.push(45),commentbuf.push(45),commentbuf.push(33),tokenizer=comment_end_dash_state;break;case 62:tokenizer=data_state,insertToken(4,buf2str(commentbuf));break;case-1:insertToken(4,buf2str(commentbuf)),emitEOF();break;default:commentbuf.push(45),commentbuf.push(45),commentbuf.push(33),reconsume(0,comment_state)}}function doctype_state(c){switch(c){case 9:case 10:case 12:case 32:tokenizer=before_doctype_name_state;break;case-1:beginDoctype(),forcequirks(),emitDoctype(),emitEOF();break;default:reconsume(0,before_doctype_name_state)}}function before_doctype_name_state(c){switch(c){case 9:case 10:case 12:case 32:break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:beginDoctype(),doctypenamebuf.push(c+32),tokenizer=doctype_name_state;break;case 0:beginDoctype(),doctypenamebuf.push(65533),tokenizer=doctype_name_state;break;case 62:beginDoctype(),forcequirks(),tokenizer=data_state,emitDoctype();break;case-1:beginDoctype(),forcequirks(),emitDoctype(),emitEOF();break;default:beginDoctype(),doctypenamebuf.push(c),tokenizer=doctype_name_state}}function doctype_name_state(c){switch(c){case 9:case 10:case 12:case 32:tokenizer=after_doctype_name_state;break;case 62:tokenizer=data_state,emitDoctype();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:doctypenamebuf.push(c+32);break;case 0:doctypenamebuf.push(65533);break;case-1:forcequirks(),emitDoctype(),emitEOF();break;default:doctypenamebuf.push(c)}}function after_doctype_name_state(c,lookahead,eof){switch(c){case 9:case 10:case 12:case 32:nextchar+=1;break;case 62:tokenizer=data_state,nextchar+=1,emitDoctype();break;case-1:forcequirks(),emitDoctype(),emitEOF();break;default:"PUBLIC"===(lookahead=lookahead.toUpperCase())?(nextchar+=6,tokenizer=after_doctype_public_keyword_state):"SYSTEM"===lookahead?(nextchar+=6,tokenizer=after_doctype_system_keyword_state):(forcequirks(),tokenizer=bogus_doctype_state)}}function after_doctype_public_keyword_state(c){switch(c){case 9:case 10:case 12:case 32:tokenizer=before_doctype_public_identifier_state;break;case 34:beginDoctypePublicId(),tokenizer=doctype_public_identifier_double_quoted_state;break;case 39:beginDoctypePublicId(),tokenizer=doctype_public_identifier_single_quoted_state;break;case 62:forcequirks(),tokenizer=data_state,emitDoctype();break;case-1:forcequirks(),emitDoctype(),emitEOF();break;default:forcequirks(),tokenizer=bogus_doctype_state}}function before_doctype_public_identifier_state(c){switch(c){case 9:case 10:case 12:case 32:break;case 34:beginDoctypePublicId(),tokenizer=doctype_public_identifier_double_quoted_state;break;case 39:beginDoctypePublicId(),tokenizer=doctype_public_identifier_single_quoted_state;break;case 62:forcequirks(),tokenizer=data_state,emitDoctype();break;case-1:forcequirks(),emitDoctype(),emitEOF();break;default:forcequirks(),tokenizer=bogus_doctype_state}}function doctype_public_identifier_double_quoted_state(c){switch(c){case 34:tokenizer=after_doctype_public_identifier_state;break;case 0:doctypepublicbuf.push(65533);break;case 62:forcequirks(),tokenizer=data_state,emitDoctype();break;case-1:forcequirks(),emitDoctype(),emitEOF();break;default:doctypepublicbuf.push(c)}}function doctype_public_identifier_single_quoted_state(c){switch(c){case 39:tokenizer=after_doctype_public_identifier_state;break;case 0:doctypepublicbuf.push(65533);break;case 62:forcequirks(),tokenizer=data_state,emitDoctype();break;case-1:forcequirks(),emitDoctype(),emitEOF();break;default:doctypepublicbuf.push(c)}}function after_doctype_public_identifier_state(c){switch(c){case 9:case 10:case 12:case 32:tokenizer=between_doctype_public_and_system_identifiers_state;break;case 62:tokenizer=data_state,emitDoctype();break;case 34:beginDoctypeSystemId(),tokenizer=doctype_system_identifier_double_quoted_state;break;case 39:beginDoctypeSystemId(),tokenizer=doctype_system_identifier_single_quoted_state;break;case-1:forcequirks(),emitDoctype(),emitEOF();break;default:forcequirks(),tokenizer=bogus_doctype_state}}function between_doctype_public_and_system_identifiers_state(c){switch(c){case 9:case 10:case 12:case 32:break;case 62:tokenizer=data_state,emitDoctype();break;case 34:beginDoctypeSystemId(),tokenizer=doctype_system_identifier_double_quoted_state;break;case 39:beginDoctypeSystemId(),tokenizer=doctype_system_identifier_single_quoted_state;break;case-1:forcequirks(),emitDoctype(),emitEOF();break;default:forcequirks(),tokenizer=bogus_doctype_state}}function after_doctype_system_keyword_state(c){switch(c){case 9:case 10:case 12:case 32:tokenizer=before_doctype_system_identifier_state;break;case 34:beginDoctypeSystemId(),tokenizer=doctype_system_identifier_double_quoted_state;break;case 39:beginDoctypeSystemId(),tokenizer=doctype_system_identifier_single_quoted_state;break;case 62:forcequirks(),tokenizer=data_state,emitDoctype();break;case-1:forcequirks(),emitDoctype(),emitEOF();break;default:forcequirks(),tokenizer=bogus_doctype_state}}function before_doctype_system_identifier_state(c){switch(c){case 9:case 10:case 12:case 32:break;case 34:beginDoctypeSystemId(),tokenizer=doctype_system_identifier_double_quoted_state;break;case 39:beginDoctypeSystemId(),tokenizer=doctype_system_identifier_single_quoted_state;break;case 62:forcequirks(),tokenizer=data_state,emitDoctype();break;case-1:forcequirks(),emitDoctype(),emitEOF();break;default:forcequirks(),tokenizer=bogus_doctype_state}}function doctype_system_identifier_double_quoted_state(c){switch(c){case 34:tokenizer=after_doctype_system_identifier_state;break;case 0:doctypesystembuf.push(65533);break;case 62:forcequirks(),tokenizer=data_state,emitDoctype();break;case-1:forcequirks(),emitDoctype(),emitEOF();break;default:doctypesystembuf.push(c)}}function doctype_system_identifier_single_quoted_state(c){switch(c){case 39:tokenizer=after_doctype_system_identifier_state;break;case 0:doctypesystembuf.push(65533);break;case 62:forcequirks(),tokenizer=data_state,emitDoctype();break;case-1:forcequirks(),emitDoctype(),emitEOF();break;default:doctypesystembuf.push(c)}}function after_doctype_system_identifier_state(c){switch(c){case 9:case 10:case 12:case 32:break;case 62:tokenizer=data_state,emitDoctype();break;case-1:forcequirks(),emitDoctype(),emitEOF();break;default:tokenizer=bogus_doctype_state}}function bogus_doctype_state(c){switch(c){case 62:tokenizer=data_state,emitDoctype();break;case-1:emitDoctype(),emitEOF()}}function cdata_section_state(c){switch(c){case 93:tokenizer=cdata_section_bracket_state;break;case-1:emitEOF();break;case 0:textIncludesNUL=!0;default:emitCharsWhile(CDATATEXT)||textrun.push(c)}}function cdata_section_bracket_state(c){if(93===c)tokenizer=cdata_section_end_state;else textrun.push(93),reconsume(0,cdata_section_state)}function cdata_section_end_state(c){switch(c){case 93:textrun.push(93);break;case 62:flushText(),tokenizer=data_state;break;default:textrun.push(93),textrun.push(93),reconsume(0,cdata_section_state)}}function character_reference_state(c){switch(beginTempBuf(),tempbuf.push(38),c){case 9:case 10:case 12:case 32:case 60:case 38:case-1:reconsume(0,character_reference_end_state);break;case 35:tempbuf.push(c),tokenizer=numeric_character_reference_state;break;default:reconsume(0,named_character_reference_state)}}function named_character_reference_state(c){NAMEDCHARREF.lastIndex=nextchar;var matched=NAMEDCHARREF.exec(chars);if(!matched)throw new Error("should never happen");var name=matched[1];if(name){switch(nextchar+=name.length,pushAll(tempbuf,str2buf(name)),return_state){case attribute_value_double_quoted_state:case attribute_value_single_quoted_state:case attribute_value_unquoted_state:if(";"!==name[name.length-1]&&/[=A-Za-z0-9]/.test(chars[nextchar]))return void(tokenizer=character_reference_end_state)}beginTempBuf();var rv=namedCharRefs[name];"number"==typeof rv?tempbuf.push(rv):pushAll(tempbuf,rv),tokenizer=character_reference_end_state}else tokenizer=character_reference_end_state}function numeric_character_reference_state(c){switch(character_reference_code=0,c){case 120:case 88:tempbuf.push(c),tokenizer=hexadecimal_character_reference_start_state;break;default:reconsume(0,decimal_character_reference_start_state)}}function hexadecimal_character_reference_start_state(c){switch(c){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 65:case 66:case 67:case 68:case 69:case 70:case 97:case 98:case 99:case 100:case 101:case 102:reconsume(0,hexadecimal_character_reference_state);break;default:reconsume(0,character_reference_end_state)}}function decimal_character_reference_start_state(c){switch(c){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:reconsume(0,decimal_character_reference_state);break;default:reconsume(0,character_reference_end_state)}}function hexadecimal_character_reference_state(c){switch(c){case 65:case 66:case 67:case 68:case 69:case 70:character_reference_code*=16,character_reference_code+=c-55;break;case 97:case 98:case 99:case 100:case 101:case 102:character_reference_code*=16,character_reference_code+=c-87;break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:character_reference_code*=16,character_reference_code+=c-48;break;case 59:tokenizer=numeric_character_reference_end_state;break;default:reconsume(0,numeric_character_reference_end_state)}}function decimal_character_reference_state(c){switch(c){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:character_reference_code*=10,character_reference_code+=c-48;break;case 59:tokenizer=numeric_character_reference_end_state;break;default:reconsume(0,numeric_character_reference_end_state)}}function numeric_character_reference_end_state(c){character_reference_code in numericCharRefReplacements?character_reference_code=numericCharRefReplacements[character_reference_code]:(character_reference_code>1114111||character_reference_code>=55296&&character_reference_code<57344)&&(character_reference_code=65533),beginTempBuf(),character_reference_code<=65535?tempbuf.push(character_reference_code):(character_reference_code-=65536,tempbuf.push(55296+(character_reference_code>>10)),tempbuf.push(56320+(1023&character_reference_code))),reconsume(0,character_reference_end_state)}function character_reference_end_state(c){switch(return_state){case attribute_value_double_quoted_state:case attribute_value_single_quoted_state:case attribute_value_unquoted_state:attrvaluebuf+=buf2str(tempbuf);break;default:pushAll(textrun,tempbuf)}reconsume(0,return_state)}function initial_mode(t,value,arg3,arg4){switch(t){case 1:if(0===(value=value.replace(LEADINGWS,"")).length)return;break;case 4:return void doc._appendChild(doc.createComment(value));case 5:var name=value,publicid=arg3,systemid=arg4;return doc.appendChild(new DocumentType(doc,name,publicid,systemid)),force_quirks||"html"!==name.toLowerCase()||quirkyPublicIds.test(publicid)||systemid&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===systemid.toLowerCase()||void 0===systemid&&conditionallyQuirkyPublicIds.test(publicid)?doc._quirks=!0:(limitedQuirkyPublicIds.test(publicid)||void 0!==systemid&&conditionallyQuirkyPublicIds.test(publicid))&&(doc._limitedQuirks=!0),void(parser=before_html_mode)}doc._quirks=!0,(parser=before_html_mode)(t,value,arg3,arg4)}function before_html_mode(t,value,arg3,arg4){var elt;switch(t){case 1:if(0===(value=value.replace(LEADINGWS,"")).length)return;break;case 5:return;case 4:return void doc._appendChild(doc.createComment(value));case 2:if("html"===value)return elt=createHTMLElt(doc,value,arg3),stack2.push(elt),doc.appendChild(elt),void(parser=before_head_mode);break;case 3:switch(value){case"html":case"head":case"body":case"br":break;default:return}}elt=createHTMLElt(doc,"html",null),stack2.push(elt),doc.appendChild(elt),(parser=before_head_mode)(t,value,arg3,arg4)}function before_head_mode(t,value,arg3,arg4){switch(t){case 1:if(0===(value=value.replace(LEADINGWS,"")).length)return;break;case 5:return;case 4:return void insertComment(value);case 2:switch(value){case"html":return void in_body_mode(t,value,arg3,arg4);case"head":var elt=insertHTMLElement(value,arg3);return head_element_pointer=elt,void(parser=in_head_mode)}break;case 3:switch(value){case"html":case"head":case"body":case"br":break;default:return}}before_head_mode(2,"head",null),parser(t,value,arg3,arg4)}function in_head_mode(t,value,arg3,arg4){switch(t){case 1:var ws=value.match(LEADINGWS);if(ws&&(insertText(ws[0]),value=value.substring(ws[0].length)),0===value.length)return;break;case 4:return void insertComment(value);case 5:return;case 2:switch(value){case"html":return void in_body_mode(t,value,arg3,arg4);case"meta":case"base":case"basefont":case"bgsound":case"link":return insertHTMLElement(value,arg3),void stack2.pop();case"title":return void parseRCDATA(value,arg3);case"noscript":if(!scripting_enabled)return insertHTMLElement(value,arg3),void(parser=in_head_noscript_mode);case"noframes":case"style":return void parseRawText(value,arg3);case"script":return insertElement(function(doc2){var elt=createHTMLElt(doc2,value,arg3);return elt._parser_inserted=!0,elt._force_async=!1,fragment&&(elt._already_started=!0),flushText(),elt}),tokenizer=script_data_state,originalInsertionMode=parser,void(parser=text_mode);case"template":return insertHTMLElement(value,arg3),afe.insertMarker(),frameset_ok=!1,parser=in_template_mode,void templateInsertionModes.push(parser);case"head":return}break;case 3:switch(value){case"head":return stack2.pop(),void(parser=after_head_mode);case"body":case"html":case"br":break;case"template":if(!stack2.contains("template"))return;return stack2.generateImpliedEndTags(null,"thorough"),stack2.popTag("template"),afe.clearToMarker(),templateInsertionModes.pop(),void resetInsertionMode();default:return}}in_head_mode(3,"head",null),parser(t,value,arg3,arg4)}function in_head_noscript_mode(t,value,arg3,arg4){switch(t){case 5:return;case 4:return void in_head_mode(t,value);case 1:var ws=value.match(LEADINGWS);if(ws&&(in_head_mode(t,ws[0]),value=value.substring(ws[0].length)),0===value.length)return;break;case 2:switch(value){case"html":return void in_body_mode(t,value,arg3,arg4);case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"style":return void in_head_mode(t,value,arg3);case"head":case"noscript":return}break;case 3:switch(value){case"noscript":return stack2.pop(),void(parser=in_head_mode);case"br":break;default:return}}in_head_noscript_mode(3,"noscript",null),parser(t,value,arg3,arg4)}function after_head_mode(t,value,arg3,arg4){switch(t){case 1:var ws=value.match(LEADINGWS);if(ws&&(insertText(ws[0]),value=value.substring(ws[0].length)),0===value.length)return;break;case 4:return void insertComment(value);case 5:return;case 2:switch(value){case"html":return void in_body_mode(t,value,arg3,arg4);case"body":return insertHTMLElement(value,arg3),frameset_ok=!1,void(parser=in_body_mode);case"frameset":return insertHTMLElement(value,arg3),void(parser=in_frameset_mode);case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":return stack2.push(head_element_pointer),in_head_mode(2,value,arg3),void stack2.removeElement(head_element_pointer);case"head":return}break;case 3:switch(value){case"template":return in_head_mode(t,value,arg3,arg4);case"body":case"html":case"br":break;default:return}}after_head_mode(2,"body",null),frameset_ok=!0,parser(t,value,arg3,arg4)}function in_body_mode(t,value,arg3,arg4){var body,i2,node,elt;switch(t){case 1:if(textIncludesNUL&&0===(value=value.replace(NULCHARS,"")).length)return;return frameset_ok&&NONWS.test(value)&&(frameset_ok=!1),afereconstruct(),void insertText(value);case 5:return;case 4:return void insertComment(value);case-1:return templateInsertionModes.length?in_template_mode(t):void stopParsing();case 2:switch(value){case"html":if(stack2.contains("template"))return;return void transferAttributes(arg3,stack2.elements[0]);case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":return void in_head_mode(2,value,arg3);case"body":if(!(body=stack2.elements[1])||!(body instanceof impl.HTMLBodyElement)||stack2.contains("template"))return;return frameset_ok=!1,void transferAttributes(arg3,body);case"frameset":if(!(frameset_ok&&(body=stack2.elements[1],body&&body instanceof impl.HTMLBodyElement)))return;for(body.parentNode&&body.parentNode.removeChild(body);!(stack2.top instanceof impl.HTMLHtmlElement);)stack2.pop();return insertHTMLElement(value,arg3),void(parser=in_frameset_mode);case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"nav":case"ol":case"p":case"section":case"summary":case"ul":return stack2.inButtonScope("p")&&in_body_mode(3,"p"),void insertHTMLElement(value,arg3);case"menu":return stack2.inButtonScope("p")&&in_body_mode(3,"p"),isA(stack2.top,"menuitem")&&stack2.pop(),void insertHTMLElement(value,arg3);case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return stack2.inButtonScope("p")&&in_body_mode(3,"p"),stack2.top instanceof impl.HTMLHeadingElement&&stack2.pop(),void insertHTMLElement(value,arg3);case"pre":case"listing":return stack2.inButtonScope("p")&&in_body_mode(3,"p"),insertHTMLElement(value,arg3),ignore_linefeed=!0,void(frameset_ok=!1);case"form":if(form_element_pointer&&!stack2.contains("template"))return;return stack2.inButtonScope("p")&&in_body_mode(3,"p"),elt=insertHTMLElement(value,arg3),void(stack2.contains("template")||(form_element_pointer=elt));case"li":for(frameset_ok=!1,i2=stack2.elements.length-1;i2>=0;i2--){if((node=stack2.elements[i2])instanceof impl.HTMLLIElement){in_body_mode(3,"li");break}if(isA(node,specialSet)&&!isA(node,addressdivpSet))break}return stack2.inButtonScope("p")&&in_body_mode(3,"p"),void insertHTMLElement(value,arg3);case"dd":case"dt":for(frameset_ok=!1,i2=stack2.elements.length-1;i2>=0;i2--){if(isA(node=stack2.elements[i2],dddtSet)){in_body_mode(3,node.localName);break}if(isA(node,specialSet)&&!isA(node,addressdivpSet))break}return stack2.inButtonScope("p")&&in_body_mode(3,"p"),void insertHTMLElement(value,arg3);case"plaintext":return stack2.inButtonScope("p")&&in_body_mode(3,"p"),insertHTMLElement(value,arg3),void(tokenizer=plaintext_state);case"button":return void(stack2.inScope("button")?(in_body_mode(3,"button"),parser(t,value,arg3,arg4)):(afereconstruct(),insertHTMLElement(value,arg3),frameset_ok=!1));case"a":var activeElement=afe.findElementByTag("a");activeElement&&(in_body_mode(3,value),afe.remove(activeElement),stack2.removeElement(activeElement));case"b":case"big":case"code":case"em":case"font":case"i":case"s":case"small":case"strike":case"strong":case"tt":case"u":return afereconstruct(),void afe.push(insertHTMLElement(value,arg3),arg3);case"nobr":return afereconstruct(),stack2.inScope(value)&&(in_body_mode(3,value),afereconstruct()),void afe.push(insertHTMLElement(value,arg3),arg3);case"applet":case"marquee":case"object":return afereconstruct(),insertHTMLElement(value,arg3),afe.insertMarker(),void(frameset_ok=!1);case"table":return!doc._quirks&&stack2.inButtonScope("p")&&in_body_mode(3,"p"),insertHTMLElement(value,arg3),frameset_ok=!1,void(parser=in_table_mode);case"area":case"br":case"embed":case"img":case"keygen":case"wbr":return afereconstruct(),insertHTMLElement(value,arg3),stack2.pop(),void(frameset_ok=!1);case"input":afereconstruct(),elt=insertHTMLElement(value,arg3),stack2.pop();var type=elt.getAttribute("type");return void((!type||"hidden"!==type.toLowerCase())&&(frameset_ok=!1));case"param":case"source":case"track":return insertHTMLElement(value,arg3),void stack2.pop();case"hr":return stack2.inButtonScope("p")&&in_body_mode(3,"p"),isA(stack2.top,"menuitem")&&stack2.pop(),insertHTMLElement(value,arg3),stack2.pop(),void(frameset_ok=!1);case"image":return void in_body_mode(2,"img",arg3,arg4);case"textarea":return insertHTMLElement(value,arg3),ignore_linefeed=!0,frameset_ok=!1,tokenizer=rcdata_state,originalInsertionMode=parser,void(parser=text_mode);case"xmp":return stack2.inButtonScope("p")&&in_body_mode(3,"p"),afereconstruct(),frameset_ok=!1,void parseRawText(value,arg3);case"iframe":return frameset_ok=!1,void parseRawText(value,arg3);case"noembed":return void parseRawText(value,arg3);case"noscript":if(scripting_enabled)return void parseRawText(value,arg3);break;case"select":return afereconstruct(),insertHTMLElement(value,arg3),frameset_ok=!1,void(parser=parser===in_table_mode||parser===in_caption_mode||parser===in_table_body_mode||parser===in_row_mode||parser===in_cell_mode?in_select_in_table_mode:in_select_mode);case"optgroup":case"option":return stack2.top instanceof impl.HTMLOptionElement&&in_body_mode(3,"option"),afereconstruct(),void insertHTMLElement(value,arg3);case"menuitem":return isA(stack2.top,"menuitem")&&stack2.pop(),afereconstruct(),void insertHTMLElement(value,arg3);case"rb":case"rtc":return stack2.inScope("ruby")&&stack2.generateImpliedEndTags(),void insertHTMLElement(value,arg3);case"rp":case"rt":return stack2.inScope("ruby")&&stack2.generateImpliedEndTags("rtc"),void insertHTMLElement(value,arg3);case"math":return afereconstruct(),adjustMathMLAttributes(arg3),adjustForeignAttributes(arg3),insertForeignElement(value,arg3,NAMESPACE.MATHML),void(arg4&&stack2.pop());case"svg":return afereconstruct(),adjustSVGAttributes(arg3),adjustForeignAttributes(arg3),insertForeignElement(value,arg3,NAMESPACE.SVG),void(arg4&&stack2.pop());case"caption":case"col":case"colgroup":case"frame":case"head":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return}return afereconstruct(),void insertHTMLElement(value,arg3);case 3:switch(value){case"template":return void in_head_mode(3,value,arg3);case"body":if(!stack2.inScope("body"))return;return void(parser=after_body_mode);case"html":if(!stack2.inScope("body"))return;return void(parser=after_body_mode)(t,value,arg3);case"address":case"article":case"aside":case"blockquote":case"button":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"listing":case"main":case"menu":case"nav":case"ol":case"pre":case"section":case"summary":case"ul":if(!stack2.inScope(value))return;return stack2.generateImpliedEndTags(),void stack2.popTag(value);case"form":if(stack2.contains("template")){if(!stack2.inScope("form"))return;stack2.generateImpliedEndTags(),stack2.popTag("form")}else{var openform=form_element_pointer;if(form_element_pointer=null,!openform||!stack2.elementInScope(openform))return;stack2.generateImpliedEndTags(),stack2.removeElement(openform)}return;case"p":return void(stack2.inButtonScope(value)?(stack2.generateImpliedEndTags(value),stack2.popTag(value)):(in_body_mode(2,value,null),parser(t,value,arg3,arg4)));case"li":if(!stack2.inListItemScope(value))return;return stack2.generateImpliedEndTags(value),void stack2.popTag(value);case"dd":case"dt":if(!stack2.inScope(value))return;return stack2.generateImpliedEndTags(value),void stack2.popTag(value);case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":if(!stack2.elementTypeInScope(impl.HTMLHeadingElement))return;return stack2.generateImpliedEndTags(),void stack2.popElementType(impl.HTMLHeadingElement);case"sarcasm":break;case"a":case"b":case"big":case"code":case"em":case"font":case"i":case"nobr":case"s":case"small":case"strike":case"strong":case"tt":case"u":if(adoptionAgency(value))return;break;case"applet":case"marquee":case"object":if(!stack2.inScope(value))return;return stack2.generateImpliedEndTags(),stack2.popTag(value),void afe.clearToMarker();case"br":return void in_body_mode(2,value,null)}for(i2=stack2.elements.length-1;i2>=0;i2--){if(isA(node=stack2.elements[i2],value)){stack2.generateImpliedEndTags(value),stack2.popElement(node);break}if(isA(node,specialSet))return}return}}function text_mode(t,value,arg3,arg4){switch(t){case 1:return void insertText(value);case-1:return stack2.top instanceof impl.HTMLScriptElement&&(stack2.top._already_started=!0),stack2.pop(),void(parser=originalInsertionMode)(t);case 3:return void("script"===value?handleScriptEnd():(stack2.pop(),parser=originalInsertionMode));default:return}}function in_table_mode(t,value,arg3,arg4){function getTypeAttr(attrs){for(var i2=0,n=attrs.length;i20&&insertText(value));case 4:return void insertComment(value);case 5:return;case-1:return void stopParsing();case 2:switch(value){case"html":return void in_body_mode(t,value,arg3,arg4);case"frameset":return void insertHTMLElement(value,arg3);case"frame":return insertHTMLElement(value,arg3),void stack2.pop();case"noframes":return void in_head_mode(t,value,arg3,arg4)}break;case 3:if("frameset"===value){if(fragment&&stack2.top instanceof impl.HTMLHtmlElement)return;return stack2.pop(),void(!fragment&&!(stack2.top instanceof impl.HTMLFrameSetElement)&&(parser=after_frameset_mode))}}}function after_frameset_mode(t,value,arg3,arg4){switch(t){case 1:return void((value=value.replace(ALLNONWS,"")).length>0&&insertText(value));case 4:return void insertComment(value);case 5:return;case-1:return void stopParsing();case 2:switch(value){case"html":return void in_body_mode(t,value,arg3,arg4);case"noframes":return void in_head_mode(t,value,arg3,arg4)}break;case 3:if("html"===value)return void(parser=after_after_frameset_mode)}}function after_after_body_mode(t,value,arg3,arg4){switch(t){case 1:if(NONWS.test(value))break;return void in_body_mode(t,value,arg3,arg4);case 4:return void doc._appendChild(doc.createComment(value));case 5:return void in_body_mode(t,value,arg3,arg4);case-1:return void stopParsing();case 2:if("html"===value)return void in_body_mode(t,value,arg3,arg4)}(parser=in_body_mode)(t,value,arg3,arg4)}function after_after_frameset_mode(t,value,arg3,arg4){switch(t){case 1:return void((value=value.replace(ALLNONWS,"")).length>0&&in_body_mode(t,value,arg3,arg4));case 4:return void doc._appendChild(doc.createComment(value));case 5:return void in_body_mode(t,value,arg3,arg4);case-1:return void stopParsing();case 2:switch(value){case"html":return void in_body_mode(t,value,arg3,arg4);case"noframes":return void in_head_mode(t,value,arg3,arg4)}}}function insertForeignToken(t,value,arg3,arg4){function isHTMLFont(attrs){for(var i3=0,n=attrs.length;i30&&"Character"===tokens[tokens.length-1][0]?tokens[tokens.length-1][1]+=value:tokens.push(["Character",value]);break;case 4:tokens.push(["Comment",value]);break;case 5:tokens.push(["DOCTYPE",value,void 0===arg3?null:arg3,void 0===arg4?null:arg4,!force_quirks]);break;case 2:for(var attrs=Object.create(null),i3=0;i30;i2--){if(isA(this.elements[i2],tag))break}this.elements.length=i2,this.top=this.elements[i2-1]},HTMLParser.ElementStack.prototype.popElementType=function(type){for(var i2=this.elements.length-1;i2>0&&!(this.elements[i2]instanceof type);i2--);this.elements.length=i2,this.top=this.elements[i2-1]},HTMLParser.ElementStack.prototype.popElement=function(e){for(var i2=this.elements.length-1;i2>0&&this.elements[i2]!==e;i2--);this.elements.length=i2,this.top=this.elements[i2-1]},HTMLParser.ElementStack.prototype.removeElement=function(e){if(this.top===e)this.pop();else{var idx=this.elements.lastIndexOf(e);-1!==idx&&this.elements.splice(idx,1)}},HTMLParser.ElementStack.prototype.clearToContext=function(set){for(var i2=this.elements.length-1;i2>0&&!isA(this.elements[i2],set);i2--);this.elements.length=i2+1,this.top=this.elements[i2]},HTMLParser.ElementStack.prototype.contains=function(tag){return this.inSpecificScope(tag,Object.create(null))},HTMLParser.ElementStack.prototype.inSpecificScope=function(tag,set){for(var i2=this.elements.length-1;i2>=0;i2--){var elt=this.elements[i2];if(isA(elt,tag))return!0;if(isA(elt,set))return!1}return!1},HTMLParser.ElementStack.prototype.elementInSpecificScope=function(target,set){for(var i2=this.elements.length-1;i2>=0;i2--){var elt=this.elements[i2];if(elt===target)return!0;if(isA(elt,set))return!1}return!1},HTMLParser.ElementStack.prototype.elementTypeInSpecificScope=function(target,set){for(var i2=this.elements.length-1;i2>=0;i2--){var elt=this.elements[i2];if(elt instanceof target)return!0;if(isA(elt,set))return!1}return!1},HTMLParser.ElementStack.prototype.inScope=function(tag){return this.inSpecificScope(tag,inScopeSet)},HTMLParser.ElementStack.prototype.elementInScope=function(e){return this.elementInSpecificScope(e,inScopeSet)},HTMLParser.ElementStack.prototype.elementTypeInScope=function(type){return this.elementTypeInSpecificScope(type,inScopeSet)},HTMLParser.ElementStack.prototype.inButtonScope=function(tag){return this.inSpecificScope(tag,inButtonScopeSet)},HTMLParser.ElementStack.prototype.inListItemScope=function(tag){return this.inSpecificScope(tag,inListItemScopeSet)},HTMLParser.ElementStack.prototype.inTableScope=function(tag){return this.inSpecificScope(tag,inTableScopeSet)},HTMLParser.ElementStack.prototype.inSelectScope=function(tag){for(var i2=this.elements.length-1;i2>=0;i2--){var elt=this.elements[i2];if(elt.namespaceURI!==NAMESPACE.HTML)return!1;var localname=elt.localName;if(localname===tag)return!0;if("optgroup"!==localname&&"option"!==localname)return!1}return!1},HTMLParser.ElementStack.prototype.generateImpliedEndTags=function(butnot,thorough){for(var endTagSet=thorough?thoroughImpliedEndTagsSet:impliedEndTagsSet,i2=this.elements.length-1;i2>=0;i2--){var e=this.elements[i2];if(butnot&&isA(e,butnot)||!isA(this.elements[i2],endTagSet))break}this.elements.length=i2+1,this.top=this.elements[i2]},HTMLParser.ActiveFormattingElements=__name(function(){this.list=[],this.attrs=[]},"AFE"),HTMLParser.ActiveFormattingElements.prototype.MARKER={localName:"|"},HTMLParser.ActiveFormattingElements.prototype.insertMarker=function(){this.list.push(this.MARKER),this.attrs.push(this.MARKER)},HTMLParser.ActiveFormattingElements.prototype.push=function(elt,attrs){for(var count=0,i2=this.list.length-1;i2>=0&&this.list[i2]!==this.MARKER;i2--)if(equal(elt,this.list[i2],this.attrs[i2])&&3===++count){this.list.splice(i2,1),this.attrs.splice(i2,1);break}this.list.push(elt);for(var attrcopy=[],ii=0;ii=0&&this.list[i2]!==this.MARKER;i2--);i2<0&&(i2=0),this.list.length=i2,this.attrs.length=i2},HTMLParser.ActiveFormattingElements.prototype.findElementByTag=function(tag){for(var i2=this.list.length-1;i2>=0;i2--){var elt=this.list[i2];if(elt===this.MARKER)break;if(elt.localName===tag)return elt}return null},HTMLParser.ActiveFormattingElements.prototype.indexOf=function(e){return this.list.lastIndexOf(e)},HTMLParser.ActiveFormattingElements.prototype.remove=function(e){var idx=this.list.lastIndexOf(e);-1!==idx&&(this.list.splice(idx,1),this.attrs.splice(idx,1))},HTMLParser.ActiveFormattingElements.prototype.replace=function(a,b2,attrs){var idx=this.list.lastIndexOf(a);-1!==idx&&(this.list[idx]=b2,this.attrs[idx]=attrs)},HTMLParser.ActiveFormattingElements.prototype.insertAfter=function(a,b2){var idx=this.list.lastIndexOf(a);-1!==idx&&(this.list.splice(idx,0,b2),this.attrs.splice(idx,0,b2))},__name(HTMLParser,"HTMLParser")},15869:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=Leaf;var Node2=__webpack_require__2(20416),NodeList=__webpack_require__2(277),utils=__webpack_require__2(59510),HierarchyRequestError=utils.HierarchyRequestError,NotFoundError=utils.NotFoundError;function Leaf(){Node2.call(this)}__name(Leaf,"Leaf"),Leaf.prototype=Object.create(Node2.prototype,{hasChildNodes:{value:function(){return!1}},firstChild:{value:null},lastChild:{value:null},insertBefore:{value:function(node,child){if(!node.nodeType)throw new TypeError("not a node");HierarchyRequestError()}},replaceChild:{value:function(node,child){if(!node.nodeType)throw new TypeError("not a node");HierarchyRequestError()}},removeChild:{value:function(node){if(!node.nodeType)throw new TypeError("not a node");NotFoundError()}},removeChildren:{value:function(){}},childNodes:{get:function(){return this._childNodes||(this._childNodes=new NodeList),this._childNodes}}})},20889:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(59510),LinkedList=module2.exports={valid:function(a){return utils.assert(a,"list falsy"),utils.assert(a._previousSibling,"previous falsy"),utils.assert(a._nextSibling,"next falsy"),!0},insertBefore:function(a,b2){utils.assert(LinkedList.valid(a)&&LinkedList.valid(b2));var a_first=a,a_last=a._previousSibling,b_first=b2,b_last=b2._previousSibling;a_first._previousSibling=b_last,a_last._nextSibling=b_first,b_last._nextSibling=a_first,b_first._previousSibling=a_last,utils.assert(LinkedList.valid(a)&&LinkedList.valid(b2))},replace:function(a,b2){utils.assert(LinkedList.valid(a)&&(null===b2||LinkedList.valid(b2))),null!==b2&&LinkedList.insertBefore(b2,a),LinkedList.remove(a),utils.assert(LinkedList.valid(a)&&(null===b2||LinkedList.valid(b2)))},remove:function(a){utils.assert(LinkedList.valid(a));var prev=a._previousSibling;if(prev!==a){var next=a._nextSibling;prev._nextSibling=next,next._previousSibling=prev,a._previousSibling=a._nextSibling=a,utils.assert(LinkedList.valid(a))}}}},90822:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var URL2=__webpack_require__2(19910),URLUtils=__webpack_require__2(16465);function Location(window2,href){this._window=window2,this._href=href}module2.exports=Location,__name(Location,"Location"),Location.prototype=Object.create(URLUtils.prototype,{constructor:{value:Location},href:{get:function(){return this._href},set:function(v){this.assign(v)}},assign:{value:function(url){var newurl=new URL2(this._href).resolve(url);this._href=newurl}},replace:{value:function(url){this.assign(url)}},reload:{value:function(){this.assign(this.href)}},toString:{value:function(){return this.href}}})},36073:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var UIEvent=__webpack_require__2(60490);function MouseEvent2(){UIEvent.call(this),this.screenX=this.screenY=this.clientX=this.clientY=0,this.ctrlKey=this.altKey=this.shiftKey=this.metaKey=!1,this.button=0,this.buttons=1,this.relatedTarget=null}module2.exports=MouseEvent2,__name(MouseEvent2,"MouseEvent"),MouseEvent2.prototype=Object.create(UIEvent.prototype,{constructor:{value:MouseEvent2},initMouseEvent:{value:function(type,bubbles,cancelable,view,detail,screenX,screenY,clientX,clientY,ctrlKey,altKey,shiftKey,metaKey,button,relatedTarget){switch(this.initEvent(type,bubbles,cancelable,view,detail),this.screenX=screenX,this.screenY=screenY,this.clientX=clientX,this.clientY=clientY,this.ctrlKey=ctrlKey,this.altKey=altKey,this.shiftKey=shiftKey,this.metaKey=metaKey,this.button=button,button){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2;break;default:this.buttons=0}this.relatedTarget=relatedTarget}},getModifierState:{value:function(key){switch(key){case"Alt":return this.altKey;case"Control":return this.ctrlKey;case"Shift":return this.shiftKey;case"Meta":return this.metaKey;default:return!1}}}})},84091:module2=>{"use strict";module2.exports={VALUE:1,ATTR:2,REMOVE_ATTR:3,REMOVE:4,MOVE:5,INSERT:6}},72587:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=NamedNodeMap;var utils=__webpack_require__2(59510);function NamedNodeMap(element){this.element=element}__name(NamedNodeMap,"NamedNodeMap"),Object.defineProperties(NamedNodeMap.prototype,{length:{get:utils.shouldOverride},item:{value:utils.shouldOverride},getNamedItem:{value:__name(function(qualifiedName){return this.element.getAttributeNode(qualifiedName)},"getNamedItem")},getNamedItemNS:{value:__name(function(namespace,localName){return this.element.getAttributeNodeNS(namespace,localName)},"getNamedItemNS")},setNamedItem:{value:utils.nyi},setNamedItemNS:{value:utils.nyi},removeNamedItem:{value:__name(function(qualifiedName){var attr=this.element.getAttributeNode(qualifiedName);if(attr)return this.element.removeAttribute(qualifiedName),attr;utils.NotFoundError()},"removeNamedItem")},removeNamedItemNS:{value:__name(function(ns,lname){var attr=this.element.getAttributeNodeNS(ns,lname);if(attr)return this.element.removeAttributeNS(ns,lname),attr;utils.NotFoundError()},"removeNamedItemNS")}})},12356:module2=>{"use strict";var NavigatorID=Object.create(null,{appCodeName:{value:"Mozilla"},appName:{value:"Netscape"},appVersion:{value:"4.0"},platform:{value:""},product:{value:"Gecko"},productSub:{value:"20100101"},userAgent:{value:""},vendor:{value:""},vendorSub:{value:""},taintEnabled:{value:function(){return!1}}});module2.exports=NavigatorID},20416:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=Node2;var EventTarget=__webpack_require__2(79998),LinkedList=__webpack_require__2(20889),NodeUtils=__webpack_require__2(41348),utils=__webpack_require__2(59510);function Node2(){EventTarget.call(this),this.parentNode=null,this._nextSibling=this._previousSibling=this,this._index=void 0}__name(Node2,"Node");var ELEMENT_NODE=Node2.ELEMENT_NODE=1,ATTRIBUTE_NODE=Node2.ATTRIBUTE_NODE=2,TEXT_NODE=Node2.TEXT_NODE=3,CDATA_SECTION_NODE=Node2.CDATA_SECTION_NODE=4,ENTITY_REFERENCE_NODE=Node2.ENTITY_REFERENCE_NODE=5,ENTITY_NODE=Node2.ENTITY_NODE=6,PROCESSING_INSTRUCTION_NODE=Node2.PROCESSING_INSTRUCTION_NODE=7,COMMENT_NODE=Node2.COMMENT_NODE=8,DOCUMENT_NODE=Node2.DOCUMENT_NODE=9,DOCUMENT_TYPE_NODE=Node2.DOCUMENT_TYPE_NODE=10,DOCUMENT_FRAGMENT_NODE=Node2.DOCUMENT_FRAGMENT_NODE=11,NOTATION_NODE=Node2.NOTATION_NODE=12,DOCUMENT_POSITION_DISCONNECTED=Node2.DOCUMENT_POSITION_DISCONNECTED=1,DOCUMENT_POSITION_PRECEDING=Node2.DOCUMENT_POSITION_PRECEDING=2,DOCUMENT_POSITION_FOLLOWING=Node2.DOCUMENT_POSITION_FOLLOWING=4,DOCUMENT_POSITION_CONTAINS=Node2.DOCUMENT_POSITION_CONTAINS=8,DOCUMENT_POSITION_CONTAINED_BY=Node2.DOCUMENT_POSITION_CONTAINED_BY=16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=Node2.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;Node2.prototype=Object.create(EventTarget.prototype,{baseURI:{get:utils.nyi},parentElement:{get:function(){return this.parentNode&&this.parentNode.nodeType===ELEMENT_NODE?this.parentNode:null}},hasChildNodes:{value:utils.shouldOverride},firstChild:{get:utils.shouldOverride},lastChild:{get:utils.shouldOverride},previousSibling:{get:function(){var parent=this.parentNode;return parent&&this!==parent.firstChild?this._previousSibling:null}},nextSibling:{get:function(){var parent=this.parentNode,next=this._nextSibling;return parent&&next!==parent.firstChild?next:null}},textContent:{get:function(){return null},set:function(v){}},_countChildrenOfType:{value:function(type){for(var sum=0,kid=this.firstChild;null!==kid;kid=kid.nextSibling)kid.nodeType===type&&sum++;return sum}},_ensureInsertValid:{value:__name(function(node,child,isPreinsert){var i2,kid;if(!node.nodeType)throw new TypeError("not a node");switch(this.nodeType){case DOCUMENT_NODE:case DOCUMENT_FRAGMENT_NODE:case ELEMENT_NODE:break;default:utils.HierarchyRequestError()}switch(node.isAncestor(this)&&utils.HierarchyRequestError(),(null!==child||!isPreinsert)&&child.parentNode!==this&&utils.NotFoundError(),node.nodeType){case DOCUMENT_FRAGMENT_NODE:case DOCUMENT_TYPE_NODE:case ELEMENT_NODE:case TEXT_NODE:case PROCESSING_INSTRUCTION_NODE:case COMMENT_NODE:break;default:utils.HierarchyRequestError()}if(this.nodeType===DOCUMENT_NODE)switch(node.nodeType){case TEXT_NODE:utils.HierarchyRequestError();break;case DOCUMENT_FRAGMENT_NODE:switch(node._countChildrenOfType(TEXT_NODE)>0&&utils.HierarchyRequestError(),node._countChildrenOfType(ELEMENT_NODE)){case 0:break;case 1:if(null!==child)for(isPreinsert&&child.nodeType===DOCUMENT_TYPE_NODE&&utils.HierarchyRequestError(),kid=child.nextSibling;null!==kid;kid=kid.nextSibling)kid.nodeType===DOCUMENT_TYPE_NODE&&utils.HierarchyRequestError();i2=this._countChildrenOfType(ELEMENT_NODE),isPreinsert?i2>0&&utils.HierarchyRequestError():(i2>1||1===i2&&child.nodeType!==ELEMENT_NODE)&&utils.HierarchyRequestError();break;default:utils.HierarchyRequestError()}break;case ELEMENT_NODE:if(null!==child)for(isPreinsert&&child.nodeType===DOCUMENT_TYPE_NODE&&utils.HierarchyRequestError(),kid=child.nextSibling;null!==kid;kid=kid.nextSibling)kid.nodeType===DOCUMENT_TYPE_NODE&&utils.HierarchyRequestError();i2=this._countChildrenOfType(ELEMENT_NODE),isPreinsert?i2>0&&utils.HierarchyRequestError():(i2>1||1===i2&&child.nodeType!==ELEMENT_NODE)&&utils.HierarchyRequestError();break;case DOCUMENT_TYPE_NODE:if(null===child)this._countChildrenOfType(ELEMENT_NODE)&&utils.HierarchyRequestError();else for(kid=this.firstChild;null!==kid&&kid!==child;kid=kid.nextSibling)kid.nodeType===ELEMENT_NODE&&utils.HierarchyRequestError();i2=this._countChildrenOfType(DOCUMENT_TYPE_NODE),isPreinsert?i2>0&&utils.HierarchyRequestError():(i2>1||1===i2&&child.nodeType!==DOCUMENT_TYPE_NODE)&&utils.HierarchyRequestError()}else node.nodeType===DOCUMENT_TYPE_NODE&&utils.HierarchyRequestError()},"_ensureInsertValid")},insertBefore:{value:__name(function(node,child){this._ensureInsertValid(node,child,!0);var refChild=child;return refChild===node&&(refChild=node.nextSibling),this.doc.adoptNode(node),node._insertOrReplace(this,refChild,!1),node},"insertBefore")},appendChild:{value:function(child){return this.insertBefore(child,null)}},_appendChild:{value:function(child){child._insertOrReplace(this,null,!1)}},removeChild:{value:__name(function(child){if(!child.nodeType)throw new TypeError("not a node");return child.parentNode!==this&&utils.NotFoundError(),child.remove(),child},"removeChild")},replaceChild:{value:__name(function(node,child){return this._ensureInsertValid(node,child,!1),node.doc!==this.doc&&this.doc.adoptNode(node),node._insertOrReplace(this,child,!0),child},"replaceChild")},contains:{value:__name(function(node){return null!==node&&(this===node||0!=(this.compareDocumentPosition(node)&DOCUMENT_POSITION_CONTAINED_BY))},"contains")},compareDocumentPosition:{value:__name(function(that){if(this===that)return 0;if(this.doc!==that.doc||this.rooted!==that.rooted)return DOCUMENT_POSITION_DISCONNECTED+DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;for(var these=[],those=[],n=this;null!==n;n=n.parentNode)these.push(n);for(n=that;null!==n;n=n.parentNode)those.push(n);if(these.reverse(),those.reverse(),these[0]!==those[0])return DOCUMENT_POSITION_DISCONNECTED+DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;n=Math.min(these.length,those.length);for(var i2=1;i22?spliceArgs[2]:null):len>2&&null!==n&&LinkedList.insertBefore(spliceArgs[2],n),parent._childNodes)for(spliceArgs[0]=null===before?parent._childNodes.length:before._index,parent._childNodes.splice.apply(parent._childNodes,spliceArgs),i2=2;i22?parent._firstChild=spliceArgs[2]:isReplace&&(parent._firstChild=null));if(this._childNodes?this._childNodes.length=0:this._firstChild=null,parent.rooted)for(parent.modify(),i2=2;i2{"use strict";var NodeFilter2={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:4294967295,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};module2.exports=NodeFilter2.constructor=NodeFilter2.prototype=NodeFilter2},39339:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=NodeIterator;var NodeFilter2=__webpack_require__2(88495),NodeTraversal=__webpack_require__2(39921),utils=__webpack_require__2(59510);function move(node,stayWithin,directionIsNext){return directionIsNext?NodeTraversal.next(node,stayWithin):node===stayWithin?null:NodeTraversal.previous(node,null)}function isInclusiveAncestor(node,possibleChild){for(;possibleChild;possibleChild=possibleChild.parentNode)if(node===possibleChild)return!0;return!1}function traverse(ni,directionIsNext){var node,beforeNode;for(node=ni._referenceNode,beforeNode=ni._pointerBeforeReferenceNode;;){if(beforeNode===directionIsNext)beforeNode=!beforeNode;else if(null===(node=move(node,ni._root,directionIsNext)))return null;if(ni._internalFilter(node)===NodeFilter2.FILTER_ACCEPT)break}return ni._referenceNode=node,ni._pointerBeforeReferenceNode=beforeNode,node}function NodeIterator(root,whatToShow,filter){(!root||!root.nodeType)&&utils.NotSupportedError(),this._root=root,this._referenceNode=root,this._pointerBeforeReferenceNode=!0,this._whatToShow=Number(whatToShow)||0,this._filter=filter||null,this._active=!1,root.doc._attachNodeIterator(this)}__name(move,"move"),__name(isInclusiveAncestor,"isInclusiveAncestor"),__name(traverse,"traverse"),__name(NodeIterator,"NodeIterator"),Object.defineProperties(NodeIterator.prototype,{root:{get:__name(function(){return this._root},"root")},referenceNode:{get:__name(function(){return this._referenceNode},"referenceNode")},pointerBeforeReferenceNode:{get:__name(function(){return this._pointerBeforeReferenceNode},"pointerBeforeReferenceNode")},whatToShow:{get:__name(function(){return this._whatToShow},"whatToShow")},filter:{get:__name(function(){return this._filter},"filter")},_internalFilter:{value:__name(function(node){var result,filter;if(this._active&&utils.InvalidStateError(),!(1<{"use strict";function item(i2){return this[i2]||null}function NodeList(a){return a||(a=[]),a.item=item,a}__name(item,"item"),__name(NodeList,"NodeList"),module2.exports=NodeList},96528:module2=>{"use strict";module2.exports=__name(class extends Array{constructor(a){if(super(a&&a.length||0),a)for(var idx in a)this[idx]=a[idx]}item(i2){return this[i2]||null}},"NodeList")},277:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var NodeList;try{NodeList=__webpack_require__2(96528)}catch{NodeList=__webpack_require__2(61077)}module2.exports=NodeList},39921:module2=>{"use strict";module2.exports={nextSkippingChildren,nextAncestorSibling,next,previous,deepLastChild};function nextSkippingChildren(node,stayWithin){return node===stayWithin?null:null!==node.nextSibling?node.nextSibling:nextAncestorSibling(node,stayWithin)}function nextAncestorSibling(node,stayWithin){for(node=node.parentNode;null!==node;node=node.parentNode){if(node===stayWithin)return null;if(null!==node.nextSibling)return node.nextSibling}return null}function next(node,stayWithin){var n;return null!==(n=node.firstChild)?n:node===stayWithin?null:null!==(n=node.nextSibling)?n:nextAncestorSibling(node,stayWithin)}function deepLastChild(node){for(;node.lastChild;)node=node.lastChild;return node}function previous(node,stayWithin){var p;return null!==(p=node.previousSibling)?deepLastChild(p):(p=node.parentNode)===stayWithin?null:p}__name(nextSkippingChildren,"nextSkippingChildren"),__name(nextAncestorSibling,"nextAncestorSibling"),__name(next,"next"),__name(deepLastChild,"deepLastChild"),__name(previous,"previous")},41348:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports={serializeOne};var utils=__webpack_require__2(59510),NAMESPACE=utils.NAMESPACE,hasRawContent={STYLE:!0,SCRIPT:!0,XMP:!0,IFRAME:!0,NOEMBED:!0,NOFRAMES:!0,PLAINTEXT:!0},emptyElements={area:!0,base:!0,basefont:!0,bgsound:!0,br:!0,col:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},extraNewLine={};function escape2(s){return s.replace(/[&<>\u00A0]/g,function(c){switch(c){case"&":return"&";case"<":return"<";case">":return">";case"\xa0":return" "}})}function escapeAttr(s){var toEscape=/[&"\u00A0]/g;return toEscape.test(s)?s.replace(toEscape,function(c){switch(c){case"&":return"&";case'"':return""";case"\xa0":return" "}}):s}function attrname(a){var ns=a.namespaceURI;return ns?ns===NAMESPACE.XML?"xml:"+a.localName:ns===NAMESPACE.XLINK?"xlink:"+a.localName:ns===NAMESPACE.XMLNS?"xmlns"===a.localName?"xmlns":"xmlns:"+a.localName:a.name:a.localName}function serializeOne(kid,parent){var s="";switch(kid.nodeType){case 1:var ns=kid.namespaceURI,html=ns===NAMESPACE.HTML,tagname=html||ns===NAMESPACE.SVG||ns===NAMESPACE.MATHML?kid.localName:kid.tagName;s+="<"+tagname;for(var j=0,k=kid._numattrs;j",!html||!emptyElements[tagname]){var ss=kid.serialize();html&&extraNewLine[tagname]&&"\n"===ss.charAt(0)&&(s+="\n"),s+=ss,s+=""}break;case 3:case 4:var parenttag;parenttag=1===parent.nodeType&&parent.namespaceURI===NAMESPACE.HTML?parent.tagName:"",hasRawContent[parenttag]||"NOSCRIPT"===parenttag&&parent.ownerDocument._scripting_enabled?s+=kid.data:s+=escape2(kid.data);break;case 8:s+="\x3c!--"+kid.data+"--\x3e";break;case 7:s+="";break;case 10:s+="";break;default:utils.InvalidStateError()}return s}__name(escape2,"escape"),__name(escapeAttr,"escapeAttr"),__name(attrname,"attrname"),__name(serializeOne,"serializeOne")},76859:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var Node2=__webpack_require__2(20416),NonDocumentTypeChildNode={nextElementSibling:{get:function(){if(this.parentNode)for(var kid=this.nextSibling;null!==kid;kid=kid.nextSibling)if(kid.nodeType===Node2.ELEMENT_NODE)return kid;return null}},previousElementSibling:{get:function(){if(this.parentNode)for(var kid=this.previousSibling;null!==kid;kid=kid.previousSibling)if(kid.nodeType===Node2.ELEMENT_NODE)return kid;return null}}};module2.exports=NonDocumentTypeChildNode},41289:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=ProcessingInstruction;var Node2=__webpack_require__2(20416),CharacterData=__webpack_require__2(61534);function ProcessingInstruction(doc,target,data){CharacterData.call(this),this.nodeType=Node2.PROCESSING_INSTRUCTION_NODE,this.ownerDocument=doc,this.target=target,this._data=data}__name(ProcessingInstruction,"ProcessingInstruction");var nodeValue={get:function(){return this._data},set:function(v){v=null==v?"":String(v),this._data=v,this.rooted&&this.ownerDocument.mutateValue(this)}};ProcessingInstruction.prototype=Object.create(CharacterData.prototype,{nodeName:{get:function(){return this.target}},nodeValue,textContent:nodeValue,data:{get:nodeValue.get,set:function(v){nodeValue.set.call(this,null===v?"":String(v))}},clone:{value:__name(function(){return new ProcessingInstruction(this.ownerDocument,this.target,this._data)},"clone")},isEqual:{value:__name(function(n){return this.target===n.target&&this._data===n._data},"isEqual")}})},44762:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=Text2;var utils=__webpack_require__2(59510),Node2=__webpack_require__2(20416),CharacterData=__webpack_require__2(61534);function Text2(doc,data){CharacterData.call(this),this.nodeType=Node2.TEXT_NODE,this.ownerDocument=doc,this._data=data,this._index=void 0}__name(Text2,"Text");var nodeValue={get:function(){return this._data},set:function(v){(v=null==v?"":String(v))!==this._data&&(this._data=v,this.rooted&&this.ownerDocument.mutateValue(this),this.parentNode&&this.parentNode._textchangehook&&this.parentNode._textchangehook(this))}};Text2.prototype=Object.create(CharacterData.prototype,{nodeName:{value:"#text"},nodeValue,textContent:nodeValue,data:{get:nodeValue.get,set:function(v){nodeValue.set.call(this,null===v?"":String(v))}},splitText:{value:__name(function(offset){(offset>this._data.length||offset<0)&&utils.IndexSizeError();var newdata=this._data.substring(offset),newnode=this.ownerDocument.createTextNode(newdata);this.data=this.data.substring(0,offset);var parent=this.parentNode;return null!==parent&&parent.insertBefore(newnode,this.nextSibling),newnode},"splitText")},wholeText:{get:__name(function(){for(var result=this.textContent,next=this.nextSibling;next&&next.nodeType===Node2.TEXT_NODE;next=next.nextSibling)result+=next.textContent;return result},"wholeText")},replaceWholeText:{value:utils.nyi},clone:{value:__name(function(){return new Text2(this.ownerDocument,this._data)},"clone")}})},52553:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";module2.exports=TreeWalker;var Node2=__webpack_require__2(20416),NodeFilter2=__webpack_require__2(88495),NodeTraversal=__webpack_require__2(39921),utils=__webpack_require__2(59510),mapChild={first:"firstChild",last:"lastChild",next:"firstChild",previous:"lastChild"},mapSibling={first:"nextSibling",last:"previousSibling",next:"nextSibling",previous:"previousSibling"};function traverseChildren(tw,type){var child,node,parent,result,sibling;for(node=tw._currentNode[mapChild[type]];null!==node;){if((result=tw._internalFilter(node))===NodeFilter2.FILTER_ACCEPT)return tw._currentNode=node,node;if(result!==NodeFilter2.FILTER_SKIP||null===(child=node[mapChild[type]]))for(;null!==node;){if(null!==(sibling=node[mapSibling[type]])){node=sibling;break}if(null===(parent=node.parentNode)||parent===tw.root||parent===tw._currentNode)return null;node=parent}else node=child}return null}function traverseSiblings(tw,type){var node,result,sibling;if((node=tw._currentNode)===tw.root)return null;for(;;){for(sibling=node[mapSibling[type]];null!==sibling;){if(node=sibling,(result=tw._internalFilter(node))===NodeFilter2.FILTER_ACCEPT)return tw._currentNode=node,node;sibling=node[mapChild[type]],(result===NodeFilter2.FILTER_REJECT||null===sibling)&&(sibling=node[mapSibling[type]])}if(null===(node=node.parentNode)||node===tw.root||tw._internalFilter(node)===NodeFilter2.FILTER_ACCEPT)return null}}function TreeWalker(root,whatToShow,filter){(!root||!root.nodeType)&&utils.NotSupportedError(),this._root=root,this._whatToShow=Number(whatToShow)||0,this._filter=filter||null,this._active=!1,this._currentNode=root}__name(traverseChildren,"traverseChildren"),__name(traverseSiblings,"traverseSiblings"),__name(TreeWalker,"TreeWalker"),Object.defineProperties(TreeWalker.prototype,{root:{get:function(){return this._root}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},currentNode:{get:__name(function(){return this._currentNode},"currentNode"),set:__name(function(v){if(!(v instanceof Node2))throw new TypeError("Not a Node");this._currentNode=v},"setCurrentNode")},_internalFilter:{value:__name(function(node){var result,filter;if(this._active&&utils.InvalidStateError(),!(1<{"use strict";var Event=__webpack_require__2(82339);function UIEvent(){Event.call(this),this.view=null,this.detail=0}module2.exports=UIEvent,__name(UIEvent,"UIEvent"),UIEvent.prototype=Object.create(Event.prototype,{constructor:{value:UIEvent},initUIEvent:{value:function(type,bubbles,cancelable,view,detail){this.initEvent(type,bubbles,cancelable),this.view=view,this.detail=detail}}})},19910:module2=>{"use strict";function URL2(url){if(!url)return Object.create(URL2.prototype);this.url=url.replace(/^[ \t\n\r\f]+|[ \t\n\r\f]+$/g,"");var match=URL2.pattern.exec(this.url);if(match){if(match[2]&&(this.scheme=match[2]),match[4]){var userinfo=match[4].match(URL2.userinfoPattern);if(userinfo&&(this.username=userinfo[1],this.password=userinfo[3],match[4]=match[4].substring(userinfo[0].length)),match[4].match(URL2.portPattern)){var pos=match[4].lastIndexOf(":");this.host=match[4].substring(0,pos),this.port=match[4].substring(pos+1)}else this.host=match[4]}match[5]&&(this.path=match[5]),match[6]&&(this.query=match[7]),match[8]&&(this.fragment=match[9])}}module2.exports=URL2,__name(URL2,"URL"),URL2.pattern=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,URL2.userinfoPattern=/^([^@:]*)(:([^@]*))?@/,URL2.portPattern=/:\d+$/,URL2.authorityPattern=/^[^:\/?#]+:\/\//,URL2.hierarchyPattern=/^[^:\/?#]+:\//,URL2.percentEncode=__name(function(s){var c=s.charCodeAt(0);if(c<256)return"%"+c.toString(16);throw Error("can't percent-encode codepoints > 255 yet")},"percentEncode"),URL2.prototype={constructor:URL2,isAbsolute:function(){return!!this.scheme},isAuthorityBased:function(){return URL2.authorityPattern.test(this.url)},isHierarchical:function(){return URL2.hierarchyPattern.test(this.url)},toString:function(){var s="";return void 0!==this.scheme&&(s+=this.scheme+":"),this.isAbsolute()&&(s+="//",(this.username||this.password)&&(s+=this.username||"",this.password&&(s+=":"+this.password),s+="@"),this.host&&(s+=this.host)),void 0!==this.port&&(s+=":"+this.port),void 0!==this.path&&(s+=this.path),void 0!==this.query&&(s+="?"+this.query),void 0!==this.fragment&&(s+="#"+this.fragment),s},resolve:function(relative2){var base=this,r=new URL2(relative2),t=new URL2;return void 0!==r.scheme?(t.scheme=r.scheme,t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=remove_dot_segments(r.path),t.query=r.query):(t.scheme=base.scheme,void 0!==r.host?(t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=remove_dot_segments(r.path),t.query=r.query):(t.username=base.username,t.password=base.password,t.host=base.host,t.port=base.port,r.path?("/"===r.path.charAt(0)?t.path=remove_dot_segments(r.path):(t.path=merge(base.path,r.path),t.path=remove_dot_segments(t.path)),t.query=r.query):(t.path=base.path,void 0!==r.query?t.query=r.query:t.query=base.query))),t.fragment=r.fragment,t.toString();function merge(basepath,refpath){if(void 0!==base.host&&!base.path)return"/"+refpath;var lastslash=basepath.lastIndexOf("/");return-1===lastslash?refpath:basepath.substring(0,lastslash+1)+refpath}function remove_dot_segments(path){if(!path)return path;for(var output="";path.length>0;){if("."===path||".."===path){path="";break}var twochars=path.substring(0,2),threechars=path.substring(0,3),fourchars=path.substring(0,4);if("../"===threechars)path=path.substring(3);else if("./"===twochars)path=path.substring(2);else if("/./"===threechars)path="/"+path.substring(3);else if("/."===twochars&&2===path.length)path="/";else if("/../"===fourchars||"/.."===threechars&&3===path.length)path="/"+path.substring(4),output=output.replace(/\/?[^\/]*$/,"");else{var segment=path.match(/(\/?([^\/]*))/)[0];output+=segment,path=path.substring(segment.length)}}return output}}}},16465:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var URL2=__webpack_require__2(19910);function URLUtils(){}module2.exports=URLUtils,__name(URLUtils,"URLUtils"),URLUtils.prototype=Object.create(Object.prototype,{_url:{get:function(){return new URL2(this.href)}},protocol:{get:function(){var url=this._url;return url&&url.scheme?url.scheme+":":":"},set:function(v){var output=this.href,url=new URL2(output);url.isAbsolute()&&((v=(v=v.replace(/:+$/,"")).replace(/[^-+\.a-zA-Z0-9]/g,URL2.percentEncode)).length>0&&(url.scheme=v,output=url.toString())),this.href=output}},host:{get:function(){var url=this._url;return url.isAbsolute()&&url.isAuthorityBased()?url.host+(url.port?":"+url.port:""):""},set:function(v){var output=this.href,url=new URL2(output);url.isAbsolute()&&url.isAuthorityBased()&&((v=v.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,URL2.percentEncode)).length>0&&(url.host=v,delete url.port,output=url.toString())),this.href=output}},hostname:{get:function(){var url=this._url;return url.isAbsolute()&&url.isAuthorityBased()?url.host:""},set:function(v){var output=this.href,url=new URL2(output);url.isAbsolute()&&url.isAuthorityBased()&&((v=(v=v.replace(/^\/+/,"")).replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,URL2.percentEncode)).length>0&&(url.host=v,output=url.toString())),this.href=output}},port:{get:function(){var url=this._url;return url.isAbsolute()&&url.isAuthorityBased()&&void 0!==url.port?url.port:""},set:function(v){var output=this.href,url=new URL2(output);url.isAbsolute()&&url.isAuthorityBased()&&(0===(v=(v=(v=""+v).replace(/[^0-9].*$/,"")).replace(/^0+/,"")).length&&(v="0"),parseInt(v,10)<=65535&&(url.port=v,output=url.toString())),this.href=output}},pathname:{get:function(){var url=this._url;return url.isAbsolute()&&url.isHierarchical()?url.path:""},set:function(v){var output=this.href,url=new URL2(output);url.isAbsolute()&&url.isHierarchical()&&("/"!==v.charAt(0)&&(v="/"+v),v=v.replace(/[^-+\._~!$&'()*,;:=@\/a-zA-Z0-9]/g,URL2.percentEncode),url.path=v,output=url.toString()),this.href=output}},search:{get:function(){var url=this._url;return url.isAbsolute()&&url.isHierarchical()&&void 0!==url.query?"?"+url.query:""},set:function(v){var output=this.href,url=new URL2(output);url.isAbsolute()&&url.isHierarchical()&&("?"===v.charAt(0)&&(v=v.substring(1)),v=v.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,URL2.percentEncode),url.query=v,output=url.toString()),this.href=output}},hash:{get:function(){var url=this._url;return null==url||null==url.fragment||""===url.fragment?"":"#"+url.fragment},set:function(v){var output=this.href,url=new URL2(output);"#"===v.charAt(0)&&(v=v.substring(1)),v=v.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,URL2.percentEncode),url.fragment=v,output=url.toString(),this.href=output}},username:{get:function(){return this._url.username||""},set:function(v){var output=this.href,url=new URL2(output);url.isAbsolute()&&(v=v.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\:]/g,URL2.percentEncode),url.username=v,output=url.toString()),this.href=output}},password:{get:function(){return this._url.password||""},set:function(v){var output=this.href,url=new URL2(output);url.isAbsolute()&&(""===v?url.password=null:(v=v.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\]/g,URL2.percentEncode),url.password=v),output=url.toString()),this.href=output}},origin:{get:function(){var url=this._url;if(null==url)return"";var originForPort=__name(function(defaultPort){var origin=[url.scheme,url.host,+url.port||defaultPort];return origin[0]+"://"+origin[1]+(origin[2]===defaultPort?"":":"+origin[2])},"originForPort");switch(url.scheme){case"ftp":return originForPort(21);case"gopher":return originForPort(70);case"http":case"ws":return originForPort(80);case"https":case"wss":return originForPort(443);default:return url.scheme+"://"}}}}),URLUtils._inherit=function(proto){Object.getOwnPropertyNames(URLUtils.prototype).forEach(function(p){if("constructor"!==p&&"href"!==p){var desc=Object.getOwnPropertyDescriptor(URLUtils.prototype,p);Object.defineProperty(proto,p,desc)}})}},67932:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var DOMImplementation=__webpack_require__2(35301),EventTarget=__webpack_require__2(79998),Location=__webpack_require__2(90822),sloppy=__webpack_require__2(94574),utils=__webpack_require__2(59510);function Window(document2){this.document=document2||new DOMImplementation(null).createHTMLDocument(""),this.document._scripting_enabled=!0,this.document.defaultView=this,this.location=new Location(this,this.document._address||"about:blank")}module2.exports=Window,__name(Window,"Window"),Window.prototype=Object.create(EventTarget.prototype,{_run:{value:sloppy.Window_run},console:{value:console},history:{value:{back:utils.nyi,forward:utils.nyi,go:utils.nyi}},navigator:{value:__webpack_require__2(12356)},window:{get:function(){return this}},self:{get:function(){return this}},frames:{get:function(){return this}},parent:{get:function(){return this}},top:{get:function(){return this}},length:{value:0},frameElement:{value:null},opener:{value:null},onload:{get:function(){return this._getEventHandler("load")},set:function(v){this._setEventHandler("load",v)}},getComputedStyle:{value:__name(function(elt){return elt.style},"getComputedStyle")}}),utils.expose(__webpack_require__2(70253),Window),utils.expose(__webpack_require__2(98332),Window)},70253:module2=>{"use strict";var WindowTimers={setTimeout,clearTimeout,setInterval,clearInterval};module2.exports=WindowTimers},29593:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var utils=__webpack_require__2(59510);function numberPropDesc(a){var def;def="function"==typeof a.default?a.default:"number"==typeof a.default?__name(function(){return a.default},"def"):__name(function(){utils.assert(!1,typeof a.default)},"def");var unsigned_long="unsigned long"===a.type,signed_long="long"===a.type,unsigned_fallback="limited unsigned long with fallback"===a.type,min=a.min,max=a.max,setmin=a.setmin;return void 0===min&&(unsigned_long&&(min=0),signed_long&&(min=-2147483648),unsigned_fallback&&(min=1)),void 0===max&&(unsigned_long||signed_long||unsigned_fallback)&&(max=2147483647),{get:function(){var v=this._getattr(a.name),n=a.float?parseFloat(v):parseInt(v,10);if(null===v||!isFinite(n)||void 0!==min&&nmax)return def.call(this);if(unsigned_long||signed_long||unsigned_fallback){if(!/^[ \t\n\f\r]*[-+]?[0-9]/.test(v))return def.call(this);n|=0}return n},set:function(v){a.float||(v=Math.floor(v)),void 0!==setmin&&v2147483647?def.call(this):0|v:unsigned_fallback?v=v<1||v>2147483647?def.call(this):0|v:signed_long&&(v=v<-2147483648||v>2147483647?def.call(this):0|v),this._setattr(a.name,String(v))}}}exports2.property=function(attr){if(Array.isArray(attr.type)){var valid=Object.create(null);attr.type.forEach(function(val){valid[val.value||val]=val.alias||val});var missingValueDefault=attr.missing;void 0===missingValueDefault&&(missingValueDefault=null);var invalidValueDefault=attr.invalid;return void 0===invalidValueDefault&&(invalidValueDefault=missingValueDefault),{get:function(){var v=this._getattr(attr.name);return null===v?missingValueDefault:void 0!==(v=valid[v.toLowerCase()])?v:null!==invalidValueDefault?invalidValueDefault:v},set:function(v){this._setattr(attr.name,v)}}}if(attr.type===Boolean)return{get:function(){return this.hasAttribute(attr.name)},set:function(v){v?this._setattr(attr.name,""):this.removeAttribute(attr.name)}};if(attr.type===Number||"long"===attr.type||"unsigned long"===attr.type||"limited unsigned long with fallback"===attr.type)return numberPropDesc(attr);if(!attr.type||attr.type===String)return{get:function(){return this._getattr(attr.name)||""},set:function(v){attr.treatNullAsEmptyString&&null===v&&(v=""),this._setattr(attr.name,v)}};if("function"==typeof attr.type)return attr.type(attr.name,attr);throw new Error("Invalid attribute definition")},__name(numberPropDesc,"numberPropDesc"),exports2.registerChangeHandler=function(c,name,handler){var p=c.prototype;Object.prototype.hasOwnProperty.call(p,"_attributeChangeHandlers")||(p._attributeChangeHandlers=Object.create(p._attributeChangeHandlers||null)),p._attributeChangeHandlers[name]=handler}},35009:(__unused_webpack_module,exports2)=>{exports2.S=!global.__domino_frozen__},93671:(__unused_webpack_module,exports2)=>{"use strict";var parserlib=Object.create(null);(function(){function EventTarget(){this._listeners=Object.create(null)}function StringReader(text){this._input=text.replace(/(\r|\n){1,2}/g,"\n"),this._line=1,this._col=1,this._cursor=0}function SyntaxError2(message2,line,col){Error.call(this),this.name=this.constructor.name,this.col=col,this.line=line,this.message=message2}function SyntaxUnit(text,line,col,type){this.col=col,this.line=line,this.text=text,this.type=type}function TokenStreamBase(input,tokenData){this._reader=input?new StringReader(input.toString()):null,this._token=null,this._tokenData=tokenData,this._lt=[],this._ltIndex=0,this._ltIndexCache=[]}__name(EventTarget,"EventTarget"),EventTarget.prototype={constructor:EventTarget,addListener:function(type,listener){this._listeners[type]||(this._listeners[type]=[]),this._listeners[type].push(listener)},fire:function(event){if("string"==typeof event&&(event={type:event}),void 0!==event.target&&(event.target=this),void 0===event.type)throw new Error("Event object missing 'type' property.");if(this._listeners[event.type])for(var listeners=this._listeners[event.type].concat(),i2=0,len=listeners.length;i2=0&&this._ltIndex-1&&!tokenInfo[token.type].hide&&(token.channel=tokenInfo[token.type].channel,this._token=token,this._lt.push(token),this._ltIndexCache.push(this._lt.length-this._ltIndex+i2),this._lt.length>5&&this._lt.shift(),this._ltIndexCache.length>5&&this._ltIndexCache.shift(),this._ltIndex=this._lt.length),(info=tokenInfo[token.type])&&(info.hide||void 0!==info.channel&&channel!==info.channel)?this.get(channel):token.type},LA:function(index){var tt,total=index;if(index>0){if(index>5)throw new Error("Too much lookahead.");for(;total;)tt=this.get(),total--;for(;totalthis._tokenData.length?"UNKNOWN_TOKEN":this._tokenData[tokenType].name},tokenType:function(tokenName){return this._tokenData[tokenName]||-1},unget:function(){if(!this._ltIndexCache.length)throw new Error("Too much lookahead.");this._ltIndex-=this._ltIndexCache.pop(),this._token=this._lt[this._ltIndex-1]}},parserlib.util={__proto__:null,StringReader,SyntaxError:SyntaxError2,SyntaxUnit,EventTarget,TokenStreamBase}})(),function(){var EventTarget=parserlib.util.EventTarget,TokenStreamBase=parserlib.util.TokenStreamBase,SyntaxError2=(parserlib.util.StringReader,parserlib.util.SyntaxError),SyntaxUnit=parserlib.util.SyntaxUnit,Colors={__proto__:null,aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",currentColor:"The value of the 'color' property.",activeBorder:"Active window border.",activecaption:"Active window caption.",appworkspace:"Background color of multiple document interface.",background:"Desktop background.",buttonface:"The face background color for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonhighlight:"The color of the border facing the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonshadow:"The color of the border away from the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttontext:"Text on push buttons.",captiontext:"Text in caption, size box, and scrollbar arrow box.",graytext:"Grayed (disabled) text. This color is set to #000 if the current display driver does not support a solid gray color.",greytext:"Greyed (disabled) text. This color is set to #000 if the current display driver does not support a solid grey color.",highlight:"Item(s) selected in a control.",highlighttext:"Text of item(s) selected in a control.",inactiveborder:"Inactive window border.",inactivecaption:"Inactive window caption.",inactivecaptiontext:"Color of text in an inactive caption.",infobackground:"Background color for tooltip controls.",infotext:"Text color for tooltip controls.",menu:"Menu background.",menutext:"Text in menus.",scrollbar:"Scroll bar gray area.",threeddarkshadow:"The color of the darker (generally outer) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedface:"The face background color for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedhighlight:"The color of the lighter (generally outer) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedlightshadow:"The color of the darker (generally inner) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedshadow:"The color of the lighter (generally inner) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",window:"Window background.",windowframe:"Window frame.",windowtext:"Text in windows."};function Combinator(text,line,col){SyntaxUnit.call(this,text,line,col,Parser.COMBINATOR_TYPE),this.type="unknown",/^\s+$/.test(text)?this.type="descendant":">"===text?this.type="child":"+"===text?this.type="adjacent-sibling":"~"===text&&(this.type="sibling")}function MediaFeature(name,value){SyntaxUnit.call(this,"("+name+(null!==value?":"+value:"")+")",name.startLine,name.startCol,Parser.MEDIA_FEATURE_TYPE),this.name=name,this.value=value}function MediaQuery(modifier,mediaType,features,line,col){SyntaxUnit.call(this,(modifier?modifier+" ":"")+(mediaType||"")+(mediaType&&features.length>0?" and ":"")+features.join(" and "),line,col,Parser.MEDIA_QUERY_TYPE),this.modifier=modifier,this.mediaType=mediaType,this.features=features}function Parser(options){EventTarget.call(this),this.options=options||{},this._tokenStream=null}__name(Combinator,"Combinator"),Combinator.prototype=new SyntaxUnit,Combinator.prototype.constructor=Combinator,__name(MediaFeature,"MediaFeature"),MediaFeature.prototype=new SyntaxUnit,MediaFeature.prototype.constructor=MediaFeature,__name(MediaQuery,"MediaQuery"),MediaQuery.prototype=new SyntaxUnit,MediaQuery.prototype.constructor=MediaQuery,__name(Parser,"Parser"),Parser.DEFAULT_TYPE=0,Parser.COMBINATOR_TYPE=1,Parser.MEDIA_FEATURE_TYPE=2,Parser.MEDIA_QUERY_TYPE=3,Parser.PROPERTY_NAME_TYPE=4,Parser.PROPERTY_VALUE_TYPE=5,Parser.PROPERTY_VALUE_PART_TYPE=6,Parser.SELECTOR_TYPE=7,Parser.SELECTOR_PART_TYPE=8,Parser.SELECTOR_SUB_PART_TYPE=9,Parser.prototype=function(){var prop,proto=new EventTarget,additions={__proto__:null,constructor:Parser,DEFAULT_TYPE:0,COMBINATOR_TYPE:1,MEDIA_FEATURE_TYPE:2,MEDIA_QUERY_TYPE:3,PROPERTY_NAME_TYPE:4,PROPERTY_VALUE_TYPE:5,PROPERTY_VALUE_PART_TYPE:6,SELECTOR_TYPE:7,SELECTOR_PART_TYPE:8,SELECTOR_SUB_PART_TYPE:9,_stylesheet:function(){var count,token,tt,tokenStream=this._tokenStream;for(this.fire("startstylesheet"),this._charset(),this._skipCruft();tokenStream.peek()===Tokens.IMPORT_SYM;)this._import(),this._skipCruft();for(;tokenStream.peek()===Tokens.NAMESPACE_SYM;)this._namespace(),this._skipCruft();for(tt=tokenStream.peek();tt>Tokens.EOF;){try{switch(tt){case Tokens.MEDIA_SYM:this._media(),this._skipCruft();break;case Tokens.PAGE_SYM:this._page(),this._skipCruft();break;case Tokens.FONT_FACE_SYM:this._font_face(),this._skipCruft();break;case Tokens.KEYFRAMES_SYM:this._keyframes(),this._skipCruft();break;case Tokens.VIEWPORT_SYM:this._viewport(),this._skipCruft();break;case Tokens.DOCUMENT_SYM:this._document(),this._skipCruft();break;case Tokens.UNKNOWN_SYM:if(tokenStream.get(),this.options.strict)throw new SyntaxError2("Unknown @ rule.",tokenStream.LT(0).startLine,tokenStream.LT(0).startCol);for(this.fire({type:"error",error:null,message:"Unknown @ rule: "+tokenStream.LT(0).value+".",line:tokenStream.LT(0).startLine,col:tokenStream.LT(0).startCol}),count=0;tokenStream.advance([Tokens.LBRACE,Tokens.RBRACE])===Tokens.LBRACE;)count++;for(;count;)tokenStream.advance([Tokens.RBRACE]),count--;break;case Tokens.S:this._readWhitespace();break;default:if(!this._ruleset())switch(tt){case Tokens.CHARSET_SYM:throw token=tokenStream.LT(1),this._charset(!1),new SyntaxError2("@charset not allowed here.",token.startLine,token.startCol);case Tokens.IMPORT_SYM:throw token=tokenStream.LT(1),this._import(!1),new SyntaxError2("@import not allowed here.",token.startLine,token.startCol);case Tokens.NAMESPACE_SYM:throw token=tokenStream.LT(1),this._namespace(!1),new SyntaxError2("@namespace not allowed here.",token.startLine,token.startCol);default:tokenStream.get(),this._unexpectedToken(tokenStream.token())}}}catch(ex){if(!(ex instanceof SyntaxError2)||this.options.strict)throw ex;this.fire({type:"error",error:ex,message:ex.message,line:ex.line,col:ex.col})}tt=tokenStream.peek()}tt!==Tokens.EOF&&this._unexpectedToken(tokenStream.token()),this.fire("endstylesheet")},_charset:function(emit){var charset,line,col,tokenStream=this._tokenStream;tokenStream.match(Tokens.CHARSET_SYM)&&(line=tokenStream.token().startLine,col=tokenStream.token().startCol,this._readWhitespace(),tokenStream.mustMatch(Tokens.STRING),charset=tokenStream.token().value,this._readWhitespace(),tokenStream.mustMatch(Tokens.SEMICOLON),!1!==emit&&this.fire({type:"charset",charset,line,col}))},_import:function(emit){var uri,importToken,mediaList,tokenStream=this._tokenStream;tokenStream.mustMatch(Tokens.IMPORT_SYM),importToken=tokenStream.token(),this._readWhitespace(),tokenStream.mustMatch([Tokens.STRING,Tokens.URI]),uri=tokenStream.token().value.replace(/^(?:url\()?["']?([^"']+?)["']?\)?$/,"$1"),this._readWhitespace(),mediaList=this._media_query_list(),tokenStream.mustMatch(Tokens.SEMICOLON),this._readWhitespace(),!1!==emit&&this.fire({type:"import",uri,media:mediaList,line:importToken.startLine,col:importToken.startCol})},_namespace:function(emit){var line,col,prefix,uri,tokenStream=this._tokenStream;tokenStream.mustMatch(Tokens.NAMESPACE_SYM),line=tokenStream.token().startLine,col=tokenStream.token().startCol,this._readWhitespace(),tokenStream.match(Tokens.IDENT)&&(prefix=tokenStream.token().value,this._readWhitespace()),tokenStream.mustMatch([Tokens.STRING,Tokens.URI]),uri=tokenStream.token().value.replace(/(?:url\()?["']([^"']+)["']\)?/,"$1"),this._readWhitespace(),tokenStream.mustMatch(Tokens.SEMICOLON),this._readWhitespace(),!1!==emit&&this.fire({type:"namespace",prefix,uri,line,col})},_media:function(){var line,col,mediaList,tokenStream=this._tokenStream;for(tokenStream.mustMatch(Tokens.MEDIA_SYM),line=tokenStream.token().startLine,col=tokenStream.token().startCol,this._readWhitespace(),mediaList=this._media_query_list(),tokenStream.mustMatch(Tokens.LBRACE),this._readWhitespace(),this.fire({type:"startmedia",media:mediaList,line,col});;)if(tokenStream.peek()===Tokens.PAGE_SYM)this._page();else if(tokenStream.peek()===Tokens.FONT_FACE_SYM)this._font_face();else if(tokenStream.peek()===Tokens.VIEWPORT_SYM)this._viewport();else if(tokenStream.peek()===Tokens.DOCUMENT_SYM)this._document();else if(!this._ruleset())break;tokenStream.mustMatch(Tokens.RBRACE),this._readWhitespace(),this.fire({type:"endmedia",media:mediaList,line,col})},_media_query_list:function(){var tokenStream=this._tokenStream,mediaList=[];for(this._readWhitespace(),(tokenStream.peek()===Tokens.IDENT||tokenStream.peek()===Tokens.LPAREN)&&mediaList.push(this._media_query());tokenStream.match(Tokens.COMMA);)this._readWhitespace(),mediaList.push(this._media_query());return mediaList},_media_query:function(){var tokenStream=this._tokenStream,type=null,ident=null,token=null,expressions=[];if(tokenStream.match(Tokens.IDENT)&&("only"!==(ident=tokenStream.token().value.toLowerCase())&&"not"!==ident?(tokenStream.unget(),ident=null):token=tokenStream.token()),this._readWhitespace(),tokenStream.peek()===Tokens.IDENT?(type=this._media_type(),null===token&&(token=tokenStream.token())):tokenStream.peek()===Tokens.LPAREN&&(null===token&&(token=tokenStream.LT(1)),expressions.push(this._media_expression())),null===type&&0===expressions.length)return null;for(this._readWhitespace();tokenStream.match(Tokens.IDENT);)"and"!==tokenStream.token().value.toLowerCase()&&this._unexpectedToken(tokenStream.token()),this._readWhitespace(),expressions.push(this._media_expression());return new MediaQuery(ident,type,expressions,token.startLine,token.startCol)},_media_type:function(){return this._media_feature()},_media_expression:function(){var feature,token,tokenStream=this._tokenStream,expression=null;return tokenStream.mustMatch(Tokens.LPAREN),feature=this._media_feature(),this._readWhitespace(),tokenStream.match(Tokens.COLON)&&(this._readWhitespace(),token=tokenStream.LT(1),expression=this._expression()),tokenStream.mustMatch(Tokens.RPAREN),this._readWhitespace(),new MediaFeature(feature,expression?new SyntaxUnit(expression,token.startLine,token.startCol):null)},_media_feature:function(){var tokenStream=this._tokenStream;return this._readWhitespace(),tokenStream.mustMatch(Tokens.IDENT),SyntaxUnit.fromToken(tokenStream.token())},_page:function(){var line,col,tokenStream=this._tokenStream,identifier=null,pseudoPage=null;tokenStream.mustMatch(Tokens.PAGE_SYM),line=tokenStream.token().startLine,col=tokenStream.token().startCol,this._readWhitespace(),tokenStream.match(Tokens.IDENT)&&("auto"===(identifier=tokenStream.token().value).toLowerCase()&&this._unexpectedToken(tokenStream.token())),tokenStream.peek()===Tokens.COLON&&(pseudoPage=this._pseudo_page()),this._readWhitespace(),this.fire({type:"startpage",id:identifier,pseudo:pseudoPage,line,col}),this._readDeclarations(!0,!0),this.fire({type:"endpage",id:identifier,pseudo:pseudoPage,line,col})},_margin:function(){var line,col,tokenStream=this._tokenStream,marginSym=this._margin_sym();return!!marginSym&&(line=tokenStream.token().startLine,col=tokenStream.token().startCol,this.fire({type:"startpagemargin",margin:marginSym,line,col}),this._readDeclarations(!0),this.fire({type:"endpagemargin",margin:marginSym,line,col}),!0)},_margin_sym:function(){var tokenStream=this._tokenStream;return tokenStream.match([Tokens.TOPLEFTCORNER_SYM,Tokens.TOPLEFT_SYM,Tokens.TOPCENTER_SYM,Tokens.TOPRIGHT_SYM,Tokens.TOPRIGHTCORNER_SYM,Tokens.BOTTOMLEFTCORNER_SYM,Tokens.BOTTOMLEFT_SYM,Tokens.BOTTOMCENTER_SYM,Tokens.BOTTOMRIGHT_SYM,Tokens.BOTTOMRIGHTCORNER_SYM,Tokens.LEFTTOP_SYM,Tokens.LEFTMIDDLE_SYM,Tokens.LEFTBOTTOM_SYM,Tokens.RIGHTTOP_SYM,Tokens.RIGHTMIDDLE_SYM,Tokens.RIGHTBOTTOM_SYM])?SyntaxUnit.fromToken(tokenStream.token()):null},_pseudo_page:function(){var tokenStream=this._tokenStream;return tokenStream.mustMatch(Tokens.COLON),tokenStream.mustMatch(Tokens.IDENT),tokenStream.token().value},_font_face:function(){var line,col,tokenStream=this._tokenStream;tokenStream.mustMatch(Tokens.FONT_FACE_SYM),line=tokenStream.token().startLine,col=tokenStream.token().startCol,this._readWhitespace(),this.fire({type:"startfontface",line,col}),this._readDeclarations(!0),this.fire({type:"endfontface",line,col})},_viewport:function(){var line,col,tokenStream=this._tokenStream;tokenStream.mustMatch(Tokens.VIEWPORT_SYM),line=tokenStream.token().startLine,col=tokenStream.token().startCol,this._readWhitespace(),this.fire({type:"startviewport",line,col}),this._readDeclarations(!0),this.fire({type:"endviewport",line,col})},_document:function(){var token,tokenStream=this._tokenStream,functions=[],prefix="";for(tokenStream.mustMatch(Tokens.DOCUMENT_SYM),token=tokenStream.token(),/^@\-([^\-]+)\-/.test(token.value)&&(prefix=RegExp.$1),this._readWhitespace(),functions.push(this._document_function());tokenStream.match(Tokens.COMMA);)this._readWhitespace(),functions.push(this._document_function());for(tokenStream.mustMatch(Tokens.LBRACE),this._readWhitespace(),this.fire({type:"startdocument",functions,prefix,line:token.startLine,col:token.startCol});;)if(tokenStream.peek()===Tokens.PAGE_SYM)this._page();else if(tokenStream.peek()===Tokens.FONT_FACE_SYM)this._font_face();else if(tokenStream.peek()===Tokens.VIEWPORT_SYM)this._viewport();else if(tokenStream.peek()===Tokens.MEDIA_SYM)this._media();else if(!this._ruleset())break;tokenStream.mustMatch(Tokens.RBRACE),this._readWhitespace(),this.fire({type:"enddocument",functions,prefix,line:token.startLine,col:token.startCol})},_document_function:function(){var value,tokenStream=this._tokenStream;return tokenStream.match(Tokens.URI)?(value=tokenStream.token().value,this._readWhitespace()):value=this._function(),value},_operator:function(inFunction){var tokenStream=this._tokenStream,token=null;return(tokenStream.match([Tokens.SLASH,Tokens.COMMA])||inFunction&&tokenStream.match([Tokens.PLUS,Tokens.STAR,Tokens.MINUS]))&&(token=tokenStream.token(),this._readWhitespace()),token?PropertyValuePart.fromToken(token):null},_combinator:function(){var token,tokenStream=this._tokenStream,value=null;return tokenStream.match([Tokens.PLUS,Tokens.GREATER,Tokens.TILDE])&&(value=new Combinator((token=tokenStream.token()).value,token.startLine,token.startCol),this._readWhitespace()),value},_unary_operator:function(){var tokenStream=this._tokenStream;return tokenStream.match([Tokens.MINUS,Tokens.PLUS])?tokenStream.token().value:null},_property:function(){var tokenValue,token,line,col,tokenStream=this._tokenStream,value=null,hack=null;return tokenStream.peek()===Tokens.STAR&&this.options.starHack&&(tokenStream.get(),hack=(token=tokenStream.token()).value,line=token.startLine,col=token.startCol),tokenStream.match(Tokens.IDENT)&&("_"===(tokenValue=(token=tokenStream.token()).value).charAt(0)&&this.options.underscoreHack&&(hack="_",tokenValue=tokenValue.substring(1)),value=new PropertyName(tokenValue,hack,line||token.startLine,col||token.startCol),this._readWhitespace()),value},_ruleset:function(){var selectors,tokenStream=this._tokenStream;try{selectors=this._selectors_group()}catch(ex){if(!(ex instanceof SyntaxError2)||this.options.strict)throw ex;if(this.fire({type:"error",error:ex,message:ex.message,line:ex.line,col:ex.col}),tokenStream.advance([Tokens.RBRACE])!==Tokens.RBRACE)throw ex;return!0}return selectors&&(this.fire({type:"startrule",selectors,line:selectors[0].line,col:selectors[0].col}),this._readDeclarations(!0),this.fire({type:"endrule",selectors,line:selectors[0].line,col:selectors[0].col})),selectors},_selectors_group:function(){var selector,tokenStream=this._tokenStream,selectors=[];if(null!==(selector=this._selector()))for(selectors.push(selector);tokenStream.match(Tokens.COMMA);)this._readWhitespace(),null!==(selector=this._selector())?selectors.push(selector):this._unexpectedToken(tokenStream.LT(1));return selectors.length?selectors:null},_selector:function(){var tokenStream=this._tokenStream,selector=[],nextSelector=null,combinator=null,ws=null;if(null===(nextSelector=this._simple_selector_sequence()))return null;for(selector.push(nextSelector);;)if(null!==(combinator=this._combinator()))selector.push(combinator),null===(nextSelector=this._simple_selector_sequence())?this._unexpectedToken(tokenStream.LT(1)):selector.push(nextSelector);else{if(!this._readWhitespace())break;ws=new Combinator(tokenStream.token().value,tokenStream.token().startLine,tokenStream.token().startCol),combinator=this._combinator(),null===(nextSelector=this._simple_selector_sequence())?null!==combinator&&this._unexpectedToken(tokenStream.LT(1)):(null!==combinator?selector.push(combinator):selector.push(ws),selector.push(nextSelector))}return new Selector(selector,selector[0].line,selector[0].col)},_simple_selector_sequence:function(){var line,col,tokenStream=this._tokenStream,elementName=null,modifiers=[],selectorText="",components=[function(){return tokenStream.match(Tokens.HASH)?new SelectorSubPart(tokenStream.token().value,"id",tokenStream.token().startLine,tokenStream.token().startCol):null},this._class,this._attrib,this._pseudo,this._negation],i2=0,len=components.length,component=null;for(line=tokenStream.LT(1).startLine,col=tokenStream.LT(1).startCol,(elementName=this._type_selector())||(elementName=this._universal()),null!==elementName&&(selectorText+=elementName);tokenStream.peek()!==Tokens.S;){for(;i21&&tokenStream.unget()),null)},_class:function(){var token,tokenStream=this._tokenStream;return tokenStream.match(Tokens.DOT)?(tokenStream.mustMatch(Tokens.IDENT),new SelectorSubPart("."+(token=tokenStream.token()).value,"class",token.startLine,token.startCol-1)):null},_element_name:function(){var token,tokenStream=this._tokenStream;return tokenStream.match(Tokens.IDENT)?new SelectorSubPart((token=tokenStream.token()).value,"elementName",token.startLine,token.startCol):null},_namespace_prefix:function(){var tokenStream=this._tokenStream,value="";return(tokenStream.LA(1)===Tokens.PIPE||tokenStream.LA(2)===Tokens.PIPE)&&(tokenStream.match([Tokens.IDENT,Tokens.STAR])&&(value+=tokenStream.token().value),tokenStream.mustMatch(Tokens.PIPE),value+="|"),value.length?value:null},_universal:function(){var ns,tokenStream=this._tokenStream,value="";return(ns=this._namespace_prefix())&&(value+=ns),tokenStream.match(Tokens.STAR)&&(value+="*"),value.length?value:null},_attrib:function(){var ns,token,tokenStream=this._tokenStream,value=null;return tokenStream.match(Tokens.LBRACKET)?(value=(token=tokenStream.token()).value,value+=this._readWhitespace(),(ns=this._namespace_prefix())&&(value+=ns),tokenStream.mustMatch(Tokens.IDENT),value+=tokenStream.token().value,value+=this._readWhitespace(),tokenStream.match([Tokens.PREFIXMATCH,Tokens.SUFFIXMATCH,Tokens.SUBSTRINGMATCH,Tokens.EQUALS,Tokens.INCLUDES,Tokens.DASHMATCH])&&(value+=tokenStream.token().value,value+=this._readWhitespace(),tokenStream.mustMatch([Tokens.IDENT,Tokens.STRING]),value+=tokenStream.token().value,value+=this._readWhitespace()),tokenStream.mustMatch(Tokens.RBRACKET),new SelectorSubPart(value+"]","attribute",token.startLine,token.startCol)):null},_pseudo:function(){var line,col,tokenStream=this._tokenStream,pseudo=null,colons=":";return tokenStream.match(Tokens.COLON)&&(tokenStream.match(Tokens.COLON)&&(colons+=":"),tokenStream.match(Tokens.IDENT)?(pseudo=tokenStream.token().value,line=tokenStream.token().startLine,col=tokenStream.token().startCol-colons.length):tokenStream.peek()===Tokens.FUNCTION&&(line=tokenStream.LT(1).startLine,col=tokenStream.LT(1).startCol-colons.length,pseudo=this._functional_pseudo()),pseudo&&(pseudo=new SelectorSubPart(colons+pseudo,"pseudo",line,col))),pseudo},_functional_pseudo:function(){var tokenStream=this._tokenStream,value=null;return tokenStream.match(Tokens.FUNCTION)&&(value=tokenStream.token().value,value+=this._readWhitespace(),value+=this._expression(),tokenStream.mustMatch(Tokens.RPAREN),value+=")"),value},_expression:function(){for(var tokenStream=this._tokenStream,value="";tokenStream.match([Tokens.PLUS,Tokens.MINUS,Tokens.DIMENSION,Tokens.NUMBER,Tokens.STRING,Tokens.IDENT,Tokens.LENGTH,Tokens.FREQ,Tokens.ANGLE,Tokens.TIME,Tokens.RESOLUTION,Tokens.SLASH]);)value+=tokenStream.token().value,value+=this._readWhitespace();return value.length?value:null},_negation:function(){var line,col,arg,tokenStream=this._tokenStream,value="",subpart=null;return tokenStream.match(Tokens.NOT)&&(value=tokenStream.token().value,line=tokenStream.token().startLine,col=tokenStream.token().startCol,value+=this._readWhitespace(),value+=arg=this._negation_arg(),value+=this._readWhitespace(),tokenStream.match(Tokens.RPAREN),(subpart=new SelectorSubPart(value+=tokenStream.token().value,"not",line,col)).args.push(arg)),subpart},_negation_arg:function(){var line,col,tokenStream=this._tokenStream,args2=[this._type_selector,this._universal,function(){return tokenStream.match(Tokens.HASH)?new SelectorSubPart(tokenStream.token().value,"id",tokenStream.token().startLine,tokenStream.token().startCol):null},this._class,this._attrib,this._pseudo],arg=null,i2=0,len=args2.length;for(line=tokenStream.LT(1).startLine,col=tokenStream.LT(1).startCol;i20?new PropertyValue(values,values[0].line,values[0].col):null},_term:function(inFunction){var unary,token,line,col,tokenStream=this._tokenStream,value=null,endChar=null;return null!==(unary=this._unary_operator())&&(line=tokenStream.token().startLine,col=tokenStream.token().startCol),tokenStream.peek()===Tokens.IE_FUNCTION&&this.options.ieFilters?(value=this._ie_function(),null===unary&&(line=tokenStream.token().startLine,col=tokenStream.token().startCol)):inFunction&&tokenStream.match([Tokens.LPAREN,Tokens.LBRACE,Tokens.LBRACKET])?(endChar=(token=tokenStream.token()).endChar,value=token.value+this._expr(inFunction).text,null===unary&&(line=tokenStream.token().startLine,col=tokenStream.token().startCol),tokenStream.mustMatch(Tokens.type(endChar)),value+=endChar,this._readWhitespace()):tokenStream.match([Tokens.NUMBER,Tokens.PERCENTAGE,Tokens.LENGTH,Tokens.ANGLE,Tokens.TIME,Tokens.FREQ,Tokens.STRING,Tokens.IDENT,Tokens.URI,Tokens.UNICODE_RANGE])?(value=tokenStream.token().value,null===unary&&(line=tokenStream.token().startLine,col=tokenStream.token().startCol),this._readWhitespace()):null===(token=this._hexcolor())?(null===unary&&(line=tokenStream.LT(1).startLine,col=tokenStream.LT(1).startCol),null===value&&(value=tokenStream.LA(3)===Tokens.EQUALS&&this.options.ieFilters?this._ie_function():this._function())):(value=token.value,null===unary&&(line=token.startLine,col=token.startCol)),null!==value?new PropertyValuePart(null!==unary?unary+value:value,line,col):null},_function:function(){var lt,tokenStream=this._tokenStream,functionText=null;if(tokenStream.match(Tokens.FUNCTION)){if(functionText=tokenStream.token().value,this._readWhitespace(),functionText+=this._expr(!0),this.options.ieFilters&&tokenStream.peek()===Tokens.EQUALS)do{for(this._readWhitespace()&&(functionText+=tokenStream.token().value),tokenStream.LA(0)===Tokens.COMMA&&(functionText+=tokenStream.token().value),tokenStream.match(Tokens.IDENT),functionText+=tokenStream.token().value,tokenStream.match(Tokens.EQUALS),functionText+=tokenStream.token().value,lt=tokenStream.peek();lt!==Tokens.COMMA&<!==Tokens.S&<!==Tokens.RPAREN;)tokenStream.get(),functionText+=tokenStream.token().value,lt=tokenStream.peek()}while(tokenStream.match([Tokens.COMMA,Tokens.S]));tokenStream.match(Tokens.RPAREN),functionText+=")",this._readWhitespace()}return functionText},_ie_function:function(){var lt,tokenStream=this._tokenStream,functionText=null;if(tokenStream.match([Tokens.IE_FUNCTION,Tokens.FUNCTION])){functionText=tokenStream.token().value;do{for(this._readWhitespace()&&(functionText+=tokenStream.token().value),tokenStream.LA(0)===Tokens.COMMA&&(functionText+=tokenStream.token().value),tokenStream.match(Tokens.IDENT),functionText+=tokenStream.token().value,tokenStream.match(Tokens.EQUALS),functionText+=tokenStream.token().value,lt=tokenStream.peek();lt!==Tokens.COMMA&<!==Tokens.S&<!==Tokens.RPAREN;)tokenStream.get(),functionText+=tokenStream.token().value,lt=tokenStream.peek()}while(tokenStream.match([Tokens.COMMA,Tokens.S]));tokenStream.match(Tokens.RPAREN),functionText+=")",this._readWhitespace()}return functionText},_hexcolor:function(){var color,tokenStream=this._tokenStream,token=null;if(tokenStream.match(Tokens.HASH)){if(color=(token=tokenStream.token()).value,!/#[a-f0-9]{3,6}/i.test(color))throw new SyntaxError2("Expected a hex color but found '"+color+"' at line "+token.startLine+", col "+token.startCol+".",token.startLine,token.startCol);this._readWhitespace()}return token},_keyframes:function(){var token,tt,name,tokenStream=this._tokenStream,prefix="";for(tokenStream.mustMatch(Tokens.KEYFRAMES_SYM),token=tokenStream.token(),/^@\-([^\-]+)\-/.test(token.value)&&(prefix=RegExp.$1),this._readWhitespace(),name=this._keyframe_name(),this._readWhitespace(),tokenStream.mustMatch(Tokens.LBRACE),this.fire({type:"startkeyframes",name,prefix,line:token.startLine,col:token.startCol}),this._readWhitespace(),tt=tokenStream.peek();tt===Tokens.IDENT||tt===Tokens.PERCENTAGE;)this._keyframe_rule(),this._readWhitespace(),tt=tokenStream.peek();this.fire({type:"endkeyframes",name,prefix,line:token.startLine,col:token.startCol}),this._readWhitespace(),tokenStream.mustMatch(Tokens.RBRACE)},_keyframe_name:function(){var tokenStream=this._tokenStream;return tokenStream.mustMatch([Tokens.IDENT,Tokens.STRING]),SyntaxUnit.fromToken(tokenStream.token())},_keyframe_rule:function(){var keyList=this._key_list();this.fire({type:"startkeyframerule",keys:keyList,line:keyList[0].line,col:keyList[0].col}),this._readDeclarations(!0),this.fire({type:"endkeyframerule",keys:keyList,line:keyList[0].line,col:keyList[0].col})},_key_list:function(){var tokenStream=this._tokenStream,keyList=[];for(keyList.push(this._key()),this._readWhitespace();tokenStream.match(Tokens.COMMA);)this._readWhitespace(),keyList.push(this._key()),this._readWhitespace();return keyList},_key:function(){var token,tokenStream=this._tokenStream;if(tokenStream.match(Tokens.PERCENTAGE))return SyntaxUnit.fromToken(tokenStream.token());if(tokenStream.match(Tokens.IDENT)){if(token=tokenStream.token(),/from|to/i.test(token.value))return SyntaxUnit.fromToken(token);tokenStream.unget()}this._unexpectedToken(tokenStream.LT(1))},_skipCruft:function(){for(;this._tokenStream.match([Tokens.S,Tokens.CDO,Tokens.CDC]););},_readDeclarations:function(checkStart,readMargins){var tt,tokenStream=this._tokenStream;this._readWhitespace(),checkStart&&tokenStream.mustMatch(Tokens.LBRACE),this._readWhitespace();try{for(;;){if(!(tokenStream.match(Tokens.SEMICOLON)||readMargins&&this._margin())){if(!this._declaration())break;if(!tokenStream.match(Tokens.SEMICOLON))break}this._readWhitespace()}tokenStream.mustMatch(Tokens.RBRACE),this._readWhitespace()}catch(ex){if(!(ex instanceof SyntaxError2)||this.options.strict)throw ex;if(this.fire({type:"error",error:ex,message:ex.message,line:ex.line,col:ex.col}),(tt=tokenStream.advance([Tokens.SEMICOLON,Tokens.RBRACE]))===Tokens.SEMICOLON)this._readDeclarations(!1,readMargins);else if(tt!==Tokens.RBRACE)throw ex}},_readWhitespace:function(){for(var tokenStream=this._tokenStream,ws="";tokenStream.match(Tokens.S);)ws+=tokenStream.token().value;return ws},_unexpectedToken:function(token){throw new SyntaxError2("Unexpected token '"+token.value+"' at line "+token.startLine+", col "+token.startCol+".",token.startLine,token.startCol)},_verifyEnd:function(){this._tokenStream.LA(1)!==Tokens.EOF&&this._unexpectedToken(this._tokenStream.LT(1))},_validateProperty:function(property,value){Validation.validate(property,value)},parse:function(input){this._tokenStream=new TokenStream(input,Tokens),this._stylesheet()},parseStyleSheet:function(input){return this.parse(input)},parseMediaQuery:function(input){this._tokenStream=new TokenStream(input,Tokens);var result=this._media_query();return this._verifyEnd(),result},parsePropertyValue:function(input){this._tokenStream=new TokenStream(input,Tokens),this._readWhitespace();var result=this._expr();return this._readWhitespace(),this._verifyEnd(),result},parseRule:function(input){this._tokenStream=new TokenStream(input,Tokens),this._readWhitespace();var result=this._ruleset();return this._readWhitespace(),this._verifyEnd(),result},parseSelector:function(input){this._tokenStream=new TokenStream(input,Tokens),this._readWhitespace();var result=this._selector();return this._readWhitespace(),this._verifyEnd(),result},parseStyleAttribute:function(input){input+="}",this._tokenStream=new TokenStream(input,Tokens),this._readDeclarations()}};for(prop in additions)Object.prototype.hasOwnProperty.call(additions,prop)&&(proto[prop]=additions[prop]);return proto}();var Properties={__proto__:null,"align-items":"flex-start | flex-end | center | baseline | stretch","align-content":"flex-start | flex-end | center | space-between | space-around | stretch","align-self":"auto | flex-start | flex-end | center | baseline | stretch","-webkit-align-items":"flex-start | flex-end | center | baseline | stretch","-webkit-align-content":"flex-start | flex-end | center | space-between | space-around | stretch","-webkit-align-self":"auto | flex-start | flex-end | center | baseline | stretch","alignment-adjust":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | | ","alignment-baseline":"baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical",animation:1,"animation-delay":{multi:"