Raw Source
TagoDR / Manga OnlineViewer

// ==UserScript==
// @name          Manga OnlineViewer
// @author        Tago
// @updateURL     https://github.com/TagoDR/MangaOnlineViewer/raw/master/dist/Manga_OnlineViewer.meta.js
// @downloadURL   https://github.com/TagoDR/MangaOnlineViewer/raw/master/dist/Manga_OnlineViewer.user.js
// @supportURL    https://github.com/TagoDR/MangaOnlineViewer/issues
// @namespace     https://github.com/TagoDR
// @description   Shows all pages at once in online view for these sites: Asura Scans, Batoto, BilibiliComics, Comick, Comix.to, Dynasty-Scans, Flame Comics, Ikigai Mangas - EltaNews, Ikigai Mangas - Ajaco, Kagane, KuManga, LeerCapitulo, LHTranslation, Local Files, M440, MangaBuddy, MangaDex, MangaFox, MangaHere, Mangago, MangaHub, MangaKakalot, NeloManga, MangaNato, NatoManga, MangaBats, MangaBall, MangaOni, MangaPark, MangaReader, MangaToons, MangaTown, ManhwaWeb, MangaGeko.com, MangaGeko.cc, NineAnime, OlympusBiblioteca, QiManhwa, ReadComicsOnline, ReaperScans, TuMangaOnline, WebNovel, WebToons, WeebCentral, WeebDex, Vortex Scans, ZeroScans, MangaStream WordPress Plugin, Realm Oasis, Voids-Scans, Luminous Scans, Shimada Scans, Night Scans, Manhwa-Freak, OzulScansEn, CypherScans, MangaGalaxy, LuaScans, Drake Scans, Rizzfables, NovatoScans, TresDaos, Lectormiau, NTRGod, Threedaos, FoOlSlide, Kireicake, Madara WordPress Plugin, MangaHaus, Isekai Scan, Comic Kiba, Zinmanga, mangatx, Toonily, Mngazuki, JaiminisBox, DisasterScans, ManhuaPlus, TopManhua, NovelMic, Reset-Scans, LeviatanScans, Dragon Tea, SetsuScans, ToonGod, Hades Scans
// @version       2026.04.30.build-1833
// @license       MIT
// @icon          https://cdn-icons-png.flaticon.com/32/2281/2281832.png
// @run-at        document-end
// @grant         unsafeWindow
// @grant         GM_getValue
// @grant         GM_setValue
// @grant         GM_listValues
// @grant         GM_deleteValue
// @grant         GM_xmlhttpRequest
// @grant         GM_addValueChangeListener
// @noframes      on
// @connect       *
// @require       https://cdn.jsdelivr.net/npm/colorjs.io@0.6.1/dist/color.global.min.js
// @require       https://cdnjs.cloudflare.com/ajax/libs/jszip/3.9.1/jszip.min.js
// @require       https://cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.js
// @require       https://cdn.jsdelivr.net/npm/lodash@4.17.23/lodash.min.js
// @require       https://cdn.jsdelivr.net/npm/hotkeys-js@4.0.2/dist/hotkeys-js.min.js
// @require       https://cdn.jsdelivr.net/npm/bowser@2.14.1/bundled.js
// @require       https://cdnjs.cloudflare.com/ajax/libs/blob-util/2.0.2/blob-util.min.js
// @require       https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js
// @include       /https?:\/\/(www.)?(asurascans|asuracomics).(com|net)\/.+/
// @include       /https?:\/\/(?:www\.)?(?:fto|jto|hto|dto|mto|wto|bato|battwo|batotwo|comiko|batocomic|readtoto|zbato|xbato|mangatoto)\.(?:to|com|net|org)\/(chapter|title).*/
// @include       /https?:\/\/(www\.)?(bilibilicomics).net\/episode\/.+/
// @include       /https?:\/\/(www\.)?comick.io\/.+/
// @include       /https?:\/\/comix\.to\/(title|comic)\/.+\/.+/
// @include       /https?:\/\/(www\.)?dynasty-scans.com\/chapters\/.+/
// @include       /https?:\/\/(www.)?(flamecomics).(xyz)\/series\/.+/
// @include       /https?:\/\/(visorikigai|visualikigai).(ajaco|eltanews|foodib|jobswu).(com|net|site)\/capitulo\/\d+/
// @include       /https:\/\/(www\.)?kagane\.org\/series\/.+\/reader\/.+/
// @include       /https?:\/\/(www\.)?kumanga.com\/manga\/leer\/.+/
// @include       /https?:\/\/(www.)?leercapitulo.co\/leer\/.+/
// @include       /https?:\/\/(www\.)?lhtranslation.net\/read.+/
// @include       /(file:\/\/\/.+(index)?.html)/
// @include       /https?:\/\/(www\.)?m440.in\/manga\/.+\/.+\/\d+/
// @include       /https?:\/\/(www\.)?mangabuddy.com\/.+\/chapter.+/
// @include       /https?:\/\/(www\.)?mangadex.org/
// @include       /https?:\/\/(www\.)?(fanfox.net|mangahere.cc)\/manga\/.+\/.+\//
// @include       /https?:\/\/(www\.)?mangago.me\/.*\/.*\/.*/
// @include       /https?:\/\/(www\.)?(mangahub).io\/chapter\/.+\/.+/
// @include       /https?:\/\/(www\.)?(read|chap)?(nelomanga|mangakakalot|natomanga|manganato|mangabats|mangakakalove).(com|gg|net).*\/(chapter|manga)\/.+\/.+/
// @include       /https?:\/\/mangaball\.net\/chapter-detail\/.+/
// @include       /https?:\/\/(www\.)?manga-oni.com\/lector\/.+\/\d+\/cascada/
// @include       /https?:\/\/(www\.)?(mangapark|mpark|comicpark|readpark|parkmanga).(com|me|org|net|io|to)\/title\/.+\/.+/
// @include       /https?:\/\/(www\.)?mangareader.to\/read\/.+\/.+\/.+/
// @include       /https?:\/\/.*mangatoon.mobi\/.+\/watch\/.+/
// @include       /https?:\/\/www\.mangatown\.com\/manga\/.+\/.+\//
// @include       /https?:\/\/(www\.)?manhwaweb.com\/leer\/.+/
// @include       /https?:\/\/(www\.)?mgeko.(com|cc)?\/reader\/.*/
// @include       /https?:\/\/(www\.)?nineanime.com\/chapter\/.+/
// @include       /https?:\/\/(www\.)?olympusbiblioteca.com\/capitulo\/\d+\/.+/
// @include       /https?:\/\/qimanhwa\.com\/series\/[^/]+\/chapter-.+/
// @include       /https?:\/\/(www\.)?readcomicsonline.ru\/comic\/.*\/\d*/
// @include       /https?:\/\/(www\.)?reaperscans\.com\/series\/.+\/chapter.+/
// @include       /https?:\/\/(www\.)?(.+).com\/(viewer|news)\/.+\/(paginated|cascade)/
// @include       /https?:\/\/(www\.)?webnovel.com\/comic\/.+/
// @include       /https?:\/\/(www\.)?webtoons.com\/.+viewer.+/
// @include       /https?:\/\/(www\.)?(weebcentral).com\/chapters\/.+/
// @include       /https?:\/\/(www\.)?weebdex\.org\/.+/
// @include       /https?:\/\/(www.)?(vortexscans).(org)\/.+/
// @include       /https?:\/\/(www\.)?zscans.com\/comics\/.+/
// @include       /https?:\/\/[^/]*(scans?|comic|realm|rizz|hivetoon|tresdaos|zonamiau|ntrgod|threedaos)[^/]*\/.+/
// @include       /^(?!.*jaiminisbox).*\/read\/.+/
// @include       /https?:\/\/.+\/(manga|series|manhua|comic|ch|novel|webtoon|tmo)\/.+\/.+/
// @exclude       /https?:\/\/(www\.)?tsumino.com\/.+/
// @exclude       /https?:\/\/(www\.)?pururin.io\/.+/
// ==/UserScript==
(function(){var Kf=Object.create,Hi=Object.defineProperty,Yf=Object.getOwnPropertyDescriptor,Xf=Object.getOwnPropertyNames,Jf=Object.getPrototypeOf,Qf=Object.prototype.hasOwnProperty,yr=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),rd=(e,t)=>{let n={};for(var i in e)Hi(n,i,{get:e[i],enumerable:!0});return t||Hi(n,Symbol.toStringTag,{value:"Module"}),n},ep=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=Xf(t),s=0,l=a.length,h;s<l;s++)h=a[s],!Qf.call(e,h)&&h!==n&&Hi(e,h,{get:(u=>t[u]).bind(null,h),enumerable:!(i=Yf(t,h))||i.enumerable});return e},Fi=(e,t,n)=>(n=e!=null?Kf(Jf(e)):{},ep(t||!e||!e.__esModule?Hi(n,"default",{value:e,enumerable:!0}):n,e)),tp=yr(((e,t)=>{(function(n,i){typeof e=="object"&&typeof t=="object"?t.exports=i():typeof define=="function"&&define.amd?define([],i):typeof e=="object"?e.bowser=i():n.bowser=i()})(e,(function(){return(function(n){var i={};function a(s){if(i[s])return i[s].exports;var l=i[s]={i:s,l:!1,exports:{}};return n[s].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return a.m=n,a.c=i,a.d=function(s,l,h){a.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:h})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,l){if(1&l&&(s=a(s)),8&l||4&l&&typeof s=="object"&&s&&s.__esModule)return s;var h=Object.create(null);if(a.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:s}),2&l&&typeof s!="string")for(var u in s)a.d(h,u,function(f){return s[f]}.bind(null,u));return h},a.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(l,"a",l),l},a.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},a.p="",a(a.s=90)})({17:function(n,i,a){"use strict";i.__esModule=!0,i.default=void 0;var s=a(18);i.default=(function(){function l(){}return l.getFirstMatch=function(h,u){var f=u.match(h);return f&&f.length>0&&f[1]||""},l.getSecondMatch=function(h,u){var f=u.match(h);return f&&f.length>1&&f[2]||""},l.matchAndReturnConst=function(h,u,f){if(h.test(u))return f},l.getWindowsVersionName=function(h){switch(h){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},l.getMacOSVersionName=function(h){var u=h.split(".").splice(0,2).map((function(w){return parseInt(w,10)||0}));u.push(0);var f=u[0],p=u[1];if(f===10)switch(p){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(f){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},l.getAndroidVersionName=function(h){var u=h.split(".").splice(0,2).map((function(f){return parseInt(f,10)||0}));if(u.push(0),!(u[0]===1&&u[1]<5))return u[0]===1&&u[1]<6?"Cupcake":u[0]===1&&u[1]>=6?"Donut":u[0]===2&&u[1]<2?"Eclair":u[0]===2&&u[1]===2?"Froyo":u[0]===2&&u[1]>2?"Gingerbread":u[0]===3?"Honeycomb":u[0]===4&&u[1]<1?"Ice Cream Sandwich":u[0]===4&&u[1]<4?"Jelly Bean":u[0]===4&&u[1]>=4?"KitKat":u[0]===5?"Lollipop":u[0]===6?"Marshmallow":u[0]===7?"Nougat":u[0]===8?"Oreo":u[0]===9?"Pie":void 0},l.getVersionPrecision=function(h){return h.split(".").length},l.compareVersions=function(h,u,f){f===void 0&&(f=!1);var p=l.getVersionPrecision(h),w=l.getVersionPrecision(u),b=Math.max(p,w),v=0,m=l.map([h,u],(function(E){var y=b-l.getVersionPrecision(E),A=E+new Array(y+1).join(".0");return l.map(A.split("."),(function(x){return new Array(20-x.length).join("0")+x})).reverse()}));for(f&&(v=b-Math.min(p,w)),b-=1;b>=v;){if(m[0][b]>m[1][b])return 1;if(m[0][b]===m[1][b]){if(b===v)return 0;b-=1}else if(m[0][b]<m[1][b])return-1}},l.map=function(h,u){var f,p=[];if(Array.prototype.map)return Array.prototype.map.call(h,u);for(f=0;f<h.length;f+=1)p.push(u(h[f]));return p},l.find=function(h,u){var f,p;if(Array.prototype.find)return Array.prototype.find.call(h,u);for(f=0,p=h.length;f<p;f+=1){var w=h[f];if(u(w,f))return w}},l.assign=function(h){for(var u,f,p=h,w=arguments.length,b=new Array(w>1?w-1:0),v=1;v<w;v++)b[v-1]=arguments[v];if(Object.assign)return Object.assign.apply(Object,[h].concat(b));var m=function(){var E=b[u];typeof E=="object"&&E!==null&&Object.keys(E).forEach((function(y){p[y]=E[y]}))};for(u=0,f=b.length;u<f;u+=1)m();return h},l.getBrowserAlias=function(h){return s.BROWSER_ALIASES_MAP[h]},l.getBrowserTypeByAlias=function(h){return s.BROWSER_MAP[h]||""},l})(),n.exports=i.default},18:function(n,i,a){"use strict";i.__esModule=!0,i.ENGINE_MAP=i.OS_MAP=i.PLATFORMS_MAP=i.BROWSER_MAP=i.BROWSER_ALIASES_MAP=void 0,i.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},i.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},i.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},i.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},i.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(n,i,a){"use strict";i.__esModule=!0,i.default=void 0;var s,l=(s=a(91))&&s.__esModule?s:{default:s},h=a(18);function u(f,p){for(var w=0;w<p.length;w++){var b=p[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(f,b.key,b)}}i.default=(function(){function f(){}var p,w,b;return f.getParser=function(v,m,E){if(m===void 0&&(m=!1),E===void 0&&(E=null),typeof v!="string")throw new Error("UserAgent should be a string");return new l.default(v,m,E)},f.parse=function(v,m){return m===void 0&&(m=null),new l.default(v,m).getResult()},p=f,b=[{key:"BROWSER_MAP",get:function(){return h.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return h.ENGINE_MAP}},{key:"OS_MAP",get:function(){return h.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return h.PLATFORMS_MAP}}],(w=null)&&u(p.prototype,w),b&&u(p,b),f})(),n.exports=i.default},91:function(n,i,a){"use strict";i.__esModule=!0,i.default=void 0;var s=p(a(92)),l=p(a(93)),h=p(a(94)),u=p(a(95)),f=p(a(17));function p(w){return w&&w.__esModule?w:{default:w}}i.default=(function(){function w(v,m,E){if(m===void 0&&(m=!1),E===void 0&&(E=null),v==null||v==="")throw new Error("UserAgent parameter can't be empty");this._ua=v;var y=!1;typeof m=="boolean"?(y=m,this._hints=E):this._hints=m!=null&&typeof m=="object"?m:null,this.parsedResult={},y!==!0&&this.parse()}var b=w.prototype;return b.getHints=function(){return this._hints},b.hasBrand=function(v){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var m=v.toLowerCase();return this._hints.brands.some((function(E){return E.brand&&E.brand.toLowerCase()===m}))},b.getBrandVersion=function(v){if(this._hints&&Array.isArray(this._hints.brands)){var m=v.toLowerCase(),E=this._hints.brands.find((function(y){return y.brand&&y.brand.toLowerCase()===m}));return E?E.version:void 0}},b.getUA=function(){return this._ua},b.test=function(v){return v.test(this._ua)},b.parseBrowser=function(){var v=this;this.parsedResult.browser={};var m=f.default.find(s.default,(function(E){if(typeof E.test=="function")return E.test(v);if(Array.isArray(E.test))return E.test.some((function(y){return v.test(y)}));throw new Error("Browser's test function is not valid")}));return m&&(this.parsedResult.browser=m.describe(this.getUA(),this)),this.parsedResult.browser},b.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},b.getBrowserName=function(v){return v?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},b.getBrowserVersion=function(){return this.getBrowser().version},b.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},b.parseOS=function(){var v=this;this.parsedResult.os={};var m=f.default.find(l.default,(function(E){if(typeof E.test=="function")return E.test(v);if(Array.isArray(E.test))return E.test.some((function(y){return v.test(y)}));throw new Error("Browser's test function is not valid")}));return m&&(this.parsedResult.os=m.describe(this.getUA())),this.parsedResult.os},b.getOSName=function(v){var m=this.getOS().name;return v?String(m).toLowerCase()||"":m||""},b.getOSVersion=function(){return this.getOS().version},b.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},b.getPlatformType=function(v){v===void 0&&(v=!1);var m=this.getPlatform().type;return v?String(m).toLowerCase()||"":m||""},b.parsePlatform=function(){var v=this;this.parsedResult.platform={};var m=f.default.find(h.default,(function(E){if(typeof E.test=="function")return E.test(v);if(Array.isArray(E.test))return E.test.some((function(y){return v.test(y)}));throw new Error("Browser's test function is not valid")}));return m&&(this.parsedResult.platform=m.describe(this.getUA())),this.parsedResult.platform},b.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},b.getEngineName=function(v){return v?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},b.parseEngine=function(){var v=this;this.parsedResult.engine={};var m=f.default.find(u.default,(function(E){if(typeof E.test=="function")return E.test(v);if(Array.isArray(E.test))return E.test.some((function(y){return v.test(y)}));throw new Error("Browser's test function is not valid")}));return m&&(this.parsedResult.engine=m.describe(this.getUA())),this.parsedResult.engine},b.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},b.getResult=function(){return f.default.assign({},this.parsedResult)},b.satisfies=function(v){var m=this,E={},y=0,A={},x=0;if(Object.keys(v).forEach((function(ge){var _e=v[ge];typeof _e=="string"?(A[ge]=_e,x+=1):typeof _e=="object"&&(E[ge]=_e,y+=1)})),y>0){var L=Object.keys(E),T=f.default.find(L,(function(ge){return m.isOS(ge)}));if(T){var N=this.satisfies(E[T]);if(N!==void 0)return N}var Y=f.default.find(L,(function(ge){return m.isPlatform(ge)}));if(Y){var q=this.satisfies(E[Y]);if(q!==void 0)return q}}if(x>0){var ie=Object.keys(A),W=f.default.find(ie,(function(ge){return m.isBrowser(ge,!0)}));if(W!==void 0)return this.compareVersion(A[W])}},b.isBrowser=function(v,m){m===void 0&&(m=!1);var E=this.getBrowserName().toLowerCase(),y=v.toLowerCase(),A=f.default.getBrowserTypeByAlias(y);return m&&A&&(y=A.toLowerCase()),y===E},b.compareVersion=function(v){var m=[0],E=v,y=!1,A=this.getBrowserVersion();if(typeof A=="string")return v[0]===">"||v[0]==="<"?(E=v.substr(1),v[1]==="="?(y=!0,E=v.substr(2)):m=[],v[0]===">"?m.push(1):m.push(-1)):v[0]==="="?E=v.substr(1):v[0]==="~"&&(y=!0,E=v.substr(1)),m.indexOf(f.default.compareVersions(A,E,y))>-1},b.isOS=function(v){return this.getOSName(!0)===String(v).toLowerCase()},b.isPlatform=function(v){return this.getPlatformType(!0)===String(v).toLowerCase()},b.isEngine=function(v){return this.getEngineName(!0)===String(v).toLowerCase()},b.is=function(v,m){return m===void 0&&(m=!1),this.isBrowser(v,m)||this.isOS(v)||this.isPlatform(v)},b.some=function(v){var m=this;return v===void 0&&(v=[]),v.some((function(E){return m.is(E)}))},w})(),n.exports=i.default},92:function(n,i,a){"use strict";i.__esModule=!0,i.default=void 0;var s,l=(s=a(17))&&s.__esModule?s:{default:s},h=/version\/(\d+(\.?_?\d+)+)/i;i.default=[{test:[/gptbot/i],describe:function(u){var f={name:"GPTBot"},p=l.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/chatgpt-user/i],describe:function(u){var f={name:"ChatGPT-User"},p=l.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/oai-searchbot/i],describe:function(u){var f={name:"OAI-SearchBot"},p=l.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(u){var f={name:"ClaudeBot"},p=l.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(u){var f={name:"Omgilibot"},p=l.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/diffbot/i],describe:function(u){var f={name:"Diffbot"},p=l.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/perplexitybot/i],describe:function(u){var f={name:"PerplexityBot"},p=l.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/perplexity-user/i],describe:function(u){var f={name:"Perplexity-User"},p=l.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/youbot/i],describe:function(u){var f={name:"YouBot"},p=l.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/meta-webindexer/i],describe:function(u){var f={name:"Meta-WebIndexer"},p=l.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/meta-externalads/i],describe:function(u){var f={name:"Meta-ExternalAds"},p=l.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/meta-externalagent/i],describe:function(u){var f={name:"Meta-ExternalAgent"},p=l.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/meta-externalfetcher/i],describe:function(u){var f={name:"Meta-ExternalFetcher"},p=l.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/googlebot/i],describe:function(u){var f={name:"Googlebot"},p=l.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/linespider/i],describe:function(u){var f={name:"Linespider"},p=l.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/amazonbot/i],describe:function(u){var f={name:"AmazonBot"},p=l.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/bingbot/i],describe:function(u){var f={name:"BingCrawler"},p=l.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/baiduspider/i],describe:function(u){var f={name:"BaiduSpider"},p=l.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/duckduckbot/i],describe:function(u){var f={name:"DuckDuckBot"},p=l.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/ia_archiver/i],describe:function(u){var f={name:"InternetArchiveCrawler"},p=l.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(u){var f={name:"SlackBot"},p=l.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(u){var f={name:"Opera"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/opr\/|opios/i],describe:function(u){var f={name:"Opera"},p=l.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/SamsungBrowser/i],describe:function(u){var f={name:"Samsung Internet for Android"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/Whale/i],describe:function(u){var f={name:"NAVER Whale Browser"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/PaleMoon/i],describe:function(u){var f={name:"Pale Moon"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/MZBrowser/i],describe:function(u){var f={name:"MZ Browser"},p=l.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/focus/i],describe:function(u){var f={name:"Focus"},p=l.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/swing/i],describe:function(u){var f={name:"Swing"},p=l.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/coast/i],describe:function(u){var f={name:"Opera Coast"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(u){var f={name:"Opera Touch"},p=l.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/yabrowser/i],describe:function(u){var f={name:"Yandex Browser"},p=l.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/ucbrowser/i],describe:function(u){var f={name:"UC Browser"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/Maxthon|mxios/i],describe:function(u){var f={name:"Maxthon"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/epiphany/i],describe:function(u){var f={name:"Epiphany"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/puffin/i],describe:function(u){var f={name:"Puffin"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/sleipnir/i],describe:function(u){var f={name:"Sleipnir"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/k-meleon/i],describe:function(u){var f={name:"K-Meleon"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/micromessenger/i],describe:function(u){var f={name:"WeChat"},p=l.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/qqbrowser/i],describe:function(u){var f={name:/qqbrowserlite/i.test(u)?"QQ Browser Lite":"QQ Browser"},p=l.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/msie|trident/i],describe:function(u){var f={name:"Internet Explorer"},p=l.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/\sedg\//i],describe:function(u){var f={name:"Microsoft Edge"},p=l.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/edg([ea]|ios)/i],describe:function(u){var f={name:"Microsoft Edge"},p=l.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/vivaldi/i],describe:function(u){var f={name:"Vivaldi"},p=l.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/seamonkey/i],describe:function(u){var f={name:"SeaMonkey"},p=l.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/sailfish/i],describe:function(u){var f={name:"Sailfish"},p=l.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,u);return p&&(f.version=p),f}},{test:[/silk/i],describe:function(u){var f={name:"Amazon Silk"},p=l.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/phantom/i],describe:function(u){var f={name:"PhantomJS"},p=l.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/slimerjs/i],describe:function(u){var f={name:"SlimerJS"},p=l.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(u){var f={name:"BlackBerry"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/(web|hpw)[o0]s/i],describe:function(u){var f={name:"WebOS Browser"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/bada/i],describe:function(u){var f={name:"Bada"},p=l.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/tizen/i],describe:function(u){var f={name:"Tizen"},p=l.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/qupzilla/i],describe:function(u){var f={name:"QupZilla"},p=l.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/librewolf/i],describe:function(u){var f={name:"LibreWolf"},p=l.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/firefox|iceweasel|fxios/i],describe:function(u){var f={name:"Firefox"},p=l.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/electron/i],describe:function(u){var f={name:"Electron"},p=l.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(u){var f={name:"Sogou Browser"},p=l.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,u),w=l.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,u),b=l.default.getFirstMatch(/se ([\d.]+)x/i,u),v=p||w||b;return v&&(f.version=v),f}},{test:[/MiuiBrowser/i],describe:function(u){var f={name:"Miui"},p=l.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:function(u){return!!u.hasBrand("DuckDuckGo")||u.test(/\sDdg\/[\d.]+$/i)},describe:function(u,f){var p={name:"DuckDuckGo"};if(f){var w=f.getBrandVersion("DuckDuckGo");if(w)return p.version=w,p}var b=l.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,u);return b&&(p.version=b),p}},{test:function(u){return u.hasBrand("Brave")},describe:function(u,f){var p={name:"Brave"};if(f){var w=f.getBrandVersion("Brave");if(w)return p.version=w,p}return p}},{test:[/chromium/i],describe:function(u){var f={name:"Chromium"},p=l.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/chrome|crios|crmo/i],describe:function(u){var f={name:"Chrome"},p=l.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/GSA/i],describe:function(u){var f={name:"Google Search"},p=l.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:function(u){var f=!u.test(/like android/i),p=u.test(/android/i);return f&&p},describe:function(u){var f={name:"Android Browser"},p=l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/playstation 4/i],describe:function(u){var f={name:"PlayStation 4"},p=l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/safari|applewebkit/i],describe:function(u){var f={name:"Safari"},p=l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/.*/i],describe:function(u){var f=u.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:l.default.getFirstMatch(f,u),version:l.default.getSecondMatch(f,u)}}}],n.exports=i.default},93:function(n,i,a){"use strict";i.__esModule=!0,i.default=void 0;var s,l=(s=a(17))&&s.__esModule?s:{default:s},h=a(18);i.default=[{test:[/Roku\/DVP/],describe:function(u){var f=l.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,u);return{name:h.OS_MAP.Roku,version:f}}},{test:[/windows phone/i],describe:function(u){var f=l.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,u);return{name:h.OS_MAP.WindowsPhone,version:f}}},{test:[/windows /i],describe:function(u){var f=l.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,u),p=l.default.getWindowsVersionName(f);return{name:h.OS_MAP.Windows,version:f,versionName:p}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(u){var f={name:h.OS_MAP.iOS},p=l.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,u);return p&&(f.version=p),f}},{test:[/macintosh/i],describe:function(u){var f=l.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,u).replace(/[_\s]/g,"."),p=l.default.getMacOSVersionName(f),w={name:h.OS_MAP.MacOS,version:f};return p&&(w.versionName=p),w}},{test:[/(ipod|iphone|ipad)/i],describe:function(u){var f=l.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,u).replace(/[_\s]/g,".");return{name:h.OS_MAP.iOS,version:f}}},{test:[/OpenHarmony/i],describe:function(u){var f=l.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,u);return{name:h.OS_MAP.HarmonyOS,version:f}}},{test:function(u){var f=!u.test(/like android/i),p=u.test(/android/i);return f&&p},describe:function(u){var f=l.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,u),p=l.default.getAndroidVersionName(f),w={name:h.OS_MAP.Android,version:f};return p&&(w.versionName=p),w}},{test:[/(web|hpw)[o0]s/i],describe:function(u){var f=l.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,u),p={name:h.OS_MAP.WebOS};return f&&f.length&&(p.version=f),p}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(u){var f=l.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,u)||l.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,u)||l.default.getFirstMatch(/\bbb(\d+)/i,u);return{name:h.OS_MAP.BlackBerry,version:f}}},{test:[/bada/i],describe:function(u){var f=l.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,u);return{name:h.OS_MAP.Bada,version:f}}},{test:[/tizen/i],describe:function(u){var f=l.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,u);return{name:h.OS_MAP.Tizen,version:f}}},{test:[/linux/i],describe:function(){return{name:h.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:h.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(u){var f=l.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,u);return{name:h.OS_MAP.PlayStation4,version:f}}}],n.exports=i.default},94:function(n,i,a){"use strict";i.__esModule=!0,i.default=void 0;var s,l=(s=a(17))&&s.__esModule?s:{default:s},h=a(18);i.default=[{test:[/googlebot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(u){var f=l.default.getFirstMatch(/(can-l01)/i,u)&&"Nova",p={type:h.PLATFORMS_MAP.mobile,vendor:"Huawei"};return f&&(p.model=f),p}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet}}},{test:function(u){var f=u.test(/ipod|iphone/i),p=u.test(/like (ipod|iphone)/i);return f&&!p},describe:function(u){var f=l.default.getFirstMatch(/(ipod|iphone)/i,u);return{type:h.PLATFORMS_MAP.mobile,vendor:"Apple",model:f}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:h.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(u){var f=l.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,u),p={type:h.PLATFORMS_MAP.mobile,vendor:"Nokia"};return f&&(p.model=f),p}},{test:[/[^-]mobi/i],describe:function(){return{type:h.PLATFORMS_MAP.mobile}}},{test:function(u){return u.getBrowserName(!0)==="blackberry"},describe:function(){return{type:h.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(u){return u.getBrowserName(!0)==="bada"},describe:function(){return{type:h.PLATFORMS_MAP.mobile}}},{test:function(u){return u.getBrowserName()==="windows phone"},describe:function(){return{type:h.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(u){var f=Number(String(u.getOSVersion()).split(".")[0]);return u.getOSName(!0)==="android"&&f>=3},describe:function(){return{type:h.PLATFORMS_MAP.tablet}}},{test:function(u){return u.getOSName(!0)==="android"},describe:function(){return{type:h.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:h.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:h.PLATFORMS_MAP.tv}}},{test:function(u){return u.getOSName(!0)==="macos"},describe:function(){return{type:h.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(u){return u.getOSName(!0)==="windows"},describe:function(){return{type:h.PLATFORMS_MAP.desktop}}},{test:function(u){return u.getOSName(!0)==="linux"},describe:function(){return{type:h.PLATFORMS_MAP.desktop}}},{test:function(u){return u.getOSName(!0)==="playstation 4"},describe:function(){return{type:h.PLATFORMS_MAP.tv}}},{test:function(u){return u.getOSName(!0)==="roku"},describe:function(){return{type:h.PLATFORMS_MAP.tv}}}],n.exports=i.default},95:function(n,i,a){"use strict";i.__esModule=!0,i.default=void 0;var s,l=(s=a(17))&&s.__esModule?s:{default:s},h=a(18);i.default=[{test:function(u){return u.getBrowserName(!0)==="microsoft edge"},describe:function(u){if(/\sedg\//i.test(u))return{name:h.ENGINE_MAP.Blink};var f=l.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,u);return{name:h.ENGINE_MAP.EdgeHTML,version:f}}},{test:[/trident/i],describe:function(u){var f={name:h.ENGINE_MAP.Trident},p=l.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:function(u){return u.test(/presto/i)},describe:function(u){var f={name:h.ENGINE_MAP.Presto},p=l.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:function(u){var f=u.test(/gecko/i),p=u.test(/like gecko/i);return f&&!p},describe:function(u){var f={name:h.ENGINE_MAP.Gecko},p=l.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:h.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(u){var f={name:h.ENGINE_MAP.WebKit},p=l.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}}],n.exports=i.default}})}))})),nd=Fi(tp(),1);function rp(e,t){typeof unsafeWindow<"u"&&(unsafeWindow[e]=t),typeof window<"u"&&(window[e]=t)}function xe(...e){return console.log("MangaOnlineViewer-main-min: ",...e),e}function kr(...e){return["dev","development"].includes("main-min")&&console.info("MangaOnlineViewer: ",...e),e}function od(e){typeof GM_deleteValue<"u"?GM_deleteValue(e):kr("Fake Removing: ",e)}var Ss=typeof GM_info<"u"?GM_info:{scriptHandler:"Console",script:{name:"Debug",version:"Testing"}};function np(e,t){return typeof GM_getValue<"u"?GM_getValue(e,t):(kr("Fake Getting: ",e," = ",t),t)}function id(e,t){const n=np(e,t);if(typeof n=="string"&&n.trim()!=="")try{return JSON.parse(n)}catch(i){return xe("Failed to parse JSON from storage",e,i),t}return n}function op(e){return id("settings",e)}function ip(e){return id(window.location.hostname,e)}function ad(e,t){return typeof GM_setValue<"u"?(GM_setValue(e,t),xe("Setting: ",e," = ",t),t.toString()):(kr("Fake Setting: ",e," = ",t),String(t))}function ap(e){return ad("settings",e)}function sd(e){return ad(window.location.hostname,e)}function sp(){const e=nd.default.getParser(window.navigator.userAgent).getBrowser();return`${e.name} ${e.version}`}function lp(){return Ss.scriptHandler??"Greasemonkey"}var Zo=()=>{const e=nd.default.getParser(window.navigator.userAgent).getPlatformType(!0);return e==="mobile"||window.matchMedia("screen and (max-width: 600px)").matches?"mobile":e==="tablet"||window.matchMedia("screen and (max-width: 992px)").matches?"tablet":"desktop"},cp=()=>Zo()==="mobile"||Zo()==="tablet",Ms=()=>window.location.protocol==="file:"||window.location.pathname.endsWith("Manga_Local_Viewer.html"),ld=(e,t="settings")=>{if(typeof GM_addValueChangeListener<"u")try{return GM_addValueChangeListener(t,(n,i,a,s)=>{s&&e(a)})}catch(n){xe("Failed to add settings listener",n)}},dp=yr(((e,t)=>{(function(){var n,i="4.18.1",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",h="Invalid `variable` option passed into `_.template`",u="Invalid `imports` option passed into `_.template`",f="__lodash_hash_undefined__",p=500,w="__lodash_placeholder__",b=1,v=2,m=4,E=1,y=2,A=1,x=2,L=4,T=8,N=16,Y=32,q=64,ie=128,W=256,ge=512,_e=30,P="...",J=800,S=16,ee=1,Ce=2,de=3,Oe=1/0,ae=9007199254740991,Ie=17976931348623157e292,U=NaN,G=4294967295,Se=G-1,me=G>>>1,pe=[["ary",ie],["bind",A],["bindKey",x],["curry",T],["curryRight",N],["flip",ge],["partial",Y],["partialRight",q],["rearg",W]],Ke="[object Arguments]",mt="[object Array]",Ve="[object AsyncFunction]",We="[object Boolean]",ft="[object Date]",vt="[object DOMException]",jt="[object Error]",Wt="[object Function]",_="[object GeneratorFunction]",Q="[object Map]",Z="[object Number]",O="[object Null]",C="[object Object]",B="[object Promise]",se="[object Proxy]",le="[object RegExp]",F="[object Set]",ue="[object String]",ve="[object Symbol]",he="[object Undefined]",Ae="[object WeakMap]",tt="[object WeakSet]",Ue="[object ArrayBuffer]",Lt="[object DataView]",nn="[object Float32Array]",tr="[object Float64Array]",on="[object Int8Array]",lt="[object Int16Array]",xn="[object Int32Array]",Qn="[object Uint8Array]",gr="[object Uint8ClampedArray]",Lo="[object Uint16Array]",Ai="[object Uint32Array]",Fl=/\b__p \+= '';/g,Gl=/\b(__p \+=) '' \+/g,za=/(__e\(.*?\)|\b__t\)) \+\n'';/g,In=/&(?:amp|lt|gt|quot|#39);/g,eo=/[&<>"']/g,J9=RegExp(In.source),Q9=RegExp(eo.source),e7=/<%-([\s\S]+?)%>/g,t7=/<%([\s\S]+?)%>/g,gh=/<%=([\s\S]+?)%>/g,r7=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n7=/^\w*$/,o7=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wl=/[\\^$.*+?()[\]{}|]/g,i7=RegExp(Wl.source),Ul=/^\s+/,a7=/\s/,s7=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,l7=/\{\n\/\* \[wrapped with (.+)\] \*/,c7=/,? & /,d7=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mh=/[()=,{}\[\]\/\s]/,u7=/\\(\\)?/g,h7=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vh=/\w*$/,f7=/^[-+]0x[0-9a-f]+$/i,p7=/^0b[01]+$/i,g7=/^\[object .+?Constructor\]$/,m7=/^0o[0-7]+$/i,v7=/^(?:0|[1-9]\d*)$/,b7=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Na=/($^)/,w7=/['\n\r\u2028\u2029\\]/g,Ba="\\ud800-\\udfff",bh="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",wh="\\u2700-\\u27bf",_h="a-z\\xdf-\\xf6\\xf8-\\xff",_7="\\xac\\xb1\\xd7\\xf7",y7="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",k7="\\u2000-\\u206f",E7=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",yh="A-Z\\xc0-\\xd6\\xd8-\\xde",kh="\\ufe0e\\ufe0f",Eh=_7+y7+k7+E7,Vl="['’]",A7="["+Ba+"]",Ah="["+Eh+"]",Ha="["+bh+"]",Sh="\\d+",S7="["+wh+"]",Mh="["+_h+"]",xh="[^"+Ba+Eh+Sh+wh+_h+yh+"]",Zl="\\ud83c[\\udffb-\\udfff]",M7="(?:"+Ha+"|"+Zl+")",Ih="[^"+Ba+"]",ql="(?:\\ud83c[\\udde6-\\uddff]){2}",jl="[\\ud800-\\udbff][\\udc00-\\udfff]",Ro="["+yh+"]",Ch="\\u200d",Oh="(?:"+Mh+"|"+xh+")",x7="(?:"+Ro+"|"+xh+")",Th="(?:"+Vl+"(?:d|ll|m|re|s|t|ve))?",Lh="(?:"+Vl+"(?:D|LL|M|RE|S|T|VE))?",Rh=M7+"?",Ph="["+kh+"]?",I7="(?:"+Ch+"(?:"+[Ih,ql,jl].join("|")+")"+Ph+Rh+")*",C7="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",O7="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$h=Ph+Rh+I7,T7="(?:"+[S7,ql,jl].join("|")+")"+$h,L7="(?:"+[Ih+Ha+"?",Ha,ql,jl,A7].join("|")+")",R7=RegExp(Vl,"g"),P7=RegExp(Ha,"g"),Kl=RegExp(Zl+"(?="+Zl+")|"+L7+$h,"g"),$7=RegExp([Ro+"?"+Mh+"+"+Th+"(?="+[Ah,Ro,"$"].join("|")+")",x7+"+"+Lh+"(?="+[Ah,Ro+Oh,"$"].join("|")+")",Ro+"?"+Oh+"+"+Th,Ro+"+"+Lh,O7,C7,Sh,T7].join("|"),"g"),D7=RegExp("["+Ch+Ba+bh+kh+"]"),z7=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,N7=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],B7=-1,ct={};ct[nn]=ct[tr]=ct[on]=ct[lt]=ct[xn]=ct[Qn]=ct[gr]=ct[Lo]=ct[Ai]=!0,ct[Ke]=ct[mt]=ct[Ue]=ct[We]=ct[Lt]=ct[ft]=ct[jt]=ct[Wt]=ct[Q]=ct[Z]=ct[C]=ct[le]=ct[F]=ct[ue]=ct[Ae]=!1;var at={};at[Ke]=at[mt]=at[Ue]=at[Lt]=at[We]=at[ft]=at[nn]=at[tr]=at[on]=at[lt]=at[xn]=at[Q]=at[Z]=at[C]=at[le]=at[F]=at[ue]=at[ve]=at[Qn]=at[gr]=at[Lo]=at[Ai]=!0,at[jt]=at[Wt]=at[Ae]=!1;var H7={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},F7={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},G7={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},W7={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},U7=parseFloat,V7=parseInt,Dh=typeof global=="object"&&global&&global.Object===Object&&global,Z7=typeof self=="object"&&self&&self.Object===Object&&self,$t=Dh||Z7||Function("return this")(),Yl=typeof e=="object"&&e&&!e.nodeType&&e,to=Yl&&typeof t=="object"&&t&&!t.nodeType&&t,zh=to&&to.exports===Yl,Xl=zh&&Dh.process,xr=(function(){try{var z=to&&to.require&&to.require("util").types;return z||Xl&&Xl.binding&&Xl.binding("util")}catch{}})(),Nh=xr&&xr.isArrayBuffer,Bh=xr&&xr.isDate,Hh=xr&&xr.isMap,Fh=xr&&xr.isRegExp,Gh=xr&&xr.isSet,Wh=xr&&xr.isTypedArray;function mr(z,te,V){switch(V.length){case 0:return z.call(te);case 1:return z.call(te,V[0]);case 2:return z.call(te,V[0],V[1]);case 3:return z.call(te,V[0],V[1],V[2])}return z.apply(te,V)}function q7(z,te,V,we){for(var De=-1,Xe=z==null?0:z.length;++De<Xe;){var Rt=z[De];te(we,Rt,V(Rt),z)}return we}function vr(z,te){for(var V=-1,we=z==null?0:z.length;++V<we&&te(z[V],V,z)!==!1;);return z}function j7(z,te){for(var V=z==null?0:z.length;V--&&te(z[V],V,z)!==!1;);return z}function Uh(z,te){for(var V=-1,we=z==null?0:z.length;++V<we;)if(!te(z[V],V,z))return!1;return!0}function Cn(z,te){for(var V=-1,we=z==null?0:z.length,De=0,Xe=[];++V<we;){var Rt=z[V];te(Rt,V,z)&&(Xe[De++]=Rt)}return Xe}function Fa(z,te){return!!(z!=null&&z.length)&&Po(z,te,0)>-1}function Jl(z,te,V){for(var we=-1,De=z==null?0:z.length;++we<De;)if(V(te,z[we]))return!0;return!1}function pt(z,te){for(var V=-1,we=z==null?0:z.length,De=Array(we);++V<we;)De[V]=te(z[V],V,z);return De}function On(z,te){for(var V=-1,we=te.length,De=z.length;++V<we;)z[De+V]=te[V];return z}function Ql(z,te,V,we){var De=-1,Xe=z==null?0:z.length;for(we&&Xe&&(V=z[++De]);++De<Xe;)V=te(V,z[De],De,z);return V}function K7(z,te,V,we){var De=z==null?0:z.length;for(we&&De&&(V=z[--De]);De--;)V=te(V,z[De],De,z);return V}function ec(z,te){for(var V=-1,we=z==null?0:z.length;++V<we;)if(te(z[V],V,z))return!0;return!1}var Y7=tc("length");function X7(z){return z.split("")}function J7(z){return z.match(d7)||[]}function Vh(z,te,V){var we;return V(z,function(De,Xe,Rt){if(te(De,Xe,Rt))return we=Xe,!1}),we}function Ga(z,te,V,we){for(var De=z.length,Xe=V+(we?1:-1);we?Xe--:++Xe<De;)if(te(z[Xe],Xe,z))return Xe;return-1}function Po(z,te,V){return te===te?dw(z,te,V):Ga(z,Zh,V)}function Q7(z,te,V,we){for(var De=V-1,Xe=z.length;++De<Xe;)if(we(z[De],te))return De;return-1}function Zh(z){return z!==z}function qh(z,te){var V=z==null?0:z.length;return V?nc(z,te)/V:U}function tc(z){return function(te){return te==null?n:te[z]}}function rc(z){return function(te){return z==null?n:z[te]}}function jh(z,te,V,we,De){return De(z,function(Xe,Rt,rt){V=we?(we=!1,Xe):te(V,Xe,Rt,rt)}),V}function ew(z,te){var V=z.length;for(z.sort(te);V--;)z[V]=z[V].value;return z}function nc(z,te){for(var V,we=-1,De=z.length;++we<De;){var Xe=te(z[we]);Xe!==n&&(V=V===n?Xe:V+Xe)}return V}function oc(z,te){for(var V=-1,we=Array(z);++V<z;)we[V]=te(V);return we}function tw(z,te){return pt(te,function(V){return[V,z[V]]})}function Kh(z){return z&&z.slice(0,Qh(z)+1).replace(Ul,"")}function br(z){return function(te){return z(te)}}function ic(z,te){return pt(te,function(V){return z[V]})}function Si(z,te){return z.has(te)}function Yh(z,te){for(var V=-1,we=z.length;++V<we&&Po(te,z[V],0)>-1;);return V}function Xh(z,te){for(var V=z.length;V--&&Po(te,z[V],0)>-1;);return V}function rw(z,te){for(var V=z.length,we=0;V--;)z[V]===te&&++we;return we}var nw=rc(H7),ow=rc(F7);function iw(z){return"\\"+W7[z]}function aw(z,te){return z==null?n:z[te]}function $o(z){return D7.test(z)}function sw(z){return z7.test(z)}function lw(z){for(var te,V=[];!(te=z.next()).done;)V.push(te.value);return V}function ac(z){var te=-1,V=Array(z.size);return z.forEach(function(we,De){V[++te]=[De,we]}),V}function Jh(z,te){return function(V){return z(te(V))}}function Tn(z,te){for(var V=-1,we=z.length,De=0,Xe=[];++V<we;){var Rt=z[V];(Rt===te||Rt===w)&&(z[V]=w,Xe[De++]=V)}return Xe}function Wa(z){var te=-1,V=Array(z.size);return z.forEach(function(we){V[++te]=we}),V}function cw(z){var te=-1,V=Array(z.size);return z.forEach(function(we){V[++te]=[we,we]}),V}function dw(z,te,V){for(var we=V-1,De=z.length;++we<De;)if(z[we]===te)return we;return-1}function uw(z,te,V){for(var we=V+1;we--;)if(z[we]===te)return we;return we}function Do(z){return $o(z)?fw(z):Y7(z)}function Nr(z){return $o(z)?pw(z):X7(z)}function Qh(z){for(var te=z.length;te--&&a7.test(z.charAt(te)););return te}var hw=rc(G7);function fw(z){for(var te=Kl.lastIndex=0;Kl.test(z);)++te;return te}function pw(z){return z.match(Kl)||[]}function gw(z){return z.match($7)||[]}var Ln=(function z(te){te=te==null?$t:Ln.defaults($t.Object(),te,Ln.pick($t,N7));var V=te.Array,we=te.Date,De=te.Error,Xe=te.Function,Rt=te.Math,rt=te.Object,sc=te.RegExp,mw=te.String,Ir=te.TypeError,Ua=V.prototype,vw=Xe.prototype,zo=rt.prototype,Va=te["__core-js_shared__"],Za=vw.toString,Qe=zo.hasOwnProperty,bw=0,e1=(function(){var r=/[^.]+$/.exec(Va&&Va.keys&&Va.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})(),qa=zo.toString,ww=Za.call(rt),_w=$t._,yw=sc("^"+Za.call(Qe).replace(Wl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ja=zh?te.Buffer:n,Rn=te.Symbol,Ka=te.Uint8Array,t1=ja?ja.allocUnsafe:n,Ya=Jh(rt.getPrototypeOf,rt),r1=rt.create,n1=zo.propertyIsEnumerable,Xa=Ua.splice,o1=Rn?Rn.isConcatSpreadable:n,Mi=Rn?Rn.iterator:n,ro=Rn?Rn.toStringTag:n,Ja=(function(){try{var r=so(rt,"defineProperty");return r({},"",{}),r}catch{}})(),kw=te.clearTimeout!==$t.clearTimeout&&te.clearTimeout,Ew=we&&we.now!==$t.Date.now&&we.now,Aw=te.setTimeout!==$t.setTimeout&&te.setTimeout,Qa=Rt.ceil,es=Rt.floor,lc=rt.getOwnPropertySymbols,Sw=ja?ja.isBuffer:n,i1=te.isFinite,Mw=Ua.join,xw=Jh(rt.keys,rt),Pt=Rt.max,Ut=Rt.min,Iw=we.now,Cw=te.parseInt,a1=Rt.random,Ow=Ua.reverse,cc=so(te,"DataView"),xi=so(te,"Map"),dc=so(te,"Promise"),No=so(te,"Set"),Ii=so(te,"WeakMap"),Ci=so(rt,"create"),ts=Ii&&new Ii,Bo={},Tw=lo(cc),Lw=lo(xi),Rw=lo(dc),Pw=lo(No),$w=lo(Ii),rs=Rn?Rn.prototype:n,Oi=rs?rs.valueOf:n,s1=rs?rs.toString:n;function M(r){if(_t(r)&&!Fe(r)&&!(r instanceof qe)){if(r instanceof Cr)return r;if(Qe.call(r,"__wrapped__"))return cf(r)}return new Cr(r)}var Ho=(function(){function r(){}return function(o){if(!bt(o))return{};if(r1)return r1(o);r.prototype=o;var c=new r;return r.prototype=n,c}})();function ns(){}function Cr(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=n}M.templateSettings={escape:e7,evaluate:t7,interpolate:gh,variable:"",imports:{_:M}},M.prototype=ns.prototype,M.prototype.constructor=M,Cr.prototype=Ho(ns.prototype),Cr.prototype.constructor=Cr;function qe(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function Dw(){var r=new qe(this.__wrapped__);return r.__actions__=rr(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=rr(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=rr(this.__views__),r}function zw(){if(this.__filtered__){var r=new qe(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Nw(){var r=this.__wrapped__.value(),o=this.__dir__,c=Fe(r),g=o<0,k=c?r.length:0,I=Y8(0,k,this.__views__),R=I.start,$=I.end,H=$-R,ne=g?$:R-1,re=this.__iteratees__,ce=re.length,be=0,ye=Ut(H,this.__takeCount__);if(!c||!g&&k==H&&ye==H)return T1(r,this.__actions__);var Te=[];e:for(;H--&&be<ye;){ne+=o;for(var Ne=-1,Le=r[ne];++Ne<ce;){var nt=re[Ne],je=nt.iteratee,Xt=nt.type,Xr=je(Le);if(Xt==Ce)Le=Xr;else if(!Xr){if(Xt==ee)continue e;break e}}Te[be++]=Le}return Te}qe.prototype=Ho(ns.prototype),qe.prototype.constructor=qe;function no(r){var o=-1,c=r==null?0:r.length;for(this.clear();++o<c;){var g=r[o];this.set(g[0],g[1])}}function Bw(){this.__data__=Ci?Ci(null):{},this.size=0}function Hw(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function Fw(r){var o=this.__data__;if(Ci){var c=o[r];return c===f?n:c}return Qe.call(o,r)?o[r]:n}function Gw(r){var o=this.__data__;return Ci?o[r]!==n:Qe.call(o,r)}function Ww(r,o){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=Ci&&o===n?f:o,this}no.prototype.clear=Bw,no.prototype.delete=Hw,no.prototype.get=Fw,no.prototype.has=Gw,no.prototype.set=Ww;function an(r){var o=-1,c=r==null?0:r.length;for(this.clear();++o<c;){var g=r[o];this.set(g[0],g[1])}}function Uw(){this.__data__=[],this.size=0}function Vw(r){var o=this.__data__,c=os(o,r);return c<0?!1:(c==o.length-1?o.pop():Xa.call(o,c,1),--this.size,!0)}function Zw(r){var o=this.__data__,c=os(o,r);return c<0?n:o[c][1]}function qw(r){return os(this.__data__,r)>-1}function jw(r,o){var c=this.__data__,g=os(c,r);return g<0?(++this.size,c.push([r,o])):c[g][1]=o,this}an.prototype.clear=Uw,an.prototype.delete=Vw,an.prototype.get=Zw,an.prototype.has=qw,an.prototype.set=jw;function sn(r){var o=-1,c=r==null?0:r.length;for(this.clear();++o<c;){var g=r[o];this.set(g[0],g[1])}}function Kw(){this.size=0,this.__data__={hash:new no,map:new(xi||an),string:new no}}function Yw(r){var o=ms(this,r).delete(r);return this.size-=o?1:0,o}function Xw(r){return ms(this,r).get(r)}function Jw(r){return ms(this,r).has(r)}function Qw(r,o){var c=ms(this,r),g=c.size;return c.set(r,o),this.size+=c.size==g?0:1,this}sn.prototype.clear=Kw,sn.prototype.delete=Yw,sn.prototype.get=Xw,sn.prototype.has=Jw,sn.prototype.set=Qw;function oo(r){var o=-1,c=r==null?0:r.length;for(this.__data__=new sn;++o<c;)this.add(r[o])}function e8(r){return this.__data__.set(r,f),this}function t8(r){return this.__data__.has(r)}oo.prototype.add=oo.prototype.push=e8,oo.prototype.has=t8;function Br(r){var o=this.__data__=new an(r);this.size=o.size}function r8(){this.__data__=new an,this.size=0}function n8(r){var o=this.__data__,c=o.delete(r);return this.size=o.size,c}function o8(r){return this.__data__.get(r)}function i8(r){return this.__data__.has(r)}function a8(r,o){var c=this.__data__;if(c instanceof an){var g=c.__data__;if(!xi||g.length<a-1)return g.push([r,o]),this.size=++c.size,this;c=this.__data__=new sn(g)}return c.set(r,o),this.size=c.size,this}Br.prototype.clear=r8,Br.prototype.delete=n8,Br.prototype.get=o8,Br.prototype.has=i8,Br.prototype.set=a8;function l1(r,o){var c=Fe(r),g=!c&&co(r),k=!c&&!g&&Nn(r),I=!c&&!g&&!k&&Uo(r),R=c||g||k||I,$=R?oc(r.length,mw):[],H=$.length;for(var ne in r)(o||Qe.call(r,ne))&&!(R&&(ne=="length"||k&&(ne=="offset"||ne=="parent")||I&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||dn(ne,H)))&&$.push(ne);return $}function c1(r){var o=r.length;return o?r[yc(0,o-1)]:n}function s8(r,o){return vs(rr(r),io(o,0,r.length))}function l8(r){return vs(rr(r))}function uc(r,o,c){(c!==n&&!Fr(r[o],c)||c===n&&!(o in r))&&jr(r,o,c)}function Ti(r,o,c){var g=r[o];(!(Qe.call(r,o)&&Fr(g,c))||c===n&&!(o in r))&&jr(r,o,c)}function os(r,o){for(var c=r.length;c--;)if(Fr(r[c][0],o))return c;return-1}function c8(r,o,c,g){return Pn(r,function(k,I,R){o(g,k,c(k),R)}),g}function d1(r,o){return r&&Yr(o,Dt(o),r)}function d8(r,o){return r&&Yr(o,or(o),r)}function jr(r,o,c){o=="__proto__"&&Ja?Ja(r,o,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[o]=c}function hc(r,o){for(var c=-1,g=o.length,k=V(g),I=r==null;++c<g;)k[c]=I?n:qc(r,o[c]);return k}function io(r,o,c){return r===r&&(c!==n&&(r=r<=c?r:c),o!==n&&(r=r>=o?r:o)),r}function Or(r,o,c,g,k,I){var R,$=o&b,H=o&v,ne=o&m;if(c&&(R=k?c(r,g,k,I):c(r)),R!==n)return R;if(!bt(r))return r;var re=Fe(r);if(re){if(R=J8(r),!$)return rr(r,R)}else{var ce=Vt(r),be=ce==Wt||ce==_;if(Nn(r))return P1(r,$);if(ce==C||ce==Ke||be&&!k){if(R=H||be?{}:Q1(r),!$)return H?F8(r,d8(R,r)):H8(r,d1(R,r))}else{if(!at[ce])return k?r:{};R=Q8(r,ce,$)}}I||(I=new Br);var ye=I.get(r);if(ye)return ye;I.set(r,R),Cf(r)?r.forEach(function(Ne){R.add(Or(Ne,o,c,Ne,r,I))}):xf(r)&&r.forEach(function(Ne,Le){R.set(Le,Or(Ne,o,c,Le,r,I))});var Te=re?n:(ne?H?Lc:Tc:H?or:Dt)(r);return vr(Te||r,function(Ne,Le){Te&&(Le=Ne,Ne=r[Le]),Ti(R,Le,Or(Ne,o,c,Le,r,I))}),R}function u8(r){var o=Dt(r);return function(c){return u1(c,r,o)}}function u1(r,o,c){var g=c.length;if(r==null)return!g;for(r=rt(r);g--;){var k=c[g],I=o[k],R=r[k];if(R===n&&!(k in r)||!I(R))return!1}return!0}function h1(r,o,c){if(typeof r!="function")throw new Ir(l);return Ni(function(){r.apply(n,c)},o)}function Li(r,o,c,g){var k=-1,I=Fa,R=!0,$=r.length,H=[],ne=o.length;if(!$)return H;c&&(o=pt(o,br(c))),g?(I=Jl,R=!1):o.length>=a&&(I=Si,R=!1,o=new oo(o));e:for(;++k<$;){var re=r[k],ce=c==null?re:c(re);if(re=g||re!==0?re:0,R&&ce===ce){for(var be=ne;be--;)if(o[be]===ce)continue e;H.push(re)}else I(o,ce,g)||H.push(re)}return H}var Pn=B1(Kr),f1=B1(pc,!0);function h8(r,o){var c=!0;return Pn(r,function(g,k,I){return c=!!o(g,k,I),c}),c}function is(r,o,c){for(var g=-1,k=r.length;++g<k;){var I=r[g],R=o(I);if(R!=null&&($===n?R===R&&!_r(R):c(R,$)))var $=R,H=I}return H}function f8(r,o,c,g){var k=r.length;for(c=Ge(c),c<0&&(c=-c>k?0:k+c),g=g===n||g>k?k:Ge(g),g<0&&(g+=k),g=c>g?0:Tf(g);c<g;)r[c++]=o;return r}function p1(r,o){var c=[];return Pn(r,function(g,k,I){o(g,k,I)&&c.push(g)}),c}function Ft(r,o,c,g,k){var I=-1,R=r.length;for(c||(c=t_),k||(k=[]);++I<R;){var $=r[I];o>0&&c($)?o>1?Ft($,o-1,c,g,k):On(k,$):g||(k[k.length]=$)}return k}var fc=H1(),g1=H1(!0);function Kr(r,o){return r&&fc(r,o,Dt)}function pc(r,o){return r&&g1(r,o,Dt)}function as(r,o){return Cn(o,function(c){return un(r[c])})}function ao(r,o){o=Dn(o,r);for(var c=0,g=o.length;r!=null&&c<g;)r=r[Hr(o[c++])];return c&&c==g?r:n}function m1(r,o,c){var g=o(r);return Fe(r)?g:On(g,c(r))}function Kt(r){return r==null?r===n?he:O:ro&&ro in rt(r)?K8(r):l_(r)}function gc(r,o){return r>o}function p8(r,o){return r!=null&&Qe.call(r,o)}function g8(r,o){return r!=null&&o in rt(r)}function m8(r,o,c){return r>=Ut(o,c)&&r<Pt(o,c)}function mc(r,o,c){for(var g=c?Jl:Fa,k=r[0].length,I=r.length,R=I,$=V(I),H=1/0,ne=[];R--;){var re=r[R];R&&o&&(re=pt(re,br(o))),H=Ut(re.length,H),$[R]=!c&&(o||k>=120&&re.length>=120)?new oo(R&&re):n}re=r[0];var ce=-1,be=$[0];e:for(;++ce<k&&ne.length<H;){var ye=re[ce],Te=o?o(ye):ye;if(ye=c||ye!==0?ye:0,!(be?Si(be,Te):g(ne,Te,c))){for(R=I;--R;){var Ne=$[R];if(!(Ne?Si(Ne,Te):g(r[R],Te,c)))continue e}be&&be.push(Te),ne.push(ye)}}return ne}function v8(r,o,c,g){return Kr(r,function(k,I,R){o(g,c(k),I,R)}),g}function Ri(r,o,c){o=Dn(o,r),r=nf(r,o);var g=r==null?r:r[Hr(Lr(o))];return g==null?n:mr(g,r,c)}function v1(r){return _t(r)&&Kt(r)==Ke}function b8(r){return _t(r)&&Kt(r)==Ue}function w8(r){return _t(r)&&Kt(r)==ft}function Pi(r,o,c,g,k){return r===o?!0:r==null||o==null||!_t(r)&&!_t(o)?r!==r&&o!==o:_8(r,o,c,g,Pi,k)}function _8(r,o,c,g,k,I){var R=Fe(r),$=Fe(o),H=R?mt:Vt(r),ne=$?mt:Vt(o);H=H==Ke?C:H,ne=ne==Ke?C:ne;var re=H==C,ce=ne==C,be=H==ne;if(be&&Nn(r)){if(!Nn(o))return!1;R=!0,re=!1}if(be&&!re)return I||(I=new Br),R||Uo(r)?Y1(r,o,c,g,k,I):q8(r,o,H,c,g,k,I);if(!(c&E)){var ye=re&&Qe.call(r,"__wrapped__"),Te=ce&&Qe.call(o,"__wrapped__");if(ye||Te){var Ne=ye?r.value():r,Le=Te?o.value():o;return I||(I=new Br),k(Ne,Le,c,g,I)}}return be?(I||(I=new Br),j8(r,o,c,g,k,I)):!1}function y8(r){return _t(r)&&Vt(r)==Q}function vc(r,o,c,g){var k=c.length,I=k,R=!g;if(r==null)return!I;for(r=rt(r);k--;){var $=c[k];if(R&&$[2]?$[1]!==r[$[0]]:!($[0]in r))return!1}for(;++k<I;){$=c[k];var H=$[0],ne=r[H],re=$[1];if(R&&$[2]){if(ne===n&&!(H in r))return!1}else{var ce=new Br;if(g)var be=g(ne,re,H,r,o,ce);if(!(be===n?Pi(re,ne,E|y,g,ce):be))return!1}}return!0}function b1(r){return!bt(r)||n_(r)?!1:(un(r)?yw:g7).test(lo(r))}function k8(r){return _t(r)&&Kt(r)==le}function E8(r){return _t(r)&&Vt(r)==F}function A8(r){return _t(r)&&Es(r.length)&&!!ct[Kt(r)]}function w1(r){return typeof r=="function"?r:r==null?ir:typeof r=="object"?Fe(r)?k1(r[0],r[1]):y1(r):Wf(r)}function bc(r){if(!zi(r))return xw(r);var o=[];for(var c in rt(r))Qe.call(r,c)&&c!="constructor"&&o.push(c);return o}function S8(r){if(!bt(r))return s_(r);var o=zi(r),c=[];for(var g in r)g=="constructor"&&(o||!Qe.call(r,g))||c.push(g);return c}function wc(r,o){return r<o}function _1(r,o){var c=-1,g=nr(r)?V(r.length):[];return Pn(r,function(k,I,R){g[++c]=o(k,I,R)}),g}function y1(r){var o=Pc(r);return o.length==1&&o[0][2]?tf(o[0][0],o[0][1]):function(c){return c===r||vc(c,r,o)}}function k1(r,o){return Dc(r)&&ef(o)?tf(Hr(r),o):function(c){var g=qc(c,r);return g===n&&g===o?jc(c,r):Pi(o,g,E|y)}}function ss(r,o,c,g,k){r!==o&&fc(o,function(I,R){if(k||(k=new Br),bt(I))M8(r,o,R,c,ss,g,k);else{var $=g?g(Nc(r,R),I,R+"",r,o,k):n;$===n&&($=I),uc(r,R,$)}},or)}function M8(r,o,c,g,k,I,R){var $=Nc(r,c),H=Nc(o,c),ne=R.get(H);if(ne){uc(r,c,ne);return}var re=I?I($,H,c+"",r,o,R):n,ce=re===n;if(ce){var be=Fe(H),ye=!be&&Nn(H),Te=!be&&!ye&&Uo(H);re=H,be||ye||Te?Fe($)?re=$:Et($)?re=rr($):ye?(ce=!1,re=P1(H,!0)):Te?(ce=!1,re=$1(H,!0)):re=[]:Bi(H)||co(H)?(re=$,co($)?re=Lf($):(!bt($)||un($))&&(re=Q1(H))):ce=!1}ce&&(R.set(H,re),k(re,H,g,I,R),R.delete(H)),uc(r,c,re)}function E1(r,o){var c=r.length;if(c)return o+=o<0?c:0,dn(o,c)?r[o]:n}function A1(r,o,c){o.length?o=pt(o,function(k){return Fe(k)?function(I){return ao(I,k.length===1?k[0]:k)}:k}):o=[ir];var g=-1;return o=pt(o,br(Re())),ew(_1(r,function(k,I,R){return{criteria:pt(o,function($){return $(k)}),index:++g,value:k}}),function(k,I){return B8(k,I,c)})}function x8(r,o){return S1(r,o,function(c,g){return jc(r,g)})}function S1(r,o,c){for(var g=-1,k=o.length,I={};++g<k;){var R=o[g],$=ao(r,R);c($,R)&&$i(I,Dn(R,r),$)}return I}function I8(r){return function(o){return ao(o,r)}}function _c(r,o,c,g){var k=g?Q7:Po,I=-1,R=o.length,$=r;for(r===o&&(o=rr(o)),c&&($=pt(r,br(c)));++I<R;)for(var H=0,ne=o[I],re=c?c(ne):ne;(H=k($,re,H,g))>-1;)$!==r&&Xa.call($,H,1),Xa.call(r,H,1);return r}function M1(r,o){for(var c=r?o.length:0,g=c-1;c--;){var k=o[c];if(c==g||k!==I){var I=k;dn(k)?Xa.call(r,k,1):Ac(r,k)}}return r}function yc(r,o){return r+es(a1()*(o-r+1))}function C8(r,o,c,g){for(var k=-1,I=Pt(Qa((o-r)/(c||1)),0),R=V(I);I--;)R[g?I:++k]=r,r+=c;return R}function kc(r,o){var c="";if(!r||o<1||o>ae)return c;do o%2&&(c+=r),o=es(o/2),o&&(r+=r);while(o);return c}function Ze(r,o){return Bc(rf(r,o,ir),r+"")}function O8(r){return c1(Vo(r))}function T8(r,o){var c=Vo(r);return vs(c,io(o,0,c.length))}function $i(r,o,c,g){if(!bt(r))return r;o=Dn(o,r);for(var k=-1,I=o.length,R=I-1,$=r;$!=null&&++k<I;){var H=Hr(o[k]),ne=c;if(H==="__proto__"||H==="constructor"||H==="prototype")return r;if(k!=R){var re=$[H];ne=g?g(re,H,$):n,ne===n&&(ne=bt(re)?re:dn(o[k+1])?[]:{})}Ti($,H,ne),$=$[H]}return r}var x1=ts?function(r,o){return ts.set(r,o),r}:ir,L8=Ja?function(r,o){return Ja(r,"toString",{configurable:!0,enumerable:!1,value:Yc(o),writable:!0})}:ir;function R8(r){return vs(Vo(r))}function Tr(r,o,c){var g=-1,k=r.length;o<0&&(o=-o>k?0:k+o),c=c>k?k:c,c<0&&(c+=k),k=o>c?0:c-o>>>0,o>>>=0;for(var I=V(k);++g<k;)I[g]=r[g+o];return I}function P8(r,o){var c;return Pn(r,function(g,k,I){return c=o(g,k,I),!c}),!!c}function ls(r,o,c){var g=0,k=r==null?g:r.length;if(typeof o=="number"&&o===o&&k<=me){for(;g<k;){var I=g+k>>>1,R=r[I];R!==null&&!_r(R)&&(c?R<=o:R<o)?g=I+1:k=I}return k}return Ec(r,o,ir,c)}function Ec(r,o,c,g){var k=0,I=r==null?0:r.length;if(I===0)return 0;o=c(o);for(var R=o!==o,$=o===null,H=_r(o),ne=o===n;k<I;){var re=es((k+I)/2),ce=c(r[re]),be=ce!==n,ye=ce===null,Te=ce===ce,Ne=_r(ce);if(R)var Le=g||Te;else ne?Le=Te&&(g||be):$?Le=Te&&be&&(g||!ye):H?Le=Te&&be&&!ye&&(g||!Ne):ye||Ne?Le=!1:Le=g?ce<=o:ce<o;Le?k=re+1:I=re}return Ut(I,Se)}function I1(r,o){for(var c=-1,g=r.length,k=0,I=[];++c<g;){var R=r[c],$=o?o(R):R;if(!c||!Fr($,H)){var H=$;I[k++]=R===0?0:R}}return I}function C1(r){return typeof r=="number"?r:_r(r)?U:+r}function wr(r){if(typeof r=="string")return r;if(Fe(r))return pt(r,wr)+"";if(_r(r))return s1?s1.call(r):"";var o=r+"";return o=="0"&&1/r==-Oe?"-0":o}function $n(r,o,c){var g=-1,k=Fa,I=r.length,R=!0,$=[],H=$;if(c)R=!1,k=Jl;else if(I>=a){var ne=o?null:V8(r);if(ne)return Wa(ne);R=!1,k=Si,H=new oo}else H=o?[]:$;e:for(;++g<I;){var re=r[g],ce=o?o(re):re;if(re=c||re!==0?re:0,R&&ce===ce){for(var be=H.length;be--;)if(H[be]===ce)continue e;o&&H.push(ce),$.push(re)}else k(H,ce,c)||(H!==$&&H.push(ce),$.push(re))}return $}function Ac(r,o){o=Dn(o,r);var c=-1,g=o.length;if(!g)return!0;for(;++c<g;){var k=Hr(o[c]);if(k==="__proto__"&&!Qe.call(r,"__proto__")||(k==="constructor"||k==="prototype")&&c<g-1)return!1}var I=nf(r,o);return I==null||delete I[Hr(Lr(o))]}function O1(r,o,c,g){return $i(r,o,c(ao(r,o)),g)}function cs(r,o,c,g){for(var k=r.length,I=g?k:-1;(g?I--:++I<k)&&o(r[I],I,r););return c?Tr(r,g?0:I,g?I+1:k):Tr(r,g?I+1:0,g?k:I)}function T1(r,o){var c=r;return c instanceof qe&&(c=c.value()),Ql(o,function(g,k){return k.func.apply(k.thisArg,On([g],k.args))},c)}function Sc(r,o,c){var g=r.length;if(g<2)return g?$n(r[0]):[];for(var k=-1,I=V(g);++k<g;)for(var R=r[k],$=-1;++$<g;)$!=k&&(I[k]=Li(I[k]||R,r[$],o,c));return $n(Ft(I,1),o,c)}function L1(r,o,c){for(var g=-1,k=r.length,I=o.length,R={};++g<k;){var $=g<I?o[g]:n;c(R,r[g],$)}return R}function Mc(r){return Et(r)?r:[]}function xc(r){return typeof r=="function"?r:ir}function Dn(r,o){return Fe(r)?r:Dc(r,o)?[r]:lf(et(r))}var $8=Ze;function zn(r,o,c){var g=r.length;return c=c===n?g:c,!o&&c>=g?r:Tr(r,o,c)}var R1=kw||function(r){return $t.clearTimeout(r)};function P1(r,o){if(o)return r.slice();var c=r.length,g=t1?t1(c):new r.constructor(c);return r.copy(g),g}function Ic(r){var o=new r.constructor(r.byteLength);return new Ka(o).set(new Ka(r)),o}function D8(r,o){var c=o?Ic(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function z8(r){var o=new r.constructor(r.source,vh.exec(r));return o.lastIndex=r.lastIndex,o}function N8(r){return Oi?rt(Oi.call(r)):{}}function $1(r,o){var c=o?Ic(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function D1(r,o){if(r!==o){var c=r!==n,g=r===null,k=r===r,I=_r(r),R=o!==n,$=o===null,H=o===o,ne=_r(o);if(!$&&!ne&&!I&&r>o||I&&R&&H&&!$&&!ne||g&&R&&H||!c&&H||!k)return 1;if(!g&&!I&&!ne&&r<o||ne&&c&&k&&!g&&!I||$&&c&&k||!R&&k||!H)return-1}return 0}function B8(r,o,c){for(var g=-1,k=r.criteria,I=o.criteria,R=k.length,$=c.length;++g<R;){var H=D1(k[g],I[g]);if(H)return g>=$?H:H*(c[g]=="desc"?-1:1)}return r.index-o.index}function z1(r,o,c,g){for(var k=-1,I=r.length,R=c.length,$=-1,H=o.length,ne=Pt(I-R,0),re=V(H+ne),ce=!g;++$<H;)re[$]=o[$];for(;++k<R;)(ce||k<I)&&(re[c[k]]=r[k]);for(;ne--;)re[$++]=r[k++];return re}function N1(r,o,c,g){for(var k=-1,I=r.length,R=-1,$=c.length,H=-1,ne=o.length,re=Pt(I-$,0),ce=V(re+ne),be=!g;++k<re;)ce[k]=r[k];for(var ye=k;++H<ne;)ce[ye+H]=o[H];for(;++R<$;)(be||k<I)&&(ce[ye+c[R]]=r[k++]);return ce}function rr(r,o){var c=-1,g=r.length;for(o||(o=V(g));++c<g;)o[c]=r[c];return o}function Yr(r,o,c,g){var k=!c;c||(c={});for(var I=-1,R=o.length;++I<R;){var $=o[I],H=g?g(c[$],r[$],$,c,r):n;H===n&&(H=r[$]),k?jr(c,$,H):Ti(c,$,H)}return c}function H8(r,o){return Yr(r,$c(r),o)}function F8(r,o){return Yr(r,X1(r),o)}function ds(r,o){return function(c,g){var k=Fe(c)?q7:c8,I=o?o():{};return k(c,r,Re(g,2),I)}}function Fo(r){return Ze(function(o,c){var g=-1,k=c.length,I=k>1?c[k-1]:n,R=k>2?c[2]:n;for(I=r.length>3&&typeof I=="function"?(k--,I):n,R&&Yt(c[0],c[1],R)&&(I=k<3?n:I,k=1),o=rt(o);++g<k;){var $=c[g];$&&r(o,$,g,I)}return o})}function B1(r,o){return function(c,g){if(c==null)return c;if(!nr(c))return r(c,g);for(var k=c.length,I=o?k:-1,R=rt(c);(o?I--:++I<k)&&g(R[I],I,R)!==!1;);return c}}function H1(r){return function(o,c,g){for(var k=-1,I=rt(o),R=g(o),$=R.length;$--;){var H=R[r?$:++k];if(c(I[H],H,I)===!1)break}return o}}function G8(r,o,c){var g=o&A,k=Di(r);function I(){return(this&&this!==$t&&this instanceof I?k:r).apply(g?c:this,arguments)}return I}function F1(r){return function(o){o=et(o);var c=$o(o)?Nr(o):n,g=c?c[0]:o.charAt(0),k=c?zn(c,1).join(""):o.slice(1);return g[r]()+k}}function Go(r){return function(o){return Ql(Ff(Hf(o).replace(R7,"")),r,"")}}function Di(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var c=Ho(r.prototype),g=r.apply(c,o);return bt(g)?g:c}}function W8(r,o,c){var g=Di(r);function k(){for(var I=arguments.length,R=V(I),$=I,H=Wo(k);$--;)R[$]=arguments[$];var ne=I<3&&R[0]!==H&&R[I-1]!==H?[]:Tn(R,H);return I-=ne.length,I<c?Z1(r,o,us,k.placeholder,n,R,ne,n,n,c-I):mr(this&&this!==$t&&this instanceof k?g:r,this,R)}return k}function G1(r){return function(o,c,g){var k=rt(o);if(!nr(o)){var I=Re(c,3);o=Dt(o),c=function($){return I(k[$],$,k)}}var R=r(o,c,g);return R>-1?k[I?o[R]:R]:n}}function W1(r){return cn(function(o){var c=o.length,g=c,k=Cr.prototype.thru;for(r&&o.reverse();g--;){var I=o[g];if(typeof I!="function")throw new Ir(l);if(k&&!R&&gs(I)=="wrapper")var R=new Cr([],!0)}for(g=R?g:c;++g<c;){I=o[g];var $=gs(I),H=$=="wrapper"?Rc(I):n;H&&zc(H[0])&&H[1]==(ie|T|Y|W)&&!H[4].length&&H[9]==1?R=R[gs(H[0])].apply(R,H[3]):R=I.length==1&&zc(I)?R[$]():R.thru(I)}return function(){var ne=arguments,re=ne[0];if(R&&ne.length==1&&Fe(re))return R.plant(re).value();for(var ce=0,be=c?o[ce].apply(this,ne):re;++ce<c;)be=o[ce].call(this,be);return be}})}function us(r,o,c,g,k,I,R,$,H,ne){var re=o&ie,ce=o&A,be=o&x,ye=o&(T|N),Te=o&ge,Ne=be?n:Di(r);function Le(){for(var nt=arguments.length,je=V(nt),Xt=nt;Xt--;)je[Xt]=arguments[Xt];if(ye)var Xr=Wo(Le),Bn=rw(je,Xr);if(g&&(je=z1(je,g,k,ye)),I&&(je=N1(je,I,R,ye)),nt-=Bn,ye&&nt<ne){var At=Tn(je,Xr);return Z1(r,o,us,Le.placeholder,c,je,At,$,H,ne-nt)}var Gr=ce?c:this,fn=be?Gr[r]:r;return nt=je.length,$?je=c_(je,$):Te&&nt>1&&je.reverse(),re&&H<nt&&(je.length=H),this&&this!==$t&&this instanceof Le&&(fn=Ne||Di(fn)),fn.apply(Gr,je)}return Le}function U1(r,o){return function(c,g){return v8(c,r,o(g),{})}}function hs(r,o){return function(c,g){var k;if(c===n&&g===n)return o;if(c!==n&&(k=c),g!==n){if(k===n)return g;typeof c=="string"||typeof g=="string"?(c=wr(c),g=wr(g)):(c=C1(c),g=C1(g)),k=r(c,g)}return k}}function Cc(r){return cn(function(o){return o=pt(o,br(Re())),Ze(function(c){var g=this;return r(o,function(k){return mr(k,g,c)})})})}function fs(r,o){o=o===n?" ":wr(o);var c=o.length;if(c<2)return c?kc(o,r):o;var g=kc(o,Qa(r/Do(o)));return $o(o)?zn(Nr(g),0,r).join(""):g.slice(0,r)}function U8(r,o,c,g){var k=o&A,I=Di(r);function R(){for(var $=-1,H=arguments.length,ne=-1,re=g.length,ce=V(re+H),be=this&&this!==$t&&this instanceof R?I:r;++ne<re;)ce[ne]=g[ne];for(;H--;)ce[ne++]=arguments[++$];return mr(be,k?c:this,ce)}return R}function V1(r){return function(o,c,g){return g&&typeof g!="number"&&Yt(o,c,g)&&(c=g=n),o=hn(o),c===n?(c=o,o=0):c=hn(c),g=g===n?o<c?1:-1:hn(g),C8(o,c,g,r)}}function ps(r){return function(o,c){return typeof o=="string"&&typeof c=="string"||(o=Rr(o),c=Rr(c)),r(o,c)}}function Z1(r,o,c,g,k,I,R,$,H,ne){var re=o&T,ce=re?R:n,be=re?n:R,ye=re?I:n,Te=re?n:I;o|=re?Y:q,o&=~(re?q:Y),o&L||(o&=~(A|x));var Ne=[r,o,k,ye,ce,Te,be,$,H,ne],Le=c.apply(n,Ne);return zc(r)&&of(Le,Ne),Le.placeholder=g,af(Le,r,o)}function Oc(r){var o=Rt[r];return function(c,g){if(c=Rr(c),g=g==null?0:Ut(Ge(g),292),g&&i1(c)){var k=(et(c)+"e").split("e");return k=(et(o(k[0]+"e"+(+k[1]+g)))+"e").split("e"),+(k[0]+"e"+(+k[1]-g))}return o(c)}}var V8=No&&1/Wa(new No([,-0]))[1]==Oe?function(r){return new No(r)}:Qc;function q1(r){return function(o){var c=Vt(o);return c==Q?ac(o):c==F?cw(o):tw(o,r(o))}}function ln(r,o,c,g,k,I,R,$){var H=o&x;if(!H&&typeof r!="function")throw new Ir(l);var ne=g?g.length:0;if(ne||(o&=~(Y|q),g=k=n),R=R===n?R:Pt(Ge(R),0),$=$===n?$:Ge($),ne-=k?k.length:0,o&q){var re=g,ce=k;g=k=n}var be=H?n:Rc(r),ye=[r,o,c,g,k,re,ce,I,R,$];if(be&&a_(ye,be),r=ye[0],o=ye[1],c=ye[2],g=ye[3],k=ye[4],$=ye[9]=ye[9]===n?H?0:r.length:Pt(ye[9]-ne,0),!$&&o&(T|N)&&(o&=~(T|N)),!o||o==A)var Te=G8(r,o,c);else o==T||o==N?Te=W8(r,o,$):(o==Y||o==(A|Y))&&!k.length?Te=U8(r,o,c,g):Te=us.apply(n,ye);return af((be?x1:of)(Te,ye),r,o)}function j1(r,o,c,g){return r===n||Fr(r,zo[c])&&!Qe.call(g,c)?o:r}function K1(r,o,c,g,k,I){return bt(r)&&bt(o)&&(I.set(o,r),ss(r,o,n,K1,I),I.delete(o)),r}function Z8(r){return Bi(r)?n:r}function Y1(r,o,c,g,k,I){var R=c&E,$=r.length,H=o.length;if($!=H&&!(R&&H>$))return!1;var ne=I.get(r),re=I.get(o);if(ne&&re)return ne==o&&re==r;var ce=-1,be=!0,ye=c&y?new oo:n;for(I.set(r,o),I.set(o,r);++ce<$;){var Te=r[ce],Ne=o[ce];if(g)var Le=R?g(Ne,Te,ce,o,r,I):g(Te,Ne,ce,r,o,I);if(Le!==n){if(Le)continue;be=!1;break}if(ye){if(!ec(o,function(nt,je){if(!Si(ye,je)&&(Te===nt||k(Te,nt,c,g,I)))return ye.push(je)})){be=!1;break}}else if(!(Te===Ne||k(Te,Ne,c,g,I))){be=!1;break}}return I.delete(r),I.delete(o),be}function q8(r,o,c,g,k,I,R){switch(c){case Lt:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case Ue:return!(r.byteLength!=o.byteLength||!I(new Ka(r),new Ka(o)));case We:case ft:case Z:return Fr(+r,+o);case jt:return r.name==o.name&&r.message==o.message;case le:case ue:return r==o+"";case Q:var $=ac;case F:var H=g&E;if($||($=Wa),r.size!=o.size&&!H)return!1;var ne=R.get(r);if(ne)return ne==o;g|=y,R.set(r,o);var re=Y1($(r),$(o),g,k,I,R);return R.delete(r),re;case ve:if(Oi)return Oi.call(r)==Oi.call(o)}return!1}function j8(r,o,c,g,k,I){var R=c&E,$=Tc(r),H=$.length;if(H!=Tc(o).length&&!R)return!1;for(var ne=H;ne--;){var re=$[ne];if(!(R?re in o:Qe.call(o,re)))return!1}var ce=I.get(r),be=I.get(o);if(ce&&be)return ce==o&&be==r;var ye=!0;I.set(r,o),I.set(o,r);for(var Te=R;++ne<H;){re=$[ne];var Ne=r[re],Le=o[re];if(g)var nt=R?g(Le,Ne,re,o,r,I):g(Ne,Le,re,r,o,I);if(!(nt===n?Ne===Le||k(Ne,Le,c,g,I):nt)){ye=!1;break}Te||(Te=re=="constructor")}if(ye&&!Te){var je=r.constructor,Xt=o.constructor;je!=Xt&&"constructor"in r&&"constructor"in o&&!(typeof je=="function"&&je instanceof je&&typeof Xt=="function"&&Xt instanceof Xt)&&(ye=!1)}return I.delete(r),I.delete(o),ye}function cn(r){return Bc(rf(r,n,hf),r+"")}function Tc(r){return m1(r,Dt,$c)}function Lc(r){return m1(r,or,X1)}var Rc=ts?function(r){return ts.get(r)}:Qc;function gs(r){for(var o=r.name+"",c=Bo[o],g=Qe.call(Bo,o)?c.length:0;g--;){var k=c[g],I=k.func;if(I==null||I==r)return k.name}return o}function Wo(r){return(Qe.call(M,"placeholder")?M:r).placeholder}function Re(){var r=M.iteratee||Xc;return r=r===Xc?w1:r,arguments.length?r(arguments[0],arguments[1]):r}function ms(r,o){var c=r.__data__;return r_(o)?c[typeof o=="string"?"string":"hash"]:c.map}function Pc(r){for(var o=Dt(r),c=o.length;c--;){var g=o[c],k=r[g];o[c]=[g,k,ef(k)]}return o}function so(r,o){var c=aw(r,o);return b1(c)?c:n}function K8(r){var o=Qe.call(r,ro),c=r[ro];try{r[ro]=n;var g=!0}catch{}var k=qa.call(r);return g&&(o?r[ro]=c:delete r[ro]),k}var $c=lc?function(r){return r==null?[]:(r=rt(r),Cn(lc(r),function(o){return n1.call(r,o)}))}:ed,X1=lc?function(r){for(var o=[];r;)On(o,$c(r)),r=Ya(r);return o}:ed,Vt=Kt;(cc&&Vt(new cc(new ArrayBuffer(1)))!=Lt||xi&&Vt(new xi)!=Q||dc&&Vt(dc.resolve())!=B||No&&Vt(new No)!=F||Ii&&Vt(new Ii)!=Ae)&&(Vt=function(r){var o=Kt(r),c=o==C?r.constructor:n,g=c?lo(c):"";if(g)switch(g){case Tw:return Lt;case Lw:return Q;case Rw:return B;case Pw:return F;case $w:return Ae}return o});function Y8(r,o,c){for(var g=-1,k=c.length;++g<k;){var I=c[g],R=I.size;switch(I.type){case"drop":r+=R;break;case"dropRight":o-=R;break;case"take":o=Ut(o,r+R);break;case"takeRight":r=Pt(r,o-R);break}}return{start:r,end:o}}function X8(r){var o=r.match(l7);return o?o[1].split(c7):[]}function J1(r,o,c){o=Dn(o,r);for(var g=-1,k=o.length,I=!1;++g<k;){var R=Hr(o[g]);if(!(I=r!=null&&c(r,R)))break;r=r[R]}return I||++g!=k?I:(k=r==null?0:r.length,!!k&&Es(k)&&dn(R,k)&&(Fe(r)||co(r)))}function J8(r){var o=r.length,c=new r.constructor(o);return o&&typeof r[0]=="string"&&Qe.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function Q1(r){return typeof r.constructor=="function"&&!zi(r)?Ho(Ya(r)):{}}function Q8(r,o,c){var g=r.constructor;switch(o){case Ue:return Ic(r);case We:case ft:return new g(+r);case Lt:return D8(r,c);case nn:case tr:case on:case lt:case xn:case Qn:case gr:case Lo:case Ai:return $1(r,c);case Q:return new g;case Z:case ue:return new g(r);case le:return z8(r);case F:return new g;case ve:return N8(r)}}function e_(r,o){var c=o.length;if(!c)return r;var g=c-1;return o[g]=(c>1?"& ":"")+o[g],o=o.join(c>2?", ":" "),r.replace(s7,`{
/* [wrapped with `+o+`] */
`)}function t_(r){return Fe(r)||co(r)||!!(o1&&r&&r[o1])}function dn(r,o){var c=typeof r;return o=o??ae,!!o&&(c=="number"||c!="symbol"&&v7.test(r))&&r>-1&&r%1==0&&r<o}function Yt(r,o,c){if(!bt(c))return!1;var g=typeof o;return(g=="number"?nr(c)&&dn(o,c.length):g=="string"&&o in c)?Fr(c[o],r):!1}function Dc(r,o){if(Fe(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||_r(r)?!0:n7.test(r)||!r7.test(r)||o!=null&&r in rt(o)}function r_(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function zc(r){var o=gs(r),c=M[o];if(typeof c!="function"||!(o in qe.prototype))return!1;if(r===c)return!0;var g=Rc(c);return!!g&&r===g[0]}function n_(r){return!!e1&&e1 in r}var o_=Va?un:td;function zi(r){var o=r&&r.constructor;return r===(typeof o=="function"&&o.prototype||zo)}function ef(r){return r===r&&!bt(r)}function tf(r,o){return function(c){return c==null?!1:c[r]===o&&(o!==n||r in rt(c))}}function i_(r){var o=ys(r,function(g){return c.size===p&&c.clear(),g}),c=o.cache;return o}function a_(r,o){var c=r[1],g=o[1],k=c|g,I=k<(A|x|ie),R=g==ie&&c==T||g==ie&&c==W&&r[7].length<=o[8]||g==(ie|W)&&o[7].length<=o[8]&&c==T;if(!(I||R))return r;g&A&&(r[2]=o[2],k|=c&A?0:L);var $=o[3];if($){var H=r[3];r[3]=H?z1(H,$,o[4]):$,r[4]=H?Tn(r[3],w):o[4]}return $=o[5],$&&(H=r[5],r[5]=H?N1(H,$,o[6]):$,r[6]=H?Tn(r[5],w):o[6]),$=o[7],$&&(r[7]=$),g&ie&&(r[8]=r[8]==null?o[8]:Ut(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=k,r}function s_(r){var o=[];if(r!=null)for(var c in rt(r))o.push(c);return o}function l_(r){return qa.call(r)}function rf(r,o,c){return o=Pt(o===n?r.length-1:o,0),function(){for(var g=arguments,k=-1,I=Pt(g.length-o,0),R=V(I);++k<I;)R[k]=g[o+k];k=-1;for(var $=V(o+1);++k<o;)$[k]=g[k];return $[o]=c(R),mr(r,this,$)}}function nf(r,o){return o.length<2?r:ao(r,Tr(o,0,-1))}function c_(r,o){for(var c=r.length,g=Ut(o.length,c),k=rr(r);g--;){var I=o[g];r[g]=dn(I,c)?k[I]:n}return r}function Nc(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var of=sf(x1),Ni=Aw||function(r,o){return $t.setTimeout(r,o)},Bc=sf(L8);function af(r,o,c){var g=o+"";return Bc(r,e_(g,d_(X8(g),c)))}function sf(r){var o=0,c=0;return function(){var g=Iw(),k=S-(g-c);if(c=g,k>0){if(++o>=J)return arguments[0]}else o=0;return r.apply(n,arguments)}}function vs(r,o){var c=-1,g=r.length,k=g-1;for(o=o===n?g:o;++c<o;){var I=yc(c,k),R=r[I];r[I]=r[c],r[c]=R}return r.length=o,r}var lf=i_(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(o7,function(c,g,k,I){o.push(k?I.replace(u7,"$1"):g||c)}),o});function Hr(r){if(typeof r=="string"||_r(r))return r;var o=r+"";return o=="0"&&1/r==-Oe?"-0":o}function lo(r){if(r!=null){try{return Za.call(r)}catch{}try{return r+""}catch{}}return""}function d_(r,o){return vr(pe,function(c){var g="_."+c[0];o&c[1]&&!Fa(r,g)&&r.push(g)}),r.sort()}function cf(r){if(r instanceof qe)return r.clone();var o=new Cr(r.__wrapped__,r.__chain__);return o.__actions__=rr(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function u_(r,o,c){(c?Yt(r,o,c):o===n)?o=1:o=Pt(Ge(o),0);var g=r==null?0:r.length;if(!g||o<1)return[];for(var k=0,I=0,R=V(Qa(g/o));k<g;)R[I++]=Tr(r,k,k+=o);return R}function h_(r){for(var o=-1,c=r==null?0:r.length,g=0,k=[];++o<c;){var I=r[o];I&&(k[g++]=I)}return k}function f_(){var r=arguments.length;if(!r)return[];for(var o=V(r-1),c=arguments[0],g=r;g--;)o[g-1]=arguments[g];return On(Fe(c)?rr(c):[c],Ft(o,1))}var p_=Ze(function(r,o){return Et(r)?Li(r,Ft(o,1,Et,!0)):[]}),g_=Ze(function(r,o){var c=Lr(o);return Et(c)&&(c=n),Et(r)?Li(r,Ft(o,1,Et,!0),Re(c,2)):[]}),m_=Ze(function(r,o){var c=Lr(o);return Et(c)&&(c=n),Et(r)?Li(r,Ft(o,1,Et,!0),n,c):[]});function v_(r,o,c){var g=r==null?0:r.length;return g?(o=c||o===n?1:Ge(o),Tr(r,o<0?0:o,g)):[]}function b_(r,o,c){var g=r==null?0:r.length;return g?(o=c||o===n?1:Ge(o),o=g-o,Tr(r,0,o<0?0:o)):[]}function w_(r,o){return r&&r.length?cs(r,Re(o,3),!0,!0):[]}function __(r,o){return r&&r.length?cs(r,Re(o,3),!0):[]}function y_(r,o,c,g){var k=r==null?0:r.length;return k?(c&&typeof c!="number"&&Yt(r,o,c)&&(c=0,g=k),f8(r,o,c,g)):[]}function df(r,o,c){var g=r==null?0:r.length;if(!g)return-1;var k=c==null?0:Ge(c);return k<0&&(k=Pt(g+k,0)),Ga(r,Re(o,3),k)}function uf(r,o,c){var g=r==null?0:r.length;if(!g)return-1;var k=g-1;return c!==n&&(k=Ge(c),k=c<0?Pt(g+k,0):Ut(k,g-1)),Ga(r,Re(o,3),k,!0)}function hf(r){return r!=null&&r.length?Ft(r,1):[]}function k_(r){return r!=null&&r.length?Ft(r,Oe):[]}function E_(r,o){return r!=null&&r.length?(o=o===n?1:Ge(o),Ft(r,o)):[]}function A_(r){for(var o=-1,c=r==null?0:r.length,g={};++o<c;){var k=r[o];jr(g,k[0],k[1])}return g}function ff(r){return r&&r.length?r[0]:n}function S_(r,o,c){var g=r==null?0:r.length;if(!g)return-1;var k=c==null?0:Ge(c);return k<0&&(k=Pt(g+k,0)),Po(r,o,k)}function M_(r){return r!=null&&r.length?Tr(r,0,-1):[]}var x_=Ze(function(r){var o=pt(r,Mc);return o.length&&o[0]===r[0]?mc(o):[]}),I_=Ze(function(r){var o=Lr(r),c=pt(r,Mc);return o===Lr(c)?o=n:c.pop(),c.length&&c[0]===r[0]?mc(c,Re(o,2)):[]}),C_=Ze(function(r){var o=Lr(r),c=pt(r,Mc);return o=typeof o=="function"?o:n,o&&c.pop(),c.length&&c[0]===r[0]?mc(c,n,o):[]});function O_(r,o){return r==null?"":Mw.call(r,o)}function Lr(r){var o=r==null?0:r.length;return o?r[o-1]:n}function T_(r,o,c){var g=r==null?0:r.length;if(!g)return-1;var k=g;return c!==n&&(k=Ge(c),k=k<0?Pt(g+k,0):Ut(k,g-1)),o===o?uw(r,o,k):Ga(r,Zh,k,!0)}function L_(r,o){return r&&r.length?E1(r,Ge(o)):n}var R_=Ze(pf);function pf(r,o){return r&&r.length&&o&&o.length?_c(r,o):r}function P_(r,o,c){return r&&r.length&&o&&o.length?_c(r,o,Re(c,2)):r}function $_(r,o,c){return r&&r.length&&o&&o.length?_c(r,o,n,c):r}var D_=cn(function(r,o){var c=r==null?0:r.length,g=hc(r,o);return M1(r,pt(o,function(k){return dn(k,c)?+k:k}).sort(D1)),g});function z_(r,o){var c=[];if(!(r&&r.length))return c;var g=-1,k=[],I=r.length;for(o=Re(o,3);++g<I;){var R=r[g];o(R,g,r)&&(c.push(R),k.push(g))}return M1(r,k),c}function Hc(r){return r==null?r:Ow.call(r)}function N_(r,o,c){var g=r==null?0:r.length;return g?(c&&typeof c!="number"&&Yt(r,o,c)?(o=0,c=g):(o=o==null?0:Ge(o),c=c===n?g:Ge(c)),Tr(r,o,c)):[]}function B_(r,o){return ls(r,o)}function H_(r,o,c){return Ec(r,o,Re(c,2))}function F_(r,o){var c=r==null?0:r.length;if(c){var g=ls(r,o);if(g<c&&Fr(r[g],o))return g}return-1}function G_(r,o){return ls(r,o,!0)}function W_(r,o,c){return Ec(r,o,Re(c,2),!0)}function U_(r,o){if(r!=null&&r.length){var c=ls(r,o,!0)-1;if(Fr(r[c],o))return c}return-1}function V_(r){return r&&r.length?I1(r):[]}function Z_(r,o){return r&&r.length?I1(r,Re(o,2)):[]}function q_(r){var o=r==null?0:r.length;return o?Tr(r,1,o):[]}function j_(r,o,c){return r&&r.length?(o=c||o===n?1:Ge(o),Tr(r,0,o<0?0:o)):[]}function K_(r,o,c){var g=r==null?0:r.length;return g?(o=c||o===n?1:Ge(o),o=g-o,Tr(r,o<0?0:o,g)):[]}function Y_(r,o){return r&&r.length?cs(r,Re(o,3),!1,!0):[]}function X_(r,o){return r&&r.length?cs(r,Re(o,3)):[]}var J_=Ze(function(r){return $n(Ft(r,1,Et,!0))}),Q_=Ze(function(r){var o=Lr(r);return Et(o)&&(o=n),$n(Ft(r,1,Et,!0),Re(o,2))}),ey=Ze(function(r){var o=Lr(r);return o=typeof o=="function"?o:n,$n(Ft(r,1,Et,!0),n,o)});function ty(r){return r&&r.length?$n(r):[]}function ry(r,o){return r&&r.length?$n(r,Re(o,2)):[]}function ny(r,o){return o=typeof o=="function"?o:n,r&&r.length?$n(r,n,o):[]}function Fc(r){if(!(r&&r.length))return[];var o=0;return r=Cn(r,function(c){if(Et(c))return o=Pt(c.length,o),!0}),oc(o,function(c){return pt(r,tc(c))})}function gf(r,o){if(!(r&&r.length))return[];var c=Fc(r);return o==null?c:pt(c,function(g){return mr(o,n,g)})}var oy=Ze(function(r,o){return Et(r)?Li(r,o):[]}),iy=Ze(function(r){return Sc(Cn(r,Et))}),ay=Ze(function(r){var o=Lr(r);return Et(o)&&(o=n),Sc(Cn(r,Et),Re(o,2))}),sy=Ze(function(r){var o=Lr(r);return o=typeof o=="function"?o:n,Sc(Cn(r,Et),n,o)}),ly=Ze(Fc);function cy(r,o){return L1(r||[],o||[],Ti)}function dy(r,o){return L1(r||[],o||[],$i)}var uy=Ze(function(r){var o=r.length,c=o>1?r[o-1]:n;return c=typeof c=="function"?(r.pop(),c):n,gf(r,c)});function mf(r){var o=M(r);return o.__chain__=!0,o}function hy(r,o){return o(r),r}function bs(r,o){return o(r)}var fy=cn(function(r){var o=r.length,c=o?r[0]:0,g=this.__wrapped__,k=function(I){return hc(I,r)};return o>1||this.__actions__.length||!(g instanceof qe)||!dn(c)?this.thru(k):(g=g.slice(c,+c+(o?1:0)),g.__actions__.push({func:bs,args:[k],thisArg:n}),new Cr(g,this.__chain__).thru(function(I){return o&&!I.length&&I.push(n),I}))});function py(){return mf(this)}function gy(){return new Cr(this.value(),this.__chain__)}function my(){this.__values__===n&&(this.__values__=Of(this.value()));var r=this.__index__>=this.__values__.length;return{done:r,value:r?n:this.__values__[this.__index__++]}}function vy(){return this}function by(r){for(var o,c=this;c instanceof ns;){var g=cf(c);g.__index__=0,g.__values__=n,o?k.__wrapped__=g:o=g;var k=g;c=c.__wrapped__}return k.__wrapped__=r,o}function wy(){var r=this.__wrapped__;if(r instanceof qe){var o=r;return this.__actions__.length&&(o=new qe(this)),o=o.reverse(),o.__actions__.push({func:bs,args:[Hc],thisArg:n}),new Cr(o,this.__chain__)}return this.thru(Hc)}function _y(){return T1(this.__wrapped__,this.__actions__)}var yy=ds(function(r,o,c){Qe.call(r,c)?++r[c]:jr(r,c,1)});function ky(r,o,c){var g=Fe(r)?Uh:h8;return c&&Yt(r,o,c)&&(o=n),g(r,Re(o,3))}function Ey(r,o){return(Fe(r)?Cn:p1)(r,Re(o,3))}var Ay=G1(df),Sy=G1(uf);function My(r,o){return Ft(ws(r,o),1)}function xy(r,o){return Ft(ws(r,o),Oe)}function Iy(r,o,c){return c=c===n?1:Ge(c),Ft(ws(r,o),c)}function vf(r,o){return(Fe(r)?vr:Pn)(r,Re(o,3))}function bf(r,o){return(Fe(r)?j7:f1)(r,Re(o,3))}var Cy=ds(function(r,o,c){Qe.call(r,c)?r[c].push(o):jr(r,c,[o])});function Oy(r,o,c,g){r=nr(r)?r:Vo(r),c=c&&!g?Ge(c):0;var k=r.length;return c<0&&(c=Pt(k+c,0)),As(r)?c<=k&&r.indexOf(o,c)>-1:!!k&&Po(r,o,c)>-1}var Ty=Ze(function(r,o,c){var g=-1,k=typeof o=="function",I=nr(r)?V(r.length):[];return Pn(r,function(R){I[++g]=k?mr(o,R,c):Ri(R,o,c)}),I}),Ly=ds(function(r,o,c){jr(r,c,o)});function ws(r,o){return(Fe(r)?pt:_1)(r,Re(o,3))}function Ry(r,o,c,g){return r==null?[]:(Fe(o)||(o=o==null?[]:[o]),c=g?n:c,Fe(c)||(c=c==null?[]:[c]),A1(r,o,c))}var Py=ds(function(r,o,c){r[c?0:1].push(o)},function(){return[[],[]]});function $y(r,o,c){var g=Fe(r)?Ql:jh,k=arguments.length<3;return g(r,Re(o,4),c,k,Pn)}function Dy(r,o,c){var g=Fe(r)?K7:jh,k=arguments.length<3;return g(r,Re(o,4),c,k,f1)}function zy(r,o){return(Fe(r)?Cn:p1)(r,ks(Re(o,3)))}function Ny(r){return(Fe(r)?c1:O8)(r)}function By(r,o,c){return(c?Yt(r,o,c):o===n)?o=1:o=Ge(o),(Fe(r)?s8:T8)(r,o)}function Hy(r){return(Fe(r)?l8:R8)(r)}function Fy(r){if(r==null)return 0;if(nr(r))return As(r)?Do(r):r.length;var o=Vt(r);return o==Q||o==F?r.size:bc(r).length}function Gy(r,o,c){var g=Fe(r)?ec:P8;return c&&Yt(r,o,c)&&(o=n),g(r,Re(o,3))}var Wy=Ze(function(r,o){if(r==null)return[];var c=o.length;return c>1&&Yt(r,o[0],o[1])?o=[]:c>2&&Yt(o[0],o[1],o[2])&&(o=[o[0]]),A1(r,Ft(o,1),[])}),_s=Ew||function(){return $t.Date.now()};function Uy(r,o){if(typeof o!="function")throw new Ir(l);return r=Ge(r),function(){if(--r<1)return o.apply(this,arguments)}}function wf(r,o,c){return o=c?n:o,o=r&&o==null?r.length:o,ln(r,ie,n,n,n,n,o)}function _f(r,o){var c;if(typeof o!="function")throw new Ir(l);return r=Ge(r),function(){return--r>0&&(c=o.apply(this,arguments)),r<=1&&(o=n),c}}var Gc=Ze(function(r,o,c){var g=A;if(c.length){var k=Tn(c,Wo(Gc));g|=Y}return ln(r,g,o,c,k)}),yf=Ze(function(r,o,c){var g=A|x;if(c.length){var k=Tn(c,Wo(yf));g|=Y}return ln(o,g,r,c,k)});function kf(r,o,c){o=c?n:o;var g=ln(r,T,n,n,n,n,n,o);return g.placeholder=kf.placeholder,g}function Ef(r,o,c){o=c?n:o;var g=ln(r,N,n,n,n,n,n,o);return g.placeholder=Ef.placeholder,g}function Af(r,o,c){var g,k,I,R,$,H,ne=0,re=!1,ce=!1,be=!0;if(typeof r!="function")throw new Ir(l);o=Rr(o)||0,bt(c)&&(re=!!c.leading,ce="maxWait"in c,I=ce?Pt(Rr(c.maxWait)||0,o):I,be="trailing"in c?!!c.trailing:be);function ye(At){var Gr=g,fn=k;return g=k=n,ne=At,R=r.apply(fn,Gr),R}function Te(At){return ne=At,$=Ni(nt,o),re?ye(At):R}function Ne(At){var Gr=At-H,fn=At-ne,Uf=o-Gr;return ce?Ut(Uf,I-fn):Uf}function Le(At){var Gr=At-H,fn=At-ne;return H===n||Gr>=o||Gr<0||ce&&fn>=I}function nt(){var At=_s();if(Le(At))return je(At);$=Ni(nt,Ne(At))}function je(At){return $=n,be&&g?ye(At):(g=k=n,R)}function Xt(){$!==n&&R1($),ne=0,g=H=k=$=n}function Xr(){return $===n?R:je(_s())}function Bn(){var At=_s(),Gr=Le(At);if(g=arguments,k=this,H=At,Gr){if($===n)return Te(H);if(ce)return R1($),$=Ni(nt,o),ye(H)}return $===n&&($=Ni(nt,o)),R}return Bn.cancel=Xt,Bn.flush=Xr,Bn}var Vy=Ze(function(r,o){return h1(r,1,o)}),Zy=Ze(function(r,o,c){return h1(r,Rr(o)||0,c)});function qy(r){return ln(r,ge)}function ys(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new Ir(l);var c=function(){var g=arguments,k=o?o.apply(this,g):g[0],I=c.cache;if(I.has(k))return I.get(k);var R=r.apply(this,g);return c.cache=I.set(k,R)||I,R};return c.cache=new(ys.Cache||sn),c}ys.Cache=sn;function ks(r){if(typeof r!="function")throw new Ir(l);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function jy(r){return _f(2,r)}var Ky=$8(function(r,o){o=o.length==1&&Fe(o[0])?pt(o[0],br(Re())):pt(Ft(o,1),br(Re()));var c=o.length;return Ze(function(g){for(var k=-1,I=Ut(g.length,c);++k<I;)g[k]=o[k].call(this,g[k]);return mr(r,this,g)})}),Wc=Ze(function(r,o){return ln(r,Y,n,o,Tn(o,Wo(Wc)))}),Sf=Ze(function(r,o){return ln(r,q,n,o,Tn(o,Wo(Sf)))}),Yy=cn(function(r,o){return ln(r,W,n,n,n,o)});function Xy(r,o){if(typeof r!="function")throw new Ir(l);return o=o===n?o:Ge(o),Ze(r,o)}function Jy(r,o){if(typeof r!="function")throw new Ir(l);return o=o==null?0:Pt(Ge(o),0),Ze(function(c){var g=c[o],k=zn(c,0,o);return g&&On(k,g),mr(r,this,k)})}function Qy(r,o,c){var g=!0,k=!0;if(typeof r!="function")throw new Ir(l);return bt(c)&&(g="leading"in c?!!c.leading:g,k="trailing"in c?!!c.trailing:k),Af(r,o,{leading:g,maxWait:o,trailing:k})}function ek(r){return wf(r,1)}function tk(r,o){return Wc(xc(o),r)}function rk(){if(!arguments.length)return[];var r=arguments[0];return Fe(r)?r:[r]}function nk(r){return Or(r,m)}function ok(r,o){return o=typeof o=="function"?o:n,Or(r,m,o)}function ik(r){return Or(r,b|m)}function ak(r,o){return o=typeof o=="function"?o:n,Or(r,b|m,o)}function sk(r,o){return o==null||u1(r,o,Dt(o))}function Fr(r,o){return r===o||r!==r&&o!==o}var lk=ps(gc),ck=ps(function(r,o){return r>=o}),co=v1((function(){return arguments})())?v1:function(r){return _t(r)&&Qe.call(r,"callee")&&!n1.call(r,"callee")},Fe=V.isArray,dk=Nh?br(Nh):b8;function nr(r){return r!=null&&Es(r.length)&&!un(r)}function Et(r){return _t(r)&&nr(r)}function uk(r){return r===!0||r===!1||_t(r)&&Kt(r)==We}var Nn=Sw||td,hk=Bh?br(Bh):w8;function fk(r){return _t(r)&&r.nodeType===1&&!Bi(r)}function pk(r){if(r==null)return!0;if(nr(r)&&(Fe(r)||typeof r=="string"||typeof r.splice=="function"||Nn(r)||Uo(r)||co(r)))return!r.length;var o=Vt(r);if(o==Q||o==F)return!r.size;if(zi(r))return!bc(r).length;for(var c in r)if(Qe.call(r,c))return!1;return!0}function gk(r,o){return Pi(r,o)}function mk(r,o,c){c=typeof c=="function"?c:n;var g=c?c(r,o):n;return g===n?Pi(r,o,n,c):!!g}function Uc(r){if(!_t(r))return!1;var o=Kt(r);return o==jt||o==vt||typeof r.message=="string"&&typeof r.name=="string"&&!Bi(r)}function vk(r){return typeof r=="number"&&i1(r)}function un(r){if(!bt(r))return!1;var o=Kt(r);return o==Wt||o==_||o==Ve||o==se}function Mf(r){return typeof r=="number"&&r==Ge(r)}function Es(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ae}function bt(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function _t(r){return r!=null&&typeof r=="object"}var xf=Hh?br(Hh):y8;function bk(r,o){return r===o||vc(r,o,Pc(o))}function wk(r,o,c){return c=typeof c=="function"?c:n,vc(r,o,Pc(o),c)}function _k(r){return If(r)&&r!=+r}function yk(r){if(o_(r))throw new De(s);return b1(r)}function kk(r){return r===null}function Ek(r){return r==null}function If(r){return typeof r=="number"||_t(r)&&Kt(r)==Z}function Bi(r){if(!_t(r)||Kt(r)!=C)return!1;var o=Ya(r);if(o===null)return!0;var c=Qe.call(o,"constructor")&&o.constructor;return typeof c=="function"&&c instanceof c&&Za.call(c)==ww}var Vc=Fh?br(Fh):k8;function Ak(r){return Mf(r)&&r>=-ae&&r<=ae}var Cf=Gh?br(Gh):E8;function As(r){return typeof r=="string"||!Fe(r)&&_t(r)&&Kt(r)==ue}function _r(r){return typeof r=="symbol"||_t(r)&&Kt(r)==ve}var Uo=Wh?br(Wh):A8;function Sk(r){return r===n}function Mk(r){return _t(r)&&Vt(r)==Ae}function xk(r){return _t(r)&&Kt(r)==tt}var Ik=ps(wc),Ck=ps(function(r,o){return r<=o});function Of(r){if(!r)return[];if(nr(r))return As(r)?Nr(r):rr(r);if(Mi&&r[Mi])return lw(r[Mi]());var o=Vt(r);return(o==Q?ac:o==F?Wa:Vo)(r)}function hn(r){return r?(r=Rr(r),r===Oe||r===-Oe?(r<0?-1:1)*Ie:r===r?r:0):r===0?r:0}function Ge(r){var o=hn(r),c=o%1;return o===o?c?o-c:o:0}function Tf(r){return r?io(Ge(r),0,G):0}function Rr(r){if(typeof r=="number")return r;if(_r(r))return U;if(bt(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=bt(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=Kh(r);var c=p7.test(r);return c||m7.test(r)?V7(r.slice(2),c?2:8):f7.test(r)?U:+r}function Lf(r){return Yr(r,or(r))}function Ok(r){return r?io(Ge(r),-ae,ae):r===0?r:0}function et(r){return r==null?"":wr(r)}var Tk=Fo(function(r,o){if(zi(o)||nr(o)){Yr(o,Dt(o),r);return}for(var c in o)Qe.call(o,c)&&Ti(r,c,o[c])}),Rf=Fo(function(r,o){Yr(o,or(o),r)}),Pf=Fo(function(r,o,c,g){Yr(o,or(o),r,g)}),Zc=Fo(function(r,o,c,g){Yr(o,Dt(o),r,g)}),Lk=cn(hc);function Rk(r,o){var c=Ho(r);return o==null?c:d1(c,o)}var Pk=Ze(function(r,o){r=rt(r);var c=-1,g=o.length,k=g>2?o[2]:n;for(k&&Yt(o[0],o[1],k)&&(g=1);++c<g;)for(var I=o[c],R=or(I),$=-1,H=R.length;++$<H;){var ne=R[$],re=r[ne];(re===n||Fr(re,zo[ne])&&!Qe.call(r,ne))&&(r[ne]=I[ne])}return r}),$k=Ze(function(r){return r.push(n,K1),mr($f,n,r)});function Dk(r,o){return Vh(r,Re(o,3),Kr)}function zk(r,o){return Vh(r,Re(o,3),pc)}function Nk(r,o){return r==null?r:fc(r,Re(o,3),or)}function Bk(r,o){return r==null?r:g1(r,Re(o,3),or)}function Hk(r,o){return r&&Kr(r,Re(o,3))}function Fk(r,o){return r&&pc(r,Re(o,3))}function Gk(r){return r==null?[]:as(r,Dt(r))}function Wk(r){return r==null?[]:as(r,or(r))}function qc(r,o,c){var g=r==null?n:ao(r,o);return g===n?c:g}function Uk(r,o){return r!=null&&J1(r,o,p8)}function jc(r,o){return r!=null&&J1(r,o,g8)}var Vk=U1(function(r,o,c){o!=null&&typeof o.toString!="function"&&(o=qa.call(o)),r[o]=c},Yc(ir)),Zk=U1(function(r,o,c){o!=null&&typeof o.toString!="function"&&(o=qa.call(o)),Qe.call(r,o)?r[o].push(c):r[o]=[c]},Re),qk=Ze(Ri);function Dt(r){return nr(r)?l1(r):bc(r)}function or(r){return nr(r)?l1(r,!0):S8(r)}function jk(r,o){var c={};return o=Re(o,3),Kr(r,function(g,k,I){jr(c,o(g,k,I),g)}),c}function Kk(r,o){var c={};return o=Re(o,3),Kr(r,function(g,k,I){jr(c,k,o(g,k,I))}),c}var Yk=Fo(function(r,o,c){ss(r,o,c)}),$f=Fo(function(r,o,c,g){ss(r,o,c,g)}),Xk=cn(function(r,o){var c={};if(r==null)return c;var g=!1;o=pt(o,function(I){return I=Dn(I,r),g||(g=I.length>1),I}),Yr(r,Lc(r),c),g&&(c=Or(c,b|v|m,Z8));for(var k=o.length;k--;)Ac(c,o[k]);return c});function Jk(r,o){return Df(r,ks(Re(o)))}var Qk=cn(function(r,o){return r==null?{}:x8(r,o)});function Df(r,o){if(r==null)return{};var c=pt(Lc(r),function(g){return[g]});return o=Re(o),S1(r,c,function(g,k){return o(g,k[0])})}function eE(r,o,c){o=Dn(o,r);var g=-1,k=o.length;for(k||(k=1,r=n);++g<k;){var I=r==null?n:r[Hr(o[g])];I===n&&(g=k,I=c),r=un(I)?I.call(r):I}return r}function tE(r,o,c){return r==null?r:$i(r,o,c)}function rE(r,o,c,g){return g=typeof g=="function"?g:n,r==null?r:$i(r,o,c,g)}var zf=q1(Dt),Nf=q1(or);function nE(r,o,c){var g=Fe(r),k=g||Nn(r)||Uo(r);if(o=Re(o,4),c==null){var I=r&&r.constructor;k?c=g?new I:[]:bt(r)?c=un(I)?Ho(Ya(r)):{}:c={}}return(k?vr:Kr)(r,function(R,$,H){return o(c,R,$,H)}),c}function oE(r,o){return r==null?!0:Ac(r,o)}function iE(r,o,c){return r==null?r:O1(r,o,xc(c))}function aE(r,o,c,g){return g=typeof g=="function"?g:n,r==null?r:O1(r,o,xc(c),g)}function Vo(r){return r==null?[]:ic(r,Dt(r))}function sE(r){return r==null?[]:ic(r,or(r))}function lE(r,o,c){return c===n&&(c=o,o=n),c!==n&&(c=Rr(c),c=c===c?c:0),o!==n&&(o=Rr(o),o=o===o?o:0),io(Rr(r),o,c)}function cE(r,o,c){return o=hn(o),c===n?(c=o,o=0):c=hn(c),r=Rr(r),m8(r,o,c)}function dE(r,o,c){if(c&&typeof c!="boolean"&&Yt(r,o,c)&&(o=c=n),c===n&&(typeof o=="boolean"?(c=o,o=n):typeof r=="boolean"&&(c=r,r=n)),r===n&&o===n?(r=0,o=1):(r=hn(r),o===n?(o=r,r=0):o=hn(o)),r>o){var g=r;r=o,o=g}if(c||r%1||o%1){var k=a1();return Ut(r+k*(o-r+U7("1e-"+((k+"").length-1))),o)}return yc(r,o)}var uE=Go(function(r,o,c){return o=o.toLowerCase(),r+(c?Bf(o):o)});function Bf(r){return Kc(et(r).toLowerCase())}function Hf(r){return r=et(r),r&&r.replace(b7,nw).replace(P7,"")}function hE(r,o,c){r=et(r),o=wr(o);var g=r.length;c=c===n?g:io(Ge(c),0,g);var k=c;return c-=o.length,c>=0&&r.slice(c,k)==o}function fE(r){return r=et(r),r&&Q9.test(r)?r.replace(eo,ow):r}function pE(r){return r=et(r),r&&i7.test(r)?r.replace(Wl,"\\$&"):r}var gE=Go(function(r,o,c){return r+(c?"-":"")+o.toLowerCase()}),mE=Go(function(r,o,c){return r+(c?" ":"")+o.toLowerCase()}),vE=F1("toLowerCase");function bE(r,o,c){r=et(r),o=Ge(o);var g=o?Do(r):0;if(!o||g>=o)return r;var k=(o-g)/2;return fs(es(k),c)+r+fs(Qa(k),c)}function wE(r,o,c){r=et(r),o=Ge(o);var g=o?Do(r):0;return o&&g<o?r+fs(o-g,c):r}function _E(r,o,c){r=et(r),o=Ge(o);var g=o?Do(r):0;return o&&g<o?fs(o-g,c)+r:r}function yE(r,o,c){return c||o==null?o=0:o&&(o=+o),Cw(et(r).replace(Ul,""),o||0)}function kE(r,o,c){return(c?Yt(r,o,c):o===n)?o=1:o=Ge(o),kc(et(r),o)}function EE(){var r=arguments,o=et(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var AE=Go(function(r,o,c){return r+(c?"_":"")+o.toLowerCase()});function SE(r,o,c){return c&&typeof c!="number"&&Yt(r,o,c)&&(o=c=n),c=c===n?G:c>>>0,c?(r=et(r),r&&(typeof o=="string"||o!=null&&!Vc(o))&&(o=wr(o),!o&&$o(r))?zn(Nr(r),0,c):r.split(o,c)):[]}var ME=Go(function(r,o,c){return r+(c?" ":"")+Kc(o)});function xE(r,o,c){return r=et(r),c=c==null?0:io(Ge(c),0,r.length),o=wr(o),r.slice(c,c+o.length)==o}function IE(r,o,c){var g=M.templateSettings;c&&Yt(r,o,c)&&(o=n),r=et(r),o=Zc({},o,g,j1);var k=Zc({},o.imports,g.imports,j1),I=Dt(k),R=ic(k,I);vr(I,function(Le){if(mh.test(Le))throw new De(u)});var $,H,ne=0,re=o.interpolate||Na,ce="__p += '",be=sc((o.escape||Na).source+"|"+re.source+"|"+(re===gh?h7:Na).source+"|"+(o.evaluate||Na).source+"|$","g"),ye="//# sourceURL="+(Qe.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++B7+"]")+`
`;r.replace(be,function(Le,nt,je,Xt,Xr,Bn){return je||(je=Xt),ce+=r.slice(ne,Bn).replace(w7,iw),nt&&($=!0,ce+=`' +
__e(`+nt+`) +
'`),Xr&&(H=!0,ce+=`';
`+Xr+`;
__p += '`),je&&(ce+=`' +
((__t = (`+je+`)) == null ? '' : __t) +
'`),ne=Bn+Le.length,Le}),ce+=`';
`;var Te=Qe.call(o,"variable")&&o.variable;if(!Te)ce=`with (obj) {
`+ce+`
}
`;else if(mh.test(Te))throw new De(h);ce=(H?ce.replace(Fl,""):ce).replace(Gl,"$1").replace(za,"$1;"),ce="function("+(Te||"obj")+`) {
`+(Te?"":`obj || (obj = {});
`)+"var __t, __p = ''"+($?", __e = _.escape":"")+(H?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+ce+`return __p
}`;var Ne=Gf(function(){return Xe(I,ye+"return "+ce).apply(n,R)});if(Ne.source=ce,Uc(Ne))throw Ne;return Ne}function CE(r){return et(r).toLowerCase()}function OE(r){return et(r).toUpperCase()}function TE(r,o,c){if(r=et(r),r&&(c||o===n))return Kh(r);if(!r||!(o=wr(o)))return r;var g=Nr(r),k=Nr(o);return zn(g,Yh(g,k),Xh(g,k)+1).join("")}function LE(r,o,c){if(r=et(r),r&&(c||o===n))return r.slice(0,Qh(r)+1);if(!r||!(o=wr(o)))return r;var g=Nr(r);return zn(g,0,Xh(g,Nr(o))+1).join("")}function RE(r,o,c){if(r=et(r),r&&(c||o===n))return r.replace(Ul,"");if(!r||!(o=wr(o)))return r;var g=Nr(r);return zn(g,Yh(g,Nr(o))).join("")}function PE(r,o){var c=_e,g=P;if(bt(o)){var k="separator"in o?o.separator:k;c="length"in o?Ge(o.length):c,g="omission"in o?wr(o.omission):g}r=et(r);var I=r.length;if($o(r)){var R=Nr(r);I=R.length}if(c>=I)return r;var $=c-Do(g);if($<1)return g;var H=R?zn(R,0,$).join(""):r.slice(0,$);if(k===n)return H+g;if(R&&($+=H.length-$),Vc(k)){if(r.slice($).search(k)){var ne,re=H;for(k.global||(k=sc(k.source,et(vh.exec(k))+"g")),k.lastIndex=0;ne=k.exec(re);)var ce=ne.index;H=H.slice(0,ce===n?$:ce)}}else if(r.indexOf(wr(k),$)!=$){var be=H.lastIndexOf(k);be>-1&&(H=H.slice(0,be))}return H+g}function $E(r){return r=et(r),r&&J9.test(r)?r.replace(In,hw):r}var DE=Go(function(r,o,c){return r+(c?" ":"")+o.toUpperCase()}),Kc=F1("toUpperCase");function Ff(r,o,c){return r=et(r),o=c?n:o,o===n?sw(r)?gw(r):J7(r):r.match(o)||[]}var Gf=Ze(function(r,o){try{return mr(r,n,o)}catch(c){return Uc(c)?c:new De(c)}}),zE=cn(function(r,o){return vr(o,function(c){c=Hr(c),jr(r,c,Gc(r[c],r))}),r});function NE(r){var o=r==null?0:r.length,c=Re();return r=o?pt(r,function(g){if(typeof g[1]!="function")throw new Ir(l);return[c(g[0]),g[1]]}):[],Ze(function(g){for(var k=-1;++k<o;){var I=r[k];if(mr(I[0],this,g))return mr(I[1],this,g)}})}function BE(r){return u8(Or(r,b))}function Yc(r){return function(){return r}}function HE(r,o){return r==null||r!==r?o:r}var FE=W1(),GE=W1(!0);function ir(r){return r}function Xc(r){return w1(typeof r=="function"?r:Or(r,b))}function WE(r){return y1(Or(r,b))}function UE(r,o){return k1(r,Or(o,b))}var VE=Ze(function(r,o){return function(c){return Ri(c,r,o)}}),ZE=Ze(function(r,o){return function(c){return Ri(r,c,o)}});function Jc(r,o,c){var g=Dt(o),k=as(o,g);c==null&&!(bt(o)&&(k.length||!g.length))&&(c=o,o=r,r=this,k=as(o,Dt(o)));var I=!(bt(c)&&"chain"in c)||!!c.chain,R=un(r);return vr(k,function($){var H=o[$];r[$]=H,R&&(r.prototype[$]=function(){var ne=this.__chain__;if(I||ne){var re=r(this.__wrapped__);return(re.__actions__=rr(this.__actions__)).push({func:H,args:arguments,thisArg:r}),re.__chain__=ne,re}return H.apply(r,On([this.value()],arguments))})}),r}function qE(){return $t._===this&&($t._=_w),this}function Qc(){}function jE(r){return r=Ge(r),Ze(function(o){return E1(o,r)})}var KE=Cc(pt),YE=Cc(Uh),XE=Cc(ec);function Wf(r){return Dc(r)?tc(Hr(r)):I8(r)}function JE(r){return function(o){return r==null?n:ao(r,o)}}var QE=V1(),eA=V1(!0);function ed(){return[]}function td(){return!1}function tA(){return{}}function rA(){return""}function nA(){return!0}function oA(r,o){if(r=Ge(r),r<1||r>ae)return[];var c=G,g=Ut(r,G);o=Re(o),r-=G;for(var k=oc(g,o);++c<r;)o(c);return k}function iA(r){return Fe(r)?pt(r,Hr):_r(r)?[r]:rr(lf(et(r)))}function aA(r){var o=++bw;return et(r)+o}var sA=hs(function(r,o){return r+o},0),lA=Oc("ceil"),cA=hs(function(r,o){return r/o},1),dA=Oc("floor");function uA(r){return r&&r.length?is(r,ir,gc):n}function hA(r,o){return r&&r.length?is(r,Re(o,2),gc):n}function fA(r){return qh(r,ir)}function pA(r,o){return qh(r,Re(o,2))}function gA(r){return r&&r.length?is(r,ir,wc):n}function mA(r,o){return r&&r.length?is(r,Re(o,2),wc):n}var vA=hs(function(r,o){return r*o},1),bA=Oc("round"),wA=hs(function(r,o){return r-o},0);function _A(r){return r&&r.length?nc(r,ir):0}function yA(r,o){return r&&r.length?nc(r,Re(o,2)):0}return M.after=Uy,M.ary=wf,M.assign=Tk,M.assignIn=Rf,M.assignInWith=Pf,M.assignWith=Zc,M.at=Lk,M.before=_f,M.bind=Gc,M.bindAll=zE,M.bindKey=yf,M.castArray=rk,M.chain=mf,M.chunk=u_,M.compact=h_,M.concat=f_,M.cond=NE,M.conforms=BE,M.constant=Yc,M.countBy=yy,M.create=Rk,M.curry=kf,M.curryRight=Ef,M.debounce=Af,M.defaults=Pk,M.defaultsDeep=$k,M.defer=Vy,M.delay=Zy,M.difference=p_,M.differenceBy=g_,M.differenceWith=m_,M.drop=v_,M.dropRight=b_,M.dropRightWhile=w_,M.dropWhile=__,M.fill=y_,M.filter=Ey,M.flatMap=My,M.flatMapDeep=xy,M.flatMapDepth=Iy,M.flatten=hf,M.flattenDeep=k_,M.flattenDepth=E_,M.flip=qy,M.flow=FE,M.flowRight=GE,M.fromPairs=A_,M.functions=Gk,M.functionsIn=Wk,M.groupBy=Cy,M.initial=M_,M.intersection=x_,M.intersectionBy=I_,M.intersectionWith=C_,M.invert=Vk,M.invertBy=Zk,M.invokeMap=Ty,M.iteratee=Xc,M.keyBy=Ly,M.keys=Dt,M.keysIn=or,M.map=ws,M.mapKeys=jk,M.mapValues=Kk,M.matches=WE,M.matchesProperty=UE,M.memoize=ys,M.merge=Yk,M.mergeWith=$f,M.method=VE,M.methodOf=ZE,M.mixin=Jc,M.negate=ks,M.nthArg=jE,M.omit=Xk,M.omitBy=Jk,M.once=jy,M.orderBy=Ry,M.over=KE,M.overArgs=Ky,M.overEvery=YE,M.overSome=XE,M.partial=Wc,M.partialRight=Sf,M.partition=Py,M.pick=Qk,M.pickBy=Df,M.property=Wf,M.propertyOf=JE,M.pull=R_,M.pullAll=pf,M.pullAllBy=P_,M.pullAllWith=$_,M.pullAt=D_,M.range=QE,M.rangeRight=eA,M.rearg=Yy,M.reject=zy,M.remove=z_,M.rest=Xy,M.reverse=Hc,M.sampleSize=By,M.set=tE,M.setWith=rE,M.shuffle=Hy,M.slice=N_,M.sortBy=Wy,M.sortedUniq=V_,M.sortedUniqBy=Z_,M.split=SE,M.spread=Jy,M.tail=q_,M.take=j_,M.takeRight=K_,M.takeRightWhile=Y_,M.takeWhile=X_,M.tap=hy,M.throttle=Qy,M.thru=bs,M.toArray=Of,M.toPairs=zf,M.toPairsIn=Nf,M.toPath=iA,M.toPlainObject=Lf,M.transform=nE,M.unary=ek,M.union=J_,M.unionBy=Q_,M.unionWith=ey,M.uniq=ty,M.uniqBy=ry,M.uniqWith=ny,M.unset=oE,M.unzip=Fc,M.unzipWith=gf,M.update=iE,M.updateWith=aE,M.values=Vo,M.valuesIn=sE,M.without=oy,M.words=Ff,M.wrap=tk,M.xor=iy,M.xorBy=ay,M.xorWith=sy,M.zip=ly,M.zipObject=cy,M.zipObjectDeep=dy,M.zipWith=uy,M.entries=zf,M.entriesIn=Nf,M.extend=Rf,M.extendWith=Pf,Jc(M,M),M.add=sA,M.attempt=Gf,M.camelCase=uE,M.capitalize=Bf,M.ceil=lA,M.clamp=lE,M.clone=nk,M.cloneDeep=ik,M.cloneDeepWith=ak,M.cloneWith=ok,M.conformsTo=sk,M.deburr=Hf,M.defaultTo=HE,M.divide=cA,M.endsWith=hE,M.eq=Fr,M.escape=fE,M.escapeRegExp=pE,M.every=ky,M.find=Ay,M.findIndex=df,M.findKey=Dk,M.findLast=Sy,M.findLastIndex=uf,M.findLastKey=zk,M.floor=dA,M.forEach=vf,M.forEachRight=bf,M.forIn=Nk,M.forInRight=Bk,M.forOwn=Hk,M.forOwnRight=Fk,M.get=qc,M.gt=lk,M.gte=ck,M.has=Uk,M.hasIn=jc,M.head=ff,M.identity=ir,M.includes=Oy,M.indexOf=S_,M.inRange=cE,M.invoke=qk,M.isArguments=co,M.isArray=Fe,M.isArrayBuffer=dk,M.isArrayLike=nr,M.isArrayLikeObject=Et,M.isBoolean=uk,M.isBuffer=Nn,M.isDate=hk,M.isElement=fk,M.isEmpty=pk,M.isEqual=gk,M.isEqualWith=mk,M.isError=Uc,M.isFinite=vk,M.isFunction=un,M.isInteger=Mf,M.isLength=Es,M.isMap=xf,M.isMatch=bk,M.isMatchWith=wk,M.isNaN=_k,M.isNative=yk,M.isNil=Ek,M.isNull=kk,M.isNumber=If,M.isObject=bt,M.isObjectLike=_t,M.isPlainObject=Bi,M.isRegExp=Vc,M.isSafeInteger=Ak,M.isSet=Cf,M.isString=As,M.isSymbol=_r,M.isTypedArray=Uo,M.isUndefined=Sk,M.isWeakMap=Mk,M.isWeakSet=xk,M.join=O_,M.kebabCase=gE,M.last=Lr,M.lastIndexOf=T_,M.lowerCase=mE,M.lowerFirst=vE,M.lt=Ik,M.lte=Ck,M.max=uA,M.maxBy=hA,M.mean=fA,M.meanBy=pA,M.min=gA,M.minBy=mA,M.stubArray=ed,M.stubFalse=td,M.stubObject=tA,M.stubString=rA,M.stubTrue=nA,M.multiply=vA,M.nth=L_,M.noConflict=qE,M.noop=Qc,M.now=_s,M.pad=bE,M.padEnd=wE,M.padStart=_E,M.parseInt=yE,M.random=dE,M.reduce=$y,M.reduceRight=Dy,M.repeat=kE,M.replace=EE,M.result=eE,M.round=bA,M.runInContext=z,M.sample=Ny,M.size=Fy,M.snakeCase=AE,M.some=Gy,M.sortedIndex=B_,M.sortedIndexBy=H_,M.sortedIndexOf=F_,M.sortedLastIndex=G_,M.sortedLastIndexBy=W_,M.sortedLastIndexOf=U_,M.startCase=ME,M.startsWith=xE,M.subtract=wA,M.sum=_A,M.sumBy=yA,M.template=IE,M.times=oA,M.toFinite=hn,M.toInteger=Ge,M.toLength=Tf,M.toLower=CE,M.toNumber=Rr,M.toSafeInteger=Ok,M.toString=et,M.toUpper=OE,M.trim=TE,M.trimEnd=LE,M.trimStart=RE,M.truncate=PE,M.unescape=$E,M.uniqueId=aA,M.upperCase=DE,M.upperFirst=Kc,M.each=vf,M.eachRight=bf,M.first=ff,Jc(M,(function(){var r={};return Kr(M,function(o,c){Qe.call(M.prototype,c)||(r[c]=o)}),r})(),{chain:!1}),M.VERSION=i,vr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){M[r].placeholder=M}),vr(["drop","take"],function(r,o){qe.prototype[r]=function(c){c=c===n?1:Pt(Ge(c),0);var g=this.__filtered__&&!o?new qe(this):this.clone();return g.__filtered__?g.__takeCount__=Ut(c,g.__takeCount__):g.__views__.push({size:Ut(c,G),type:r+(g.__dir__<0?"Right":"")}),g},qe.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),vr(["filter","map","takeWhile"],function(r,o){var c=o+1,g=c==ee||c==de;qe.prototype[r]=function(k){var I=this.clone();return I.__iteratees__.push({iteratee:Re(k,3),type:c}),I.__filtered__=I.__filtered__||g,I}}),vr(["head","last"],function(r,o){var c="take"+(o?"Right":"");qe.prototype[r]=function(){return this[c](1).value()[0]}}),vr(["initial","tail"],function(r,o){var c="drop"+(o?"":"Right");qe.prototype[r]=function(){return this.__filtered__?new qe(this):this[c](1)}}),qe.prototype.compact=function(){return this.filter(ir)},qe.prototype.find=function(r){return this.filter(r).head()},qe.prototype.findLast=function(r){return this.reverse().find(r)},qe.prototype.invokeMap=Ze(function(r,o){return typeof r=="function"?new qe(this):this.map(function(c){return Ri(c,r,o)})}),qe.prototype.reject=function(r){return this.filter(ks(Re(r)))},qe.prototype.slice=function(r,o){r=Ge(r);var c=this;return c.__filtered__&&(r>0||o<0)?new qe(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),o!==n&&(o=Ge(o),c=o<0?c.dropRight(-o):c.take(o-r)),c)},qe.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},qe.prototype.toArray=function(){return this.take(G)},Kr(qe.prototype,function(r,o){var c=/^(?:filter|find|map|reject)|While$/.test(o),g=/^(?:head|last)$/.test(o),k=M[g?"take"+(o=="last"?"Right":""):o],I=g||/^find/.test(o);k&&(M.prototype[o]=function(){var R=this.__wrapped__,$=g?[1]:arguments,H=R instanceof qe,ne=$[0],re=H||Fe(R),ce=function(nt){var je=k.apply(M,On([nt],$));return g&&be?je[0]:je};re&&c&&typeof ne=="function"&&ne.length!=1&&(H=re=!1);var be=this.__chain__,ye=!!this.__actions__.length,Te=I&&!be,Ne=H&&!ye;if(!I&&re){R=Ne?R:new qe(this);var Le=r.apply(R,$);return Le.__actions__.push({func:bs,args:[ce],thisArg:n}),new Cr(Le,be)}return Te&&Ne?r.apply(this,$):(Le=this.thru(ce),Te?g?Le.value()[0]:Le.value():Le)})}),vr(["pop","push","shift","sort","splice","unshift"],function(r){var o=Ua[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",g=/^(?:pop|shift)$/.test(r);M.prototype[r]=function(){var k=arguments;if(g&&!this.__chain__){var I=this.value();return o.apply(Fe(I)?I:[],k)}return this[c](function(R){return o.apply(Fe(R)?R:[],k)})}}),Kr(qe.prototype,function(r,o){var c=M[o];if(c){var g=c.name+"";Qe.call(Bo,g)||(Bo[g]=[]),Bo[g].push({name:o,func:c})}}),Bo[us(n,x).name]=[{name:"wrapper",func:n}],qe.prototype.clone=Dw,qe.prototype.reverse=zw,qe.prototype.value=Nw,M.prototype.at=fy,M.prototype.chain=py,M.prototype.commit=gy,M.prototype.next=my,M.prototype.plant=by,M.prototype.reverse=wy,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=_y,M.prototype.first=M.prototype.head,Mi&&(M.prototype[Mi]=vy),M})();typeof define=="function"&&typeof define.amd=="object"&&define.amd?($t._=Ln,define(function(){return Ln})):to?((to.exports=Ln)._=Ln,Yl._=Ln):$t._=Ln}).call(e)})),Me=Fi(dp(),1);function xs(e){return Me.default.isEmpty(e)||Me.default.isNil(e)}function Er(e){return xs(e)||e===!1||e===0}function up(e,t=document.body){return new Promise(n=>{const i=document.querySelector(e);if(i){n(i);return}const a=new MutationObserver(()=>{const s=document.querySelector(e);s&&(n(s),a.disconnect())});a.observe(t,{childList:!0,subtree:!0,attributes:!0})})}function Is(e,t=250){return new Promise(n=>{const i=setInterval(()=>{e()&&(clearInterval(i),n(!0))},t)})}function hp(e,t,n=document.body){return new Promise(i=>{const a=n.querySelector(e);if(a?.getAttribute(t)){i(a.getAttribute(t)??"");return}const s=new MutationObserver(()=>{const l=n.querySelector(e);l?.getAttribute(t)&&(i(l.getAttribute(t)??""),s.disconnect())});s.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[t]})})}function fp(e,t=document.body){return new Promise(n=>{if(!Er(unsafeWindow[e])){n(unsafeWindow[e]);return}const i=new MutationObserver(()=>{Er(unsafeWindow[e])||(n(unsafeWindow[e]),i.disconnect())});i.observe(t,{childList:!0,subtree:!0,attributes:!0})})}async function qo(e,t,n,i){e!==void 0&&(xe(n),xe(i,await t(e)))}async function pp(e){await qo(e.waitAttr,t=>hp(t?.[0],t?.[1]),`Waiting for Attribute ${e.waitAttr?.[1]} of ${e.waitAttr?.[0]}`,`Found Attribute ${e.waitAttr?.[1]} of ${e.waitAttr?.[0]} =`),await qo(e.waitEle,up,`Waiting for Element ${e.waitEle}`,"Found Element"),await qo(e.waitVar,fp,`Waiting for Variable ${e.waitVar}`,"Found Variable"),await qo(e.waitFunc,Is,`Waiting to pass Function check ${e.waitFunc}`,"Found Function check"),await qo(e.waitTime,t=>new Promise(n=>setTimeout(n,t)),`Waiting for ${e.waitTime} milliseconds`,"Continuing after timer")}var Pr=[],pn=0,Gi=4,Wi=globalThis.nanostoresGlobal||={epoch:0},cd=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},init:e,lc:0,listen(i){return n.lc=t.push(i),()=>{for(let s=pn+Gi;s<Pr.length;)Pr[s]===i?Pr.splice(s,Gi):s+=Gi;let a=t.indexOf(i);~a&&(t.splice(a,1),--n.lc||n.off())}},notify(i,a){Wi.epoch++;let s=!Pr.length;for(let l of t)Pr.push(l,n.value,i,a);if(s){for(pn=0;pn<Pr.length;pn+=Gi)Pr[pn](Pr[pn+1],Pr[pn+2],Pr[pn+3]);Pr.length=0}},off(){},set(i){let a=n.value;a!==i&&(n.value=i,n.notify(a))},subscribe(i){let a=n.listen(i);return i(n.value),a},value:e};return n},gp=5,Ui=6,Vi=10,mp=(e,t,n,i)=>(e.events=e.events||{},e.events[n+Vi]||(e.events[n+Vi]=i(a=>{e.events[n].reduceRight((s,l)=>(l(s),s),{shared:{},...a})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let a=e.events[n],s=a.indexOf(t);a.splice(s,1),a.length||(delete e.events[n],e.events[n+Vi](),delete e.events[n+Vi])}),vp=1e3,bp=(e,t)=>mp(e,i=>{let a=t(i);a&&e.events[Ui].push(a)},gp,i=>{let a=e.listen;e.listen=(...l)=>(!e.lc&&!e.active&&(e.active=!0,i()),a(...l));let s=e.off;return e.events[Ui]=[],e.off=()=>{s(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let l of e.events[Ui])l();e.events[Ui]=[]}},vp)},()=>{e.listen=a,e.off=s}}),wp=(e,t,n)=>{Array.isArray(e)||(e=[e]);let i,a,s=()=>{if(a===Wi.epoch)return;a=Wi.epoch;let p=e.map(w=>w.get());if(!i||p.some((w,b)=>w!==i[b])){i=p;let w=t(...p);w&&w.then&&w.t?w.then(b=>{i===p&&l.set(b)}):(l.set(w),a=Wi.epoch)}},l=cd(void 0),h=l.get;l.get=()=>(s(),h());let u,f=n?()=>{clearTimeout(u),u=setTimeout(s)}:s;return bp(l,()=>{let p=e.map(w=>w.listen(f));return s(),()=>{for(let w of p)w()}}),l},_p=(e,t)=>wp(e,t),dd=(e={})=>{let t=cd(e);return t.setKey=function(n,i){let a=t.value;typeof i>"u"&&n in t.value?(t.value={...t.value},delete t.value[n],t.notify(a,n)):t.value[n]!==i&&(t.value={...t.value,[n]:i},t.notify(a,n))},t},Cs=globalThis,ud=e=>e,Zi=Cs.trustedTypes,hd=Zi?Zi.createPolicy("lit-html",{createHTML:e=>e}):void 0,Os="$lit$",Jr=`lit$${Math.random().toFixed(9).slice(2)}$`,Ts="?"+Jr,yp=`<${Ts}>`,Hn=document,jo=()=>Hn.createComment(""),Ko=e=>e===null||typeof e!="object"&&typeof e!="function",Ls=Array.isArray,fd=e=>Ls(e)||typeof e?.[Symbol.iterator]=="function",Rs=`[ 	
\f\r]`,Yo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pd=/-->/g,gd=/>/g,Fn=RegExp(`>|${Rs}(?:([^\\s"'>=/]+)(${Rs}*=${Rs}*(?:[^ 	
\f\r"'\`<>=]|("|')|))|$)`,"g"),md=/'/g,vd=/"/g,bd=/^(?:script|style|textarea|title)$/i,Ps=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),oe=Ps(1),kA=Ps(2),EA=Ps(3),Qr=Symbol.for("lit-noChange"),Be=Symbol.for("lit-nothing"),wd=new WeakMap,Gn=Hn.createTreeWalker(Hn,129);function _d(e,t){if(!Ls(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return hd!==void 0?hd.createHTML(t):t}var yd=(e,t)=>{const n=e.length-1,i=[];let a,s=t===2?"<svg>":t===3?"<math>":"",l=Yo;for(let h=0;h<n;h++){const u=e[h];let f,p,w=-1,b=0;for(;b<u.length&&(l.lastIndex=b,p=l.exec(u),p!==null);)b=l.lastIndex,l===Yo?p[1]==="!--"?l=pd:p[1]!==void 0?l=gd:p[2]!==void 0?(bd.test(p[2])&&(a=RegExp("</"+p[2],"g")),l=Fn):p[3]!==void 0&&(l=Fn):l===Fn?p[0]===">"?(l=a??Yo,w=-1):p[1]===void 0?w=-2:(w=l.lastIndex-p[2].length,f=p[1],l=p[3]===void 0?Fn:p[3]==='"'?vd:md):l===vd||l===md?l=Fn:l===pd||l===gd?l=Yo:(l=Fn,a=void 0);const v=l===Fn&&e[h+1].startsWith("/>")?" ":"";s+=l===Yo?u+yp:w>=0?(i.push(f),u.slice(0,w)+Os+u.slice(w)+Jr+v):u+Jr+(w===-2?h:v)}return[_d(e,s+(e[n]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},$s=class Vf{constructor({strings:t,_$litType$:n},i){let a;this.parts=[];let s=0,l=0;const h=t.length-1,u=this.parts,[f,p]=yd(t,n);if(this.el=Vf.createElement(f,i),Gn.currentNode=this.el.content,n===2||n===3){const w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(a=Gn.nextNode())!==null&&u.length<h;){if(a.nodeType===1){if(a.hasAttributes())for(const w of a.getAttributeNames())if(w.endsWith(Os)){const b=p[l++],v=a.getAttribute(w).split(Jr),m=/([.?@])?(.*)/.exec(b);u.push({type:1,index:s,name:m[2],strings:v,ctor:m[1]==="."?Ed:m[1]==="?"?Ad:m[1]==="@"?Sd:Xo}),a.removeAttribute(w)}else w.startsWith(Jr)&&(u.push({type:6,index:s}),a.removeAttribute(w));if(bd.test(a.tagName)){const w=a.textContent.split(Jr),b=w.length-1;if(b>0){a.textContent=Zi?Zi.emptyScript:"";for(let v=0;v<b;v++)a.append(w[v],jo()),Gn.nextNode(),u.push({type:2,index:++s});a.append(w[b],jo())}}}else if(a.nodeType===8)if(a.data===Ts)u.push({type:2,index:s});else{let w=-1;for(;(w=a.data.indexOf(Jr,w+1))!==-1;)u.push({type:7,index:s}),w+=Jr.length-1}s++}}static createElement(t,n){const i=Hn.createElement("template");return i.innerHTML=t,i}};function Wn(e,t,n=e,i){if(t===Qr)return t;let a=i!==void 0?n._$Co?.[i]:n._$Cl;const s=Ko(t)?void 0:t._$litDirective$;return a?.constructor!==s&&(a?._$AO?.(!1),s===void 0?a=void 0:(a=new s(e),a._$AT(e,n,i)),i!==void 0?(n._$Co??=[])[i]=a:n._$Cl=a),a!==void 0&&(t=Wn(e,a._$AS(e,t.values),a,i)),t}var kd=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:n}=this._$AD,i=(e?.creationScope??Hn).importNode(t,!0);Gn.currentNode=i;let a=Gn.nextNode(),s=0,l=0,h=n[0];for(;h!==void 0;){if(s===h.index){let u;h.type===2?u=new qi(a,a.nextSibling,this,e):h.type===1?u=new h.ctor(a,h.name,h.strings,this,e):h.type===6&&(u=new Md(a,this,e)),this._$AV.push(u),h=n[++l]}s!==h?.index&&(a=Gn.nextNode(),s++)}return Gn.currentNode=Hn,i}p(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},qi=class Zf{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,n,i,a){this.type=2,this._$AH=Be,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=i,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&t?.nodeType===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=Wn(this,t,n),Ko(t)?t===Be||t==null||t===""?(this._$AH!==Be&&this._$AR(),this._$AH=Be):t!==this._$AH&&t!==Qr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):fd(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Be&&Ko(this._$AH)?this._$AA.nextSibling.data=t:this.T(Hn.createTextNode(t)),this._$AH=t}$(t){const{values:n,_$litType$:i}=t,a=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=$s.createElement(_d(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===a)this._$AH.p(n);else{const s=new kd(a,this),l=s.u(this.options);s.p(n),this.T(l),this._$AH=s}}_$AC(t){let n=wd.get(t.strings);return n===void 0&&wd.set(t.strings,n=new $s(t)),n}k(t){Ls(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,a=0;for(const s of t)a===n.length?n.push(i=new Zf(this.O(jo()),this.O(jo()),this,this.options)):i=n[a],i._$AI(s),a++;a<n.length&&(this._$AR(i&&i._$AB.nextSibling,a),n.length=a)}_$AR(t=this._$AA.nextSibling,n){for(this._$AP?.(!1,!0,n);t!==this._$AB;){const i=ud(t).nextSibling;ud(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Xo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,i,a){this.type=1,this._$AH=Be,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Be}_$AI(e,t=this,n,i){const a=this.strings;let s=!1;if(a===void 0)e=Wn(this,e,t,0),s=!Ko(e)||e!==this._$AH&&e!==Qr,s&&(this._$AH=e);else{const l=e;let h,u;for(e=a[0],h=0;h<a.length-1;h++)u=Wn(this,l[n+h],t,h),u===Qr&&(u=this._$AH[h]),s||=!Ko(u)||u!==this._$AH[h],u===Be?e=Be:e!==Be&&(e+=(u??"")+a[h+1]),this._$AH[h]=u}s&&!i&&this.j(e)}j(e){e===Be?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ed=class extends Xo{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Be?void 0:e}},Ad=class extends Xo{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Be)}},Sd=class extends Xo{constructor(e,t,n,i,a){super(e,t,n,i,a),this.type=5}_$AI(e,t=this){if((e=Wn(this,e,t,0)??Be)===Qr)return;const n=this._$AH,i=e===Be&&n!==Be||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==Be&&(n===Be||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Md=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Wn(this,e)}},kp={M:Os,P:Jr,A:Ts,C:1,L:yd,R:kd,D:fd,V:Wn,I:qi,H:Xo,N:Ad,U:Sd,B:Ed,F:Md},Ep=Cs.litHtmlPolyfillSupport;Ep?.($s,qi),(Cs.litHtmlVersions??=[]).push("3.3.2");var Ap=(e,t,n)=>{const i=n?.renderBefore??t;let a=i._$litPart$;if(a===void 0){const s=n?.renderBefore??null;i._$litPart$=a=new qi(t.insertBefore(jo(),s),s,void 0,n??{})}return a._$AI(e),a},{I:Sp}=kp,xd=e=>e,AA=e=>e===null||typeof e!="object"&&typeof e!="function",SA={HTML:1,SVG:2,MATHML:3},MA=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,xA=e=>e?._$litType$?.h!=null,IA=e=>e?._$litDirective$!==void 0,CA=e=>e?._$litDirective$,Mp=e=>e.strings===void 0,Id=()=>document.createComment(""),OA=(e,t,n)=>{const i=e._$AA.parentNode,a=t===void 0?e._$AB:t._$AA;if(n===void 0)n=new Sp(i.insertBefore(Id(),a),i.insertBefore(Id(),a),e,e.options);else{const s=n._$AB.nextSibling,l=n._$AM,h=l!==e;if(h){let u;n._$AQ?.(e),n._$AM=e,n._$AP!==void 0&&(u=e._$AU)!==l._$AU&&n._$AP(u)}if(s!==a||h){let u=n._$AA;for(;u!==s;){const f=xd(u).nextSibling;xd(i).insertBefore(u,a),u=f}}}return n},TA=(e,t,n=e)=>(e._$AI(t,n),e),xp={},LA=(e,t=xp)=>e._$AH=t,RA=e=>e._$AH,PA=e=>{e._$AR(),e._$AA.remove()},$A=e=>{e._$AR()},ji={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Jo=e=>(...t)=>({_$litDirective$:e,values:t}),Ki=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},Qo=(e,t)=>{const n=e._$AN;if(n===void 0)return!1;for(const i of n)i._$AO?.(t,!1),Qo(i,t);return!0},Yi=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while(n?.size===0)},Cd=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),Op(t)}};function Ip(e){this._$AN!==void 0?(Yi(this),this._$AM=e,Cd(this)):this._$AM=e}function Cp(e,t=!1,n=0){const i=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(t)if(Array.isArray(i))for(let s=n;s<i.length;s++)Qo(i[s],!1),Yi(i[s]);else i!=null&&(Qo(i,!1),Yi(i));else Qo(this,e)}var Op=e=>{e.type==ji.CHILD&&(e._$AP??=Cp,e._$AQ??=Ip)},Tp=class extends Ki{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),Cd(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Qo(this,e),Yi(this))}setValue(e){if(Mp(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}},Ds=()=>new Lp,Lp=class{},zs=new WeakMap,Ns=Jo(class extends Tp{render(e){return Be}update(e,[t]){const n=t!==this.G;return n&&this.G!==void 0&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.G=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),Be}rt(e){if(this.isConnected||(e=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let n=zs.get(t);n===void 0&&(n=new WeakMap,zs.set(t,n)),n.get(this.G)!==void 0&&this.G.call(this.ht,void 0),n.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){return typeof this.G=="function"?zs.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),Rp={ID:"de_DE",NAME:"Deutsch",STARTING:"Starte Manga OnlineViewer",RESUME:"Fortsetzen ab Seite ",WAITING:"Bitte warten, 3 Sekunden...",CHOOSE_BEGINNING:"Wähle die Startseite:",BUTTON_START:"Manga OnlineViewer starten",SETTINGS:"Einstellungen",LANGUAGE:"Sprache",COLOR_SCHEME:"Farbschema",THEME:"Design",THEME_COLOR:"Farbe",THEME_HUE:"Farbton",THEME_SHADE:"Schattierung",DEFAULT_LOAD_MODE:"Standard-Lademodus",LOAD_MODE_NORMAL:"Normal (3 Sek. warten)",LOAD_MODE_ALWAYS:"Immer (sofort)",LOAD_MODE_NEVER:"Nie (manuell)",LOAD_SPEED:"Ladegeschwindigkeit",DEFAULT_ZOOM:"Standard-Zoom (zwischen 5 und 200)",DEFAULT_ZOOM_MODE:"Standard-Zoommodus",MINIMUM_ZOOM:"Minimaler Zoom relativ zur Bildschirmbreite (zwischen 30 und 100)",ZOOM_STEP:"Zoom-Schrittgröße (zwischen 5 und 50)",DEFAULT_VIEW_MODE:"Standard-Ansichtsmodus",VIEW_MODE_VERTICAL:"Vertikal",VIEW_MODE_LEFT:"Horizontal - Links nach Rechts",VIEW_MODE_RIGHT:"Horizontal - Rechts nach Links",VIEW_MODE_WEBCOMIC:"WebComic",VIEW_MODE_BOOK:"Buch - Links nach Rechts",VIEW_MODE_MANGA:"Manga - Rechts nach Links",VIEW_MODE_GALLERY:"Galerie",FIT_WIDTH_OVERSIZED:"Breite anpassen bei Übergröße",SHOW_THUMBNAILS:"Miniaturansichten anzeigen",HIDE_CONTROLS:"Seitensteuerung immer ausblenden",HEADER_TYPE:"Kopfbereichstyp ändern",HEADER_HOVER:"Hover",HEADER_SCROLL:"Scrollen",HEADER_CLICK:"Klicken",HEADER_FIXED:"Fixiert",HEADER_SIMPLE:"Einfach",BUTTON_DOWNLOAD:"Herunterladen",DOWNLOAD_ZIP:"Zip-Datei herunterladen",DOWNLOAD_IMAGES:"Bilder automatisch als Zip herunterladen",DOWNLOAD_PROGRESS:"Herunterladen: ##num## von ##total##",GENERATING_ZIP:"Zip-Datei wird erstellt...",DOWNLOAD_INCOMPLETE:"Download unvollständig",DOWNLOAD_INCOMPLETE_MESSAGE:"Einige Seiten konnten nicht heruntergeladen werden und wurden übersprungen. Eine Liste der fehlgeschlagenen Seiten wurde der ZIP-Datei hinzugefügt.",BUTTON_NEXT:"Weiter",NEXT_CHAPTER:"Nächstes Kapitel",BUTTON_PREVIOUS:"Zurück",PREVIOUS_CHAPTER:"Vorheriges Kapitel",BOOKMARKS:"Lesezeichen",BOOKMARK:"Lesezeichen",BOOKMARK_REMOVED:"Lesezeichen entfernt",BOOKMARK_SAVED:"Lesezeichen gespeichert",BOOKMARK_MESSAGE:"Beim nächsten Öffnen dieses Kapitels wird ab fortgesetzt: Seite ##num## (Nur EINMAL pro Lesezeichen)",KEYBINDINGS:"Tastenkürzel",EDIT_KEYBINDS:"Tastenkürzel bearbeiten",SAVE_KEYBINDS:"Tastenkürzel speichern",BUTTON_EDIT:"Bearbeiten",BUTTON_SAVE:"Speichern",KEYBIND_RULES:`
    <h3>Unterstützte Tasten</h3>
    Erlaubte Modifikatoren: shift, option, alt, ctrl, control, command. <br/>
    Spezielle Tasten: backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete, f1 - f19, num_0 - num_9, num_multiply, num_add, num_enter, num_subtract, num_decimal, num_divide. <br/>
    Beispiele: <kbd>a</kbd>, <kbd>ctrl+a</kbd>, <kbd>shift+a</kbd>, <kbd>num_2</kbd>, <kbd>2</kbd>
  `,ATTENTION:"Achtung",WARNING:"Warnung",BUTTON_RESET_SETTINGS:"Einstellungen zurücksetzen(Reset Settings)",SETTINGS_RESET:"Die Einstellungen wurden zurückgesetzt, bitte Seite neu laden",LANGUAGE_CHANGED:"Die Sprache wurde geändert, bitte Seite neu laden",AUTO_DOWNLOAD:"Beim nächsten Laden eines Kapitels wirst du automatisch gefragt, ob du speichern möchtest",LAZY_LOAD:"Lazy Load ist mit Zip-Download nicht kompatibel, mit dieser Einstellung kannst du nicht herunterladen.<br/> Empfehlung: <span style='color:red;font-weight:bold'>Miniaturansichten deaktivieren</span> um Bandbreite/Speicher zu sparen.",LAZY_LOAD_IMAGES_ENABLE:"Lazy Load Bilder aktivieren",LAZY_LOAD_IMAGES:"Lazy Start ab Seite (zwischen 5 und 100)",RETURN_CHAPTER_LIST:"Zur Kapitelübersicht zurückkehren",PAGES_LOADED:"Seiten geladen",GO_TO_PAGE:"Gehe zu Seite",ENLARGE:"Vergrößern",RESTORE:"Wiederherstellen",REDUCE:"Wiederherstellen",FIT_WIDTH:"Breite anpassen",FIT_HEIGHT:"Höhe anpassen",PERCENT:"Prozent",TOGGLE_CONTROLS:"Seitensteuerung umschalten",ZOOM_IN:"Hineinzoomen",ZOOM_OUT:"Herauszoomen",ZOOM_RESET:"Zoom zurücksetzen",ZOOM_WIDTH:"Auf Breite zoomen",ZOOM_HEIGHT:"Auf Höhe zoomen",HIDE:"Ausblenden",RELOAD:"Neu laden",SLOWLY:"Langsam",NORMAL:"Normal",FAST:"Schnell",EXTREME:"Extrem",ALL_PAGES:"Alle Seiten",SPEED_WARNING:"Ladegeschwindigkeit zu hoch",SPEED_WARNING_MESSAGE:"Diese Geschwindigkeit wird nicht empfohlen.<br/> Sie kann einige Server überlasten oder deine IP als DDoS-Angreifer markieren.<br/> Bitte mit Vorsicht verwenden!",SCROLL_UP:"Nach oben scrollen",SCROLL_DOWN:"Nach unten scrollen",CLOSE:"Schließen",CANCEL:"Abbrechen",LIST_EMPTY:"Liste leer",SCROLL_START:"Auto-Scroll umschalten",INCREASE_SPEED:"Scrollgeschwindigkeit erhöhen",DECREASE_SPEED:"Scrollgeschwindigkeit verringern",AUTO_SCROLL_HEIGHT:"Auto-Scroll-Geschwindigkeit in Pixel",VERTICAL_SEPARATOR:"Vertikale Trenner anzeigen",END:"Ende",SCOPE:"Bereich",GLOBAL:"Global",GENERAL:"Allgemein",LOADING:"Lädt",ZOOM:"Zoom",OTHERS:"Sonstiges",NAVBAR_TYPE:"Navigationsleistentyp ändern",NAVBAR_BOTTOM:"Unten",NAVBAR_LEFT:"Links",NAVBAR_RIGHT:"Rechts",NAVBAR_DISABLED:"Deaktiviert",PAGINATION_TYPE:"Paginierungstyp",PAGINATION_DISABLED:"Deaktiviert",PAGINATION_SLIDER:"Schieberegler",PAGINATION_ARROWS:"Seitenpfeile",PAGINATION_BOTH:"Beides",FILE_MENU:"Hauptmenü",VIEW_MENU:"Menü „Ansicht“",ZOOM_MENU:"Zoom-Menü",DOUBLE_PAGE:"Doppelseite umschalten",CHOOSE_FILE:"Datei auswählen",NO_FILES_SELECTED:"Keine Dateien ausgewählt"},Pp={ID:"en_US",NAME:"English (US)",STARTING:"Starting Manga OnlineViewer",RESUME:"Resuming reading from Page ",WAITING:"Please wait, 3 seconds...",CHOOSE_BEGINNING:"Choose the Page to start from:",BUTTON_START:"Start Manga OnlineViewer",SETTINGS:"Settings",LANGUAGE:"Language",COLOR_SCHEME:"Color Scheme",THEME:"Theme",THEME_COLOR:"Color",THEME_HUE:"Color Hue",THEME_SHADE:"Color Shade",DEFAULT_LOAD_MODE:"Default Load Mode",LOAD_MODE_NORMAL:"Normal(Wait 3 sec)",LOAD_MODE_ALWAYS:"Always(Immediately)",LOAD_MODE_NEVER:"Never(Manually)",LOAD_SPEED:"Load Speed",DEFAULT_ZOOM:"Default Zoom (between 5 and 200)",DEFAULT_ZOOM_MODE:"Default Zoom Mode",MINIMUM_ZOOM:"Minimum Zoom relative to the width of screen (between 30 and 100)",ZOOM_STEP:"Zoom Change Step (between 5 and 50)",DEFAULT_VIEW_MODE:"Default View Mode",VIEW_MODE_VERTICAL:"Vertical",VIEW_MODE_LEFT:"Horizontal - Left to Right",VIEW_MODE_RIGHT:"Horizontal - Right to Left",VIEW_MODE_WEBCOMIC:"WebComic",VIEW_MODE_BOOK:"Book - Left to Right",VIEW_MODE_MANGA:"Manga - Right to Left",VIEW_MODE_GALLERY:"Gallery",FIT_WIDTH_OVERSIZED:"Fit Width if Oversized",SHOW_THUMBNAILS:"Show Thumbnails",HIDE_CONTROLS:"Always Hide Page Controls",HEADER_TYPE:"Change Header Type",HEADER_HOVER:"Hover",HEADER_SCROLL:"Scroll",HEADER_CLICK:"Click",HEADER_FIXED:"Fixed",HEADER_SIMPLE:"Simple",BUTTON_DOWNLOAD:"Download",DOWNLOAD_ZIP:"Download Zip file",DOWNLOAD_IMAGES:"Download Images as Zip Automatically",DOWNLOAD_PROGRESS:"Downloading: ##num## of ##total##",GENERATING_ZIP:"Generating Zip file...",DOWNLOAD_INCOMPLETE:"Download Incomplete",DOWNLOAD_INCOMPLETE_MESSAGE:"Some pages failed to download and were skipped. A list of failed pages has been added to the ZIP file.",BUTTON_NEXT:"Next",NEXT_CHAPTER:"Next Chapter",BUTTON_PREVIOUS:"Previous",PREVIOUS_CHAPTER:"Previous Chapter",BOOKMARKS:"Bookmarks",BOOKMARK:"Bookmark",BOOKMARK_REMOVED:"Bookmark Removed",BOOKMARK_SAVED:"Bookmark Saved",BOOKMARK_MESSAGE:"Next time you open this chapter it will resume from: Page ##num## (Only ONCE per Bookmark)",KEYBINDINGS:"Keybindings",EDIT_KEYBINDS:"Edit KeyBindings",SAVE_KEYBINDS:"Save KeyBindings",BUTTON_EDIT:"Edit",BUTTON_SAVE:"Save",KEYBIND_RULES:`
    <h3>Supported Keys</h3>
    Allowed modifiers: shift, option, alt, ctrl, control, command. <br/>
    Special keys: backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete, f1 - f19, num_0 - num_9, num_multiply, num_add, num_enter, num_subtract, num_decimal, num_divide. <br/>
    Examples: <kbd>a</kbd>, <kbd>ctrl+a</kbd> , <kbd>shift+a</kbd> , <kbd>num_2</kbd> , <kbd>2</kbd>
  `,ATTENTION:"Attention",WARNING:"Warning",BUTTON_RESET_SETTINGS:"Reset Settings",SETTINGS_RESET:"Settings have been reset, reload the page to take effect",LANGUAGE_CHANGED:"Language has been changed, reload the page to take effect",AUTO_DOWNLOAD:"Next time a chapter finish loading you will be prompted to save automatically",LAZY_LOAD:"Lazy load is incompatible with zip download, you will not be able to download with this setting ON.<br/> Suggestion: <span style='color:red;font-weight:bold'>Disable Thumbnails</span> to save Bandwidth/Memory.",LAZY_LOAD_IMAGES_ENABLE:"Enable Lazy Load Images",LAZY_LOAD_IMAGES:"Lazy Start From Page (between 5 and 100)",RETURN_CHAPTER_LIST:"Return to Chapter List",PAGES_LOADED:"Pages Loaded",GO_TO_PAGE:"Go to Page",ENLARGE:"Enlarge",RESTORE:"Restore",REDUCE:"Reduce",FIT_WIDTH:"Fit Width",FIT_HEIGHT:"Fit Height",PERCENT:"Percent",TOGGLE_CONTROLS:"Toggle page controls",ZOOM_IN:"Zoom In",ZOOM_OUT:"Zoom Out",ZOOM_RESET:"Zoom Reset",ZOOM_WIDTH:"Zoom to Width",ZOOM_HEIGHT:"Zoom to Height",HIDE:"Hide",RELOAD:"Reload",SLOWLY:"Slowly",NORMAL:"Normal",FAST:"Fast",EXTREME:"Extreme",ALL_PAGES:"All Pages",SPEED_WARNING:"Loading Speed too High",SPEED_WARNING_MESSAGE:"This speed is not recommended.<br/> It may hurt some servers or get your IP marked as DDoS attacker.<br/> Please use with caution!",SCROLL_UP:"Scroll Up",SCROLL_DOWN:"Scroll Down",CLOSE:"Close",CANCEL:"Cancel",LIST_EMPTY:"List Empty",SCROLL_START:"Toggle Auto Scroll",INCREASE_SPEED:"Increase Scroll Speed",DECREASE_SPEED:"Decrease Scroll Speed",AUTO_SCROLL_HEIGHT:"Auto Scroll Speed in Pixels",VERTICAL_SEPARATOR:"Show Vertical Separators",END:"End",SCOPE:"Scope",GLOBAL:"Global",GENERAL:"General",LOADING:"Loading",ZOOM:"Zoom",OTHERS:"Others",NAVBAR_TYPE:"Change Navbar Type",NAVBAR_BOTTOM:"Bottom",NAVBAR_LEFT:"Left",NAVBAR_RIGHT:"Right",NAVBAR_DISABLED:"Disabled",PAGINATION_TYPE:"Pagination Type",PAGINATION_DISABLED:"Disabled",PAGINATION_SLIDER:"Slider",PAGINATION_ARROWS:"Side Arrows",PAGINATION_BOTH:"Both",FILE_MENU:"Main Menu",VIEW_MENU:"View Menu",ZOOM_MENU:"Zoom Menu",DOUBLE_PAGE:"Toggle Double Page",CHOOSE_FILE:"Choose File",NO_FILES_SELECTED:"No files selected"},$p={ID:"es_ES",NAME:"Español (ES)",STARTING:"Iniciando Manga OnlineViewer",RESUME:"Continuando lectura desde la Página ",WAITING:"Por favor espere, 3 segundos...",CHOOSE_BEGINNING:"Elija la página en la que comenzar:",BUTTON_START:"Iniciar Manga OnlineViewer",SETTINGS:"Ajustes",LANGUAGE:"Idioma",COLOR_SCHEME:"Esquema de color",THEME:"Tema",THEME_COLOR:"Color",THEME_HUE:"Matiz del color",THEME_SHADE:"Saturación del color",DEFAULT_LOAD_MODE:"Modo de carga por defecto",LOAD_MODE_NORMAL:"Normal (Espera 3s)",LOAD_MODE_ALWAYS:"Siempre (Inmediatamente)",LOAD_MODE_NEVER:"Nunca (Manualmente)",LOAD_SPEED:"Velocidad carga",DEFAULT_ZOOM:"Zoom por defecto (entre 5 y 200)",DEFAULT_ZOOM_MODE:"Modo de zoom por defecto",MINIMUM_ZOOM:"Zoom mínimo relativo al ancho de la pantalla",ZOOM_STEP:"Paso entre cambios de zoom (entre 5 y 50)",DEFAULT_VIEW_MODE:"Modo de visualización por defecto",VIEW_MODE_VERTICAL:"Vertical",VIEW_MODE_LEFT:"Horizontal - Izquierda a derecha",VIEW_MODE_RIGHT:"Horizontal - Derecha a izquierda",VIEW_MODE_WEBCOMIC:"WebComic",VIEW_MODE_BOOK:"Libro - Izquierda a derecha",VIEW_MODE_MANGA:"Manga - Derecha a izquierda",VIEW_MODE_GALLERY:"Galería",FIT_WIDTH_OVERSIZED:"Ajustar ancho si es demasiado grande",SHOW_THUMBNAILS:"Mostrar miniaturas",HIDE_CONTROLS:"Ocultar siempre la barra de controles",HEADER_TYPE:"Cambiar tipo de cabecera",HEADER_HOVER:"Pasar por encima",HEADER_SCROLL:"Desplazamiento",HEADER_CLICK:"Hacer click",HEADER_FIXED:"Fijo",HEADER_SIMPLE:"Sencillo",BUTTON_DOWNLOAD:"Descargar",DOWNLOAD_ZIP:"Descargar fichero Zip",DOWNLOAD_IMAGES:"Autodescargar imágenes como Zip",DOWNLOAD_PROGRESS:"Descargando: ##num## de ##total##",GENERATING_ZIP:"Generando archivo Zip...",DOWNLOAD_INCOMPLETE:"Descarga Incompleta",DOWNLOAD_INCOMPLETE_MESSAGE:"Algunas páginas no se pudieron descargar y se saltaron. Se ha añadido una lista de páginas fallidas al archivo ZIP.",BUTTON_NEXT:"Siguiente",NEXT_CHAPTER:"Siguiente capítulo",BUTTON_PREVIOUS:"Anterior",PREVIOUS_CHAPTER:"Capítulo anterior",BOOKMARKS:"Marcadores",BOOKMARK:"Marcador",BOOKMARK_REMOVED:"Marcador eliminado",BOOKMARK_SAVED:"Marcador guardado",BOOKMARK_MESSAGE:"La próxima vez que abra este capítulo, continuará desde la página ##num## (Sólo UNA VEZ por Marcador)",KEYBINDINGS:"Atajos de teclado",EDIT_KEYBINDS:"Editar atajos",SAVE_KEYBINDS:"Guardar atajos",BUTTON_EDIT:"Editar",BUTTON_SAVE:"Guardar",KEYBIND_RULES:`
    <h3>Teclas soportadas</h3>
    Modificadores permitidos: shift, option, alt, ctrl, control, command. <br/>
    Teclas especiales: backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete, f1 - f19, num_0 - num_9, num_multiply, num_add, num_enter, num_subtract, num_decimal, num_divide. <br/>
    Ejemplos: <kbd>a</kbd>, <kbd>ctrl+a</kbd> , <kbd>shift+a</kbd> , <kbd>num_2</kbd> , <kbd>2</kbd>
  `,ATTENTION:"Atención",WARNING:"Alerta",BUTTON_RESET_SETTINGS:"Reiniciar ajustes(Reset Settings)",SETTINGS_RESET:"Se han restablecido los ajustes, vuelve a cargar la página para que surta efecto",LANGUAGE_CHANGED:"Se ha cambiado el idioma, vuelve a cargar la página para que surta efecto",AUTO_DOWNLOAD:"La próxima vez que termine de cargarse un capítulo, se le pedirá que guarde automáticamente",LAZY_LOAD:"La carga diferida es incompatible con la descarga zip, no podrá descargar con este ajuste activado.<br/> Sugerencia: <span style='color:red;font-weight:bold'>Desactivar miniaturas</span> para ahorrar Ancho de banda/Memoria.",LAZY_LOAD_IMAGES_ENABLE:"Habilitar carga de imágenes diferida",LAZY_LOAD_IMAGES:"Empezar carga diferida a partir de la página (entre 5 y 100)",RETURN_CHAPTER_LIST:"Regresar a la lista de capítulos",PAGES_LOADED:"Páginas cargadas",GO_TO_PAGE:"Ir a página",ENLARGE:"Agrandar",RESTORE:"Restaurar",REDUCE:"Reducir",FIT_WIDTH:"Ajustar al ancho",FIT_HEIGHT:"Ajustar al alto",PERCENT:"Porcentual",TOGGLE_CONTROLS:"Alternar controles de página",ZOOM_IN:"Acercar",ZOOM_OUT:"Alejar",ZOOM_RESET:"Restablecer zoom",ZOOM_WIDTH:"Zoom al ancho",ZOOM_HEIGHT:"Zoom al alto",HIDE:"Ocultar",RELOAD:"Recargar",SLOWLY:"Lento",NORMAL:"Normal",FAST:"Rápido",EXTREME:"Extremo",ALL_PAGES:"Todas las páginas",SPEED_WARNING:"Velocidad de carga muy alta",SPEED_WARNING_MESSAGE:"No se recomienda esta velocidad.<br/> Puede dañar algunos servidores o marcar su IP como atacante DDoS.<br/> ¡Utilícelo con precaución!",SCROLL_UP:"Desplazar arriba",SCROLL_DOWN:"Desplazarse hacia abajo",CLOSE:"Cerrar",CANCEL:"Cancelar",LIST_EMPTY:"Lista vacía",SCROLL_START:"Alternar desplazamiento automático",INCREASE_SPEED:"Aumentar la velocidad de desplazamiento",DECREASE_SPEED:"Disminuir la velocidad de desplazamiento",AUTO_SCROLL_HEIGHT:"Velocidad de desplazamiento automático en píxeles",VERTICAL_SEPARATOR:"Mostrar separadores verticales",END:"Fin",SCOPE:"Alcance",GLOBAL:"Global",GENERAL:"General",LOADING:"Carga",ZOOM:"Zoom",OTHERS:"Otros",NAVBAR_TYPE:"Cambiar el tipo de barra de navegación",NAVBAR_BOTTOM:"Abajo",NAVBAR_LEFT:"Izquierda",NAVBAR_RIGHT:"Derecha",NAVBAR_DISABLED:"Desactivado",PAGINATION_TYPE:"Tipo de paginación",PAGINATION_DISABLED:"Desactivado",PAGINATION_SLIDER:"Control deslizante",PAGINATION_ARROWS:"Flechas laterales",PAGINATION_BOTH:"Ambos",FILE_MENU:"Menú principal",VIEW_MENU:"Ver menú",ZOOM_MENU:"Menú Zoom",DOUBLE_PAGE:"Alternar Página Doble",CHOOSE_FILE:"Elegir archivo",NO_FILES_SELECTED:"No se han seleccionado archivos"},Dp={ID:"fr_FR",NAME:"Français (FR)",STARTING:"Démarrage Manga OnlineViewer",RESUME:"Reprise de la lecture à partir de la Page ",WAITING:"Veuillez patienter, 3 secondes...",CHOOSE_BEGINNING:"Choisissez la page par laquelle commencer :",BUTTON_START:"Démarrer Manga OnlineViewer",SETTINGS:"Paramètres",LANGUAGE:"Langue",COLOR_SCHEME:"Palette de couleurs",THEME:"Thème",THEME_COLOR:"Couleur",THEME_HUE:"Teinte de couleur",THEME_SHADE:"Nuance de couleur",DEFAULT_LOAD_MODE:"Mode de chargement par défaut",LOAD_MODE_NORMAL:"Normal (attendre 3 s)",LOAD_MODE_ALWAYS:"Toujours (immédiatement)",LOAD_MODE_NEVER:"Jamais (manuellement)",LOAD_SPEED:"Vitesse de chargement",DEFAULT_ZOOM:"Zoom par défaut (entre 5 et 200)",DEFAULT_ZOOM_MODE:"Mode de zoom par défaut",MINIMUM_ZOOM:"Zoom minimum par rapport à la largeur de l'écran (entre 30 et 100)",ZOOM_STEP:"Pas de changement de zoom (entre 5 et 50)",DEFAULT_VIEW_MODE:"Mode d'affichage par défaut",VIEW_MODE_VERTICAL:"Vertical",VIEW_MODE_LEFT:"Horizontal - De gauche à droite",VIEW_MODE_RIGHT:"Horizontal - De droite à gauche",VIEW_MODE_WEBCOMIC:"WebComic",VIEW_MODE_BOOK:"Livre - De gauche à droite",VIEW_MODE_MANGA:"Manga - De droite à gauche",VIEW_MODE_GALLERY:"Galerie",FIT_WIDTH_OVERSIZED:"Ajuster à la largeur si surdimensionné",SHOW_THUMBNAILS:"Afficher les vignettes",HIDE_CONTROLS:"Toujours masquer les contrôles de page",HEADER_TYPE:"Changer le type d'en-tête",HEADER_HOVER:"Survol",HEADER_SCROLL:"Défilement",HEADER_CLICK:"Clic",HEADER_FIXED:"Fixe",HEADER_SIMPLE:"Simple",BUTTON_DOWNLOAD:"Télécharger",DOWNLOAD_ZIP:"Télécharger le fichier Zip",DOWNLOAD_IMAGES:"Télécharger les images en Zip automatiquement",DOWNLOAD_PROGRESS:"Téléchargement : ##num## sur ##total##",GENERATING_ZIP:"Génération du fichier Zip...",DOWNLOAD_INCOMPLETE:"Téléchargement incomplet",DOWNLOAD_INCOMPLETE_MESSAGE:"Certaines pages n'ont pas pu être téléchargées et ont été ignorées. Une liste des pages concernées a été ajoutée au fichier ZIP.",BUTTON_NEXT:"Suivant",NEXT_CHAPTER:"Chapitre suivant",BUTTON_PREVIOUS:"Précédent",PREVIOUS_CHAPTER:"Chapitre précédent",BOOKMARKS:"Favoris",BOOKMARK:"Favori",BOOKMARK_REMOVED:"Favori supprimé",BOOKMARK_SAVED:"Favori enregistré",BOOKMARK_MESSAGE:"La prochaine fois que vous ouvrirez ce chapitre, il reprendra à partir de: Page ##num## (Seulement UNE FOIS par favori)",KEYBINDINGS:"Raccourcis clavier",EDIT_KEYBINDS:"Modifier les raccourcis clavier",SAVE_KEYBINDS:"Enregistrer les raccourcis clavier",BUTTON_EDIT:"Modifier",BUTTON_SAVE:"Enregistrer",KEYBIND_RULES:`
    <h3>Touches prises en charge</h3>
    Modificateurs autorisés : shift, option, alt, ctrl, control, command. <br/>
    Touches spéciales : backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete, f1 - f19, num_0 - num_9, num_multiply, num_add, num_enter, num_subtract, num_decimal, num_divide. <br/>
    Exemples : <kbd>a</kbd>, <kbd>ctrl+a</kbd> , <kbd>shift+a</kbd> , <kbd>num_2</kbd> , <kbd>2</kbd>
  `,ATTENTION:"Attention",WARNING:"Avertissement",BUTTON_RESET_SETTINGS:"Réinitialiser les paramètres",SETTINGS_RESET:"Les paramètres ont été réinitialisés, rechargez la page pour prendre effet",LANGUAGE_CHANGED:"La langue a été modifiée, rechargez la page pour prendre effet",AUTO_DOWNLOAD:"La prochaine fois qu'un chapitre finira de se charger, il vous sera proposé de l'enregistrer automatiquement",LAZY_LOAD:"Le chargement paresseux est incompatible avec le téléchargement zip, vous ne pourrez pas télécharger avec ce paramètre activé.<br/> Suggestion : <span style='color:red;font-weight:bold'>Désactivez les vignettes</span> pour économiser de la bande passante/mémoire.",LAZY_LOAD_IMAGES_ENABLE:"Activer le chargement paresseux des images",LAZY_LOAD_IMAGES:"Début du chargement paresseux à partir de la page (entre 5 et 100)",RETURN_CHAPTER_LIST:"Retour à la liste des chapitres",PAGES_LOADED:"Pages chargées",GO_TO_PAGE:"Aller à la page",ENLARGE:"Agrandir",RESTORE:"Restaurer",REDUCE:"Réduire",FIT_WIDTH:"Ajuster à la largeur",FIT_HEIGHT:"Ajuster à la hauteur",PERCENT:"Pourcentage",TOGGLE_CONTROLS:"Basculer les contrôles de page",ZOOM_IN:"Zoom avant",ZOOM_OUT:"Zoom arrière",ZOOM_RESET:"Réinitialiser le zoom",ZOOM_WIDTH:"Zoomer à la largeur",ZOOM_HEIGHT:"Zoomer à la hauteur",HIDE:"Masquer",RELOAD:"Recharger",SLOWLY:"Lentement",NORMAL:"Normal",FAST:"Rapide",EXTREME:"Extrême",ALL_PAGES:"Toutes les pages",SPEED_WARNING:"Vitesse de chargement trop élevée",SPEED_WARNING_MESSAGE:"Cette vitesse n'est pas recommandée.<br/> Elle peut nuire à certains serveurs ou marquer votre IP comme un attaquant DDoS.<br/> Veuillez l'utiliser avec prudence !",SCROLL_UP:"Faire défiler vers le haut",SCROLL_DOWN:"Faire défiler vers le bas",CLOSE:"Fermer",CANCEL:"Annuler",LIST_EMPTY:"Liste vide",SCROLL_START:"Basculer le défilement automatique",INCREASE_SPEED:"Augmenter la vitesse de défilement",DECREASE_SPEED:"Diminuer la vitesse de défilement",AUTO_SCROLL_HEIGHT:"Vitesse de défilement automatique en pixels",VERTICAL_SEPARATOR:"Afficher les séparateurs verticaux",END:"Fin",SCOPE:"Portée",GLOBAL:"Global",GENERAL:"Général",LOADING:"Chargement",ZOOM:"Zoom",OTHERS:"Autres",NAVBAR_TYPE:"Changer le type de barre de navigation",NAVBAR_BOTTOM:"Bas",NAVBAR_LEFT:"Gauche",NAVBAR_RIGHT:"Droite",NAVBAR_DISABLED:"Désactivé",PAGINATION_TYPE:"Type de pagination",PAGINATION_DISABLED:"Désactivé",PAGINATION_SLIDER:"Curseur",PAGINATION_ARROWS:"Flèches latérales",PAGINATION_BOTH:"Les deux",FILE_MENU:"Menu principal",VIEW_MENU:"Menu Affichage",ZOOM_MENU:"Menu Zoom",DOUBLE_PAGE:"Basculer Double Page",CHOOSE_FILE:"Choisir un fichier",NO_FILES_SELECTED:"Aucun fichier sélectionné"},zp={ID:"pt_BR",NAME:"Portugues (Brasil)",STARTING:"Iniciando Manga OnlineViewer",RESUME:"Continuando leitura na Pagina ",WAITING:"Por Favor espere, 3 segundos...",CHOOSE_BEGINNING:"Escolha a pagina de onde começar:",BUTTON_START:"Iniciar Manga OnlineViewer",SETTINGS:"Configurações",LANGUAGE:"Idioma",COLOR_SCHEME:"Esquema de Color",THEME:"Tema",THEME_COLOR:"Cor",THEME_HUE:"Tom da Cor",THEME_SHADE:"Saturação da Cor",DEFAULT_LOAD_MODE:"Forma de Carregamento Padrão",LOAD_MODE_NORMAL:"Normal(Esperando 3 sec)",LOAD_MODE_ALWAYS:"Sempre(Imediatamente)",LOAD_MODE_NEVER:"Nunca(Manualmente)",LOAD_SPEED:"Velocidade de Carregamento",DEFAULT_ZOOM:"Zoom padrão (entre 5 e 200)",DEFAULT_ZOOM_MODE:"Modo de Zoom padrão",MINIMUM_ZOOM:"Zoom minimo, relativo ao tamanho da tela (entre 30 e 100)",ZOOM_STEP:"Precisão da Mudança do Zoom (entre 5 e 50)",DEFAULT_VIEW_MODE:"Modo de Visualização Padrão",VIEW_MODE_VERTICAL:"Vertical",VIEW_MODE_LEFT:"Horizontal - Esquerda para Direita",VIEW_MODE_RIGHT:"Horizontal - Direita para Esquerda",VIEW_MODE_WEBCOMIC:"WebComic",VIEW_MODE_BOOK:"Livro - Esquerda para Direita",VIEW_MODE_MANGA:"Mangá - Direita para Esquerda",VIEW_MODE_GALLERY:"Galeria",FIT_WIDTH_OVERSIZED:"Encher a tela se grande demais",SHOW_THUMBNAILS:"Mostra Miniaturas",HIDE_CONTROLS:"Sempre esconder controles das paginas",HEADER_TYPE:"Mudar Tipo de Cabeçalho",HEADER_HOVER:"Passar por perto",HEADER_SCROLL:"Rolagem do Mouse",HEADER_CLICK:"Click",HEADER_FIXED:"Fixo",HEADER_SIMPLE:"Simples",BUTTON_DOWNLOAD:"Download",DOWNLOAD_ZIP:"Baixar arquivo Zip",DOWNLOAD_IMAGES:"Download das Imagens como Zip Automaticamente",DOWNLOAD_PROGRESS:"Baixando: ##num## de ##total##",GENERATING_ZIP:"Gerando arquivo Zip...",DOWNLOAD_INCOMPLETE:"Download Incompleto",DOWNLOAD_INCOMPLETE_MESSAGE:"Algumas páginas falharam ao baixar e foram puladas. Uma lista de páginas que falharam foi adicionada ao arquivo ZIP.",BUTTON_NEXT:"Proximo",NEXT_CHAPTER:"Proximo Capitulo",BUTTON_PREVIOUS:"Anterior",PREVIOUS_CHAPTER:"Capitulo Anterior",BOOKMARKS:"Marca paginas",BOOKMARK:"Marcar pagina",BOOKMARK_REMOVED:"Marca pagina Removido",BOOKMARK_SAVED:"Marca pagina Salvo",BOOKMARK_MESSAGE:"Proxima vez que abrir este capitulo continuará a partir da Pagina ##num## (Apenas UMA VEZ por marca pagina)",KEYBINDINGS:"Atalhos",EDIT_KEYBINDS:"Editar Atalhos",SAVE_KEYBINDS:"Salvar Atalhos",BUTTON_EDIT:"Editar",BUTTON_SAVE:"Salvar",KEYBIND_RULES:`
    <h3>Teclas Suportadas</h3>
    Modificadores permitidos: shift, option, alt, ctrl, control, command. <br/>
    Teclas Especiais: backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete, f1 - f19, num_0 - num_9, num_multiply, num_add, num_enter, num_subtract, num_decimal, num_divide.<br/>
    Exemplos: <kbd>a</kbd>, <kbd>ctrl+a</kbd> , <kbd>shift+a</kbd> , <kbd>num_2</kbd> , <kbd>2</kbd>
  `,ATTENTION:"Atenção",WARNING:"Alerta",BUTTON_RESET_SETTINGS:"Limpar Configurações(Reset Settings)",SETTINGS_RESET:"Configurações foram limpas, recarregue o site para efetivar a alteração",LANGUAGE_CHANGED:"Idioma foi alterado, recarregue o site para efetivar a alteração",AUTO_DOWNLOAD:"Proxima vez que abrir um capitulo download iniciara automaticamente",LAZY_LOAD:"Carregamento preguiçoso não é compativel com download de zip, não conseguira com essa configuração ativa.<br/> Sugestão: <span style='color:red;font-weight:bold'>Desative Miniaturas</span> para economizar memoria e cota de internet.",LAZY_LOAD_IMAGES_ENABLE:"Ativar Carregamento de imagens preguiçoso",LAZY_LOAD_IMAGES:"Carregamento de paginas preguiçoso começa a partir de (entre 5 e 100)",RETURN_CHAPTER_LIST:"Voltar a lista de Capitulos",PAGES_LOADED:"Paginas Carregadas",GO_TO_PAGE:"Pular para",ENLARGE:"Aumentar",RESTORE:"Restaurar",REDUCE:"Diminuir",FIT_WIDTH:"Preencher Largura",FIT_HEIGHT:"Preencher Altura ",PERCENT:"Percentual",TOGGLE_CONTROLS:"Mostar controles de pagina",ZOOM_IN:"Mais Zoom",ZOOM_OUT:"Menos Zoom",ZOOM_RESET:"Resetar Zoom",ZOOM_WIDTH:"Zoom para Largura",ZOOM_HEIGHT:"Zoom para Altura",HIDE:"Esconder",RELOAD:"Recarregar",SLOWLY:"Devagar",NORMAL:"Normal",FAST:"Rapido",EXTREME:"Extremo",ALL_PAGES:"Todas as Paginas",SPEED_WARNING:"Velocidade de Carregamento muito alta",SPEED_WARNING_MESSAGE:"Essa velocidade não é recomendada.<br/> Ela pode derrubar um servidor or marcar voce como um ataque hacker de DDoS.<br/> Use com cuidado!",SCROLL_UP:"Subir Pagina",SCROLL_DOWN:"Descer Pagina",CLOSE:"Fechar",CANCEL:"Cancelar",LIST_EMPTY:"Lista Vazia",SCROLL_START:"Ativar Rolagem Automatica",INCREASE_SPEED:"Aumentar Valocidade da Rolagem",DECREASE_SPEED:"Diminuir Valocidade da Rolagem",AUTO_SCROLL_HEIGHT:"Velocidade da Rolagem Automatica em Pixels",VERTICAL_SEPARATOR:"Mostrar Separadores Verticais",END:"Fin",SCOPE:"Escopo",GLOBAL:"Global",GENERAL:"Geral",LOADING:"Carregamento",ZOOM:"Zoom",OTHERS:"Outros",NAVBAR_TYPE:"Mudar barra de navegação",NAVBAR_BOTTOM:"Embaixo",NAVBAR_LEFT:"Esquerda",NAVBAR_RIGHT:"Direita",NAVBAR_DISABLED:"Desativado",PAGINATION_TYPE:"Tipo de Paginação",PAGINATION_DISABLED:"Desativado",PAGINATION_SLIDER:"Controle deslizante",PAGINATION_ARROWS:"Setas Laterais",PAGINATION_BOTH:"Ambos",FILE_MENU:"Menu Principal",VIEW_MENU:"Menu de Visualizações",ZOOM_MENU:"Menu de Zoom",DOUBLE_PAGE:"Alternar Página Dupla",CHOOSE_FILE:"Escolher arquivo",NO_FILES_SELECTED:"Nenhum arquivo selecionado"},Np={ID:"zh_CN",NAME:"中文 (简体)",STARTING:"正在启动 Manga OnlineViewer",RESUME:"从页面继续阅读 ",WAITING:"请等待3秒钟...",CHOOSE_BEGINNING:"选择要开始的页数:",BUTTON_START:"启动Manga OnlineViewer",SETTINGS:"设置",LANGUAGE:"语言",COLOR_SCHEME:"配色方案",THEME:"主题",THEME_COLOR:"颜色",THEME_HUE:"色相",THEME_SHADE:"色度",DEFAULT_LOAD_MODE:"默认加载模式",LOAD_MODE_NORMAL:"等待模式(等待3秒自动加载 )",LOAD_MODE_ALWAYS:"自动模式(无需等待)",LOAD_MODE_NEVER:"手动模式(点击启动)",LOAD_SPEED:"加载速度",DEFAULT_ZOOM:"默认缩放 (最小 5 最大 200)",DEFAULT_ZOOM_MODE:"默认缩放模式",MINIMUM_ZOOM:"相对于屏幕宽度的最小缩放 (最小 30 最大 100)",ZOOM_STEP:"缩放级别 (最小 5 最大 50)",DEFAULT_VIEW_MODE:"默认视图模式",VIEW_MODE_VERTICAL:"垂直有缝",VIEW_MODE_LEFT:"横向 - 从左到右",VIEW_MODE_RIGHT:"横向 - 从右到左",VIEW_MODE_WEBCOMIC:"垂直无缝",VIEW_MODE_BOOK:"书籍 - 从左到右",VIEW_MODE_MANGA:"漫画 - 从右到左",VIEW_MODE_GALLERY:"图库",FIT_WIDTH_OVERSIZED:"如果尺寸过大、则适合宽度",SHOW_THUMBNAILS:"显示缩略图",HIDE_CONTROLS:"始终隐藏页面控件",HEADER_TYPE:"更改标题显示方式",HEADER_HOVER:"悬停",HEADER_SCROLL:"滚动",HEADER_CLICK:"点击",HEADER_FIXED:"固定",HEADER_SIMPLE:"简单",BUTTON_DOWNLOAD:"下载",DOWNLOAD_ZIP:"下载压缩文件",DOWNLOAD_IMAGES:"自动将图片下载成ZIP",DOWNLOAD_PROGRESS:"正在下载:第 ##num## 页,共 ##total## 页",GENERATING_ZIP:"正在生成 Zip 文件...",DOWNLOAD_INCOMPLETE:"下载不完整",DOWNLOAD_INCOMPLETE_MESSAGE:"部分页面下载失败并已跳过。失败页面列表已添加到 ZIP 文件中。",BUTTON_NEXT:"下一页",NEXT_CHAPTER:"下一章",BUTTON_PREVIOUS:"上一页",PREVIOUS_CHAPTER:"上一章",BOOKMARKS:"书签",BOOKMARK:"Bookmark",BOOKMARK_REMOVED:"删除书签",BOOKMARK_SAVED:"保存书签",BOOKMARK_MESSAGE:"下次打开本章时,将从: 页码 ##num## (仅一次 每个书签)",KEYBINDINGS:"快捷键",EDIT_KEYBINDS:"编辑键绑定",SAVE_KEYBINDS:"保存键绑定",BUTTON_EDIT:"编辑",BUTTON_SAVE:"救",KEYBIND_RULES:`
    <h3>支持的密钥</h3>
    允许的修饰符: shift, option, alt, ctrl, control, command. <br/>
    特殊键: backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete, f1 - f19, num_0 - num_9, num_multiply, num_add, num_enter, num_subtract, num_decimal, num_divide.<br/>
    例子: <kbd>a</kbd>, <kbd>ctrl+a</kbd> , <kbd>shift+a</kbd> , <kbd>num_2</kbd> , <kbd>2</kbd>
  `,ATTENTION:"注意",WARNING:"警告",BUTTON_RESET_SETTINGS:"重置设置(Reset Settings)",SETTINGS_RESET:"设置已重置、重新加载页面才能生效",LANGUAGE_CHANGED:"语言已更改、重新加载页面才能生效",AUTO_DOWNLOAD:"下次章节加载完成时、系统将提示您自动保存",LAZY_LOAD:"延迟加载与zip下载不兼容、您将无法使用此设置下载.<br/> 建议: <span style='color:red;font-weight:bold'>禁用缩略图</span> 以节省流量和内存.",LAZY_LOAD_IMAGES_ENABLE:"启用延迟加载图像",LAZY_LOAD_IMAGES:"惰性加载从页面 (最小 5 最大 100)",RETURN_CHAPTER_LIST:"返回章节列表",PAGES_LOADED:"已加载的页数",GO_TO_PAGE:"转到页数",ENLARGE:"放大",RESTORE:"还原",REDUCE:"缩小",FIT_WIDTH:"适合宽度",FIT_HEIGHT:"适合高度",PERCENT:"百分之",TOGGLE_CONTROLS:"显示隐藏页面控件",ZOOM_IN:"放大",ZOOM_OUT:"缩小",ZOOM_RESET:"还原",ZOOM_WIDTH:"适合宽度",ZOOM_HEIGHT:"适合高度",HIDE:"显示隐藏页面控件",RELOAD:"重新加载",SLOWLY:"慢速",NORMAL:"正常",FAST:"快速",EXTREME:"极端",ALL_PAGES:"所有页面",SPEED_WARNING:"加载速度过高",SPEED_WARNING_MESSAGE:"不建议使用此速度.<br/>它可能会伤害某些服务器或将您的 IP 标记为 DDoS 攻击者.<br/>请谨慎使用!",SCROLL_UP:"向上滚动",SCROLL_DOWN:"向下滚动",CLOSE:"关闭",CANCEL:"取消",LIST_EMPTY:"没有收藏书签",SCROLL_START:"切换自动滚动",INCREASE_SPEED:"增加滚动速度",DECREASE_SPEED:"降低滚动速度",AUTO_SCROLL_HEIGHT:"自动滚动速度(以像素为单位)",VERTICAL_SEPARATOR:"显示垂直分隔符",END:"结尾",SCOPE:"范围",GLOBAL:"全球",GENERAL:"常规",LOADING:"装载",ZOOM:"缩放",OTHERS:"别人",NAVBAR_TYPE:"更改导航栏类型",NAVBAR_BOTTOM:"底部",NAVBAR_LEFT:"左边",NAVBAR_RIGHT:"正确的",NAVBAR_DISABLED:"已禁用",PAGINATION_TYPE:"分页类型",PAGINATION_DISABLED:"已禁用",PAGINATION_SLIDER:"滑块",PAGINATION_ARROWS:"侧边箭头",PAGINATION_BOTH:"两者",FILE_MENU:"主菜单",VIEW_MENU:"查看菜单",ZOOM_MENU:"缩放菜单",DOUBLE_PAGE:"切换双页",CHOOSE_FILE:"选择文件",NO_FILES_SELECTED:"未选择任何文件"},uo=[Pp,$p,zp,Np,Rp,Dp];function Od(e){return"listImages"in e&&!Er(e.listImages)}function Td(e){return"listPages"in e&&!Er(e.listPages)}function Bp(e){return"bruteForce"in e&&!Er(e.bruteForce)}var ze=(function(e){return e.ENGLISH="English",e.SPANISH="Spanish",e.PORTUGUESE="Portuguese",e.CHINESE="Chinese",e.RAW="Raw",e})({}),He=(function(e){return e.MANGA="manga",e.COMIC="comic",e.HENTAI="hentai",e})({});function Hp(e,t){return t in e}var Xi=globalThis,Bs=Xi.ShadowRoot&&(Xi.ShadyCSS===void 0||Xi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Hs=Symbol(),Ld=new WeakMap,Rd=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==Hs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Bs&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=Ld.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Ld.set(t,e))}return e}toString(){return this.cssText}},Ee=e=>new Rd(typeof e=="string"?e:e+"",void 0,Hs),yt=(e,...t)=>new Rd(e.length===1?e[0]:t.reduce((n,i,a)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[a+1],e[0]),e,Hs),Fp=(e,t)=>{if(Bs)e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of t){const i=document.createElement("style"),a=Xi.litNonce;a!==void 0&&i.setAttribute("nonce",a),i.textContent=n.cssText,e.appendChild(i)}},Pd=Bs?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const i of t.cssRules)n+=i.cssText;return Ee(n)})(e):e,{is:Gp,defineProperty:Wp,getOwnPropertyDescriptor:Up,getOwnPropertyNames:Vp,getOwnPropertySymbols:Zp,getPrototypeOf:qp}=Object,Ji=globalThis,$d=Ji.trustedTypes,jp=$d?$d.emptyScript:"",Kp=Ji.reactiveElementPolyfillSupport,ei=(e,t)=>e,Qi={toAttribute(e,t){switch(t){case Boolean:e=e?jp:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},Fs=(e,t)=>!Gp(e,t),Dd={attribute:!0,type:String,converter:Qi,reflect:!1,useDefault:!1,hasChanged:Fs};Symbol.metadata??=Symbol("metadata"),Ji.litPropertyMetadata??=new WeakMap;var ho=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Dd){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(e,n,t);i!==void 0&&Wp(this.prototype,e,i)}}static getPropertyDescriptor(e,t,n){const{get:i,set:a}=Up(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:i,set(s){const l=i?.call(this);a?.call(this,s),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Dd}static _$Ei(){if(this.hasOwnProperty(ei("elementProperties")))return;const e=qp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ei("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ei("properties"))){const t=this.properties,n=[...Vp(t),...Zp(t)];for(const i of n)this.createProperty(i,t[i])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[n,i]of t)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[t,n]of this.elementProperties){const i=this._$Eu(t,n);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)t.unshift(Pd(i))}else e!==void 0&&t.push(Pd(e));return t}static _$Eu(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Fp(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){const n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){const a=(n.converter?.toAttribute!==void 0?n.converter:Qi).toAttribute(t,n.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){const n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Qi;this._$Em=i;const l=s.fromAttribute(t,a.type);this[i]=l??this._$Ej?.get(i)??l,this._$Em=null}}requestUpdate(e,t,n,i=!1,a){if(e!==void 0){const s=this.constructor;if(i===!1&&(a=this[e]),n??=s.getPropertyOptions(e),!((n.hasChanged??Fs)(a,t)||n.useDefault&&n.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,n))))return;this.C(e,t,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:i,wrapped:a},s){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[i,a]of n){const{wrapped:s}=a,l=this[i];s!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,a,l)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(t)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};ho.elementStyles=[],ho.shadowRootOptions={mode:"open"},ho[ei("elementProperties")]=new Map,ho[ei("finalized")]=new Map,Kp?.({ReactiveElement:ho}),(Ji.reactiveElementVersions??=[]).push("2.1.2");var Gs=globalThis,Je=class extends ho{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ap(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Qr}};Je._$litElement$=!0,Je.finalized=!0,Gs.litElementHydrateSupport?.({LitElement:Je});var Yp=Gs.litElementPolyfillSupport;Yp?.({LitElement:Je}),(Gs.litElementVersions??=[]).push("4.2.2");var ot=e=>(t,n)=>{n!==void 0?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},Xp={attribute:!0,type:String,converter:Qi,reflect:!1,hasChanged:Fs},Jp=(e=Xp,t,n)=>{const{kind:i,metadata:a}=n;let s=globalThis.litPropertyMetadata.get(a);if(s===void 0&&globalThis.litPropertyMetadata.set(a,s=new Map),i==="setter"&&((e=Object.create(e)).wrapped=!0),s.set(n.name,e),i==="accessor"){const{name:l}=n;return{set(h){const u=t.get.call(this);t.set.call(this,h),this.requestUpdate(l,u,e,!0,h)},init(h){return h!==void 0&&this.C(l,void 0,e,h),h}}}if(i==="setter"){const{name:l}=n;return function(h){const u=this[l];t.call(this,h),this.requestUpdate(l,u,e,!0,h)}}throw Error("Unsupported decorator location: "+i)};function j(e){return(t,n)=>typeof n=="object"?Jp(e,t,n):((i,a,s)=>{const l=a.hasOwnProperty(s);return a.constructor.createProperty(s,i),l?Object.getOwnPropertyDescriptor(a,s):void 0})(e,t,n)}function zt(e){return j({...e,state:!0,attribute:!1})}var zd=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,n),n);function en(e,t){return(n,i,a)=>{const s=l=>l.renderRoot?.querySelector(e)??null;if(t){const{get:l,set:h}=typeof i=="object"?n:a??(()=>{const u=Symbol();return{get(){return this[u]},set(f){this[u]=f}}})();return zd(n,i,{get(){let u=l.call(this);return u===void 0&&(u=s(this),(u!==null||this.hasUpdated)&&h.call(this,u)),u}})}return zd(n,i,{get(){return s(this)}})}}var kt=Jo(class extends Ki{constructor(e){if(super(e),e.type!==ji.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(const i in t)t[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(t)}const n=e.element.classList;for(const i of this.st)i in t||(n.remove(i),this.st.delete(i));for(const i in t){const a=!!t[i];a===this.st.has(i)||this.nt?.has(i)||(a?(n.add(i),this.st.add(i)):(n.remove(i),this.st.delete(i)))}return Qr}}),ea=class extends Ki{constructor(e){if(super(e),this.it=Be,e.type!==ji.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Be||e==null)return this._t=void 0,this.it=e;if(e===Qr)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};ea.directiveName="unsafeHTML",ea.resultType=1;var Nd=Jo(ea),Ws=class extends ea{};Ws.directiveName="unsafeSVG",Ws.resultType=2;var Bd=Jo(Ws);function Hd(e){if(e.startsWith("Icon")&&!e.includes("-")&&!e.includes("_"))return e;const t=e.startsWith("Icon")?e.substring(4):e;return`Icon${Me.default.upperFirst(Me.default.camelCase(t))}`}var Qp=".icon-tabler-file-download>:nth-child(n+4){color:gold}.icon-tabler-arrow-autofit-width>:nth-child(n+3),.icon-tabler-arrow-autofit-height>:nth-child(n+3){color:#ff0}.icon-tabler-zoom-in-area>:nth-child(2),.icon-tabler-zoom-in-area>:nth-child(3){color:#0f0}.icon-tabler-zoom-out-area>:nth-child(2){color:red}.icon-tabler-zoom-pan>:nth-child(n+4){color:#96f}.icon-tabler-arrow-autofit-down>:nth-child(n+3),.icon-tabler-arrow-autofit-left>:nth-child(n+3),.icon-tabler-arrow-autofit-right>:nth-child(n+3){color:#28ffbf}.icon-tabler-spacing-vertical>:nth-child(4),.icon-tabler-spacing-horizontal>:nth-child(4){color:#f0f}.icon-tabler-list-numbers>:nth-child(n+5){color:#e48900}.icon-tabler-bookmarks>:nth-child(n+2),.icon-tabler-bookmark>:nth-child(2),.icon-tabler-bookmark-off>:nth-child(2){color:orange}.icon-tabler-bookmark-off>:nth-child(3),.icon-tabler-eye-off>:nth-child(4){color:red}.icon-tabler-zoom-cancel>:nth-child(3),.icon-tabler-zoom-cancel>:nth-child(4){color:#96f}.icon-tabler-zoom-in>:nth-child(3),.icon-tabler-zoom-in>:nth-child(4){color:#0f0}.icon-tabler-zoom-out>:nth-child(3){color:red}.icon-tabler-refresh>:nth-child(n+2){color:#0ff}.icon-tabler-photo>:nth-child(n+2),.icon-tabler-photo-off>:nth-child(n+2){color:silver}.icon-tabler-photo-off>:nth-child(6){color:orange}.icon-tabler-message>:nth-child(2),.icon-tabler-message>:nth-child(3),.icon-tabler-book-arrow-left>:nth-child(7),.icon-tabler-book-arrow-left>:nth-child(8),.icon-tabler-book-arrow-right>:nth-child(7),.icon-tabler-book-arrow-right>:nth-child(8),.icon-tabler-books-return>:nth-child(8),.icon-tabler-books-return>:nth-child(9){color:#adff2f}.icon-tabler-file-percent>:nth-child(2),.icon-tabler-file-percent>:nth-child(5),.icon-tabler-file-percent>:nth-child(6){color:#ff0}.icon-tabler-settings-off>:nth-child(4),.icon-tabler-book-off>:nth-child(7){color:red}",e2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-adjustments-horizontal"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M4 6l8 0"/><path d="M16 6l4 0"/><path d="M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M4 12l2 0"/><path d="M10 12l10 0"/><path d="M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M4 18l11 0"/><path d="M19 18l1 0"/></svg>',t2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-alert-circle"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"/><path d="M12 8v4"/><path d="M12 16h.01"/></svg>',r2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-api-book"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 19a9 9 0 0 1 9 0a9 9 0 0 1 1.006 -.5"/><path d="M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"/><path d="M3 6v13"/><path d="M12 6v13"/><path d="M21 6v6"/><path d="M17.001 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M19.001 15.5v1.5"/><path d="M19.001 21v1.5"/><path d="M22.032 17.25l-1.299 .75"/><path d="M17.27 20l-1.3 .75"/><path d="M15.97 17.25l1.3 .75"/><path d="M20.733 20l1.3 .75"/></svg>',n2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-autofit-down" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 20h-6a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h8"/><path d="M18 4v17"/><path d="M15 18l3 3l3 -3"/></svg>',o2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-autofit-height" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 20h-6a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h6"/><path d="M18 14v7"/><path d="M18 3v7"/><path d="M15 18l3 3l3 -3"/><path d="M15 6l3 -3l3 3"/></svg>',i2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-autofit-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 12v-6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v8"/><path d="M20 18h-17"/><path d="M6 15l-3 3l3 3"/></svg>',a2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-autofit-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 12v-6a2 2 0 0 0 -2 -2h-12a2 2 0 0 0 -2 2v8"/><path d="M4 18h17"/><path d="M18 15l3 3l-3 3"/></svg>',s2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-autofit-width" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 12v-6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v6"/><path d="M10 18h-7"/><path d="M21 18h-7"/><path d="M6 15l-3 3l3 3"/><path d="M18 15l3 3l-3 3"/></svg>',l2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-big-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 15h-8v3.586a1 1 0 0 1 -1.707 .707l-6.586 -6.586a1 1 0 0 1 0 -1.414l6.586 -6.586a1 1 0 0 1 1.707 .707v3.586h8a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1z"/></svg>',c2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-big-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 9h8v-3.586a1 1 0 0 1 1.707 -.707l6.586 6.586a1 1 0 0 1 0 1.414l-6.586 6.586a1 1 0 0 1 -1.707 -.707v-3.586h-8a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1z"/></svg>',d2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-arrows-horizontal"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M7 8l-4 4l4 4"/><path d="M17 8l4 4l-4 4"/><path d="M3 12l18 0"/></svg>',u2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-arrows-left-right"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M21 17l-18 0"/><path d="M6 10l-3 -3l3 -3"/><path d="M3 7l18 0"/><path d="M18 20l3 -3l-3 -3"/></svg>',h2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-arrows-move"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 9l3 3l-3 3"/><path d="M15 12h6"/><path d="M6 9l-3 3l3 3"/><path d="M3 12h6"/><path d="M9 18l3 3l3 -3"/><path d="M12 15v6"/><path d="M15 6l-3 -3l-3 3"/><path d="M12 3v6"/></svg>',f2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-arrows-move-vertical"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 18l3 3l3 -3"/><path d="M12 15v6"/><path d="M15 6l-3 -3l-3 3"/><path d="M12 3v6"/></svg>',p2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-arrows-vertical"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M8 7l4 -4l4 4"/><path d="M8 17l4 4l4 -4"/><path d="M12 3l0 18"/></svg>',g2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-book"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"/><path d="M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"/><path d="M3 6l0 13"/><path d="M12 6l0 13"/><path d="M21 6l0 13"/></svg>',m2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-book-arrow-left"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 19a9 9 0 0 1 9 0a9 9 0 0 1 1.006 -.5"/><path d="M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"/><path d="M3 6v13"/><path d="M12 6v13"/><path d="M21 6v6"/><path d="M16 19h6"/><path d="M19 16l-3 3l3 3"/></svg>',v2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-book-arrow-right"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 19a9 9 0 0 1 9 0a9 9 0 0 1 1.006 -.5"/><path d="M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"/><path d="M3 6v13"/><path d="M12 6v13"/><path d="M21 6v6"/><path d="M16 19h6"/><path d="M19 16l3 3l-3 3"/></svg>',b2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-book-off"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 19a9 9 0 0 1 9 0a9 9 0 0 1 5.899 -1.096"/><path d="M3 6a9 9 0 0 1 2.114 -.884m3.8 -.21c1.07 .17 2.116 .534 3.086 1.094a9 9 0 0 1 9 0"/><path d="M3 6v13"/><path d="M12 6v2m0 4v7"/><path d="M21 6v11"/><path d="M3 3l18 18"/></svg>',w2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-book-upload"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 20h-8a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12v5"/><path d="M11 16h-5a2 2 0 0 0 -2 2"/><path d="M15 16l3 -3l3 3"/><path d="M18 13v9"/></svg>',_2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-bookmark" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"/></svg>',y2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-bookmark-off" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M7.708 3.721a3.982 3.982 0 0 1 2.292 -.721h4a4 4 0 0 1 4 4v7m0 4v3l-6 -4l-6 4v-14c0 -.308 .035 -.609 .1 -.897"/><path d="M3 3l18 18"/></svg>',k2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-bookmarks" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 10v11l-5 -3l-5 3v-11a3 3 0 0 1 3 -3h4a3 3 0 0 1 3 3z"/><path d="M11 3h5a3 3 0 0 1 3 3v11"/></svg>',E2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-books-return"><defs><mask id="arrow-mask"><rect width="24" height="24" fill="white"/><rect x="15" y="15" width="8" height="8" fill="black"/></mask></defs><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 5a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -14"/><path d="M9 5a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -14"/><path d="M5 8h4"/><path d="M9 16h4"/><g mask="url(#arrow-mask)"><path d="M13.803 4.56l2.184 -.53c.562 -.135 1.133 .19 1.282 .732l3.695 13.418a1.02 1.02 0 0 1 -.634 1.219l-.133 .041l-2.184 .53c-.562 .135 -1.133 -.19 -1.282 -.732l-3.695 -13.418a1.02 1.02 0 0 1 .634 -1.219l.133 -.041"/><path d="M14 9l4 -1"/><path d="M16 16l3.923 -.98"/></g><path d="M16 19h6"/><path d="M19 16l-3 3l3 3"/></svg>',A2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-box-align-top"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 10.005h16v-5a1 1 0 0 0 -1 -1h-14a1 1 0 0 0 -1 1v5z"/><path d="M4 15.005v-.01"/><path d="M4 20.005v-.01"/><path d="M9 20.005v-.01"/><path d="M15 20.005v-.01"/><path d="M20 20.005v-.01"/><path d="M20 15.005v-.01"/></svg>',S2='<svg id="Capa_1" enable-background="new 0 0 512 512" height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg"><g><g><g><path d="m427.508 512h-343.02c-5.69 0-10.302-4.612-10.302-10.302v-491.396c0-5.69 4.612-10.302 10.302-10.302h343.02c5.69 0 10.302 4.612 10.302 10.302v491.396c-.001 5.69-4.613 10.302-10.302 10.302z" fill="#f2eff2"/></g></g><path d="m427.512 0h-41.238c5.687 0 10.302 4.615 10.302 10.302v41.156l-18.039 71.714 18.039 81.268v46.358l-18.039 45.164 18.039 24.847v46.358l-10.302 61.227 10.302 32.149v41.156c0 5.687-4.615 10.302-10.302 10.302h41.238c5.687 0 10.302-4.615 10.302-10.302v-491.397c0-5.687-4.615-10.302-10.302-10.302z" fill="#e1dde1"/><g><path d="m243.51 273.63-47.48 104.08-80.61-10.85v-315.4c0-2.85 2.31-5.15 5.15-5.15h30.86c2.13 0 4.03 1.29 4.8 3.27z" fill="#3ad1e0"/><path d="m243.51 273.63-16.68 36.56-101.52-260.61c-.76-1.95-2.64-3.25-4.74-3.27h30.86c2.13 0 4.03 1.29 4.8 3.27z" fill="#22c7db"/><path d="m310.81 465.69h-190.24c-2.84 0-5.15-2.3-5.15-5.15v-93.68c25.18-34.92 65.99-57.81 112.19-58.37l-16.07 35.21 74.5 39.08 29.56 75.9c1.32 3.37-1.17 7.01-4.79 7.01z" fill="#fb33a8"/><path d="m310.81 465.69h-30.92c3.61 0 6.11-3.64 4.79-7.01l-12.92-33.17c-1.92 4.55-2.88 9.61-2.61 14.91.01.13.01.25.01.38 0 5.92-7.39 8.87-11.45 4.36-6.77-7.49-16.03-11.24-25.29-11.24s-18.54 3.75-25.29 11.24c-1.36 1.52-3.11 2.19-4.83 2.19-3.48 0-6.84-2.78-6.62-6.93.03-.59.04-1.18.04-1.77 0-19.36-16.23-34.99-35.81-33.99-.12.01-.24.01-.37.01-5.92 0-8.87-7.4-4.37-11.46 7.49-6.76 11.24-16.03 11.24-25.29s-3.75-18.52-11.24-25.29c-1.51-1.36-2.18-3.1-2.18-4.81 0-3.48 2.78-6.84 6.92-6.64.6.04 1.19.05 1.77.05 12.81 0 23.98-7.11 29.79-17.57l34.29-1.12-14.22 31.16 74.5 39.08 29.56 75.9c1.32 3.37-1.17 7.01-4.79 7.01z" fill="#fb33a8"/><path d="m396.58 51.46v152.98c0 2.84-2.31 5.15-5.15 5.15h-32l-40.41-29.31-40.41 29.31h-17.82c-2.12 0-4.03-1.3-4.8-3.28l-59.6-152.98c-1.32-3.38 1.18-7.02 4.79-7.02h190.25c2.84 0 5.15 2.3 5.15 5.15z" fill="#fcb44d"/><path d="m396.576 51.457v152.982c0 2.843-2.308 5.151-5.151 5.151h-30.927c2.843 0 5.151-2.308 5.151-5.151v-152.982c0-2.843-2.308-5.151-5.151-5.151h30.927c2.843.001 5.151 2.308 5.151 5.151z" fill="#fb9927"/><g><path d="m359.428 181.065v28.526h-80.818v-28.526c0-22.324 18.1-40.414 40.414-40.414 11.157 0 21.263 4.522 28.567 11.837 7.314 7.314 11.837 17.409 11.837 28.577z" fill="#ae6ad8"/><path d="m359.43 181.065v28.526h-29.237v-28.526c0-11.167-4.522-21.263-11.837-28.577-3.935-3.935-8.674-7.067-13.949-9.107 4.533-1.762 9.467-2.73 14.618-2.73 11.157 0 21.263 4.522 28.567 11.837 7.316 7.314 11.838 17.409 11.838 28.577z" fill="#975bbb"/><g><g><circle cx="319.023" cy="121.497" fill="#f2eff2" r="26.224"/></g></g></g><path d="m396.576 250.798v70.011c0 2.845-2.306 5.151-5.151 5.151h-85.311c-2.123 0-4.029-1.303-4.8-3.281l-27.273-70.011c-1.316-3.377 1.175-7.021 4.8-7.021h112.585c2.844 0 5.15 2.306 5.15 5.151z" fill="#23f1a8"/><path d="m396.576 250.798v70.011c0 2.843-2.308 5.151-5.151 5.151h-30.927c2.843 0 5.151-2.308 5.151-5.151v-70.011c0-2.843-2.308-5.151-5.151-5.151h30.927c2.843 0 5.151 2.307 5.151 5.151z" fill="#27e19d"/><path d="m324.179 362.016h67.246c2.845 0 5.151 2.306 5.151 5.151v93.376c0 2.845-2.306 5.151-5.151 5.151h-30.866c-2.123 0-4.029-1.303-4.799-3.281l-36.38-93.376c-1.316-3.377 1.175-7.021 4.799-7.021z" fill="#23f1a8"/><path d="m396.576 367.167v93.376c0 2.843-2.308 5.151-5.151 5.151h-30.927c2.843 0 5.151-2.308 5.151-5.151v-93.376c0-2.843-2.308-5.151-5.151-5.151h30.927c2.843 0 5.151 2.308 5.151 5.151z" fill="#27e19d"/></g><g><path d="m269.153 413.978c.01.124.01.247.01.371 0 5.924-7.397 8.87-11.456 4.368-6.768-7.489-16.03-11.239-25.291-11.239s-18.533 3.75-25.291 11.239c-1.36 1.514-3.101 2.184-4.821 2.184-3.482 0-6.84-2.782-6.624-6.923.031-.597.041-1.185.041-1.772 0-19.367-16.236-34.995-35.809-33.996-.124.01-.247.01-.371.01-5.924 0-8.87-7.397-4.368-11.456 7.489-6.758 11.239-16.03 11.239-25.291s-3.75-18.523-11.239-25.291c-1.514-1.36-2.184-3.101-2.184-4.811 0-3.482 2.782-6.84 6.923-6.634.597.031 1.185.041 1.772.041 19.367 0 34.995-16.236 33.996-35.799-.01-.124-.01-.247-.01-.371 0-5.934 7.397-8.87 11.456-4.378 6.758 7.489 16.03 11.239 25.291 11.239 3.76 0 7.51-.618 11.095-1.844l42.526 109.158c-10.591 6.183-17.565 17.916-16.885 31.195z" fill="#fdef63"/><path d="m268.516 417.19c.406-.839.648-1.79.648-2.841 0-.123 0-.247-.01-.371-.68-13.279 6.294-25.013 16.885-31.194l-42.526-109.158c-3.585 1.226-7.335 1.844-11.095 1.844-7.992 0-15.988-2.799-22.374-8.378z" fill="#f3d730"/></g><g><g><path d="m229.374 349.967c-4.267 0-7.726-3.459-7.726-7.726v-29.272c0-4.267 3.459-7.726 7.726-7.726s7.726 3.459 7.726 7.726v29.272c0 4.267-3.459 7.726-7.726 7.726z" fill="#554e55"/></g><g><path d="m229.374 377.711c-4.267 0-7.726-3.459-7.726-7.726v-2.061c0-4.267 3.459-7.726 7.726-7.726s7.726 3.459 7.726 7.726v2.061c0 4.267-3.459 7.726-7.726 7.726z" fill="#554e55"/></g></g><g><g><path d="m258.185 86.361h-18.228c-4.267 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h18.228c4.267 0 7.726 3.459 7.726 7.726 0 4.266-3.459 7.726-7.726 7.726z" fill="#f2eff2"/></g><g><path d="m266.269 111.168h-18.229c-4.267 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h18.228c4.267 0 7.726 3.459 7.726 7.726s-3.458 7.726-7.725 7.726z" fill="#f2eff2"/></g></g></g></svg>',M2=`<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background: new 0 0 512 512" xml:space="preserve" width="512" height="512"><g><g><g><path style="fill: #f2eff2" d="M422.485,504.5H89.515c-5.523,0-10-4.477-10-10v-477c0-5.523,4.477-10,10-10h332.971&#10;&#9;&#9;&#9;&#9;c5.523,0,10,4.477,10,10v477C432.485,500.023,428.008,504.5,422.485,504.5z"/></g></g><g><g><path style="fill: #e1dde1" d="M432.49,17.5v477c0,5.52-4.48,10-10,10h-40.03c5.52,0,10-4.48,10-10v-477c0-5.52-4.48-10-10-10&#10;&#9;&#9;&#9;&#9;h40.03C428.01,7.5,432.49,11.98,432.49,17.5z"/></g></g><g><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M334.56,7.5H89.515c-5.523,0-10,4.477-10,10v477c0,5.523,4.477,10,10,10h332.971c5.523,0,10-4.477,10-10v-477&#10;&#9;&#9;&#9;c0-5.523-4.477-10-10-10h-54.763"/></g><g><path style="fill: #3ad1e0" d="M313.86,452.74L159.16,55.63c-0.75-1.92-2.6-3.18-4.66-3.18h-29.96c-2.76,0-5,2.24-5,5v397.1&#10;&#9;&#9;&#9;c0,2.76,2.24,5,5,5h184.67C312.72,459.55,315.14,456.01,313.86,452.74z"/><path style="fill: #22c7db" d="M309.21,459.55h-30.02c3.51,0,5.93-3.54,4.65-6.81L129.14,55.63c-0.74-1.9-2.56-3.16-4.6-3.18&#10;&#9;&#9;&#9;h29.96c2.06,0,3.91,1.26,4.66,3.18l154.7,397.11C315.14,456.01,312.72,459.55,309.21,459.55z"/><path style="fill: #fb33a8" d="M258.193,309.845c-9.05-1.894-18.424-2.909-28.037-2.909c-45.55,0-85.862,22.354-110.616,56.676&#10;&#9;&#9;&#9;v90.938c0,2.76,2.24,5,5,5h184.67c3.51,0,5.93-3.54,4.65-6.81L258.193,309.845z"/><path style="fill: #ee2d9a" d="M193.362,311.966c-5.64,10.161-16.48,17.055-28.912,17.055c-0.57,0-1.14-0.01-1.72-0.04&#10;&#9;&#9;&#9;c-4.02-0.2-6.72,3.06-6.72,6.44c0,1.66,0.65,3.35,2.12,4.67c7.27,6.57,10.91,15.56,10.91,24.55s-3.64,17.99-10.91,24.55&#10;&#9;&#9;&#9;c-4.37,3.94-1.51,11.12,4.24,11.12c0.12,0,0.24,0,0.36-0.01c19-0.97,34.76,14.2,34.76,33c0,0.57-0.01,1.14-0.04,1.72&#10;&#9;&#9;&#9;c-0.21,4.02,3.05,6.72,6.43,6.72c1.67,0,3.36-0.65,4.68-2.12c6.56-7.27,15.56-10.91,24.55-10.91c8.99,0,17.98,3.64,24.55,10.91&#10;&#9;&#9;&#9;c3.94,4.37,11.12,1.51,11.12-4.24c0-0.12,0-0.24-0.01-0.36c-0.264-5.151,0.666-10.058,2.527-14.479l12.543,32.197&#10;&#9;&#9;&#9;c1.28,3.27-1.14,6.81-4.65,6.81h30.02c3.51,0,5.93-3.54,4.65-6.81l-55.667-142.895L193.362,311.966z"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M230.156,306.937c-45.55,0-85.862,22.354-110.616,56.676"/><path style="fill: #fcb44d" d="M392.46,57.45v148.5c0,2.76-2.24,5-5,5H260.65c-2.06,0-3.91-1.26-4.66-3.18l-57.85-148.5&#10;&#9;&#9;&#9;c-1.28-3.28,1.14-6.82,4.65-6.82h184.67C390.22,52.45,392.46,54.69,392.46,57.45z"/><path style="fill: #fb9927" d="M392.46,57.45v148.5c0,2.76-2.24,5-5,5h-30.021c2.76,0,5-2.24,5-5V57.45c0-2.76-2.24-5-5-5h30.021&#10;&#9;&#9;&#9;C390.22,52.45,392.46,54.69,392.46,57.45z"/><g><path style="fill: #ae6ad8" d="M356.4,183.26v27.69h-78.45v-27.69c0-21.67,17.57-39.23,39.23-39.23&#10;&#9;&#9;&#9;&#9;c10.83,0,20.64,4.39,27.73,11.49C352.01,162.62,356.4,172.42,356.4,183.26z"/><path style="fill: #975bbb" d="M356.402,183.26v27.69h-28.38v-27.69c0-10.84-4.39-20.64-11.49-27.74&#10;&#9;&#9;&#9;&#9;c-3.82-3.82-8.42-6.86-13.54-8.84c4.4-1.71,9.19-2.65,14.19-2.65c10.83,0,20.64,4.39,27.73,11.49&#10;&#9;&#9;&#9;&#9;C352.012,162.62,356.402,172.42,356.402,183.26z"/><path style="\r
            fill: none;\r
            stroke: #000000;\r
            stroke-width: 15;\r
            stroke-linecap: round;\r
            stroke-linejoin: round;\r
            stroke-miterlimit: 10;\r
          " d="&#10;&#9;&#9;&#9;&#9;M277.95,210.95v-27.69c0-21.67,17.57-39.23,39.23-39.23c10.83,0,20.64,4.39,27.73,11.49c7.1,7.1,11.49,16.9,11.49,27.74v27.69"/><g><circle style="fill: #f2eff2" cx="317.179" cy="125.438" r="25.456"/><circle style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
            " cx="317.179" cy="125.438" r="25.456"/></g></g><path style="fill: #23f1a8" d="M392.46,250.95v67.96c0,2.761-2.239,5-5,5h-82.812c-2.061,0-3.911-1.265-4.659-3.185l-26.474-67.96&#10;&#9;&#9;&#9;c-1.277-3.278,1.141-6.815,4.659-6.815H387.46C390.221,245.95,392.46,248.189,392.46,250.95z"/><path style="fill: #27e19d" d="M392.46,250.95v67.96c0,2.76-2.24,5-5,5h-30.021c2.76,0,5-2.24,5-5v-67.96c0-2.76-2.24-5-5-5&#10;&#9;&#9;&#9;h30.021C390.22,245.95,392.46,248.19,392.46,250.95z"/><path style="fill: #23f1a8" d="M322.184,358.91h65.276c2.761,0,5,2.239,5,5v90.64c0,2.761-2.239,5-5,5h-29.962&#10;&#9;&#9;&#9;c-2.061,0-3.911-1.265-4.659-3.185l-35.314-90.64C316.248,362.447,318.666,358.91,322.184,358.91z"/><path style="fill: #27e19d" d="M392.46,363.91v90.64c0,2.76-2.24,5-5,5h-30.021c2.76,0,5-2.24,5-5v-90.64c0-2.76-2.24-5-5-5&#10;&#9;&#9;&#9;h30.021C390.22,358.91,392.46,361.15,392.46,363.91z"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M119.54,242.003V454.55c0,2.761,2.239,5,5,5h184.666c3.518,0,5.936-3.537,4.659-6.815l-154.704-397.1&#10;&#9;&#9;&#9;c-0.748-1.92-2.598-3.185-4.659-3.185H124.54c-2.761,0-5,2.239-5,5v151.391"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M392.46,57.45v148.5c0,2.761-2.239,5-5,5H260.648c-2.061,0-3.911-1.265-4.659-3.185l-57.854-148.5&#10;&#9;&#9;&#9;c-1.277-3.278,1.141-6.815,4.659-6.815H387.46C390.221,52.45,392.46,54.689,392.46,57.45z"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M306.627,245.95h-28.454c-3.518,0-5.936,3.537-4.659,6.815l26.474,67.96c0.748,1.92,2.598,3.185,4.659,3.185h82.812&#10;&#9;&#9;&#9;c2.761,0,5-2.239,5-5v-67.96c0-2.761-2.239-5-5-5h-47.67"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M322.184,358.91h65.276c2.761,0,5,2.239,5,5v90.64c0,2.761-2.239,5-5,5h-29.962c-2.061,0-3.911-1.265-4.659-3.185l-35.314-90.64&#10;&#9;&#9;&#9;C316.248,362.447,318.666,358.91,322.184,358.91z"/></g><g><path style="fill: #fdef63" d="M268.77,409.35c0.01,0.12,0.01,0.24,0.01,0.36c0,5.75-7.18,8.61-11.12,4.24&#10;&#9;&#9;&#9;c-6.57-7.27-15.56-10.91-24.55-10.91c-8.99,0-17.99,3.64-24.55,10.91c-1.32,1.47-3.01,2.12-4.68,2.12c-3.38,0-6.64-2.7-6.43-6.72&#10;&#9;&#9;&#9;c0.03-0.58,0.04-1.15,0.04-1.72c0-18.8-15.76-33.97-34.76-33c-0.12,0.01-0.24,0.01-0.36,0.01c-5.75,0-8.61-7.18-4.24-11.12&#10;&#9;&#9;&#9;c7.27-6.56,10.91-15.56,10.91-24.55s-3.64-17.98-10.91-24.55c-1.47-1.32-2.12-3.01-2.12-4.67c0-3.38,2.7-6.64,6.72-6.44&#10;&#9;&#9;&#9;c0.58,0.03,1.15,0.04,1.72,0.04c18.8,0,33.97-15.76,33-34.75c-0.01-0.12-0.01-0.24-0.01-0.36c0-5.76,7.18-8.61,11.12-4.25&#10;&#9;&#9;&#9;c6.56,7.27,15.56,10.91,24.55,10.91c3.65,0,7.29-0.6,10.77-1.79l41.28,105.96C274.88,385.07,268.11,396.46,268.77,409.35z"/><path style="fill: #f3d730" d="M268.151,412.468c0.394-0.814,0.629-1.738,0.629-2.758c0-0.12,0-0.24-0.01-0.36&#10;&#9;&#9;&#9;c-0.66-12.89,6.11-24.28,16.39-30.28l-41.28-105.96c-3.48,1.19-7.12,1.79-10.77,1.79c-7.758,0-15.52-2.717-21.718-8.132&#10;&#9;&#9;&#9;L268.151,412.468z"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M268.77,409.35c0.01,0.12,0.01,0.24,0.01,0.36c0,5.75-7.18,8.61-11.12,4.24c-6.57-7.27-15.56-10.91-24.55-10.91&#10;&#9;&#9;&#9;c-8.99,0-17.99,3.64-24.55,10.91c-1.32,1.47-3.01,2.12-4.68,2.12c-3.38,0-6.64-2.7-6.43-6.72c0.03-0.58,0.04-1.15,0.04-1.72&#10;&#9;&#9;&#9;c0-18.8-15.76-33.97-34.76-33c-0.12,0.01-0.24,0.01-0.36,0.01c-5.75,0-8.61-7.18-4.24-11.12c7.27-6.56,10.91-15.56,10.91-24.55&#10;&#9;&#9;&#9;s-3.64-17.98-10.91-24.55c-1.47-1.32-2.12-3.01-2.12-4.67c0-3.38,2.7-6.64,6.72-6.44c0.58,0.03,1.15,0.04,1.72,0.04&#10;&#9;&#9;&#9;c18.8,0,33.97-15.76,33-34.75c-0.01-0.12-0.01-0.24-0.01-0.36c0-5.76,7.18-8.61,11.12-4.25c6.56,7.27,15.56,10.91,24.55,10.91&#10;&#9;&#9;&#9;c3.65,0,7.29-0.6,10.77-1.79l41.28,105.96C274.88,385.07,268.11,396.46,268.77,409.35z"/></g><g><line style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " x1="230.156" y1="339.714" x2="230.156" y2="311.299"/><line style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " x1="230.156" y1="364.644" x2="230.156" y2="366.646"/></g><g><line style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " x1="240.429" y1="83.83" x2="258.124" y2="83.83"/><line style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " x1="248.276" y1="107.911" x2="265.97" y2="107.911"/></g></g></svg>`,x2=`<?xml version="1.0" encoding="UTF-8"?><svg version="1.1" id="svg3390" xml:space="preserve" width="682.66669" height="682.66669" viewBox="0 0 682.66669 682.66669" xmlns="http://www.w3.org/2000/svg"><defs id="defs3394"><clipPath clipPathUnits="userSpaceOnUse" id="clipPath3404"><path d="M 0,512 H 512 V 0 H 0 Z" id="path3402"/></clipPath></defs><g id="g3396" transform="matrix(1.3333333,0,0,-1.3333333,0,682.66667)"><g id="g3398"><g id="g3400" clip-path="url(#clipPath3404)"><g id="g3406" transform="translate(451.7344)"><path d="m 0,0 h -391.469 c -11.379,0 -20.603,9.225 -20.603,20.604 v 470.792 c 0,11.379 9.224,20.604 20.603,20.604 L 0,512 c 11.379,0 20.604,-9.225 20.604,-20.604 V 20.604 C 20.604,9.225 11.379,0 0,0" style="fill: #efe6e6; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3408"/></g><g id="g3410" transform="translate(472.3376,41.2072)"><path d="m 0,0 c -216.202,0 -391.468,175.266 -391.468,391.468 v 79.325 h -20.604 c -11.379,0 -20.604,-9.225 -20.604,-20.604 V -20.604 c 0,-11.379 9.225,-20.603 20.604,-20.603 H -20.603 C -9.224,-41.207 0,-31.983 0,-20.604 Z" style="fill: #e2d7d7; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3412"/></g><g id="g3414" transform="translate(235.3964,198.1382)"><path d="M 0,0 H 195.734 V 272.655 H 82.414 Z" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3416"/></g><g id="g3418" transform="translate(235.3964,198.1382)"><path d="M 0,0 H 195.734 V 272.655 H 82.414 Z" style="fill: #5ad6ff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3420"/></g><g id="g3422" transform="translate(80.8692,198.1382)"><path d="m 0,0 h 113.32 l 82.414,272.655 H 0 Z" style="fill: #f4e74d; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3424"/></g><g id="g3426" transform="translate(80.8692,432.6757)"><path d="M 0,0 V -234.537 H 78.01 C 29.021,-169.169 0,-87.974 0,0" style="fill: #eedb00; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3428"/></g><path d="M 431.131,41.207 H 80.869 v 115.724 h 350.262 z" style="fill: #b18cd9; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3430"/><g id="g3432" transform="translate(194.475,156.931)"><path d="m 0,0 h -113.606 v -115.724 h 350.262 v 2.149 C 144.487,-103.933 61.838,-62.31 0,0" style="fill: #996acc; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3434"/></g><g id="g3436" transform="translate(213.2632,94.3332)"><path d="m 0,0 c 0,-10.991 -11.188,-19.901 -24.99,-19.901 -13.801,0 -24.989,8.91 -24.989,19.901 0,10.991 11.188,19.9 24.989,19.9 C -11.188,19.9 0,10.991 0,0" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3438"/></g><g id="g3440" transform="translate(298.7368,94.3332)"><path d="m 0,0 c 0,-10.991 11.188,-19.901 24.99,-19.901 13.801,0 24.989,8.91 24.989,19.901 0,10.991 -11.188,19.9 -24.989,19.9 C 11.188,19.9 0,10.991 0,0" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3442"/></g><g id="g3444" transform="translate(202.8374,123.7057)"><path d="M 0,0 V -10.216" style="\r
              fill: none;\r
              stroke: #3d4751;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
              stroke-dasharray: none;\r
              stroke-opacity: 1;\r
            " id="path3446"/></g><g id="g3448" transform="translate(309.1625,123.7057)"><path d="M 0,0 V -10.216" style="\r
              fill: none;\r
              stroke: #3d4751;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
              stroke-dasharray: none;\r
              stroke-opacity: 1;\r
            " id="path3450"/></g><g id="g3452" transform="translate(241.984,113.7942)"><path d="m 0,0 c 3.408,-3.911 8.421,-6.385 14.016,-6.385 5.595,0 10.608,2.474 14.016,6.385" style="\r
              fill: none;\r
              stroke: #3d4751;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
              stroke-dasharray: none;\r
              stroke-opacity: 1;\r
            " id="path3454"/></g><g id="g3456" transform="translate(150.0629,447.8862)"><path d="m 0,0 33.436,22.907 h -102.63 v -161.294 l 21.382,72.58 59.96,-46.151 -25.363,71.287 75.636,-2.093 z" style="fill: #fd5c6f; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3458"/></g><g id="g3460" transform="translate(80.8692,432.6757)"><path d="m 0,0 v -123.177 l 10.122,34.358 C 3.502,-60.282 0,-30.55 0,0" style="fill: #f6334c; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3462"/></g><g id="g3464" transform="translate(431.1308,271.141)"><path d="m 0,0 -57.698,-44.41 24.406,68.598 -72.782,-2.014 60.066,41.15 -60.066,41.151 72.782,-2.014 -24.406,68.597 L 0,126.649 Z" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3466"/></g></g></g></g></svg>`,I2=`<?xml version="1.0" encoding="UTF-8"?><svg version="1.1" id="svg5007" xml:space="preserve" width="682.66669" height="682.66669" viewBox="0 0 682.66669 682.66669" xmlns="http://www.w3.org/2000/svg"><defs id="defs5011"><clipPath clipPathUnits="userSpaceOnUse" id="clipPath5021"><path d="M 0,512 H 512 V 0 H 0 Z" id="path5019"/></clipPath></defs><g id="g5013" transform="matrix(1.3333333,0,0,-1.3333333,0,682.66667)"><g id="g5015"><g id="g5017" clip-path="url(#clipPath5021)"><g id="g5023" transform="translate(446,7.5)"><path d="m 0,0 h -380 c -11.046,0 -20,8.954 -20,20 v 457 c 0,11.046 8.954,20 20,20 H 0 c 11.046,0 20,-8.954 20,-20 V 20 C 20,8.954 11.046,0 0,0" style="fill: #efe6e6; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5025"/></g><g id="g5027" transform="translate(465.9996,47.5)"><path d="m 0,0 c -209.868,0 -380,170.132 -380,380 v 77 h -20 c -11.045,0 -20,-8.954 -20,-20 V -20 c 0,-11.046 8.955,-20 20,-20 h 380 c 11.046,0 20,8.954 20,20 z" style="fill: #e2d7d7; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5029"/></g><g id="g5031" transform="translate(236,199.8333)"><path d="M 0,0 H 190 V 264.667 H 80 Z" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5033"/></g><g id="g5035" transform="translate(236,199.8333)"><path d="M 0,0 H 190 V 264.667 H 80 Z" style="fill: #5ad6ff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5037"/></g><g id="g5039" transform="translate(86,199.8333)"><path d="m 0,0 h 110 l 80,264.667 H 0 Z" style="fill: #f4e74d; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5041"/></g><g id="g5043" transform="translate(86,427.4996)"><path d="M 0,0 V -227.666 H 75.725 C 28.171,-164.213 0,-85.397 0,0" style="fill: #eedb00; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5045"/></g><path d="M 426,47.5 H 86 v 112.333 h 340 z" style="fill: #b18cd9; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5047"/><g id="g5049" transform="translate(196.2775,159.8334)"><path d="m 0,0 h -110.278 v -112.333 h 340 v 2.085 C 140.254,-100.888 60.026,-60.484 0,0" style="fill: #996acc; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5051"/></g><g id="g5053" transform="translate(214.5152,99.0695)"><path d="m 0,0 c 0,-10.669 -10.861,-19.318 -24.258,-19.318 -13.397,0 -24.257,8.649 -24.257,19.318 0,10.669 10.86,19.317 24.257,19.317 C -10.861,19.317 0,10.669 0,0" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5055"/></g><g id="g5057" transform="translate(297.4848,99.0695)"><path d="m 0,0 c 0,-10.669 10.861,-19.318 24.258,-19.318 13.397,0 24.257,8.649 24.257,19.318 0,10.669 -10.86,19.317 -24.257,19.317 C 10.861,19.317 0,10.669 0,0" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5059"/></g><g id="g5061" transform="translate(204.3949,127.5815)"><path d="M 0,0 V -9.916" style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
              stroke-dasharray: none;\r
              stroke-opacity: 1;\r
            " id="path5063"/></g><g id="g5065" transform="translate(307.605,127.5815)"><path d="M 0,0 V -9.916" style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
              stroke-dasharray: none;\r
              stroke-opacity: 1;\r
            " id="path5067"/></g><g id="g5069" transform="translate(242.3946,117.9604)"><path d="m 0,0 c 3.308,-3.796 8.175,-6.198 13.605,-6.198 5.431,0 10.298,2.402 13.606,6.198" style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
              stroke-dasharray: none;\r
              stroke-opacity: 1;\r
            " id="path5071"/></g><g id="g5073" transform="translate(153.1665,442.2645)"><path d="m 0,0 32.456,22.235 h -99.623 v -156.568 l 20.756,70.454 58.203,-44.799 -24.62,69.199 73.42,-2.032 z" style="fill: #fd5c6f; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5075"/></g><g id="g5077" transform="translate(86,427.4996)"><path d="m 0,0 v -119.568 l 9.825,33.351 C 3.399,-58.516 0,-29.655 0,0" style="fill: #f6334c; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5079"/></g><g id="g5081" transform="translate(426,270.6974)"><path d="m 0,0 -56.008,-43.108 23.692,66.587 -70.65,-1.955 58.306,39.945 -58.306,39.945 70.65,-1.955 -23.692,66.588 L 0,122.939 Z" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5083"/></g><g id="g5085" transform="translate(446,7.5)"><path d="m 0,0 h -380 c -11.046,0 -20,8.954 -20,20 v 457 c 0,11.046 8.954,20 20,20 H 0 c 11.046,0 20,-8.954 20,-20 V 20 C 20,8.954 11.046,0 0,0 Z" style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
              stroke-dasharray: none;\r
              stroke-opacity: 1;\r
            " id="path5087"/></g><g id="g5089" transform="translate(426,346.167)"><path d="m 0,0 v 118.333 h -110 l -80,-264.667 H 0 V -28" style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
              stroke-dasharray: none;\r
              stroke-opacity: 1;\r
            " id="path5091"/></g><g id="g5093" transform="translate(86,199.8333)"><path d="m 0,0 h 110 l 80,264.667 H 0 Z" style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
              stroke-dasharray: none;\r
              stroke-opacity: 1;\r
            " id="path5095"/></g><g id="g5097" transform="translate(154.0172,159.8334)"><path d="m 0,0 h 271.983 v -112.333 h -340 V 0 H -28" style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
              stroke-dasharray: none;\r
              stroke-opacity: 1;\r
            " id="path5099"/></g><g id="g5101" transform="translate(86,307.9314)"><path d="m 0,0 20.756,70.454 58.203,-44.799 -24.62,69.199 73.419,-2.032 -60.591,41.511 32.455,22.236" style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
              stroke-dasharray: none;\r
              stroke-opacity: 1;\r
            " id="path5103"/></g><g id="g5105" transform="translate(426,270.6974)"><path d="m 0,0 -56.008,-43.108 23.692,66.587 -70.65,-1.955 58.306,39.945 -58.306,39.945 70.65,-1.955 -23.692,66.588 L 0,122.939" style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
              stroke-dasharray: none;\r
              stroke-opacity: 1;\r
            " id="path5107"/></g></g></g></g></svg>`,C2='<svg id="Capa_1" enable-background="new 0 0 512 512" height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg"><g><g><g><path d="m427.508 512h-343.02c-5.69 0-10.302-4.612-10.302-10.302v-491.396c0-5.69 4.612-10.302 10.302-10.302h343.02c5.69 0 10.302 4.612 10.302 10.302v491.396c-.001 5.69-4.613 10.302-10.302 10.302z" fill="#f2eff2"/></g></g><path d="m427.512 0h-41.238c5.687 0 10.302 4.615 10.302 10.302v36.12l-18.016 49.462 18.016 36.952v51.701l-13.787 87.003 13.787 55.974v51.669l-18.016 52.406 18.016 34.008v36.1c0 5.687-4.615 10.302-10.302 10.302h41.238c5.687 0 10.302-4.615 10.302-10.302v-491.395c0-5.687-4.615-10.302-10.302-10.302z" fill="#e1dde1"/><path d="m396.6 46.36v86.52c0 2.85-2.31 5.15-5.15 5.15h-110.11l-22.53-48.41 22.53-48.41h110.11c2.84 0 5.15 2.3 5.15 5.15z" fill="#3ad1e0"/><path d="m396.599 46.358v86.525c0 2.843-2.308 5.151-5.151 5.151h-30.926c2.843 0 5.151-2.308 5.151-5.151v-86.525c0-2.843-2.308-5.151-5.151-5.151h30.926c2.844 0 5.151 2.308 5.151 5.151z" fill="#20bfd5"/><path d="m281.34 41.207h-39.904c-2.845 0-5.151 2.306-5.151 5.151v86.525c0 2.845 2.306 5.151 5.151 5.151h39.904z" fill="#23f1a8"/><path d="m304.73 470.79h-77.71l-39.22-20.29-39.23 20.29h-28.03c-2.84 0-5.15-2.3-5.15-5.15v-86.52c0-2.85 2.31-5.15 5.15-5.15h128.92c1.76 0 3.4.89 4.34 2.37l55.27 86.53c2.19 3.43-.27 7.92-4.34 7.92z" fill="#23f1a8"/><g><path d="m227.019 443.104v27.689h-78.446v-27.689c0-21.669 17.569-39.228 39.228-39.228 10.83 0 20.639 4.39 27.729 11.489 7.099 7.1 11.489 16.899 11.489 27.739z" fill="#ae6ad8"/><path d="m227.021 443.101v27.691h-29.061v-27.691c0-10.838-4.389-20.634-11.486-27.732-3.729-3.74-8.211-6.727-13.207-8.715 4.492-1.793 9.406-2.782 14.536-2.782 10.827 0 20.635 4.389 27.732 11.497 7.097 7.098 11.486 16.895 11.486 27.732z" fill="#975bbb"/></g><path d="m304.728 470.793h-30.926c4.069 0 6.531-4.492 4.347-7.922l-55.269-86.525c-.948-1.483-2.586-2.38-4.347-2.38h30.926c1.762 0 3.4.896 4.347 2.38l55.269 86.525c2.184 3.43-.278 7.922-4.347 7.922z" fill="#27e19d"/><path d="m391.448 373.966h-81.106c-4.068 0-6.531 4.495-4.341 7.924l55.269 86.525c.946 1.482 2.583 2.378 4.341 2.378h25.837c2.845 0 5.151-2.306 5.151-5.151v-86.525c0-2.845-2.306-5.151-5.151-5.151z" fill="#ae6ad8"/><path d="m396.599 379.117v86.525c0 2.843-2.308 5.151-5.151 5.151h-25.837c-.907 0-1.772-.237-2.534-.68 1.556-.886 2.596-2.555 2.596-4.471v-86.525c0-2.843-2.308-5.151-5.151-5.151h30.926c2.844 0 5.151 2.308 5.151 5.151z" fill="#975bbb"/><g><path d="m195.602 46.358v86.525c0 2.845-2.306 5.151-5.151 5.151h-69.91c-2.845 0-5.151-2.306-5.151-5.151v-86.525c0-2.845 2.306-5.151 5.151-5.151h69.91c2.845 0 5.151 2.306 5.151 5.151z" fill="#3ad1e0"/><path d="m195.6 46.358v86.525c0 2.843-2.308 5.151-5.151 5.151h-30.926c2.843 0 5.151-2.308 5.151-5.151v-86.525c0-2.843-2.308-5.151-5.151-5.151h30.926c2.844 0 5.151 2.308 5.151 5.151z" fill="#20bfd5"/></g><g><path d="m396.6 184.39v143.22c0 2.84-2.31 5.15-5.15 5.15h-30.93l-104.53-27.53-104.52 27.53h-30.93c-2.84 0-5.15-2.31-5.15-5.15v-143.22c0-2.84 2.31-5.15 5.15-5.15h47.77l87.68 16.15 87.69-16.15h47.77c2.84 0 5.15 2.31 5.15 5.15z" fill="#fb54b6"/></g><path d="m151.473 332.759c0-57.729 46.798-104.527 104.527-104.527s104.527 46.798 104.527 104.527z" fill="#fb9927"/><path d="m360.522 332.759h-35.397c0-51.694-37.519-94.612-86.824-103.028 5.748-.979 11.662-1.494 17.699-1.494 57.731 0 104.522 46.79 104.522 104.522z" fill="#f98824"/><g><path d="m396.599 184.392v143.216c0 2.843-2.308 5.151-5.151 5.151h-30.926c2.843 0 5.151-2.308 5.151-5.151v-143.216c0-2.843-2.308-5.151-5.151-5.151h30.926c2.844 0 5.151 2.308 5.151 5.151z" fill="#fb33a8"/></g><g><g><path d="m345.43 247.027c-.144 0-.299 0-.453-.01-24.024-1.226-43.947 17.946-43.947 41.722 0 .721.021 1.442.051 2.174.268 5.079-3.853 8.489-8.128 8.489-2.112 0-4.244-.814-5.913-2.678-8.293-9.189-19.676-13.794-31.039-13.794s-22.746 4.605-31.039 13.794c-1.669 1.865-3.801 2.678-5.913 2.678-4.275 0-8.396-3.41-8.128-8.489.031-.731.041-1.453.041-2.174 0-23.777-19.924-42.948-43.937-41.722-.155.01-.309.01-.464.01-7.263 0-10.879-9.076-5.357-14.062 9.189-8.293 13.794-19.666 13.794-31.039 0-7.912-2.225-15.813-6.686-22.685h175.378c-4.461 6.871-6.686 14.773-6.686 22.685 0 11.373 4.605 22.746 13.794 31.039 5.521 4.986 1.905 14.062-5.368 14.062z" fill="#fdef63"/><g><g id="XMLID_00000127012381744132405410000009872483291948348836_"><path d="m280.138 231.696c-4.268 0-7.726-3.459-7.726-7.726v-.107c0-4.267 3.459-7.726 7.726-7.726s7.726 3.459 7.726 7.726v.107c0 4.267-3.459 7.726-7.726 7.726z" fill="#554e55"/></g><g id="XMLID_00000080918978500845250090000017315552773041050031_"><path d="m256 231.696c-4.267 0-7.726-3.459-7.726-7.726v-.107c0-4.267 3.459-7.726 7.726-7.726 4.268 0 7.726 3.459 7.726 7.726v.107c0 4.267-3.458 7.726-7.726 7.726z" fill="#554e55"/></g><g id="XMLID_00000140711681861242238370000008769002181148908969_"><path d="m231.862 231.696c-4.267 0-7.726-3.459-7.726-7.726v-.107c0-4.267 3.459-7.726 7.726-7.726s7.726 3.459 7.726 7.726v.107c.001 4.267-3.459 7.726-7.726 7.726z" fill="#554e55"/></g></g><path d="m345.43 247.037c-.155 0-.299 0-.443-.021-24.034-1.226-43.948 17.956-43.948 41.722 0 .721.01 1.432.052 2.174.258 5.079-3.863 8.499-8.128 8.499-2.122 0-4.255-.824-5.924-2.689-6.954-7.685-16.05-12.167-25.507-13.423 29.968-14.804 50.582-45.678 50.582-81.364 0-7.84-.999-15.442-2.864-22.695h34.429c-4.45 6.871-6.676 14.783-6.676 22.685 0 11.373 4.605 22.757 13.784 31.05 5.532 4.966 1.926 14.062-5.357 14.062z" fill="#f3d730"/></g></g><g><g><g><circle cx="187.8" cy="385.284" fill="#d8b2ec" r="25.455"/></g></g></g><g><g id="XMLID_00000028301319025648580530000009457246182494066313_"><path d="m316.443 111.45c-4.258 0-7.714-3.445-7.726-7.705-.012-4.267 3.438-7.736 7.705-7.747l41.222-.114h.021c4.258 0 7.714 3.445 7.726 7.705.012 4.267-3.438 7.736-7.705 7.747l-41.222.114c-.007 0-.014 0-.021 0z" fill="#f2eff2"/></g><g><path d="m357.665 83.243h-21.761c-4.268 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h21.761c4.268 0 7.726 3.459 7.726 7.726s-3.458 7.726-7.726 7.726z" fill="#f2eff2"/></g></g></g></svg>',O2=`<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background: new 0 0 512 512" xml:space="preserve" width="512" height="512"><g><g><g><path style="fill: #f2eff2" d="M422.485,504.5H89.515c-5.523,0-10-4.477-10-10v-477c0-5.523,4.477-10,10-10h332.971&#10;&#9;&#9;&#9;&#9;c5.523,0,10,4.477,10,10v477C432.485,500.023,428.008,504.5,422.485,504.5z"/></g></g><g><g><path style="fill: #e1dde1" d="M432.49,17.5v477c0,5.52-4.48,10-10,10h-40.03c5.52,0,10-4.48,10-10v-477c0-5.52-4.48-10-10-10&#10;&#9;&#9;&#9;&#9;h40.03C428.01,7.5,432.49,11.98,432.49,17.5z"/></g></g><g><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M158.639,7.5H89.515c-5.523,0-10,4.477-10,10v477c0,5.523,4.477,10,10,10h332.971c5.523,0,10-4.477,10-10v-477&#10;&#9;&#9;&#9;c0-5.523-4.477-10-10-10H191.801"/></g><path style="fill: #3ad1e0" d="M392.482,52.5v83.99c0,2.761-2.239,5-5,5H241.866c-2.761,0-5-2.239-5-5V52.5c0-2.761,2.239-5,5-5&#10;&#9;&#9;h145.617C390.244,47.5,392.482,49.739,392.482,52.5z"/><path style="fill: #20bfd5" d="M392.482,52.5v83.99c0,2.76-2.24,5-5,5h-30.02c2.76,0,5-2.24,5-5V52.5c0-2.76-2.24-5-5-5h30.02&#10;&#9;&#9;C390.242,47.5,392.482,49.74,392.482,52.5z"/><path style="fill: #26d192" d="M280.6,47.5h-38.735c-2.761,0-5,2.239-5,5v83.99c0,2.761,2.239,5,5,5H280.6V47.5z"/><line style="\r
        fill: none;\r
        stroke: #000000;\r
        stroke-width: 15;\r
        stroke-linecap: round;\r
        stroke-linejoin: round;\r
        stroke-miterlimit: 10;\r
      " x1="280.6" y1="141.49" x2="280.6" y2="47.5"/><path style="fill: #23f1a8" d="M124.512,370.51h125.143c1.706,0,3.295,0.87,4.214,2.308l53.65,83.99&#10;&#9;&#9;c2.126,3.328-0.264,7.692-4.214,7.692H124.512c-2.761,0-5-2.239-5-5v-83.99C119.512,372.749,121.751,370.51,124.512,370.51z"/><g><path style="fill: #ae6ad8" d="M227.87,437.622V464.5h-76.148v-26.878c0-21.034,17.054-38.079,38.079-38.079&#10;&#9;&#9;&#9;c10.512,0,20.034,4.261,26.916,11.153C223.609,417.588,227.87,427.1,227.87,437.622z"/><path style="fill: #975bbb" d="M227.872,437.62v26.88h-28.21v-26.88c0-10.52-4.26-20.03-11.15-26.92&#10;&#9;&#9;&#9;c-3.62-3.63-7.97-6.53-12.82-8.46c4.36-1.74,9.13-2.7,14.11-2.7c10.51,0,20.03,4.26,26.92,11.16&#10;&#9;&#9;&#9;C223.612,417.59,227.872,427.1,227.872,437.62z"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M151.722,464.5v-26.878c0-21.034,17.054-38.079,38.079-38.079c10.512,0,20.034,4.261,26.916,11.153&#10;&#9;&#9;&#9;c6.892,6.892,11.153,16.404,11.153,26.926V464.5"/></g><path style="fill: #27e19d" d="M303.302,464.5h-30.02c3.95,0,6.34-4.36,4.22-7.69l-53.65-83.99c-0.92-1.44-2.51-2.31-4.22-2.31&#10;&#9;&#9;h30.02c1.71,0,3.3,0.87,4.22,2.31l53.65,83.99C309.642,460.14,307.252,464.5,303.302,464.5z"/><path style="fill: #ae6ad8" d="M387.482,370.51h-78.73c-3.949,0-6.34,4.363-4.214,7.692l53.65,83.99&#10;&#9;&#9;c0.919,1.438,2.507,2.308,4.214,2.308h25.08c2.761,0,5-2.239,5-5v-83.99C392.482,372.749,390.244,370.51,387.482,370.51z"/><path style="fill: #975bbb" d="M392.482,375.51v83.99c0,2.76-2.24,5-5,5h-25.08c-0.88,0-1.72-0.23-2.46-0.66&#10;&#9;&#9;c1.51-0.86,2.52-2.48,2.52-4.34v-83.99c0-2.76-2.24-5-5-5h30.02C390.242,370.51,392.482,372.75,392.482,375.51z"/><path style="\r
        fill: none;\r
        stroke: #000000;\r
        stroke-width: 15;\r
        stroke-linecap: round;\r
        stroke-linejoin: round;\r
        stroke-miterlimit: 10;\r
      " d="&#10;&#9;&#9;M392.482,52.5v83.99c0,2.761-2.239,5-5,5H241.866c-2.761,0-5-2.239-5-5V52.5c0-2.761,2.239-5,5-5h145.617&#10;&#9;&#9;C390.244,47.5,392.482,49.739,392.482,52.5z"/><g><path style="fill: #3ad1e0" d="M197.374,52.5v83.99c0,2.761-2.239,5-5,5h-67.862c-2.761,0-5-2.239-5-5V52.5c0-2.761,2.239-5,5-5&#10;&#9;&#9;&#9;h67.862C195.135,47.5,197.374,49.739,197.374,52.5z"/><path style="fill: #20bfd5" d="M197.372,52.5v83.99c0,2.76-2.24,5-5,5h-30.02c2.76,0,5-2.24,5-5V52.5c0-2.76-2.24-5-5-5h30.02&#10;&#9;&#9;&#9;C195.132,47.5,197.372,49.74,197.372,52.5z"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M197.374,52.5v83.99c0,2.761-2.239,5-5,5h-67.862c-2.761,0-5-2.239-5-5V52.5c0-2.761,2.239-5,5-5h67.862&#10;&#9;&#9;&#9;C195.135,47.5,197.374,49.739,197.374,52.5z"/></g><g><path style="fill: #fb54b6" d="M124.512,181.49h262.97c2.761,0,5,2.239,5,5v139.02c0,2.761-2.239,5-5,5h-262.97&#10;&#9;&#9;&#9;c-2.761,0-5-2.239-5-5V186.49C119.512,183.729,121.751,181.49,124.512,181.49z"/></g><path style="fill: #fb9927" d="M154.537,330.51c0-56.038,45.427-101.465,101.465-101.465s101.465,45.427,101.465,101.465H154.537z"/><path style="fill: #f98824" d="M357.462,330.51h-34.36c0-50.18-36.42-91.84-84.28-100.01c5.58-0.95,11.32-1.45,17.18-1.45&#10;&#9;&#9;C312.042,229.05,357.462,274.47,357.462,330.51z"/><path style="\r
        fill: none;\r
        stroke: #000000;\r
        stroke-width: 15;\r
        stroke-linecap: round;\r
        stroke-linejoin: round;\r
        stroke-miterlimit: 10;\r
      " d="&#10;&#9;&#9;M154.537,330.51c0-56.038,45.427-101.465,101.465-101.465s101.465,45.427,101.465,101.465"/><g><path style="fill: #fb33a8" d="M392.482,186.49v139.02c0,2.76-2.24,5-5,5h-30.02c2.76,0,5-2.24,5-5V186.49c0-2.76-2.24-5-5-5&#10;&#9;&#9;&#9;h30.02C390.242,181.49,392.482,183.73,392.482,186.49z"/></g><g><g><path style="fill: #fdef63" d="M342.812,247.29c-0.14,0-0.29,0-0.44-0.01c-23.32-1.19-42.66,17.42-42.66,40.5&#10;&#9;&#9;&#9;&#9;c0,0.7,0.02,1.4,0.05,2.11c0.26,4.93-3.74,8.24-7.89,8.24c-2.05,0-4.12-0.79-5.74-2.6c-8.05-8.92-19.1-13.39-30.13-13.39&#10;&#9;&#9;&#9;&#9;s-22.08,4.47-30.13,13.39c-1.62,1.81-3.69,2.6-5.74,2.6c-4.15,0-8.15-3.31-7.89-8.24c0.03-0.71,0.04-1.41,0.04-2.11&#10;&#9;&#9;&#9;&#9;c0-23.08-19.34-41.69-42.65-40.5c-0.15,0.01-0.3,0.01-0.45,0.01c-7.05,0-10.56-8.81-5.2-13.65c8.92-8.05,13.39-19.09,13.39-30.13&#10;&#9;&#9;&#9;&#9;c0-7.68-2.16-15.35-6.49-22.02h170.24c-4.33,6.67-6.49,14.34-6.49,22.02c0,11.04,4.47,22.08,13.39,30.13&#10;&#9;&#9;&#9;&#9;C353.382,238.48,349.872,247.29,342.812,247.29z"/><g><line id="XMLID_00000127012381744132405410000009872483291948348836_" style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
            " x1="279.433" y1="224.908" x2="279.433" y2="224.805"/><line id="XMLID_00000080918978500845250090000017315552773041050031_" style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
            " x1="256.002" y1="224.908" x2="256.002" y2="224.805"/><line id="XMLID_00000140711681861242238370000008769002181148908969_" style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
            " x1="232.572" y1="224.908" x2="232.572" y2="224.805"/></g><path style="fill: #f3d730" d="M342.812,247.3c-0.15,0-0.29,0-0.43-0.02c-23.33-1.19-42.66,17.43-42.66,40.5&#10;&#9;&#9;&#9;&#9;c0,0.7,0.01,1.39,0.05,2.11c0.25,4.93-3.75,8.25-7.89,8.25c-2.06,0-4.13-0.8-5.75-2.61c-6.75-7.46-15.58-11.81-24.76-13.03&#10;&#9;&#9;&#9;&#9;c29.09-14.37,49.1-44.34,49.1-78.98c0-7.61-0.97-14.99-2.78-22.03h33.42c-4.32,6.67-6.48,14.35-6.48,22.02&#10;&#9;&#9;&#9;&#9;c0,11.04,4.47,22.09,13.38,30.14C353.382,238.47,349.882,247.3,342.812,247.3z"/></g><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M341.122,181.49c-4.33,6.67-6.49,14.34-6.49,22.02c0,11.04,4.47,22.08,13.39,30.13c5.36,4.84,1.85,13.65-5.21,13.65&#10;&#9;&#9;&#9;c-0.14,0-0.29,0-0.44-0.01c-23.32-1.19-42.66,17.42-42.66,40.5c0,0.7,0.02,1.4,0.05,2.11c0.26,4.93-3.74,8.24-7.89,8.24&#10;&#9;&#9;&#9;c-2.05,0-4.12-0.79-5.74-2.6c-8.05-8.92-19.1-13.39-30.13-13.39s-22.08,4.47-30.13,13.39c-1.62,1.81-3.69,2.6-5.74,2.6&#10;&#9;&#9;&#9;c-4.15,0-8.15-3.31-7.89-8.24c0.03-0.71,0.04-1.41,0.04-2.11c0-23.08-19.34-41.69-42.65-40.5c-0.15,0.01-0.3,0.01-0.45,0.01&#10;&#9;&#9;&#9;c-7.05,0-10.56-8.81-5.2-13.65c8.92-8.05,13.39-19.09,13.39-30.13c0-7.68-2.16-15.35-6.49-22.02"/></g><g><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M208.726,181.49h-84.213c-2.761,0-5,2.239-5,5v139.02c0,2.761,2.239,5,5,5h262.97c2.761,0,5-2.239,5-5V186.49c0-2.761-2.239-5-5-5&#10;&#9;&#9;&#9;H241.888"/></g><path style="\r
        fill: none;\r
        stroke: #000000;\r
        stroke-width: 15;\r
        stroke-linecap: round;\r
        stroke-linejoin: round;\r
        stroke-miterlimit: 10;\r
      " d="&#10;&#9;&#9;M124.512,370.51h125.143c1.706,0,3.295,0.87,4.214,2.308l53.65,83.99c2.126,3.328-0.264,7.692-4.214,7.692H124.512&#10;&#9;&#9;c-2.761,0-5-2.239-5-5v-83.99C119.512,372.749,121.751,370.51,124.512,370.51z"/><path style="\r
        fill: none;\r
        stroke: #000000;\r
        stroke-width: 15;\r
        stroke-linecap: round;\r
        stroke-linejoin: round;\r
        stroke-miterlimit: 10;\r
      " d="&#10;&#9;&#9;M392.482,397.976V375.51c0-2.761-2.239-5-5-5h-78.73c-3.949,0-6.34,4.363-4.214,7.692l53.65,83.99&#10;&#9;&#9;c0.919,1.438,2.507,2.308,4.214,2.308h25.08c2.761,0,5-2.239,5-5v-28.362"/><g><g><g><circle style="fill: #d8b2ec" cx="189.8" cy="381.497" r="24.709"/><circle style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-linejoin: round;\r
              stroke-miterlimit: 10;\r
            " cx="189.8" cy="381.497" r="24.709"/></g></g></g><g><line id="XMLID_00000028301319025648580530000009457246182494066313_" style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " x1="314.674" y1="108.185" x2="354.689" y2="108.075"/><line style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " x1="333.566" y1="80.805" x2="354.689" y2="80.805"/></g></g></svg>`,T2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-category" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4h6v6h-6z"/><path d="M14 4h6v6h-6z"/><path d="M4 14h6v6h-6z"/><path d="M17 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"/></svg>',L2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-check" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 12l5 5l10 -10"/></svg>',R2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-chevron-left"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 6l-6 6l6 6"/></svg>',P2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-chevron-right"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 6l6 6l-6 6"/></svg>',$2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-circle-check"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"/><path d="M9 12l2 2l4 -4"/></svg>',D2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-circle-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"/><path d="M10 10l4 4m0 -4l-4 4"/></svg>',z2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-device-floppy" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"/><path d="M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M14 4l0 4l-6 0l0 -4"/></svg>',N2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-dots-vertical"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/></svg>',B2='<svg id="Capa_1" enable-background="new 0 0 512 512" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><g><g><path d="m369.32 512h-226.64c-45.516 0-82.414-36.898-82.414-82.414v-347.172c0-45.516 36.898-82.414 82.414-82.414h226.64c45.516 0 82.414 36.898 82.414 82.414v347.171c0 45.517-36.898 82.415-82.414 82.415z" fill="#636978"/></g><g><path d="m225.095 450.189v-388.378c0-34.137 27.673-61.811 61.81-61.811h-144.225c-45.516 0-82.414 36.898-82.414 82.414v347.171c0 45.516 36.898 82.414 82.414 82.414h144.225c-34.137.001-61.81-27.673-61.81-61.81z" fill="#555a66"/></g><g><path d="m369.32 61.811h-226.64c-11.379 0-20.604 9.225-20.604 20.604v336.869c0 11.379 9.225 20.604 20.604 20.604h226.64c11.379 0 20.604-9.225 20.604-20.604v-336.87c0-11.379-9.225-20.603-20.604-20.603z" fill="#96e8ff"/></g><g><path d="m122.076 82.414v336.869c0 11.379 9.225 20.604 20.604 20.604h82.414v-378.076h-82.414c-11.379 0-20.604 9.224-20.604 20.603z" fill="#80dbff"/></g><g><path d="m256 111.277c-27.66-8.24-55.124-9.125-82.742-2.655-5.835 1.367-9.975 6.555-9.975 12.548v95.771c0 6.566 6.064 11.463 12.479 10.063 23.872-5.21 47.636-4.921 71.52.866 5.731 1.389 11.704 1.389 17.435 0 23.884-5.788 47.648-6.077 71.52-.866 6.415 1.4 12.479-3.497 12.479-10.063 0-40.343 0-55.429 0-95.771 0-5.993-4.139-11.181-9.975-12.548-27.617-6.471-55.081-5.585-82.741 2.655z" fill="#fff"/></g><g><path d="m173.258 108.622c-5.835 1.367-9.975 6.555-9.975 12.548v95.771c0 6.566 6.064 11.463 12.479 10.063 23.872-5.21 47.636-4.921 71.52.866 2.866.694 5.791 1.041 8.717 1.041v-117.634c-27.659-8.24-55.123-9.126-82.741-2.655z" fill="#f5fafc"/></g><g><path d="m205.037 104.432c-10.584.315-21.171 1.704-31.781 4.19-5.834 1.367-9.973 6.56-9.973 12.552v95.761c0 6.547 6.037 11.478 12.432 10.08 23.888-5.221 47.667-4.935 71.567.856 2.866.694 8.717 1.042 8.717 1.042 0-13.231-13.741-21.854-26.952-27.087-14.54-5.759-24.011-19.905-24.011-35.544v-61.85z" fill="#e1f1fa"/></g><g><g><path d="m338.414 289.266h-164.829c-4.142 0-7.5-3.357-7.5-7.5s3.358-7.5 7.5-7.5h164.829c4.143 0 7.5 3.357 7.5 7.5s-3.357 7.5-7.5 7.5z" fill="#19cffc"/></g><g><path d="m338.414 330.473h-164.829c-4.142 0-7.5-3.357-7.5-7.5s3.358-7.5 7.5-7.5h164.829c4.143 0 7.5 3.357 7.5 7.5s-3.357 7.5-7.5 7.5z" fill="#19cffc"/></g><g><g><path d="m191.667 385.134c-4.142 0-7.5-3.357-7.5-7.5v-12.362c0-4.143 3.358-7.5 7.5-7.5s7.5 3.357 7.5 7.5v12.362c0 4.142-3.358 7.5-7.5 7.5z" fill="#495560"/></g><g><path d="m320.333 385.134c-4.143 0-7.5-3.357-7.5-7.5v-12.362c0-4.143 3.357-7.5 7.5-7.5s7.5 3.357 7.5 7.5v12.362c0 4.142-3.357 7.5-7.5 7.5z" fill="#495560"/></g><g><path d="m256 392.493c-8.668 0-16.911-3.754-22.615-10.3-2.721-3.123-2.396-7.86.727-10.582 3.122-2.721 7.86-2.396 10.582.727 2.855 3.276 6.976 5.155 11.307 5.155s8.452-1.879 11.307-5.155c2.723-3.122 7.457-3.447 10.582-.727 3.122 2.722 3.448 7.459.727 10.582-5.706 6.546-13.949 10.3-22.617 10.3z" fill="#495560"/></g></g></g></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>',H2=`<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background: new 0 0 512 512" xml:space="preserve"><g><path style="fill: #636978" d="M366,504.5H146c-44.183,0-80-35.817-80-80v-337c0-44.183,35.817-80,80-80h220&#10;&#9;&#9;c44.183,0,80,35.817,80,80v337C446,468.683,410.183,504.5,366,504.5z"/><path style="fill: #555a66" d="M226,444.5v-377c0-33.137,26.863-60,60-60H146c-44.183,0-80,35.817-80,80v337&#10;&#9;&#9;c0,44.183,35.817,80,80,80h140C252.863,504.5,226,477.637,226,444.5z"/><path style="fill: #96e8ff" d="M366,67.5H146c-11.046,0-20,8.954-20,20v327c0,11.046,8.954,20,20,20h220c11.046,0,20-8.954,20-20&#10;&#9;&#9;v-327C386,76.454,377.046,67.5,366,67.5z"/><path style="fill: #80dbff" d="M126,87.5v327c0,11.046,8.954,20,20,20h80v-367h-80C134.954,67.5,126,76.454,126,87.5z"/><path style="fill: #ffffff" d="M256,115.517c-26.85-7.998-53.509-8.858-80.318-2.577c-5.664,1.327-9.682,6.363-9.682,12.18&#10;&#9;&#9;c0,39.161,0,53.805,0,92.965c0,6.374,5.886,11.128,12.113,9.768c23.172-5.058,46.241-4.777,69.425,0.841&#10;&#9;&#9;c5.563,1.348,11.361,1.348,16.924,0c23.184-5.618,46.252-5.898,69.425-0.841c6.227,1.359,12.113-3.395,12.113-9.768&#10;&#9;&#9;c0-39.161,0-53.805,0-92.965c0-5.818-4.018-10.853-9.682-12.18C309.509,106.659,282.85,107.518,256,115.517z"/><path style="fill: #f5fafc" d="M175.682,112.94c-5.664,1.327-9.682,6.363-9.682,12.18c0,39.161,0,53.805,0,92.965&#10;&#9;&#9;c0,6.374,5.886,11.128,12.113,9.769c23.172-5.058,46.241-4.777,69.425,0.841c2.782,0.674,5.622,1.011,8.462,1.011V115.517&#10;&#9;&#9;C229.15,107.518,202.491,106.659,175.682,112.94z"/><path style="fill: #e1f1fa" d="M206.53,108.873c-10.274,0.306-20.551,1.654-30.85,4.067c-5.663,1.327-9.681,6.368-9.681,12.184&#10;&#9;&#9;c0,39.155,0,53.801,0,92.955c0,6.355,5.86,11.141,12.068,9.785c23.188-5.068,46.271-4.791,69.47,0.831&#10;&#9;&#9;c2.782,0.674,8.462,1.011,8.462,1.011c0-12.844-13.338-21.214-26.163-26.293c-14.114-5.59-23.307-19.322-23.307-34.502V108.873z"/><g><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M366,504.5H146c-44.183,0-80-35.817-80-80v-337c0-44.183,35.817-80,80-80h220c44.183,0,80,35.817,80,80v337&#10;&#9;&#9;&#9;C446,468.683,410.183,504.5,366,504.5z"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M126,398.01v16.49c0,11.046,8.954,20,20,20h220c11.046,0,20-8.954,20-20v-327c0-11.046-8.954-20-20-20H146&#10;&#9;&#9;&#9;c-11.046,0-20,8.954-20,20v280.51"/><line style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " x1="176" y1="281.01" x2="336" y2="281.01"/><line style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " x1="176" y1="321.01" x2="336" y2="321.01"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M286.144,109.53c-10.033,0.992-20.075,2.987-30.144,5.986c-26.85-7.998-53.509-8.858-80.318-2.577&#10;&#9;&#9;&#9;c-5.664,1.327-9.682,6.363-9.682,12.18c0,39.161,0,53.805,0,92.965c0,6.374,5.886,11.128,12.113,9.768&#10;&#9;&#9;&#9;c23.172-5.058,46.241-4.777,69.425,0.841c5.563,1.348,11.361,1.348,16.924,0c23.184-5.618,46.252-5.898,69.425-0.841&#10;&#9;&#9;&#9;c6.227,1.359,12.113-3.395,12.113-9.768c0-39.161,0-53.805,0-92.965c0-5.818-4.018-10.853-9.682-12.18&#10;&#9;&#9;&#9;c-6.702-1.57-13.395-2.694-20.084-3.372"/><line style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " x1="256" y1="115.517" x2="256" y2="229.706"/><g><line style="\r
            fill: none;\r
            stroke: #000000;\r
            stroke-width: 15;\r
            stroke-linecap: round;\r
            stroke-linejoin: round;\r
            stroke-miterlimit: 10;\r
          " x1="193.551" y1="362.07" x2="193.551" y2="374.07"/><line style="\r
            fill: none;\r
            stroke: #000000;\r
            stroke-width: 15;\r
            stroke-linecap: round;\r
            stroke-linejoin: round;\r
            stroke-miterlimit: 10;\r
          " x1="318.449" y1="362.07" x2="318.449" y2="374.07"/><path style="\r
            fill: none;\r
            stroke: #000000;\r
            stroke-width: 15;\r
            stroke-linecap: round;\r
            stroke-linejoin: round;\r
            stroke-miterlimit: 10;\r
          " d="&#10;&#9;&#9;&#9;&#9;M239.536,373.713c4.003,4.594,9.892,7.501,16.464,7.501c6.572,0,12.461-2.907,16.464-7.501"/></g></g></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>`,F2='<svg id="Capa_1" enable-background="new 0 0 512 512" height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg"><g><path d="m449.945 61.818v388.363c0 34.144-27.684 61.818-61.818 61.818h-264.254c-34.134 0-61.818-27.674-61.818-61.818v-388.363c0-34.144 27.684-61.818 61.818-61.818h264.253c34.135 0 61.819 27.674 61.819 61.818z" fill="#808fa4"/><path d="m188.464 512h-64.59c-34.134 0-61.818-27.674-61.818-61.818v-388.364c-.001-34.144 27.683-61.818 61.817-61.818h50.341c-7.367 6.574-15.218 18.092-15.218 37.359v423.909c.001 0-.215 30.24 29.468 50.732z" fill="#64768e"/><path d="m418.912 61.942v147.509l-194.274 13.033 77.912-191.451h85.453c17.072 0 30.909 13.837 30.909 30.909z" fill="#c5ced6"/><path d="m271.516 31.033-46.878 191.451-65.641-6.501-65.909-6.532 20.843-140.421 45.365-37.997z" fill="#abb6c4"/><path d="m159.296 31.033c-.196 2.009-.299 4.121-.299 6.326v178.624l-65.909-6.532v-147.509c0-17.072 13.837-30.909 30.909-30.909z" fill="#9ca9ba"/><path d="m313.676 222.484-18.885 196.428h-135.794l-51.732-35.968-14.177-142.46 65.909-5.379z" fill="#c5ced6"/><path d="m93.088 240.484 65.909-5.378v183.807h-35c-17.072 0-30.909-13.837-30.909-30.909z" fill="#abb6c4"/><path d="m418.912 240.484v147.519c0 17.072-13.837 30.909-30.909 30.909h-62.19l-12.137-196.428z" fill="#64768e"/><path d="m287.487 480.971h-62.974c-8.317 0-15.059-6.742-15.059-15.059v-.913c0-8.317 6.742-15.059 15.059-15.059h62.974c8.317 0 15.059 6.742 15.059 15.059v.913c0 8.316-6.743 15.059-15.059 15.059z" fill="#64768e"/><path d="m418.912 209.451v31.033h-77.644c-8.531 0-15.455 6.924-15.455 15.455v162.974h-31.022v-162.975c0-8.531-6.923-15.455-15.455-15.455h-120.34l-13.147-13.27 13.147-17.763h44.138c6.718 0 12.673-4.348 14.723-10.746l53.658-167.672h31.033l-50.65 158.255c-3.183 9.974 4.255 20.163 14.723 20.163h152.291z" fill="#e8ecf9"/><path d="m93.088 209.451h65.909v31.033h-65.909z" fill="#d7ddf5"/><g><g><path d="m129.509 332.474c-4.268 0-7.727-3.459-7.727-7.727v-12.364c0-4.268 3.459-7.727 7.727-7.727s7.727 3.459 7.727 7.727v12.364c0 4.268-3.459 7.727-7.727 7.727z" fill="#495560"/></g><g><path d="m258.191 332.474c-4.268 0-7.727-3.459-7.727-7.727v-12.364c0-4.268 3.459-7.727 7.727-7.727s7.727 3.459 7.727 7.727v12.364c.001 4.268-3.458 7.727-7.727 7.727z" fill="#495560"/></g><path d="m223.825 324.391c-4.268 0-7.727 3.459-7.727 7.727 0 3.952-3.215 7.167-7.166 7.167-3.952 0-7.167-3.215-7.167-7.167 0-4.268-3.459-7.727-7.727-7.727s-7.727 3.459-7.727 7.727c0 3.952-3.215 7.167-7.166 7.167-3.952 0-7.167-3.215-7.167-7.167 0-4.268-3.459-7.727-7.727-7.727s-7.727 3.459-7.727 7.727c0 12.473 10.148 22.621 22.621 22.621 5.7 0 10.911-2.124 14.894-5.616 3.982 3.492 9.193 5.616 14.894 5.616 12.473 0 22.62-10.148 22.62-22.621-.001-4.268-3.46-7.727-7.728-7.727z" fill="#495560"/></g></g></svg>',G2=`<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 511.941 511.941" style="enable-background: new 0 0 511.941 511.941" xml:space="preserve" width="512" height="512"><g><g><path style="fill: #808fa4" d="M444.211,67.5v376.94c0,33.14-26.87,60-60,60H127.73c-33.13,0-60-26.86-60-60V67.5&#10;&#9;&#9;&#9;c0-33.14,26.87-60,60-60h256.48C417.341,7.5,444.211,34.361,444.211,67.5z"/><path style="fill: #64768e" d="M190.421,504.44h-62.69c-33.13,0-60-26.86-60-60V67.5c0-33.14,26.87-60,60-60h48.86&#10;&#9;&#9;&#9;c-7.15,6.38-14.77,17.56-14.77,36.26v411.44C161.821,455.201,161.611,484.551,190.421,504.44z"/><path style="fill: #c5ced6" d="M414.091,67.62v143.17l-188.56,12.65l75.62-185.82h82.94&#10;&#9;&#9;&#9;C400.661,37.62,414.091,51.051,414.091,67.62z"/><polygon style="fill: #abb6c4" points="271.031,37.62 225.531,223.44 161.821,217.131 97.85,210.79 118.08,74.5 162.111,37.62 &#9;&#9;&#10;&#9;&#9;&#9;"/><path style="fill: #9ca9ba" d="M162.111,37.62c-0.19,1.95-0.29,4-0.29,6.14v173.37l-63.97-6.34V67.62c0-16.57,13.43-30,30-30&#10;&#9;&#9;&#9;H162.111z"/><polygon style="fill: #c5ced6" points="311.951,223.44 293.62,414.091 161.821,414.091 111.611,379.181 97.85,240.911 &#10;&#9;&#9;&#9;161.821,235.69 &#9;&#9;"/><path style="fill: #abb6c4" d="M97.85,240.911l63.97-5.22v178.4h-33.97c-16.57,0-30-13.43-30-30V240.911z"/><path style="fill: #64768e" d="M414.091,240.911v143.18c0,16.57-13.43,30-30,30h-60.36l-11.78-190.65L414.091,240.911z"/><path style="fill: #64768e" d="M286.088,474.324h-60.235c-8.317,0-15.059-6.742-15.059-15.059v0&#10;&#9;&#9;&#9;c0-8.317,6.742-15.059,15.059-15.059h60.235c8.317,0,15.059,6.742,15.059,15.059v0&#10;&#9;&#9;&#9;C301.147,467.581,294.405,474.324,286.088,474.324z"/><path style="fill: #e8ecf9" d="M414.091,210.79v30.12h-75.36c-8.28,0-15,6.72-15,15v158.18h-30.11v-158.18c0-8.28-6.72-15-15-15&#10;&#9;&#9;&#9;h-116.8l-12.76-12.88l12.76-17.24h42.84c6.52,0,12.3-4.22,14.29-10.43l52.08-162.74h30.12l-49.16,153.6&#10;&#9;&#9;&#9;c-3.09,9.68,4.13,19.57,14.29,19.57H414.091z"/><rect x="97.85" y="210.79" style="fill: #d7ddf5" width="63.97" height="30.12"/></g><g><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M384.206,504.441H127.735c-33.137,0-60-26.863-60-60V67.5c0-33.137,26.863-60,60-60h256.471c33.137,0,60,26.863,60,60v376.941&#10;&#9;&#9;&#9;C444.206,477.578,417.343,504.441,384.206,504.441z"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M384.088,414.088H127.853c-16.569,0-30-13.431-30-30V67.618c0-16.569,13.431-30,30-30h256.235c16.569,0,30,13.431,30,30v316.471&#10;&#9;&#9;&#9;C414.088,400.657,400.657,414.088,384.088,414.088z"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M286.088,474.324h-60.235c-8.317,0-15.059-6.742-15.059-15.059c0-8.317,6.742-15.059,15.059-15.059h60.235&#10;&#9;&#9;&#9;c8.317,0,15.059,6.742,15.059,15.059C301.147,467.581,294.405,474.324,286.088,474.324z"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M100.85,210.79h103.811c6.523,0,12.298-4.215,14.286-10.428L270.56,39.09"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M293.62,410.091v-154.18c0-8.284-6.716-15-15-15H100.85"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M411.091,240.911h-72.36c-8.284,0-15,6.716-15,15v154.18"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M300.616,39.291l-48.622,151.927c-3.098,9.679,4.124,19.572,14.286,19.572h144.81"/><g><line style="\r
            fill: none;\r
            stroke: #000000;\r
            stroke-width: 15;\r
            stroke-linecap: round;\r
            stroke-linejoin: round;\r
            stroke-miterlimit: 10;\r
          " x1="133.2" y1="310.695" x2="133.2" y2="322.695"/><line style="\r
            fill: none;\r
            stroke: #000000;\r
            stroke-width: 15;\r
            stroke-linecap: round;\r
            stroke-linejoin: round;\r
            stroke-miterlimit: 10;\r
          " x1="258.098" y1="310.695" x2="258.098" y2="322.695"/><g><path style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-miterlimit: 10;\r
            " d="M195.831,329.85&#10;&#9;&#9;&#9;&#9;&#9;c0,7.984-6.472,14.456-14.456,14.456s-14.456-6.472-14.456-14.456"/><path style="\r
              fill: none;\r
              stroke: #000000;\r
              stroke-width: 15;\r
              stroke-linecap: round;\r
              stroke-miterlimit: 10;\r
            " d="M224.742,329.85&#10;&#9;&#9;&#9;&#9;&#9;c0,7.984-6.472,14.456-14.456,14.456s-14.456-6.472-14.456-14.456"/></g></g></g></g></svg>`,W2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-external-link" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"/><path d="M11 13l9 -9"/><path d="M15 4h5v5"/></svg>',U2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-eye" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"/><path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6"/></svg>',V2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-eye-off" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.585 10.587a2 2 0 0 0 2.829 2.828"/><path d="M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87"/><path d="M3 3l18 18"/></svg>',Z2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-download" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 3v4a1 1 0 0 0 1 1h4"/><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"/><path d="M12 17v-6"/><path d="M9.5 14.5l2.5 2.5l2.5 -2.5"/></svg>',q2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-file-percent"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 17l4 -4"/><path d="M14 3v4a1 1 0 0 0 1 1h4"/><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"/><path d="M10 13h.01"/><path d="M14 17h.01"/></svg>',j2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-folder-open"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M5 19l2.757 -7.351a1 1 0 0 1 .936 -.649h12.307a1 1 0 0 1 .986 1.164l-.996 5.211a2 2 0 0 1 -1.964 1.625h-14.026a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2" /></svg>',K2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-hand-click"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M8 13v-8.5a1.5 1.5 0 0 1 3 0v7.5"/><path d="M11 11.5v-2a1.5 1.5 0 0 1 3 0v2.5"/><path d="M14 10.5a1.5 1.5 0 0 1 3 0v1.5"/><path d="M17 11.5a1.5 1.5 0 0 1 3 0v4.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7l-.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47"/><path d="M5 3l-1 -1"/><path d="M4 7h-1"/><path d="M14 3l1 -1"/><path d="M15 6h1"/></svg>',Y2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-help"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"/><path d="M12 17l0 .01"/><path d="M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4"/></svg>',X2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-info-circle"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"/><path d="M12 9h.01"/><path d="M11 12h1v4h1"/></svg>',J2='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-keyboard" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M2 6m0 2a2 2 0 0 1 2 -2h16a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2z"/><path d="M6 10l0 .01"/><path d="M10 10l0 .01"/><path d="M14 10l0 .01"/><path d="M18 10l0 .01"/><path d="M6 14l0 .01"/><path d="M18 14l0 .01"/><path d="M10 14l4 .01"/></svg>',Q2='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-layout-bottombar"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"/><path d="M4 15l16 0"/></svg>',eg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-layout-bottombar-inactive"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z"/><path d="M4 15h1"/><path d="M19 15h1"/><path d="M9 15h1"/><path d="M14 15h1"/></svg>',tg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-layout-dashboard"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M5 4h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1" /><path d="M5 16h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1" /><path d="M15 12h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1" /><path d="M15 4h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1" /></svg>',rg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"/><path d="M9 4l0 16"/></svg>',ng='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar-inactive"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z"/><path d="M9 4v1"/><path d="M9 9v1"/><path d="M9 14v1"/><path d="M9 19v1"/></svg>',og='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar-right"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"/><path d="M15 4l0 16"/></svg>',ig='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar-right-inactive"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z"/><path d="M15 4v1"/><path d="M15 9v1"/><path d="M15 14v1"/><path d="M15 19v1"/></svg>',ag='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-list-numbers" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M11 6h9"/><path d="M11 12h9"/><path d="M12 18h8"/><path d="M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"/><path d="M6 10v-6l-2 2"/></svg>',sg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-loader-2" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 3a9 9 0 1 0 9 9"/></svg>',lg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-location-cog"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 18l-2 -4l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5l-3.14 8.697"/><path d="M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M19.001 15.5v1.5"/><path d="M19.001 21v1.5"/><path d="M22.032 17.25l-1.299 .75"/><path d="M17.27 20l-1.3 .75"/><path d="M15.97 17.25l1.3 .75"/><path d="M20.733 20l1.3 .75"/></svg>',cg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-menu-2" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6l16 0"/><path d="M4 12l16 0"/><path d="M4 18l16 0"/></svg>',dg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-menu-deep"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6h16"/><path d="M7 12h13"/><path d="M10 18h10"/></svg>',ug='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-message" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M8 9h8"/><path d="M8 13h6"/><path d="M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z"/></svg>',hg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-moon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z"/></svg>',fg='<svg id="Capa_1" enable-background="new 0 0 512 512" height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg"><g><path d="m449.945 61.818v388.363c0 34.144-27.684 61.818-61.818 61.818h-264.253c-34.134 0-61.818-27.674-61.818-61.818v-388.363c-.001-34.144 27.684-61.818 61.818-61.818h264.253c34.133 0 61.818 27.674 61.818 61.818z" fill="#e8ecf9"/><path d="m207.555 512h-83.681c-34.134 0-61.818-27.674-61.818-61.818v-388.364c-.001-34.144 27.684-61.818 61.818-61.818h79.993c-11.292 3.421-26.809 12.446-26.809 36.256v436.87c0 26.479 19.854 35.783 30.497 38.874z" fill="#d7ddf5"/><path d="m403.396 62.004v139.751c0 8.541-6.924 15.455-15.455 15.455h-210.883l-51.556-21.729v-124.699l51.556-24.233h210.883c8.531 0 15.455 6.913 15.455 15.455z" fill="#c5ced6"/><path d="m177.058 46.549v170.66h-52.999c-8.531 0-15.455-6.913-15.455-15.455v-139.75c0-8.541 6.924-15.455 15.455-15.455z" fill="#abb6c4"/><path d="m217.209 279.213v8.036l-40.151 41.769-8.809 9.17-59.644 4.307 12.333-53.195 56.121-25.541h24.696c8.541-.001 15.454 6.923 15.454 15.454z" fill="#c5ced6"/><path d="m124.059 263.758h52.999v65.26l-8.809 9.17-59.644 4.307v-63.281c-.001-8.532 6.923-15.456 15.454-15.456z" fill="#abb6c4"/><path d="m217.209 334.365v60.407l-40.151 43.438-4.204 4.543-64.25-8.634 8.573-21.379-8.573-26.551 50.743-51.824z" fill="#c5ced6"/><path d="m177.058 334.365v103.845l-4.204 4.543-64.25-8.634v-47.93l50.743-51.824z" fill="#abb6c4"/><path d="m217.209 287.249v47.116c-2.823 1.731-5.121 4.368-6.388 7.696-2.359 6.182-8.253 9.984-14.496 9.984-1.844 0-3.719-.33-5.543-1.03-.546-.206-1.092-.381-1.638-.525-1.298-.34-2.596-.505-3.895-.505-2.916 0-5.749.824-8.191 2.339l-11.045-14.888 11.045-32.29c1.03.165 2.061.433 3.07.824.587.227 1.175.412 1.772.556 1.247.319 2.514.474 3.771.474 6.244 0 12.137-3.802 14.496-9.984.082-.206.165-.412.258-.608 2.493-5.821 8.191-9.376 14.239-9.376.845.001 1.69.073 2.545.217z" fill="#808fa4"/><path d="m177.058 305.146v47.178c-2.782 1.731-5.049 4.348-6.305 7.645-.196.505-.402.989-.649 1.453-2.669 5.316-8.108 8.521-13.847 8.521-.309 0-.618-.01-.927-.031-1.535-.093-3.091-.412-4.605-.999-1.824-.701-3.699-1.03-5.543-1.03-6.244 0-12.137 3.802-14.496 9.984s-8.242 9.984-14.496 9.984c-1.834 0-3.709-.33-5.533-1.03-.68-.258-1.36-.474-2.05-.628v-43.695c5.038-1.02 9.458-4.523 11.426-9.674 2.359-6.182 8.253-9.984 14.496-9.984 1.844 0 3.709.33 5.533 1.03 1.824.701 3.709 1.03 5.553 1.03 1.113 0 2.226-.124 3.297-.361 2.895-.629 5.574-2.081 7.686-4.193 1.494-1.494 2.699-3.318 3.503-5.419 2.359-6.182 8.242-9.984 14.496-9.984.813-.003 1.637.058 2.461.203z" fill="#64768e"/><path d="m217.209 394.772v55.224c0 8.541-6.913 15.455-15.455 15.455h-24.696l-15.516-24.284 15.516-28.426c1.885-1.618 3.4-3.719 4.348-6.202 2.359-6.172 8.253-9.973 14.496-9.973 1.844 0 3.719.33 5.543 1.03 1.824.701 3.689 1.03 5.533 1.03 1.175 0 2.349-.134 3.472-.402h.01c2.494-.578 4.822-1.762 6.749-3.452z" fill="#808fa4"/><path d="m166.91 416.522c3.74 0 7.346-1.36 10.148-3.781v52.71h-52.999c-8.531 0-15.455-6.913-15.455-15.455v-15.877c3.802-1.968 8.397-2.37 12.704-.721 1.824.701 3.699 1.03 5.543 1.03 6.244 0 12.137-3.802 14.496-9.984s8.242-9.984 14.496-9.984c1.834 0 3.709.33 5.533 1.03 1.824.702 3.7 1.032 5.534 1.032z" fill="#64768e"/><path d="m403.396 351.612v98.384c0 8.541-6.924 15.455-15.455 15.455h-69.051l-55.132-93.686v-92.552c0-8.531 6.924-15.455 15.455-15.455h62.91z" fill="#808fa4"/><path d="m380.121 333.572-61.231 131.879h-39.677c-8.531 0-15.455-6.913-15.455-15.455v-78.231l77.572-53.699z" fill="#abb6c4"/><path d="m403.396 279.213v72.4c-7.058 3.359-14.95 5.234-23.275 5.234-3.534 0-6.996-.34-10.344-.989-17.34-3.338-31.744-14.929-38.956-30.518-3.215-6.924-5.007-14.651-5.007-22.79 0-15.197 6.244-28.941 16.31-38.791h45.818c8.53-.001 15.454 6.923 15.454 15.454z" fill="#c5ced6"/><g><g><ellipse cx="172.744" cy="147.233" fill="#fff" rx="30.72" ry="24.464"/><ellipse cx="339.256" cy="147.233" fill="#fff" rx="30.72" ry="24.464"/><path d="m285.787 117.781c-4.268 0-7.727 3.46-7.727 7.727 0 3.952-3.215 7.166-7.166 7.166s-7.166-3.215-7.166-7.166c0-4.268-3.46-7.727-7.727-7.727-4.268 0-7.727 3.46-7.727 7.727 0 3.952-3.215 7.166-7.166 7.166-3.952 0-7.166-3.215-7.166-7.166 0-4.268-3.46-7.727-7.727-7.727-4.268 0-7.727 3.46-7.727 7.727 0 12.473 10.148 22.621 22.621 22.621 5.701 0 10.911-2.124 14.894-5.616 3.982 3.492 9.193 5.616 14.894 5.616 12.473 0 22.621-10.148 22.621-22.621-.003-4.267-3.463-7.727-7.731-7.727z" fill="#495560"/></g><g><path d="m206.795 121.062c-4.268 0-7.727-3.46-7.727-7.727 0-3.559-2.896-6.454-6.455-6.454s-6.455 2.895-6.455 6.454c0 4.268-3.46 7.727-7.727 7.727-4.268 0-7.727-3.46-7.727-7.727 0-12.081 9.829-21.909 21.91-21.909s21.91 9.828 21.91 21.909c-.001 4.267-3.461 7.727-7.729 7.727z" fill="#495560"/></g><g><path d="m333.569 121.062c-4.268 0-7.727-3.46-7.727-7.727 0-3.559-2.896-6.454-6.455-6.454s-6.455 2.895-6.455 6.454c0 4.268-3.46 7.727-7.727 7.727-4.268 0-7.727-3.46-7.727-7.727 0-12.081 9.829-21.909 21.91-21.909s21.91 9.828 21.91 21.909c-.001 4.267-3.461 7.727-7.729 7.727z" fill="#495560"/></g></g></g></svg>',pg=`<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 511.94 511.94" style="enable-background: new 0 0 511.94 511.94" xml:space="preserve" width="512" height="512"><g><g><path style="fill: #e8ecf9" d="M444.21,67.5v376.94c0,33.14-26.87,60-60,60H127.73c-33.13,0-60-26.86-60-60V67.5&#10;&#9;&#9;&#9;c0-33.14,26.87-60,60-60h256.48C417.34,7.5,444.21,34.36,444.21,67.5z"/><path style="fill: #d7ddf5" d="M208.95,504.44h-81.22c-33.13,0-60-26.86-60-60V67.5c0-33.14,26.87-60,60-60h77.64&#10;&#9;&#9;&#9;c-10.96,3.32-26.02,12.08-26.02,35.19v424.02C179.35,492.41,198.62,501.44,208.95,504.44z"/><path style="fill: #c5ced6" d="M399.03,67.68v135.64c0,8.29-6.72,15-15,15H179.35l-50.04-21.09V76.2l50.04-23.52h204.68&#10;&#9;&#9;&#9;C392.31,52.68,399.03,59.39,399.03,67.68z"/><path style="fill: #abb6c4" d="M179.35,52.68v165.64h-51.44c-8.28,0-15-6.71-15-15V67.68c0-8.29,6.72-15,15-15H179.35z"/><path style="fill: #c5ced6" d="M218.32,278.5v7.8l-38.97,40.54l-8.55,8.9l-57.89,4.18l11.97-51.63l54.47-24.79h23.97&#10;&#9;&#9;&#9;C211.61,263.5,218.32,270.22,218.32,278.5z"/><path style="fill: #abb6c4" d="M127.91,263.5h51.44v63.34l-8.55,8.9l-57.89,4.18V278.5C112.91,270.22,119.63,263.5,127.91,263.5z"/><polygon style="fill: #c5ced6" points="218.32,332.03 218.32,390.66 179.35,432.82 175.27,437.23 112.91,428.85 121.23,408.1 &#10;&#9;&#9;&#9;112.91,382.33 162.16,332.03 &#9;&#9;"/><polygon style="fill: #abb6c4" points="179.35,332.03 179.35,432.82 175.27,437.23 112.91,428.85 112.91,382.33 162.16,332.03 &#9;&#9;&#10;&#9;&#9;&#9;"/><path style="fill: #808fa4" d="M218.32,286.3v45.73c-2.74,1.68-4.97,4.24-6.2,7.47c-2.29,6-8.01,9.69-14.07,9.69&#10;&#9;&#9;&#9;c-1.79,0-3.61-0.32-5.38-1c-0.53-0.2-1.06-0.37-1.59-0.51c-1.26-0.33-2.52-0.49-3.78-0.49c-2.83,0-5.58,0.8-7.95,2.27&#10;&#9;&#9;&#9;l-10.72-14.45l10.72-31.34c1,0.16,2,0.42,2.98,0.8c0.57,0.22,1.14,0.4,1.72,0.54c1.21,0.31,2.44,0.46,3.66,0.46&#10;&#9;&#9;&#9;c6.06,0,11.78-3.69,14.07-9.69c0.08-0.2,0.16-0.4,0.25-0.59c2.42-5.65,7.95-9.1,13.82-9.1&#10;&#9;&#9;&#9;C216.67,286.09,217.49,286.16,218.32,286.3z"/><path style="fill: #64768e" d="M179.35,303.67v45.79c-2.7,1.68-4.9,4.22-6.12,7.42c-0.19,0.49-0.39,0.96-0.63,1.41&#10;&#9;&#9;&#9;c-2.59,5.16-7.87,8.27-13.44,8.27c-0.3,0-0.6-0.01-0.9-0.03c-1.49-0.09-3-0.4-4.47-0.97c-1.77-0.68-3.59-1-5.38-1&#10;&#9;&#9;&#9;c-6.06,0-11.78,3.69-14.07,9.69s-8,9.69-14.07,9.69c-1.78,0-3.6-0.32-5.37-1c-0.66-0.25-1.32-0.46-1.99-0.61v-42.41&#10;&#9;&#9;&#9;c4.89-0.99,9.18-4.39,11.09-9.39c2.29-6,8.01-9.69,14.07-9.69c1.79,0,3.6,0.32,5.37,1c1.77,0.68,3.6,1,5.39,1&#10;&#9;&#9;&#9;c1.08,0,2.16-0.12,3.2-0.35c2.81-0.61,5.41-2.02,7.46-4.07c1.45-1.45,2.62-3.22,3.4-5.26c2.29-6,8-9.69,14.07-9.69&#10;&#9;&#9;&#9;C177.75,303.47,178.55,303.53,179.35,303.67z"/><path style="fill: #808fa4" d="M218.32,390.66v53.6c0,8.29-6.71,15-15,15h-23.97l-15.06-23.57l15.06-27.59&#10;&#9;&#9;&#9;c1.83-1.57,3.3-3.61,4.22-6.02c2.29-5.99,8.01-9.68,14.07-9.68c1.79,0,3.61,0.32,5.38,1c1.77,0.68,3.58,1,5.37,1&#10;&#9;&#9;&#9;c1.14,0,2.28-0.13,3.37-0.39h0.01C214.19,393.45,216.45,392.3,218.32,390.66z"/><path style="fill: #64768e" d="M169.5,411.77c3.63,0,7.13-1.32,9.85-3.67v51.16h-51.44c-8.28,0-15-6.71-15-15v-15.41&#10;&#9;&#9;&#9;c3.69-1.91,8.15-2.3,12.33-0.7c1.77,0.68,3.59,1,5.38,1c6.06,0,11.78-3.69,14.07-9.69c2.29-6,8-9.69,14.07-9.69&#10;&#9;&#9;&#9;c1.78,0,3.6,0.32,5.37,1C165.9,411.45,167.72,411.77,169.5,411.77z"/><path style="fill: #808fa4" d="M399.03,348.77v95.49c0,8.29-6.72,15-15,15h-67.02l-53.51-90.93V278.5c0-8.28,6.72-15,15-15h61.06&#10;&#9;&#9;&#9;L399.03,348.77z"/><path style="fill: #abb6c4" d="M376.44,331.26l-59.43,128H278.5c-8.28,0-15-6.71-15-15v-75.93l75.29-52.12L376.44,331.26z"/><path style="fill: #c5ced6" d="M399.03,278.5v70.27c-6.85,3.26-14.51,5.08-22.59,5.08c-3.43,0-6.79-0.33-10.04-0.96&#10;&#9;&#9;&#9;c-16.83-3.24-30.81-14.49-37.81-29.62c-3.12-6.72-4.86-14.22-4.86-22.12c0-14.75,6.06-28.09,15.83-37.65h44.47&#10;&#9;&#9;&#9;C392.31,263.5,399.03,270.22,399.03,278.5z"/><g><g><ellipse style="fill: #ffffff" cx="175.162" cy="150.402" rx="29.816" ry="23.744"/><ellipse style="fill: #ffffff" cx="336.778" cy="150.402" rx="29.816" ry="23.744"/></g></g></g><g><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M67.73,402.54v41.9c0,33.14,26.87,60,60,60h256.48c33.13,0,60-26.86,60-60V67.5c0-33.14-26.87-60-60-60H127.73&#10;&#9;&#9;&#9;c-33.13,0-60,26.86-60,60v300.04"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M359,52.68h25.03c8.28,0,15,6.71,15,15v135.64c0,8.29-6.72,15-15,15H127.91c-8.28,0-15-6.71-15-15V67.68c0-8.29,6.72-15,15-15H324&#10;&#9;&#9;&#9;"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M203.323,459.264h-75.412c-8.284,0-15-6.716-15-15V278.499c0-8.284,6.716-15,15-15h75.412c8.284,0,15,6.716,15,15v165.765&#10;&#9;&#9;&#9;C218.323,452.548,211.607,459.264,203.323,459.264z"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M399.03,278.5v165.76c0,8.29-6.72,15-15,15H278.5c-8.28,0-15-6.71-15-15V278.5c0-8.28,6.72-15,15-15h105.53&#10;&#9;&#9;&#9;C392.31,263.5,399.03,270.22,399.03,278.5z"/><line style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " x1="264.641" y1="367.54" x2="327.14" y2="324.275"/><line style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " x1="335.24" y1="420" x2="317.58" y2="458.04"/><line style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " x1="365.42" y1="354.99" x2="349.98" y2="388.25"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M337.07,266.11c-14.481,16.226-16.955,38.907-8.48,57.16c12.198,26.365,43.179,37.557,69.06,26.13"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M114.09,339.63c4.39-1.26,8.16-4.51,9.91-9.1c2.29-6,8.01-9.69,14.07-9.69c4.907,0,5.826,2,10.76,2&#10;&#9;&#9;&#9;c6.016,0,11.752-3.643,14.06-9.68c2.29-6,8-9.69,14.07-9.69c3.551,0,5.135,1.068,7.09,1.54c7.171,1.837,14.948-1.942,17.73-9.23&#10;&#9;&#9;&#9;c2.653-6.632,8.993-10.222,15.36-9.63"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M114.09,382.66c0.973,0.288,2.952,1.28,6.18,1.28c6.07,0,11.78-3.69,14.07-9.69c2.29-6,8.01-9.69,14.07-9.69&#10;&#9;&#9;&#9;c4.605,0,5.534,1.709,9.85,1.97c6.213,0.414,12.476-3.218,14.97-9.65c2.891-7.576,11.422-11.716,19.44-8.69&#10;&#9;&#9;&#9;c7.75,2.977,16.481-0.911,19.45-8.69c1.05-2.75,2.82-5.02,5.02-6.66"/><path style="\r
          fill: none;\r
          stroke: #000000;\r
          stroke-width: 15;\r
          stroke-linecap: round;\r
          stroke-linejoin: round;\r
          stroke-miterlimit: 10;\r
        " d="&#10;&#9;&#9;&#9;M114.09,428.31c3.44-1.43,7.41-1.59,11.15-0.16c7.75,2.977,16.481-0.911,19.45-8.69c2.29-6,8-9.69,14.07-9.69&#10;&#9;&#9;&#9;c4.886,0,5.854,2,10.74,2c6.07,0,11.78-3.69,14.07-9.69c2.29-5.99,8.01-9.68,14.07-9.68c4.907,0,5.856,2,10.75,2&#10;&#9;&#9;&#9;c3.118,0,6.213-0.998,8.75-2.81"/><g><g><g><path style="\r
                fill: none;\r
                stroke: #000000;\r
                stroke-width: 15;\r
                stroke-linecap: round;\r
                stroke-miterlimit: 10;\r
              " d="M255.97,129.317&#10;&#9;&#9;&#9;&#9;&#9;&#9;c0,7.984-6.472,14.456-14.456,14.456c-7.984,0-14.456-6.472-14.456-14.456"/><path style="\r
                fill: none;\r
                stroke: #000000;\r
                stroke-width: 15;\r
                stroke-linecap: round;\r
                stroke-miterlimit: 10;\r
              " d="M284.881,129.317&#10;&#9;&#9;&#9;&#9;&#9;&#9;c0,7.984-6.472,14.456-14.456,14.456c-7.984,0-14.456-6.472-14.456-14.456"/></g></g><path style="\r
            fill: none;\r
            stroke: #000000;\r
            stroke-width: 15;\r
            stroke-linecap: round;\r
            stroke-linejoin: round;\r
            stroke-miterlimit: 10;\r
          " d="&#10;&#9;&#9;&#9;&#9;M208.213,117.501c0-7.602-6.163-13.765-13.765-13.765c-7.602,0-13.765,6.163-13.765,13.765"/><path style="\r
            fill: none;\r
            stroke: #000000;\r
            stroke-width: 15;\r
            stroke-linecap: round;\r
            stroke-linejoin: round;\r
            stroke-miterlimit: 10;\r
          " d="&#10;&#9;&#9;&#9;&#9;M303.727,117.501c0-7.602,6.163-13.765,13.765-13.765c7.602,0,13.765,6.163,13.765,13.765"/></g></g></g></svg>`,gg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-palette" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25"/><path d="M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/></svg>',mg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-pencil" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"/><path d="M13.5 6.5l4 4"/></svg>',vg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-pencil-cog"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"/><path d="M13.5 6.5l4 4"/><path d="M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M19.001 15.5v1.5"/><path d="M19.001 21v1.5"/><path d="M22.032 17.25l-1.299 .75"/><path d="M17.27 20l-1.3 .75"/><path d="M15.97 17.25l1.3 .75"/><path d="M20.733 20l1.3 .75"/></svg>',bg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-photo" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 8h.01"/><path d="M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z"/><path d="M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"/><path d="M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"/></svg>',wg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-photo-off" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 8h.01"/><path d="M7 3h11a3 3 0 0 1 3 3v11m-.856 3.099a2.991 2.991 0 0 1 -2.144 .901h-12a3 3 0 0 1 -3 -3v-12c0 -.845 .349 -1.608 .91 -2.153"/><path d="M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"/><path d="M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3"/><path d="M3 3l18 18" color="orange"/></svg>',_g='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-pin"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4"/><path d="M9 15l-4.5 4.5"/><path d="M14.5 4l5.5 5.5"/></svg>',yg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-player-pause" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"/><path d="M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"/></svg>',kg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-player-play" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M7 4v16l13 -8z"/></svg>',Eg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-refresh" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"/><path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',Ag='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-settings" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"/><path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"/></svg>',Sg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-settings-off"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9.451 5.437c.418 -.218 .75 -.609 .874 -1.12c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35c-.486 .118 -.894 .44 -1.123 .878m-.188 3.803c-.517 .523 -1.349 .734 -2.125 .262a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.472 -.774 -.262 -1.604 .259 -2.121"/><path d="M9.889 9.869a3 3 0 1 0 4.226 4.26m.592 -3.424a3.012 3.012 0 0 0 -1.419 -1.415"/><path d="M3 3l18 18"/></svg>',Mg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-spacing-horizontal"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 20h-2a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h2"/><path d="M4 20h2a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"/><path d="M12 8v8"/></svg>',xg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-spacing-vertical" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 20v-2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v2"/><path d="M4 4v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"/><path d="M16 12h-8"/></svg>',Ig='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-sun" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"/><path d="M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"/></svg>',Cg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-trash" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 7l16 0"/><path d="M10 11l0 6"/><path d="M14 11l0 6"/><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"/><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"/></svg>',Og='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-world-cog"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M21 12a9 9 0 1 0 -8.979 9"/><path d="M3.6 9h16.8"/><path d="M3.6 15h8.9"/><path d="M11.5 3a17 17 0 0 0 0 18"/><path d="M12.5 3a16.992 16.992 0 0 1 2.522 10.376"/><path d="M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M19.001 15.5v1.5"/><path d="M19.001 21v1.5"/><path d="M22.032 17.25l-1.299 .75"/><path d="M17.27 20l-1.3 .75"/><path d="M15.97 17.25l1.3 .75"/><path d="M20.733 20l1.3 .75"/></svg>',Tg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12"/><path d="M6 6l12 12"/></svg>',Lg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-zoom"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"/><path d="M21 21l-6 -6"/></svg>',Rg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-zoom-cancel" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"/><path d="M8 8l4 4"/><path d="M12 8l-4 4"/><path d="M21 21l-6 -6"/></svg>',Pg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-zoom-in" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"/><path d="M7 10l6 0"/><path d="M10 7l0 6"/><path d="M21 21l-6 -6"/></svg>',$g='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-zoom-in-area" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 13v4"/><path d="M13 15h4"/><path d="M15 15m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"/><path d="M22 22l-3 -3"/><path d="M6 18h-1a2 2 0 0 1 -2 -2v-1"/><path d="M3 11v-1"/><path d="M3 6v-1a2 2 0 0 1 2 -2h1"/><path d="M10 3h1"/><path d="M15 3h1a2 2 0 0 1 2 2v1"/></svg>',Dg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-zoom-out" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"/><path d="M7 10l6 0"/><path d="M21 21l-6 -6"/></svg>',zg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-zoom-out-area" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M13 15h4"/><path d="M15 15m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"/><path d="M22 22l-3 -3"/><path d="M6 18h-1a2 2 0 0 1 -2 -2v-1"/><path d="M3 11v-1"/><path d="M3 6v-1a2 2 0 0 1 2 -2h1"/><path d="M10 3h1"/><path d="M15 3h1a2 2 0 0 1 2 2v1"/></svg>',Ng='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-zoom-pan" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"/><path d="M17 17l-2.5 -2.5"/><path d="M10 5l2 -2l2 2"/><path d="M19 10l2 2l-2 2"/><path d="M5 10l-2 2l2 2"/><path d="M10 19l2 2l2 -2"/></svg>',Bg=rd({IconAdjustmentsHorizontal:()=>e2,IconAlertCircle:()=>t2,IconApiBook:()=>r2,IconArrowAutofitDown:()=>n2,IconArrowAutofitHeight:()=>o2,IconArrowAutofitLeft:()=>i2,IconArrowAutofitRight:()=>a2,IconArrowAutofitWidth:()=>s2,IconArrowBigLeft:()=>l2,IconArrowBigRight:()=>c2,IconArrowsHorizontal:()=>d2,IconArrowsLeftRight:()=>u2,IconArrowsMove:()=>h2,IconArrowsMoveVertical:()=>f2,IconArrowsVertical:()=>p2,IconBook:()=>g2,IconBookArrowLeft:()=>m2,IconBookArrowRight:()=>v2,IconBookOff:()=>b2,IconBookUpload:()=>w2,IconBookmark:()=>_2,IconBookmarkOff:()=>y2,IconBookmarks:()=>k2,IconBooksReturn:()=>E2,IconBoxAlignTop:()=>A2,IconCategory:()=>T2,IconCheck:()=>L2,IconChevronLeft:()=>R2,IconChevronRight:()=>P2,IconCircleCheck:()=>$2,IconCircleX:()=>D2,IconComic1:()=>M2,IconComic1Flat:()=>S2,IconComic2:()=>I2,IconComic2Flat:()=>x2,IconComic3:()=>O2,IconComic3Flat:()=>C2,IconDeviceFloppy:()=>z2,IconDotsVertical:()=>N2,IconEReader1:()=>H2,IconEReader1Flat:()=>B2,IconEReader2:()=>G2,IconEReader2Flat:()=>F2,IconExternalLink:()=>W2,IconEye:()=>U2,IconEyeOff:()=>V2,IconFileDownload:()=>Z2,IconFilePercent:()=>q2,IconFolderOpen:()=>j2,IconHandClick:()=>K2,IconHelp:()=>Y2,IconInfoCircle:()=>X2,IconKeyboard:()=>J2,IconLayoutBottombar:()=>Q2,IconLayoutBottombarInactive:()=>eg,IconLayoutDashboard:()=>tg,IconLayoutSidebar:()=>rg,IconLayoutSidebarInactive:()=>ng,IconLayoutSidebarRight:()=>og,IconLayoutSidebarRightInactive:()=>ig,IconListNumbers:()=>ag,IconLoader2:()=>sg,IconLocationCog:()=>lg,IconMenu2:()=>cg,IconMenuDeep:()=>dg,IconMessage:()=>ug,IconMoon:()=>hg,IconPage:()=>pg,IconPageFlat:()=>fg,IconPalette:()=>gg,IconPencil:()=>mg,IconPencilCog:()=>vg,IconPhoto:()=>bg,IconPhotoOff:()=>wg,IconPin:()=>_g,IconPlayerPause:()=>yg,IconPlayerPlay:()=>kg,IconRefresh:()=>Eg,IconSettings:()=>Ag,IconSettingsOff:()=>Sg,IconSpacingHorizontal:()=>Mg,IconSpacingVertical:()=>xg,IconSun:()=>Ig,IconTrash:()=>Cg,IconWorldCog:()=>Og,IconX:()=>Tg,IconZoom:()=>Lg,IconZoomCancel:()=>Rg,IconZoomIn:()=>Pg,IconZoomInArea:()=>$g,IconZoomOut:()=>Dg,IconZoomOutArea:()=>zg,IconZoomPan:()=>Ng}),Us=rd({IconAdjustmentsHorizontal:()=>Zg,IconAlertCircle:()=>_m,IconApiBook:()=>qg,IconArrowAutofitDown:()=>Yg,IconArrowAutofitHeight:()=>Xg,IconArrowAutofitLeft:()=>Jg,IconArrowAutofitRight:()=>Qg,IconArrowAutofitWidth:()=>em,IconArrowBigLeft:()=>tm,IconArrowBigRight:()=>rm,IconArrowsHorizontal:()=>jg,IconArrowsLeftRight:()=>Kg,IconArrowsMove:()=>nm,IconArrowsMoveVertical:()=>om,IconArrowsVertical:()=>im,IconBook:()=>am,IconBookArrowLeft:()=>lm,IconBookArrowRight:()=>cm,IconBookOff:()=>sm,IconBookUpload:()=>um,IconBookmark:()=>hm,IconBookmarkOff:()=>fm,IconBookmarks:()=>pm,IconBooksReturn:()=>dm,IconBoxAlignTop:()=>gm,IconCategory:()=>mm,IconCheck:()=>vm,IconChevronLeft:()=>bm,IconChevronRight:()=>wm,IconCircleCheck:()=>ym,IconCircleX:()=>km,IconComic1:()=>Sm,IconComic1Flat:()=>Mm,IconComic2:()=>xm,IconComic2Flat:()=>Im,IconComic3:()=>Cm,IconComic3Flat:()=>Om,IconDeviceFloppy:()=>Tm,IconDotsVertical:()=>Lm,IconEReader1:()=>Rm,IconEReader1Flat:()=>Pm,IconEReader2:()=>$m,IconEReader2Flat:()=>Dm,IconExternalLink:()=>zm,IconEye:()=>Nm,IconEyeOff:()=>Bm,IconFileDownload:()=>Hm,IconFilePercent:()=>Fm,IconFolderOpen:()=>Gm,IconHandClick:()=>Wm,IconHelp:()=>Em,IconInfoCircle:()=>Am,IconKeyboard:()=>Um,IconLayoutBottombar:()=>Zm,IconLayoutBottombarInactive:()=>qm,IconLayoutDashboard:()=>Vm,IconLayoutSidebar:()=>jm,IconLayoutSidebarInactive:()=>Km,IconLayoutSidebarRight:()=>Ym,IconLayoutSidebarRightInactive:()=>Xm,IconListNumbers:()=>Jm,IconLoader2:()=>Qm,IconLocationCog:()=>e5,IconMenu2:()=>t5,IconMenuDeep:()=>r5,IconMessage:()=>n5,IconMoon:()=>o5,IconPage:()=>i5,IconPageFlat:()=>a5,IconPalette:()=>s5,IconPencil:()=>l5,IconPencilCog:()=>c5,IconPhoto:()=>Vs,IconPhotoOff:()=>Zs,IconPin:()=>d5,IconPlayerPause:()=>u5,IconPlayerPlay:()=>h5,IconRefresh:()=>f5,IconSettings:()=>p5,IconSettingsOff:()=>g5,IconSpacingHorizontal:()=>m5,IconSpacingVertical:()=>v5,IconSun:()=>b5,IconTrash:()=>w5,IconWorldCog:()=>_5,IconX:()=>y5,IconZoom:()=>k5,IconZoomCancel:()=>E5,IconZoomIn:()=>A5,IconZoomInArea:()=>S5,IconZoomOut:()=>M5,IconZoomOutArea:()=>x5,IconZoomPan:()=>I5});function Hg(e){return[...e.matchAll(/([^{}]+)\s*\{([^}]+)\}/g)].map(t=>{const n=t[1].trim(),i=t[2],a=/color:\s*([^;]+)/.exec(i);if(a){const s=a[1].trim();return{selectors:n.split(",").map(l=>l.trim().replace(/\s\s+/g," ")),color:s}}return null}).filter(t=>t!==null)}var Fg=Hg(Qp),ta=new Map;for(const e of Fg)for(const t of e.selectors){const n=t.match(/^\s*\.([^ ]+)\s*(.*)$/);if(!n)continue;const[,i,a]=n;let s=a.trim();s.startsWith(">")&&(s=s.substring(1).trim()),s===""&&(s="*"),ta.has(i)||ta.set(i,[]),ta.get(i)?.push({subSelector:s,color:e.color})}var Gg=new DOMParser,Wg=new XMLSerializer;function Ug(e,t){const n=ta.get(t);if(!n?.length)return e;const i=Gg.parseFromString(e,"image/svg+xml").documentElement;if(i.querySelector("parsererror"))return console.error(`Error parsing SVG for ${t}`),e;for(const{subSelector:a,color:s}of n)try{i.querySelectorAll(a).forEach(l=>{l.setAttribute("stroke",s)})}catch(l){console.error(`Invalid selector "${a}" for ${t}`,l)}return Wg.serializeToString(i)}var Vg=Me.default.mapValues(Bg,(e,t)=>Ug(e,`icon-tabler-${Me.default.kebabCase(t.replace(/^Icon/,""))}`)),{IconAdjustmentsHorizontal:Zg,IconApiBook:qg,IconArrowsHorizontal:jg,IconArrowsLeftRight:Kg,IconArrowAutofitDown:Yg,IconArrowAutofitHeight:Xg,IconArrowAutofitLeft:Jg,IconArrowAutofitRight:Qg,IconArrowAutofitWidth:em,IconArrowBigLeft:tm,IconArrowBigRight:rm,IconArrowsMove:nm,IconArrowsMoveVertical:om,IconArrowsVertical:im,IconBook:am,IconBookOff:sm,IconBookArrowLeft:lm,IconBookArrowRight:cm,IconBooksReturn:dm,IconBookUpload:um,IconBookmark:hm,IconBookmarkOff:fm,IconBookmarks:pm,IconBoxAlignTop:gm,IconCategory:mm,IconCheck:vm,IconChevronLeft:bm,IconChevronRight:wm,IconAlertCircle:_m,IconCircleCheck:ym,IconCircleX:km,IconHelp:Em,IconInfoCircle:Am,IconComic1:Sm,IconComic1Flat:Mm,IconComic2:xm,IconComic2Flat:Im,IconComic3:Cm,IconComic3Flat:Om,IconDeviceFloppy:Tm,IconDotsVertical:Lm,IconEReader1:Rm,IconEReader1Flat:Pm,IconEReader2:$m,IconEReader2Flat:Dm,IconExternalLink:zm,IconEye:Nm,IconEyeOff:Bm,IconFileDownload:Hm,IconFilePercent:Fm,IconFolderOpen:Gm,IconHandClick:Wm,IconKeyboard:Um,IconLayoutDashboard:Vm,IconLayoutBottombar:Zm,IconLayoutBottombarInactive:qm,IconLayoutSidebar:jm,IconLayoutSidebarInactive:Km,IconLayoutSidebarRight:Ym,IconLayoutSidebarRightInactive:Xm,IconListNumbers:Jm,IconLoader2:Qm,IconLocationCog:e5,IconMenu2:t5,IconMenuDeep:r5,IconMessage:n5,IconMoon:o5,IconPage:i5,IconPageFlat:a5,IconPalette:s5,IconPencil:l5,IconPencilCog:c5,IconPhoto:Vs,IconPhotoOff:Zs,IconPin:d5,IconPlayerPause:u5,IconPlayerPlay:h5,IconRefresh:f5,IconSettings:p5,IconSettingsOff:g5,IconSpacingHorizontal:m5,IconSpacingVertical:v5,IconSun:b5,IconTrash:w5,IconWorldCog:_5,IconX:y5,IconZoom:k5,IconZoomCancel:E5,IconZoomIn:A5,IconZoomInArea:S5,IconZoomOut:M5,IconZoomOutArea:x5,IconZoomPan:I5}=Vg;function D(e,t,n,i){var a=arguments.length,s=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,n,i);else for(var h=e.length-1;h>=0;h--)(l=e[h])&&(s=(a<3?l(s):a>3?l(t,n,s):l(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s}var Un=class extends Je{constructor(...t){super(...t),this.name="",this.variant="regular",this.family="classic",this.label="",this.size=""}static{this.styles=yt`
    :host {
      --mov-icon-size: 1rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      vertical-align: middle;
      line-height: 1;
    }
    :host([hidden]) {
      display: none;
    }
    svg {
      width: var(--mov-icon-size, 1rem);
      height: var(--mov-icon-size, 1rem);
      display: block;
      color: inherit; /* This will inherit from the host element */
    }
  `}updated(t){super.updated(t),t.has("name")&&(Us[Hd(this.name)]?(this.dispatchEvent(new CustomEvent("load",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wa-load",{bubbles:!0,composed:!0}))):(this.dispatchEvent(new CustomEvent("error",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wa-error",{bubbles:!0,composed:!0}))))}render(){const t=Us[Hd(this.name)];if(!t)return Be;const n=this.size?`--mov-icon-size: ${this.size};`:"";return oe`<span
      role=${this.label?"img":Be}
      aria-label=${this.label||Be}
      aria-hidden=${this.label?Be:"true"}
      style=${n}
      >${Bd(t)}</span
    >`}};D([j({type:String})],Un.prototype,"name",void 0),D([j({type:String,reflect:!0})],Un.prototype,"variant",void 0),D([j({type:String,reflect:!0})],Un.prototype,"family",void 0),D([j({type:String})],Un.prototype,"label",void 0),D([j({type:String})],Un.prototype,"size",void 0),Un=D([ot("mov-icon")],Un);var C5=(e,...t)=>t.length===0?e[0]:String.raw({raw:e},...t),fo=C5;function O5(e,t){const n=document.createElement("style");return n.id=e,n.appendChild(document.createTextNode(t)),n}function Fd(e,t){document.querySelector(`#${e}`)||(document.head??document.querySelector("head")).appendChild(O5(e,t))}function T5(e){document.querySelectorAll(`style[id="${e}"]`).forEach(t=>{t.remove()})}function L5(e,t){T5(e),Fd(e,t)}function R5(e,t){return fo`
    <style id="${e}">
      ${t}
    </style>
  `}var ra=".mov-toast-stack{z-index:2000;pointer-events:none;flex-direction:column;gap:.5rem;width:350px;max-width:100vw;max-height:100vh;padding:1rem;display:flex;position:fixed;overflow:hidden}.mov-toast-stack-top-start{top:0;left:0}.mov-toast-stack-top-center{align-items:center;top:0;left:50%;transform:translate(-50%)}.mov-toast-stack-top-end{top:0;right:0}.mov-toast-stack-bottom-start{flex-direction:column-reverse;bottom:0;left:0}.mov-toast-stack-bottom-center{flex-direction:column-reverse;align-items:center;bottom:0;left:50%;transform:translate(-50%)}.mov-toast-stack-bottom-end{flex-direction:column-reverse;bottom:0;right:0}:host{width:100%;display:block}.mov-toast{pointer-events:auto;background-color:var(--theme-background-color);color:var(--theme-text-color);border:1px solid var(--theme-border-color);opacity:0;visibility:hidden;border-radius:.5rem;flex-direction:column;width:100%;transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1),visibility .3s cubic-bezier(.4,0,.2,1);display:flex;overflow:hidden;box-shadow:0 4px 12px #00000026}:host([placement$=-end]) .mov-toast{transform:translate(110%)}:host([placement$=-start]) .mov-toast{transform:translate(-110%)}:host([placement=top-center]) .mov-toast{transform:translateY(-110%)}:host([placement=bottom-center]) .mov-toast{transform:translateY(110%)}:host([open]) .mov-toast{opacity:1;visibility:visible;transform:translate(0)}.mov-toast-body{align-items:flex-start;gap:.75rem;padding:.75rem 1rem;display:flex}.mov-toast-icon{flex-shrink:0;justify-content:center;align-items:center;margin-top:.125rem;font-size:20px;display:flex}.mov-toast-icon mov-icon{--mov-icon-size:1.25rem}.mov-toast-content{flex-direction:column;flex-grow:1;gap:.125rem;display:flex}.mov-toast-title{font-size:14px;font-weight:600;line-height:1.25}.mov-toast-description{opacity:.8;font-size:13px;line-height:1.4}.mov-toast-close{cursor:pointer;color:inherit;opacity:.5;background:0 0;border:none;flex-shrink:0;justify-content:center;align-items:center;margin-right:-.25rem;padding:.25rem;transition:opacity .2s;display:flex}.mov-toast-close:hover{opacity:1}.mov-toast-variant-primary .mov-toast-icon{color:var(--mov-color-fill-loud)}.mov-toast-variant-success .mov-toast-icon{color:#28a745}.mov-toast-variant-warning .mov-toast-icon{color:#ffc107}.mov-toast-variant-danger .mov-toast-icon{color:#dc3545}.mov-toast-variant-neutral .mov-toast-icon{color:var(--theme-text-color)}.mov-toast-variant-primary{border-left:4px solid var(--mov-color-fill-loud)}.mov-toast-variant-success{border-left:4px solid #28a745}.mov-toast-variant-warning{border-left:4px solid #ffc107}.mov-toast-variant-danger{border-left:4px solid #dc3545}.mov-toast-variant-neutral{border-left:4px solid var(--theme-border-color)}",Ur=class extends Je{constructor(...t){super(...t),this.open=!1,this.variant="primary",this.duration=3e3,this.closable=!1,this.title="",this.description="",this.placement="bottom-end"}static{this.styles=[Ee(ra)]}async show(){if(!this.open)return await this.updateComplete,this.dispatchEvent(new CustomEvent("wa-show",{bubbles:!0,composed:!0})),this.open=!0,this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration)),new Promise(t=>{setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-show",{bubbles:!0,composed:!0})),t()},300)})}async hide(){if(this.open)return window.clearTimeout(this.autoHideTimeout),this.dispatchEvent(new CustomEvent("wa-hide",{bubbles:!0,composed:!0})),this.open=!1,new Promise(t=>{setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-hide",{bubbles:!0,composed:!0})),this.remove(),t()},300)})}handleCloseClick(){this.hide()}getDefaultIcon(){if(this.icon)return this.icon;switch(this.variant){case"success":return"IconCircleCheck";case"warning":return"IconAlertCircle";case"danger":return"IconCircleX";default:return"IconInfoCircle"}}render(){return oe`
      <div
        part="base"
        class=${kt({"mov-toast":!0,[`mov-toast-variant-${this.variant}`]:!0})}
        role="alert"
        aria-live="assertive"
        aria-atomic="true"
        aria-hidden=${this.open?"false":"true"}
      >
        <div class="mov-toast-body" part="body">
          <div class="mov-toast-icon" part="icon">
            <slot name="icon">
              <mov-icon name=${this.getDefaultIcon()}></mov-icon>
            </slot>
          </div>

          <div class="mov-toast-content" part="content">
            ${this.title?oe`<div class="mov-toast-title" part="title">${this.title}</div>`:""}
            <div class="mov-toast-description" part="description">
              <slot>${this.description}</slot>
            </div>
          </div>

          <slot name="action"></slot>

          ${this.closable?oe`
                <button
                  type="button"
                  class="mov-toast-close"
                  part="close-button"
                  @click=${this.handleCloseClick}
                  aria-label="Close"
                >
                  <mov-icon name="IconX"></mov-icon>
                </button>
              `:""}
        </div>
      </div>
    `}};D([j({type:Boolean,reflect:!0})],Ur.prototype,"open",void 0),D([j({reflect:!0})],Ur.prototype,"variant",void 0),D([j({type:Number})],Ur.prototype,"duration",void 0),D([j({type:Boolean})],Ur.prototype,"closable",void 0),D([j()],Ur.prototype,"title",void 0),D([j()],Ur.prototype,"description",void 0),D([j()],Ur.prototype,"icon",void 0),D([j({reflect:!0})],Ur.prototype,"placement",void 0),Ur=D([ot("mov-toast")],Ur);var sr=e=>{const t=e.placement||"bottom-end",n=`mov-toast-stack-${t}`;let i=document.querySelector(`.mov-toast-stack.${n}`);const a=ra.indexOf(":host");Fd("mov-toast-stack-styles",a>-1?ra.substring(0,a).trim():ra),i||(i=document.createElement("div"),i.className=`mov-toast-stack ${n}`,document.body.appendChild(i));const s=document.createElement("mov-toast");let l=e.variant||"primary";return l==="info"&&(l="primary"),l==="error"&&(l="danger"),s.variant=l,s.title=e.title||"",s.description=e.description||e.message||"",s.duration=e.duration??3e3,s.closable=e.closable??!0,s.placement=t,e.icon&&(s.icon=e.icon),i.appendChild(s),requestAnimationFrame(()=>{s.show()}),s};sr.info=e=>sr({...e,variant:"primary"}),sr.success=e=>sr({...e,variant:"success"}),sr.warning=e=>sr({...e,variant:"warning"}),sr.error=e=>sr({...e,variant:"danger"});var ti=(e,t)=>{const n=(i,a)=>Me.default.transform(i,(s,l,h)=>{Me.default.isEqual(l,a[h])||(Me.default.isObject(l)&&Me.default.isObject(a[h])&&!Me.default.isArray(l)?s[h]=n(l,a[h]):s[h]=l)});return n(e,t)},P5={bookmarks:[],colorScheme:"dark",downloadZip:!1,enabled:!1,fitWidthIfOversize:!0,header:"scroll",hidePageControls:!1,lazyLoadImages:!1,lazyStart:50,loadMode:"wait",locale:"en_US",maxReload:5,minZoom:30,navbar:"bottom",pagination:"disabled",scrollHeight:25,theme:"#29487D",loadSpeed:"Extreme",viewMode:"WebComic",zoomMode:"percent",zoomStep:30,zoomValue:100,keybinds:{SCROLL_UP:["up","W","num_8"],SCROLL_DOWN:["down","S","num_2"],NEXT_CHAPTER:["right","/","D","num_6"],PREVIOUS_CHAPTER:["left",";","A","num_4"],RETURN_CHAPTER_LIST:["backspace","del","num_decimal"],ENLARGE:["-","num_add","E"],REDUCE:["=","num_subtract","Q"],RESTORE:["9","num_divide","R"],FIT_WIDTH:["0","num_multiply","F"],FIT_HEIGHT:["H","num_0"],SETTINGS:["num_divide","num_5","X"],VIEW_MODE_WEBCOMIC:["C"],VIEW_MODE_VERTICAL:["V"],VIEW_MODE_LEFT:["N"],VIEW_MODE_RIGHT:["B"],VIEW_MODE_GALLERY:["G"],SCROLL_START:["space"],INCREASE_SPEED:["."],DECREASE_SPEED:[","]}},$5={lazyLoadImages:!0,fitWidthIfOversize:!0,navbar:"disabled",viewMode:"WebComic",header:"scroll",hidePageControls:!0,pagination:"disabled"},D5={loadSpeed:"All",lazyLoadImages:!1,downloadZip:!1,theme:"oklch(44.6% 0.043 257.281)"};function $r(e=!0){const t={...P5,theme:e?"#29487D":"#004526"};let n=cp()?Me.default.defaultsDeep($5,t):t;return Ms()&&(n=Me.default.defaultsDeep(D5,n)),n}function z5(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=s=>`${s.url}-${s.date}`,i=[...e].sort((s,l)=>n(s).localeCompare(n(l))),a=[...t].sort((s,l)=>n(s).localeCompare(n(l)));return Me.default.isEqual(i,a)}}function N5(e,t){if(e&&typeof e=="object"&&t&&typeof t=="object"){const n=e,i=t,a=Me.default.keys(n).sort((l,h)=>l.localeCompare(h)),s=Me.default.keys(i).sort((l,h)=>l.localeCompare(h));if(!Me.default.isEqual(a,s))return!1;for(const l of a){const h=n[l]?[...n[l]].sort((f,p)=>f.localeCompare(p)):[],u=i[l]?[...i[l]].sort((f,p)=>f.localeCompare(p)):[];if(!Me.default.isEqual(h,u))return!1}return!0}}function Gd(e,t,n){if(n==="bookmarks")return z5(e,t);if(n==="keybinds")return N5(e,t)}function na(e,t,n){if(e===t)return!1;if(n){const i={[n]:e},a={[n]:t};return!Me.default.isEqualWith(i,a,Gd)}return!Me.default.isEqualWith(e,t,Gd)}var Jt=Me.default.defaultsDeep(op($r()),$r()),Qt=Me.default.defaultsDeep(ip($r(!1)),$r(!1)),Vn=()=>Qt?.enabled===!0,qs=e=>Vn()&&!["locale","bookmarks","keybinds"].includes(e),Ct=dd(Vn()?{...Qt,locale:Jt.locale,keybinds:Jt.keybinds,bookmarks:Jt.bookmarks}:Jt),po=_p(Ct,e=>uo.find(t=>t.ID===e.locale)??uo[1]),er=dd({autoScroll:!1,chapter:Ds(),currentPage:0,device:Zo(),manga:void 0,panel:"none",scrollToPage:void 0});function Zn(e){if(e){const t=qs(e)?Qt[e]:Jt[e],n=Ct.get()?.[e];na(n,t,e)&&(Ct.setKey(e,t),xe("Refreshed Settings",e,t));return}for(const t in Ct.get()){const n=Ct.get()[t],i=qs(t)?Qt[t]:Jt[t];na(n,i)&&Ct.setKey(t,i)}xe("Refreshed All Settings")}function B5(e){const t=Me.default.defaultsDeep(e,$r()),n=Jt?ti(t,Jt):t;if(!Er(n)){xe("Imported Global Settings",n),Jt=t;for(const i in n)Zn(i)}}ld(Me.default.debounce(B5,300),"settings");function H5(e){const t=Me.default.defaultsDeep(e,$r(!1)),n=Qt?ti(t,Qt):t;if(!Er(n)){xe("Imported Local Settings",n),Qt=t;for(const i in n)Zn(i)}}ld(Me.default.debounce(H5,300),location.hostname);function X(e){return Ct.get()?.[e]}function go(e,t){const n=Ct.get()?.[e];na(n,t,e)&&Ct.setKey(e,t)}function St(e,t){na(X(e),t,e)&&(Ct.setKey(e,t),qs(e)?(Qt[e]=t,sd(ti(Qt,$r(!1)))):(Jt[e]=t,ap(ti(Jt,$r()))))}function ri(e,t){go(e,t(X(e)))}function fe(e){return er.get()[e]}function $e(e,t){const n=er.get()[e];Me.default.isEqual(n,t)||er.setKey(e,t)}function Wd(e,t){const n=er.get()[e],i=t(n);Me.default.isEqual(n,i)||er.setKey(e,i)}function Dr(e,t){Wd("images",n=>({...n,[e]:{...n?.[e],...t(n?.[e]??{})}}))}function K(e){const t=uo.find(n=>n.ID===X("locale"))??uo[1];return Hp(t,e)?t?.[e]??uo[1]?.[e]:`##MISSING_STRING_${e}##`}function Ud(e=!1){return Qt.enabled=e,sd(ti(Qt,$r(!1))),xe("Local Settings ",e?"Enabled":"Disabled"),sr.info({title:"Changed Settings to",description:Vn()?"Local":"Global",duration:2e3}),Vn()}function F5(){Vn()?(od(location.hostname),Qt=$r(!1),Ud(!1)):(od("settings"),Jt=$r(),Zn()),xe("Settings Reset")}function mo(e=location.href){return X("bookmarks").find(t=>t.url===e)?.page}function G5(e=null){kr("Current Settings (Local:",Vn(),") ",e?Ct.get()[e]:Ct.get(),`
Global Settings`,e?Jt[e]:Jt,`
Local Settings`,e?Qt[e]:Qt,`
AppState`,er.get())}rp("MOVSettings",G5);var W5=(e,t,n)=>{if(n&&!["bookmarks","zoomValue"].includes(n)){const i=t[n],a=e[n];sr.info({title:`${n} Changed`,description:`from ${JSON.stringify(i)} to ${JSON.stringify(a)}`,duration:2e3})}};Ct.listen(Me.default.debounce(W5,300));var lr=e=>e??Be,U5=":host{--mov-font-size-scale:1;--mov-font-size-m:calc(16px * var(--mov-font-size-scale));--mov-font-size-s:round(calc(var(--mov-font-size-m) / 1.125), 1px);--mov-font-size-l:round(calc(var(--mov-font-size-m) * 1.125 * 1.125), 1px);--mov-border-width-s:.0625rem;--mov-border-radius-pill:9999px;--mov-transition-fast:75ms;--mov-font-weight-action:500;--mov-focus-ring:solid .1875rem var(--mov-color-fill-loud);--mov-focus-ring-offset:.0625rem;--mov-line-height-condensed:1.2;--mov-form-control-padding-block:.75em;--mov-form-control-padding-inline:1em;--mov-form-control-height:round(calc(2 * var(--mov-form-control-padding-block) + 1em * var(--mov-line-height-condensed)), 1px);display:inline-block}:host([size=small]){font-size:var(--mov-font-size-s)}:host([size=medium]){font-size:var(--mov-font-size-m)}:host([size=large]){font-size:var(--mov-font-size-l)}.button{box-sizing:border-box;user-select:none;white-space:nowrap;vertical-align:middle;transition-property:background,border,box-shadow,color;transition-duration:var(--mov-transition-fast);cursor:pointer;padding:0 var(--mov-form-control-padding-inline);font-family:inherit;font-size:inherit;font-weight:var(--mov-font-weight-action);line-height:calc(var(--mov-form-control-height) - var(--mov-border-width-s) * 2);height:var(--mov-form-control-height);border-radius:var(--mov-border-radius-m,.375rem);border-style:solid;border-width:var(--mov-border-width-s);background-color:var(--mov-color-fill-loud);color:var(--mov-color-on-loud);border-color:#0000;justify-content:center;align-items:center;text-decoration:none;display:inline-flex}:host([appearance~=plain]){& .button{color:var(--mov-color-on-quiet);background-color:#0000;border-color:#0000}@media (hover:hover){& .button:not(.disabled):not(.loading):hover{color:var(--mov-color-on-quiet);background-color:var(--mov-color-fill-quiet)}}& .button:not(.disabled):not(.loading):active{color:var(--mov-color-on-quiet);background-color:color-mix(in oklab, var(--mov-color-fill-quiet), var(--mov-color-mix-active))}}:host([appearance~=outlined]){& .button{color:var(--mov-color-on-quiet);border-color:var(--mov-color-border-loud);background-color:#0000}@media (hover:hover){& .button:not(.disabled):not(.loading):hover{color:var(--mov-color-on-quiet);background-color:var(--mov-color-fill-quiet)}}& .button:not(.disabled):not(.loading):active{color:var(--mov-color-on-quiet);background-color:color-mix(in oklab, var(--mov-color-fill-quiet), var(--mov-color-mix-active))}}:host([appearance~=filled]){& .button{color:var(--mov-color-on-normal);background-color:var(--mov-color-fill-normal);border-color:#0000}@media (hover:hover){& .button:not(.disabled):not(.loading):hover{color:var(--mov-color-on-normal);background-color:color-mix(in oklab, var(--mov-color-fill-normal), var(--mov-color-mix-hover))}}& .button:not(.disabled):not(.loading):active{color:var(--mov-color-on-normal);background-color:color-mix(in oklab, var(--mov-color-fill-normal), var(--mov-color-mix-active))}}:host([appearance~=filled][appearance~=outlined]) .button{border-color:var(--mov-color-border-normal)}:host([appearance~=accent]){& .button{color:var(--mov-color-on-loud);background-color:var(--mov-color-fill-loud);border-color:#0000}@media (hover:hover){& .button:not(.disabled):not(.loading):hover{background-color:color-mix(in oklab, var(--mov-color-fill-loud), var(--mov-color-mix-hover))}}& .button:not(.disabled):not(.loading):active{background-color:color-mix(in oklab, var(--mov-color-fill-loud), var(--mov-color-mix-active))}}.button:focus{outline:none}.button:focus-visible{outline:var(--mov-focus-ring);outline-offset:var(--mov-focus-ring-offset)}.button.disabled{opacity:.5;cursor:not-allowed}.button.disabled *{pointer-events:none}.button.is-icon-button{outline-offset:2px;width:var(--mov-form-control-height);aspect-ratio:1}:host([pill]) .button{border-radius:var(--mov-border-radius-pill)}.start,.end{pointer-events:none;flex:none;align-items:center;display:flex}.label{display:inline-block}.is-icon-button .label{display:flex}mov-icon[part~=caret]{align-self:center;align-items:center;display:flex}mov-icon[part~=caret]::part(svg){width:.875em;height:.875em}.loading{cursor:wait;position:relative}.loading .start,.loading .label,.loading .end,.loading .caret{visibility:hidden}.spinner{--indicator-color:currentColor;--track-color:color-mix(in oklab, currentColor, transparent 90%);border:2px solid var(--track-color);border-top-color:var(--indicator-color);border-radius:50%;width:1em;height:1em;font-size:1em;animation:1s linear infinite spin;position:absolute;top:calc(50% - .5em);left:calc(50% - .5em)}@keyframes spin{to{transform:rotate(360deg)}}slot[name=start]::slotted(*){margin-inline-end:.75em}slot[name=end]::slotted(*),.button:not(.visually-hidden-label) [part~=caret]{margin-inline-start:.75em}",dt=class extends Je{constructor(...t){super(...t),this.isIconButton=!1,this.hasLabel=!1,this.hasStart=!1,this.hasEnd=!1,this.title="",this.appearance="accent",this.variant="brand",this.size="medium",this.withCaret=!1,this.disabled=!1,this.loading=!1,this.pill=!1,this.type="button"}static{this.styles=[Ee(U5)]}handleClick(t){(this.disabled||this.loading)&&(t.preventDefault(),t.stopPropagation())}click(){this.button?.click()}focus(t){this.button?.focus(t)}blur(){this.button?.blur()}render(){const t=!!this.href,n={button:!0,"with-caret":this.withCaret,disabled:this.disabled,loading:this.loading,pill:this.pill,"has-label":this.hasLabel,"has-start":this.hasStart,"has-end":this.hasEnd,"is-icon-button":this.isIconButton},i=oe`
      <slot
        name="start"
        @slotchange=${this.handleLabelSlotChange}
        part="start"
        class="start"
      ></slot>
      <slot
        @slotchange=${this.handleLabelSlotChange}
        part="label"
        class="label"
      ></slot>
      <slot
        name="end"
        @slotchange=${this.handleLabelSlotChange}
        part="end"
        class="end"
      ></slot>
      ${this.withCaret?oe`<mov-icon
            part="caret"
            class="caret"
            name="IconChevronRight"
            style="transform: rotate(90deg)"
          ></mov-icon>`:""}
      ${this.loading?oe`<span
            part="spinner"
            class="spinner"
          ></span>`:""}
    `;return t?oe`
        <a
          part="base"
          class=${kt(n)}
          href=${lr(this.href)}
          target=${lr(this.target)}
          title=${lr(this.title)}
          role="button"
          aria-disabled=${this.disabled?"true":"false"}
          tabindex=${this.disabled?"-1":"0"}
          download=${lr(this.download)}
          @click=${this.handleClick}
        >
          ${i}
        </a>
      `:oe`
        <button
          part="base"
          class=${kt(n)}
          ?disabled=${this.disabled||this.loading}
          type=${lr(this.type)}
          title=${lr(this.title)}
          name=${lr(this.name)}
          value=${lr(this.value)}
          aria-disabled=${this.disabled?"true":"false"}
          tabindex=${this.disabled?"-1":"0"}
        >
          ${i}
        </button>
      `}handleLabelSlotChange(){const t=this.labelSlot?.assignedNodes({flatten:!0})??[],n=t.filter(l=>l.nodeType===Node.ELEMENT_NODE),i=t.filter(l=>l.nodeType===Node.TEXT_NODE&&l.textContent?.trim()!==""),a=l=>["wa-icon","mov-icon","svg"].includes(l.localName),s=n.some(a);this.isIconButton=i.length===0&&s}};D([en(".button")],dt.prototype,"button",void 0),D([en("slot:not([name])")],dt.prototype,"labelSlot",void 0),D([zt()],dt.prototype,"isIconButton",void 0),D([zt()],dt.prototype,"hasLabel",void 0),D([zt()],dt.prototype,"hasStart",void 0),D([zt()],dt.prototype,"hasEnd",void 0),D([j()],dt.prototype,"title",void 0),D([j({reflect:!0})],dt.prototype,"appearance",void 0),D([j({reflect:!0})],dt.prototype,"variant",void 0),D([j({reflect:!0})],dt.prototype,"size",void 0),D([j({attribute:"with-caret",type:Boolean,reflect:!0})],dt.prototype,"withCaret",void 0),D([j({type:Boolean,reflect:!0})],dt.prototype,"disabled",void 0),D([j({type:Boolean,reflect:!0})],dt.prototype,"loading",void 0),D([j({type:Boolean,reflect:!0})],dt.prototype,"pill",void 0),D([j()],dt.prototype,"type",void 0),D([j({reflect:!0})],dt.prototype,"name",void 0),D([j({reflect:!0})],dt.prototype,"value",void 0),D([j({reflect:!0})],dt.prototype,"href",void 0),D([j()],dt.prototype,"target",void 0),D([j({reflect:!0})],dt.prototype,"rel",void 0),D([j()],dt.prototype,"download",void 0),D([j({reflect:!0})],dt.prototype,"form",void 0),dt=D([ot("mov-button")],dt);var Ar=class extends Je{constructor(...t){super(...t),this.mode="burger",this.active=!1,this.label="",this.icon="",this.activeIcon="",this.appearance="accent",this.size="medium",this.disabled=!1,this.loading=!1}static{this.styles=yt`
    :host {
      display: inline-flex;
      vertical-align: middle;
      --burger-size: 1.25rem;
      --burger-line-height: 2px;
      --burger-line-color: currentColor;
      --burger-transition-duration: 0.3s;
    }

    /* Base button styling */
    mov-button {
      position: relative;
    }

    /* Single icon modes - simple rotation in place */
    .single-icon-mode mov-icon {
      transition: transform 0.3s ease;
      display: block;
    }

    .chevron-icon {
      transform: rotate(0deg);
    }

    :host([active]) .chevron-icon {
      transform: rotate(90deg);
    }

    .expand-icon {
      transform: rotate(0deg);
    }

    :host([active]) .expand-icon {
      transform: rotate(180deg);
    }

    /* Two icon modes - positioned for smooth swap */
    .two-icon-mode {
      position: relative;
    }

    .two-icon-mode mov-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      transition:
        opacity 0.25s ease,
        transform 0.3s ease;
    }

    /* Default state: inactive visible, active hidden */
    .inactive-icon {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }

    .active-icon {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.8);
    }

    /* Active state: inactive hidden, active visible */
    :host([active]) .inactive-icon {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.8);
    }

    :host([active]) .active-icon {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }

    /* Play-pause uses single icon swap without positioning issues */
    .play-pause-icon {
      transition: opacity 0.2s ease;
      display: block;
    }

    /* Burger Mode Styling */
    .burger-mode {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: var(--burger-size);
      height: var(--burger-size);
      position: relative;
    }

    .burger-line {
      width: 100%;
      height: var(--burger-line-height);
      background-color: var(--burger-line-color);
      border-radius: var(--burger-line-height);
      transition: transform var(--burger-transition-duration) ease,
                  opacity var(--burger-transition-duration) ease;
      position: absolute;
    }

    .burger-line:nth-child(1) { transform: translateY(-6px); }
    .burger-line:nth-child(2) { transform: translateY(0); }
    .burger-line:nth-child(3) { transform: translateY(6px); }

    :host([active]) .burger-line:nth-child(1) {
      transform: translateY(0) rotate(45deg);
    }

    :host([active]) .burger-line:nth-child(2) {
      opacity: 0;
      transform: translateX(4px);
    }

    :host([active]) .burger-line:nth-child(3) {
      transform: translateY(0) rotate(-45deg);
    }

    /* Size adjustments for burger */
    :host([size="small"]) { --burger-size: 1rem; }
    :host([size="large"]) { --burger-size: 1.5rem; }

    /* Simple click feedback without disrupting layout */
    mov-button:active {
      transform: scale(0.96);
    }

    /* Loading state */
    :host([loading]) mov-icon {
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    /* Hover effects */
    mov-button:hover:not(:disabled) {
      filter: brightness(1.05);
    }

    /* Focus visible enhancement */
    mov-button:focus-visible {
      outline: 2px solid var(--mov-color-fill-loud, currentColor);
      outline-offset: 2px;
    }

    /* Ensure proper centering for all modes */
    mov-button.single-icon-mode {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Fix icon sizing consistency */
    mov-icon {
      flex-shrink: 0;
    }
  `}connectedCallback(){super.connectedCallback(),this.label||(this.label=this._getDefaultLabel())}render(){const t=this.active?this.activeLabel??this.label:this.label,n={"two-icon-mode":["custom","theme"].includes(this.mode),"single-icon-mode":["chevron","expand","play-pause"].includes(this.mode),"burger-mode-active":this.mode==="burger"};return oe`
      <mov-button
        @click=${this._onClick}
        .appearance=${lr(this.appearance)}
        .size=${lr(this.size)}
        ?disabled=${lr(this.disabled)}
        ?loading=${lr(this.loading)}
        .title=${lr(this.title)}
        class=${kt(n)}
        title=${t}
        aria-label=${t}
        aria-pressed=${this.active?"true":"false"}
        icon-only
      >
        ${this._renderIcons()}
      </mov-button>
    `}_getDefaultLabel(){switch(this.mode){case"burger":return"Toggle menu";case"chevron":return"Toggle expand";case"theme":return"Toggle theme";case"play-pause":return"Toggle play";case"expand":return"Toggle expand";case"custom":return"Toggle";default:return"Toggle"}}_getIcons(){switch(this.mode){case"chevron":return{inactive:"chevron-right",active:"chevron-right"};case"theme":return{inactive:"moon",active:"sun"};case"play-pause":return{inactive:"player-play",active:"player-pause"};case"expand":return{inactive:"arrow-autofit-down",active:"arrow-autofit-down"};case"custom":return{inactive:this.icon,active:this.activeIcon};default:return{inactive:"",active:""}}}_renderIcons(){if(this.mode==="burger")return oe`
        <div class="burger-mode">
          <div class="burger-line"></div>
          <div class="burger-line"></div>
          <div class="burger-line"></div>
        </div>
      `;const t=this._getIcons();return t.inactive?this.mode==="chevron"?oe`<mov-icon
        class="chevron-icon"
        name=${t.inactive}
      ></mov-icon>`:this.mode==="expand"?oe`<mov-icon
        class="expand-icon"
        name=${t.inactive}
      ></mov-icon>`:this.mode==="play-pause"?oe`<mov-icon
        class="play-pause-icon"
        name=${this.active?t.active:t.inactive}
      ></mov-icon>`:oe`
      <mov-icon
        class="inactive-icon"
        name=${t.inactive}
      ></mov-icon>
      <mov-icon
        class="active-icon"
        name=${t.active}
      ></mov-icon>
    `:Be}_onClick(){if(this.disabled||this.loading)return;const t=this.active;this.active=!this.active,this.dispatchEvent(new CustomEvent("toggle",{detail:{value:this.active,oldValue:t,mode:this.mode},bubbles:!0,composed:!0}))}toggle(){this._onClick()}setActive(t){this.active=t}};D([j({type:String})],Ar.prototype,"mode",void 0),D([j({type:Boolean,reflect:!0})],Ar.prototype,"active",void 0),D([j({type:String})],Ar.prototype,"label",void 0),D([j({type:String})],Ar.prototype,"activeLabel",void 0),D([j({type:String})],Ar.prototype,"icon",void 0),D([j({type:String})],Ar.prototype,"activeIcon",void 0),D([j({type:String,reflect:!0})],Ar.prototype,"appearance",void 0),D([j({type:String,reflect:!0})],Ar.prototype,"size",void 0),D([j({type:Boolean})],Ar.prototype,"disabled",void 0),D([j({type:Boolean,reflect:!0})],Ar.prototype,"loading",void 0),Ar=D([ot("toggle-button")],Ar);var Vd="important",V5=" !"+Vd,Vr=Jo(class extends Ki{constructor(e){if(super(e),e.type!==ji.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,n)=>{const i=e[n];return i==null?t:t+`${n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(e,[t]){const{style:n}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const i of this.ft)t[i]??(this.ft.delete(i),i.includes("-")?n.removeProperty(i):n[i]=null);for(const i in t){const a=t[i];if(a!=null){this.ft.add(i);const s=typeof a=="string"&&a.endsWith(V5);i.includes("-")||s?n.setProperty(i,s?a.slice(0,-11):a,s?Vd:""):n[i]=a}}return Qr}});function ni(e,t){let n=e.length,i,a,s=!1,l=!1;Array.isArray(e[0])?i=e:(i=[e],n=i.length,s=!0),Array.isArray(t[0])?a=t:(a=t.length>0?t.map(p=>[p]):[[]],l=!0);let h=a[0].length,u=a[0].map((p,w)=>a.map(b=>b[w])),f=i.map(p=>u.map(w=>{let b=0;if(!Array.isArray(p)){for(let v of w)b+=p*v;return b}for(let v=0;v<p.length;v++)b+=p[v]*(w[v]||0);return b}));return n===1&&s&&(f=f[0]),h===1&&l?n===1&&s?f[0]:f.map(p=>p[0]):f}function js(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function wt(e,t,n=[0,0,0]){const i=js(e,t[0]),a=js(e,t[1]),s=js(e,t[2]);return n[0]=i,n[1]=a,n[2]=s,n}function vo(e){return gn(e)==="string"}function gn(e){return(Object.prototype.toString.call(e).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function Ks(e,{precision:t=16,unit:n}){return Ye(e)?"none":(e=+Ys(e,t),e+(n??""))}function Ye(e){return e===null}function Mt(e){return Ye(e)?0:e}function Ys(e,t){if(e===0)return 0;let n=~~e,i=0;n&&t&&(i=~~Math.log10(Math.abs(n))+1);const a=10**(t-i);return Math.floor(e*a+.5)/a}function oi(e,t,n){return isNaN(e)?t:isNaN(t)?e:e+(t-e)*n}function Zd(e,t,n){return(n-e)/(t-e)}function Xs(e,t,n){return!e||!t||e===t||e[0]===t[0]&&e[1]===t[1]||isNaN(n)||n===null?n:oi(t[0],t[1],Zd(e[0],e[1],n))}function oa(e,t,n){return Math.max(Math.min(n,t),e)}function ia(e,t){return Math.sign(e)===Math.sign(t)?e:-e}function xt(e,t){return ia(Math.abs(e)**t,e)}function Js(e,t){return t===0?0:e/t}function qd(e,t,n=0,i=e.length){for(;n<i;){const a=n+i>>1;e[a]<t?n=a+1:i=a}return n}function bo(e,t){if(e instanceof t)return!0;const n=t.name;for(;e;){const i=Object.getPrototypeOf(e),a=i?.constructor?.name;if(a===n)return!0;if(!a||a==="Object")return!1;e=i}return!1}var Z5=Object.freeze({__proto__:null,bisectLeft:qd,clamp:oa,copySign:ia,interpolate:oi,interpolateInv:Zd,isInstance:bo,isNone:Ye,isString:vo,mapRange:Xs,multiplyMatrices:ni,multiply_v3_m3x3:wt,serializeNumber:Ks,skipNone:Mt,spow:xt,toPrecision:Ys,type:gn,zdiv:Js}),q5=class{add(e,t,n){if(typeof arguments[0]!="string"){for(var e in arguments[0])this.add(e,arguments[0][e],arguments[1]);return}(Array.isArray(e)?e:[e]).forEach(function(i){this[i]=this[i]||[],t&&this[i][n?"unshift":"push"](t)},this)}run(e,t){this[e]=this[e]||[],this[e].forEach(function(n){n.call(t&&t.context?t.context:t,t)})}},mn=new q5,cr={gamut_mapping:"css",precision:5,deltaE:"76",verbose:"production".toLowerCase()!=="test",warn:function(t){this.verbose&&globalThis?.console?.warn?.(t)}},jd=class{type;coordMeta;coordRange;range;constructor(e,t){if(typeof e=="object"&&(this.coordMeta=e),t&&(this.coordMeta=t,this.coordRange=t.range??t.refRange),typeof e=="string"){let n=e.trim().match(/^(?<type><[a-z]+>)(\[(?<min>-?[.\d]+),\s*(?<max>-?[.\d]+)\])?$/);if(!n)throw new TypeError(`Cannot parse ${e} as a type definition.`);this.type=n.groups.type;let{min:i,max:a}=n.groups;(i||a)&&(this.range=[+i,+a])}}get computedRange(){return this.range?this.range:this.type==="<percentage>"?this.percentageRange():this.type==="<angle>"?[0,360]:null}get unit(){return this.type==="<percentage>"?"%":this.type==="<angle>"?"deg":""}resolve(e){if(this.type==="<angle>")return e;let t=this.computedRange,n=this.coordRange;return this.type==="<percentage>"&&(n??=this.percentageRange()),Xs(t,n,e)}serialize(e,t){let n=this.type==="<percentage>"?this.percentageRange(100):this.computedRange,i=this.unit;return e=Xs(this.coordRange,n,e),Ks(e,{unit:i,precision:t})}toString(){let e=this.type;if(this.range){let[t="",n=""]=this.range;e+=`[${t},${n}]`}return e}percentageRange(e=1){let t;return this.coordMeta&&this.coordMeta.range||this.coordRange&&this.coordRange[0]>=0?t=[0,1]:t=[-1,1],[t[0]*e,t[1]*e]}static get(e,t){return bo(e,this)?e:new this(e,t)}},Qs=Symbol("instance"),Kd=class qf{type;name;spaceCoords;coords;id;alpha;constructor(t,n=t.space){t[Qs]=this,this.type="function",this.name="color",Object.assign(this,t),this.space=n,this.type!=="custom"&&(this.spaceCoords=Object.values(n.coords),this.coords||(this.coords=this.spaceCoords.map(i=>{let a=["<number>","<percentage>"];return i.type==="angle"&&a.push("<angle>"),a})),this.coords=this.coords.map((i,a)=>{let s=this.spaceCoords[a];return typeof i=="string"&&(i=i.trim().split(/\s*\|\s*/)),i.map(l=>jd.get(l,s))}))}serializeCoords(t,n,i){return i=t.map((a,s)=>jd.get(i?.[s]??this.coords[s][0],this.spaceCoords[s])),t.map((a,s)=>i[s].serialize(a,n))}coerceCoords(t,n){return Object.entries(this.space.coords).map(([i,a],s)=>{let l=t[s];if(Ye(l)||isNaN(l))return l;let h=n[s],u=this.coords[s].find(f=>f.type==h);if(!u){let f=a.name||i;throw new TypeError(`${h??l?.raw??l} not allowed for ${f} in ${this.name}()`)}return l=u.resolve(l),u.range&&(n[s]=u.toString()),l})}canSerialize(){return this.type==="function"||this.serialize}parse(t){return null}static get(t,...n){return!t||bo(t,this)?t:t[Qs]?t[Qs]:new qf(t,...n)}},Zt={D50:[.3457/.3585,1,.2958/.3585],D65:[.3127/.329,1,.3583/.329]};function el(e){return Array.isArray(e)?e:Zt[e]}function aa(e,t,n,i={}){if(e=el(e),t=el(t),!e||!t)throw new TypeError(`Missing white point to convert ${e?"":"from"}${!e&&!t?"/":""}${t?"":"to"}`);if(e===t)return n;let a={W1:e,W2:t,XYZ:n,options:i};if(mn.run("chromatic-adaptation-start",a),a.M||(a.W1===Zt.D65&&a.W2===Zt.D50?a.M=[[1.0479297925449969,.022946870601609652,-.05019226628920524],[.02962780877005599,.9904344267538799,-.017073799063418826],[-.009243040646204504,.015055191490298152,.7518742814281371]]:a.W1===Zt.D50&&a.W2===Zt.D65&&(a.M=[[.955473421488075,-.02309845494876471,.06325924320057072],[-.0283697093338637,1.0099953980813041,.021041441191917323],[.012314014864481998,-.020507649298898964,1.330365926242124]])),mn.run("chromatic-adaptation-end",a),a.M)return wt(a.XYZ,a.M);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}function Yd(e,t){let n={str:String(e)?.trim(),options:t};if(mn.run("parse-start",n),n.color)return n.color;n.parsed=K5(n.str);let i,a=n.options?n.options.parseMeta??n.options.meta:null;if(n.parsed){let s=n.parsed.name,l,h,u=n.parsed.args,f=u.map((b,v)=>n.parsed.argMeta[v]?.type);if(s==="color"){let b=u.shift();f.shift();let v=b.startsWith("--")?b.substring(2):`--${b}`,m=[b,v];if(l=ke.findFormat({name:s,id:m,type:"function"}),!l){let E,y=b in ke.registry?b:v;if(y in ke.registry){let A=ke.registry[y].formats?.color?.id;A&&(E=`Did you mean ${e.replace("color("+b,"color("+A)}?`)}throw new TypeError(`Cannot parse ${n.str}. `+(E??"Missing a plugin?"))}h=l.space,l.id.startsWith("--")&&!b.startsWith("--")&&cr.warn(`${h.name} is a non-standard space and not currently supported in the CSS spec. Use prefixed color(${l.id}) instead of color(${b}).`),b.startsWith("--")&&!l.id.startsWith("--")&&cr.warn(`${h.name} is a standard space and supported in the CSS spec. Use color(${l.id}) instead of prefixed color(${b}).`)}else l=ke.findFormat({name:s,type:"function"}),h=l.space;a&&Object.assign(a,{format:l,formatId:l.name,types:f,commas:n.parsed.commas});let p=1;n.parsed.lastAlpha&&(p=n.parsed.args.pop(),a&&(a.alphaType=f.pop()));let w=l.coords.length;if(u.length!==w)throw new TypeError(`Expected ${w} coordinates for ${h.id} in ${n.str}), got ${u.length}`);u=l.coerceCoords(u,f),i={spaceId:h.id,coords:u,alpha:p}}else e:for(let s of ke.all)for(let l in s.formats){let h=s.formats[l];if(h.type!=="custom"||h.test&&!h.test(n.str))continue;let u=s.getFormat(h),f=u.parse(n.str);if(f){a&&Object.assign(a,{format:u,formatId:l}),i=f;break e}}if(!i)throw new TypeError(`Could not parse ${e} as a color. Missing a plugin?`);return i.alpha=Ye(i.alpha)?i.alpha:i.alpha===void 0?1:oa(0,i.alpha,1),i}var Xd={"%":.01,deg:1,grad:.9,rad:180/Math.PI,turn:360},sa={function:/^([a-z]+)\(((?:calc\(NaN\)|.)+?)\)$/i,number:/^([-+]?(?:[0-9]*\.)?[0-9]+(e[-+]?[0-9]+)?)$/i,unitValue:RegExp(`(${Object.keys(Xd).join("|")})$`),singleArgument:/\/?\s*(none|NaN|calc\(NaN\)|[-+\w.]+(?:%|deg|g?rad|turn)?)/g};function j5(e){let t={},n=e.match(sa.unitValue)?.[0],i=t.raw=e;return n?(t.type=n==="%"?"<percentage>":"<angle>",t.unit=n,t.unitless=Number(i.slice(0,-n.length)),i=t.unitless*Xd[n]):sa.number.test(i)?(i=Number(i),t.type="<number>"):i==="none"?i=null:i==="NaN"||i==="calc(NaN)"?(i=NaN,t.type="<number>"):t.type="<ident>",{value:i,meta:t}}function K5(e){if(!e)return;e=e.trim();let t=e.match(sa.function);if(t){let n=[],i=[],a=!1,s=t[1].toLowerCase(),l=t[2].replace(sa.singleArgument,(h,u)=>{let{value:f,meta:p}=j5(u);return(h.startsWith("/")||s!=="color"&&n.length===3)&&(a=!0),n.push(f),i.push(p),""});return{name:s,args:n,argMeta:i,lastAlpha:a,commas:l.includes(","),rawName:t[1],rawArgs:t[2]}}}function Pe(e,t){if(Array.isArray(e))return e.map(i=>Pe(i,t));if(!e)throw new TypeError("Empty color reference");vo(e)&&(e=Yd(e,t));let n=e.space||e.spaceId;return typeof n=="string"&&(e.space=ke.get(n)),e.alpha===void 0&&(e.alpha=1),e}var Y5=75e-6,ke=class Wr{constructor(t){this.id=t.id,this.name=t.name,this.base=t.base?Wr.get(t.base):null,this.aliases=t.aliases,this.base&&(this.fromBase=t.fromBase,this.toBase=t.toBase);let n=t.coords??this.base.coords;for(let a in n)"name"in n[a]||(n[a].name=a);this.coords=n;let i=t.white??this.base.white??"D65";this.white=el(i),this.formats=t.formats??{};for(let a in this.formats){let s=this.formats[a];s.type||="function",s.name||=a}this.formats.color?.id||(this.formats.color={...this.formats.color??{},id:t.cssId||this.id}),t.gamutSpace?this.gamutSpace=t.gamutSpace==="self"?this:Wr.get(t.gamutSpace):this.isPolar?this.gamutSpace=this.base:this.gamutSpace=this,this.gamutSpace.isUnbounded&&(this.inGamut=(a,s)=>!0),this.referred=t.referred,Object.defineProperty(this,"path",{value:X5(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),mn.run("colorspace-init-end",this)}inGamut(t,{epsilon:n=Y5}={}){if(!this.equals(this.gamutSpace))return t=this.to(this.gamutSpace,t),this.gamutSpace.inGamut(t,{epsilon:n});let i=Object.values(this.coords);return t.every((a,s)=>{let l=i[s];if(l.type!=="angle"&&l.range){if(Ye(a))return!0;let[h,u]=l.range;return(h===void 0||a>=h-n)&&(u===void 0||a<=u+n)}return!0})}get isUnbounded(){return Object.values(this.coords).every(t=>!("range"in t))}get cssId(){return this.formats?.color?.id||this.id}get isPolar(){for(let t in this.coords)if(this.coords[t].type==="angle")return!0;return!1}getFormat(t){if(!t)return null;t==="default"?t=Object.values(this.formats)[0]:typeof t=="string"&&(t=this.formats[t]);let n=Kd.get(t,this);return n!==t&&t.name in this.formats&&(this.formats[t.name]=n),n}equals(t){return t?this===t||this.id===t||this.id===t.id:!1}to(t,n){if(arguments.length===1){const h=Pe(t);[t,n]=[h.space,h.coords]}if(t=Wr.get(t),this.equals(t))return n;n=n.map(h=>Ye(h)?0:h);let i=this.path,a=t.path,s,l;for(let h=0;h<i.length&&i[h].equals(a[h]);h++)s=i[h],l=h;if(!s)throw new Error(`Cannot convert between color spaces ${this} and ${t}: no connection space was found`);for(let h=i.length-1;h>l;h--)n=i[h].toBase(n);for(let h=l+1;h<a.length;h++)n=a[h].fromBase(n);return n}from(t,n){if(arguments.length===1){const i=Pe(t);[t,n]=[i.space,i.coords]}return t=Wr.get(t),t.to(this,n)}toString(){return`${this.name} (${this.id})`}getMinCoords(){let t=[];for(let n in this.coords){let i=this.coords[n],a=i.range||i.refRange;t.push(a?.min??0)}return t}static registry={};static get all(){return[...new Set(Object.values(Wr.registry))]}static register(t,n){if(arguments.length===1&&(n=arguments[0],t=n.id),n=this.get(n),this.registry[t]&&this.registry[t]!==n)throw new Error(`Duplicate color space registration: '${t}'`);if(this.registry[t]=n,arguments.length===1&&n.aliases)for(let i of n.aliases)this.register(i,n);return n}static get(t,...n){if(!t||bo(t,this))return t;if(gn(t)==="string"){let i=Wr.registry[t.toLowerCase()];if(!i)throw new TypeError(`No color space found with id = "${t}"`);return i}if(n.length)return Wr.get(...n);throw new TypeError(`${t} is not a valid color space`)}static findFormat(t,n=Wr.all){if(!t)return null;typeof t=="string"&&(t={name:t});for(let i of n)for(let[a,s]of Object.entries(i.formats)){s.name??=a,s.type??="function";let l=(!t.name||s.name===t.name)&&(!t.type||s.type===t.type);if(t.id){let h=s.ids||[s.id],u=Array.isArray(t.id)?t.id:[t.id];l&&=u.some(f=>h.includes(f))}if(l){let h=Kd.get(s,i);return h!==s&&(i.formats[s.name]=h),h}}return null}static resolveCoord(t,n){let i=gn(t),a,s;if(i==="string"?t.includes(".")?[a,s]=t.split("."):[a,s]=[,t]:Array.isArray(t)?[a,s]=t:(a=t.space,s=t.coordId),a=Wr.get(a),a||(a=n),!a)throw new TypeError(`Cannot resolve coordinate reference ${t}: No color space specified and relative references are not allowed here`);if(i=gn(s),i==="number"||i==="string"&&s>=0){let u=Object.entries(a.coords)[s];if(u)return{space:a,id:u[0],index:s,...u[1]}}a=Wr.get(a);let l=s.toLowerCase(),h=0;for(let u in a.coords){let f=a.coords[u];if(u.toLowerCase()===l||f.name?.toLowerCase()===l)return{space:a,id:u,index:h,...f};h++}throw new TypeError(`No "${s}" coordinate found in ${a.name}. Its coordinates are: ${Object.keys(a.coords).join(", ")}`)}static DEFAULT_FORMAT={type:"functions",name:"color"}};function X5(e){let t=[e];for(let n=e;n=n.base;)t.push(n);return t}var Nt=new ke({id:"xyz-d65",name:"XYZ D65",coords:{x:{refRange:[0,1],name:"X"},y:{refRange:[0,1],name:"Y"},z:{refRange:[0,1],name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]}),Gt=class extends ke{constructor(e){e.coords||(e.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),e.base||(e.base=Nt),e.toXYZ_M&&e.fromXYZ_M&&(e.toBase??=t=>{let n=wt(t,e.toXYZ_M);return this.white!==this.base.white&&(n=aa(this.white,this.base.white,n)),n},e.fromBase??=t=>(t=aa(this.base.white,this.white,t),wt(t,e.fromXYZ_M))),e.referred??="display",super(e)}};function Jd(e,t={}){if(Array.isArray(e))return e.map(u=>Jd(u,t));let{cssProperty:n="background-color",element:i,...a}=t,s=null;try{return Pe(e,a)}catch(u){s=u}let{CSS:l,getComputedStyle:h}=globalThis;if(vo(e)&&i&&l&&h&&l.supports(n,e)){let u=i.style[n];e!==u&&(i.style[n]=e);let f=h(i).getPropertyValue(n);if(e!==u&&(i.style[n]=u),f!==e)try{return Pe(f,a)}catch(p){s=p}else s={message:"Color value is a valid CSS color, but it could not be resolved :("}}return t.errorMeta&&(t.errorMeta.error=s),null}function ii(e,t){e=Pe(e);let n=ke.get(t,t?.space),i=t?.precision,a;return!n||e.space.equals(n)?a=e.coords.slice():a=n.from(e),i===void 0?a:a.map(s=>Ys(s,i))}function dr(e,t){if(e=Pe(e),t==="alpha")return e.alpha??1;let{space:n,index:i}=ke.resolveCoord(t,e.space);return ii(e,n)[i]}function tl(e,t,n,i){return e=Pe(e),Array.isArray(t)&&([t,n,i]=[e.space,t,n]),t=ke.get(t),e.coords=t===e.space?n.slice():t.to(e.space,n),i!==void 0&&(e.alpha=i),e}tl.returns="color";function tn(e,t,n){if(e=Pe(e),arguments.length===2&&gn(arguments[1])==="object"){let i=arguments[1];for(let a in i)tn(e,a,i[a])}else if(typeof n=="function"&&(n=n(dr(e,t))),t==="alpha")e.alpha=n;else{let{space:i,index:a}=ke.resolveCoord(t,e.space),s=ii(e,i);s[a]=n,tl(e,i,s)}return e}tn.returns="color";var rl=new ke({id:"xyz-d50",name:"XYZ D50",white:"D50",base:Nt,fromBase:e=>aa(Nt.white,"D50",e),toBase:e=>aa("D50",Nt.white,e)}),J5=216/24389,Qd=24/116,la=24389/27,nl=Zt.D50,ur=new ke({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"Lightness"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:nl,base:rl,fromBase(e){let t=e.map((n,i)=>n/nl[i]).map(n=>n>J5?Math.cbrt(n):(la*n+16)/116);return[116*t[1]-16,500*(t[0]-t[1]),200*(t[1]-t[2])]},toBase(e){let[t,n,i]=e,a=[];return a[1]=(t+16)/116,a[0]=n/500+a[1],a[2]=a[1]-i/200,[a[0]>Qd?Math.pow(a[0],3):(116*a[0]-16)/la,e[0]>8?Math.pow((e[0]+16)/116,3):e[0]/la,a[2]>Qd?Math.pow(a[2],3):(116*a[2]-16)/la].map((s,l)=>s*nl[l])},formats:{lab:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}});function Sr(e){return typeof e!="number"?e:(e%360+360)%360}function eu(e,t){let[n,i]=t,a=Ye(n),s=Ye(i);if(a&&s)return[n,i];if(a?n=i:s&&(i=n),e==="raw")return t;n=Sr(n),i=Sr(i);let l=i-n;return e==="increasing"?l<0&&(i+=360):e==="decreasing"?l>0&&(n+=360):e==="longer"?-180<l&&l<180&&(l>0?n+=360:i+=360):e==="shorter"&&(l>180?n+=360:l<-180&&(i+=360)),[n,i]}var hr=new ke({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:ur,fromBase(e){if(this.ε===void 0){let l=Object.values(this.base.coords)[1].refRange,h=l[1]-l[0];this.ε=h/1e5}let[t,n,i]=e,a=Math.abs(n)<this.ε&&Math.abs(i)<this.ε,s=a?null:Sr(Math.atan2(i,n)*180/Math.PI);return[t,a?0:Math.sqrt(n**2+i**2),s]},toBase(e){let[t,n,i]=e,a=null,s=null;return Ye(i)||(n=n<0?0:n,a=n*Math.cos(i*Math.PI/180),s=n*Math.sin(i*Math.PI/180)),[t,a,s]},formats:{lch:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <angle>"]}}}),tu=25**7,ca=Math.PI,ru=180/ca,wo=ca/180;function nu(e){const t=e*e;return t*t*t*e}function ou(e,t,{kL:n=1,kC:i=1,kH:a=1}={}){[e,t]=Pe([e,t]);let[s,l,h]=ur.from(e),u=hr.from(ur,[s,l,h])[1],[f,p,w]=ur.from(t),b=hr.from(ur,[f,p,w])[1];u<0&&(u=0),b<0&&(b=0);let v=nu((u+b)/2),m=.5*(1-Math.sqrt(v/(v+tu))),E=(1+m)*l,y=(1+m)*p,A=Math.sqrt(E**2+h**2),x=Math.sqrt(y**2+w**2),L=E===0&&h===0?0:Math.atan2(h,E),T=y===0&&w===0?0:Math.atan2(w,y);L<0&&(L+=2*ca),T<0&&(T+=2*ca),L*=ru,T*=ru;let N=f-s,Y=x-A,q=T-L,ie=L+T,W=Math.abs(q),ge;A*x===0?ge=0:W<=180?ge=q:q>180?ge=q-360:q<-180?ge=q+360:cr.warn("the unthinkable has happened");let _e=2*Math.sqrt(x*A)*Math.sin(ge*wo/2),P=(s+f)/2,J=(A+x)/2,S=nu(J),ee;A*x===0?ee=ie:W<=180?ee=ie/2:ie<360?ee=(ie+360)/2:ee=(ie-360)/2;let Ce=(P-50)**2,de=1+.015*Ce/Math.sqrt(20+Ce),Oe=1+.045*J,ae=1;ae-=.17*Math.cos((ee-30)*wo),ae+=.24*Math.cos(2*ee*wo),ae+=.32*Math.cos((3*ee+6)*wo),ae-=.2*Math.cos((4*ee-63)*wo);let Ie=1+.015*J*ae,U=30*Math.exp(-1*((ee-275)/25)**2),G=2*Math.sqrt(S/(S+tu)),Se=-1*Math.sin(2*U*wo)*G,me=(N/(n*de))**2;return me+=(Y/(i*Oe))**2,me+=(_e/(a*Ie))**2,me+=Se*(Y/(i*Oe))*(_e/(a*Ie)),Math.sqrt(me)}var Q5=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],ev=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],tv=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],vn=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],zr=new ke({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"Lightness"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:Nt,fromBase(e){let t=wt(e,Q5);return t[0]=Math.cbrt(t[0]),t[1]=Math.cbrt(t[1]),t[2]=Math.cbrt(t[2]),wt(t,tv,t)},toBase(e){let t=wt(e,vn);return t[0]=t[0]**3,t[1]=t[1]**3,t[2]=t[2]**3,wt(t,ev,t)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}});function ol(e,t){[e,t]=Pe([e,t]);let[n,i,a]=zr.from(e),[s,l,h]=zr.from(t),u=n-s,f=i-l,p=a-h;return Math.sqrt(u**2+f**2+p**2)}var rv=75e-6;function qn(e,t,{epsilon:n=rv}={}){e=Pe(e),t||(t=e.space),t=ke.get(t);let i=e.coords;return t!==e.space&&(i=t.from(e)),t.inGamut(i,{epsilon:n})}function _o(e){return{space:e.space,coords:e.coords.slice(),alpha:e.alpha}}function iu(e,t,n="lab"){n=ke.get(n);let i=n.from(e),a=n.from(t);return Math.sqrt(i.reduce((s,l,h)=>{let u=a[h];return Ye(l)||Ye(u)?s:s+(u-l)**2},0))}function nv(e,t){return iu(e,t,"lab")}var au=Math.PI/180;function ov(e,t,{l:n=2,c:i=1}={}){[e,t]=Pe([e,t]);let[a,s,l]=ur.from(e),[,h,u]=hr.from(ur,[a,s,l]),[f,p,w]=ur.from(t),b=hr.from(ur,[f,p,w])[1];h<0&&(h=0),b<0&&(b=0);let v=a-f,m=h-b,E=s-p,y=l-w,A=E**2+y**2-m**2,x=.511;a>=16&&(x=.040975*a/(1+.01765*a));let L=.0638*h/(1+.0131*h)+.638,T;Ye(u)&&(u=0),u>=164&&u<=345?T=.56+Math.abs(.2*Math.cos((u+168)*au)):T=.36+Math.abs(.4*Math.cos((u+35)*au));let N=Math.pow(h,4),Y=Math.sqrt(N/(N+1900)),q=L*(Y*T+1-Y),ie=(v/(n*x))**2;return ie+=(m/(i*L))**2,ie+=A/q**2,Math.sqrt(ie)}var su=203,il=new ke({id:"xyz-abs-d65",cssId:"--xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:Nt,fromBase(e){return e.map(t=>t*su)},toBase(e){return e.map(t=>t/su)}}),da=1.15,ua=.66,lu=2610/2**14,iv=2**14/2610,cu=3424/2**12,du=2413/2**7,uu=2392/2**7,av=1.7*2523/2**5,hu=2**5/(1.7*2523),ha=-.56,al=16295499532821565e-27,sv=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],lv=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],cv=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],dv=[[1,.13860504327153927,.05804731615611883],[1,-.1386050432715393,-.058047316156118904],[1,-.09601924202631895,-.811891896056039]],fu=new ke({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.21,.21]},bz:{refRange:[-.21,.21]}},base:il,fromBase(e){let[t,n,i]=e,[a,s,l]=wt(wt([da*t-(da-1)*i,ua*n-(ua-1)*t,i],sv).map(function(h){return xt((cu+du*xt(h/1e4,lu))/(1+uu*xt(h/1e4,lu)),av)}),cv);return[(1+ha)*a/(1+ha*a)-al,s,l]},toBase(e){let[t,n,i]=e,[a,s,l]=wt(wt([(t+al)/(1+ha-ha*(t+al)),n,i],dv).map(function(u){return 1e4*xt((cu-xt(u,hu))/(uu*xt(u,hu)-du),iv)}),lv),h=(a+(da-1)*l)/da;return[h,(s+(ua-1)*h)/ua,l]},formats:{jzazbz:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}}),sl=new ke({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,.26],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:fu,fromBase:hr.fromBase,toBase:hr.toBase,formats:{jzczhz:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <angle>"]}}});function uv(e,t){[e,t]=Pe([e,t]);let[n,i,a]=sl.from(e),[s,l,h]=sl.from(t),u=n-s,f=i-l;Ye(a)&&Ye(h)?(a=0,h=0):Ye(a)?a=h:Ye(h)&&(h=a);let p=a-h,w=2*Math.sqrt(i*l)*Math.sin(p/2*(Math.PI/180));return Math.sqrt(u**2+f**2+w**2)}var pu=3424/4096,gu=2413/128,mu=2392/128,vu=2610/16384,hv=2523/32,fv=16384/2610,bu=32/2523,pv=[[.3592832590121217,.6976051147779502,-.035891593232029],[-.1920808463704993,1.100476797037432,.0753748658519118],[.0070797844607479,.0748396662186362,.8433265453898765]],gv=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],mv=[[.9999999999999998,.0086090370379328,.111029625003026],[.9999999999999998,-.0086090370379328,-.1110296250030259],[.9999999999999998,.5600313357106791,-.3206271749873188]],vv=[[2.0701522183894223,-1.3263473389671563,.2066510476294053],[.3647385209748072,.6805660249472273,-.0453045459220347],[-.0497472075358123,-.0492609666966131,1.1880659249923042]],ll=new ke({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:il,fromBase(e){return bv(wt(e,pv))},toBase(e){return wt(wv(e),vv)},formats:{ictcp:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}});function bv(e){return wt(e.map(function(t){return((pu+gu*(t/1e4)**vu)/(1+mu*(t/1e4)**vu))**hv}),gv)}function wv(e){return wt(e,mv).map(function(t){return 1e4*(Math.max(t**bu-pu,0)/(gu-mu*t**bu))**fv})}function _v(e,t){[e,t]=Pe([e,t]);let[n,i,a]=ll.from(e),[s,l,h]=ll.from(t);return 720*Math.sqrt((n-s)**2+.25*(i-l)**2+(a-h)**2)}function yv(e,t){[e,t]=Pe([e,t]);let n=2,[i,a,s]=zr.from(e),[l,h,u]=zr.from(t),f=i-l,p=n*(a-h),w=n*(s-u);return Math.sqrt(f**2+p**2+w**2)}var kv=Zt.D65,wu=.42,_u=1/wu,cl=2*Math.PI,yu=[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],Ev=[[1.8620678550872327,-1.0112546305316843,.14918677544445175],[.38752654323613717,.6214474419314753,-.008973985167612518],[-.015841498849333856,-.03412293802851557,1.0499644368778496]],Av=[[460,451,288],[460,-891,-261],[460,-220,-6300]],Sv={dark:[.8,.525,.8],dim:[.9,.59,.9],average:[1,.69,1]},jn={h:[20.14,90,164.25,237.53,380.14],e:[.8,.7,1,1.2,.8],H:[0,100,200,300,400]},Mv=180/Math.PI,ku=Math.PI/180;function Eu(e,t){return e.map(n=>{const i=xt(t*Math.abs(n)*.01,wu);return 400*ia(i,n)/(i+27.13)})}function xv(e,t){const n=100/t*27.13**_u;return e.map(i=>{const a=Math.abs(i);return ia(n*xt(a/(400-a),_u),i)})}function Iv(e){let t=Sr(e);t<=jn.h[0]&&(t+=360);const n=qd(jn.h,t)-1,[i,a]=jn.h.slice(n,n+2),[s,l]=jn.e.slice(n,n+2),h=jn.H[n],u=(t-i)/s;return h+100*u/(u+(a-t)/l)}function Cv(e){let t=(e%400+400)%400;const n=Math.floor(.01*t);t=t%100;const[i,a]=jn.h.slice(n,n+2),[s,l]=jn.e.slice(n,n+2);return Sr((t*(l*i-s*a)-100*i*l)/(t*(l-s)-100*l))}function Au(e,t,n,i,a){const s={};s.discounting=a,s.refWhite=e,s.surround=i;const l=e.map(m=>m*100);s.la=t,s.yb=n;const h=l[1],u=wt(l,yu);let f=Sv[s.surround];const p=f[0];s.c=f[1],s.nc=f[2];const w=(1/(5*s.la+1))**4;s.fl=w*s.la+.1*(1-w)*(1-w)*Math.cbrt(5*s.la),s.flRoot=s.fl**.25,s.n=s.yb/h,s.z=1.48+Math.sqrt(s.n),s.nbb=.725*s.n**-.2,s.ncb=s.nbb;const b=Math.max(Math.min(p*(1-1/3.6*Math.exp((-s.la-42)/92)),1),0);s.dRgb=u.map(m=>oi(1,h/m,b)),s.dRgbInv=s.dRgb.map(m=>1/m);const v=Eu(u.map((m,E)=>m*s.dRgb[E]),s.fl);return s.aW=s.nbb*(2*v[0]+v[1]+.05*v[2]),s}var Su=Au(kv,64/Math.PI*.2,20,"average",!1);function dl(e,t){if(!(e.J!==void 0^e.Q!==void 0))throw new Error("Conversion requires one and only one: 'J' or 'Q'");if(!(e.C!==void 0^e.M!==void 0^e.s!==void 0))throw new Error("Conversion requires one and only one: 'C', 'M' or 's'");if(!(e.h!==void 0^e.H!==void 0))throw new Error("Conversion requires one and only one: 'h' or 'H'");if(e.J===0||e.Q===0)return[0,0,0];let n=0;e.h!==void 0?n=Sr(e.h)*ku:n=Cv(e.H)*ku;const i=Math.cos(n),a=Math.sin(n);let s=0;e.J!==void 0?s=xt(e.J,1/2)*.1:e.Q!==void 0&&(s=.25*t.c*e.Q/((t.aW+4)*t.flRoot));let l=0;e.C!==void 0?l=e.C/s:e.M!==void 0?l=e.M/t.flRoot/s:e.s!==void 0&&(l=4e-4*e.s**2*(t.aW+4)/t.c);const h=xt(l*Math.pow(1.64-Math.pow(.29,t.n),-.73),10/9),u=.25*(Math.cos(n+2)+3.8),f=t.aW*xt(s,2/t.c/t.z),p=5e4/13*t.nc*t.ncb*u,w=f/t.nbb,b=23*(w+.305)*Js(h,23*p+h*(11*i+108*a));return wt(xv(wt([w,b*i,b*a],Av).map(v=>v*1/1403),t.fl).map((v,m)=>v*t.dRgbInv[m]),Ev).map(v=>v/100)}function Mu(e,t){const n=Eu(wt(e.map(E=>E*100),yu).map((E,y)=>E*t.dRgb[y]),t.fl),i=n[0]+(-12*n[1]+n[2])/11,a=(n[0]+n[1]-2*n[2])/9,s=(Math.atan2(a,i)%cl+cl)%cl,l=.25*(Math.cos(s+2)+3.8),h=xt(5e4/13*t.nc*t.ncb*Js(l*Math.sqrt(i**2+a**2),n[0]+n[1]+1.05*n[2]+.305),.9)*Math.pow(1.64-Math.pow(.29,t.n),.73),u=xt(t.nbb*(2*n[0]+n[1]+.05*n[2])/t.aW,.5*t.c*t.z),f=100*xt(u,2),p=4/t.c*u*(t.aW+4)*t.flRoot,w=h*u,b=w*t.flRoot,v=Sr(s*Mv),m=Iv(v);return{J:f,C:w,h:v,s:50*xt(t.c*h/(t.aW+4),1/2),Q:p,M:b,H:m}}var Ov=new ke({id:"cam16-jmh",cssId:"--cam16-jmh",name:"CAM16-JMh",coords:{j:{refRange:[0,100],name:"J"},m:{refRange:[0,105],name:"Colorfulness"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:Nt,fromBase(e){this.ε===void 0&&(this.ε=Object.values(this.coords)[1].refRange[1]/1e5);const t=Mu(e,Su),n=Math.abs(t.M)<this.ε;return[t.J,n?0:t.M,n?null:t.h]},toBase(e){return dl({J:e[0],M:e[1],h:e[2]},Su)}}),Tv=Zt.D65,Lv=216/24389,xu=24389/27;function Rv(e){return 116*(e>Lv?Math.cbrt(e):(xu*e+16)/116)-16}function ul(e){return e>8?Math.pow((e+16)/116,3):e/xu}function Pv(e,t){let[n,i,a]=e,s=[],l=0;if(a===0)return[0,0,0];let h=ul(a);a>0?l=.00379058511492914*a**2+.608983189401032*a+.9155088574762233:l=9514440756550361e-21*a**2+.08693057439788597*a-21.928975842194614;const u=2e-12,f=15;let p=0,w=1/0;for(;p<=f;){s=dl({J:l,C:i,h:n},t);const b=Math.abs(s[1]-h);if(b<w){if(b<=u)return s;w=b}l=l-(s[1]-h)*l/(2*s[1]),p+=1}return dl({J:l,C:i,h:n},t)}function $v(e,t){const n=Rv(e[1]);if(n===0)return[0,0,0];const i=Mu(e,hl);return[Sr(i.h),i.C,n]}var hl=Au(Tv,200/Math.PI*ul(50),ul(50)*100,"average",!1),ai=new ke({id:"hct",name:"HCT",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},c:{refRange:[0,145],name:"Colorfulness"},t:{refRange:[0,100],name:"Tone"}},base:Nt,fromBase(e){this.ε===void 0&&(this.ε=Object.values(this.coords)[1].refRange[1]/1e5);let t=$v(e);return t[1]<this.ε&&(t[1]=0,t[0]=null),t},toBase(e){return Pv(e,hl)},formats:{color:{id:"--hct",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}}),Dv=Math.PI/180,Iu=[1,.007,.0228];function Cu(e){e[1]<0&&(e=ai.fromBase(ai.toBase(e)));const t=Math.log(Math.max(1+Iu[2]*e[1]*hl.flRoot,1))/Iu[2],n=e[0]*Dv,i=t*Math.cos(n),a=t*Math.sin(n);return[e[2],i,a]}function zv(e,t){[e,t]=Pe([e,t]);let[n,i,a]=Cu(ai.from(e)),[s,l,h]=Cu(ai.from(t));return Math.sqrt((n-s)**2+(i-l)**2+(a-h)**2)}var yo={deltaE76:nv,deltaECMC:ov,deltaE2000:ou,deltaEJz:uv,deltaEITP:_v,deltaEOK:ol,deltaEOK2:yv,deltaEHCT:zv};function Nv(e){return Math.max(parseFloat(`1e${(e?Math.floor(Math.log10(Math.abs(e))):0)-2}`),1e-6)}var Ou={hct:{method:"hct.c",jnd:2,deltaEMethod:"hct",blackWhiteClamp:{}},"hct-tonal":{method:"hct.c",jnd:0,deltaEMethod:"hct",blackWhiteClamp:{channel:"hct.t",min:0,max:100}}};function bn(e,{method:t=cr.gamut_mapping,space:n=void 0,deltaEMethod:i="",jnd:a=2,blackWhiteClamp:s=void 0}={}){if(e=Pe(e),vo(arguments[1])?n=arguments[1]:n||(n=e.space),n=ke.get(n),qn(e,n,{epsilon:0}))return e;let l;if(t==="css")l=Bv(e,{space:n});else{if(t!=="clip"&&!qn(e,n)){Object.prototype.hasOwnProperty.call(Ou,t)&&({method:t,jnd:a,deltaEMethod:i,blackWhiteClamp:s}=Ou[t]);let h=ou;if(i!==""){for(let f in yo)if("deltae"+i.toLowerCase()===f.toLowerCase()){h=yo[f];break}}a===0&&(a=1e-16);let u=bn(it(e,n),{method:"clip",space:n});if(h(e,u)>a){if(s&&Object.keys(s).length===3){let A=ke.resolveCoord(s.channel),x=dr(it(e,A.space),A.id);if(Ye(x)&&(x=0),x>=s.max)return it({space:"xyz-d65",coords:Zt.D65},e.space);if(x<=s.min)return it({space:"xyz-d65",coords:[0,0,0]},e.space)}let f=ke.resolveCoord(t),p=f.space,w=f.id,b=it(e,p);b.coords.forEach((A,x)=>{Ye(A)&&(b.coords[x]=0)});let v=(f.range||f.refRange)[0],m=Nv(a),E=v,y=dr(b,w);for(;y-E>m;){let A=_o(b);A=bn(A,{space:n,method:"clip"}),h(b,A)-a<m?E=dr(b,w):y=dr(b,w),tn(b,w,(E+y)/2)}l=it(b,n)}else l=u}else l=it(e,n);if(t==="clip"||!qn(l,n,{epsilon:0})){let h=Object.values(n.coords).map(u=>u.range||[]);l.coords=l.coords.map((u,f)=>{let[p,w]=h[f];return p!==void 0&&(u=Math.max(p,u)),w!==void 0&&(u=Math.min(u,w)),u})}}return n!==e.space&&(l=it(l,e.space)),e.coords=l.coords,e}bn.returns="color";var Tu={WHITE:{space:zr,coords:[1,0,0],alpha:1},BLACK:{space:zr,coords:[0,0,0],alpha:1}};function Bv(e,{space:t}={}){e=Pe(e),t||(t=e.space),t=ke.get(t);const a=ke.get("oklch");if(t.isUnbounded)return it(e,t);const s=it(e,a);let l=s.coords[0];if(l>=1){const m=it(Tu.WHITE,t);return m.alpha=e.alpha,it(m,t)}if(l<=0){const m=it(Tu.BLACK,t);return m.alpha=e.alpha,it(m,t)}if(qn(s,t,{epsilon:0}))return it(s,t);function h(m){const E=it(m,t),y=Object.values(t.coords);return E.coords=E.coords.map((A,x)=>{if("range"in y[x]){const[L,T]=y[x].range;return oa(L,A,T)}return A}),E}let u=0,f=s.coords[1],p=!0,w=_o(s),b=h(w),v=ol(b,w);if(v<.02)return b;for(;f-u>1e-4;){const m=(u+f)/2;if(w.coords[1]=m,p&&qn(w,t,{epsilon:0}))u=m;else if(b=h(w),v=ol(b,w),v<.02){if(.02-v<1e-4)break;p=!1,u=m}else f=m}return b}function it(e,t,{inGamut:n}={}){e=Pe(e),t=ke.get(t);let i=t.from(e),a={space:t,coords:i,alpha:e.alpha};return n&&(a=bn(a,n===!0?void 0:n)),a}it.returns="color";function si(e,t={}){let{precision:n=cr.precision,format:i,inGamut:a=!0,coords:s,alpha:l,commas:h}=t,u,f=Pe(e),p=i,w=f.parseMeta;w&&!i&&(w.format.canSerialize()&&(i=w.format,p=w.formatId),s??=w.types,l??=w.alphaType,h??=w.commas),p&&(i=f.space.getFormat(i)??ke.findFormat(p)),i||(i=f.space.getFormat("default")??ke.DEFAULT_FORMAT,p=i.name),i&&i.space&&i.space!==f.space&&(f=it(f,i.space));let b=f.coords.slice();if(a||=i.toGamut,a&&!qn(f)&&(b=bn(_o(f),a===!0?void 0:a).coords),i.type==="custom")if(i.serialize)u=i.serialize(b,f.alpha,t);else throw new TypeError(`format ${p} can only be used to parse colors, not for serialization`);else{let v=i.name||"color",m=i.serializeCoords(b,n,s);if(v==="color"){let L=i.id||i.ids?.[0]||f.space.cssId||f.space.id;m.unshift(L)}let E=f.alpha;l!==void 0&&typeof l!="object"&&(l=typeof l=="string"?{type:l}:{include:l});let y=l?.type??"<number>",A=l?.include===!0||i.alpha===!0||l?.include!==!1&&i.alpha!==!1&&E<1,x="";if(h??=i.commas,A){if(n!==null){let L;y==="<percentage>"&&(L="%",E*=100),E=Ks(E,{precision:n,unit:L})}x=`${h?",":" /"} ${E}`}u=`${v}(${m.join(h?", ":" ")}${x})`}return u}var li=new Gt({id:"rec2020-linear",cssId:"--rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],fromXYZ_M:[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]]}),Lu=new Gt({id:"rec2020",name:"REC.2020",base:li,toBase(e){return e.map(function(t){let n=t<0?-1:1,i=t*n;return n*Math.pow(i,2.4)})},fromBase(e){return e.map(function(t){let n=t<0?-1:1,i=t*n;return n*Math.pow(i,1/2.4)})}}),Ru=new Gt({id:"p3-linear",cssId:"display-p3-linear",name:"Linear P3",white:"D65",toXYZ_M:[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],fromXYZ_M:[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]]}),Hv=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],Ot=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]],Pu=new Gt({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:Hv,fromXYZ_M:Ot}),$u={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]},Du=Array(3).fill("<percentage> | <number>[0, 255]"),zu=Array(3).fill("<number>[0, 255]"),Kn=new Gt({id:"srgb",name:"sRGB",base:Pu,fromBase:e=>e.map(t=>{let n=t<0?-1:1,i=t*n;return i>.0031308?n*(1.055*i**(1/2.4)-.055):12.92*t}),toBase:e=>e.map(t=>{let n=t<0?-1:1,i=t*n;return i<=.04045?t/12.92:n*((i+.055)/1.055)**2.4}),formats:{rgb:{coords:Du},rgb_number:{name:"rgb",commas:!0,coords:zu,alpha:!1},color:{},rgba:{coords:Du,commas:!0,alpha:!0},rgba_number:{name:"rgba",commas:!0,coords:zu},hex:{type:"custom",toGamut:!0,test:e=>/^#(([a-f0-9]{2}){3,4}|[a-f0-9]{3,4})$/i.test(e),parse(e){e.length<=5&&(e=e.replace(/[a-f0-9]/gi,"$&$&"));let t=[];return e.replace(/[a-f0-9]{2}/gi,n=>{t.push(parseInt(n,16)/255)}),{spaceId:"srgb",coords:t.slice(0,3),alpha:t.slice(3)[0]}},serialize:(e,t,{collapse:n=!0,alpha:i}={})=>{(i!==!1&&t<1||i===!0)&&e.push(t),e=e.map(s=>Math.round(s*255));let a=n&&e.every(s=>s%17===0);return"#"+e.map(s=>a?(s/17).toString(16):s.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:e=>/^[a-z]+$/i.test(e),parse(e){e=e.toLowerCase();let t={spaceId:"srgb",coords:null,alpha:1};if(e==="transparent"?(t.coords=$u.black,t.alpha=0):t.coords=$u[e],t.coords)return t}}}}),Nu=new Gt({id:"p3",cssId:"display-p3",name:"P3",base:Ru,fromBase:Kn.fromBase,toBase:Kn.toBase});cr.display_space=Kn;var Fv;if(typeof CSS<"u"&&CSS.supports)for(let e of[ur,Lu,Nu]){let t=si({space:e,coords:e.getMinCoords(),alpha:1});if(CSS.supports("color",t)){cr.display_space=e;break}}function Gv(e,{space:t=cr.display_space,...n}={}){e=Pe(e);let i=si(e,n);if(typeof CSS>"u"||CSS.supports("color",i)||!cr.display_space)i=new String(i),i.color=e;else{let a=e;if((e.coords.some(Ye)||Ye(e.alpha))&&!(Fv??=CSS.supports("color","hsl(none 50% 50%)"))&&(a=_o(e),a.coords=a.coords.map(Mt),a.alpha=Mt(a.alpha),i=si(a,n),CSS.supports("color",i)))return i=new String(i),i.color=a,i;a=it(a,t),i=new String(si(a,n)),i.color=a}return i}function Wv(e,t,{space:n,hue:i="shorter"}={}){e=Pe(e),n||=e.space,n=ke.get(n);let a=Object.values(n.coords);[e,t]=[e,t].map(f=>it(f,n));let[s,l]=[e,t].map(f=>f.coords),h=s.map((f,p)=>{let w=a[p],b=l[p];return w.type==="angle"&&([f,b]=eu(i,[f,b])),Bu(f,b)}),u=Bu(e.alpha,t.alpha);return{space:n,coords:h,alpha:u}}function Bu(e,t){return Ye(e)||Ye(t)?e===t?null:0:e-t}function Uv(e,t){return e=Pe(e),t=Pe(t),e.space===t.space&&e.alpha===t.alpha&&e.coords.every((n,i)=>n===t.coords[i])}function wn(e){return dr(e,[Nt,"y"])}function Hu(e,t){tn(e,[Nt,"y"],t)}function Vv(e){Object.defineProperty(e.prototype,"luminance",{get(){return wn(this)},set(t){Hu(this,t)}})}var Zv=Object.freeze({__proto__:null,getLuminance:wn,register:Vv,setLuminance:Hu});function qv(e,t){e=Pe(e),t=Pe(t);let n=Math.max(wn(e),0),i=Math.max(wn(t),0);return i>n&&([n,i]=[i,n]),(n+.05)/(i+.05)}var jv=.56,Kv=.57,Yv=.62,Xv=.65,Fu=.022,Jv=1.414,Qv=.1,e4=5e-4,t4=1.14,Gu=.027,r4=1.14;function Wu(e){return e>=Fu?e:e+(Fu-e)**Jv}function ko(e){return(e<0?-1:1)*Math.pow(Math.abs(e),2.4)}function n4(e,t){t=Pe(t),e=Pe(e);let n,i,a,s,l,h;t=it(t,"srgb"),[s,l,h]=t.coords.map(v=>Ye(v)?0:v);let u=ko(s)*.2126729+ko(l)*.7151522+ko(h)*.072175;e=it(e,"srgb"),[s,l,h]=e.coords.map(v=>Ye(v)?0:v);let f=ko(s)*.2126729+ko(l)*.7151522+ko(h)*.072175,p=Wu(u),w=Wu(f),b=w>p;return Math.abs(w-p)<e4?i=0:b?(n=w**jv-p**Kv,i=n*t4):(n=w**Xv-p**Yv,i=n*r4),Math.abs(i)<Qv?a=0:i>0?a=i-Gu:a=i+Gu,a*100}function o4(e,t){e=Pe(e),t=Pe(t);let n=Math.max(wn(e),0),i=Math.max(wn(t),0);i>n&&([n,i]=[i,n]);let a=n+i;return a===0?0:(n-i)/a}var i4=5e4;function a4(e,t){e=Pe(e),t=Pe(t);let n=Math.max(wn(e),0),i=Math.max(wn(t),0);return i>n&&([n,i]=[i,n]),i===0?i4:(n-i)/i}function s4(e,t){e=Pe(e),t=Pe(t);let n=dr(e,[ur,"l"]),i=dr(t,[ur,"l"]);return Math.abs(n-i)}var l4=216/24389,Uu=24/116,fa=24389/27,fl=Zt.D65,pl=new ke({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"Lightness"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:fl,base:Nt,fromBase(e){let t=e.map((n,i)=>n/fl[i]).map(n=>n>l4?Math.cbrt(n):(fa*n+16)/116);return[116*t[1]-16,500*(t[0]-t[1]),200*(t[1]-t[2])]},toBase(e){let t=[];return t[1]=(e[0]+16)/116,t[0]=e[1]/500+t[1],t[2]=t[1]-e[2]/200,[t[0]>Uu?Math.pow(t[0],3):(116*t[0]-16)/fa,e[0]>8?Math.pow((e[0]+16)/116,3):e[0]/fa,t[2]>Uu?Math.pow(t[2],3):(116*t[2]-16)/fa].map((n,i)=>n*fl[i])},formats:{"lab-d65":{coords:["<number> | <percentage>","<number> | <percentage>","<number> | <percentage>"]}}}),gl=Math.pow(5,.5)*.5+.5;function c4(e,t){e=Pe(e),t=Pe(t);let n=dr(e,[pl,"l"]),i=dr(t,[pl,"l"]),a=Math.abs(Math.pow(n,gl)-Math.pow(i,gl)),s=Math.pow(a,1/gl)*Math.SQRT2-40;return s<7.5?0:s}var pa=Object.freeze({__proto__:null,contrastAPCA:n4,contrastDeltaPhi:c4,contrastLstar:s4,contrastMichelson:o4,contrastWCAG21:qv,contrastWeber:a4});function d4(e,t,n){vo(n)&&(n={algorithm:n});let{algorithm:i,...a}=n||{};if(!i){let s=Object.keys(pa).map(l=>l.replace(/^contrast/,"")).join(", ");throw new TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${s}`)}e=Pe(e),t=Pe(t);for(let s in pa)if("contrast"+i.toLowerCase()===s.toLowerCase())return pa[s](e,t,a);throw new TypeError(`Unknown contrast algorithm: ${i}`)}function ga(e){let[t,n,i]=ii(e,Nt),a=t+15*n+3*i;return[4*t/a,9*n/a]}function Vu(e){let[t,n,i]=ii(e,Nt),a=t+n+i;return[t/a,n/a]}function u4(e){Object.defineProperty(e.prototype,"uv",{get(){return ga(this)}}),Object.defineProperty(e.prototype,"xy",{get(){return Vu(this)}})}var h4=Object.freeze({__proto__:null,register:u4,uv:ga,xy:Vu});function ci(e,t,n={}){vo(n)&&(n={method:n});let{method:i=cr.deltaE,...a}=n;for(let s in yo)if("deltae"+i.toLowerCase()===s.toLowerCase())return yo[s](e,t,a);throw new TypeError(`Unknown deltaE method: ${i}`)}function Zu(e,t=.25){return tn(e,[ke.get("oklch","lch"),"l"],n=>n*(1+t))}function qu(e,t=.25){return tn(e,[ke.get("oklch","lch"),"l"],n=>n*(1-t))}Zu.returns="color",qu.returns="color";var f4=Object.freeze({__proto__:null,darken:qu,lighten:Zu});function ju(e,t,n,i={}){return[e,t]=[Pe(e),Pe(t)],gn(n)==="object"&&([n,i]=[.5,n]),di(e,t,i)(n??.5)}function Ku(e,t,n={}){let i;ml(e)&&([i,n]=[e,t],[e,t]=i.rangeArgs.colors);let{maxDeltaE:a,deltaEMethod:s,steps:l=2,maxSteps:h=1e3,...u}=n;i||([e,t]=[Pe(e),Pe(t)],i=di(e,t,u));let f=ci(e,t),p=a>0?Math.max(l,Math.ceil(f/a)+1):l,w=[];if(h!==void 0&&(p=Math.min(p,h)),p===1)w=[{p:.5,color:i(.5)}];else{let b=1/(p-1);w=Array.from({length:p},(v,m)=>{let E=m*b;return{p:E,color:i(E)}})}if(a>0){let b=w.reduce((v,m,E)=>{if(E===0)return 0;let y=ci(m.color,w[E-1].color,s);return Math.max(v,y)},0);for(;b>a;){b=0;for(let v=1;v<w.length&&w.length<h;v++){let m=w[v-1],E=w[v],y=(E.p+m.p)/2,A=i(y);b=Math.max(b,ci(A,m.color),ci(A,E.color)),w.splice(v,0,{p:y,color:i(y)}),v++}}}return w=w.map(b=>b.color),w}function di(e,t,n={}){if(ml(e)){let[u,f]=[e,t];return di(...u.rangeArgs.colors,{...u.rangeArgs.options,...f})}let{space:i,outputSpace:a,progression:s,premultiplied:l}=n;e=Pe(e),t=Pe(t),e=_o(e),t=_o(t);let h={colors:[e,t],options:n};if(i?i=ke.get(i):i=ke.registry[cr.interpolationSpace]||e.space,a=a?ke.get(a):i,e=it(e,i),t=it(t,i),e=bn(e),t=bn(t),i.coords.h&&i.coords.h.type==="angle"){let u=n.hue=n.hue||"shorter",f=[i,"h"],[p,w]=[dr(e,f),dr(t,f)];Ye(p)&&!Ye(w)?p=w:Ye(w)&&!Ye(p)&&(w=p),[p,w]=eu(u,[p,w]),tn(e,f,p),tn(t,f,w)}return l&&(e.coords=e.coords.map(u=>u*e.alpha),t.coords=t.coords.map(u=>u*t.alpha)),Object.assign(u=>{u=s?s(u):u;let f=e.coords.map((b,v)=>{let m=t.coords[v];return oi(b,m,u)}),p=oi(e.alpha,t.alpha,u),w={space:i,coords:f,alpha:p};return l&&(w.coords=w.coords.map(b=>b/p)),a!==i&&(w=it(w,a)),w},{rangeArgs:h})}function ml(e){return gn(e)==="function"&&!!e.rangeArgs}cr.interpolationSpace="lab";function p4(e){e.defineFunction("mix",ju,{returns:"color"}),e.defineFunction("range",di,{returns:"function<color>"}),e.defineFunction("steps",Ku,{returns:"array<color>"})}var g4=Object.freeze({__proto__:null,isRange:ml,mix:ju,range:di,register:p4,steps:Ku}),m4=new ke({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:Kn,fromBase:e=>{let t=Math.max(...e),n=Math.min(...e),[i,a,s]=e,[l,h,u]=[null,0,(n+t)/2],f=t-n;if(f!==0){switch(h=u===0||u===1?0:(t-u)/Math.min(u,1-u),t){case i:l=(a-s)/f+(a<s?6:0);break;case a:l=(s-i)/f+2;break;case s:l=(i-a)/f+4}l=l*60}return h<0&&(l+=180,h=Math.abs(h)),l>=360&&(l-=360),[l,h*100,u*100]},toBase:e=>{let[t,n,i]=e;t=t%360,t<0&&(t+=360),n/=100,i/=100;function a(s){let l=(s+t/30)%12,h=n*Math.min(i,1-i);return i-h*Math.max(-1,Math.min(l-3,9-l,1))}return[a(0),a(8),a(4)]},formats:{hsl:{coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]},hsla:{coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"],commas:!0,alpha:!0}}}),Yu=new ke({id:"hsv",name:"HSV",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},v:{range:[0,100],name:"Value"}},base:Kn,fromBase(e){let t=Math.max(...e),n=Math.min(...e),[i,a,s]=e,[l,h,u]=[null,0,t],f=t-n;if(f!==0){switch(t){case i:l=(a-s)/f+(a<s?6:0);break;case a:l=(s-i)/f+2;break;case s:l=(i-a)/f+4}l=l*60}return u&&(h=f/u),l>=360&&(l-=360),[l,h*100,u*100]},toBase(e){let[t,n,i]=e;t=t%360,t<0&&(t+=360),n/=100,i/=100;function a(s){let l=(s+t/60)%6;return i-i*n*Math.max(0,Math.min(l,4-l,1))}return[a(5),a(3),a(1)]},formats:{color:{id:"--hsv",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}}),v4=new ke({id:"hwb",name:"HWB",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},w:{range:[0,100],name:"Whiteness"},b:{range:[0,100],name:"Blackness"}},base:Yu,fromBase(e){let[t,n,i]=e;return[t,i*(100-n)/100,100-i]},toBase(e){let[t,n,i]=e;n/=100,i/=100;let a=n+i;if(a>=1)return[t,0,n/a*100];let s=1-i;return[t,(s===0?0:1-n/s)*100,s*100]},formats:{hwb:{coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}}),Xu=new Gt({id:"a98rgb-linear",cssId:"--a98-rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],fromXYZ_M:[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]]}),b4=new Gt({id:"a98rgb",cssId:"a98-rgb",name:"Adobe® 98 RGB compatible",base:Xu,toBase:e=>e.map(t=>Math.pow(Math.abs(t),563/256)*Math.sign(t)),fromBase:e=>e.map(t=>Math.pow(Math.abs(t),256/563)*Math.sign(t))}),Ju=new Gt({id:"prophoto-linear",cssId:"--prophoto-rgb-linear",name:"Linear ProPhoto",white:"D50",base:rl,toXYZ_M:[[.7977666449006423,.13518129740053308,.0313477341283922],[.2880748288194013,.711835234241873,8993693872564e-17],[0,0,.8251046025104602]],fromXYZ_M:[[1.3457868816471583,-.25557208737979464,-.05110186497554526],[-.5446307051249019,1.5082477428451468,.02052744743642139],[0,0,1.2119675456389452]]}),w4=1/512,_4=16/512,y4=new Gt({id:"prophoto",cssId:"prophoto-rgb",name:"ProPhoto",base:Ju,toBase(e){return e.map(t=>{let n=t<0?-1:1,i=t*n;return i<_4?t/16:n*i**1.8})},fromBase(e){return e.map(t=>{let n=t<0?-1:1,i=t*n;return i>=w4?n*i**(1/1.8):16*t})}}),ma=1.09929682680944,Qu=.018053968510807,k4=new Gt({id:"--rec2020-oetf",name:"REC.2020_Scene_Referred",base:li,referred:"scene",toBase(e){return e.map(function(t){let n=t<0?-1:1,i=t*n;return i<Qu*4.5?t/4.5:n*Math.pow((i+ma-1)/ma,1/.45)})},fromBase(e){return e.map(function(t){let n=t<0?-1:1,i=t*n;return i>=Qu?n*(ma*Math.pow(i,.45)-(ma-1)):4.5*t})}}),E4=new ke({id:"oklch",name:"OkLCh",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:zr,fromBase:hr.fromBase,toBase:hr.toBase,formats:{oklch:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <angle>"]}}}),Eo=2*Math.PI,va=[[4.076741636075958,-3.307711539258063,.2309699031821043],[-1.2684379732850315,2.609757349287688,-.341319376002657],[-.0041960761386756,-.7034186179359362,1.7076146940746117]],ba=[[[-1.8817031,-.80936501],[1.19086277,1.76576728,.59662641,.75515197,.56771245]],[[1.8144408,-1.19445267],[.73956515,-.45954404,.08285427,.12541073,-.14503204]],[[.13110758,1.81333971],[1.35733652,-.00915799,-1.1513021,-.50559606,.00692167]]],vl=Number.MAX_VALUE,ui=.206,bl=.03,hi=(1+ui)/(1+bl);function Bt(e,t){let n=e.length;if(n!==t.length)throw new Error(`Vectors of size ${n} and ${t.length} are not aligned`);let i=0;return e.forEach((a,s)=>{i+=a*t[s]}),i}function fi(e){return .5*(hi*e-ui+Math.sqrt((hi*e-ui)*(hi*e-ui)+4*bl*hi*e))}function Ao(e){return(e**2+ui*e)/(hi*(e+bl))}function wl(e){let[t,n]=e;return[n/t,n/(1-t)]}function A4(e,t){return[.11516993+1/(7.4477897+4.1590124*t+e*(-2.19557347+1.75198401*t+e*(-2.13704948-10.02301043*t+e*(-4.24894561+5.38770819*t+4.69891013*e)))),.11239642+1/(1.6132032-.68124379*t+e*(.40370612+.90148123*t+e*(-.27087943+.6122399*t+e*(.00299215-.45399568*t-.14661872*e))))]}function _l(e,t){let n=wt(e,vn);return n[0]=n[0]**3,n[1]=n[1]**3,n[2]=n[2]**3,wt(n,t,n)}function wa(e,t,n,i){let a=M4(e,t,n,i),s=_l([1,a*e,a*t],n),l=xt(1/Math.max(...s),1/3);return[l,l*a]}function S4(e,t,n,i,a,s,l,h){let u;if(h===void 0&&(h=wa(e,t,s,l)),(n-a)*h[1]-(h[0]-a)*i<=0)u=h[1]*a/(i*h[0]+h[1]*(a-n));else{u=h[1]*(a-1)/(i*(h[0]-1)+h[1]*(a-n));let f=n-a,p=i,w=Bt(vn[0].slice(1),[e,t]),b=Bt(vn[1].slice(1),[e,t]),v=Bt(vn[2].slice(1),[e,t]),m=f+p*w,E=f+p*b,y=f+p*v,A=a*(1-u)+u*n,x=u*i,L=A+x*w,T=A+x*b,N=A+x*v,Y=L**3,q=T**3,ie=N**3,W=3*m*L**2,ge=3*E*T**2,_e=3*y*N**2,P=6*m**2*L,J=6*E**2*T,S=6*y**2*N,ee=Bt(s[0],[Y,q,ie])-1,Ce=Bt(s[0],[W,ge,_e]),de=Bt(s[0],[P,J,S]),Oe=Ce/(Ce*Ce-.5*ee*de),ae=-ee*Oe,Ie=Bt(s[1],[Y,q,ie])-1,U=Bt(s[1],[W,ge,_e]),G=Bt(s[1],[P,J,S]),Se=U/(U*U-.5*Ie*G),me=-Ie*Se,pe=Bt(s[2],[Y,q,ie])-1,Ke=Bt(s[2],[W,ge,_e]),mt=Bt(s[2],[P,J,S]),Ve=Ke/(Ke*Ke-.5*pe*mt),We=-pe*Ve;ae=Oe>=0?ae:vl,me=Se>=0?me:vl,We=Ve>=0?We:vl,u+=Math.min(ae,Math.min(me,We))}return u}function e0(e,t,n){let[i,a,s]=e,l=wa(a,s,t,n),h=S4(a,s,i,1,i,t,n,l),u=wl(l),f=h/Math.min(i*u[0],(1-i)*u[1]),p=A4(a,s),w=i*p[0],b=(1-i)*p[1],v=.9*f*Math.sqrt(Math.sqrt(1/(1/w**4+1/b**4)));return w=i*.4,b=(1-i)*.8,[Math.sqrt(1/(1/w**2+1/b**2)),v,h]}function M4(e,t,n,i){let a,s,l,h,u,f,p,w;Bt(i[0][0],[e,t])>1?([a,s,l,h,u]=i[0][1],[f,p,w]=n[0]):Bt(i[1][0],[e,t])>1?([a,s,l,h,u]=i[1][1],[f,p,w]=n[1]):([a,s,l,h,u]=i[2][1],[f,p,w]=n[2]);let b=a+s*e+l*t+h*e**2+u*e*t,v=Bt(vn[0].slice(1),[e,t]),m=Bt(vn[1].slice(1),[e,t]),E=Bt(vn[2].slice(1),[e,t]),y=1+b*v,A=1+b*m,x=1+b*E,L=y**3,T=A**3,N=x**3,Y=3*v*y**2,q=3*m*A**2,ie=3*E*x**2,W=6*v**2*y,ge=6*m**2*A,_e=6*E**2*x,P=f*L+p*T+w*N,J=f*Y+p*q+w*ie,S=f*W+p*ge+w*_e;return b=b-P*J/(J**2-.5*P*S),b}function x4(e,t,n){let[i,a,s]=e,l=Ao(s),h=null,u=null;if(i=Sr(i)/360,l!==0&&l!==1&&a!==0){let f=Math.cos(Eo*i),p=Math.sin(Eo*i),[w,b,v]=e0([l,f,p],t,n),m=.8,E=1.25,y,A,x,L;a<m?(y=E*a,A=0,x=m*w,L=1-x/b):(y=5*(a-.8),A=b,x=.2*b**2*1.25**2/w,L=1-x/(v-b));let T=A+y*x/(1-L*y);h=T*f,u=T*p}return[l,h,u]}function I4(e,t,n){let i=1e-7,a=1e-4,s=e[0],l=0,h=fi(s),u=Math.sqrt(e[1]**2+e[2]**2),f=.5+Math.atan2(-e[2],-e[1])/Eo;if(h!==0&&h!==1&&u!==0){let[w,b,v]=e0([s,e[1]/u,e[2]/u],t,n),m=.8,E=1.25,y,A,x,L;u<b?(A=m*w,x=1-A/b,L=u/(A+x*u),l=L*m):(y=b,A=.2*b**2*E**2/w,x=1-A/(v-b),L=(u-y)/(A+x*(u-y)),l=m+.2*L)}const p=Math.abs(l)<a;return p||h===0||Math.abs(1-h)<i?(f=null,p||(l=0)):f=Sr(f*360),[f,l,h]}var C4=new ke({id:"okhsl",name:"Okhsl",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,1],name:"Saturation"},l:{range:[0,1],name:"Lightness"}},base:zr,gamutSpace:"self",fromBase(e){return I4(e,va,ba)},toBase(e){return x4(e,va,ba)},formats:{color:{id:"--okhsl",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}}),t0=new ke({id:"oklrab",name:"Oklrab",coords:{l:{refRange:[0,1],name:"Lightness"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:zr,fromBase(e){return[fi(e[0]),e[1],e[2]]},toBase(e){return[Ao(e[0]),e[1],e[2]]},formats:{color:{coords:["<percentage> | <number>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}}),O4=new ke({id:"oklrch",name:"Oklrch",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:t0,fromBase:hr.fromBase,toBase:hr.toBase,formats:{color:{coords:["<percentage> | <number>","<number> | <percentage>[0,1]","<number> | <angle>"]}}});function T4(e,t,n){let[i,a,s]=e;i=Sr(i)/360;let l=Ao(s),h=null,u=null;if(l!==0&&a!==0){let f=Math.cos(Eo*i),p=Math.sin(Eo*i),[w,b]=wl(wa(f,p,t,n)),v=.5,m=1-v/w,E=1-a*v/(v+b-b*m*a),y=a*b*v/(v+b-b*m*a);l=s*E;let A=s*y,x=Ao(E),L=y*x/E,T=Ao(l);A=A*T/l,l=T;let[N,Y,q]=_l([x,f*L,p*L],t),ie=xt(1/Math.max(Math.max(N,Y),Math.max(q,0)),1/3);l=l*ie,A=A*ie,h=A*f,u=A*p}return[l,h,u]}function L4(e,t,n){let i=1e-4,a=e[0],s=0,l=fi(a),h=Math.sqrt(e[1]**2+e[2]**2),u=.5+Math.atan2(-e[2],-e[1])/Eo;if(a!==0&&a!==1&&h!==0){let f=e[1]/h,p=e[2]/h,[w,b]=wl(wa(f,p,t,n)),v=.5,m=1-v/w,E=b/(h+a*b),y=E*a,A=E*h,x=Ao(y),L=A*x/y,[T,N,Y]=_l([x,f*L,p*L],t),q=xt(1/Math.max(Math.max(T,N),Math.max(Y,0)),1/3);a=a/q,h=h/q,h=h*fi(a)/a,a=fi(a),l=a/y,s=(v+b)*A/(b*v+b*m*A)}return Math.abs(s)<i||l===0?u=null:u=Sr(u*360),[u,s,l]}var R4=new ke({id:"okhsv",name:"Okhsv",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,1],name:"Saturation"},v:{range:[0,1],name:"Value"}},base:zr,gamutSpace:"self",fromBase(e){return L4(e,va,ba)},toBase(e){return T4(e,va,ba)},formats:{color:{id:"--okhsv",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}}),r0=Zt.D65,P4=216/24389,n0=24389/27,[o0,i0]=ga({space:Nt,coords:r0}),a0=new ke({id:"luv",name:"Luv",coords:{l:{refRange:[0,100],name:"Lightness"},u:{refRange:[-215,215]},v:{refRange:[-215,215]}},white:r0,base:Nt,fromBase(e){let t=[Mt(e[0]),Mt(e[1]),Mt(e[2])],n=t[1],[i,a]=ga({space:Nt,coords:t});if(!Number.isFinite(i)||!Number.isFinite(a))return[0,0,0];let s=n<=P4?n0*n:116*Math.cbrt(n)-16;return[s,13*s*(i-o0),13*s*(a-i0)]},toBase(e){let[t,n,i]=e;if(t===0||Ye(t))return[0,0,0];n=Mt(n),i=Mt(i);let a=n/(13*t)+o0,s=i/(13*t)+i0,l=t<=8?t/n0:Math.pow((t+16)/116,3);return[l*(9*a/(4*s)),l,l*((12-3*a-20*s)/(4*s))]},formats:{color:{id:"--luv",coords:["<number> | <percentage>","<number> | <percentage>","<number> | <percentage>"]}}}),yl=new ke({id:"lchuv",name:"LChuv",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,220],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:a0,fromBase:hr.fromBase,toBase:hr.toBase,formats:{color:{id:"--lchuv",coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}}),$4=216/24389,D4=24389/27,s0=Ot[0][0],l0=Ot[0][1],kl=Ot[0][2],c0=Ot[1][0],d0=Ot[1][1],El=Ot[1][2],u0=Ot[2][0],h0=Ot[2][1],Al=Ot[2][2];function So(e,t,n){const i=t/(Math.sin(n)-e*Math.cos(n));return i<0?1/0:i}function _a(e){const t=Math.pow(e+16,3)/1560896,n=t>$4?t:e/D4,i=n*(284517*s0-94839*kl),a=n*(838422*kl+769860*l0+731718*s0),s=n*(632260*kl-126452*l0),l=n*(284517*c0-94839*El),h=n*(838422*El+769860*d0+731718*c0),u=n*(632260*El-126452*d0),f=n*(284517*u0-94839*Al),p=n*(838422*Al+769860*h0+731718*u0),w=n*(632260*Al-126452*h0);return{r0s:i/s,r0i:a*e/s,r1s:i/(s+126452),r1i:(a-769860)*e/(s+126452),g0s:l/u,g0i:h*e/u,g1s:l/(u+126452),g1i:(h-769860)*e/(u+126452),b0s:f/w,b0i:p*e/w,b1s:f/(w+126452),b1i:(p-769860)*e/(w+126452)}}function f0(e,t){const n=t/360*Math.PI*2,i=So(e.r0s,e.r0i,n),a=So(e.r1s,e.r1i,n),s=So(e.g0s,e.g0i,n),l=So(e.g1s,e.g1i,n),h=So(e.b0s,e.b0i,n),u=So(e.b1s,e.b1i,n);return Math.min(i,a,s,l,h,u)}var z4=new ke({id:"hsluv",name:"HSLuv",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:yl,gamutSpace:Kn,fromBase(e){let[t,n,i]=[Mt(e[0]),Mt(e[1]),Mt(e[2])],a;return t>99.9999999?(a=0,t=100):t<1e-8?(a=0,t=0):a=n/f0(_a(t),i)*100,[i,a,t]},toBase(e){let[t,n,i]=[Mt(e[0]),Mt(e[1]),Mt(e[2])],a;return i>99.9999999?(i=100,a=0):i<1e-8?(i=0,a=0):a=f0(_a(i),t)/100*n,[i,a,t]},formats:{color:{id:"--hsluv",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}});Ot[0][0],Ot[0][1],Ot[0][2],Ot[1][0],Ot[1][1],Ot[1][2],Ot[2][0],Ot[2][1],Ot[2][2];function Mo(e,t){return Math.abs(t)/Math.sqrt(Math.pow(e,2)+1)}function p0(e){let t=Mo(e.r0s,e.r0i),n=Mo(e.r1s,e.r1i),i=Mo(e.g0s,e.g0i),a=Mo(e.g1s,e.g1i),s=Mo(e.b0s,e.b0i),l=Mo(e.b1s,e.b1i);return Math.min(t,n,i,a,s,l)}var N4=new ke({id:"hpluv",name:"HPLuv",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:yl,gamutSpace:"self",fromBase(e){let[t,n,i]=[Mt(e[0]),Mt(e[1]),Mt(e[2])],a;return t>99.9999999?(a=0,t=100):t<1e-8?(a=0,t=0):a=n/p0(_a(t))*100,[i,a,t]},toBase(e){let[t,n,i]=[Mt(e[0]),Mt(e[1]),Mt(e[2])],a;return i>99.9999999?(i=100,a=0):i<1e-8?(i=0,a=0):a=p0(_a(i))/100*n,[i,a,t]},formats:{color:{id:"--hpluv",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}}),Sl=new Gt({id:"rec2100-linear",name:"Linear REC.2100",white:"D65",toBase:li.toBase,fromBase:li.fromBase}),g0=203,m0=2610/2**14,B4=2**14/2610,H4=2523/2**5,v0=2**5/2523,b0=3424/2**12,w0=2413/2**7,_0=2392/2**7,F4=new Gt({id:"rec2100pq",cssId:"rec2100-pq",name:"REC.2100-PQ",base:Sl,toBase(e){return e.map(function(t){return(Math.max(t**v0-b0,0)/(w0-_0*t**v0))**B4*1e4/g0})},fromBase(e){return e.map(function(t){let n=Math.max(t*g0/1e4,0);return((b0+w0*n**m0)/(1+_0*n**m0))**H4})}}),y0=.17883277,k0=.28466892,E0=.55991073,Ml=3.7743,G4=new Gt({id:"rec2100hlg",cssId:"rec2100-hlg",name:"REC.2100-HLG",referred:"scene",base:Sl,toBase(e){return e.map(function(t){return t<=.5?t**2/3*Ml:(Math.exp((t-E0)/y0)+k0)/12*Ml})},fromBase(e){return e.map(function(t){return t/=Ml,t<=1/12?xt(3*t,.5):y0*Math.log(12*t-k0)+E0})}}),A0={};mn.add("chromatic-adaptation-start",e=>{e.options.method&&(e.M=S0(e.W1,e.W2,e.options.method))}),mn.add("chromatic-adaptation-end",e=>{e.M||(e.M=S0(e.W1,e.W2,e.options.method))});function ya({id:e,toCone_M:t,fromCone_M:n}){A0[e]=arguments[0]}function S0(e,t,n="Bradford"){let i=A0[n],[a,s,l]=ni(i.toCone_M,e),[h,u,f]=ni(i.toCone_M,t),p=ni([[h/a,0,0],[0,u/s,0],[0,0,f/l]],i.toCone_M);return ni(i.fromCone_M,p)}ya({id:"von Kries",toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599363874558397,-1.1293816185800916,.21989740959619328],[.3611914362417676,.6388124632850422,-6370596838649899e-21],[0,0,1.0890636230968613]]}),ya({id:"Bradford",toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],fromCone_M:[[.9869929054667121,-.14705425642099013,.15996265166373122],[.4323052697233945,.5183602715367774,.049291228212855594],[-.00852866457517732,.04004282165408486,.96848669578755]]}),ya({id:"CAT02",toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238208355142,-.27886900021828726,.18274517938277307],[.4543690419753592,.4735331543074117,.07209780371722911],[-.009627608738429355,-.00569803121611342,1.0153256399545427]]}),ya({id:"CAT16",toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.0112546305316845,.14918677544445172],[.3875265432361372,.6214474419314753,-.008973985167612521],[-.01584149884933386,-.03412293802851557,1.0499644368778496]]}),Object.assign(Zt,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]}),Zt.ACES=[.32168/.33767,1,.34065/.33767];var M0=new Gt({id:"acescg",cssId:"--acescg",name:"ACEScg",coords:{r:{range:[0,65504],name:"Red"},g:{range:[0,65504],name:"Green"},b:{range:[0,65504],name:"Blue"}},referred:"scene",white:Zt.ACES,toXYZ_M:[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],fromXYZ_M:[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]]}),ka=2**-16,xl=-.35828683,Ea=(Math.log2(65504)+9.72)/17.52,W4=new Gt({id:"acescc",cssId:"--acescc",name:"ACEScc",coords:{r:{range:[xl,Ea],name:"Red"},g:{range:[xl,Ea],name:"Green"},b:{range:[xl,Ea],name:"Blue"}},referred:"scene",base:M0,toBase(e){const t=-.3013698630136986;return e.map(function(n){return n<=t?(2**(n*17.52-9.72)-ka)*2:n<Ea?2**(n*17.52-9.72):65504})},fromBase(e){return e.map(function(t){return t<=0?(Math.log2(ka)+9.72)/17.52:t<ka?(Math.log2(ka+t*.5)+9.72)/17.52:(Math.log2(t)+9.72)/17.52})}}),x0=Object.freeze({__proto__:null,A98RGB:b4,A98RGB_Linear:Xu,ACEScc:W4,ACEScg:M0,CAM16_JMh:Ov,HCT:ai,HPLuv:N4,HSL:m4,HSLuv:z4,HSV:Yu,HWB:v4,ICTCP:ll,JzCzHz:sl,Jzazbz:fu,LCH:hr,LCHuv:yl,Lab:ur,Lab_D65:pl,Luv:a0,OKLCH:E4,OKLab:zr,OKLrCH:O4,OKLrab:t0,Okhsl:C4,Okhsv:R4,P3:Nu,P3_Linear:Ru,ProPhoto:y4,ProPhoto_Linear:Ju,REC_2020:Lu,REC_2020_Linear:li,REC_2020_Scene_Referred:k4,REC_2100_HLG:G4,REC_2100_Linear:Sl,REC_2100_PQ:F4,XYZ_ABS_D65:il,XYZ_D50:rl,XYZ_D65:Nt,sRGB:Kn,sRGB_Linear:Pu}),ut=class ar{constructor(...t){let n;if(t.length===1){let l={};typeof t[0]=="object"&&Object.getPrototypeOf(t[0]).constructor===Object&&(t[0]={...t[0]}),n=Pe(t[0],{parseMeta:l}),l.format&&(this.parseMeta=l)}let i,a,s;n?(i=n.space||n.spaceId,a=n.coords,s=n.alpha):[i,a,s]=t,Object.defineProperty(this,"space",{value:ke.get(i),writable:!1,enumerable:!0,configurable:!0}),this.coords=a?a.slice():[0,0,0],this.alpha=Ye(s)?s:s===void 0?1:oa(0,s,1);for(let l in this.space.coords)Object.defineProperty(this,l,{get:()=>this.get(l),set:h=>this.set(l,h)})}get spaceId(){return this.space.id}clone(){return new ar(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...t){let n=Gv(this,...t);return n.color=new ar(n.color),n}static get(t,...n){return bo(t,this)?t:new ar(t,...n)}static try(t,n){if(bo(t,this))return t;let i=Jd(t,n);return i?new ar(i):null}static defineFunction(t,n,i=n){let{instance:a=!0,returns:s}=i,l=function(...h){let u=n(...h);if(s==="color")u=ar.get(u);else if(s==="function<color>"){let f=u;u=function(...p){let w=f(...p);return ar.get(w)},Object.assign(u,f)}else s==="array<color>"&&(u=u.map(f=>ar.get(f)));return u};t in ar||(ar[t]=l),a&&(ar.prototype[t]=function(...h){return l(this,...h)})}static defineFunctions(t){for(let n in t)ar.defineFunction(n,t[n],t[n])}static extend(t){if(t.register)t.register(ar);else for(let n in t)ar.defineFunction(n,t[n])}};ut.defineFunctions({get:dr,getAll:ii,set:tn,setAll:tl,to:it,equals:Uv,inGamut:qn,toGamut:bn,distance:iu,deltas:Wv,toString:si}),Object.assign(ut,{util:Z5,hooks:mn,WHITES:Zt,Space:ke,spaces:ke.registry,parse:Yd,defaults:cr});for(let e of Object.keys(x0))ke.register(x0[e]);for(let e in ke.registry)Il(e,ke.registry[e]);mn.add("colorspace-init-end",e=>{Il(e.id,e),e.aliases?.forEach(t=>{Il(t,e)})});function Il(e,t){let n=e.replace(/-/g,"_");Object.defineProperty(ut.prototype,n,{get(){let i=this.getAll(e);if(typeof Proxy>"u")return i;let a=new Proxy(i,{has:(s,l)=>{try{return ke.resolveCoord([t,l]),!0}catch{}return Reflect.has(s,l)},get:(s,l,h)=>{if(l&&typeof l!="symbol"&&!(l in s)&&l in a){let{index:u}=ke.resolveCoord([t,l]);if(u>=0)return s[u]}return Reflect.get(s,l,h)},set:(s,l,h,u)=>{if(l&&typeof l!="symbol"&&!(l in s)||Number(l)>=0){let{index:f}=ke.resolveCoord([t,l]);if(f>=0)return s[f]=h,this.setAll(e,s),!0}return Reflect.set(s,l,h,u)}});return a},set(i){this.setAll(e,i)},configurable:!0,enumerable:!0})}ut.extend(yo),ut.extend({deltaE:ci}),Object.assign(ut,{deltaEMethods:yo}),ut.extend(f4),ut.extend({contrast:d4}),ut.extend(h4),ut.extend(Zv),ut.extend(g4),ut.extend(pa);var Cl={navy:"#001f3f",darkblue:"#1e4f7a",blue:"#1A2F4B",darkgreen:"#062925",green:"#1A3636",grass:"#1B3C53",teal:"#044A42",darkpurple:"#1B0044",purple:"#363062",grape:"#31326F",maroon:"#44000D"},It={dark:{50:"#C1C2C5",100:"#A6A7AB",200:"#909296",300:"#5c5f66",400:"#373A40",500:"#2C2E33",600:"#25262b",700:"#1A1B1E",800:"#141517",900:"#101113",950:"#000000"},slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function U4(e){try{ut.get(e)}catch{return!0}return ut.contrast(e,"white","Lstar")>ut.contrast(e,"black","Lstar")}function xo(e){return U4(e)?"#FFFFFF":"#000000"}var V4=Me.default.fromPairs(Me.default.entries(Us).map(([e,t])=>[e,Bd(t)])),{IconAdjustmentsHorizontal:DA,IconApiBook:zA,IconArrowsHorizontal:NA,IconArrowsLeftRight:BA,IconArrowAutofitDown:HA,IconArrowAutofitHeight:Z4,IconArrowAutofitLeft:FA,IconArrowAutofitRight:GA,IconArrowAutofitWidth:q4,IconArrowBigLeft:WA,IconArrowBigRight:UA,IconArrowsMove:VA,IconArrowsMoveVertical:ZA,IconArrowsVertical:qA,IconBook:jA,IconBookOff:KA,IconBookArrowLeft:YA,IconBookArrowRight:XA,IconBooksReturn:JA,IconBookUpload:QA,IconBookmark:j4,IconBookmarkOff:K4,IconBookmarks:eS,IconBoxAlignTop:tS,IconCategory:Y4,IconCheck:Aa,IconChevronLeft:rS,IconChevronRight:nS,IconAlertCircle:oS,IconCircleCheck:iS,IconCircleX:aS,IconHelp:sS,IconInfoCircle:lS,IconComic1:cS,IconComic1Flat:dS,IconComic2:uS,IconComic2Flat:hS,IconComic3:fS,IconComic3Flat:pS,IconDeviceFloppy:gS,IconDotsVertical:mS,IconEReader1:vS,IconEReader1Flat:bS,IconEReader2:wS,IconEReader2Flat:_S,IconExternalLink:yS,IconEye:X4,IconEyeOff:J4,IconFileDownload:kS,IconFilePercent:ES,IconFolderOpen:AS,IconHandClick:SS,IconKeyboard:MS,IconLayoutDashboard:xS,IconLayoutBottombar:IS,IconLayoutBottombarInactive:CS,IconLayoutSidebar:OS,IconLayoutSidebarInactive:TS,IconLayoutSidebarRight:LS,IconLayoutSidebarRightInactive:RS,IconListNumbers:PS,IconLoader2:$S,IconLocationCog:DS,IconMenu2:zS,IconMenuDeep:NS,IconMessage:BS,IconMoon:HS,IconPage:FS,IconPageFlat:GS,IconPalette:WS,IconPencil:US,IconPencilCog:VS,IconPhoto:ZS,IconPhotoOff:qS,IconPin:jS,IconPlayerPause:KS,IconPlayerPlay:YS,IconRefresh:Q4,IconSettings:XS,IconSettingsOff:JS,IconSpacingHorizontal:e3,IconSpacingVertical:QS,IconSun:eM,IconTrash:tM,IconWorldCog:rM,IconX:Ol,IconZoom:nM,IconZoomCancel:t3,IconZoomIn:r3,IconZoomInArea:oM,IconZoomOut:n3,IconZoomOutArea:iM,IconZoomPan:aM}=V4,_n=class extends Je{constructor(...t){super(...t),this.color="#000000",this.size=26,this.radius="50%",this.contrastColor="#FFFFFF",this.checked=!1}static{this.styles=yt`
    :host {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    .swatch {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: var(--radius);
      background-color: var(--color);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.15s ease;
      box-sizing: border-box;
      border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.1));
      color: var(--contrast-color);
    }

    :host(:hover) .swatch {
      transform: scale(1.1);
    }

    ::slotted(*) {
      width: 60%;
      height: 60%;
    }

    .check-icon {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      color: var(--contrast-color);
      opacity: 0;
      transition: opacity 0.15s ease;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 16px;
      line-height: 1;
    }

    .check-icon svg {
      width: 60%;
      height: 60%;
    }

    :host([checked]) .check-icon {
      opacity: 1;
    }
  `}willUpdate(t){t.has("color")&&(this.contrastColor=xo(this.color)),t.has("selected")&&(this.checked=this.color.toLowerCase()===this.selected?.toLowerCase())}handleClick(){this.dispatchEvent(new CustomEvent("input",{detail:{value:this.color},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.color},bubbles:!0,composed:!0}))}render(){const t={width:`${this.size}px`,height:`${this.size}px`},n={"--radius":typeof this.radius=="number"?`${this.radius}px`:this.radius,"--color":this.color,"--contrast-color":this.contrastColor};return oe`
      <div style=${Vr(t)}>
        <div
          class="swatch"
          style=${Vr(n)}
          @click=${this.handleClick}
        >
          <slot></slot>
          <span class="check-icon"> ${Aa} </span>
        </div>
      </div>
    `}};D([j({type:String})],_n.prototype,"color",void 0),D([j({type:String})],_n.prototype,"selected",void 0),D([j({type:Number})],_n.prototype,"size",void 0),D([j({type:String})],_n.prototype,"radius",void 0),D([j({state:!0})],_n.prototype,"contrastColor",void 0),D([j({type:Boolean,reflect:!0})],_n.prototype,"checked",void 0),_n=D([ot("color-swatch")],_n);function o3(e){const[t,n,i]=e.to("oklch").coords.map(u=>u??0),a=[.95,.9,.8,.7,.6,.5,.4,.3,.2,.1,.05],s=a.map(u=>new ut("oklch",[u,n,i]).toString({format:"hex"}));let l=-1,h=1/0;for(let u=0;u<a.length;u++){const f=Math.abs(a[u]-t);f<h&&(h=f,l=u)}return l!==-1&&(s[l]=e.toString({format:"hex"})),s.map(u=>u.toUpperCase())}function i3(e){const t=e.to("hsl"),n=[.97,.9,.8,.7,.6,.5,.4,.3,.2,.1,.05],i=[];for(const a of n){const s=t.clone();s.coords[2]=a*100;const l=s.coords[1]??0;a>.8?s.coords[1]=l*.4:a>.6?s.coords[1]=l*.8:a<.3&&(s.coords[1]=Math.min(100,l*1.1)),i.push(s.toString({format:"hex"}).toUpperCase())}return i}function a3(e){const t=[],n=[95,90,80,70,60,50,40,30,20,10,5],i=e.to("hsl");for(const a of n){const s=i.clone();s.coords[2]=a,t.push(s.toString({format:"hex"}).toUpperCase())}return t}function s3(e){const t=new Array(11).fill(""),n=e.to("hsl"),i={lightest:{lightness:95,rotate:-10,saturate:-30},darkest:{lightness:10,rotate:10,saturate:10}},a=5,s=5,l=(i.lightest.lightness-50)/a,h=(50-i.darkest.lightness)/s,u=i.lightest.rotate/a,f=i.darkest.rotate/s,p=i.lightest.saturate/a,w=i.darkest.saturate/s;for(let b=1;b<=a;b++){const v=a-b,m=n.clone();m.coords[2]=(m.coords[2]??0)+l*(b-.5),m.coords[0]=(m.coords[0]??0)+u*b,m.coords[1]=(m.coords[1]??0)+p*b,t[v]=m.toString({format:"hex"})}t[5]=n.clone().toString({format:"hex"});for(let b=1;b<=s;b++){const v=a+b,m=n.clone();m.coords[2]=(m.coords[2]??0)-h*(b-.5),m.coords[0]=(m.coords[0]??0)+f*b,m.coords[1]=(m.coords[1]??0)+w*b,t[v]=m.toString({format:"hex"})}return t}function l3(e){const[t,n,i]=e.to("hsl").coords.map(s=>s??0),a=new Array(11);a[5]=e.toString({format:"hex"});for(let s=0;s<5;s++){const l=(5-s)/6,h=i+(100-i)*l;a[s]=new ut("hsl",[t,n-n*l,h]).toString({format:"hex"})}for(let s=0;s<5;s++){const l=(s+1)/6,h=i-i*l,u=n+(100-n)*l;a[s+6]=new ut("hsl",[t,u,h]).toString({format:"hex"})}return a}function I0(e,t="steps"){let n;try{n=ut.get(e)}catch{n=ut.get(Cl.navy)}switch(t){case"saturation":return i3(n);case"lightness":return a3(n);case"mantine":return l3(n);case"chakra":return s3(n);default:return o3(n)}}var yn=class extends Je{constructor(...t){super(...t),this.baseColor="#228be6",this.mode="steps",this.orientation="horizontal",this.value="",this.gradient=[]}static{this.styles=yt`
    :host {
      display: flex;
      gap: var(--palette-gap, 4px);
      align-items: center;
      justify-content: center;
    }

    .swatch {
      width: var(--swatch-size, 22px);
      height: var(--swatch-size, 22px);
      border-radius: var(--swatch-radius, 4px);
      border: 1px solid var(--theme-border-color, #ccc);
      transition: transform 0.15s ease;
      cursor: pointer;
      background-clip: content-box;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
    }
    .swatch-inner {
      width: 100%;
      height: 100%;
      border-radius: var(--swatch-radius, 4px);
      background-color: var(--color);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .checkmark {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      opacity: 0;
      transition: opacity 0.15s ease;
      width: 100%;
      height: 100%;
      align-items: center;
      justify-content: center;
      display: flex;
      color: var(--text-color);
      font-weight: bold;
      font-size: 16px;
      line-height: 1;
    }

    .checkmark svg {
      width: 60%;
      height: 60%;
    }
    .swatch[checked] .checkmark {
      opacity: 1;
    }
    .swatch:hover {
      transform: scale(1.1);
    }
  `}willUpdate(t){(t.has("baseColor")||t.has("mode"))&&(this.gradient=I0(this.baseColor,this.mode)??[])}handleSwatchClick(t){this.value=t,this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return oe`
      ${this.gradient.map(t=>oe`
          <div
            class="swatch"
            ?checked=${this.selected&&t.toLowerCase()===this.selected.toLowerCase()}
            title=${t}
            @click=${()=>this.handleSwatchClick(t)}
          >
            <div
              class="swatch-inner"
              style="--color: ${t}; --text-color: ${xo(t)}"
            >
              <span class="checkmark">${Aa}</span>
            </div>
          </div>
        `)}
    `}};D([j({type:String})],yn.prototype,"baseColor",void 0),D([j({type:String})],yn.prototype,"mode",void 0),D([j({type:String,reflect:!0})],yn.prototype,"orientation",void 0),D([j({type:String})],yn.prototype,"selected",void 0),D([j({type:String,reflect:!0})],yn.prototype,"value",void 0),D([zt()],yn.prototype,"gradient",void 0),yn=D([ot("color-palette")],yn);var Sa=class extends Je{constructor(...t){super(...t),this.value=""}static{this.styles=yt`
    :host {
      display: flex;
      flex-direction: column;
      gap: 4px;
      width: 100%;
    }
    .SwatchGroup {
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      column-gap: 8px;
    }
    .ColorName {
      font-size: 12px;
      color: var(--theme-text-color);
      text-transform: capitalize;
      min-width: 64px;
    }
    .Swatches {
      display: grid;
      grid-template-columns: repeat(9, 16px);
      gap: 8px;
      align-items: center;
    }
    .ThemeRadio {
      color: var(--mov-color-on-loud);
      height: 20px;
      width: 20px;
      border-radius: 3px;
      margin: 0;
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
    }
    .ThemeRadio:hover,
    .ThemeRadio:focus-visible {
      outline: 2px solid var(--theme-border-color);
      outline-offset: 1px;
    }
    .ThemeRadio.selected {
      box-shadow:
        0 0 0 2px var(--theme-body-background),
        0 0 0 3px var(--theme-text-color);
    }
    .ThemeRadio svg {
      width: 10px;
      height: 10px;
    }
    .ThemeRadio.selected .icon-tabler-check {
      display: inline;
    }
    .ThemeRadio:not(.selected) .icon-tabler-check {
      display: none;
    }
  `}handleColorClick(t){this.value=t.currentTarget.title,this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){const t=Me.default.keys(It).filter(i=>!["dark","gray","zinc","neutral","stone"].includes(i)),n=[200,300,400,500,600,700,800,900,950];return t.map(i=>oe` <div class="SwatchGroup">
        <span class="ColorName">${i}</span>
        <div class="Swatches">${n.map(a=>{const s=It[i][a],l=xo(s);return oe`
          <span
            title="${s}"
            class="${kt({ThemeRadio:!0,selected:this.selected?.toLowerCase()===s.toLowerCase()})}"
            style="background-color: ${s}; color: ${l}"
            @click=${this.handleColorClick}
          >
            ${Aa}
          </span>
        `})}</div>
      </div>`)}};D([j({type:String,reflect:!0})],Sa.prototype,"value",void 0),D([j({type:String})],Sa.prototype,"selected",void 0),Sa=D([ot("color-panel")],Sa);var Ht=class extends Je{constructor(...t){super(...t),this.value="#228be6",this.defaultValue="#228be6",this.label="",this.hint="",this.name="",this.disabled=!1,this.size="medium",this.swatches=null,this.mode="popup",this.opened=!1,this.popupDirection="left",this.sourceSpace="srgb",this.hsv={h:0,s:0,v:0},this.saturationThumbPosition={x:0,y:0},this.hueThumbPosition=0,this.isDraggingSaturation=!1,this.isDraggingHue=!1}static{this.styles=yt`
    :host {
      display: inline-block;
      position: relative;
    }

    .picker-container {
      width: 250px;
      box-sizing: border-box;
    }

    .picker-container.popup {
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      z-index: 10;
      border: 1px solid var(--theme-border-color);
      border-radius: 8px;
      background: var(--theme-background-color);
      padding: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .picker-container.popup.right {
      left: auto;
      right: 0;
    }

    .saturation-panel {
      position: relative;
      width: 100%;
      height: 180px;
      border-radius: 8px;
      cursor: crosshair;
      -webkit-tap-highlight-color: transparent;
    }

    .saturation-overlay-1,
    .saturation-overlay-2 {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: inherit;
    }

    .saturation-overlay-1 {
      background: linear-gradient(to right, #fff, transparent);
    }

    .saturation-overlay-2 {
      background: linear-gradient(to top, #000, transparent);
    }

    .saturation-thumb {
      position: absolute;
      width: 16px;
      height: 16px;
      border: 2px solid #fff;
      border-radius: 50%;
      box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
      transform: translate(-8px, -8px);
      pointer-events: none;
    }

    .sliders {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 12px;
    }

    .hue-slider {
      position: relative;
      width: 100%;
      height: 10px;
      border-radius: 5px;
      background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
      cursor: pointer;
    }

    .hue-thumb {
      position: absolute;
      top: 50%;
      width: 16px;
      height: 16px;
      border: 2px solid #fff;
      border-radius: 50%;
      box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
      transform: translate(-8px, -50%);
      pointer-events: none;
    }

    .swatches {
      display: grid;
      grid-template-columns: repeat(10, 1fr);
      gap: 8px;
      margin-top: 12px;
    }

    .swatch {
      width: 100%;
      aspect-ratio: 1;
      border-radius: 4px;
      border: 1px solid #dee2e6;
      cursor: pointer;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      transition: transform 0.1s;
    }

    .swatch:hover {
      transform: scale(1.1);
    }

    .popup-trigger {
      width: 96px;
      height: 32px;
      border-radius: 4px;
      border: 1px solid var(--theme-background-color);
      padding: 4px;
      box-sizing: border-box;
      cursor: pointer;
      background-color: var(--theme-hightlight-color);
    }

    .preview {
      width: 100%;
      height: 100%;
      border-radius: 2px;
    }
  `}connectedCallback(){super.connectedCallback(),this.updateStateFromValue(this.value),window.addEventListener("mousemove",this.handleDrag.bind(this)),window.addEventListener("mouseup",this.handleDragEnd.bind(this)),window.addEventListener("touchmove",this.handleDrag.bind(this),{passive:!1}),window.addEventListener("touchend",this.handleDragEnd.bind(this))}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("mousemove",this.handleDrag.bind(this)),window.removeEventListener("mouseup",this.handleDragEnd.bind(this)),window.removeEventListener("touchmove",this.handleDrag.bind(this)),window.removeEventListener("touchend",this.handleDragEnd.bind(this)),window.removeEventListener("click",this.handleClickOutside.bind(this))}updated(t){t.has("mode")&&(this.mode==="popup"?window.addEventListener("click",this.handleClickOutside.bind(this)):window.removeEventListener("click",this.handleClickOutside.bind(this)))}willUpdate(t){t.has("value")&&this.updateStateFromValue(this.value),t.has("mode")&&this.mode==="inline"&&(this.opened=!1)}handleClickOutside(t){this.opened&&!t.composedPath().includes(this)&&this.hide()}show(){this.disabled||this.opened||(this.opened=!0,this.dispatchEvent(new CustomEvent("wa-show",{bubbles:!0,composed:!0})),setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-show",{bubbles:!0,composed:!0}))},150))}hide(){this.opened&&(this.opened=!1,this.dispatchEvent(new CustomEvent("wa-hide",{bubbles:!0,composed:!0})),setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-hide",{bubbles:!0,composed:!0}))},150))}togglePopup(){if(this.mode==="popup")if(this.opened)this.hide();else{const t=this.getBoundingClientRect(),n=250;let i;const a=this.closest("mov-drawer");if(a?.shadowRoot){const s=a.shadowRoot.querySelector("dialog");s?i=s.getBoundingClientRect():i={left:0,right:window.innerWidth}}else i={left:0,right:window.innerWidth};t.left+n>i.right?t.right-n>i.left?this.popupDirection="right":this.popupDirection="left":this.popupDirection="left",this.show()}}isSameColor(t,n){return!t||!n?!1:ut.deltaE(t,n,{method:"2000"})<1}renderCheckIcon(t){return oe`
      <svg
        xmlns="http://www.w3.org/2000/svg"
        width="16"
        height="16"
        viewBox="0 0 24 24"
        fill="none"
        stroke-width="3"
        stroke-linecap="round"
        stroke-linejoin="round"
        style=${Vr({stroke:xo(t)})}
      >
        <path d="M5 12l5 5l10 -10" />
      </svg>
    `}renderPickerBody(){const t={backgroundColor:`hsl(${this.hsv.h}, 100%, 50%)`},n={h:this.hsv.h,s:this.hsv.s*100,v:this.hsv.v*100},i={top:`${this.saturationThumbPosition.y}%`,left:`${this.saturationThumbPosition.x}%`,backgroundColor:new ut("hsv",[n.h,n.s,n.v]).toString({format:"hex"})},a={left:`${this.hueThumbPosition}%`};return oe`
      <div
        class="saturation-panel"
        style=${Vr(t)}
        @mousedown=${this.handleSaturationDragStart.bind(this)}
        @touchstart=${this.handleSaturationDragStart.bind(this)}
      >
        <div class="saturation-overlay-1"></div>
        <div class="saturation-overlay-2"></div>
        <div
          class="saturation-thumb"
          style=${Vr(i)}
        ></div>
      </div>

      <div class="sliders">
        <div
          class="hue-slider"
          @mousedown=${this.handleHueDragStart.bind(this)}
          @touchstart=${this.handleHueDragStart.bind(this)}
        >
          <div
            class="hue-thumb"
            style=${Vr(a)}
          ></div>
        </div>
      </div>

      <div class="swatches">
        ${(this.swatches||Me.default.entries(It).filter(([s])=>!["dark","gray","zinc","neutral","stone"].includes(s)).map(([,s])=>s[600])).map(s=>oe`
            <button
              class="swatch"
              title=${s}
              style=${Vr({backgroundColor:s})}
              @click=${()=>this.selectSwatch(s)}
            >
              ${this.isSameColor(this.value,s)?this.renderCheckIcon(s):""}
            </button>
          `)}
      </div>
    `}render(){const t={"picker-container":!0,popup:this.mode==="popup",right:this.popupDirection==="right"},n=this.renderPickerBody();return this.mode==="popup"?oe`
        <div
          class="popup-trigger"
          @click=${this.togglePopup}
        >
          <div
            class="preview"
            style=${Vr({backgroundColor:this.value})}
          ></div>
        </div>
        ${this.opened?oe`<div class=${kt(t)}>${n}</div>`:""}
      `:oe`<div class=${kt(t)}>${n}</div>`}parseColor(t){try{return ut.get(t)}catch(n){return console.error(`[mov-color-picker] Invalid color value: "${t}"`,n),null}}colorToHsv(t){let[n,i,a]=t.to("srgb").to("hsv").coords.map(s=>s??0);return Number.isNaN(n)&&(n=this.hsv.h||0,i=0),i=Math.max(0,Math.min(100,i))/100,a=Math.max(0,Math.min(100,a))/100,{h:n,s:i,v:a}}updateStateFromValue(t){const n=this.parseColor(t);if(!n)return;this.sourceSpace=n.space.id;const i=this.colorToHsv(n);(i.h!==this.hsv.h||i.s!==this.hsv.s||i.v!==this.hsv.v)&&(this.hsv=i,this.updateThumbPositions())}dispatchInput(){this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0}))}dispatchChange(){this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}updateValueFromHsv(){const t={h:this.hsv.h,s:this.hsv.s*100,v:this.hsv.v*100},n=new ut("hsv",[t.h,t.s,t.v]);let i;try{!this.sourceSpace||["srgb","hsl","hsv"].includes(this.sourceSpace)?i=n.to("srgb").toString({format:"hex"}):i=n.to(this.sourceSpace).toString({precision:5})}catch(a){console.error(`[mov-color-picker] Could not convert color to space ${this.sourceSpace}`,a),i=n.to("srgb").toString({format:"hex"})}this.value!==i&&(this.value=i,this.dispatchInput())}updateThumbPositions(){this.saturationThumbPosition={x:this.hsv.s*100,y:(1-this.hsv.v)*100},this.hueThumbPosition=this.hsv.h/360*100}handleSaturationDragStart(t){t.preventDefault(),this.isDraggingSaturation=!0,this.saturationPanel=this.shadowRoot?.querySelector(".saturation-panel"),this.updateSaturation(t)}handleHueDragStart(t){t.preventDefault(),this.isDraggingHue=!0,this.hueSlider=this.shadowRoot?.querySelector(".hue-slider"),this.updateHue(t)}handleDrag(t){this.isDraggingSaturation&&this.updateSaturation(t),this.isDraggingHue&&this.updateHue(t)}handleDragEnd(){(this.isDraggingSaturation||this.isDraggingHue)&&this.dispatchChange(),this.isDraggingSaturation=!1,this.isDraggingHue=!1}getEventPosition(t){return"touches"in t?{clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}:{clientX:t.clientX,clientY:t.clientY}}updateSaturation(t){if(!this.saturationPanel)return;const{clientX:n,clientY:i}=this.getEventPosition(t),a=this.saturationPanel.getBoundingClientRect(),s=Math.max(0,Math.min(n-a.left,a.width)),l=Math.max(0,Math.min(i-a.top,a.height));this.hsv.s=s/a.width,this.hsv.v=1-l/a.height,this.updateValueFromHsv(),this.updateThumbPositions()}updateHue(t){if(!this.hueSlider)return;const{clientX:n}=this.getEventPosition(t),i=this.hueSlider.getBoundingClientRect(),a=Math.max(0,Math.min(n-i.left,i.width));this.hsv.h=a/i.width*360,this.updateValueFromHsv(),this.updateThumbPositions()}selectSwatch(t){this.value=t,this.dispatchInput(),this.dispatchChange()}};D([j({type:String})],Ht.prototype,"value",void 0),D([j({type:String,attribute:"default-value"})],Ht.prototype,"defaultValue",void 0),D([j({type:String})],Ht.prototype,"label",void 0),D([j({type:String})],Ht.prototype,"hint",void 0),D([j({type:String})],Ht.prototype,"name",void 0),D([j({type:Boolean,reflect:!0})],Ht.prototype,"disabled",void 0),D([j({type:String,reflect:!0})],Ht.prototype,"size",void 0),D([j({type:Array})],Ht.prototype,"swatches",void 0),D([j({type:String})],Ht.prototype,"mode",void 0),D([zt()],Ht.prototype,"opened",void 0),D([zt()],Ht.prototype,"popupDirection",void 0),D([zt()],Ht.prototype,"sourceSpace",void 0),D([zt()],Ht.prototype,"hsv",void 0),D([zt()],Ht.prototype,"saturationThumbPosition",void 0),D([zt()],Ht.prototype,"hueThumbPosition",void 0),Ht=D([ot("mov-color-picker")],Ht);var c3=(e,t,n)=>{for(const i of t)if(i[0]===e)return(0,i[1])();return n?.()},kn=class extends Je{constructor(...t){super(...t),this.value="",this.labelPosition="side",this.size="medium",this._options=[],this.resizeObserver=new ResizeObserver(()=>this.updateThumbPosition())}static{this.styles=yt`
    :host {
      width: 100%;
      display: block;
    }
    .segmented-control {
      position: relative;
      display: flex;
      gap: 0.25rem;
      border-radius: 0.5rem;
      background-color: var(--theme-border-color);
      padding: 0.25rem;
      flex-wrap: wrap;
    }
    .thumb {
      position: absolute;
      top: 0;
      left: 0;
      border-radius: 0.5rem;
      background-color: var(--mov-color-fill-loud);
      transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 1;
    }
    .option {
      flex: 1;
      text-align: center;
      z-index: 2; /* Ensure button is above thumb */
      position: relative; /* Needed to correctly position the button */
    }

    .button {
      /* The button now acts as the interactive label */
      width: 100%;
      display: flex;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      border-radius: 0.5rem;
      border: none;
      /* Default colors when not selected */
      color: var(--theme-text-color);
      background-color: transparent;
      transition: color 0.15s ease-in-out;
      flex-direction: row;
      gap: 0.25rem;
      padding: 0.5rem 0.75rem; /* Default padding (medium) */
      font-size: 16px; /* Default font-size (medium) */
      box-sizing: border-box; /* Include padding/border in element's total width/height */
    }

    /* Selected State Styles - Driven by the 'selected' class */
    .button.selected {
      color: var(--mov-color-on-loud);
      font-weight: 600;
    }

    /* Size Variations */
    .button.small {
      padding: 0.25rem 0.5rem;
      font-size: 14px;
    }
    .button.large {
      padding: 0.75rem 1rem;
      font-size: 18px;
    }

    /* Label Position Variations */
    .button.bottom {
      flex-direction: column;
    }
    .button.bottom.small {
      padding: 0.25rem;
    }
    .button.bottom.medium {
      padding: 0.5rem;
    }
    .button.bottom.large {
      padding: 0.75rem;
    }
  `}connectedCallback(){super.connectedCallback(),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}handleClick(t,n){this.value=n,this.dispatchEvent(new CustomEvent("change",{detail:this.value,bubbles:!0,composed:!0}))}handleSlotChange(){this._options=this._slotEl.assignedNodes({flatten:!0}).filter(t=>t.nodeName==="SEGMENTED-CONTROL-OPTION").map(t=>({value:t.getAttribute("value")??"",label:t.getAttribute("label")??"",icon:t.getAttribute("icon")??void 0}))}firstUpdated(){this.handleSlotChange(),this.updateComplete.then(()=>this.updateThumbPosition())}updated(t){super.updated(t),(t.has("value")||t.has("_options")||t.has("labelPosition")||t.has("size"))&&Promise.resolve().then(()=>this.updateThumbPosition())}updateThumbPosition(){if(!this.thumb)return;const t=this.shadowRoot?.querySelector(".button.selected");if(t){const{offsetWidth:n,offsetHeight:i}=t,a=t.getBoundingClientRect(),s=this.shadowRoot?.querySelector(".segmented-control")?.getBoundingClientRect(),l=a.left-(s?.left??0),h=a.top-(s?.top??0);this.thumb.style.transform=`translate(${l}px, ${h}px)`,this.thumb.style.width=`${n}px`,this.thumb.style.height=`${i}px`}else this.thumb.style.width="0px",this.thumb.style.height="0px"}render(){return oe`
      <div class="segmented-control">
        <div class="thumb"></div>
        ${this._options.map(t=>oe`
            <div
              class="option"
              title="${this.labelPosition==="tooltip"?t.label:Be}"
            >
              <button
                class="${kt({button:!0,selected:this.value===t.value,bottom:this.labelPosition==="bottom",small:this.size==="small",medium:this.size==="medium",large:this.size==="large"})}"
                @click=${n=>this.handleClick(n,t.value)}
                role="radio"
                aria-checked="${this.value===t.value}"
              >
                ${t.icon?oe`<mov-icon
                      name="${t.icon}"
                      .size=${c3(this.size,[["small",()=>"16px"],["medium",()=>"24px"],["large",()=>"36px"]],()=>this.size)}
                    ></mov-icon>`:Be}
                ${this.labelPosition!=="tooltip"?oe`<span>${t.label}</span>`:Be}
              </button>
            </div>
          `)}
      </div>
      <div style="display: none;">
        <slot @slotchange=${this.handleSlotChange}></slot>
      </div>
    `}};D([j({type:String,reflect:!0})],kn.prototype,"value",void 0),D([j({type:String})],kn.prototype,"labelPosition",void 0),D([j({type:String})],kn.prototype,"size",void 0),D([zt()],kn.prototype,"_options",void 0),D([en(".thumb")],kn.prototype,"thumb",void 0),D([en("slot")],kn.prototype,"_slotEl",void 0),kn=D([ot("segmented-control")],kn);var pi=class extends Je{constructor(...t){super(...t),this.value="",this.label=""}createRenderRoot(){return this}};D([j({type:String,reflect:!0})],pi.prototype,"value",void 0),D([j({type:String,reflect:!0})],pi.prototype,"label",void 0),D([j({type:String,reflect:!0})],pi.prototype,"icon",void 0),pi=D([ot("segmented-control-option")],pi);var fr=class extends Je{constructor(...t){super(...t),this.name="",this.value="on",this.checked=!1,this.defaultChecked=!1,this.disabled=!1,this.required=!1,this.size="medium",this.hint="",this.design="graphical",this.textOn="ON",this.textOff="OFF"}static{this.styles=yt`
    :host {
      --switch-width: 3rem;
      --switch-height: 1.5rem;
      --knob-size: 1.25rem;
      display: inline-block;
    }

    :host([size='small']) {
      --switch-width: 2.5rem;
      --switch-height: 1.25rem;
      --knob-size: 16px;
    }

    :host([size='large']) {
      --switch-width: 4rem;
      --switch-height: 2rem;
      --knob-size: 1.75rem;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    input {
      display: none;
    }

    .switch {
      display: inline-block;
      position: relative;
      width: var(--switch-width);
      height: var(--switch-height);
      border-radius: var(--switch-height);
      background-color: #d7062a;
      border: 1px solid #d7062a;
      transition:
        background-color 0.3s,
        border-color 0.3s;
      cursor: pointer;
    }

    input:checked + .switch {
      background-color: #50ac5d;
      border-color: #50ac5d;
    }

    .switch.textual {
      background-color: var(--mov-color-on-loud);
      border-color: var(--mov-color-on-loud);
    }

    input:checked + .switch.textual {
      background-color: var(--mov-color-fill-loud);
      border-color: var(--mov-color-fill-loud);
    }

    input:disabled + .switch {
      background-color: #eee;
      border-color: #ccc;
      cursor: not-allowed;
    }

    .knob {
      position: absolute;
      top: 1px;
      left: 1px;
      width: var(--knob-size);
      height: var(--knob-size);
      background-color: #fff;
      border-radius: 50%;
      box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
      transition: left 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: bold;
      font-family: Arial;
      color: #333;
    }

    input:checked + .switch .knob {
      left: calc(100% - var(--knob-size) - 1px);
    }

    .switch:focus {
      outline: 2px solid #0a6ed1;
      outline-offset: 2px;
    }

    .icon {
      width: 16px;
      height: 16px;
      fill: none;
    }

    .text {
      font-size: 12px;
      font-weight: bold;
      color: #333;
    }

    .hint {
      font-size: 13px;
      opacity: 0.7;
      margin-top: 0.25rem;
    }
  `}handleChange(t){this.disabled||(this.checked=t.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}render(){const t=this.design.toLowerCase();let n;return t==="graphical"?n=oe`${this.checked?Aa:Ol}`:n=oe`<span class="text">${this.checked?this.textOn:this.textOff}</span>`,oe`
      <div class="base">
        <label class="label">
          <slot></slot>
          <input
            type="checkbox"
            .name="${this.name}"
            .value="${this.value}"
            .checked=${this.checked}
            ?disabled=${this.disabled}
            ?required=${this.required}
            @change=${this.handleChange}
          />
          <div
            class="${kt({switch:!0,[t]:!0})}"
          >
            <div class="knob">${n}</div>
          </div>
        </label>
        <div class="hint">
          <slot name="hint">${this.hint}</slot>
        </div>
      </div>
    `}};D([j({type:String})],fr.prototype,"name",void 0),D([j({type:String})],fr.prototype,"value",void 0),D([j({type:Boolean,reflect:!0})],fr.prototype,"checked",void 0),D([j({type:Boolean,reflect:!0,attribute:"default-checked"})],fr.prototype,"defaultChecked",void 0),D([j({type:Boolean,reflect:!0})],fr.prototype,"disabled",void 0),D([j({type:Boolean,reflect:!0})],fr.prototype,"required",void 0),D([j({type:String,reflect:!0})],fr.prototype,"size",void 0),D([j({type:String})],fr.prototype,"hint",void 0),D([j({type:String,reflect:!0})],fr.prototype,"design",void 0),D([j({type:String})],fr.prototype,"textOn",void 0),D([j({type:String})],fr.prototype,"textOff",void 0),fr=D([ot("mov-switch")],fr);var d3=":host{--mov-slider-track-height:6px;--mov-slider-thumb-size:18px;--mov-slider-tooltip-offset:24px;user-select:none;touch-action:none;width:100%;display:block}:host([vertical]){display:inline-block}.mov-slider__container{align-items:center;min-height:24px;display:flex;position:relative}:host([vertical]) .mov-slider__container{flex-direction:column;min-width:24px;min-height:auto}.mov-slider__track{height:var(--mov-slider-track-height);background:var(--theme-border-color,#ccc);cursor:pointer;border-radius:9999px;flex:1;position:relative}:host([vertical]) .mov-slider__track{width:var(--mov-slider-track-height);height:100%;min-height:8rem}.mov-slider__progress{background:var(--mov-color-fill-loud);pointer-events:none;border-radius:9999px;height:100%;transition:background-color .15s;position:absolute}.mov-slider__progress--min-gap{background:#f59e0b;animation:2s ease-in-out infinite pulse-gap}@keyframes pulse-gap{0%,to{opacity:1}50%{opacity:.7}}:host([vertical]) .mov-slider__progress{width:100%;height:auto}.mov-slider__thumb{width:var(--mov-slider-thumb-size);height:var(--mov-slider-thumb-size);border:3px solid var(--mov-color-fill-loud);cursor:grab;touch-action:none;box-sizing:border-box;background:#fff;border-radius:9999px;transition:transform .15s,border-color .15s,box-shadow .15s;position:absolute;top:50%;transform:translate(-50%,-50%);box-shadow:0 1px 3px #0003}.mov-slider__thumb:active{cursor:grabbing;transform:translate(-50%,-50%)scale(1.1)}:host([vertical]) .mov-slider__thumb{inset-inline-start:50%;top:auto;transform:translate(-50%,50%)}:host([vertical]) .mov-slider__thumb:active{transform:translate(-50%,50%)scale(1.1)}.mov-slider__thumb:hover{border-color:var(--mov-color-fill-loud);box-shadow:0 4px 6px -1px #0000001a}.mov-slider__thumb--focused{outline:3px solid var(--mov-color-fill-loud);outline-offset:2px}.mov-slider__thumb--active{z-index:1;transform:translate(-50%,-50%)scale(1.1)}:host([vertical]) .mov-slider__thumb--active{transform:translate(-50%,50%)scale(1.1)}:host([readonly]) .mov-slider__thumb{cursor:default;border-color:var(--theme-border-color)}:host([readonly]) .mov-slider__thumb:active{transform:translate(-50%,-50%)}.mov-slider__input{opacity:0;pointer-events:none;position:absolute}.mov-slider__tooltip{bottom:var(--mov-slider-tooltip-offset);background:var(--theme-hightlight-color,#333);color:#fff;white-space:nowrap;pointer-events:none;opacity:0;z-index:2;border-radius:4px;padding:2px 8px;font-size:14px;transition:opacity .15s;position:absolute;inset-inline-start:50%;transform:translate(-50%)}.mov-slider__thumb:hover .mov-slider__tooltip,.mov-slider__thumb--focused .mov-slider__tooltip,.mov-slider__thumb--active .mov-slider__tooltip{opacity:1}:host([vertical]) .mov-slider__tooltip{bottom:auto;inset-inline-start:var(--mov-slider-tooltip-offset);top:50%;transform:translateY(-50%)}.mov-slider__ticks{top:50%;pointer-events:none;height:8px;position:absolute;inset-inline:0}:host([vertical]) .mov-slider__ticks{top:0;bottom:0;width:8px;height:auto;inset-inline-start:50%}.mov-slider__tick{background:var(--theme-border-color);width:1px;height:8px;position:absolute;transform:translate(-50%)}:host([vertical]) .mov-slider__tick{width:8px;height:1px;transform:translateY(-50%)}.mov-slider__tick-label{color:var(--theme-text-color);opacity:.7;white-space:nowrap;font-size:12px;position:absolute;top:12px;transform:translate(-50%)}:host([vertical]) .mov-slider__tick-label{top:auto;inset-inline-start:12px;transform:translateY(-50%)}:host([size=small]){--mov-slider-track-height:4px;--mov-slider-thumb-size:14px}:host([size=large]){--mov-slider-track-height:10px;--mov-slider-thumb-size:22px}:host([disabled]){opacity:.6;pointer-events:none}:host([disabled]) .mov-slider__thumb{cursor:not-allowed;border-color:var(--theme-border-color);background:#f3f4f6}:host([invalid]) .mov-slider__progress{background:#ef4444}.mov-form-control__label{color:var(--theme-text-color);margin-bottom:.5rem;display:block}.mov-form-control__helper,.mov-form-control__error{margin-top:.5rem;font-size:14px}.mov-form-control__helper{color:var(--theme-text-color);opacity:.8}.mov-form-control__error{color:#ef4444}.mov-slider__live-region{clip:rect(0 0 0 0);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}:host([show-ticks]){margin-left:5px;margin-right:5px;padding-bottom:15px}:host([filled]) .mov-slider__thumb{background:var(--mov-color-fill-loud);border-color:var(--mov-color-fill-loud)}",ht=class extends Je{static{this.styles=[Ee(d3)]}constructor(){super(),this.label="",this.helpText="",this.errorMessage="",this.min=0,this.max=100,this.step=1,this.value=0,this.dual=!1,this.vertical=!1,this.filled=!1,this.size="medium",this.disabled=!1,this.readonly=!1,this.invalid=!1,this.showTooltip=!1,this.showTicks=!1,this.tickStep=0,this.tickCount=0,this.focusedThumb=null,this.draggingThumb=null,this.activeDrag=null,this._handlePointerMove=this._handlePointerMove.bind(this),this._handlePointerUp=this._handlePointerUp.bind(this)}get values(){return Array.isArray(this.value)?this.value:[this.min,this.value]}getPercentage(t){return(t-this.min)/(this.max-this.min)*100}getValueFromPercentage(t){const n=this.min+t/100*(this.max-this.min);return this.step?Math.round(n/this.step)*this.step:n}getValueFromPointer(t,n,i){let a;return this.vertical?a=(i.bottom-n)/i.height*100:a=(t-i.left)/i.width*100,a=Math.max(0,Math.min(100,a)),this.getValueFromPercentage(a)}clampValue(t){let n=Math.max(this.min,Math.min(this.max,t));return this.step&&(n=Math.round(n/this.step)*this.step),Number(n.toFixed(10))}handleThumbPointerDown(t,n){this.disabled||this.readonly||!this.track||(t.preventDefault(),t.stopPropagation(),t.currentTarget.setPointerCapture(t.pointerId),this.activeDrag={thumb:n,trackRect:this.track.getBoundingClientRect()},this.draggingThumb=n,document.addEventListener("pointermove",this._handlePointerMove),document.addEventListener("pointerup",this._handlePointerUp),document.addEventListener("pointercancel",this._handlePointerUp))}_handlePointerMove(t){if(!this.activeDrag||this.disabled||this.readonly)return;const{thumb:n,trackRect:i}=this.activeDrag,a=this.getValueFromPointer(t.clientX,t.clientY,i);if(this.dual){const s=this.values;if(n==="min"){const l=Math.min(a,s[1]-(this.step||1));this.updateValue([l,s[1]],"input")}else{const l=Math.max(a,s[0]+(this.step||1));this.updateValue([s[0],l],"input")}}else this.updateValue(a,"input")}_handlePointerUp(t){this.activeDrag&&(this.shadowRoot?.querySelector(".mov-slider__thumb--active")?.releasePointerCapture(t.pointerId),this.updateValue(this.value,"change"),this.activeDrag=null,this.draggingThumb=null,document.removeEventListener("pointermove",this._handlePointerMove),document.removeEventListener("pointerup",this._handlePointerUp),document.removeEventListener("pointercancel",this._handlePointerUp))}updateValue(t,n="change"){this.readonly||this.disabled||(this.dual&&Array.isArray(t)?(t=[this.clampValue(t[0]),this.clampValue(t[1])],t[0]>t[1]&&(t=[t[1],t[0]])):!this.dual&&typeof t=="number"&&(t=this.clampValue(t)),this.value=t,this.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0,detail:{value:t}})))}handleTrackClick(t){if(this.disabled||this.readonly||!this.track)return;const n=this.track.getBoundingClientRect(),i=this.getValueFromPointer(t.clientX,t.clientY,n);if(this.dual){const a=this.values;Math.abs(i-a[0])<Math.abs(i-a[1])?this.updateValue([i,a[1]]):this.updateValue([a[0],i])}else this.updateValue(i)}renderTicks(){if(!this.showTicks)return null;const t=new Set;t.add(this.min),t.add(this.max);let n=this.tickStep;if(this.tickCount>1&&(n=Math.round((this.max-this.min)/(this.tickCount-1))),n>0){const i=Math.floor((this.max-this.min)/n);if(i<=100)for(let a=1;a<=i;a++){const s=this.min+a*n;s<this.max&&t.add(Number(s.toFixed(10)))}}return oe`<div class="mov-slider__ticks">${Array.from(t).sort((i,a)=>i-a).map(i=>{const a=this.getPercentage(i);return oe`
        <div class="mov-slider__tick" style="${this.vertical?`bottom: ${a}%`:`inset-inline-start: ${a}%`}">
          <div class="mov-slider__tick-label">${i}</div>
        </div>
      `})}</div>`}renderThumb(t,n){const i=this.getPercentage(t),a=this.focusedThumb===n,s=this.draggingThumb===n,l=this.vertical?`bottom: ${i}%`:`inset-inline-start: ${i}%`;return oe`
      <div
        class="mov-slider__thumb ${a?"mov-slider__thumb--focused":""} ${s?"mov-slider__thumb--active":""}"
        style="${l}"
        @pointerdown=${h=>this.handleThumbPointerDown(h,n)}
      >
        ${this.showTooltip?oe`<div class="mov-slider__tooltip">${t}</div>`:""}
      </div>
    `}renderProgress(){const t=this.values;if(this.dual){const i=this.getPercentage(t[0]),a=this.getPercentage(t[1]);return oe`<div
        class="mov-slider__progress"
        style="${this.vertical?`bottom: ${i}%; height: ${a-i}%`:`left: ${i}%; width: ${a-i}%`}"
      ></div>`}const n=this.getPercentage(t[1]);return oe`<div
      class="mov-slider__progress"
      style="${this.vertical?`bottom: 0; height: ${n}%`:`left: 0; width: ${n}%`}"
    ></div>`}render(){const t=this.values;return oe`
      <div
        class="mov-slider"
        part="base"
      >
        ${this.label?oe`<label class="mov-form-control__label">${this.label}</label>`:""}
        <div
          class="mov-slider__container"
          @click=${this.handleTrackClick}
        >
          <div class="mov-slider__track">
            ${this.renderProgress()} ${this.renderTicks()}
            ${this.dual?oe`${this.renderThumb(t[0],"min")}${this.renderThumb(t[1],"max")}`:this.renderThumb(t[1],"single")}
          </div>
        </div>
        ${this.helpText&&!this.invalid?oe`<div class="mov-form-control__helper">${this.helpText}</div>`:""}
        ${this.invalid&&this.errorMessage?oe`<div class="mov-form-control__error">${this.errorMessage}</div>`:""}
      </div>
    `}};D([j({type:String})],ht.prototype,"label",void 0),D([j({attribute:"help-text"})],ht.prototype,"helpText",void 0),D([j({attribute:"error-message"})],ht.prototype,"errorMessage",void 0),D([j({type:Number})],ht.prototype,"min",void 0),D([j({type:Number})],ht.prototype,"max",void 0),D([j({type:Number})],ht.prototype,"step",void 0),D([j({type:Object})],ht.prototype,"value",void 0),D([j({type:Boolean,reflect:!0})],ht.prototype,"dual",void 0),D([j({type:Boolean,reflect:!0})],ht.prototype,"vertical",void 0),D([j({type:Boolean,reflect:!0})],ht.prototype,"filled",void 0),D([j({reflect:!0})],ht.prototype,"size",void 0),D([j({type:Boolean,reflect:!0})],ht.prototype,"disabled",void 0),D([j({type:Boolean,reflect:!0})],ht.prototype,"readonly",void 0),D([j({type:Boolean,reflect:!0})],ht.prototype,"invalid",void 0),D([j({type:Boolean,attribute:"show-tooltip"})],ht.prototype,"showTooltip",void 0),D([j({type:Boolean,attribute:"show-ticks"})],ht.prototype,"showTicks",void 0),D([j({type:Number,attribute:"tick-step"})],ht.prototype,"tickStep",void 0),D([j({type:Number,attribute:"tick-count"})],ht.prototype,"tickCount",void 0),D([zt()],ht.prototype,"focusedThumb",void 0),D([zt()],ht.prototype,"draggingThumb",void 0),D([en(".mov-slider__track")],ht.prototype,"track",void 0),D([en(".mov-slider__live-region")],ht.prototype,"liveRegion",void 0),ht=D([ot("mov-slider")],ht);var u3=yr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|&colon;)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"})),h3=yr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=l;var t=u3();function n(h){return t.relativeFirstCharacters.indexOf(h[0])>-1}function i(h){return h.replace(t.ctrlCharactersRegex,"").replace(t.htmlEntitiesRegex,function(u,f){return String.fromCharCode(f)})}function a(h){return URL.canParse(h)}function s(h){try{return decodeURIComponent(h)}catch{return h}}function l(h){if(!h)return t.BLANK_URL;var u,f=s(h.trim());do f=i(f).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),f=s(f),u=f.match(t.ctrlCharactersRegex)||f.match(t.htmlEntitiesRegex)||f.match(t.htmlCtrlEntityRegex)||f.match(t.whitespaceEscapeCharsRegex);while(u&&u.length>0);var p=f;if(!p)return t.BLANK_URL;if(n(p))return p;var w=p.trimStart(),b=w.match(t.urlSchemeRegex);if(!b)return p;var v=b[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(v))return t.BLANK_URL;var m=w.replace(/\\/g,"/");if(v==="mailto:"||v.includes("://"))return m;if(v==="http:"||v==="https:"){if(!a(m))return t.BLANK_URL;var E=new URL(m);return E.protocol=E.protocol.toLowerCase(),E.hostname=E.hostname.toLowerCase(),E.toString()}return m}})),f3=yr(((e,t)=>{(function(n,i){typeof define=="function"&&define.amd?define([],i):typeof e<"u"?i():(i(),n.FileSaver={})})(e,function(){"use strict";function n(f,p){return typeof p>"u"?p={autoBom:!1}:typeof p!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),p={autoBom:!p}),p.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(f.type)?new Blob(["\uFEFF",f],{type:f.type}):f}function i(f,p,w){var b=new XMLHttpRequest;b.open("GET",f),b.responseType="blob",b.onload=function(){u(b.response,p,w)},b.onerror=function(){console.error("could not download file")},b.send()}function a(f){var p=new XMLHttpRequest;p.open("HEAD",f,!1);try{p.send()}catch{}return 200<=p.status&&299>=p.status}function s(f){try{f.dispatchEvent(new MouseEvent("click"))}catch{var p=document.createEvent("MouseEvents");p.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),f.dispatchEvent(p)}}var l=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,h=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=l.saveAs||(typeof window!="object"||window!==l?function(){}:"download"in HTMLAnchorElement.prototype&&!h?function(f,p,w){var b=l.URL||l.webkitURL,v=document.createElement("a");p=p||f.name||"download",v.download=p,v.rel="noopener",typeof f=="string"?(v.href=f,v.origin===location.origin?s(v):a(v.href)?i(f,p,w):s(v,v.target="_blank")):(v.href=b.createObjectURL(f),setTimeout(function(){b.revokeObjectURL(v.href)},4e4),setTimeout(function(){s(v)},0))}:"msSaveOrOpenBlob"in navigator?function(f,p,w){if(p=p||f.name||"download",typeof f!="string")navigator.msSaveOrOpenBlob(n(f,w),p);else if(a(f))i(f,p,w);else{var b=document.createElement("a");b.href=f,b.target="_blank",setTimeout(function(){s(b)})}}:function(f,p,w,b){if(b=b||open("","_blank"),b&&(b.document.title=b.document.body.innerText="downloading..."),typeof f=="string")return i(f,p,w);var v=f.type==="application/octet-stream",m=/constructor/i.test(l.HTMLElement)||l.safari,E=/CriOS\/[\d]+/.test(navigator.userAgent);if((E||v&&m||h)&&typeof FileReader<"u"){var y=new FileReader;y.onloadend=function(){var L=y.result;L=E?L:L.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=L:location=L,b=null},y.readAsDataURL(f)}else{var A=l.URL||l.webkitURL,x=A.createObjectURL(f);b?b.location=x:location.href=x,b=null,setTimeout(function(){A.revokeObjectURL(x)},4e4)}});l.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})})),p3=yr(((e,t)=>{(function(n){typeof e=="object"&&typeof t<"u"?t.exports=n():typeof define=="function"&&define.amd?define([],n):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=n()})(function(){return(function n(i,a,s){function l(f,p){if(!a[f]){if(!i[f]){var w=typeof require=="function"&&require;if(!p&&w)return w(f,!0);if(h)return h(f,!0);var b=new Error("Cannot find module '"+f+"'");throw b.code="MODULE_NOT_FOUND",b}var v=a[f]={exports:{}};i[f][0].call(v.exports,function(m){var E=i[f][1][m];return l(E||m)},v,v.exports,n,i,a,s)}return a[f].exports}for(var h=typeof require=="function"&&require,u=0;u<s.length;u++)l(s[u]);return l})({1:[function(n,i,a){"use strict";var s=n("./utils"),l=n("./support"),h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.encode=function(u){for(var f,p,w,b,v,m,E,y=[],A=0,x=u.length,L=x,T=s.getTypeOf(u)!=="string";A<u.length;)L=x-A,w=T?(f=u[A++],p=A<x?u[A++]:0,A<x?u[A++]:0):(f=u.charCodeAt(A++),p=A<x?u.charCodeAt(A++):0,A<x?u.charCodeAt(A++):0),b=f>>2,v=(3&f)<<4|p>>4,m=1<L?(15&p)<<2|w>>6:64,E=2<L?63&w:64,y.push(h.charAt(b)+h.charAt(v)+h.charAt(m)+h.charAt(E));return y.join("")},a.decode=function(u){var f,p,w,b,v,m,E=0,y=0,A="data:";if(u.substr(0,A.length)===A)throw new Error("Invalid base64 input, it looks like a data url.");var x,L=3*(u=u.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(u.charAt(u.length-1)===h.charAt(64)&&L--,u.charAt(u.length-2)===h.charAt(64)&&L--,L%1!=0)throw new Error("Invalid base64 input, bad content length.");for(x=l.uint8array?new Uint8Array(0|L):new Array(0|L);E<u.length;)f=h.indexOf(u.charAt(E++))<<2|(b=h.indexOf(u.charAt(E++)))>>4,p=(15&b)<<4|(v=h.indexOf(u.charAt(E++)))>>2,w=(3&v)<<6|(m=h.indexOf(u.charAt(E++))),x[y++]=f,v!==64&&(x[y++]=p),m!==64&&(x[y++]=w);return x}},{"./support":30,"./utils":32}],2:[function(n,i,a){"use strict";var s=n("./external"),l=n("./stream/DataWorker"),h=n("./stream/Crc32Probe"),u=n("./stream/DataLengthProbe");function f(p,w,b,v,m){this.compressedSize=p,this.uncompressedSize=w,this.crc32=b,this.compression=v,this.compressedContent=m}f.prototype={getContentWorker:function(){var p=new l(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),w=this;return p.on("end",function(){if(this.streamInfo.data_length!==w.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),p},getCompressedWorker:function(){return new l(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},f.createWorkerFrom=function(p,w,b){return p.pipe(new h).pipe(new u("uncompressedSize")).pipe(w.compressWorker(b)).pipe(new u("compressedSize")).withStreamInfo("compression",w)},i.exports=f},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,i,a){"use strict";var s=n("./stream/GenericWorker");a.STORE={magic:"\0\0",compressWorker:function(l){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},a.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,i,a){"use strict";var s=n("./utils"),l=(function(){for(var h,u=[],f=0;f<256;f++){h=f;for(var p=0;p<8;p++)h=1&h?3988292384^h>>>1:h>>>1;u[f]=h}return u})();i.exports=function(h,u){return h!==void 0&&h.length?s.getTypeOf(h)!=="string"?(function(f,p,w,b){var v=l,m=b+w;f^=-1;for(var E=b;E<m;E++)f=f>>>8^v[255&(f^p[E])];return-1^f})(0|u,h,h.length,0):(function(f,p,w,b){var v=l,m=b+w;f^=-1;for(var E=b;E<m;E++)f=f>>>8^v[255&(f^p.charCodeAt(E))];return-1^f})(0|u,h,h.length,0):0}},{"./utils":32}],5:[function(n,i,a){"use strict";a.base64=!1,a.binary=!1,a.dir=!1,a.createFolders=!0,a.date=null,a.compression=null,a.compressionOptions=null,a.comment=null,a.unixPermissions=null,a.dosPermissions=null},{}],6:[function(n,i,a){"use strict";var s=null;s=typeof Promise<"u"?Promise:n("lie"),i.exports={Promise:s}},{lie:37}],7:[function(n,i,a){"use strict";var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",l=n("pako"),h=n("./utils"),u=n("./stream/GenericWorker"),f=s?"uint8array":"array";function p(w,b){u.call(this,"FlateWorker/"+w),this._pako=null,this._pakoAction=w,this._pakoOptions=b,this.meta={}}a.magic="\b\0",h.inherits(p,u),p.prototype.processChunk=function(w){this.meta=w.meta,this._pako===null&&this._createPako(),this._pako.push(h.transformTo(f,w.data),!1)},p.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},p.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},p.prototype._createPako=function(){this._pako=new l[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var w=this;this._pako.onData=function(b){w.push({data:b,meta:w.meta})}},a.compressWorker=function(w){return new p("Deflate",w)},a.uncompressWorker=function(){return new p("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,i,a){"use strict";function s(v,m){var E,y="";for(E=0;E<m;E++)y+=String.fromCharCode(255&v),v>>>=8;return y}function l(v,m,E,y,A,x){var L,T,N=v.file,Y=v.compression,q=x!==f.utf8encode,ie=h.transformTo("string",x(N.name)),W=h.transformTo("string",f.utf8encode(N.name)),ge=N.comment,_e=h.transformTo("string",x(ge)),P=h.transformTo("string",f.utf8encode(ge)),J=W.length!==N.name.length,S=P.length!==ge.length,ee="",Ce="",de="",Oe=N.dir,ae=N.date,Ie={crc32:0,compressedSize:0,uncompressedSize:0};m&&!E||(Ie.crc32=v.crc32,Ie.compressedSize=v.compressedSize,Ie.uncompressedSize=v.uncompressedSize);var U=0;m&&(U|=8),q||!J&&!S||(U|=2048);var G=0,Se=0;Oe&&(G|=16),A==="UNIX"?(Se=798,G|=(function(pe,Ke){var mt=pe;return pe||(mt=Ke?16893:33204),(65535&mt)<<16})(N.unixPermissions,Oe)):(Se=20,G|=(function(pe){return 63&(pe||0)})(N.dosPermissions)),L=ae.getUTCHours(),L<<=6,L|=ae.getUTCMinutes(),L<<=5,L|=ae.getUTCSeconds()/2,T=ae.getUTCFullYear()-1980,T<<=4,T|=ae.getUTCMonth()+1,T<<=5,T|=ae.getUTCDate(),J&&(Ce=s(1,1)+s(p(ie),4)+W,ee+="up"+s(Ce.length,2)+Ce),S&&(de=s(1,1)+s(p(_e),4)+P,ee+="uc"+s(de.length,2)+de);var me="";return me+=`
\0`,me+=s(U,2),me+=Y.magic,me+=s(L,2),me+=s(T,2),me+=s(Ie.crc32,4),me+=s(Ie.compressedSize,4),me+=s(Ie.uncompressedSize,4),me+=s(ie.length,2),me+=s(ee.length,2),{fileRecord:w.LOCAL_FILE_HEADER+me+ie+ee,dirRecord:w.CENTRAL_FILE_HEADER+s(Se,2)+me+s(_e.length,2)+"\0\0\0\0"+s(G,4)+s(y,4)+ie+ee+_e}}var h=n("../utils"),u=n("../stream/GenericWorker"),f=n("../utf8"),p=n("../crc32"),w=n("../signature");function b(v,m,E,y){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=E,this.encodeFileName=y,this.streamFiles=v,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}h.inherits(b,u),b.prototype.push=function(v){var m=v.meta.percent||0,E=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(v):(this.bytesWritten+=v.data.length,u.prototype.push.call(this,{data:v.data,meta:{currentFile:this.currentFile,percent:E?(m+100*(E-y-1))/E:100}}))},b.prototype.openedSource=function(v){this.currentSourceOffset=this.bytesWritten,this.currentFile=v.file.name;var m=this.streamFiles&&!v.file.dir;if(m){var E=l(v,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:E.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(v){this.accumulate=!1;var m=this.streamFiles&&!v.file.dir,E=l(v,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(E.dirRecord),m)this.push({data:(function(y){return w.DATA_DESCRIPTOR+s(y.crc32,4)+s(y.compressedSize,4)+s(y.uncompressedSize,4)})(v),meta:{percent:100}});else for(this.push({data:E.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},b.prototype.flush=function(){for(var v=this.bytesWritten,m=0;m<this.dirRecords.length;m++)this.push({data:this.dirRecords[m],meta:{percent:100}});var E=this.bytesWritten-v,y=(function(A,x,L,T,N){var Y=h.transformTo("string",N(T));return w.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(A,2)+s(A,2)+s(x,4)+s(L,4)+s(Y.length,2)+Y})(this.dirRecords.length,E,v,this.zipComment,this.encodeFileName);this.push({data:y,meta:{percent:100}})},b.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},b.prototype.registerPrevious=function(v){this._sources.push(v);var m=this;return v.on("data",function(E){m.processChunk(E)}),v.on("end",function(){m.closedSource(m.previous.streamInfo),m._sources.length?m.prepareNextSource():m.end()}),v.on("error",function(E){m.error(E)}),this},b.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},b.prototype.error=function(v){var m=this._sources;if(!u.prototype.error.call(this,v))return!1;for(var E=0;E<m.length;E++)try{m[E].error(v)}catch{}return!0},b.prototype.lock=function(){u.prototype.lock.call(this);for(var v=this._sources,m=0;m<v.length;m++)v[m].lock()},i.exports=b},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,i,a){"use strict";var s=n("../compressions"),l=n("./ZipFileWorker");a.generateWorker=function(h,u,f){var p=new l(u.streamFiles,f,u.platform,u.encodeFileName),w=0;try{h.forEach(function(b,v){w++;var m=(function(x,L){var T=x||L,N=s[T];if(!N)throw new Error(T+" is not a valid compression method !");return N})(v.options.compression,u.compression),E=v.options.compressionOptions||u.compressionOptions||{},y=v.dir,A=v.date;v._compressWorker(m,E).withStreamInfo("file",{name:b,dir:y,date:A,comment:v.comment||"",unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions}).pipe(p)}),p.entriesCount=w}catch(b){p.error(b)}return p}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,i,a){"use strict";function s(){if(!(this instanceof s))return new s;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var l=new s;for(var h in this)typeof this[h]!="function"&&(l[h]=this[h]);return l}}(s.prototype=n("./object")).loadAsync=n("./load"),s.support=n("./support"),s.defaults=n("./defaults"),s.version="3.9.1",s.loadAsync=function(l,h){return new s().loadAsync(l,h)},s.external=n("./external"),i.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,i,a){"use strict";var s=n("./utils"),l=n("./external"),h=n("./utf8"),u=n("./zipEntries"),f=n("./stream/Crc32Probe"),p=n("./nodejsUtils");function w(b){return new l.Promise(function(v,m){var E=b.decompressed.getContentWorker().pipe(new f);E.on("error",function(y){m(y)}).on("end",function(){E.streamInfo.crc32!==b.decompressed.crc32?m(new Error("Corrupted zip : CRC32 mismatch")):v()}).resume()})}i.exports=function(b,v){var m=this;return v=s.extend(v||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:h.utf8decode}),p.isNode&&p.isStream(b)?l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",b,!0,v.optimizedBinaryString,v.base64).then(function(E){var y=new u(v);return y.load(E),y}).then(function(E){var y=[l.Promise.resolve(E)],A=E.files;if(v.checkCRC32)for(var x=0;x<A.length;x++)y.push(w(A[x]));return l.Promise.all(y)}).then(function(E){for(var y=E.shift(),A=y.files,x=0;x<A.length;x++){var L=A[x],T=L.fileNameStr,N=s.resolve(L.fileNameStr);m.file(N,L.decompressed,{binary:!0,optimizedBinaryString:!0,date:L.date,dir:L.dir,comment:L.fileCommentStr.length?L.fileCommentStr:null,unixPermissions:L.unixPermissions,dosPermissions:L.dosPermissions,createFolders:v.createFolders}),L.dir||(m.file(N).unsafeOriginalName=T)}return y.zipComment.length&&(m.comment=y.zipComment),m})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,i,a){"use strict";var s=n("../utils"),l=n("../stream/GenericWorker");function h(u,f){l.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(f)}s.inherits(h,l),h.prototype._bindStream=function(u){var f=this;(this._stream=u).pause(),u.on("data",function(p){f.push({data:p,meta:{percent:0}})}).on("error",function(p){f.isPaused?this.generatedError=p:f.error(p)}).on("end",function(){f.isPaused?f._upstreamEnded=!0:f.end()})},h.prototype.pause=function(){return!!l.prototype.pause.call(this)&&(this._stream.pause(),!0)},h.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=h},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,i,a){"use strict";var s=n("readable-stream").Readable;function l(h,u,f){s.call(this,u),this._helper=h;var p=this;h.on("data",function(w,b){p.push(w)||p._helper.pause(),f&&f(b)}).on("error",function(w){p.emit("error",w)}).on("end",function(){p.push(null)})}n("../utils").inherits(l,s),l.prototype._read=function(){this._helper.resume()},i.exports=l},{"../utils":32,"readable-stream":16}],14:[function(n,i,a){"use strict";i.exports={isNode:typeof Buffer<"u",newBufferFrom:function(s,l){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,l);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,l)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var l=new Buffer(s);return l.fill(0),l},isBuffer:function(s){return Buffer.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(n,i,a){"use strict";function s(T,N,Y){var q,ie=h.getTypeOf(N),W=h.extend(Y||{},p);W.date=W.date||new Date,W.compression!==null&&(W.compression=W.compression.toUpperCase()),typeof W.unixPermissions=="string"&&(W.unixPermissions=parseInt(W.unixPermissions,8)),W.unixPermissions&&16384&W.unixPermissions&&(W.dir=!0),W.dosPermissions&&16&W.dosPermissions&&(W.dir=!0),W.dir&&(T=A(T)),W.createFolders&&(q=y(T))&&x.call(this,q,!0);var ge=ie==="string"&&W.binary===!1&&W.base64===!1;Y&&Y.binary!==void 0||(W.binary=!ge),(N instanceof w&&N.uncompressedSize===0||W.dir||!N||N.length===0)&&(W.base64=!1,W.binary=!0,N="",W.compression="STORE",ie="string");var _e=null;_e=N instanceof w||N instanceof u?N:m.isNode&&m.isStream(N)?new E(T,N):h.prepareContent(T,N,W.binary,W.optimizedBinaryString,W.base64);var P=new b(T,_e,W);this.files[T]=P}var l=n("./utf8"),h=n("./utils"),u=n("./stream/GenericWorker"),f=n("./stream/StreamHelper"),p=n("./defaults"),w=n("./compressedObject"),b=n("./zipObject"),v=n("./generate"),m=n("./nodejsUtils"),E=n("./nodejs/NodejsStreamInputAdapter"),y=function(T){T.slice(-1)==="/"&&(T=T.substring(0,T.length-1));var N=T.lastIndexOf("/");return 0<N?T.substring(0,N):""},A=function(T){return T.slice(-1)!=="/"&&(T+="/"),T},x=function(T,N){return N=N!==void 0?N:p.createFolders,T=A(T),this.files[T]||s.call(this,T,null,{dir:!0,createFolders:N}),this.files[T]};function L(T){return Object.prototype.toString.call(T)==="[object RegExp]"}i.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(T){var N,Y,q;for(N in this.files)q=this.files[N],(Y=N.slice(this.root.length,N.length))&&N.slice(0,this.root.length)===this.root&&T(Y,q)},filter:function(T){var N=[];return this.forEach(function(Y,q){T(Y,q)&&N.push(q)}),N},file:function(T,N,Y){if(arguments.length!==1)return T=this.root+T,s.call(this,T,N,Y),this;if(L(T)){var q=T;return this.filter(function(W,ge){return!ge.dir&&q.test(W)})}var ie=this.files[this.root+T];return ie&&!ie.dir?ie:null},folder:function(T){if(!T)return this;if(L(T))return this.filter(function(ie,W){return W.dir&&T.test(ie)});var N=this.root+T,Y=x.call(this,N),q=this.clone();return q.root=Y.name,q},remove:function(T){T=this.root+T;var N=this.files[T];if(N||(T.slice(-1)!=="/"&&(T+="/"),N=this.files[T]),N&&!N.dir)delete this.files[T];else for(var Y=this.filter(function(ie,W){return W.name.slice(0,T.length)===T}),q=0;q<Y.length;q++)delete this.files[Y[q].name];return this},generate:function(T){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(T){var N,Y={};try{if((Y=h.extend(T||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:l.utf8encode})).type=Y.type.toLowerCase(),Y.compression=Y.compression.toUpperCase(),Y.type==="binarystring"&&(Y.type="string"),!Y.type)throw new Error("No output type specified.");h.checkSupport(Y.type),Y.platform!=="darwin"&&Y.platform!=="freebsd"&&Y.platform!=="linux"&&Y.platform!=="sunos"||(Y.platform="UNIX"),Y.platform==="win32"&&(Y.platform="DOS");var q=Y.comment||this.comment||"";N=v.generateWorker(this,Y,q)}catch(ie){(N=new u("error")).error(ie)}return new f(N,Y.type||"string",Y.mimeType)},generateAsync:function(T,N){return this.generateInternalStream(T).accumulate(N)},generateNodeStream:function(T,N){return(T=T||{}).type||(T.type="nodebuffer"),this.generateInternalStream(T).toNodejsStream(N)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,i,a){i.exports=n("stream")},{stream:void 0}],17:[function(n,i,a){"use strict";var s=n("./DataReader");function l(h){s.call(this,h);for(var u=0;u<this.data.length;u++)h[u]=255&h[u]}n("../utils").inherits(l,s),l.prototype.byteAt=function(h){return this.data[this.zero+h]},l.prototype.lastIndexOfSignature=function(h){for(var u=h.charCodeAt(0),f=h.charCodeAt(1),p=h.charCodeAt(2),w=h.charCodeAt(3),b=this.length-4;0<=b;--b)if(this.data[b]===u&&this.data[b+1]===f&&this.data[b+2]===p&&this.data[b+3]===w)return b-this.zero;return-1},l.prototype.readAndCheckSignature=function(h){var u=h.charCodeAt(0),f=h.charCodeAt(1),p=h.charCodeAt(2),w=h.charCodeAt(3),b=this.readData(4);return u===b[0]&&f===b[1]&&p===b[2]&&w===b[3]},l.prototype.readData=function(h){if(this.checkOffset(h),h===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,u},i.exports=l},{"../utils":32,"./DataReader":18}],18:[function(n,i,a){"use strict";var s=n("../utils");function l(h){this.data=h,this.length=h.length,this.index=0,this.zero=0}l.prototype={checkOffset:function(h){this.checkIndex(this.index+h)},checkIndex:function(h){if(this.length<this.zero+h||h<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+h+"). Corrupted zip ?")},setIndex:function(h){this.checkIndex(h),this.index=h},skip:function(h){this.setIndex(this.index+h)},byteAt:function(h){},readInt:function(h){var u,f=0;for(this.checkOffset(h),u=this.index+h-1;u>=this.index;u--)f=(f<<8)+this.byteAt(u);return this.index+=h,f},readString:function(h){return s.transformTo("string",this.readData(h))},readData:function(h){},lastIndexOfSignature:function(h){},readAndCheckSignature:function(h){},readDate:function(){var h=this.readInt(4);return new Date(Date.UTC(1980+(h>>25&127),(h>>21&15)-1,h>>16&31,h>>11&31,h>>5&63,(31&h)<<1))}},i.exports=l},{"../utils":32}],19:[function(n,i,a){"use strict";var s=n("./Uint8ArrayReader");function l(h){s.call(this,h)}n("../utils").inherits(l,s),l.prototype.readData=function(h){this.checkOffset(h);var u=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,u},i.exports=l},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,i,a){"use strict";var s=n("./DataReader");function l(h){s.call(this,h)}n("../utils").inherits(l,s),l.prototype.byteAt=function(h){return this.data.charCodeAt(this.zero+h)},l.prototype.lastIndexOfSignature=function(h){return this.data.lastIndexOf(h)-this.zero},l.prototype.readAndCheckSignature=function(h){return h===this.readData(4)},l.prototype.readData=function(h){this.checkOffset(h);var u=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,u},i.exports=l},{"../utils":32,"./DataReader":18}],21:[function(n,i,a){"use strict";var s=n("./ArrayReader");function l(h){s.call(this,h)}n("../utils").inherits(l,s),l.prototype.readData=function(h){if(this.checkOffset(h),h===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+h);return this.index+=h,u},i.exports=l},{"../utils":32,"./ArrayReader":17}],22:[function(n,i,a){"use strict";var s=n("../utils"),l=n("../support"),h=n("./ArrayReader"),u=n("./StringReader"),f=n("./NodeBufferReader"),p=n("./Uint8ArrayReader");i.exports=function(w){var b=s.getTypeOf(w);return s.checkSupport(b),b!=="string"||l.uint8array?b==="nodebuffer"?new f(w):l.uint8array?new p(s.transformTo("uint8array",w)):new h(s.transformTo("array",w)):new u(w)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,i,a){"use strict";a.LOCAL_FILE_HEADER="PK",a.CENTRAL_FILE_HEADER="PK",a.CENTRAL_DIRECTORY_END="PK",a.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",a.ZIP64_CENTRAL_DIRECTORY_END="PK",a.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,i,a){"use strict";var s=n("./GenericWorker"),l=n("../utils");function h(u){s.call(this,"ConvertWorker to "+u),this.destType=u}l.inherits(h,s),h.prototype.processChunk=function(u){this.push({data:l.transformTo(this.destType,u.data),meta:u.meta})},i.exports=h},{"../utils":32,"./GenericWorker":28}],25:[function(n,i,a){"use strict";var s=n("./GenericWorker"),l=n("../crc32");function h(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(h,s),h.prototype.processChunk=function(u){this.streamInfo.crc32=l(u.data,this.streamInfo.crc32||0),this.push(u)},i.exports=h},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,i,a){"use strict";var s=n("../utils"),l=n("./GenericWorker");function h(u){l.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}s.inherits(h,l),h.prototype.processChunk=function(u){if(u){var f=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=f+u.data.length}l.prototype.processChunk.call(this,u)},i.exports=h},{"../utils":32,"./GenericWorker":28}],27:[function(n,i,a){"use strict";var s=n("../utils"),l=n("./GenericWorker");function h(u){l.call(this,"DataWorker");var f=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(p){f.dataIsReady=!0,f.data=p,f.max=p&&p.length||0,f.type=s.getTypeOf(p),f.isPaused||f._tickAndRepeat()},function(p){f.error(p)})}s.inherits(h,l),h.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this.data=null},h.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},h.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},h.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,f=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,f);break;case"uint8array":u=this.data.subarray(this.index,f);break;case"array":case"nodebuffer":u=this.data.slice(this.index,f)}return this.index=f,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=h},{"../utils":32,"./GenericWorker":28}],28:[function(n,i,a){"use strict";function s(l){this.name=l||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}s.prototype={push:function(l){this.emit("data",l)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(l){this.emit("error",l)}return!0},error:function(l){return!this.isFinished&&(this.isPaused?this.generatedError=l:(this.isFinished=!0,this.emit("error",l),this.previous&&this.previous.error(l),this.cleanUp()),!0)},on:function(l,h){return this._listeners[l].push(h),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(l,h){if(this._listeners[l])for(var u=0;u<this._listeners[l].length;u++)this._listeners[l][u].call(this,h)},pipe:function(l){return l.registerPrevious(this)},registerPrevious:function(l){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=l.streamInfo,this.mergeStreamInfo(),this.previous=l;var h=this;return l.on("data",function(u){h.processChunk(u)}),l.on("end",function(){h.end()}),l.on("error",function(u){h.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var l=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),l=!0),this.previous&&this.previous.resume(),!l},flush:function(){},processChunk:function(l){this.push(l)},withStreamInfo:function(l,h){return this.extraStreamInfo[l]=h,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var l in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(l)&&(this.streamInfo[l]=this.extraStreamInfo[l])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var l="Worker "+this.name;return this.previous?this.previous+" -> "+l:l}},i.exports=s},{}],29:[function(n,i,a){"use strict";var s=n("../utils"),l=n("./ConvertWorker"),h=n("./GenericWorker"),u=n("../base64"),f=n("../support"),p=n("../external"),w=null;if(f.nodestream)try{w=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(m,E){return new p.Promise(function(y,A){var x=[],L=m._internalType,T=m._outputType,N=m._mimeType;m.on("data",function(Y,q){x.push(Y),E&&E(q)}).on("error",function(Y){x=[],A(Y)}).on("end",function(){try{y((function(Y,q,ie){switch(Y){case"blob":return s.newBlob(s.transformTo("arraybuffer",q),ie);case"base64":return u.encode(q);default:return s.transformTo(Y,q)}})(T,(function(Y,q){var ie,W=0,ge=null,_e=0;for(ie=0;ie<q.length;ie++)_e+=q[ie].length;switch(Y){case"string":return q.join("");case"array":return Array.prototype.concat.apply([],q);case"uint8array":for(ge=new Uint8Array(_e),ie=0;ie<q.length;ie++)ge.set(q[ie],W),W+=q[ie].length;return ge;case"nodebuffer":return Buffer.concat(q);default:throw new Error("concat : unsupported type '"+Y+"'")}})(L,x),N))}catch(Y){A(Y)}x=[]}).resume()})}function v(m,E,y){var A=E;switch(E){case"blob":case"arraybuffer":A="uint8array";break;case"base64":A="string"}try{this._internalType=A,this._outputType=E,this._mimeType=y,s.checkSupport(A),this._worker=m.pipe(new l(A)),m.lock()}catch(x){this._worker=new h("error"),this._worker.error(x)}}v.prototype={accumulate:function(m){return b(this,m)},on:function(m,E){var y=this;return m==="data"?this._worker.on(m,function(A){E.call(y,A.data,A.meta)}):this._worker.on(m,function(){s.delay(E,arguments,y)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(m){if(s.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new w(this,{objectMode:this._outputType!=="nodebuffer"},m)}},i.exports=v},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,i,a){"use strict";if(a.base64=!0,a.array=!0,a.string=!0,a.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",a.nodebuffer=typeof Buffer<"u",a.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")a.blob=!1;else{var s=new ArrayBuffer(0);try{a.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var l=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);l.append(s),a.blob=l.getBlob("application/zip").size===0}catch{a.blob=!1}}}try{a.nodestream=!!n("readable-stream").Readable}catch{a.nodestream=!1}},{"readable-stream":16}],31:[function(n,i,a){"use strict";for(var s=n("./utils"),l=n("./support"),h=n("./nodejsUtils"),u=n("./stream/GenericWorker"),f=new Array(256),p=0;p<256;p++)f[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;f[254]=f[254]=1;function w(){u.call(this,"utf-8 decode"),this.leftOver=null}function b(){u.call(this,"utf-8 encode")}a.utf8encode=function(v){return l.nodebuffer?h.newBufferFrom(v,"utf-8"):(function(m){var E,y,A,x,L,T=m.length,N=0;for(x=0;x<T;x++)(64512&(y=m.charCodeAt(x)))==55296&&x+1<T&&(64512&(A=m.charCodeAt(x+1)))==56320&&(y=65536+(y-55296<<10)+(A-56320),x++),N+=y<128?1:y<2048?2:y<65536?3:4;for(E=l.uint8array?new Uint8Array(N):new Array(N),x=L=0;L<N;x++)(64512&(y=m.charCodeAt(x)))==55296&&x+1<T&&(64512&(A=m.charCodeAt(x+1)))==56320&&(y=65536+(y-55296<<10)+(A-56320),x++),y<128?E[L++]=y:(y<2048?E[L++]=192|y>>>6:(y<65536?E[L++]=224|y>>>12:(E[L++]=240|y>>>18,E[L++]=128|y>>>12&63),E[L++]=128|y>>>6&63),E[L++]=128|63&y);return E})(v)},a.utf8decode=function(v){return l.nodebuffer?s.transformTo("nodebuffer",v).toString("utf-8"):(function(m){var E,y,A,x,L=m.length,T=new Array(2*L);for(E=y=0;E<L;)if((A=m[E++])<128)T[y++]=A;else if(4<(x=f[A]))T[y++]=65533,E+=x-1;else{for(A&=x===2?31:x===3?15:7;1<x&&E<L;)A=A<<6|63&m[E++],x--;1<x?T[y++]=65533:A<65536?T[y++]=A:(A-=65536,T[y++]=55296|A>>10&1023,T[y++]=56320|1023&A)}return T.length!==y&&(T.subarray?T=T.subarray(0,y):T.length=y),s.applyFromCharCode(T)})(v=s.transformTo(l.uint8array?"uint8array":"array",v))},s.inherits(w,u),w.prototype.processChunk=function(v){var m=s.transformTo(l.uint8array?"uint8array":"array",v.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var E=m;(m=new Uint8Array(E.length+this.leftOver.length)).set(this.leftOver,0),m.set(E,this.leftOver.length)}else m=this.leftOver.concat(m);this.leftOver=null}var y=(function(x,L){var T;for((L=L||x.length)>x.length&&(L=x.length),T=L-1;0<=T&&(192&x[T])==128;)T--;return T<0||T===0?L:T+f[x[T]]>L?T:L})(m),A=m;y!==m.length&&(l.uint8array?(A=m.subarray(0,y),this.leftOver=m.subarray(y,m.length)):(A=m.slice(0,y),this.leftOver=m.slice(y,m.length))),this.push({data:a.utf8decode(A),meta:v.meta})},w.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=w,s.inherits(b,u),b.prototype.processChunk=function(v){this.push({data:a.utf8encode(v.data),meta:v.meta})},a.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,i,a){"use strict";var s=n("./support"),l=n("./base64"),h=n("./nodejsUtils"),u=n("set-immediate-shim"),f=n("./external");function p(y){return y}function w(y,A){for(var x=0;x<y.length;++x)A[x]=255&y.charCodeAt(x);return A}a.newBlob=function(y,A){a.checkSupport("blob");try{return new Blob([y],{type:A})}catch{try{var x=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return x.append(y),x.getBlob(A)}catch{throw new Error("Bug : can't construct the Blob.")}}};var b={stringifyByChunk:function(y,A,x){var L=[],T=0,N=y.length;if(N<=x)return String.fromCharCode.apply(null,y);for(;T<N;)A==="array"||A==="nodebuffer"?L.push(String.fromCharCode.apply(null,y.slice(T,Math.min(T+x,N)))):L.push(String.fromCharCode.apply(null,y.subarray(T,Math.min(T+x,N)))),T+=x;return L.join("")},stringifyByChar:function(y){for(var A="",x=0;x<y.length;x++)A+=String.fromCharCode(y[x]);return A},applyCanBeUsed:{uint8array:(function(){try{return s.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return s.nodebuffer&&String.fromCharCode.apply(null,h.allocBuffer(1)).length===1}catch{return!1}})()}};function v(y){var A=65536,x=a.getTypeOf(y),L=!0;if(x==="uint8array"?L=b.applyCanBeUsed.uint8array:x==="nodebuffer"&&(L=b.applyCanBeUsed.nodebuffer),L)for(;1<A;)try{return b.stringifyByChunk(y,x,A)}catch{A=Math.floor(A/2)}return b.stringifyByChar(y)}function m(y,A){for(var x=0;x<y.length;x++)A[x]=y[x];return A}a.applyFromCharCode=v;var E={};E.string={string:p,array:function(y){return w(y,new Array(y.length))},arraybuffer:function(y){return E.string.uint8array(y).buffer},uint8array:function(y){return w(y,new Uint8Array(y.length))},nodebuffer:function(y){return w(y,h.allocBuffer(y.length))}},E.array={string:v,array:p,arraybuffer:function(y){return new Uint8Array(y).buffer},uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return h.newBufferFrom(y)}},E.arraybuffer={string:function(y){return v(new Uint8Array(y))},array:function(y){return m(new Uint8Array(y),new Array(y.byteLength))},arraybuffer:p,uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return h.newBufferFrom(new Uint8Array(y))}},E.uint8array={string:v,array:function(y){return m(y,new Array(y.length))},arraybuffer:function(y){return y.buffer},uint8array:p,nodebuffer:function(y){return h.newBufferFrom(y)}},E.nodebuffer={string:v,array:function(y){return m(y,new Array(y.length))},arraybuffer:function(y){return E.nodebuffer.uint8array(y).buffer},uint8array:function(y){return m(y,new Uint8Array(y.length))},nodebuffer:p},a.transformTo=function(y,A){return A=A||"",y?(a.checkSupport(y),E[a.getTypeOf(A)][y](A)):A},a.resolve=function(y){for(var A=y.split("/"),x=[],L=0;L<A.length;L++){var T=A[L];T==="."||T===""&&L!==0&&L!==A.length-1||(T===".."?x.pop():x.push(T))}return x.join("/")},a.getTypeOf=function(y){return typeof y=="string"?"string":Object.prototype.toString.call(y)==="[object Array]"?"array":s.nodebuffer&&h.isBuffer(y)?"nodebuffer":s.uint8array&&y instanceof Uint8Array?"uint8array":s.arraybuffer&&y instanceof ArrayBuffer?"arraybuffer":void 0},a.checkSupport=function(y){if(!s[y.toLowerCase()])throw new Error(y+" is not supported by this platform")},a.MAX_VALUE_16BITS=65535,a.MAX_VALUE_32BITS=-1,a.pretty=function(y){var A,x,L="";for(x=0;x<(y||"").length;x++)L+="\\x"+((A=y.charCodeAt(x))<16?"0":"")+A.toString(16).toUpperCase();return L},a.delay=function(y,A,x){u(function(){y.apply(x||null,A||[])})},a.inherits=function(y,A){function x(){}x.prototype=A.prototype,y.prototype=new x},a.extend=function(){var y,A,x={};for(y=0;y<arguments.length;y++)for(A in arguments[y])arguments[y].hasOwnProperty(A)&&x[A]===void 0&&(x[A]=arguments[y][A]);return x},a.prepareContent=function(y,A,x,L,T){return f.Promise.resolve(A).then(function(N){return s.blob&&(N instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(N))!==-1)&&typeof FileReader<"u"?new f.Promise(function(Y,q){var ie=new FileReader;ie.onload=function(W){Y(W.target.result)},ie.onerror=function(W){q(W.target.error)},ie.readAsArrayBuffer(N)}):N}).then(function(N){var Y=a.getTypeOf(N);return Y?(Y==="arraybuffer"?N=a.transformTo("uint8array",N):Y==="string"&&(T?N=l.decode(N):x&&L!==!0&&(N=(function(q){return w(q,s.uint8array?new Uint8Array(q.length):new Array(q.length))})(N))),N):f.Promise.reject(new Error("Can't read the data of '"+y+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(n,i,a){"use strict";var s=n("./reader/readerFor"),l=n("./utils"),h=n("./signature"),u=n("./zipEntry"),f=(n("./utf8"),n("./support"));function p(w){this.files=[],this.loadOptions=w}p.prototype={checkSignature:function(w){if(!this.reader.readAndCheckSignature(w)){this.reader.index-=4;var b=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+l.pretty(b)+", expected "+l.pretty(w)+")")}},isSignature:function(w,b){var v=this.reader.index;this.reader.setIndex(w);var m=this.reader.readString(4)===b;return this.reader.setIndex(v),m},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var w=this.reader.readData(this.zipCommentLength),b=f.uint8array?"uint8array":"array",v=l.transformTo(b,w);this.zipComment=this.loadOptions.decodeFileName(v)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var w,b,v,m=this.zip64EndOfCentralSize-44;0<m;)w=this.reader.readInt(2),b=this.reader.readInt(4),v=this.reader.readData(b),this.zip64ExtensibleData[w]={id:w,length:b,value:v}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var w,b;for(w=0;w<this.files.length;w++)b=this.files[w],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(h.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var w;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(h.CENTRAL_FILE_HEADER);)(w=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(w);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var w=this.reader.lastIndexOfSignature(h.CENTRAL_DIRECTORY_END);if(w<0)throw this.isSignature(0,h.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(w);var b=w;if(this.checkSignature(h.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===l.MAX_VALUE_16BITS||this.diskWithCentralDirStart===l.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===l.MAX_VALUE_16BITS||this.centralDirRecords===l.MAX_VALUE_16BITS||this.centralDirSize===l.MAX_VALUE_32BITS||this.centralDirOffset===l.MAX_VALUE_32BITS){if(this.zip64=!0,(w=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(w),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,h.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var v=this.centralDirOffset+this.centralDirSize;this.zip64&&(v+=20,v+=12+this.zip64EndOfCentralSize);var m=b-v;if(0<m)this.isSignature(b,h.CENTRAL_FILE_HEADER)||(this.reader.zero=m);else if(m<0)throw new Error("Corrupted zip: missing "+Math.abs(m)+" bytes.")},prepareReader:function(w){this.reader=s(w)},load:function(w){this.prepareReader(w),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=p},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(n,i,a){"use strict";var s=n("./reader/readerFor"),l=n("./utils"),h=n("./compressedObject"),u=n("./crc32"),f=n("./utf8"),p=n("./compressions"),w=n("./support");function b(v,m){this.options=v,this.loadOptions=m}b.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(v){var m,E;if(v.skip(22),this.fileNameLength=v.readInt(2),E=v.readInt(2),this.fileName=v.readData(this.fileNameLength),v.skip(E),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((m=(function(y){for(var A in p)if(p.hasOwnProperty(A)&&p[A].magic===y)return p[A];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+l.pretty(this.compressionMethod)+" unknown (inner file : "+l.transformTo("string",this.fileName)+")");this.decompressed=new h(this.compressedSize,this.uncompressedSize,this.crc32,m,v.readData(this.compressedSize))},readCentralPart:function(v){this.versionMadeBy=v.readInt(2),v.skip(2),this.bitFlag=v.readInt(2),this.compressionMethod=v.readString(2),this.date=v.readDate(),this.crc32=v.readInt(4),this.compressedSize=v.readInt(4),this.uncompressedSize=v.readInt(4);var m=v.readInt(2);if(this.extraFieldsLength=v.readInt(2),this.fileCommentLength=v.readInt(2),this.diskNumberStart=v.readInt(2),this.internalFileAttributes=v.readInt(2),this.externalFileAttributes=v.readInt(4),this.localHeaderOffset=v.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");v.skip(m),this.readExtraFields(v),this.parseZIP64ExtraField(v),this.fileComment=v.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var v=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),v==0&&(this.dosPermissions=63&this.externalFileAttributes),v==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(v){if(this.extraFields[1]){var m=s(this.extraFields[1].value);this.uncompressedSize===l.MAX_VALUE_32BITS&&(this.uncompressedSize=m.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=m.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&(this.localHeaderOffset=m.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=m.readInt(4))}},readExtraFields:function(v){var m,E,y,A=v.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});v.index+4<A;)m=v.readInt(2),E=v.readInt(2),y=v.readData(E),this.extraFields[m]={id:m,length:E,value:y};v.setIndex(A)},handleUTF8:function(){var v=w.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=f.utf8decode(this.fileName),this.fileCommentStr=f.utf8decode(this.fileComment);else{var m=this.findExtraFieldUnicodePath();if(m!==null)this.fileNameStr=m;else{var E=l.transformTo(v,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(E)}var y=this.findExtraFieldUnicodeComment();if(y!==null)this.fileCommentStr=y;else{var A=l.transformTo(v,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(A)}}},findExtraFieldUnicodePath:function(){var v=this.extraFields[28789];if(v){var m=s(v.value);return m.readInt(1)!==1||u(this.fileName)!==m.readInt(4)?null:f.utf8decode(m.readData(v.length-5))}return null},findExtraFieldUnicodeComment:function(){var v=this.extraFields[25461];if(v){var m=s(v.value);return m.readInt(1)!==1||u(this.fileComment)!==m.readInt(4)?null:f.utf8decode(m.readData(v.length-5))}return null}},i.exports=b},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,i,a){"use strict";function s(m,E,y){this.name=m,this.dir=y.dir,this.date=y.date,this.comment=y.comment,this.unixPermissions=y.unixPermissions,this.dosPermissions=y.dosPermissions,this._data=E,this._dataBinary=y.binary,this.options={compression:y.compression,compressionOptions:y.compressionOptions}}var l=n("./stream/StreamHelper"),h=n("./stream/DataWorker"),u=n("./utf8"),f=n("./compressedObject"),p=n("./stream/GenericWorker");s.prototype={internalStream:function(m){var E=null,y="string";try{if(!m)throw new Error("No output type specified.");var A=(y=m.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),E=this._decompressWorker();var x=!this._dataBinary;x&&!A&&(E=E.pipe(new u.Utf8EncodeWorker)),!x&&A&&(E=E.pipe(new u.Utf8DecodeWorker))}catch(L){(E=new p("error")).error(L)}return new l(E,y,"")},async:function(m,E){return this.internalStream(m).accumulate(E)},nodeStream:function(m,E){return this.internalStream(m||"nodebuffer").toNodejsStream(E)},_compressWorker:function(m,E){if(this._data instanceof f&&this._data.compression.magic===m.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new u.Utf8EncodeWorker)),f.createWorkerFrom(y,m,E)},_decompressWorker:function(){return this._data instanceof f?this._data.getContentWorker():this._data instanceof p?this._data:new h(this._data)}};for(var w=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],b=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},v=0;v<w.length;v++)s.prototype[w[v]]=b;i.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,i,a){(function(s){"use strict";var l,h,u=s.MutationObserver||s.WebKitMutationObserver;if(u){var f=0,p=new u(m),w=s.document.createTextNode("");p.observe(w,{characterData:!0}),l=function(){w.data=f=++f%2}}else if(s.setImmediate||s.MessageChannel===void 0)l="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var E=s.document.createElement("script");E.onreadystatechange=function(){m(),E.onreadystatechange=null,E.parentNode.removeChild(E),E=null},s.document.documentElement.appendChild(E)}:function(){setTimeout(m,0)};else{var b=new s.MessageChannel;b.port1.onmessage=m,l=function(){b.port2.postMessage(0)}}var v=[];function m(){var E,y;h=!0;for(var A=v.length;A;){for(y=v,v=[],E=-1;++E<A;)y[E]();A=v.length}h=!1}i.exports=function(E){v.push(E)!==1||h||l()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,i,a){"use strict";var s=n("immediate");function l(){}var h={},u=["REJECTED"],f=["FULFILLED"],p=["PENDING"];function w(A){if(typeof A!="function")throw new TypeError("resolver must be a function");this.state=p,this.queue=[],this.outcome=void 0,A!==l&&E(this,A)}function b(A,x,L){this.promise=A,typeof x=="function"&&(this.onFulfilled=x,this.callFulfilled=this.otherCallFulfilled),typeof L=="function"&&(this.onRejected=L,this.callRejected=this.otherCallRejected)}function v(A,x,L){s(function(){var T;try{T=x(L)}catch(N){return h.reject(A,N)}T===A?h.reject(A,new TypeError("Cannot resolve promise with itself")):h.resolve(A,T)})}function m(A){var x=A&&A.then;if(A&&(typeof A=="object"||typeof A=="function")&&typeof x=="function")return function(){x.apply(A,arguments)}}function E(A,x){var L=!1;function T(q){L||(L=!0,h.reject(A,q))}function N(q){L||(L=!0,h.resolve(A,q))}var Y=y(function(){x(N,T)});Y.status==="error"&&T(Y.value)}function y(A,x){var L={};try{L.value=A(x),L.status="success"}catch(T){L.status="error",L.value=T}return L}(i.exports=w).prototype.finally=function(A){if(typeof A!="function")return this;var x=this.constructor;return this.then(function(L){return x.resolve(A()).then(function(){return L})},function(L){return x.resolve(A()).then(function(){throw L})})},w.prototype.catch=function(A){return this.then(null,A)},w.prototype.then=function(A,x){if(typeof A!="function"&&this.state===f||typeof x!="function"&&this.state===u)return this;var L=new this.constructor(l);return this.state!==p?v(L,this.state===f?A:x,this.outcome):this.queue.push(new b(L,A,x)),L},b.prototype.callFulfilled=function(A){h.resolve(this.promise,A)},b.prototype.otherCallFulfilled=function(A){v(this.promise,this.onFulfilled,A)},b.prototype.callRejected=function(A){h.reject(this.promise,A)},b.prototype.otherCallRejected=function(A){v(this.promise,this.onRejected,A)},h.resolve=function(A,x){var L=y(m,x);if(L.status==="error")return h.reject(A,L.value);var T=L.value;if(T)E(A,T);else{A.state=f,A.outcome=x;for(var N=-1,Y=A.queue.length;++N<Y;)A.queue[N].callFulfilled(x)}return A},h.reject=function(A,x){A.state=u,A.outcome=x;for(var L=-1,T=A.queue.length;++L<T;)A.queue[L].callRejected(x);return A},w.resolve=function(A){return A instanceof this?A:h.resolve(new this(l),A)},w.reject=function(A){var x=new this(l);return h.reject(x,A)},w.all=function(A){var x=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=A.length,T=!1;if(!L)return this.resolve([]);for(var N=new Array(L),Y=0,q=-1,ie=new this(l);++q<L;)W(A[q],q);return ie;function W(ge,_e){x.resolve(ge).then(function(P){N[_e]=P,++Y!==L||T||(T=!0,h.resolve(ie,N))},function(P){T||(T=!0,h.reject(ie,P))})}},w.race=function(A){var x=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=A.length,T=!1;if(!L)return this.resolve([]);for(var N=-1,Y=new this(l);++N<L;)q=A[N],x.resolve(q).then(function(ie){T||(T=!0,h.resolve(Y,ie))},function(ie){T||(T=!0,h.reject(Y,ie))});var q;return Y}},{immediate:36}],38:[function(n,i,a){"use strict";var s={};(0,n("./lib/utils/common").assign)(s,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),i.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,i,a){"use strict";var s=n("./zlib/deflate"),l=n("./utils/common"),h=n("./utils/strings"),u=n("./zlib/messages"),f=n("./zlib/zstream"),p=Object.prototype.toString,w=0,b=-1,v=0,m=8;function E(A){if(!(this instanceof E))return new E(A);this.options=l.assign({level:b,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:v,to:""},A||{});var x=this.options;x.raw&&0<x.windowBits?x.windowBits=-x.windowBits:x.gzip&&0<x.windowBits&&x.windowBits<16&&(x.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var L=s.deflateInit2(this.strm,x.level,x.method,x.windowBits,x.memLevel,x.strategy);if(L!==w)throw new Error(u[L]);if(x.header&&s.deflateSetHeader(this.strm,x.header),x.dictionary){var T;if(T=typeof x.dictionary=="string"?h.string2buf(x.dictionary):p.call(x.dictionary)==="[object ArrayBuffer]"?new Uint8Array(x.dictionary):x.dictionary,(L=s.deflateSetDictionary(this.strm,T))!==w)throw new Error(u[L]);this._dict_set=!0}}function y(A,x){var L=new E(x);if(L.push(A,!0),L.err)throw L.msg||u[L.err];return L.result}E.prototype.push=function(A,x){var L,T,N=this.strm,Y=this.options.chunkSize;if(this.ended)return!1;T=x===~~x?x:x===!0?4:0,typeof A=="string"?N.input=h.string2buf(A):p.call(A)==="[object ArrayBuffer]"?N.input=new Uint8Array(A):N.input=A,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new l.Buf8(Y),N.next_out=0,N.avail_out=Y),(L=s.deflate(N,T))!==1&&L!==w)return this.onEnd(L),!(this.ended=!0);N.avail_out!==0&&(N.avail_in!==0||T!==4&&T!==2)||(this.options.to==="string"?this.onData(h.buf2binstring(l.shrinkBuf(N.output,N.next_out))):this.onData(l.shrinkBuf(N.output,N.next_out)))}while((0<N.avail_in||N.avail_out===0)&&L!==1);return T===4?(L=s.deflateEnd(this.strm),this.onEnd(L),this.ended=!0,L===w):T!==2||(this.onEnd(w),!(N.avail_out=0))},E.prototype.onData=function(A){this.chunks.push(A)},E.prototype.onEnd=function(A){A===w&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg},a.Deflate=E,a.deflate=y,a.deflateRaw=function(A,x){return(x=x||{}).raw=!0,y(A,x)},a.gzip=function(A,x){return(x=x||{}).gzip=!0,y(A,x)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,i,a){"use strict";var s=n("./zlib/inflate"),l=n("./utils/common"),h=n("./utils/strings"),u=n("./zlib/constants"),f=n("./zlib/messages"),p=n("./zlib/zstream"),w=n("./zlib/gzheader"),b=Object.prototype.toString;function v(E){if(!(this instanceof v))return new v(E);this.options=l.assign({chunkSize:16384,windowBits:0,to:""},E||{});var y=this.options;y.raw&&0<=y.windowBits&&y.windowBits<16&&(y.windowBits=-y.windowBits,y.windowBits===0&&(y.windowBits=-15)),!(0<=y.windowBits&&y.windowBits<16)||E&&E.windowBits||(y.windowBits+=32),15<y.windowBits&&y.windowBits<48&&(15&y.windowBits)==0&&(y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var A=s.inflateInit2(this.strm,y.windowBits);if(A!==u.Z_OK)throw new Error(f[A]);this.header=new w,s.inflateGetHeader(this.strm,this.header)}function m(E,y){var A=new v(y);if(A.push(E,!0),A.err)throw A.msg||f[A.err];return A.result}v.prototype.push=function(E,y){var A,x,L,T,N,Y,q=this.strm,ie=this.options.chunkSize,W=this.options.dictionary,ge=!1;if(this.ended)return!1;x=y===~~y?y:y===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof E=="string"?q.input=h.binstring2buf(E):b.call(E)==="[object ArrayBuffer]"?q.input=new Uint8Array(E):q.input=E,q.next_in=0,q.avail_in=q.input.length;do{if(q.avail_out===0&&(q.output=new l.Buf8(ie),q.next_out=0,q.avail_out=ie),(A=s.inflate(q,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&W&&(Y=typeof W=="string"?h.string2buf(W):b.call(W)==="[object ArrayBuffer]"?new Uint8Array(W):W,A=s.inflateSetDictionary(this.strm,Y)),A===u.Z_BUF_ERROR&&ge===!0&&(A=u.Z_OK,ge=!1),A!==u.Z_STREAM_END&&A!==u.Z_OK)return this.onEnd(A),!(this.ended=!0);q.next_out&&(q.avail_out!==0&&A!==u.Z_STREAM_END&&(q.avail_in!==0||x!==u.Z_FINISH&&x!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(L=h.utf8border(q.output,q.next_out),T=q.next_out-L,N=h.buf2string(q.output,L),q.next_out=T,q.avail_out=ie-T,T&&l.arraySet(q.output,q.output,L,T,0),this.onData(N)):this.onData(l.shrinkBuf(q.output,q.next_out)))),q.avail_in===0&&q.avail_out===0&&(ge=!0)}while((0<q.avail_in||q.avail_out===0)&&A!==u.Z_STREAM_END);return A===u.Z_STREAM_END&&(x=u.Z_FINISH),x===u.Z_FINISH?(A=s.inflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===u.Z_OK):x!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(q.avail_out=0))},v.prototype.onData=function(E){this.chunks.push(E)},v.prototype.onEnd=function(E){E===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},a.Inflate=v,a.inflate=m,a.inflateRaw=function(E,y){return(y=y||{}).raw=!0,m(E,y)},a.ungzip=m},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,i,a){"use strict";var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";a.assign=function(u){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var p=f.shift();if(p){if(typeof p!="object")throw new TypeError(p+"must be non-object");for(var w in p)p.hasOwnProperty(w)&&(u[w]=p[w])}}return u},a.shrinkBuf=function(u,f){return u.length===f?u:u.subarray?u.subarray(0,f):(u.length=f,u)};var l={arraySet:function(u,f,p,w,b){if(f.subarray&&u.subarray)u.set(f.subarray(p,p+w),b);else for(var v=0;v<w;v++)u[b+v]=f[p+v]},flattenChunks:function(u){var f,p,w,b,v,m;for(f=w=0,p=u.length;f<p;f++)w+=u[f].length;for(m=new Uint8Array(w),f=b=0,p=u.length;f<p;f++)v=u[f],m.set(v,b),b+=v.length;return m}},h={arraySet:function(u,f,p,w,b){for(var v=0;v<w;v++)u[b+v]=f[p+v]},flattenChunks:function(u){return[].concat.apply([],u)}};a.setTyped=function(u){u?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,l)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,h))},a.setTyped(s)},{}],42:[function(n,i,a){"use strict";var s=n("./common"),l=!0,h=!0;try{String.fromCharCode.apply(null,[0])}catch{l=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{h=!1}for(var u=new s.Buf8(256),f=0;f<256;f++)u[f]=252<=f?6:248<=f?5:240<=f?4:224<=f?3:192<=f?2:1;function p(w,b){if(b<65537&&(w.subarray&&h||!w.subarray&&l))return String.fromCharCode.apply(null,s.shrinkBuf(w,b));for(var v="",m=0;m<b;m++)v+=String.fromCharCode(w[m]);return v}u[254]=u[254]=1,a.string2buf=function(w){var b,v,m,E,y,A=w.length,x=0;for(E=0;E<A;E++)(64512&(v=w.charCodeAt(E)))==55296&&E+1<A&&(64512&(m=w.charCodeAt(E+1)))==56320&&(v=65536+(v-55296<<10)+(m-56320),E++),x+=v<128?1:v<2048?2:v<65536?3:4;for(b=new s.Buf8(x),E=y=0;y<x;E++)(64512&(v=w.charCodeAt(E)))==55296&&E+1<A&&(64512&(m=w.charCodeAt(E+1)))==56320&&(v=65536+(v-55296<<10)+(m-56320),E++),v<128?b[y++]=v:(v<2048?b[y++]=192|v>>>6:(v<65536?b[y++]=224|v>>>12:(b[y++]=240|v>>>18,b[y++]=128|v>>>12&63),b[y++]=128|v>>>6&63),b[y++]=128|63&v);return b},a.buf2binstring=function(w){return p(w,w.length)},a.binstring2buf=function(w){for(var b=new s.Buf8(w.length),v=0,m=b.length;v<m;v++)b[v]=w.charCodeAt(v);return b},a.buf2string=function(w,b){var v,m,E,y,A=b||w.length,x=new Array(2*A);for(v=m=0;v<A;)if((E=w[v++])<128)x[m++]=E;else if(4<(y=u[E]))x[m++]=65533,v+=y-1;else{for(E&=y===2?31:y===3?15:7;1<y&&v<A;)E=E<<6|63&w[v++],y--;1<y?x[m++]=65533:E<65536?x[m++]=E:(E-=65536,x[m++]=55296|E>>10&1023,x[m++]=56320|1023&E)}return p(x,m)},a.utf8border=function(w,b){var v;for((b=b||w.length)>w.length&&(b=w.length),v=b-1;0<=v&&(192&w[v])==128;)v--;return v<0||v===0?b:v+u[w[v]]>b?v:b}},{"./common":41}],43:[function(n,i,a){"use strict";i.exports=function(s,l,h,u){for(var f=65535&s|0,p=s>>>16&65535|0,w=0;h!==0;){for(h-=w=2e3<h?2e3:h;p=p+(f=f+l[u++]|0)|0,--w;);f%=65521,p%=65521}return f|p<<16|0}},{}],44:[function(n,i,a){"use strict";i.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,i,a){"use strict";var s=(function(){for(var l,h=[],u=0;u<256;u++){l=u;for(var f=0;f<8;f++)l=1&l?3988292384^l>>>1:l>>>1;h[u]=l}return h})();i.exports=function(l,h,u,f){var p=s,w=f+u;l^=-1;for(var b=f;b<w;b++)l=l>>>8^p[255&(l^h[b])];return-1^l}},{}],46:[function(n,i,a){"use strict";var s,l=n("../utils/common"),h=n("./trees"),u=n("./adler32"),f=n("./crc32"),p=n("./messages"),w=0,b=4,v=0,m=-2,E=-1,y=4,A=2,x=8,L=9,T=286,N=30,Y=19,q=2*T+1,ie=15,W=3,ge=258,_e=ge+W+1,P=42,J=113,S=1,ee=2,Ce=3,de=4;function Oe(_,Q){return _.msg=p[Q],Q}function ae(_){return(_<<1)-(4<_?9:0)}function Ie(_){for(var Q=_.length;0<=--Q;)_[Q]=0}function U(_){var Q=_.state,Z=Q.pending;Z>_.avail_out&&(Z=_.avail_out),Z!==0&&(l.arraySet(_.output,Q.pending_buf,Q.pending_out,Z,_.next_out),_.next_out+=Z,Q.pending_out+=Z,_.total_out+=Z,_.avail_out-=Z,Q.pending-=Z,Q.pending===0&&(Q.pending_out=0))}function G(_,Q){h._tr_flush_block(_,0<=_.block_start?_.block_start:-1,_.strstart-_.block_start,Q),_.block_start=_.strstart,U(_.strm)}function Se(_,Q){_.pending_buf[_.pending++]=Q}function me(_,Q){_.pending_buf[_.pending++]=Q>>>8&255,_.pending_buf[_.pending++]=255&Q}function pe(_,Q){var Z,O,C=_.max_chain_length,B=_.strstart,se=_.prev_length,le=_.nice_match,F=_.strstart>_.w_size-_e?_.strstart-(_.w_size-_e):0,ue=_.window,ve=_.w_mask,he=_.prev,Ae=_.strstart+ge,tt=ue[B+se-1],Ue=ue[B+se];_.prev_length>=_.good_match&&(C>>=2),le>_.lookahead&&(le=_.lookahead);do if(ue[(Z=Q)+se]===Ue&&ue[Z+se-1]===tt&&ue[Z]===ue[B]&&ue[++Z]===ue[B+1]){B+=2,Z++;do;while(ue[++B]===ue[++Z]&&ue[++B]===ue[++Z]&&ue[++B]===ue[++Z]&&ue[++B]===ue[++Z]&&ue[++B]===ue[++Z]&&ue[++B]===ue[++Z]&&ue[++B]===ue[++Z]&&ue[++B]===ue[++Z]&&B<Ae);if(O=ge-(Ae-B),B=Ae-ge,se<O){if(_.match_start=Q,le<=(se=O))break;tt=ue[B+se-1],Ue=ue[B+se]}}while((Q=he[Q&ve])>F&&--C!=0);return se<=_.lookahead?se:_.lookahead}function Ke(_){var Q,Z,O,C,B,se,le,F,ue,ve,he=_.w_size;do{if(C=_.window_size-_.lookahead-_.strstart,_.strstart>=he+(he-_e)){for(l.arraySet(_.window,_.window,he,he,0),_.match_start-=he,_.strstart-=he,_.block_start-=he,Q=Z=_.hash_size;O=_.head[--Q],_.head[Q]=he<=O?O-he:0,--Z;);for(Q=Z=he;O=_.prev[--Q],_.prev[Q]=he<=O?O-he:0,--Z;);C+=he}if(_.strm.avail_in===0)break;if(se=_.strm,le=_.window,F=_.strstart+_.lookahead,ue=C,ve=void 0,ve=se.avail_in,ue<ve&&(ve=ue),Z=ve===0?0:(se.avail_in-=ve,l.arraySet(le,se.input,se.next_in,ve,F),se.state.wrap===1?se.adler=u(se.adler,le,ve,F):se.state.wrap===2&&(se.adler=f(se.adler,le,ve,F)),se.next_in+=ve,se.total_in+=ve,ve),_.lookahead+=Z,_.lookahead+_.insert>=W)for(B=_.strstart-_.insert,_.ins_h=_.window[B],_.ins_h=(_.ins_h<<_.hash_shift^_.window[B+1])&_.hash_mask;_.insert&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[B+W-1])&_.hash_mask,_.prev[B&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=B,B++,_.insert--,!(_.lookahead+_.insert<W)););}while(_.lookahead<_e&&_.strm.avail_in!==0)}function mt(_,Q){for(var Z,O;;){if(_.lookahead<_e){if(Ke(_),_.lookahead<_e&&Q===w)return S;if(_.lookahead===0)break}if(Z=0,_.lookahead>=W&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+W-1])&_.hash_mask,Z=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),Z!==0&&_.strstart-Z<=_.w_size-_e&&(_.match_length=pe(_,Z)),_.match_length>=W)if(O=h._tr_tally(_,_.strstart-_.match_start,_.match_length-W),_.lookahead-=_.match_length,_.match_length<=_.max_lazy_match&&_.lookahead>=W){for(_.match_length--;_.strstart++,_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+W-1])&_.hash_mask,Z=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart,--_.match_length!=0;);_.strstart++}else _.strstart+=_.match_length,_.match_length=0,_.ins_h=_.window[_.strstart],_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+1])&_.hash_mask;else O=h._tr_tally(_,0,_.window[_.strstart]),_.lookahead--,_.strstart++;if(O&&(G(_,!1),_.strm.avail_out===0))return S}return _.insert=_.strstart<W-1?_.strstart:W-1,Q===b?(G(_,!0),_.strm.avail_out===0?Ce:de):_.last_lit&&(G(_,!1),_.strm.avail_out===0)?S:ee}function Ve(_,Q){for(var Z,O,C;;){if(_.lookahead<_e){if(Ke(_),_.lookahead<_e&&Q===w)return S;if(_.lookahead===0)break}if(Z=0,_.lookahead>=W&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+W-1])&_.hash_mask,Z=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),_.prev_length=_.match_length,_.prev_match=_.match_start,_.match_length=W-1,Z!==0&&_.prev_length<_.max_lazy_match&&_.strstart-Z<=_.w_size-_e&&(_.match_length=pe(_,Z),_.match_length<=5&&(_.strategy===1||_.match_length===W&&4096<_.strstart-_.match_start)&&(_.match_length=W-1)),_.prev_length>=W&&_.match_length<=_.prev_length){for(C=_.strstart+_.lookahead-W,O=h._tr_tally(_,_.strstart-1-_.prev_match,_.prev_length-W),_.lookahead-=_.prev_length-1,_.prev_length-=2;++_.strstart<=C&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+W-1])&_.hash_mask,Z=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),--_.prev_length!=0;);if(_.match_available=0,_.match_length=W-1,_.strstart++,O&&(G(_,!1),_.strm.avail_out===0))return S}else if(_.match_available){if((O=h._tr_tally(_,0,_.window[_.strstart-1]))&&G(_,!1),_.strstart++,_.lookahead--,_.strm.avail_out===0)return S}else _.match_available=1,_.strstart++,_.lookahead--}return _.match_available&&(O=h._tr_tally(_,0,_.window[_.strstart-1]),_.match_available=0),_.insert=_.strstart<W-1?_.strstart:W-1,Q===b?(G(_,!0),_.strm.avail_out===0?Ce:de):_.last_lit&&(G(_,!1),_.strm.avail_out===0)?S:ee}function We(_,Q,Z,O,C){this.good_length=_,this.max_lazy=Q,this.nice_length=Z,this.max_chain=O,this.func=C}function ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(2*q),this.dyn_dtree=new l.Buf16(2*(2*N+1)),this.bl_tree=new l.Buf16(2*(2*Y+1)),Ie(this.dyn_ltree),Ie(this.dyn_dtree),Ie(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(ie+1),this.heap=new l.Buf16(2*T+1),Ie(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*T+1),Ie(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function vt(_){var Q;return _&&_.state?(_.total_in=_.total_out=0,_.data_type=A,(Q=_.state).pending=0,Q.pending_out=0,Q.wrap<0&&(Q.wrap=-Q.wrap),Q.status=Q.wrap?P:J,_.adler=Q.wrap===2?0:1,Q.last_flush=w,h._tr_init(Q),v):Oe(_,m)}function jt(_){var Q=vt(_);return Q===v&&(function(Z){Z.window_size=2*Z.w_size,Ie(Z.head),Z.max_lazy_match=s[Z.level].max_lazy,Z.good_match=s[Z.level].good_length,Z.nice_match=s[Z.level].nice_length,Z.max_chain_length=s[Z.level].max_chain,Z.strstart=0,Z.block_start=0,Z.lookahead=0,Z.insert=0,Z.match_length=Z.prev_length=W-1,Z.match_available=0,Z.ins_h=0})(_.state),Q}function Wt(_,Q,Z,O,C,B){if(!_)return m;var se=1;if(Q===E&&(Q=6),O<0?(se=0,O=-O):15<O&&(se=2,O-=16),C<1||L<C||Z!==x||O<8||15<O||Q<0||9<Q||B<0||y<B)return Oe(_,m);O===8&&(O=9);var le=new ft;return(_.state=le).strm=_,le.wrap=se,le.gzhead=null,le.w_bits=O,le.w_size=1<<le.w_bits,le.w_mask=le.w_size-1,le.hash_bits=C+7,le.hash_size=1<<le.hash_bits,le.hash_mask=le.hash_size-1,le.hash_shift=~~((le.hash_bits+W-1)/W),le.window=new l.Buf8(2*le.w_size),le.head=new l.Buf16(le.hash_size),le.prev=new l.Buf16(le.w_size),le.lit_bufsize=1<<C+6,le.pending_buf_size=4*le.lit_bufsize,le.pending_buf=new l.Buf8(le.pending_buf_size),le.d_buf=1*le.lit_bufsize,le.l_buf=3*le.lit_bufsize,le.level=Q,le.strategy=B,le.method=Z,jt(_)}s=[new We(0,0,0,0,function(_,Q){var Z=65535;for(Z>_.pending_buf_size-5&&(Z=_.pending_buf_size-5);;){if(_.lookahead<=1){if(Ke(_),_.lookahead===0&&Q===w)return S;if(_.lookahead===0)break}_.strstart+=_.lookahead,_.lookahead=0;var O=_.block_start+Z;if((_.strstart===0||_.strstart>=O)&&(_.lookahead=_.strstart-O,_.strstart=O,G(_,!1),_.strm.avail_out===0)||_.strstart-_.block_start>=_.w_size-_e&&(G(_,!1),_.strm.avail_out===0))return S}return _.insert=0,Q===b?(G(_,!0),_.strm.avail_out===0?Ce:de):(_.strstart>_.block_start&&(G(_,!1),_.strm.avail_out),S)}),new We(4,4,8,4,mt),new We(4,5,16,8,mt),new We(4,6,32,32,mt),new We(4,4,16,16,Ve),new We(8,16,32,32,Ve),new We(8,16,128,128,Ve),new We(8,32,128,256,Ve),new We(32,128,258,1024,Ve),new We(32,258,258,4096,Ve)],a.deflateInit=function(_,Q){return Wt(_,Q,x,15,8,0)},a.deflateInit2=Wt,a.deflateReset=jt,a.deflateResetKeep=vt,a.deflateSetHeader=function(_,Q){return _&&_.state?_.state.wrap!==2?m:(_.state.gzhead=Q,v):m},a.deflate=function(_,Q){var Z,O,C,B;if(!_||!_.state||5<Q||Q<0)return _?Oe(_,m):m;if(O=_.state,!_.output||!_.input&&_.avail_in!==0||O.status===666&&Q!==b)return Oe(_,_.avail_out===0?-5:m);if(O.strm=_,Z=O.last_flush,O.last_flush=Q,O.status===P)if(O.wrap===2)_.adler=0,Se(O,31),Se(O,139),Se(O,8),O.gzhead?(Se(O,(O.gzhead.text?1:0)+(O.gzhead.hcrc?2:0)+(O.gzhead.extra?4:0)+(O.gzhead.name?8:0)+(O.gzhead.comment?16:0)),Se(O,255&O.gzhead.time),Se(O,O.gzhead.time>>8&255),Se(O,O.gzhead.time>>16&255),Se(O,O.gzhead.time>>24&255),Se(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),Se(O,255&O.gzhead.os),O.gzhead.extra&&O.gzhead.extra.length&&(Se(O,255&O.gzhead.extra.length),Se(O,O.gzhead.extra.length>>8&255)),O.gzhead.hcrc&&(_.adler=f(_.adler,O.pending_buf,O.pending,0)),O.gzindex=0,O.status=69):(Se(O,0),Se(O,0),Se(O,0),Se(O,0),Se(O,0),Se(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),Se(O,3),O.status=J);else{var se=x+(O.w_bits-8<<4)<<8;se|=(2<=O.strategy||O.level<2?0:O.level<6?1:O.level===6?2:3)<<6,O.strstart!==0&&(se|=32),se+=31-se%31,O.status=J,me(O,se),O.strstart!==0&&(me(O,_.adler>>>16),me(O,65535&_.adler)),_.adler=1}if(O.status===69)if(O.gzhead.extra){for(C=O.pending;O.gzindex<(65535&O.gzhead.extra.length)&&(O.pending!==O.pending_buf_size||(O.gzhead.hcrc&&O.pending>C&&(_.adler=f(_.adler,O.pending_buf,O.pending-C,C)),U(_),C=O.pending,O.pending!==O.pending_buf_size));)Se(O,255&O.gzhead.extra[O.gzindex]),O.gzindex++;O.gzhead.hcrc&&O.pending>C&&(_.adler=f(_.adler,O.pending_buf,O.pending-C,C)),O.gzindex===O.gzhead.extra.length&&(O.gzindex=0,O.status=73)}else O.status=73;if(O.status===73)if(O.gzhead.name){C=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>C&&(_.adler=f(_.adler,O.pending_buf,O.pending-C,C)),U(_),C=O.pending,O.pending===O.pending_buf_size)){B=1;break}B=O.gzindex<O.gzhead.name.length?255&O.gzhead.name.charCodeAt(O.gzindex++):0,Se(O,B)}while(B!==0);O.gzhead.hcrc&&O.pending>C&&(_.adler=f(_.adler,O.pending_buf,O.pending-C,C)),B===0&&(O.gzindex=0,O.status=91)}else O.status=91;if(O.status===91)if(O.gzhead.comment){C=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>C&&(_.adler=f(_.adler,O.pending_buf,O.pending-C,C)),U(_),C=O.pending,O.pending===O.pending_buf_size)){B=1;break}B=O.gzindex<O.gzhead.comment.length?255&O.gzhead.comment.charCodeAt(O.gzindex++):0,Se(O,B)}while(B!==0);O.gzhead.hcrc&&O.pending>C&&(_.adler=f(_.adler,O.pending_buf,O.pending-C,C)),B===0&&(O.status=103)}else O.status=103;if(O.status===103&&(O.gzhead.hcrc?(O.pending+2>O.pending_buf_size&&U(_),O.pending+2<=O.pending_buf_size&&(Se(O,255&_.adler),Se(O,_.adler>>8&255),_.adler=0,O.status=J)):O.status=J),O.pending!==0){if(U(_),_.avail_out===0)return O.last_flush=-1,v}else if(_.avail_in===0&&ae(Q)<=ae(Z)&&Q!==b)return Oe(_,-5);if(O.status===666&&_.avail_in!==0)return Oe(_,-5);if(_.avail_in!==0||O.lookahead!==0||Q!==w&&O.status!==666){var le=O.strategy===2?(function(F,ue){for(var ve;;){if(F.lookahead===0&&(Ke(F),F.lookahead===0)){if(ue===w)return S;break}if(F.match_length=0,ve=h._tr_tally(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++,ve&&(G(F,!1),F.strm.avail_out===0))return S}return F.insert=0,ue===b?(G(F,!0),F.strm.avail_out===0?Ce:de):F.last_lit&&(G(F,!1),F.strm.avail_out===0)?S:ee})(O,Q):O.strategy===3?(function(F,ue){for(var ve,he,Ae,tt,Ue=F.window;;){if(F.lookahead<=ge){if(Ke(F),F.lookahead<=ge&&ue===w)return S;if(F.lookahead===0)break}if(F.match_length=0,F.lookahead>=W&&0<F.strstart&&(he=Ue[Ae=F.strstart-1])===Ue[++Ae]&&he===Ue[++Ae]&&he===Ue[++Ae]){tt=F.strstart+ge;do;while(he===Ue[++Ae]&&he===Ue[++Ae]&&he===Ue[++Ae]&&he===Ue[++Ae]&&he===Ue[++Ae]&&he===Ue[++Ae]&&he===Ue[++Ae]&&he===Ue[++Ae]&&Ae<tt);F.match_length=ge-(tt-Ae),F.match_length>F.lookahead&&(F.match_length=F.lookahead)}if(F.match_length>=W?(ve=h._tr_tally(F,1,F.match_length-W),F.lookahead-=F.match_length,F.strstart+=F.match_length,F.match_length=0):(ve=h._tr_tally(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++),ve&&(G(F,!1),F.strm.avail_out===0))return S}return F.insert=0,ue===b?(G(F,!0),F.strm.avail_out===0?Ce:de):F.last_lit&&(G(F,!1),F.strm.avail_out===0)?S:ee})(O,Q):s[O.level].func(O,Q);if(le!==Ce&&le!==de||(O.status=666),le===S||le===Ce)return _.avail_out===0&&(O.last_flush=-1),v;if(le===ee&&(Q===1?h._tr_align(O):Q!==5&&(h._tr_stored_block(O,0,0,!1),Q===3&&(Ie(O.head),O.lookahead===0&&(O.strstart=0,O.block_start=0,O.insert=0))),U(_),_.avail_out===0))return O.last_flush=-1,v}return Q!==b?v:O.wrap<=0?1:(O.wrap===2?(Se(O,255&_.adler),Se(O,_.adler>>8&255),Se(O,_.adler>>16&255),Se(O,_.adler>>24&255),Se(O,255&_.total_in),Se(O,_.total_in>>8&255),Se(O,_.total_in>>16&255),Se(O,_.total_in>>24&255)):(me(O,_.adler>>>16),me(O,65535&_.adler)),U(_),0<O.wrap&&(O.wrap=-O.wrap),O.pending!==0?v:1)},a.deflateEnd=function(_){var Q;return _&&_.state?(Q=_.state.status)!==P&&Q!==69&&Q!==73&&Q!==91&&Q!==103&&Q!==J&&Q!==666?Oe(_,m):(_.state=null,Q===J?Oe(_,-3):v):m},a.deflateSetDictionary=function(_,Q){var Z,O,C,B,se,le,F,ue,ve=Q.length;if(!_||!_.state||(B=(Z=_.state).wrap)===2||B===1&&Z.status!==P||Z.lookahead)return m;for(B===1&&(_.adler=u(_.adler,Q,ve,0)),Z.wrap=0,ve>=Z.w_size&&(B===0&&(Ie(Z.head),Z.strstart=0,Z.block_start=0,Z.insert=0),ue=new l.Buf8(Z.w_size),l.arraySet(ue,Q,ve-Z.w_size,Z.w_size,0),Q=ue,ve=Z.w_size),se=_.avail_in,le=_.next_in,F=_.input,_.avail_in=ve,_.next_in=0,_.input=Q,Ke(Z);Z.lookahead>=W;){for(O=Z.strstart,C=Z.lookahead-(W-1);Z.ins_h=(Z.ins_h<<Z.hash_shift^Z.window[O+W-1])&Z.hash_mask,Z.prev[O&Z.w_mask]=Z.head[Z.ins_h],Z.head[Z.ins_h]=O,O++,--C;);Z.strstart=O,Z.lookahead=W-1,Ke(Z)}return Z.strstart+=Z.lookahead,Z.block_start=Z.strstart,Z.insert=Z.lookahead,Z.lookahead=0,Z.match_length=Z.prev_length=W-1,Z.match_available=0,_.next_in=le,_.input=F,_.avail_in=se,Z.wrap=B,v},a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,i,a){"use strict";i.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,i,a){"use strict";i.exports=function(s,l){var h=s.state,u=s.next_in,f,p,w,b,v,m,E,y,A,x,L,T,N,Y,q,ie,W,ge,_e,P,J,S=s.input,ee;f=u+(s.avail_in-5),p=s.next_out,ee=s.output,w=p-(l-s.avail_out),b=p+(s.avail_out-257),v=h.dmax,m=h.wsize,E=h.whave,y=h.wnext,A=h.window,x=h.hold,L=h.bits,T=h.lencode,N=h.distcode,Y=(1<<h.lenbits)-1,q=(1<<h.distbits)-1;e:do{L<15&&(x+=S[u++]<<L,L+=8,x+=S[u++]<<L,L+=8),ie=T[x&Y];t:for(;;){if(x>>>=W=ie>>>24,L-=W,(W=ie>>>16&255)===0)ee[p++]=65535&ie;else{if(!(16&W)){if((64&W)==0){ie=T[(65535&ie)+(x&(1<<W)-1)];continue t}if(32&W){h.mode=12;break e}s.msg="invalid literal/length code",h.mode=30;break e}ge=65535&ie,(W&=15)&&(L<W&&(x+=S[u++]<<L,L+=8),ge+=x&(1<<W)-1,x>>>=W,L-=W),L<15&&(x+=S[u++]<<L,L+=8,x+=S[u++]<<L,L+=8),ie=N[x&q];r:for(;;){if(x>>>=W=ie>>>24,L-=W,!(16&(W=ie>>>16&255))){if((64&W)==0){ie=N[(65535&ie)+(x&(1<<W)-1)];continue r}s.msg="invalid distance code",h.mode=30;break e}if(_e=65535&ie,L<(W&=15)&&(x+=S[u++]<<L,(L+=8)<W&&(x+=S[u++]<<L,L+=8)),v<(_e+=x&(1<<W)-1)){s.msg="invalid distance too far back",h.mode=30;break e}if(x>>>=W,L-=W,(W=p-w)<_e){if(E<(W=_e-W)&&h.sane){s.msg="invalid distance too far back",h.mode=30;break e}if(J=A,(P=0)===y){if(P+=m-W,W<ge){for(ge-=W;ee[p++]=A[P++],--W;);P=p-_e,J=ee}}else if(y<W){if(P+=m+y-W,(W-=y)<ge){for(ge-=W;ee[p++]=A[P++],--W;);if(P=0,y<ge){for(ge-=W=y;ee[p++]=A[P++],--W;);P=p-_e,J=ee}}}else if(P+=y-W,W<ge){for(ge-=W;ee[p++]=A[P++],--W;);P=p-_e,J=ee}for(;2<ge;)ee[p++]=J[P++],ee[p++]=J[P++],ee[p++]=J[P++],ge-=3;ge&&(ee[p++]=J[P++],1<ge&&(ee[p++]=J[P++]))}else{for(P=p-_e;ee[p++]=ee[P++],ee[p++]=ee[P++],ee[p++]=ee[P++],2<(ge-=3););ge&&(ee[p++]=ee[P++],1<ge&&(ee[p++]=ee[P++]))}break}}break}}while(u<f&&p<b);u-=ge=L>>3,x&=(1<<(L-=ge<<3))-1,s.next_in=u,s.next_out=p,s.avail_in=u<f?f-u+5:5-(u-f),s.avail_out=p<b?b-p+257:257-(p-b),h.hold=x,h.bits=L}},{}],49:[function(n,i,a){"use strict";var s=n("../utils/common"),l=n("./adler32"),h=n("./crc32"),u=n("./inffast"),f=n("./inftrees"),p=1,w=2,b=0,v=-2,m=1,E=852,y=592;function A(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<24)}function x(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function L(P){var J;return P&&P.state?(J=P.state,P.total_in=P.total_out=J.total=0,P.msg="",J.wrap&&(P.adler=1&J.wrap),J.mode=m,J.last=0,J.havedict=0,J.dmax=32768,J.head=null,J.hold=0,J.bits=0,J.lencode=J.lendyn=new s.Buf32(E),J.distcode=J.distdyn=new s.Buf32(y),J.sane=1,J.back=-1,b):v}function T(P){var J;return P&&P.state?((J=P.state).wsize=0,J.whave=0,J.wnext=0,L(P)):v}function N(P,J){var S,ee;return P&&P.state?(ee=P.state,J<0?(S=0,J=-J):(S=1+(J>>4),J<48&&(J&=15)),J&&(J<8||15<J)?v:(ee.window!==null&&ee.wbits!==J&&(ee.window=null),ee.wrap=S,ee.wbits=J,T(P))):v}function Y(P,J){var S,ee;return P?(ee=new x,(P.state=ee).window=null,(S=N(P,J))!==b&&(P.state=null),S):v}var q,ie,W=!0;function ge(P){if(W){var J;for(q=new s.Buf32(512),ie=new s.Buf32(32),J=0;J<144;)P.lens[J++]=8;for(;J<256;)P.lens[J++]=9;for(;J<280;)P.lens[J++]=7;for(;J<288;)P.lens[J++]=8;for(f(p,P.lens,0,288,q,0,P.work,{bits:9}),J=0;J<32;)P.lens[J++]=5;f(w,P.lens,0,32,ie,0,P.work,{bits:5}),W=!1}P.lencode=q,P.lenbits=9,P.distcode=ie,P.distbits=5}function _e(P,J,S,ee){var Ce,de=P.state;return de.window===null&&(de.wsize=1<<de.wbits,de.wnext=0,de.whave=0,de.window=new s.Buf8(de.wsize)),ee>=de.wsize?(s.arraySet(de.window,J,S-de.wsize,de.wsize,0),de.wnext=0,de.whave=de.wsize):(ee<(Ce=de.wsize-de.wnext)&&(Ce=ee),s.arraySet(de.window,J,S-ee,Ce,de.wnext),(ee-=Ce)?(s.arraySet(de.window,J,S-ee,ee,0),de.wnext=ee,de.whave=de.wsize):(de.wnext+=Ce,de.wnext===de.wsize&&(de.wnext=0),de.whave<de.wsize&&(de.whave+=Ce))),0}a.inflateReset=T,a.inflateReset2=N,a.inflateResetKeep=L,a.inflateInit=function(P){return Y(P,15)},a.inflateInit2=Y,a.inflate=function(P,J){var S,ee,Ce,de,Oe,ae,Ie,U,G,Se,me,pe,Ke,mt,Ve,We,ft,vt,jt,Wt,_,Q,Z,O,C=0,B=new s.Buf8(4),se=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return v;(S=P.state).mode===12&&(S.mode=13),Oe=P.next_out,Ce=P.output,Ie=P.avail_out,de=P.next_in,ee=P.input,ae=P.avail_in,U=S.hold,G=S.bits,Se=ae,me=Ie,Q=b;e:for(;;)switch(S.mode){case m:if(S.wrap===0){S.mode=13;break}for(;G<16;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}if(2&S.wrap&&U===35615){B[S.check=0]=255&U,B[1]=U>>>8&255,S.check=h(S.check,B,2,0),G=U=0,S.mode=2;break}if(S.flags=0,S.head&&(S.head.done=!1),!(1&S.wrap)||(((255&U)<<8)+(U>>8))%31){P.msg="incorrect header check",S.mode=30;break}if((15&U)!=8){P.msg="unknown compression method",S.mode=30;break}if(G-=4,_=8+(15&(U>>>=4)),S.wbits===0)S.wbits=_;else if(_>S.wbits){P.msg="invalid window size",S.mode=30;break}S.dmax=1<<_,P.adler=S.check=1,S.mode=512&U?10:12,G=U=0;break;case 2:for(;G<16;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}if(S.flags=U,(255&S.flags)!=8){P.msg="unknown compression method",S.mode=30;break}if(57344&S.flags){P.msg="unknown header flags set",S.mode=30;break}S.head&&(S.head.text=U>>8&1),512&S.flags&&(B[0]=255&U,B[1]=U>>>8&255,S.check=h(S.check,B,2,0)),G=U=0,S.mode=3;case 3:for(;G<32;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}S.head&&(S.head.time=U),512&S.flags&&(B[0]=255&U,B[1]=U>>>8&255,B[2]=U>>>16&255,B[3]=U>>>24&255,S.check=h(S.check,B,4,0)),G=U=0,S.mode=4;case 4:for(;G<16;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}S.head&&(S.head.xflags=255&U,S.head.os=U>>8),512&S.flags&&(B[0]=255&U,B[1]=U>>>8&255,S.check=h(S.check,B,2,0)),G=U=0,S.mode=5;case 5:if(1024&S.flags){for(;G<16;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}S.length=U,S.head&&(S.head.extra_len=U),512&S.flags&&(B[0]=255&U,B[1]=U>>>8&255,S.check=h(S.check,B,2,0)),G=U=0}else S.head&&(S.head.extra=null);S.mode=6;case 6:if(1024&S.flags&&(ae<(pe=S.length)&&(pe=ae),pe&&(S.head&&(_=S.head.extra_len-S.length,S.head.extra||(S.head.extra=new Array(S.head.extra_len)),s.arraySet(S.head.extra,ee,de,pe,_)),512&S.flags&&(S.check=h(S.check,ee,pe,de)),ae-=pe,de+=pe,S.length-=pe),S.length))break e;S.length=0,S.mode=7;case 7:if(2048&S.flags){if(ae===0)break e;for(pe=0;_=ee[de+pe++],S.head&&_&&S.length<65536&&(S.head.name+=String.fromCharCode(_)),_&&pe<ae;);if(512&S.flags&&(S.check=h(S.check,ee,pe,de)),ae-=pe,de+=pe,_)break e}else S.head&&(S.head.name=null);S.length=0,S.mode=8;case 8:if(4096&S.flags){if(ae===0)break e;for(pe=0;_=ee[de+pe++],S.head&&_&&S.length<65536&&(S.head.comment+=String.fromCharCode(_)),_&&pe<ae;);if(512&S.flags&&(S.check=h(S.check,ee,pe,de)),ae-=pe,de+=pe,_)break e}else S.head&&(S.head.comment=null);S.mode=9;case 9:if(512&S.flags){for(;G<16;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}if(U!==(65535&S.check)){P.msg="header crc mismatch",S.mode=30;break}G=U=0}S.head&&(S.head.hcrc=S.flags>>9&1,S.head.done=!0),P.adler=S.check=0,S.mode=12;break;case 10:for(;G<32;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}P.adler=S.check=A(U),G=U=0,S.mode=11;case 11:if(S.havedict===0)return P.next_out=Oe,P.avail_out=Ie,P.next_in=de,P.avail_in=ae,S.hold=U,S.bits=G,2;P.adler=S.check=1,S.mode=12;case 12:if(J===5||J===6)break e;case 13:if(S.last){U>>>=7&G,G-=7&G,S.mode=27;break}for(;G<3;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}switch(S.last=1&U,G-=1,3&(U>>>=1)){case 0:S.mode=14;break;case 1:if(ge(S),S.mode=20,J!==6)break;U>>>=2,G-=2;break e;case 2:S.mode=17;break;case 3:P.msg="invalid block type",S.mode=30}U>>>=2,G-=2;break;case 14:for(U>>>=7&G,G-=7&G;G<32;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}if((65535&U)!=(U>>>16^65535)){P.msg="invalid stored block lengths",S.mode=30;break}if(S.length=65535&U,G=U=0,S.mode=15,J===6)break e;case 15:S.mode=16;case 16:if(pe=S.length){if(ae<pe&&(pe=ae),Ie<pe&&(pe=Ie),pe===0)break e;s.arraySet(Ce,ee,de,pe,Oe),ae-=pe,de+=pe,Ie-=pe,Oe+=pe,S.length-=pe;break}S.mode=12;break;case 17:for(;G<14;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}if(S.nlen=257+(31&U),U>>>=5,G-=5,S.ndist=1+(31&U),U>>>=5,G-=5,S.ncode=4+(15&U),U>>>=4,G-=4,286<S.nlen||30<S.ndist){P.msg="too many length or distance symbols",S.mode=30;break}S.have=0,S.mode=18;case 18:for(;S.have<S.ncode;){for(;G<3;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}S.lens[se[S.have++]]=7&U,U>>>=3,G-=3}for(;S.have<19;)S.lens[se[S.have++]]=0;if(S.lencode=S.lendyn,S.lenbits=7,Z={bits:S.lenbits},Q=f(0,S.lens,0,19,S.lencode,0,S.work,Z),S.lenbits=Z.bits,Q){P.msg="invalid code lengths set",S.mode=30;break}S.have=0,S.mode=19;case 19:for(;S.have<S.nlen+S.ndist;){for(;We=(C=S.lencode[U&(1<<S.lenbits)-1])>>>16&255,ft=65535&C,!((Ve=C>>>24)<=G);){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}if(ft<16)U>>>=Ve,G-=Ve,S.lens[S.have++]=ft;else{if(ft===16){for(O=Ve+2;G<O;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}if(U>>>=Ve,G-=Ve,S.have===0){P.msg="invalid bit length repeat",S.mode=30;break}_=S.lens[S.have-1],pe=3+(3&U),U>>>=2,G-=2}else if(ft===17){for(O=Ve+3;G<O;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}G-=Ve,_=0,pe=3+(7&(U>>>=Ve)),U>>>=3,G-=3}else{for(O=Ve+7;G<O;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}G-=Ve,_=0,pe=11+(127&(U>>>=Ve)),U>>>=7,G-=7}if(S.have+pe>S.nlen+S.ndist){P.msg="invalid bit length repeat",S.mode=30;break}for(;pe--;)S.lens[S.have++]=_}}if(S.mode===30)break;if(S.lens[256]===0){P.msg="invalid code -- missing end-of-block",S.mode=30;break}if(S.lenbits=9,Z={bits:S.lenbits},Q=f(p,S.lens,0,S.nlen,S.lencode,0,S.work,Z),S.lenbits=Z.bits,Q){P.msg="invalid literal/lengths set",S.mode=30;break}if(S.distbits=6,S.distcode=S.distdyn,Z={bits:S.distbits},Q=f(w,S.lens,S.nlen,S.ndist,S.distcode,0,S.work,Z),S.distbits=Z.bits,Q){P.msg="invalid distances set",S.mode=30;break}if(S.mode=20,J===6)break e;case 20:S.mode=21;case 21:if(6<=ae&&258<=Ie){P.next_out=Oe,P.avail_out=Ie,P.next_in=de,P.avail_in=ae,S.hold=U,S.bits=G,u(P,me),Oe=P.next_out,Ce=P.output,Ie=P.avail_out,de=P.next_in,ee=P.input,ae=P.avail_in,U=S.hold,G=S.bits,S.mode===12&&(S.back=-1);break}for(S.back=0;We=(C=S.lencode[U&(1<<S.lenbits)-1])>>>16&255,ft=65535&C,!((Ve=C>>>24)<=G);){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}if(We&&(240&We)==0){for(vt=Ve,jt=We,Wt=ft;We=(C=S.lencode[Wt+((U&(1<<vt+jt)-1)>>vt)])>>>16&255,ft=65535&C,!(vt+(Ve=C>>>24)<=G);){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}U>>>=vt,G-=vt,S.back+=vt}if(U>>>=Ve,G-=Ve,S.back+=Ve,S.length=ft,We===0){S.mode=26;break}if(32&We){S.back=-1,S.mode=12;break}if(64&We){P.msg="invalid literal/length code",S.mode=30;break}S.extra=15&We,S.mode=22;case 22:if(S.extra){for(O=S.extra;G<O;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}S.length+=U&(1<<S.extra)-1,U>>>=S.extra,G-=S.extra,S.back+=S.extra}S.was=S.length,S.mode=23;case 23:for(;We=(C=S.distcode[U&(1<<S.distbits)-1])>>>16&255,ft=65535&C,!((Ve=C>>>24)<=G);){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}if((240&We)==0){for(vt=Ve,jt=We,Wt=ft;We=(C=S.distcode[Wt+((U&(1<<vt+jt)-1)>>vt)])>>>16&255,ft=65535&C,!(vt+(Ve=C>>>24)<=G);){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}U>>>=vt,G-=vt,S.back+=vt}if(U>>>=Ve,G-=Ve,S.back+=Ve,64&We){P.msg="invalid distance code",S.mode=30;break}S.offset=ft,S.extra=15&We,S.mode=24;case 24:if(S.extra){for(O=S.extra;G<O;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}S.offset+=U&(1<<S.extra)-1,U>>>=S.extra,G-=S.extra,S.back+=S.extra}if(S.offset>S.dmax){P.msg="invalid distance too far back",S.mode=30;break}S.mode=25;case 25:if(Ie===0)break e;if(pe=me-Ie,S.offset>pe){if((pe=S.offset-pe)>S.whave&&S.sane){P.msg="invalid distance too far back",S.mode=30;break}Ke=pe>S.wnext?(pe-=S.wnext,S.wsize-pe):S.wnext-pe,pe>S.length&&(pe=S.length),mt=S.window}else mt=Ce,Ke=Oe-S.offset,pe=S.length;for(Ie<pe&&(pe=Ie),Ie-=pe,S.length-=pe;Ce[Oe++]=mt[Ke++],--pe;);S.length===0&&(S.mode=21);break;case 26:if(Ie===0)break e;Ce[Oe++]=S.length,Ie--,S.mode=21;break;case 27:if(S.wrap){for(;G<32;){if(ae===0)break e;ae--,U|=ee[de++]<<G,G+=8}if(me-=Ie,P.total_out+=me,S.total+=me,me&&(P.adler=S.check=S.flags?h(S.check,Ce,me,Oe-me):l(S.check,Ce,me,Oe-me)),me=Ie,(S.flags?U:A(U))!==S.check){P.msg="incorrect data check",S.mode=30;break}G=U=0}S.mode=28;case 28:if(S.wrap&&S.flags){for(;G<32;){if(ae===0)break e;ae--,U+=ee[de++]<<G,G+=8}if(U!==(4294967295&S.total)){P.msg="incorrect length check",S.mode=30;break}G=U=0}S.mode=29;case 29:Q=1;break e;case 30:Q=-3;break e;case 31:return-4;default:return v}return P.next_out=Oe,P.avail_out=Ie,P.next_in=de,P.avail_in=ae,S.hold=U,S.bits=G,(S.wsize||me!==P.avail_out&&S.mode<30&&(S.mode<27||J!==4))&&_e(P,P.output,P.next_out,me-P.avail_out)?(S.mode=31,-4):(Se-=P.avail_in,me-=P.avail_out,P.total_in+=Se,P.total_out+=me,S.total+=me,S.wrap&&me&&(P.adler=S.check=S.flags?h(S.check,Ce,me,P.next_out-me):l(S.check,Ce,me,P.next_out-me)),P.data_type=S.bits+(S.last?64:0)+(S.mode===12?128:0)+(S.mode===20||S.mode===15?256:0),(Se==0&&me===0||J===4)&&Q===b&&(Q=-5),Q)},a.inflateEnd=function(P){if(!P||!P.state)return v;var J=P.state;return J.window&&(J.window=null),P.state=null,b},a.inflateGetHeader=function(P,J){var S;return P&&P.state?(2&(S=P.state).wrap)==0?v:((S.head=J).done=!1,b):v},a.inflateSetDictionary=function(P,J){var S,ee=J.length;return P&&P.state?(S=P.state).wrap!==0&&S.mode!==11?v:S.mode===11&&l(1,J,ee,0)!==S.check?-3:_e(P,J,ee,ee)?(S.mode=31,-4):(S.havedict=1,b):v},a.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,i,a){"use strict";var s=n("../utils/common"),l=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],h=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],f=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];i.exports=function(p,w,b,v,m,E,y,A){var x,L,T,N,Y,q,ie,W,ge,_e=A.bits,P=0,J=0,S=0,ee=0,Ce=0,de=0,Oe=0,ae=0,Ie=0,U=0,G=null,Se=0,me=new s.Buf16(16),pe=new s.Buf16(16),Ke=null,mt=0;for(P=0;P<=15;P++)me[P]=0;for(J=0;J<v;J++)me[w[b+J]]++;for(Ce=_e,ee=15;1<=ee&&me[ee]===0;ee--);if(ee<Ce&&(Ce=ee),ee===0)return m[E++]=20971520,m[E++]=20971520,A.bits=1,0;for(S=1;S<ee&&me[S]===0;S++);for(Ce<S&&(Ce=S),P=ae=1;P<=15;P++)if(ae<<=1,(ae-=me[P])<0)return-1;if(0<ae&&(p===0||ee!==1))return-1;for(pe[1]=0,P=1;P<15;P++)pe[P+1]=pe[P]+me[P];for(J=0;J<v;J++)w[b+J]!==0&&(y[pe[w[b+J]]++]=J);if(q=p===0?(G=Ke=y,19):p===1?(G=l,Se-=257,Ke=h,mt-=257,256):(G=u,Ke=f,-1),P=S,Y=E,Oe=J=U=0,T=-1,N=(Ie=1<<(de=Ce))-1,p===1&&852<Ie||p===2&&592<Ie)return 1;for(;;){for(ie=P-Oe,ge=y[J]<q?(W=0,y[J]):y[J]>q?(W=Ke[mt+y[J]],G[Se+y[J]]):(W=96,0),x=1<<P-Oe,S=L=1<<de;m[Y+(U>>Oe)+(L-=x)]=ie<<24|W<<16|ge|0,L!==0;);for(x=1<<P-1;U&x;)x>>=1;if(x!==0?(U&=x-1,U+=x):U=0,J++,--me[P]==0){if(P===ee)break;P=w[b+y[J]]}if(Ce<P&&(U&N)!==T){for(Oe===0&&(Oe=Ce),Y+=S,ae=1<<(de=P-Oe);de+Oe<ee&&!((ae-=me[de+Oe])<=0);)de++,ae<<=1;if(Ie+=1<<de,p===1&&852<Ie||p===2&&592<Ie)return 1;m[T=U&N]=Ce<<24|de<<16|Y-E|0}}return U!==0&&(m[Y+U]=P-Oe<<24|4194304),A.bits=Ce,0}},{"../utils/common":41}],51:[function(n,i,a){"use strict";i.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,i,a){"use strict";var s=n("../utils/common"),l=0,h=1;function u(C){for(var B=C.length;0<=--B;)C[B]=0}var f=0,p=29,w=256,b=w+1+p,v=30,m=19,E=2*b+1,y=15,A=16,x=7,L=256,T=16,N=17,Y=18,q=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],ie=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ge=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_e=new Array(2*(b+2));u(_e);var P=new Array(2*v);u(P);var J=new Array(512);u(J);var S=new Array(256);u(S);var ee=new Array(p);u(ee);var Ce,de,Oe,ae=new Array(v);function Ie(C,B,se,le,F){this.static_tree=C,this.extra_bits=B,this.extra_base=se,this.elems=le,this.max_length=F,this.has_stree=C&&C.length}function U(C,B){this.dyn_tree=C,this.max_code=0,this.stat_desc=B}function G(C){return C<256?J[C]:J[256+(C>>>7)]}function Se(C,B){C.pending_buf[C.pending++]=255&B,C.pending_buf[C.pending++]=B>>>8&255}function me(C,B,se){C.bi_valid>A-se?(C.bi_buf|=B<<C.bi_valid&65535,Se(C,C.bi_buf),C.bi_buf=B>>A-C.bi_valid,C.bi_valid+=se-A):(C.bi_buf|=B<<C.bi_valid&65535,C.bi_valid+=se)}function pe(C,B,se){me(C,se[2*B],se[2*B+1])}function Ke(C,B){for(var se=0;se|=1&C,C>>>=1,se<<=1,0<--B;);return se>>>1}function mt(C,B,se){var le,F,ue=new Array(y+1),ve=0;for(le=1;le<=y;le++)ue[le]=ve=ve+se[le-1]<<1;for(F=0;F<=B;F++){var he=C[2*F+1];he!==0&&(C[2*F]=Ke(ue[he]++,he))}}function Ve(C){var B;for(B=0;B<b;B++)C.dyn_ltree[2*B]=0;for(B=0;B<v;B++)C.dyn_dtree[2*B]=0;for(B=0;B<m;B++)C.bl_tree[2*B]=0;C.dyn_ltree[2*L]=1,C.opt_len=C.static_len=0,C.last_lit=C.matches=0}function We(C){8<C.bi_valid?Se(C,C.bi_buf):0<C.bi_valid&&(C.pending_buf[C.pending++]=C.bi_buf),C.bi_buf=0,C.bi_valid=0}function ft(C,B,se,le){var F=2*B,ue=2*se;return C[F]<C[ue]||C[F]===C[ue]&&le[B]<=le[se]}function vt(C,B,se){for(var le=C.heap[se],F=se<<1;F<=C.heap_len&&(F<C.heap_len&&ft(B,C.heap[F+1],C.heap[F],C.depth)&&F++,!ft(B,le,C.heap[F],C.depth));)C.heap[se]=C.heap[F],se=F,F<<=1;C.heap[se]=le}function jt(C,B,se){var le,F,ue,ve,he=0;if(C.last_lit!==0)for(;le=C.pending_buf[C.d_buf+2*he]<<8|C.pending_buf[C.d_buf+2*he+1],F=C.pending_buf[C.l_buf+he],he++,le===0?pe(C,F,B):(pe(C,(ue=S[F])+w+1,B),(ve=q[ue])!==0&&me(C,F-=ee[ue],ve),pe(C,ue=G(--le),se),(ve=ie[ue])!==0&&me(C,le-=ae[ue],ve)),he<C.last_lit;);pe(C,L,B)}function Wt(C,B){var se,le,F,ue=B.dyn_tree,ve=B.stat_desc.static_tree,he=B.stat_desc.has_stree,Ae=B.stat_desc.elems,tt=-1;for(C.heap_len=0,C.heap_max=E,se=0;se<Ae;se++)ue[2*se]!==0?(C.heap[++C.heap_len]=tt=se,C.depth[se]=0):ue[2*se+1]=0;for(;C.heap_len<2;)ue[2*(F=C.heap[++C.heap_len]=tt<2?++tt:0)]=1,C.depth[F]=0,C.opt_len--,he&&(C.static_len-=ve[2*F+1]);for(B.max_code=tt,se=C.heap_len>>1;1<=se;se--)vt(C,ue,se);for(F=Ae;se=C.heap[1],C.heap[1]=C.heap[C.heap_len--],vt(C,ue,1),le=C.heap[1],C.heap[--C.heap_max]=se,C.heap[--C.heap_max]=le,ue[2*F]=ue[2*se]+ue[2*le],C.depth[F]=(C.depth[se]>=C.depth[le]?C.depth[se]:C.depth[le])+1,ue[2*se+1]=ue[2*le+1]=F,C.heap[1]=F++,vt(C,ue,1),2<=C.heap_len;);C.heap[--C.heap_max]=C.heap[1],(function(Ue,Lt){var nn,tr,on,lt,xn,Qn,gr=Lt.dyn_tree,Lo=Lt.max_code,Ai=Lt.stat_desc.static_tree,Fl=Lt.stat_desc.has_stree,Gl=Lt.stat_desc.extra_bits,za=Lt.stat_desc.extra_base,In=Lt.stat_desc.max_length,eo=0;for(lt=0;lt<=y;lt++)Ue.bl_count[lt]=0;for(gr[2*Ue.heap[Ue.heap_max]+1]=0,nn=Ue.heap_max+1;nn<E;nn++)In<(lt=gr[2*gr[2*(tr=Ue.heap[nn])+1]+1]+1)&&(lt=In,eo++),gr[2*tr+1]=lt,Lo<tr||(Ue.bl_count[lt]++,xn=0,za<=tr&&(xn=Gl[tr-za]),Qn=gr[2*tr],Ue.opt_len+=Qn*(lt+xn),Fl&&(Ue.static_len+=Qn*(Ai[2*tr+1]+xn)));if(eo!==0){do{for(lt=In-1;Ue.bl_count[lt]===0;)lt--;Ue.bl_count[lt]--,Ue.bl_count[lt+1]+=2,Ue.bl_count[In]--,eo-=2}while(0<eo);for(lt=In;lt!==0;lt--)for(tr=Ue.bl_count[lt];tr!==0;)Lo<(on=Ue.heap[--nn])||(gr[2*on+1]!==lt&&(Ue.opt_len+=(lt-gr[2*on+1])*gr[2*on],gr[2*on+1]=lt),tr--)}})(C,B),mt(ue,tt,C.bl_count)}function _(C,B,se){var le,F,ue=-1,ve=B[1],he=0,Ae=7,tt=4;for(ve===0&&(Ae=138,tt=3),B[2*(se+1)+1]=65535,le=0;le<=se;le++)F=ve,ve=B[2*(le+1)+1],++he<Ae&&F===ve||(he<tt?C.bl_tree[2*F]+=he:F!==0?(F!==ue&&C.bl_tree[2*F]++,C.bl_tree[2*T]++):he<=10?C.bl_tree[2*N]++:C.bl_tree[2*Y]++,ue=F,tt=(he=0)===ve?(Ae=138,3):F===ve?(Ae=6,3):(Ae=7,4))}function Q(C,B,se){var le,F,ue=-1,ve=B[1],he=0,Ae=7,tt=4;for(ve===0&&(Ae=138,tt=3),le=0;le<=se;le++)if(F=ve,ve=B[2*(le+1)+1],!(++he<Ae&&F===ve)){if(he<tt)for(;pe(C,F,C.bl_tree),--he!=0;);else F!==0?(F!==ue&&(pe(C,F,C.bl_tree),he--),pe(C,T,C.bl_tree),me(C,he-3,2)):he<=10?(pe(C,N,C.bl_tree),me(C,he-3,3)):(pe(C,Y,C.bl_tree),me(C,he-11,7));ue=F,tt=(he=0)===ve?(Ae=138,3):F===ve?(Ae=6,3):(Ae=7,4)}}u(ae);var Z=!1;function O(C,B,se,le){me(C,(f<<1)+(le?1:0),3),(function(F,ue,ve,he){We(F),he&&(Se(F,ve),Se(F,~ve)),s.arraySet(F.pending_buf,F.window,ue,ve,F.pending),F.pending+=ve})(C,B,se,!0)}a._tr_init=function(C){Z||((function(){var B,se,le,F,ue,ve=new Array(y+1);for(F=le=0;F<p-1;F++)for(ee[F]=le,B=0;B<1<<q[F];B++)S[le++]=F;for(S[le-1]=F,F=ue=0;F<16;F++)for(ae[F]=ue,B=0;B<1<<ie[F];B++)J[ue++]=F;for(ue>>=7;F<v;F++)for(ae[F]=ue<<7,B=0;B<1<<ie[F]-7;B++)J[256+ue++]=F;for(se=0;se<=y;se++)ve[se]=0;for(B=0;B<=143;)_e[2*B+1]=8,B++,ve[8]++;for(;B<=255;)_e[2*B+1]=9,B++,ve[9]++;for(;B<=279;)_e[2*B+1]=7,B++,ve[7]++;for(;B<=287;)_e[2*B+1]=8,B++,ve[8]++;for(mt(_e,b+1,ve),B=0;B<v;B++)P[2*B+1]=5,P[2*B]=Ke(B,5);Ce=new Ie(_e,q,w+1,b,y),de=new Ie(P,ie,0,v,y),Oe=new Ie(new Array(0),W,0,m,x)})(),Z=!0),C.l_desc=new U(C.dyn_ltree,Ce),C.d_desc=new U(C.dyn_dtree,de),C.bl_desc=new U(C.bl_tree,Oe),C.bi_buf=0,C.bi_valid=0,Ve(C)},a._tr_stored_block=O,a._tr_flush_block=function(C,B,se,le){var F,ue,ve=0;0<C.level?(C.strm.data_type===2&&(C.strm.data_type=(function(he){var Ae,tt=4093624447;for(Ae=0;Ae<=31;Ae++,tt>>>=1)if(1&tt&&he.dyn_ltree[2*Ae]!==0)return l;if(he.dyn_ltree[18]!==0||he.dyn_ltree[20]!==0||he.dyn_ltree[26]!==0)return h;for(Ae=32;Ae<w;Ae++)if(he.dyn_ltree[2*Ae]!==0)return h;return l})(C)),Wt(C,C.l_desc),Wt(C,C.d_desc),ve=(function(he){var Ae;for(_(he,he.dyn_ltree,he.l_desc.max_code),_(he,he.dyn_dtree,he.d_desc.max_code),Wt(he,he.bl_desc),Ae=m-1;3<=Ae&&he.bl_tree[2*ge[Ae]+1]===0;Ae--);return he.opt_len+=3*(Ae+1)+5+5+4,Ae})(C),F=C.opt_len+3+7>>>3,(ue=C.static_len+3+7>>>3)<=F&&(F=ue)):F=ue=se+5,se+4<=F&&B!==-1?O(C,B,se,le):C.strategy===4||ue===F?(me(C,2+(le?1:0),3),jt(C,_e,P)):(me(C,4+(le?1:0),3),(function(he,Ae,tt,Ue){var Lt;for(me(he,Ae-257,5),me(he,tt-1,5),me(he,Ue-4,4),Lt=0;Lt<Ue;Lt++)me(he,he.bl_tree[2*ge[Lt]+1],3);Q(he,he.dyn_ltree,Ae-1),Q(he,he.dyn_dtree,tt-1)})(C,C.l_desc.max_code+1,C.d_desc.max_code+1,ve+1),jt(C,C.dyn_ltree,C.dyn_dtree)),Ve(C),le&&We(C)},a._tr_tally=function(C,B,se){return C.pending_buf[C.d_buf+2*C.last_lit]=B>>>8&255,C.pending_buf[C.d_buf+2*C.last_lit+1]=255&B,C.pending_buf[C.l_buf+C.last_lit]=255&se,C.last_lit++,B===0?C.dyn_ltree[2*se]++:(C.matches++,B--,C.dyn_ltree[2*(S[se]+w+1)]++,C.dyn_dtree[2*G(B)]++),C.last_lit===C.lit_bufsize-1},a._tr_align=function(C){me(C,2,3),pe(C,L,_e),(function(B){B.bi_valid===16?(Se(B,B.bi_buf),B.bi_buf=0,B.bi_valid=0):8<=B.bi_valid&&(B.pending_buf[B.pending++]=255&B.bi_buf,B.bi_buf>>=8,B.bi_valid-=8)})(C)}},{"../utils/common":41}],53:[function(n,i,a){"use strict";i.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,i,a){"use strict";i.exports=typeof setImmediate=="function"?setImmediate:function(){var s=[].slice.apply(arguments);s.splice(1,0,0),setTimeout.apply(null,s)}},{}]},{},[10])(10)})})),C0=h3(),g3=f3(),m3=Fi(p3(),1);function v3(e){switch(e){case"image/jpeg":return"jpg";case"image/png":return"png";case"image/webp":return"webp";case"image/gif":return"gif";case"image/bmp":return"bmp";default:return"png"}}async function b3(e){if(!e.src)return null;try{const t=await fetch(e.src);if(t.ok)return xe(`Got blob for page ${e.src} from fetch`),await t.blob()}catch(t){xe(`Failed to get blob for page ${e.src} from fetch`,t)}return typeof GM_xmlhttpRequest<"u"?new Promise(t=>{GM_xmlhttpRequest({method:"GET",url:e.src,responseType:"blob",onload:n=>{n.status===200?(xe(`Got blob for page ${e.src} from GM_xmlhttpRequest`),t(n.response)):(xe(`Failed to get blob for page ${e.src} from GM_xmlhttpRequest`,n.statusText),t(null))},onerror:n=>{xe(`Failed to get blob for page ${e.src} from GM_xmlhttpRequest`,n),t(null)}})}):null}async function w3(e){const t=e.ref?.value;if(!t)return null;try{const n=document.createElement("canvas"),i=n.getContext("2d");if(i)return n.width=t.naturalWidth,n.height=t.naturalHeight,i.drawImage(t,0,0),await new Promise(a=>{n.toBlob(s=>{s&&xe(`Got blob for page ${e.src} from canvas`),a(s)},"image/png",1)})}catch(n){xe(`Failed to get blob for page ${e.src} from canvas`,n)}return null}async function _3(e){if(e.blob)return xe(`Got blob for page ${e.src} from cache`),e.blob;const t=await b3(e)||await w3(e);return t||xe(`Failed to get blob for page ${e.src}`),t}async function y3(){$e("download","working");const e=new m3.default,t=fe("images")??{},n=fe("manga"),i=n?.pages??0,a=Math.floor(Math.log10(i||1))+1,s=Me.default.sortBy(Me.default.entries(t),([f])=>Number(f)),l=[],h=f=>{$e("dialog",{open:!0,title:K("BUTTON_DOWNLOAD"),content:oe`
        <div style='display: flex; flex-direction: column; gap: 10px;'>
          <p>${K("DOWNLOAD_PROGRESS").replace("##num##",f.toString()).replace("##total##",i.toString())}</p>
          <progress value='${f}' max='${i}' style='width: 100%; height: 20px;'></progress>
        </div>
      `,footer:oe`
        <mov-button @click=${()=>$e("download","cancelled")}>
          ${K("CANCEL")}
        </mov-button>
      `})};h(0);let u=0;for(const[f,p]of s){if(fe("download")==="cancelled"){xe("Download cancelled"),$e("dialog",null),$e("download",void 0);return}try{const w=await _3(p);if(w){const b=v3(w.type),v=`Page-${Number(f).toString().padStart(a,"0")}.${b}`;xe(`${v} Added to Zip from Blob`),e.file(v,w,{createFolders:!0,compression:"DEFLATE"})}else l.push(p.src??f)}catch(w){xe(`Error processing page ${f}`,w),l.push(p.src??f)}finally{u+=1,h(u)}}$e("dialog",{open:!0,title:K("BUTTON_DOWNLOAD"),content:oe`
      <div style='display: flex; flex-direction: column; gap: 10px;'>
        <p>${K("GENERATING_ZIP")}</p>
        <progress style='width: 100%; height: 20px;'></progress>
      </div>
    `,footer:oe``}),l.length>0&&(xe("Some images failed to download:",l),e.file("failed_pages.txt",l.join(`
`))),xe("Generating Zip"),e.generateAsync({type:"blob"}).then(f=>{xe("Download Ready"),(0,g3.saveAs)(f,`${n?.title??document.title}.zip`,{autoBom:!1}),l.length>0?$e("dialog",{open:!0,title:K("DOWNLOAD_INCOMPLETE"),icon:"warning",content:oe`<p>${K("DOWNLOAD_INCOMPLETE_MESSAGE")}</p>`,footer:oe`<mov-button @click=${()=>$e("dialog",null)}>
            ${K("CLOSE")}
          </mov-button>`}):$e("dialog",null)}).catch(f=>{xe("Error generating zip",f),$e("dialog",{open:!0,title:K("WARNING"),icon:"error",content:oe`<p>Error generating zip: ${f.message}</p>`,footer:oe`<mov-button @click=${()=>$e("dialog",null)}>
          ${K("CLOSE")}
        </mov-button>`})}).finally(()=>{$e("download",void 0)})}function O0(){fe("download")!=="working"&&(xe("Downloading Chapter"),y3().catch(e=>xe("Error downloading chapter",e)))}function k3(){ri("hidePageControls",e=>!e)}function gi(e){const t=e.currentTarget||e.target,n=t.getAttribute("value")??t.getAttribute("href");e.button!==1&&!e.ctrlKey&&(n&&n!=="#"?window.location.href=(0,C0.sanitizeUrl)(n):t.id==="series"&&(Ms()?window.location.href=window.location.pathname:window.history.back()))}function E3(e){if(e)if(X("viewMode").startsWith("Fluid")){const t=fe("chapter").value;if(t){const n=e.getBoundingClientRect(),i=t.getBoundingClientRect();t.scrollBy({left:n.left-i.left,top:n.top-i.top,behavior:"instant"})}}else{const t=e.getBoundingClientRect();window.scrollTo({top:t.top+window.scrollY,left:t.left+window.scrollX,behavior:"instant"})}}er.listen((e,t,n)=>{n==="scrollToPage"&&e.scrollToPage!==void 0&&(e.scrollToPage<=0?window.scrollTo(0,0):E3(fe("images")?.[e.scrollToPage]?.ref?.value),setTimeout(()=>$e("scrollToPage",void 0),10))});function A3(e){const t=e.detail.value;$e("scrollToPage",typeof t=="string"?parseInt(t,10):t)}function S3(e){$e("scrollToPage",e)}var Tl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ll(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent(`on${t}`,n)}function mi(e,t,n,i){e&&(e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent&&e.detachEvent(`on${t}`,n))}function T0(e,t){const n=t.slice(0,t.length-1),i=[];for(let a=0;a<n.length;a++)i.push(e[n[a].toLowerCase()]);return i}function L0(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let n=t.lastIndexOf("");for(;n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function M3(e,t){const n=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let a=!0;for(let s=0;s<n.length;s++)i.indexOf(n[s])===-1&&(a=!1);return a}function R0(e){let t=e.keyCode||e.which||e.charCode;return e.key&&/^[a-z]$/i.test(e.key)?e.key.toUpperCase().charCodeAt(0):(e.code&&/^Key[A-Z]$/.test(e.code)&&(t=e.code.charCodeAt(3)),t)}var vi={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Tl?173:189,"=":Tl?61:187,";":Tl?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},Mr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},bi={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Tt={16:!1,18:!1,17:!1,91:!1},gt={};for(let e=1;e<20;e++)vi[`f${e}`]=111+e;var st=[],wi=null,Io=null,P0="all",rn=new Map,Co=e=>vi[e.toLowerCase()]||Mr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),x3=e=>Object.keys(vi).find(t=>vi[t]===e),I3=e=>Object.keys(Mr).find(t=>Mr[t]===e),$0=e=>{P0=e||"all"},_i=()=>P0||"all",C3=()=>st.slice(0),O3=()=>st.map(e=>x3(e)||I3(e)||String.fromCharCode(e)),T3=()=>{const e=[];return Object.keys(gt).forEach(t=>{gt[t].forEach(({key:n,scope:i,mods:a,shortcut:s})=>{e.push({scope:i,shortcut:s,mods:a,keys:n.split("+").map(l=>Co(l))})})}),e},D0=e=>{const t=e.target||e.srcElement,{tagName:n}=t;let i=!0;const a=n==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(a||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(i=!1),i},L3=e=>(typeof e=="string"&&(e=Co(e)),st.indexOf(e)!==-1),R3=(e,t)=>{let n,i;e||(e=_i());for(const a in gt)if(Object.prototype.hasOwnProperty.call(gt,a))for(n=gt[a],i=0;i<n.length;)n[i].scope===e?n.splice(i,1).forEach(({element:s})=>Rl(s)):i++;_i()===e&&$0(t||"all")};function P3(e){let t=R0(e);e.key&&e.key.toLowerCase()==="capslock"&&(t=Co(e.key));const n=st.indexOf(t);if(n>=0&&st.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&st.splice(0,st.length),(t===93||t===224)&&(t=91),t in Tt){Tt[t]=!1;for(const i in Mr)Mr[i]===t&&(Zr[i]=!1)}}var z0=(e,...t)=>{if(typeof e>"u")Object.keys(gt).forEach(n=>{Array.isArray(gt[n])&&gt[n].forEach(i=>Ma(i)),delete gt[n]}),Rl(null);else if(Array.isArray(e))e.forEach(n=>{n.key&&Ma(n)});else if(typeof e=="object")e.key&&Ma(e);else if(typeof e=="string"){let[n,i]=t;typeof n=="function"&&(i=n,n=""),Ma({key:e,scope:n,method:i,splitKey:"+"})}},Ma=({key:e,scope:t,method:n,splitKey:i="+"})=>{L0(e).forEach(a=>{const s=a.split(i),l=s.length,h=s[l-1],u=h==="*"?"*":Co(h);if(!gt[u])return;t||(t=_i());const f=l>1?T0(Mr,s):[],p=[];gt[u]=gt[u].filter(w=>{const b=(n?w.method===n:!0)&&w.scope===t&&M3(w.mods,f);return b&&p.push(w.element),!b}),p.forEach(w=>Rl(w))})};function N0(e,t,n,i){if(t.element!==i)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(const s in Tt)Object.prototype.hasOwnProperty.call(Tt,s)&&(!Tt[s]&&t.mods.indexOf(+s)>-1||Tt[s]&&t.mods.indexOf(+s)===-1)&&(a=!1);(t.mods.length===0&&!Tt[16]&&!Tt[18]&&!Tt[17]&&!Tt[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(st),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function B0(e,t){const n=gt["*"];let i=R0(e);if(e.key&&e.key.toLowerCase()==="capslock"||!(Zr.filter||D0).call(this,e))return;if((i===93||i===224)&&(i=91),st.indexOf(i)===-1&&i!==229&&st.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(h=>{const u=bi[h];e[h]&&st.indexOf(u)===-1?st.push(u):!e[h]&&st.indexOf(u)>-1?st.splice(st.indexOf(u),1):h==="metaKey"&&e[h]&&(st=st.filter(f=>f in bi||f===i))}),i in Tt){Tt[i]=!0;for(const h in Mr)Object.prototype.hasOwnProperty.call(Mr,h)&&(Zr[h]=e[bi[Mr[h]]]);if(!n)return}for(const h in Tt)Object.prototype.hasOwnProperty.call(Tt,h)&&(Tt[h]=e[bi[h]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(st.indexOf(17)===-1&&st.push(17),st.indexOf(18)===-1&&st.push(18),Tt[17]=!0,Tt[18]=!0);const a=_i();if(n)for(let h=0;h<n.length;h++)n[h].scope===a&&(e.type==="keydown"&&n[h].keydown||e.type==="keyup"&&n[h].keyup)&&N0(e,n[h],a,t);if(!(i in gt))return;const s=gt[i],l=s.length;for(let h=0;h<l;h++)if((e.type==="keydown"&&s[h].keydown||e.type==="keyup"&&s[h].keyup)&&s[h].key){const u=s[h],{splitKey:f}=u,p=u.key.split(f),w=[];for(let b=0;b<p.length;b++)w.push(Co(p[b]));w.sort().join("")===st.sort().join("")&&N0(e,u,a,t)}}var Zr=function e(t,n,i){st=[];const a=L0(t);let s=[],l="all",h=document,u=0,f=!1,p=!0,w="+",b=!1,v=!1;if(i===void 0&&typeof n=="function"&&(i=n),Object.prototype.toString.call(n)==="[object Object]"){const m=n;m.scope&&(l=m.scope),m.element&&(h=m.element),m.keyup&&(f=m.keyup),m.keydown!==void 0&&(p=m.keydown),m.capture!==void 0&&(b=m.capture),typeof m.splitKey=="string"&&(w=m.splitKey),m.single===!0&&(v=!0)}for(typeof n=="string"&&(l=n),v&&z0(t,l);u<a.length;u++){const m=a[u].split(w);s=[],m.length>1&&(s=T0(Mr,m));let E=m[m.length-1];E=E==="*"?"*":Co(E),E in gt||(gt[E]=[]),gt[E].push({keyup:f,keydown:p,scope:l,mods:s,shortcut:a[u],method:i,key:a[u],splitKey:w,element:h})}if(typeof h<"u"&&typeof window<"u"){if(!rn.has(h)){const m=(y=window.event)=>B0(y,h),E=(y=window.event)=>{B0(y,h),P3(y)};rn.set(h,{keydownListener:m,keyupListenr:E,capture:b}),Ll(h,"keydown",m,b),Ll(h,"keyup",E,b)}if(!wi){const m=()=>{st=[]};wi={listener:m,capture:b},Ll(window,"focus",m,b)}if(!Io&&typeof document<"u"){const m=()=>{st=[];for(const A in Tt)Tt[A]=!1;for(const A in Mr)e[A]=!1},E=m,y=m;document.addEventListener("fullscreenchange",E),document.addEventListener("webkitfullscreenchange",y),Io={fullscreen:E,webkit:y}}}};function $3(e,t="all"){Object.keys(gt).forEach(n=>{gt[n].filter(i=>i.scope===t&&i.shortcut===e).forEach(i=>{i&&i.method&&i.method({},i)})})}function Rl(e){const t=Object.values(gt).flat();if(t.findIndex(({element:n})=>n===e)<0&&e){const{keydownListener:n,keyupListenr:i,capture:a}=rn.get(e)||{};n&&i&&(mi(e,"keyup",i,a),mi(e,"keydown",n,a),rn.delete(e))}if(t.length<=0||rn.size<=0){if(Array.from(rn.keys()).forEach(n=>{const{keydownListener:i,keyupListenr:a,capture:s}=rn.get(n)||{};i&&a&&(mi(n,"keyup",a,s),mi(n,"keydown",i,s),rn.delete(n))}),rn.clear(),Object.keys(gt).forEach(n=>delete gt[n]),wi){const{listener:n,capture:i}=wi;mi(window,"focus",n,i),wi=null}Io&&typeof document<"u"&&(document.removeEventListener("fullscreenchange",Io.fullscreen),document.removeEventListener("webkitfullscreenchange",Io.webkit),Io=null)}}var Pl={getPressedKeyString:O3,setScope:$0,getScope:_i,deleteScope:R3,getPressedKeyCodes:C3,getAllKeyCodes:T3,isPressed:L3,filter:D0,trigger:$3,unbind:z0,keyMap:vi,modifier:Mr,modifierMap:bi};for(const e in Pl){const t=e;Object.prototype.hasOwnProperty.call(Pl,t)&&(Zr[t]=Pl[t])}if(typeof window<"u"){const e=window.hotkeys;Zr.noConflict=t=>(t&&window.hotkeys===Zr&&(window.hotkeys=e),Zr),window.hotkeys=Zr}function H0(){const e=fe("chapter").value;if(X("viewMode").startsWith("Fluid")){const t=X("viewMode")==="FluidRTL"?-1:1;e?.scrollBy({top:0,left:X("scrollHeight")*t,behavior:"smooth"}),e&&e.scrollLeft+e.clientWidth>=e.scrollWidth-2&&($e("autoScroll",!1),xe("Finished auto scroll"))}else window.scrollBy({top:X("scrollHeight"),left:0,behavior:"smooth"}),window.scrollY+window.innerHeight>=document.documentElement.scrollHeight&&($e("autoScroll",!1),xe("Finished auto scroll"));fe("autoScroll")&&requestAnimationFrame(H0)}function xa(){fe("autoScroll")?($e("autoScroll",!1),xe("Stopped auto scroll")):($e("autoScroll",!0),requestAnimationFrame(H0),xe("Start auto scroll"))}var Ia=!1,D3=Me.default.debounce(()=>{xa(),Ia=!1},500);function z3(){!Ia&&fe("autoScroll")&&(xa(),Ia=!0),Ia&&!fe("autoScroll")&&D3()}function N3(){window.addEventListener("wheel",Me.default.throttle(z3,500))}var qr=class extends Je{constructor(...t){super(...t),this.open=!1,this.mode="dialog",this.fullscreen=!1,this.label="",this.withoutHeader=!1,this.lightDismiss=!0}static{this.styles=yt`
    :host {
      --panel-overlay-transition: opacity linear 0.25s;
      --panel-overlay-opacity: 0.5;
      --panel-z-index: 1000;
    }

    .backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background-color: #000;
      opacity: 0;
      transition: var(--panel-overlay-transition);
      z-index: var(--panel-z-index);
    }

    :host([open]) .backdrop {
      display: block;
      opacity: var(--panel-overlay-opacity);
    }

    dialog {
      all: unset;
      background-color: var(--theme-background-color, #fff);
      color: var(--theme-text-color, #000);
      z-index: calc(var(--panel-z-index) + 1);
      position: fixed;
      box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
      display: flex;
      flex-direction: column;
      visibility: hidden;
      max-width: 100vw;
      max-height: 100vh;
    }

    :host([open]:not([mode='inline'])) dialog,
    .closing {
      visibility: visible;
    }

    /* Header Styles */
    .header-bar {
      display: flex;
      align-items: center;
      padding: 0.75rem 1rem;
      border-bottom: 1px solid var(--theme-border-color, #e0e0e0);
      flex-shrink: 0;
    }
    .action-item {
      order: 1;
    }
    .header-content {
      order: 2;
      flex-grow: 1;
      text-align: center;
      font-weight: bold;
    }
    .close-button-container {
      order: 3;
      display: flex;
      justify-content: flex-end;
    }
    .action-item,
    .close-button-container {
      min-width: 40px;
    }
    .close-button {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 24px;
      line-height: 1;
      padding: 0;
      color: inherit;
    }
    .content-slot {
      display: block;
      padding: 1rem;
      overflow-y: auto;
      flex-grow: 1;
    }

    .icon-container {
      display: flex;
      justify-content: center;
      padding-block-end: 1rem;
      text-align: center;
    }
    :host([icon='success']) .icon-container mov-icon {
      color: var(--theme-color-success, #28a745);
    }
    :host([icon='error']) .icon-container mov-icon {
      color: var(--theme-color-danger, #dc3545);
    }
    :host([icon='warning']) .icon-container mov-icon {
      color: var(--theme-color-warning, #ffc107);
    }
    :host([icon='info']) .icon-container mov-icon {
      color: var(--theme-color-info, #17a2b8);
    }
    :host([icon='question']) .icon-container mov-icon {
      color: var(--theme-color-secondary, #6c757d);
    }

    /* --- MODE: INLINE --- */
    :host([mode='inline']) {
      display: block;
      width: 500px;
      max-width: 100%;
    }
    :host([mode='inline']) dialog {
      all: unset;
      background-color: var(--theme-background-color, #fff);
      color: var(--theme-text-color, #000);
      box-shadow: none;
      display: flex;
      flex-direction: column;
      visibility: visible;
      position: relative;
      width: 500px;
      max-width: 100%;
      border: 1px solid var(--theme-border-color, #e0e0e0);
      border-radius: 12px;
    }
    :host([mode='inline']) .backdrop {
      display: none;
    }
    :host([mode='inline']) .close-button {
      display: none; /* No close button in inline mode */
    }

    /* --- MODE: DIALOG --- */
    :host([mode='dialog']) {
      --panel-transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    }
    :host([mode='dialog']) dialog {
      opacity: 0;
      transition: var(--panel-transition);
    }
    :host([mode='dialog'][open]) dialog {
      opacity: 1;
    }
    :host([mode='dialog']:not([fullscreen])) dialog {
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.9);
      border-radius: 12px;
      width: var(--dialog-width, 700px);
    }
    :host([mode='dialog']:not([fullscreen])[open]) dialog {
      transform: translate(-50%, -50%) scale(1);
    }
    :host([fullscreen]) {
      --panel-overlay-transition: none;
    }
    :host([fullscreen]) dialog {
      width: 100vw;
      height: 100vh;
      top: 0;
      left: 0;
      transform: translateY(2rem);
      border-radius: 0;
    }
    :host([fullscreen][open]) dialog {
      transform: translateY(0);
    }
  `}close(){this.open=!1}handleCancel(t){t.preventDefault(),this.close()}handleBackdropClick(){this.mode!=="inline"&&this.lightDismiss&&this.close()}handleClick(t){this.mode!=="inline"&&this.lightDismiss&&t.target===this.dialog&&this.close()}updated(t){this.mode!=="inline"&&t.has("open")&&(this.open?(this.dialog.classList.remove("closing"),this.dialog.show(),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wa-show",{bubbles:!0,composed:!0})),setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-show",{bubbles:!0,composed:!0}))},150)):t.get("open")===!0&&(this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wa-hide",{bubbles:!0,composed:!0})),this.dialog.classList.add("closing"),setTimeout(()=>{this.dialog.classList.remove("closing"),this.dialog.open&&this.dialog.close(),this.dispatchEvent(new CustomEvent("wa-after-hide",{bubbles:!0,composed:!0}))},300)))}render(){return oe`
      <div
        class="backdrop"
        @click=${this.handleBackdropClick}
      ></div>
      <dialog
        part="dialog"
        @cancel=${this.handleCancel}
        @click=${this.handleClick}
      >
        ${this.withoutHeader?"":oe`
          <div
            class="header-bar"
            part="header-bar"
          >
            <div class="action-item">
              <slot name="header-actions"></slot>
            </div>
            <div class="header-content" part="title">
              <slot name="label">${this.label}</slot>
            </div>
            <div
              class="close-button-container"
              part="close-button-container"
            >
              <button
                class="close-button"
                part="close-button"
                @click=${this.close}
                aria-label="Close"
              >
                ${Ol}
              </button>
            </div>
          </div>
        `}
        <div class="content-slot" part="body">
          ${this.icon?oe`
                <div class="icon-container">
                  <mov-icon
                    .name=${B3(this.icon)}
                    size="4rem"
                  ></mov-icon>
                </div>
              `:""}
          <slot></slot>
        </div>
        <slot name="footer" part="footer"></slot>
      </dialog>
    `}};D([j({type:Boolean,reflect:!0})],qr.prototype,"open",void 0),D([j({type:String,reflect:!0})],qr.prototype,"mode",void 0),D([j({type:Boolean,reflect:!0})],qr.prototype,"fullscreen",void 0),D([j({type:String,reflect:!0})],qr.prototype,"label",void 0),D([j({type:Boolean,reflect:!0,attribute:"without-header"})],qr.prototype,"withoutHeader",void 0),D([j({type:Boolean,reflect:!0,attribute:"light-dismiss"})],qr.prototype,"lightDismiss",void 0),D([j({type:String,reflect:!0})],qr.prototype,"icon",void 0),D([en("dialog")],qr.prototype,"dialog",void 0),qr=D([ot("mov-dialog")],qr);function $l(e){const t=()=>$e("dialog",null);e.timer&&setTimeout(t,e.timer),$e("dialog",{open:!0,icon:e.icon,title:e.title,content:oe`<div style="padding: 1rem;">${Nd(e.html)}</div>`,footer:oe`
      <div
        slot="footer"
        style="display: flex; justify-content: flex-end; padding: 0.5rem 1rem 1rem;"
      >
        <mov-button @click=${t}>OK</mov-button>
      </div>
    `})}function B3(e){switch(e){case"info":return"info-circle";case"warning":return"alert-circle";case"success":return"circle-check";case"error":return"circle-x";case"question":return"help";default:return""}}function H3(e){const t=e.currentTarget.value;Ud(t==="true")}function F3(e){const t=e.currentTarget.value;St("locale",t)}function G3(e){const t=e.currentTarget.value;St("loadMode",t)}function W3(e){const t=e.detail.checked;St("fitWidthIfOversize",t)}function U3(e){const t=e.currentTarget.value;St("navbar",t)}function V3(e){const t=e.currentTarget.value;St("pagination",t)}function Z3(e){const t=e.detail.checked;St("downloadZip",t),t&&$l({title:K("ATTENTION"),html:K("AUTO_DOWNLOAD"),timer:1e4,icon:"info"})}function q3(e){const t=e.detail.checked;St("lazyLoadImages",t),t&&$l({title:K("WARNING"),html:K("LAZY_LOAD"),icon:"warning"})}function j3(e){const t=e.detail.value;St("lazyStart",typeof t=="string"?parseInt(t,10):t)}function K3(e){const t=e.currentTarget.value;St("loadSpeed",t),["Extreme","All"].includes(t)&&$l({title:K("SPEED_WARNING"),html:K("SPEED_WARNING_MESSAGE"),icon:"warning"})}function Y3(e){const t=e.detail.value;St("zoomStep",typeof t=="string"?parseInt(t,10):t)}function X3(e){const t=e.detail.value,n=typeof t=="string"?parseInt(t,10):t;L5("MinZoom",`#MangaOnlineViewer .PageContent .PageImg {min-width: ${n}vw;}`),St("minZoom",n)}function J3(e){const t=e.detail.checked;St("hidePageControls",t)}function Q3(e){const t=e.currentTarget.value;St("header",t)}function eb(e){const t=e.detail.value;St("scrollHeight",typeof t=="string"?parseInt(t,10):t)}function F0(e){ri("scrollHeight",t=>{const n=t+e*25;if(n<=0)return 0;const i=Math.ceil(window.innerHeight/200)*100;return n>=i?i:n})}function tb(){const e=X("navbar");return e==="left"||e==="right"?window.innerWidth-34:window.innerWidth}function rb(){return X("navbar")==="bottom"?window.innerHeight-34:window.innerHeight}function G0(e,t=X("zoomMode"),n=X("zoomValue")){const i=tb(),a=rb();if(t==="width")e.width=i,e.height=void 0;else if(t==="height")e.width=void 0,e.height=a;else if(t==="percent"){const s=e.naturalWidth??e.ref?.value?.naturalWidth;e.width=s?s*(n/100):void 0,e.height=void 0}return e}function Yn(e=X("zoomMode"),t=X("zoomValue")){xe("Zoom",e,t),go("zoomMode",e),go("zoomValue",t),e==="height"?$e("scrollToPage",fe("currentPage")):Zn("header");const n=fe("images"),i=fe("manga"),a={};for(let s=i?.begin??1;s<=(i?.pages??1);s++)a[s]=G0({...n?.[s]},e,t);$e("images",a)}function Oo(e,t=X("zoomValue")){return()=>{Yn(e,t)}}function Ca(e=1){return()=>{const t=X("zoomValue")+e*X("zoomStep");t>0&&t<500&&Yn("percent",t)}}function nb(e){const t=e.currentTarget.value;St("zoomMode",t)}function ob(e){const t=e.detail.value,n=typeof t=="string"?parseInt(t,10):t;St("zoomValue",n),Yn("percent",n)}function ib(e){const t=e.detail.value;Yn("percent",typeof t=="string"?parseInt(t,10):t)}function pr(e){return()=>{go("viewMode",e),e.startsWith("Fluid")?(go("zoomMode","height"),go("header","click")):(Zn("zoomMode"),Zn("zoomValue"),Zn("header")),Yn()}}function ab(e){const t=e.currentTarget.value;St("viewMode",t),pr(t)()}function sb(e){const t=X("viewMode")==="FluidRTL"?-1:1;fe("chapter").value?.scrollBy({left:.8*window.innerWidth*e*t,behavior:"smooth"})}function lb(e){const t=fe("currentPage")+e;t<0?$e("scrollToPage",0):t>(fe("manga")?.pages??1)||$e("scrollToPage",t)}function cb(e){window.scrollBy({top:.8*window.innerHeight*e,behavior:"smooth"})}function db(e){const t=fe("currentPage"),n=fe("manga");if(!n)return;const i=fe("images")??{},a=n.begin??1,s=n.pages??1,l=u=>{if(u<a||u>s)return!1;if(i[u]?.doublePage)return!0;let f=0;for(let p=u-1;p>=a&&!i[p]?.doublePage;p--)f++;return f%2===0};let h;if(e===1)for(h=t+1;h<=s&&!l(h);)h++;else if(l(t))for(h=t-1;h>a&&!l(h);)h--;else for(h=t;h>a&&!l(h);)h--;h<a?$e("scrollToPage",0):h>s?$e("scrollToPage",s):$e("scrollToPage",h)}function W0(e){const t=X("viewMode"),n=X("zoomMode");xe("Scrolling view",t,"zoom",n,"sign",e),t.match(/^(Book|Manga)$/)&&n==="height"?db(e):t.startsWith("Fluid")?sb(e):n==="height"?lb(e):cb(e)}function yi(e){const t=fe("manga")?.[e];t&&t!=="#"?window.location.href=(0,C0.sanitizeUrl)(t):e==="series"&&(Ms()?window.location.href=window.location.pathname:window.history.back())}var ub={SCROLL_UP(){W0(-1)},SCROLL_DOWN(){W0(1)},NEXT_CHAPTER(){yi("next")},PREVIOUS_CHAPTER(){yi("prev")},RETURN_CHAPTER_LIST(){yi("series")},ENLARGE(){Ca(1)()},REDUCE(){Ca(-1)()},RESTORE(){Oo("percent",100)()},FIT_WIDTH(){Oo("width")()},FIT_HEIGHT(){Oo("height")()},SETTINGS(){Wd("panel",e=>e==="none"?"settings":"none")},VIEW_MODE_WEBCOMIC(){pr("WebComic")()},VIEW_MODE_VERTICAL(){pr("Vertical")()},VIEW_MODE_LEFT(){pr("FluidRTL")()},VIEW_MODE_RIGHT(){pr("FluidLTR")()},VIEW_MODE_GALLERY(){pr("Gallery")()},SCROLL_START(){xa()},INCREASE_SPEED(){F0(1)},DECREASE_SPEED(){F0(-1)}};function U0(){document.onkeydown=null,document.onkeyup=null,window.onkeydown=null,window.onkeyup=null,window.onload=null,document.body.onload=null,Zr.unbind(),Me.default.keys(X("keybinds")).forEach(e=>{Zr(X("keybinds")[e]?.join(",")??"",Me.default.throttle(t=>{t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),ub[e]()},100))})}var En=class extends Je{constructor(...t){super(...t),this.mode="disabled",this.currentPage=1,this.totalPages=1,this.startPage=1}static{this.styles=yt`
    :host {
      display: contents; /* Use contents to not interfere with layout */
      font-family:
        system-ui,
        -apple-system,
        sans-serif;
    }

    .slider-pagination {
      display: flex;
      position: fixed;
      bottom: 30px;
      left: 0;
      right: 0;
      background-color: transparent;
      justify-content: center;
      align-items: center;
      gap: 3px;
      width: 100%;
      max-width: 100%;
      z-index: 100;
    }

    .pagination-button {
      background: var(--mov-color-fill-loud);
      border: 1px solid var(--mov-color-fill-loud);
      color: var(--mov-color-on-loud);
      padding: 8px 12px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 36px;
      height: 36px;
    }

    .pagination-button:hover:not(:disabled) {
      opacity: 0.8;
      transform: translateY(-1px);
    }

    .pagination-button:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    .pagination-button mov-icon {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    .slider-container {
      position: relative;
      max-width: 1000px;
      width: inherit;
      margin: 0 5px;
      --mov-slider-track-height: 4px;
      --mov-slider-thumb-size: 16px;
    }

    .tooltip {
      position: absolute;
      bottom: 45px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--theme-body-background);
      color: white;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 12px;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
      z-index: 1001;
    }

    .pagination-button:hover .tooltip {
      opacity: 1;
    }

    .side-arrow {
      position: fixed;
      top: var(--header-height, 50px);
      bottom: 0;
      width: 10vw;
      height: calc(100vh - var(--header-height, 50px));
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 99;
      opacity: 0;
      transition: opacity 0.2s ease-in-out;
      -webkit-tap-highlight-color: transparent;
    }

    .side-arrow:hover {
      background-color: var(--mov-color-primary-alpha-10);
      opacity: 1;
    }

    .side-arrow.left {
      left: 0;
    }

    .side-arrow.right {
      right: 0;
    }

    .side-arrow:active {
      background-color: var(--mov-color-primary-alpha-20);
    }

    .side-arrow mov-icon {
      width: 48px;
      height: 48px;
      fill: var(--mov-color-on-primary);
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    }

    .side-arrow:disabled {
      display: none;
    }
  `}get isFirstPage(){return this.currentPage<=this.startPage}get isLastPage(){return this.currentPage>=this.totalPages-(1-this.startPage)}renderSlider(){return oe`
      <div class="slider-pagination">
        <button
          class="pagination-button"
          @click=${gi}
          value="${this.prev}"
          ?disabled=${Er(this.prev)||this.prev==="#"}
        >
          <mov-icon name="arrow-big-left"></mov-icon>
          <div class="tooltip">Previous Chapter</div>
        </button>

        <button
          class="pagination-button"
          @click=${this.goToPreviousPage}
          ?disabled=${this.isFirstPage}
        >
          <mov-icon name="chevron-left"></mov-icon>
          <div class="tooltip">Previous Page</div>
        </button>

        <div class="slider-container">
          <mov-slider
            class="pagination-slider"
            min="${this.startPage}"
            max="${this.totalPages}"
            .value="${this.currentPage}"
            show-tooltip
            @input="${A3}"
          ></mov-slider>
        </div>

        <button class="pagination-button" @click=${this.goToNextPage} ?disabled=${this.isLastPage}>
          <mov-icon name="chevron-right"></mov-icon>
          <div class="tooltip">Next Page</div>
        </button>

        <button
          class="pagination-button"
          @click=${gi}
          value="${this.next}"
          ?disabled=${Er(this.next)||this.next==="#"}
        >
          <mov-icon name="arrow-big-right"></mov-icon>
          <div class="tooltip">Next Chapter</div>
        </button>
      </div>
    `}renderSideArrows(){return oe`
      <div class="arrows-pagination">
        <button
          class="side-arrow left"
          @click=${this.handleLeftArrowClick}
          ?disabled=${this.isFirstPage&&(Er(this.prev)||this.prev==="#")}
        >
          <mov-icon name="chevron-left"></mov-icon>
        </button>
        <button
          class="side-arrow right"
          @click=${this.handleRightArrowClick}
          ?disabled=${this.isLastPage&&(Er(this.next)||this.next==="#")}
        >
          <mov-icon name="chevron-right"></mov-icon>
        </button>
      </div>
    `}render(){if(this.mode==="disabled")return Be;const t=this.mode==="slider"||this.mode==="both",n=this.mode==="side-arrows"||this.mode==="both";return oe`
      ${t?this.renderSlider():Be} ${n?this.renderSideArrows():Be}
    `}handleLeftArrowClick(){this.isFirstPage?yi("prev"):this.goToPreviousPage()}handleRightArrowClick(){this.isLastPage?yi("next"):this.goToNextPage()}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToNextPage(){this.goToPage(this.currentPage+1)}goToPage(t){$e("scrollToPage",t)}};D([j({type:String})],En.prototype,"mode",void 0),D([j({type:Number})],En.prototype,"currentPage",void 0),D([j({type:Number})],En.prototype,"totalPages",void 0),D([j({type:Number})],En.prototype,"startPage",void 0),D([j({type:String})],En.prototype,"next",void 0),D([j({type:String})],En.prototype,"prev",void 0),En=D([ot("manga-pagination")],En);var An=class extends Je{constructor(...t){super(...t),this.open=!1,this.placement="end",this.label="",this.withoutHeader=!1,this.lightDismiss=!0}static{this.styles=yt`
    :host {
      --panel-overlay-transition: opacity linear 0.25s;
      --panel-overlay-opacity: 0.5;
      --panel-z-index: 1000;
      --panel-transition: transform 0.25s ease-out;
    }

    .backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background-color: #000;
      opacity: 0;
      transition: var(--panel-overlay-transition);
      z-index: var(--panel-z-index);
    }

    :host([open]) .backdrop {
      display: block;
      opacity: var(--panel-overlay-opacity);
    }

    dialog {
      all: unset;
      background-color: var(--theme-background-color, #fff);
      color: var(--theme-text-color, #000);
      z-index: calc(var(--panel-z-index) + 1);
      position: fixed;
      box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
      display: flex;
      flex-direction: column;
      visibility: hidden;
      max-width: 100vw;
      max-height: 100vh;
      width: 350px;
      top: 0;
      bottom: 0;
      height: 100%;
      transition: var(--panel-transition);
    }

    :host([open]) dialog,
    .closing {
      visibility: visible;
    }

    /* Header Styles */
    .header-bar {
      display: flex;
      align-items: center;
      padding: 0.75rem 1rem;
      border-bottom: 1px solid var(--theme-border-color, #e0e0e0);
      flex-shrink: 0;
    }
    .action-item {
      order: 1;
    }
    .header-content {
      order: 2;
      flex-grow: 1;
      text-align: center;
      font-weight: bold;
    }
    .close-button-container {
      order: 3;
      display: flex;
      justify-content: flex-end;
    }
    .action-item,
    .close-button-container {
      min-width: 40px;
    }
    .close-button {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 24px;
      line-height: 1;
      padding: 0;
      color: inherit;
    }
    .content-slot {
      display: block;
      padding: 1rem;
      overflow-y: auto;
      flex-grow: 1;
    }

    :host([placement='start']) dialog {
      left: 0;
      transform: translateX(-100%);
    }
    :host([placement='end']) dialog {
      right: 0;
      transform: translateX(100%);
    }
    :host([placement='top']) dialog {
      top: 0;
      left: 0;
      width: 100%;
      height: auto;
      transform: translateY(-100%);
    }
    :host([placement='bottom']) dialog {
      bottom: 0;
      left: 0;
      width: 100%;
      height: auto;
      top: auto;
      transform: translateY(100%);
    }
    :host([open]) dialog {
      transform: none;
    }
    :host([placement='end']) .action-item {
      order: 3;
    }
    :host([placement='end']) .header-content {
      order: 2;
    }
    :host([placement='end']) .close-button-container {
      order: 1;
      justify-content: flex-start;
    }
    .footer-slot {
      display: block;
      padding: 1rem;
      border-top: 1px solid var(--theme-border-color, #e0e0e0);
    }
  `}close(){this.open=!1}handleCancel(t){t.preventDefault(),this.close()}handleBackdropClick(){this.lightDismiss&&this.close()}handleClick(t){this.lightDismiss&&t.target===this.dialog&&this.close()}updated(t){t.has("open")&&(this.open?(this.dialog.classList.remove("closing"),this.dialog.show(),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wa-show",{bubbles:!0,composed:!0})),setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-show",{bubbles:!0,composed:!0}))},250)):t.get("open")===!0&&(this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wa-hide",{bubbles:!0,composed:!0})),this.dialog.classList.add("closing"),setTimeout(()=>{this.dialog.classList.remove("closing"),this.dialog.open&&this.dialog.close(),this.dispatchEvent(new CustomEvent("wa-after-hide",{bubbles:!0,composed:!0}))},300)))}render(){return oe`
      <div
        class="backdrop"
        @click=${this.handleBackdropClick}
      ></div>
      <dialog
        part="dialog"
        @cancel=${this.handleCancel}
        @click=${this.handleClick}
      >
        ${this.withoutHeader?"":oe`
          <div
            class="header-bar"
            part="header-bar"
          >
            <div class="action-item">
              <slot name="header-actions"></slot>
            </div>
            <div class="header-content" part="title">
              <slot name="label">${this.label}</slot>
            </div>
            <div
              class="close-button-container"
              part="close-button-container"
            >
              <button
                class="close-button"
                part="close-button"
                @click=${this.close}
                aria-label="Close"
              >
                ${Ol}
              </button>
            </div>
          </div>
        `}
        <slot class="content-slot" part="body"></slot>
        <slot name="footer" class="footer-slot" part="footer"></slot>
      </dialog>
    `}};D([j({type:Boolean,reflect:!0})],An.prototype,"open",void 0),D([j({type:String,reflect:!0})],An.prototype,"placement",void 0),D([j({type:String,reflect:!0})],An.prototype,"label",void 0),D([j({type:Boolean,reflect:!0,attribute:"without-header"})],An.prototype,"withoutHeader",void 0),D([j({type:Boolean,reflect:!0,attribute:"light-dismiss"})],An.prototype,"lightDismiss",void 0),D([en("dialog")],An.prototype,"dialog",void 0),An=D([ot("mov-drawer")],An);var Xn=class extends Je{static{this.styles=yt`
    :host {
      position: relative;
      display: inline-block;
    }
    :host([checkable]) {
      --mov-dropdown-item-checkmark-display: inline-block;
    }
    .dropdown-content {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background-color: var(--theme-background-color, #f9f9f9);
      min-width: 160px;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
      z-index: 100;
      list-style: none;
      padding: 0;
      margin: 4px 0 0;
      border: 1px solid var(--theme-border-color, #ccc);
      border-radius: 5px;
    }
    :host([placement^='top']) .dropdown-content {
      top: auto;
      bottom: 100%;
      margin: 0 0 4px;
    }
    :host([placement$='end']) .dropdown-content {
      left: auto;
      right: 0;
    }
    :host([open]) .dropdown-content {
      display: block;
    }
  `}constructor(){super(),this.open=!1,this.checkable=!1,this.distance=0,this.skidding=0,this.placement="bottom-start",this.boundClickHandler=this.handleClickOutside.bind(this)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.boundClickHandler)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.boundClickHandler)}handleClickOutside(t){this.open&&!t.composedPath().includes(this)&&this.hide()}show(){this.open||(this.open=!0,this.dispatchEvent(new CustomEvent("wa-show",{bubbles:!0,composed:!0})),setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-show",{bubbles:!0,composed:!0}))},150))}hide(){this.open&&(this.open=!1,this.dispatchEvent(new CustomEvent("wa-hide",{bubbles:!0,composed:!0})),setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-hide",{bubbles:!0,composed:!0}))},150))}toggle(){this.open?this.hide():this.show()}render(){return oe`
      <div
        @click=${this.toggle}
        class="trigger-wrapper"
        part="trigger"
      >
        <slot name="trigger"></slot>
      </div>
      <div
        class="dropdown-content"
        part="menu"
      >
        <slot></slot>
      </div>
    `}};D([j({type:Boolean,reflect:!0})],Xn.prototype,"open",void 0),D([j({type:Boolean,reflect:!0})],Xn.prototype,"checkable",void 0),D([j({type:Number})],Xn.prototype,"distance",void 0),D([j({type:Number})],Xn.prototype,"skidding",void 0),D([j({type:String})],Xn.prototype,"placement",void 0),Xn=D([ot("mov-dropdown")],Xn);var Sn=class extends Je{constructor(...t){super(...t),this.selected=!1,this.checked=!1,this.disabled=!1,this.value="",this.variant="default",this.type="normal"}static{this.styles=yt`
    :host {
      display: block;
      min-width: max-content;
    }
    .item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 12px;
      cursor: pointer;
      color: var(--theme-body-text-color);
      background-color: var(--theme-background-color);
      gap: 10px;
    }
    .item:hover {
      background-color: var(--mov-color-fill-normal);
      color: var(--mov-color-on-normal);
    }
    :host([selected]) .item,
    :host([checked]) .item {
      background-color: var(--mov-color-fill-normal);
      color: var(--mov-color-on-normal);
    }
    :host([disabled]) .item {
      opacity: 0.5;
      cursor: not-allowed;
      pointer-events: none;
    }
    :host([variant='danger']) .item {
      color: var(--theme-color-danger, #dc3545);
    }
    .item-content {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .check-icon {
      display: var(--mov-dropdown-item-checkmark-display, none);
      visibility: hidden;
      width: 1.2em;
      height: 1.2em;
    }
    :host([selected]) .check-icon,
    :host([checked]) .check-icon {
      visibility: visible;
    }
    ::slotted([slot='details']) {
      font-size: 0.9em;
      opacity: 0.7;
    }
  `}handleSelect(){this.disabled||this.dispatchEvent(new CustomEvent("wa-select",{detail:{item:this},bubbles:!0,composed:!0}))}render(){return oe`
      <div
        class="item"
        @click=${this.handleSelect}
        part="base"
      >
        <div
          class="item-content"
          part="label"
        >
          <mov-icon
            class="check-icon"
            name="IconCheck"
            part="checkmark"
          ></mov-icon>
          <slot
            name="icon"
            part="icon"
          ></slot>
          <slot></slot>
        </div>
        <slot
          name="details"
          part="details"
        ></slot>
      </div>
    `}};D([j({type:Boolean,reflect:!0})],Sn.prototype,"selected",void 0),D([j({type:Boolean,reflect:!0})],Sn.prototype,"checked",void 0),D([j({type:Boolean,reflect:!0})],Sn.prototype,"disabled",void 0),D([j({type:String})],Sn.prototype,"value",void 0),D([j({type:String,reflect:!0})],Sn.prototype,"variant",void 0),D([j({type:String,reflect:!0})],Sn.prototype,"type",void 0),Sn=D([ot("mov-dropdown-item")],Sn);var Dl=class extends Je{constructor(...t){super(...t),this.orientation="horizontal"}static{this.styles=yt`
    :host {
      display: block;
    }
    :host([orientation='horizontal']) .divider {
      border-top: 1px solid var(--theme-border-color, #ccc);
      margin: 4px 0;
    }
    :host([orientation='vertical']) .divider {
      border-left: 1px solid var(--theme-border-color, #ccc);
      height: 100%;
      margin: 0 4px;
      display: inline-block;
    }
  `}render(){return oe`<div
      class="divider"
      role="separator"
    ></div>`}};D([j({type:String,reflect:!0})],Dl.prototype,"orientation",void 0),Dl=D([ot("mov-divider")],Dl);var V0="kbd,.key{white-space:nowrap;text-align:center;background-color:#505050;background-color:gradient(linear, left top, left bottom, from(#3c3c3c), to(#505050));color:#fafafa;text-shadow:-1px -1px #464646;cursor:default;user-select:none;border:none;border-radius:.3em;min-width:1em;padding:.3em .4em .2em .3em;font-family:Lucida Grande,Lucida,Arial,sans-serif;font-size:.85em;font-style:normal;line-height:1;text-decoration:none;display:inline-block;box-shadow:inset 0 0 1px #969696,inset 0 -.05em .4em #505050,0 .1em #1e1e1e,0 .1em .1em #0000004d}kbd[title],.key[title]{cursor:help}kbd.dark,.dark-keys kbd,.key.dark,.dark-keys .key{white-space:nowrap;text-align:center;background-color:#505050;background-color:gradient(linear, left top, left bottom, from(#3c3c3c), to(#505050));color:#fafafa;text-shadow:-1px -1px #464646;border:none;border-radius:.3em;min-width:1em;padding:.3em .4em .2em .3em;font-family:Lucida Grande,Lucida,Arial,sans-serif;font-style:normal;text-decoration:none;display:inline-block;box-shadow:inset 0 0 1px #969696,inset 0 -.05em .4em #505050,0 .1em #1e1e1e,0 .1em .1em #0000004d}kbd.light,.light-keys kbd,.key.light,.light-keys .key{white-space:nowrap;text-align:center;background-color:#fafafa;background-color:gradient(linear, left top, left bottom, from(#d2d2d2), to(#fff));color:#323232;text-shadow:0 0 2px #fff;border:none;border-radius:.3em;min-width:1em;padding:.3em .4em .2em .3em;font-family:Lucida Grande,Lucida,Arial,sans-serif;font-style:normal;text-decoration:none;display:inline-block;box-shadow:inset 0 0 1px #fff,inset 0 0 .4em #c8c8c8,0 .1em #828282,0 .11em #0006,0 .1em .11em #000000e6}kbd.so,.so-keys kbd,.key.so,.so-keys .key{white-space:nowrap;text-align:center;color:#242729;text-shadow:0 1px #fff;background-color:#e1e3e5;border:1px solid #adb3b9;border-radius:.272727em;min-width:1em;margin:0 .1em;padding:.1em .6em;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;font-style:normal;line-height:1.4;text-decoration:none;display:inline-block;box-shadow:0 1px #0c0d0e33,inset 0 0 0 2px #fff}kbd.github,.github-keys kbd,.key.github,.github-keys .key{white-space:nowrap;text-align:center;color:#444d56;vertical-align:middle;box-sizing:border-box;min-width:1em;text-shadow:none;background-color:#fafbfc;border:1px solid #c6cbd1;border-bottom-color:#959da5;border-radius:.272727em;padding:.272727em .454545em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:68.75%;font-style:normal;line-height:.909091;text-decoration:none;display:inline-block;box-shadow:inset 0 -1px #959da5}",hb=yr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StoreController=void 0;var t=class{constructor(n,i){this.host=n,this.atom=i,n.addController(this)}hostConnected(){this.unsubscribe=this.atom.subscribe(()=>{this.host.requestUpdate()})}hostDisconnected(){var n;(n=this.unsubscribe)===null||n===void 0||n.call(this)}get value(){return this.atom.get()}};e.StoreController=t})),zl=yr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MultiStoreController=void 0;var t=class{constructor(n,i){this.host=n,this.atoms=i,n.addController(this)}hostConnected(){this.unsubscribes=this.atoms.map(n=>n.subscribe(()=>this.host.requestUpdate()))}hostDisconnected(){var n;(n=this.unsubscribes)===null||n===void 0||n.forEach(i=>i())}get values(){return this.atoms.map(n=>n.get())}};e.MultiStoreController=t})),fb=yr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.useStores=void 0;var t=zl();function n(...i){return a=>class extends a{constructor(...s){super(...s),new t.MultiStoreController(this,i)}}}e.useStores=n})),pb=yr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.withStores=void 0;var t=zl(),n=(i,a)=>class extends i{constructor(...l){super(...l),new t.MultiStoreController(this,a)}};e.withStores=n})),gb=yr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.withStores=e.useStores=e.MultiStoreController=e.StoreController=void 0;var t=hb();Object.defineProperty(e,"StoreController",{enumerable:!0,get:function(){return t.StoreController}});var n=zl();Object.defineProperty(e,"MultiStoreController",{enumerable:!0,get:function(){return n.MultiStoreController}});var i=fb();Object.defineProperty(e,"useStores",{enumerable:!0,get:function(){return i.useStores}});var a=pb();Object.defineProperty(e,"withStores",{enumerable:!0,get:function(){return a.withStores}})})),To=gb(),Z0=class extends Je{static{this.styles=yt`
    :host {
      display: inline-flex;
      vertical-align: middle;
      z-index: 100;
    }

    :host(:has(mov-dropdown[open])) {
      z-index: 110;
    }

    .button-group {
      display: flex;
      flex-wrap: wrap;
    }

    ::slotted(mov-button),
    ::slotted(mov-dropdown) {
      margin-inline-start: -1px;
      --mov-border-radius-m: 0;
    }

    ::slotted(mov-button:first-child),
    ::slotted(mov-dropdown:first-child) {
      margin-inline-start: 0;
      --mov-border-radius-m: 0.375rem 0 0 0.375rem;
    }

    ::slotted(mov-button:last-child),
    ::slotted(mov-dropdown:last-child) {
      --mov-border-radius-m: 0 0.375rem 0.375rem 0;
    }

    ::slotted(mov-button:first-child:last-child),
    ::slotted(mov-dropdown:first-child:last-child) {
      --mov-border-radius-m: 0.375rem;
    }

    /* Handling adjacent button groups visual merge */
    :host(.button-group-merged-start) {
      margin-inline-start: -1px;
    }
    :host(.button-group-merged-start) ::slotted(mov-button:first-child),
    :host(.button-group-merged-start) ::slotted(mov-dropdown:first-child) {
      --mov-border-radius-m: 0 0 0 0;
    }

    :host(.button-group-merged-end) ::slotted(mov-button:last-child),
    :host(.button-group-merged-end) ::slotted(mov-dropdown:last-child) {
      --mov-border-radius-m: 0 0 0 0;
    }

    ::slotted(mov-dropdown) {
      display: flex;
    }
  `}render(){return oe`
      <div
        class="button-group"
        role="group"
      >
        <slot></slot>
      </div>
    `}};Z0=D([ot("mov-button-group")],Z0);var Oa=49,mb=100,vb=class jf{constructor(t){this.prevOffset=0,this.headroom="top",this.headerVisible=!0,this.handleScroll=Me.default.throttle(()=>{if(this.isAnyDropdownOpen()){this.prevOffset=window.scrollY;return}const i=X("header"),{scrollY:a}=window;let s="none";X("zoomMode")!=="height"&&a+window.innerHeight+mb>document.body.scrollHeight?s="end":a>this.prevOffset&&a>Oa?s="hide":i==="scroll"&&a<this.prevOffset&&a>Oa?s="show":i!=="click"&&a<=Oa&&(s="top");let l=!1;if(this.headroom!==s&&(this.headroom=s,l=!0),i==="scroll"){const h=s!=="hide";this.headerVisible!==h&&(this.headerVisible=h,l=!0)}l&&this.host.requestUpdate(),this.prevOffset=a},300),this.handleMouseMove=Me.default.throttle(i=>{if(this.isAnyDropdownOpen()){this.headerVisible||(this.headerVisible=!0,this.host.requestUpdate());return}if(["hover","scroll"].includes(X("header"))){const a=jf.isMouseInsideRegion(i,window.innerWidth,Oa*1.5);this.headerVisible!==a&&(this.headerVisible=a,this.host.requestUpdate())}},300),this.toggleHeaderVisibility=()=>{X("header")==="click"&&(this.headerVisible=!this.headerVisible,this.host.requestUpdate())},this.host=t,t.addController(this);const n=X("header");X("zoomMode")==="height"&&["click","hover"].includes(n)&&(this.headerVisible=!1)}hostConnected(){window.addEventListener("scroll",this.handleScroll),window.addEventListener("mousemove",this.handleMouseMove)}hostDisconnected(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("mousemove",this.handleMouseMove)}isAnyDropdownOpen(){if(!this.host.shadowRoot)return!1;const t=this.host.shadowRoot.querySelectorAll("mov-dropdown");for(const n of t)if(n.open)return!0;return!1}static isMouseInsideRegion(t,n,i){return t.clientX>=0&&t.clientX<=n&&t.clientY>=0&&t.clientY<=i}},bb=class{constructor(e){this.canvasContext=null,this.host=e,e.addController(this);const t=document.createElement("canvas");this.canvasContext=t.getContext("2d"),this.resizeObserver=new ResizeObserver(()=>this.update())}hostConnected(){}hostDisconnected(){this.resizeObserver.disconnect()}observe(e,t){!e||!t||(this.element=e,this.text=t,this.resizeObserver.disconnect(),this.resizeObserver.observe(this.element),this.update())}update(){if(!this.element||!this.text||!this.canvasContext){this.value=this.text,this.host.requestUpdate();return}const e=window.getComputedStyle(this.element);this.canvasContext.font=`${e.fontWeight} ${e.fontSize} ${e.fontFamily}`;const t=this.text,n=this.element.clientWidth;if(this.canvasContext.measureText(t).width<=n){this.value=t,this.host.requestUpdate();return}const i="...",a=n-this.canvasContext.measureText(i).width;let s="",l="";for(let h=1;h<t.length;h++){const u=t.substring(0,h),f=t.substring(t.length-h);if(this.canvasContext.measureText(u).width+this.canvasContext.measureText(f).width>a)break;s=u,l=f}this.value=`${s}${i}${l}`,this.host.requestUpdate()}};function q0(e=window.location.href){Er(mo(e))||(xe(`Bookmark Removed ${e}`),ri("bookmarks",t=>[...t.filter(n=>n.url!==e)]))}function wb(e){const t=e.currentTarget.value;xe(`Bookmark Removed ${t}`),sr.error({title:K("BOOKMARK_REMOVED"),duration:1e4}),q0(t)}function _b(){$e("panel","bookmarks")}function j0(){const e=fe("currentPage"),t={name:fe("manga")?.title??document.documentElement.title??window.location.hostname,url:window.location.href,page:e,date:new Date().toISOString().slice(0,10)};mo(t.url)?(ri("bookmarks",n=>[...n.filter(i=>i.url!==t.url)]),sr.error({title:K("BOOKMARK_REMOVED"),duration:1e4})):(ri("bookmarks",n=>[...n,t]),sr.success({title:K("BOOKMARK_SAVED"),description:K("BOOKMARK_MESSAGE").replace("##num##",e.toString()),duration:1e4}))}function Nl(){$e("panel","none")}function yb(){$e("panel","settings")}function kb(){$e("panel","keybindings")}function Eb(e){const t={};Me.default.keys(e).forEach(n=>{const i=e[n].value;if(i){const a=i.value.split(",").map(s=>s.trim()).filter(s=>s!=="");t[n]=a.length>0?a:void 0}}),St("keybinds",t),$e("panel","keybindings"),U0()}function Ab(){$e("panel","keybindingsEditor")}var Sb="#Header{background-color:var(--theme-background-color);z-index:900;flex-flow:row;justify-content:space-around;align-items:center;gap:10px;padding:0 20px;transition:transform .3s ease-in;display:flex;position:sticky;top:0;left:0;right:0;box-shadow:0 0 25px #00000080}#Header.click{padding-left:60px}@keyframes headroom{0%{transform:translateY(-100%)}to{transform:translateY(0%)}}#Header:not(.visible,.headroom-top,.fixed,.simple){animation:.3s ease-in reverse headroom;position:sticky;top:0;transform:translateY(-100%)}#Header.scroll.headroom-hide:not(.visible){animation:none;position:sticky;top:0;transform:translateY(-100%)}#Header.scroll.headroom-show,#Header.headroom-end,#Header.visible{animation:.3s ease-in headroom;position:sticky;top:0;transform:translateY(0%)}#Header.headroom-top{animation:none}#Header.fixed{animation:none;position:sticky;top:0;transform:translateY(0%)}#Header.simple{animation:none;position:static;top:0;transform:translateY(0%)}#menu{z-index:1;color:var(--theme-body-text-color);width:40px;height:40px;position:fixed}#menu:not(.click),#menu.hide{display:none}#menu.click{z-index:901;top:0;left:0}#Toolbar{order:1}#GlobalFunctions{order:4}#ViewerTitle{order:2;justify-content:center;display:flex}#ZoomControl{flex-direction:column;order:3;align-items:center;gap:3px;min-width:100px;padding:10px 5px;display:flex}#MangaTitle{word-wrap:anywhere;white-space:nowrap;text-overflow:ellipsis;min-width:200px;max-width:40vw;margin:0;padding:2px;font-size:19px;font-weight:400;overflow:hidden}",K0="#Header.mobile,#Header.tablet{flex-flow:wrap;justify-content:center;gap:0;display:flex}.mobile #ViewerTitle,.tablet #ViewerTitle{order:4;min-height:auto}.mobile #Toolbar,.tablet #Toolbar{order:1}#Header.mobile{flex-flow:wrap;justify-content:center;align-items:center}#Header.mobile.click+#Chapter:not(.webcomic,.vertical){position:sticky}.tablet #MangaTitle,.mobile #MangaTitle{max-width:90vw}.mobile #ViewerTitle{order:3;height:auto;margin-top:0;padding:0}.mobile #GlobalFunctions,.tablet #GlobalFunctions{order:2}.mobile .PageFunctions{padding:0}.mobile .PageFunctions .PageButton.Bookmark{opacity:1}.mobile #GlobalFunctions #ZoomSlider,.tablet #GlobalFunctions #ZoomSlider,.mobile .PageFunctions .PageButton:not(.Bookmark),.tablet #Counters,.mobile #ZoomControl,.mobile #ZoomDropdown,.mobile #ViewDropdown,.mobile #FileDropdown :where(:nth-child(3),:nth-child(4)),.mobile #BookMode,.mobile #MangaMode,.tablet #BookMode,.tablet #MangaMode{display:none}",Ta=class extends Je{static{this.styles=[Ee(Sb),Ee(K0),Ee(V0),yt``]}constructor(){super(),this.headroomController=new vb(this),this.titleController=new bb(this)}updated(t){super.updated(t),t.has("manga")&&this.manga&&requestAnimationFrame(()=>{this.manga&&this.titleController.observe(this.mangaTitleElement,this.manga?.title??"Manga Online Viewer")})}render(){if(!this.manga)return oe``;const{headroom:t,headerVisible:n}=this.headroomController,i=X("keybinds"),a=s=>{if(fe("device")!=="desktop")return Be;const l=i[s];return!l||l.length===0?Be:l.map(h=>oe`<kbd slot="details">${h}</kbd>`)};return oe`
      <toggle-button
        id="menu"
        mode="burger"
        class="${kt({[X("header")]:!0,hide:["top","end"].includes(t)})}"
        ?active=${n}
        @toggle=${this.headroomController.toggleHeaderVisibility}
      >
      </toggle-button>
      <header
        id="Header"
        class="${kt({[X("header")]:!0,[`headroom-${t}`]:!0,visible:n&&["hide","none"].includes(t),[fe("device")]:!0})}"
      >
        <mov-button-group
          id="Toolbar"
          class="${kt({"button-group-merged-end":["mobile","tablet"].includes(fe("device"))})}"
        >
          <mov-dropdown id="FileDropdown">
            <mov-button
              slot="trigger"
              title="${K("FILE_MENU")}"
            >
              <mov-icon
                label="File"
                name="IconDotsVertical"
              ></mov-icon>
            </mov-button>
            <mov-dropdown-item
              id="settings"
              @click=${yb}
            >
              <mov-icon
                slot="icon"
                name="IconSettings"
              ></mov-icon>
              ${K("SETTINGS")} ${a("SETTINGS")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="keybindings"
              @click=${kb}
            >
              <mov-icon
                slot="icon"
                name="IconKeyboard"
              ></mov-icon>
              ${K("KEYBINDINGS")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="bookmarks"
              class="tablets"
              @click=${_b}
            >
              <mov-icon
                slot="icon"
                name="IconBookmarks"
              ></mov-icon>
              ${K("BOOKMARKS")}
            </mov-dropdown-item>
            <mov-divider></mov-divider>
            <mov-dropdown-item
              id="AutoScroll"
              class="${kt({running:fe("autoScroll")})}"
              @click=${xa}
            >
              <mov-icon
                slot="icon"
                name="${fe("autoScroll")?"IconPlayerPause":"IconPlayerPlay"}"
              ></mov-icon>
              ${K("SCROLL_START")} ${a("SCROLL_START")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="pageControls"
              class="tablets phones"
              @click="${k3}"
              ?selected=${X("hidePageControls")}
            >
              <mov-icon
                slot="icon"
                name="IconListNumbers"
              ></mov-icon>
              ${K("TOGGLE_CONTROLS")}
            </mov-dropdown-item>
          </mov-dropdown>

          <mov-dropdown
            id="ViewDropdown"
            checkable
          >
            <mov-button
              slot="trigger"
              title="${K("VIEW_MENU")}"
            >
              <mov-icon
                label="View"
                name="IconApiBook"
              ></mov-icon>
            </mov-button>
            <mov-dropdown-item
              id="webComic"
              class="tablets"
              @click="${pr("WebComic")}"
              ?selected=${X("viewMode")==="WebComic"}
            >
              <mov-icon
                slot="icon"
                name="IconSpacingVertical"
              ></mov-icon>
              ${K("VIEW_MODE_WEBCOMIC")} ${a("VIEW_MODE_WEBCOMIC")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="verticalMode"
              class="tablets"
              @click="${pr("Vertical")}"
              ?selected=${X("viewMode")==="Vertical"}
            >
              <mov-icon
                slot="icon"
                name="IconArrowAutofitDown"
              ></mov-icon>
              ${K("VIEW_MODE_VERTICAL")} ${a("VIEW_MODE_VERTICAL")}
            </mov-dropdown-item>
            <mov-divider></mov-divider>
            <mov-dropdown-item
              id="ltrMode"
              @click="${pr("FluidLTR")}"
              ?selected=${X("viewMode")==="FluidLTR"}
            >
              <mov-icon
                slot="icon"
                name="IconArrowAutofitRight"
              ></mov-icon>
              ${K("VIEW_MODE_LEFT")} ${a("VIEW_MODE_LEFT")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="rtlMode"
              @click="${pr("FluidRTL")}"
              ?selected=${X("viewMode")==="FluidRTL"}
            >
              <mov-icon
                slot="icon"
                name="IconArrowAutofitLeft"
              ></mov-icon>
              ${K("VIEW_MODE_RIGHT")} ${a("VIEW_MODE_RIGHT")}
            </mov-dropdown-item>
            <mov-divider></mov-divider>
            <mov-dropdown-item
              id="BookMode"
              @click="${pr("Book")}"
              ?selected=${X("viewMode")==="Book"}
            >
              <mov-icon
                slot="icon"
                name="IconBookArrowRight"
              ></mov-icon>
              ${K("VIEW_MODE_BOOK")} ${a("VIEW_MODE_BOOK")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="MangaMode"
              @click="${pr("Manga")}"
              ?selected=${X("viewMode")==="Manga"}
            >
              <mov-icon
                slot="icon"
                name="IconBookArrowLeft"
              ></mov-icon>
              ${K("VIEW_MODE_MANGA")} ${a("VIEW_MODE_MANGA")}
            </mov-dropdown-item>
            <mov-divider></mov-divider>
            <mov-dropdown-item
              id="GalleryMode"
              @click="${pr("Gallery")}"
              ?selected=${X("viewMode")==="Gallery"}
            >
              <mov-icon
                slot="icon"
                name="IconLayoutDashboard"
              ></mov-icon>
              ${K("VIEW_MODE_GALLERY")} ${a("VIEW_MODE_GALLERY")}
            </mov-dropdown-item>
          </mov-dropdown>
          <mov-dropdown
            id="ZoomDropdown"
            checkable
          >
            <mov-button
              slot="trigger"
              title="${K("ZOOM_MENU")}"
            >
              <mov-icon
                label="Zoom"
                name="IconZoom"
              ></mov-icon>
            </mov-button>
            <mov-dropdown-item
              id="enlarge"
              @click="${Ca()}"
            >
              <mov-icon
                slot="icon"
                name="IconZoomInArea"
              ></mov-icon>
              ${K("ENLARGE")} ${a("ENLARGE")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="restore"
              @click="${Oo("percent",100)}"
            >
              <mov-icon
                slot="icon"
                name="IconZoomPan"
              ></mov-icon>
              ${K("RESTORE")} ${a("RESTORE")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="reduce"
              @click="${Ca(-1)}"
            >
              <mov-icon
                slot="icon"
                name="IconZoomOutArea"
              ></mov-icon>
              ${K("REDUCE")} ${a("REDUCE")}
            </mov-dropdown-item>
            <mov-divider></mov-divider>
            <mov-dropdown-item
              id="fitWidth"
              @click="${Oo("width")}"
              ?selected=${X("zoomMode")==="width"}
            >
              <mov-icon
                slot="icon"
                name="IconArrowAutofitWidth"
              ></mov-icon>
              ${K("FIT_WIDTH")} ${a("FIT_WIDTH")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="fitHeight"
              @click="${Oo("height")}"
              ?selected=${X("zoomMode")==="height"}
            >
              <mov-icon
                slot="icon"
                name="IconArrowAutofitHeight"
              ></mov-icon>
              ${K("FIT_HEIGHT")} ${a("FIT_HEIGHT")}
            </mov-dropdown-item>
          </mov-dropdown>
        </mov-button-group>
        <mov-button-group
          id="GlobalFunctions"
          class="${kt({"button-group-merged-start":["mobile","tablet"].includes(fe("device"))})}"
        >
          <mov-button
            id="series"
            href="${this.manga.series??Be}"
            @click=${gi}
            title="${K("RETURN_CHAPTER_LIST")}"
            ?disabled=${!this.manga.series}
          >
            <mov-icon name="IconBooksReturn"></mov-icon>
          </mov-button>
          <mov-button
            id="download"
            title="${K("DOWNLOAD_ZIP")}"
            @click=${O0}
            ?disabled=${fe("download")!=="available"}
            ?loading=${fe("download")==="working"}
          >
            <mov-icon
              name="${fe("download")==="working"?"IconLoader2":"IconFileDownload"}"
            ></mov-icon>
          </mov-button>
          <mov-button
            id="prev"
            href="${this.manga.prev??Be}"
            title="${K("PREVIOUS_CHAPTER")}"
            @click=${gi}
            ?disabled=${!this.manga.prev}
          >
            <mov-icon name="IconArrowBigLeft"></mov-icon>
          </mov-button>
          <mov-button
            id="next"
            href="${this.manga.next??Be}"
            title="${K("NEXT_CHAPTER")}"
            @click=${gi}
            ?disabled=${!this.manga.next}
          >
            <mov-icon name="IconArrowBigRight"></mov-icon>
          </mov-button>
        </mov-button-group>
        <div id="ViewerTitle">
          <h1
            id="MangaTitle"
            title="${this.manga.title}"
          >
            ${this.titleController.value??this.manga.title}
          </h1>
        </div>
        <div id="ZoomControl">
          <output id="ZoomVal">
            Zoom:
            ${X("zoomMode")==="percent"?`${X("zoomValue")}%`:X("zoomMode")}
          </output>
          <mov-slider
            id="Zoom"
            name="Zoom"
            .value="${X("zoomValue")}"
            min="${X("minZoom")}"
            max="200"
            show-tooltip
            @input=${ib}
          ></mov-slider>
        </div>
      </header>
    `}};D([en("#MangaTitle")],Ta.prototype,"mangaTitleElement",void 0),D([j({type:Object})],Ta.prototype,"manga",void 0),Ta=D([ot("reader-header"),(0,To.useStores)(Ct,po,er)],Ta);var Mb="#BookmarksPanel{text-align:center;--width:100vw}#BookmarksList{flex-direction:column;gap:5px;max-height:60vh;padding:0 5px;display:flex;overflow:auto}.bookmark-item{text-align:left;border-radius:5px;align-items:center;gap:1rem;padding:.75rem 1rem;transition:background-color .15s ease-in-out;display:flex}.bookmark-item:hover{background-color:var(--mov-color-fill-quiet,#8080801a)}.bookmark-info{flex-grow:1;min-width:0}.bookmark-name{font-weight:500}.bookmark-url{white-space:nowrap;text-overflow:ellipsis;color:color-mix(in oklab, var(--theme-body-text-color), transparent 30%);font-size:14px;text-decoration:none;display:block;overflow:hidden}.bookmark-url:hover{text-decoration:underline}.bookmark-details{text-align:right;width:90px;color:color-mix(in oklab, var(--theme-body-text-color), transparent 30%);flex-shrink:0;font-size:14px}.bookmark-details>div{padding:2px 0}.bookmark-actions{flex-shrink:0;gap:.5rem;display:flex}",Y0=class extends Je{static{this.styles=[Ee(Mb)]}listBookmarks(){return xs(X("bookmarks"))?[K("LIST_EMPTY")]:X("bookmarks").map((t,n)=>oe`
        <div
          id="Bookmark${n+1}"
          class="bookmark-item"
        >
          <div class="bookmark-info">
            <div class="bookmark-name">${t.name}</div>
            <a
              class="bookmark-url"
              href="${t.url}"
              target="_blank"
              >${t.url}</a
            >
          </div>
          <div class="bookmark-details">
            <div class="bookmark-date">${new Date(t.date).toISOString().slice(0,10)}</div>
            <div class="bookmark-page">Page: ${t.page}</div>
          </div>
          <div class="bookmark-actions">
            <a
              href="${t.url}"
              target="_blank"
            >
              <mov-button
                title="Open Bookmark"
                size="small"
              >
                <mov-icon
                  name="IconExternalLink"
                  size="16px"
                ></mov-icon>
              </mov-button>
            </a>
            <mov-button
              title="Delete Bookmark"
              size="small"
              value="${t.url}"
              @click=${wb}
            >
              <mov-icon
                name="IconTrash"
                size="16px"
              ></mov-icon>
            </mov-button>
          </div>
        </div>
      `)}render(){return oe`
      <mov-dialog
        id="BookmarksPanel"
        ?open=${fe("panel")==="bookmarks"}
        light-dismiss
        @close=${Nl}
      >
        <mov-button
          class="Bookmark"
          title="${K("BOOKMARK")}"
          @click=${j0}
          slot="header-actions"
        >
          <mov-icon
            name="${mo()===void 0?"IconBookmark":"IconBookmarkOff"}"
            size="24px"
          ></mov-icon>
        </mov-button>
        <h2 slot="header">${K("BOOKMARKS")}</h2>
        <h2 slot="label">${K("BOOKMARKS")}</h2>
        <div id="BookmarksList">${this.listBookmarks()}</div>
      </mov-dialog>
    `}};Y0=D([ot("bookmark-panel"),(0,To.useStores)(Ct,po,er)],Y0);function*xb(e,t){const n=typeof t=="function";if(e!==void 0){let i=-1;for(const a of e)i>-1&&(yield n?t(i):t),i++,yield a}}var Ib="#KeybindingsPanel div{line-height:1.5em}#KeybindingsPanel #KeybindingsList{grid-template-columns:1fr 2fr;gap:5px;display:grid}#KeybindingsPanel .ControlButton{justify-content:center;align-items:center;gap:.5em;margin-left:3px;padding:5px 10px}#KeybindingsPanel label{display:ruby}#KeybindingsPanel input{width:100%;display:inline-block}#KeybindingsPanel #HotKeysRules{grid-column:span 2}",X0=class extends Je{constructor(...t){super(...t),this.keybindsRefs=Me.default.keys(X("keybinds")).reduce((n,i)=>(n[i]=Ds(),n),{})}static{this.styles=[Ee(Ib),Ee(V0)]}keybindList(){const t=X("keybinds");return Me.default.keys(t).map(n=>{const i=t[n]?.length?xb(t[n]?.map(a=>oe`<kbd class="dark">${a}</kbd>`)," / "):"";return oe`<span>${K(n)}:</span> <span>${i}</span>`})}keybindEditor(){const t=X("keybinds");return Me.default.keys(t).map(n=>oe`<label for="${n}">${K(n)}:</label>
          <input
            type="text"
            class="KeybindInput"
            id="${n}"
            name="${n}"
            value="${t[n]?.join(" , ")??Be}"
            ${Ns(this.keybindsRefs[n])}
          />`)}render(){return oe`
      <mov-drawer
        id="KeybindingsPanel"
        ?open=${fe("panel").startsWith("keybindings")}
        placement="end"
        @close=${Nl}
      >
        <h2 slot="label">${K("KEYBINDINGS")}</h2>
        <div
          class="controls"
          slot="header-actions"
        >
          ${fe("panel")==="keybindingsEditor"?oe` <mov-button
                id="SaveKeybindings"
                type="button"
                title="${K("SAVE_KEYBINDS")}"
                @click=${()=>Eb(this.keybindsRefs)}
              >
                <mov-icon
                  name="IconDeviceFloppy"
                  size="16px"
                  slot="start"
                ></mov-icon>
                ${K("BUTTON_SAVE")}
              </mov-button>`:oe` <mov-button
                id="EditKeybindings"
                type="button"
                title="${K("EDIT_KEYBINDS")}"
                @click=${Ab}
              >
                <mov-icon
                  name="IconPencil"
                  size="16px"
                  slot="start"
                ></mov-icon>
                ${K("BUTTON_EDIT")}
              </mov-button>`}
        </div>
        <div id="KeybindingsList">
          ${fe("panel")==="keybindingsEditor"?this.keybindEditor():this.keybindList()}
        </div>
        <div id="HotKeysRules">${Nd(K("KEYBIND_RULES"))}</div>
      </mov-drawer>
    `}};X0=D([ot("keybindings-panel"),(0,To.useStores)(Ct,po,er)],X0);function*Cb(e,t){if(e!==void 0){let n=0;for(const i of e)yield t(i,n++)}}function La(e,t=1){return Array(e).fill(0).map((n,i)=>i+1).filter(n=>n>=t)}function ki(e){const t=e.replace(/[\t\n\r]/gim,"").replace(/\s\s+/g," ");return`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(t).replace(/\(/g,"%28").replace(/\)/g,"%29")}`}var Ra=e=>e%100===0?15:e%50===0?10:e%25===0?5:2.5;function Ob(e,t,n,i){let a="";for(let s=0;s<=e;s+=5){const l=fo` <line
      x1="${s}"
      y1="0"
      x2="${s}"
      y2="${Ra(s)}"
    />`;if(a+=l,s!==0&&s%50===0){const h=fo` <text
        x="${s}"
        y="25"
        text-anchor="middle"
        font-size="${Ra(s)}px"
      >
        ${s}
      </text>`;a+=h}}for(let s=0;s<=t;s+=5){const l=fo` <line
      x1="0"
      y1="${s}"
      x2="${Ra(s)}"
      y2="${s}"
    />`;if(a+=l,s!==0&&s%50===0){const h=fo` <text
        x="25"
        y="${s}"
        text-anchor="middle"
        dominant-baseline="middle"
        font-size="${Ra(s)}px"
      >
        ${s}
      </text>`;a+=h}}return fo` <svg
    xmlns="http://www.w3.org/2000/svg"
    width="${e}"
    height="${t}"
    viewBox="0 0 ${e} ${t}"
  >
    <rect
      width="${e}"
      height="${t}"
      fill="${n}"
    />
    <text
      fill="${i}"
      font-family="Verdana, Arial, Helvetica, sans-serif"
      font-size="30"
      dy="10.5"
      font-weight="bold"
      x="50%"
      y="50%"
      text-anchor="middle"
    >
      ${e}x${t}
    </text>
    <g
      stroke-width="1"
      font-family="Verdana, Arial, Helvetica, sans-serif"
      font-size="10px"
      font-weight="100"
      fill="${i}"
      stroke="${i}"
    >
      ${a}
    </g>
  </svg>`}function qt(e,t,n="#0F1C3F",i="#ECEAD9"){return ki(Ob(e,t,n,i))}var J0=Me.default.values(It).map(e=>e[900]),Q0=[400,600,900,1200,1400,1600,1970],eh=[600,800,1e3,1200,1400,2e3,2600];function Tb(){const e=Math.floor(Math.random()*Q0.length),t=Math.floor(Math.random()*eh.length),n=Math.floor(Math.random()*J0.length);return qt(Q0[e],eh[t],J0[n])}function th(e){e.deltaY&&(e.currentTarget.scrollLeft+=e.deltaY+e.deltaX,e.preventDefault())}function Lb(e){e.deltaY&&(e.currentTarget.scrollLeft-=e.deltaY-e.deltaX,e.preventDefault())}var Rb=":host{--nav-collapsed-size:34px;--nav-expanded-size:200px;--header-height:80px}#Navigation{color:var(--theme-text-color);background-color:var(--theme-hightlight-color);box-sizing:border-box;white-space:nowrap;text-align:center;z-index:1000;gap:5px;line-height:0;transition:all .3s;display:flex;position:fixed;overflow:hidden}#Thumbnails{flex-grow:1;justify-content:flex-start;gap:5px;display:flex}#Navigation.horizontal #Thumbnails{flex-direction:row;overflow:auto hidden}#Navigation.vertical #Thumbnails{flex-direction:column;justify-content:flex-start;overflow:hidden auto}#Navigation.left #Thumbnails{direction:rtl}:host(:not([forceExpanded])) #Navigation:not(:hover) #Thumbnails{display:none}#NavigationCounters{text-align:center;white-space:nowrap;flex-shrink:0;justify-content:center;align-items:center;gap:.5rem;padding:5px;line-height:1rem;display:flex}#Navigation.horizontal{height:var(--nav-collapsed-size);flex-direction:column;width:100%;left:0;right:0}:host([forceExpanded]) #Navigation.horizontal,#Navigation.horizontal:hover{height:var(--nav-expanded-size)}#Navigation.bottom{bottom:0}#Navigation.vertical{width:var(--nav-collapsed-size);flex-direction:row;height:100%;transition:top .3s,height .3s,width .3s;bottom:0}:host([forceExpanded]) #Navigation.vertical,#Navigation.vertical:hover{width:var(--nav-expanded-size)}#Navigation.left{flex-direction:row-reverse;left:0}#Navigation.right{right:0}#Navigation.vertical #NavigationCounters{writing-mode:vertical-rl;transform:rotate(180deg)}#Navigation.right #NavigationCounters{transform:rotate(0)}#Navigation.vertical.header{top:var(--header-height);height:calc(100% - var(--header-height))}#Navigation .Thumbnail{justify-content:center;align-items:center;width:150px;height:150px;margin:0 5px;display:inline-flex;position:relative}.ThumbnailIndex{color:var(--mov-color-on-loud);background-color:var(--mov-color-fill-loud);opacity:.9;text-align:center;z-index:1;width:100%;font-weight:600;line-height:1.2rem;display:block;position:absolute;bottom:30%;left:0}.ThumbnailImg{cursor:pointer;background-position:50%;background-repeat:no-repeat;background-size:48px 48px;min-width:80px;max-width:150px;min-height:150px;max-height:150px;display:inline-block}",Ei=class extends Je{constructor(...t){super(...t),this.mode="bottom",this.forceExpanded=!1,this.isHiding=!1}static{this.styles=[Ee(Rb),yt`
      #Navigation {
        transition: opacity 0.2s ease-in-out;
      }
      #Navigation.hiding {
        opacity: 0;
        /* Disable transition during position change to avoid animating the hide */
        transition: none;
      }

      .Thumbnail .ThumbnailImg[src=''],
      .Thumbnail .ThumbnailImg:not([src]) {
        background-image: url('${Ee(ki(Vs))}');
      }

      .Thumbnail .ThumbnailImg.imgBroken {
        background-image: url('${Ee(ki(Zs))}');
      }
    `]}willUpdate(t){t.has("mode")&&(this.isHiding=!0)}updated(t){t.has("mode")&&this.isHiding&&setTimeout(()=>{this.isHiding=!1},50)}render(){if(this.mode==="disabled")return Be;const t=fe("manga"),n={horizontal:this.mode==="bottom",vertical:this.mode!=="bottom",left:this.mode==="left",right:this.mode==="right",bottom:this.mode==="bottom",hiding:this.isHiding},i=fe("images")||{},a=Me.default.keys(i).filter(s=>{const l=parseInt(s,10);return l>=(t?.begin??1)&&l<=(t?.pages??1)&&i[l]?.status==="loaded"}).length;return oe`
      <nav
        id="Navigation"
        class="${kt(n)}"
      >
        <div
          id="NavigationCounters"
          class="ControlLabel"
        >
          ${Y4}
          <i>${a}</i> /
          <b> ${(t?.pages??1)-((t?.begin??1)-1)} </b>
          ${K("PAGES_LOADED")}
          <span>: ${fe("currentPage")}</span>
        </div>
        <div
          id="Thumbnails"
          @wheel=${this.mode==="bottom"?th:null}
        >
          ${Cb(La(t?.pages??1,t?.begin??1),s=>oe` <figure
                id="Thumbnail${s}"
                class="Thumbnail"
                role="button"
                tabindex="0"
                title="Go to page ${s}"
                @click=${()=>S3(s)}
              >
                <img
                  id="ThumbnailImg${s}"
                  alt=""
                  class="ThumbnailImg"
                  src=${fe("images")?.[s]?.src??Be}
                />
                <figcaption class="ThumbnailIndex">${s}</figcaption>
              </figure>`)}
        </div>
      </nav>
    `}};D([j({type:String})],Ei.prototype,"mode",void 0),D([j({type:Boolean})],Ei.prototype,"forceExpanded",void 0),D([zt()],Ei.prototype,"isHiding",void 0),Ei=D([ot("navbar-thumbnails"),(0,To.useStores)(Ct,po,er)],Ei);function Pb(){const e=Vn()?"true":"false";return oe` <div class="ControlLabel">
    ${K("SCOPE")}
    <segmented-control
      .value=${e}
      @change=${H3}
    >
      <segmented-control-option
        value="false"
        label=${K("GLOBAL")}
        icon="IconWorldCog"
      ></segmented-control-option>
      <segmented-control-option
        value="true"
        label=${window.location.hostname}
        icon="IconLocationCog"
      ></segmented-control-option>
    </segmented-control>
  </div>`}function $b(){return uo.map(e=>oe`
      <option
        value="${e.ID}"
        ?selected=${X("locale")===e.ID}
      >
        ${e.NAME}
      </option>
    `)}function Db(){return oe` <div class="ControlLabel locale">
    ${K("LANGUAGE")}
    <select
      id="locale"
      @change="${F3}"
    >
      ${$b()}
    </select>
  </div>`}var zb=()=>oe`${Pb()} ${Db()}`;function Nb(){return oe`
    <div class="ControlLabel loadMode">
      ${K("DEFAULT_LOAD_MODE")}
      <select
        id="loadMode"
        @change="${G3}"
      >
        <option
          value="wait"
          ?selected=${X("loadMode")==="wait"}
        >
          ${K("LOAD_MODE_NORMAL")}
        </option>
        <option
          value="always"
          ?selected=${X("loadMode")==="always"}
        >
          ${K("LOAD_MODE_ALWAYS")}
        </option>
        <option
          value="never"
          ?selected=${X("loadMode")==="never"}
        >
          ${K("LOAD_MODE_NEVER")}
        </option>
      </select>
    </div>
  `}function Bb(){return oe`
    <div class="ControlLabel PagesPerSecond">
      ${K("LOAD_SPEED")}
      <select
        id="PagesPerSecond"
        @change="${K3}"
      >
        <option
          value="Safe"
          ?selected=${X("loadSpeed")==="Safe"}
        >
          ${K("SLOWLY")} (Safe)
        </option>
        <option
          value="Standard"
          ?selected=${X("loadSpeed")==="Standard"}
        >
          ${K("NORMAL")} (Standard)
        </option>
        <option
          value="Faster"
          ?selected=${X("loadSpeed")==="Faster"}
        >
          ${K("FAST")} (Faster)
        </option>
        <option
          value="Extreme"
          ?selected=${X("loadSpeed")==="Extreme"}
        >
          ${K("EXTREME")} (Extreme)
        </option>
        <option
          value="All"
          ?selected=${X("loadSpeed")==="All"}
        >
          ${K("ALL_PAGES")} (All)
        </option>
      </select>
    </div>
  `}var Hb=()=>oe`${Nb()} ${Bb()}`;function Fb(){return oe`
    <div class="ControlLabel fitIfOversize">
      ${K("FIT_WIDTH_OVERSIZED")}
      <mov-switch
        name="fitIfOversize"
        ?checked=${X("fitWidthIfOversize")}
        @change=${W3}
      ></mov-switch>
    </div>
    <div class="ControlLabel downloadZip">
      ${K("DOWNLOAD_IMAGES")}
      <mov-switch
        name="downloadZip"
        ?checked=${X("downloadZip")}
        @change=${Z3}
      ></mov-switch>
    </div>
    <div class="ControlLabel hidePageControls">
      ${K("HIDE_CONTROLS")}
      <mov-switch
        name="hidePageControls"
        ?checked=${X("hidePageControls")}
        @change=${J3}
      ></mov-switch>
    </div>
    <div class="ControlLabel lazyLoadImages">
      ${K("LAZY_LOAD_IMAGES_ENABLE")}
      <mov-switch
        name="lazyLoadImages"
        ?checked=${X("lazyLoadImages")}
        @change=${q3}
      ></mov-switch>
    </div>
  `}function Gb(){return oe`
    <div
      class="${kt({ControlLabel:!0,lazyStart:!0,ControlLabelItem:!0,show:X("lazyLoadImages")})}"
    >
      <span>
        ${K("LAZY_LOAD_IMAGES")}
        <output
          id="lazyStartVal"
          class="RangeValue"
          for="lazyStart"
        >
          ${X("lazyStart")}
        </output>
      </span>
      <mov-slider
        name="lazyStart"
        id="lazyStart"
        .value="${X("lazyStart")}"
        min="5"
        max="100"
        step="5"
        show-tooltip
        show-ticks
        tick-count="3"
        @input="${j3}"
      ></mov-slider>
    </div>
  `}function Wb(){return oe`
    <div class="ControlLabel headerType">
      ${K("HEADER_TYPE")}
      <segmented-control
        .value=${X("header")}
        @change=${Q3}
        labelPosition="bottom"
      >
        <segmented-control-option
          value="hover"
          label=${K("HEADER_HOVER")}
          icon="arrows-move"
        ></segmented-control-option>
        <segmented-control-option
          value="scroll"
          label=${K("HEADER_SCROLL")}
          icon="arrows-vertical"
        ></segmented-control-option>
        <segmented-control-option
          value="click"
          label=${K("HEADER_CLICK")}
          icon="hand-click"
        ></segmented-control-option>
        <segmented-control-option
          value="fixed"
          label=${K("HEADER_FIXED")}
          icon="pin"
        ></segmented-control-option>
        <segmented-control-option
          value="simple"
          label=${K("HEADER_SIMPLE")}
          icon="box-align-top"
        ></segmented-control-option>
      </segmented-control>
    </div>
  `}function Ub(){return oe`
    <div class="ControlLabel pagination">
      ${K("PAGINATION_TYPE")}
      <segmented-control
        .value=${X("pagination")}
        @change=${V3}
        labelPosition="side"
      >
        <segmented-control-option
          value="disabled"
          label=${K("PAGINATION_DISABLED")}
          icon="x"
        ></segmented-control-option>
        <segmented-control-option
          value="slider"
          label=${K("PAGINATION_SLIDER")}
          icon="adjustments-horizontal"
        ></segmented-control-option>
        <segmented-control-option
          value="side-arrows"
          label=${K("PAGINATION_ARROWS")}
          icon="arrows-left-right"
        ></segmented-control-option>
        <segmented-control-option
          value="both"
          label=${K("PAGINATION_BOTH")}
          icon="arrows-horizontal"
        ></segmented-control-option>
      </segmented-control>
    </div>
  `}function Vb(){return oe`
    <div class="ControlLabel navbarType">
      ${K("NAVBAR_TYPE")}
      <segmented-control
        .value=${X("navbar")}
        @change=${U3}
        labelPosition="tooltip"
      >
        <segmented-control-option
          value="bottom"
          label=${K("NAVBAR_BOTTOM")}
          icon="layout-bottombar"
        ></segmented-control-option>
        <segmented-control-option
          value="left"
          label=${K("NAVBAR_LEFT")}
          icon="layout-sidebar"
        ></segmented-control-option>
        <segmented-control-option
          value="right"
          label=${K("NAVBAR_RIGHT")}
          icon="layout-sidebar-right"
        ></segmented-control-option>
        <segmented-control-option
          value="disabled"
          label=${K("NAVBAR_DISABLED")}
          icon="x"
        ></segmented-control-option>
      </segmented-control>
    </div>
  `}function Zb(){return oe`
    <div class="ControlLabel autoScroll">
      <span>
        ${K("AUTO_SCROLL_HEIGHT")}
        <output
          id="scrollHeightVal"
          class="RangeValue"
          for="scrollHeight"
        >
          ${X("scrollHeight")}px
        </output>
      </span>
      <mov-slider
        name="scrollHeight"
        id="scrollHeight"
        .value="${X("scrollHeight")}"
        min="1"
        max="${Math.ceil(window.innerHeight/200)*100}"
        step="1"
        show-tooltip
        show-ticks
        tick-count="5"
        @input="${eb}"
      ></mov-slider>
    </div>
  `}var qb=()=>oe`${Fb()} ${Ub()} ${Gb()} ${Wb()} ${Vb()} ${Zb()}`;function jb(){const e=X("colorScheme")==="dark";St("colorScheme",e?"light":"dark"),document.documentElement.classList.remove(e?"dark":"light"),document.documentElement.classList.add(X("colorScheme"))}function Pa(e){St("theme",e instanceof CustomEvent?e.detail.value:e.currentTarget.value)}function Kb(){return oe`
    <div class="ControlLabel ColorSchemeSelector">
      <label>${K("COLOR_SCHEME")}</label>
      <toggle-button
        id="ColorScheme"
        mode="theme"
        @click=${jb}
        ?active=${X("colorScheme")==="dark"}
      >
      </toggle-button>
    </div>
    <div class="ControlLabel ThemeSelector">
      <label>${K("THEME_COLOR")}</label>
      <mov-color-picker
        id="ThemeHex"
        .value="${X("theme")}"
        title="${X("theme")}"
        @input=${Pa}
        .swatches=${Me.default.values(Cl)}
      ></mov-color-picker>
    </div>
    <color-palette
      .baseColor="${X("theme")}"
      mode="steps"
      .selected=${X("theme")}
      @change="${Pa}"
    ></color-palette>
    <span id="ColorRecommendations">
      ${Me.default.values(Cl).map(e=>oe`<color-swatch
            .color="${e}"
            .selected=${X("theme")}
            @change=${Pa}
          ></color-swatch>`)}
    </span>
    <details class="ControlLabel">
      <summary>${K("THEME_HUE")} & ${K("THEME_SHADE")}</summary>
      <color-panel
        .selected=${X("theme")}
        @change=${Pa}
      ></color-panel>
    </details>
  `}function Yb(){return oe` <div class="ControlLabel DefaultZoomMode">
    ${K("DEFAULT_ZOOM_MODE")}
    <segmented-control
      .value=${X("zoomMode")}
      @change=${nb}
      labelPosition="tooltip"
    >
      <segmented-control-option
        value="percent"
        label=${K("PERCENT")}
        icon="file-percent"
      ></segmented-control-option>
      <segmented-control-option
        value="width"
        label=${K("FIT_WIDTH")}
        icon="arrow-autofit-width"
      ></segmented-control-option>
      <segmented-control-option
        value="height"
        label=${K("FIT_HEIGHT")}
        icon="arrow-autofit-height"
      ></segmented-control-option>
    </segmented-control>
  </div>`}function Xb(){return oe`
    <div
      class="${kt({ControlLabel:!0,zoomValue:!0,ControlLabelItem:!0,show:X("zoomMode")==="percent"})}"
    >
      <span>
        ${K("DEFAULT_ZOOM")}
        <output
          id="zoomValueVal"
          class="RangeValue"
          for="zoomValue"
        >
          ${X("zoomValue")}%
        </output>
      </span>
      <mov-slider
        name="zoomValue"
        id="zoomValue"
        .value="${X("zoomValue")}"
        min="5"
        max="200"
        step="5"
        show-tooltip
        show-ticks
        tick-count="5"
        @input="${ob}"
      ></mov-slider>
    </div>
  `}function Jb(){return oe`
    <div class="ControlLabel minZoom">
      <span>
        ${K("MINIMUM_ZOOM")}
        <output
          id="minZoomVal"
          class="RangeValue"
          for="minZoom"
        >
          ${X("minZoom")}%
        </output>
      </span>
      <mov-slider
        name="minZoom"
        id="minZoom"
        .value="${X("minZoom")}"
        min="25"
        max="100"
        step="5"
        show-tooltip
        show-ticks
        tick-count="4"
        @input="${X3}"
      ></mov-slider>
    </div>
  `}function Qb(){return oe`
    <div class="ControlLabel zoomStep">
      <span>
        ${K("ZOOM_STEP")}
        <output
          id="zoomStepVal"
          class="RangeValue"
          for="zoomStep"
        >
          ${X("zoomStep")}%
        </output>
      </span>
      <mov-slider
        name="zoomStep"
        id="zoomStep"
        .value="${X("zoomStep")}"
        min="10"
        max="50"
        step="5"
        show-tooltip
        show-ticks
        tick-count="5"
        @input="${Y3}"
      ></mov-slider>
    </div>
  `}function e6(){return oe`
    <div class="ControlLabel viewMode">
      ${K("DEFAULT_VIEW_MODE")}
      <segmented-control
        .value=${X("viewMode")}
        @change=${ab}
        labelPosition="tooltip"
      >
        <segmented-control-option
          value="Vertical"
          label=${K("VIEW_MODE_VERTICAL")}
          icon="arrow-autofit-down"
        ></segmented-control-option>
        <segmented-control-option
          value="WebComic"
          label=${K("VIEW_MODE_WEBCOMIC")}
          icon="spacing-vertical"
        ></segmented-control-option>
        <segmented-control-option
          value="FluidLTR"
          label=${K("VIEW_MODE_LEFT")}
          icon="arrow-autofit-right"
        ></segmented-control-option>
        <segmented-control-option
          value="FluidRTL"
          label=${K("VIEW_MODE_RIGHT")}
          icon="arrow-autofit-left"
        ></segmented-control-option>
        <segmented-control-option
            value="Book"
            label=${K("VIEW_MODE_BOOK")}
            icon="IconBookArrowRight"
        ></segmented-control-option>
        <segmented-control-option
            value="Manga"
            label=${K("VIEW_MODE_MANGA")}
            icon="IconBookArrowLeft"
        ></segmented-control-option>
        <segmented-control-option
            value="Gallery"
            label=${K("VIEW_MODE_GALLERY")}
            icon="IconLayoutDashboard"
        ></segmented-control-option>
      </segmented-control>
    </div>
  `}var t6=()=>oe`${Yb()} ${Xb()} ${Jb()} ${Qb()} ${e6()}`,r6="#SettingsPanel{color:var(--theme-text-color)}#SettingsPanel fieldset{border:1px solid var(--theme-body-text-color);border-radius:10px;padding:3px}#SettingsPanel .ControlLabel{flex-flow:wrap;justify-content:space-between;align-items:center;padding:2px;display:flex}#SettingsPanel .ControlLabelItem{justify-content:space-between;align-items:center;display:flex}#SettingsPanel .ControlLabelItem:not(.show){display:none}#SettingsPanel input[type=range]{width:100%}#SettingsPanel .RangeValue{color:var(--mov-color-on-loud);text-align:center;background:var(--mov-color-fill-loud);border-radius:3px;margin-left:8px;padding:2px 5px;line-height:20px;display:inline-block}#SettingsPanel datalist{flex-direction:row;justify-content:space-between;width:100%;display:flex}#SettingsPanel datalist option{writing-mode:vertical-lr;padding:0}#ThemeSelector{width:110px}#ColorRecommendations{flex-flow:wrap;gap:2px;display:flex}#Chapter:not(.Vertical)~#SettingsPanel .verticalSeparator{display:none}#ColorScheme{min-width:28px;min-height:28px;padding:5px}#ResetSettings,#ResetSettings::part(base){width:100%}",rh=class extends Je{static{this.styles=[yt`
      #SettingsPanel.mobile #SettingsPanelZoom,
      #SettingsPanel.mobile .fitIfOversize,
      #SettingsPanel.mobile .showThumbnails,
      #SettingsPanel.mobile .lazyLoadImages,
      #SettingsPanel.mobile .downloadZip,
      #SettingsPanel.mobile .minZoom,
      #SettingsPanel.mobile .zoomStep,
      #SettingsPanel.mobile .headerType,
      #SettingsPanel.mobile .navbarType,
      #SettingsPanel.mobile .autoScroll {
        display: none;
      }
    `,Ee(r6)]}render(){return oe`
      <mov-drawer
        id="SettingsPanel"
        ?open=${fe("panel")==="settings"}
        @close=${Nl}
        placement="start"
        class="${fe("device")}"
      >
        <h2 slot="label">${K("SETTINGS")}</h2>
        <mov-button
          id="ResetSettings"
          @click="${F5}"
          title="${K("BUTTON_RESET_SETTINGS")}"
        >
          <mov-icon
            name="IconSettingsOff"
            size="20px"
            slot="start"
          ></mov-icon>
          ${K("BUTTON_RESET_SETTINGS")}
        </mov-button>
        <div class="content">
          <fieldset id="SettingsPanelGeneral">
            <legend>${K("GENERAL")}</legend>
            ${zb()}
          </fieldset>
          <fieldset id="SettingsPanelTheme">
            <legend>${K("THEME")}</legend>
            ${Kb()}
          </fieldset>
          <fieldset id="SettingsPanelLoading">
            <legend>${K("LOADING")}</legend>
            ${Hb()}
          </fieldset>
          <fieldset id="SettingsPanelZoom">
            <legend>${K("ZOOM")}</legend>
            ${t6()}
          </fieldset>
          <fieldset id="SettingsPanelOthers">
            <legend>${K("OTHERS")}</legend>
            ${qb()}
          </fieldset>
        </div>
      </mov-drawer>
    `}};rh=D([ot("settings-panel"),(0,To.useStores)(Ct,po,er)],rh);function n6(e){return new Promise(function(t,n){var i=new FileReader,a=typeof i.readAsBinaryString=="function";i.onloadend=function(){var s=i.result||"";if(a)return t(s);t(a6(s))},i.onerror=n,a?i.readAsBinaryString(e):i.readAsArrayBuffer(e)})}function o6(e){return n6(e).then(btoa)}function i6(e){return o6(e).then(function(t){return"data:"+e.type+";base64,"+t})}function a6(e){for(var t="",n=new Uint8Array(e),i=n.byteLength,a=-1;++a<i;)t+=String.fromCharCode(n[a]);return t}async function s6(e,t){xe("Fetching page: ",e);try{const n=await(await fetch(e)).text();return new DOMParser().parseFromString(n,t)}catch(n){throw xe("Failed to fetch page: ",n),n}}async function l6(e){return s6(e,"text/html")}async function c6(e,t,n){try{return(await l6(e)).querySelector(t)?.getAttribute(n)}catch(i){return xe("Failed to get element attribute: ",i),null}}var d6=class{constructor(e,t){this.queue=[],this.activeCount=0,this.lastRunTime=0;const n={Safe:{concurrency:5,delay:1e3},Standard:{concurrency:5,delay:500},Faster:{concurrency:10,delay:500},Extreme:{concurrency:10,delay:250},All:{concurrency:20,delay:50}}[e];this.maxConcurrency=n.concurrency,this.minDelay=t??n.delay}add(e){this.queue.push(e),this.runNext()}async runNext(){if(this.activeCount>=this.maxConcurrency||this.queue.length===0)return;const e=Date.now()-this.lastRunTime;if(e<this.minDelay){setTimeout(()=>this.runNext(),this.minDelay-e);return}const t=this.queue.shift();if(t){this.activeCount+=1,this.lastRunTime=Date.now();try{await t()}finally{this.activeCount-=1,this.runNext()}}}},Bl;function u6(e){if(e){let t=e.trim();return t.startsWith("//")&&(t=`https:${t}`),t}return""}async function $a(e,t,n){const i=fe("images")?.[t];i?.status&&i.status!=="pending"||(Dr(t,()=>({status:"loading"})),Bl.add(async()=>{let a=u6(n),s,l="loaded";try{const h=await fetch(a,e.fetchOptions);h.ok?(s=await h.blob(),a=await i6(s)):l="error"}catch(h){xe("Failed to fetch image",h),l="error"}Dr(t,()=>({src:a,blob:s,status:l})),kr("Loaded Image:",t,"Source:",a)}),e.pages===t&&q0())}async function nh(e,t,n){const i=fe("images")?.[t];i?.status&&i.status!=="pending"||(Dr(t,()=>({status:"loading"})),Bl.add(async()=>{try{const a=await c6(n,e.img,e.lazyAttr??"src");a?(Dr(t,()=>({status:"pending"})),await $a(e,t,a)):Dr(t,()=>({status:"error"}))}catch(a){xe("Failed to get page attribute",a),Dr(t,()=>({status:"error"}))}}))}function oh(e,t){La(t.pages,e).filter((n,i)=>!(t.lazy??X("lazyLoadImages"))||i<=X("lazyStart")).forEach(n=>{nh(t,n,t.listPages[n-1])})}function ih(e,t){La(t.pages,e).filter((n,i)=>!(t.lazy??X("lazyLoadImages"))||i<=X("lazyStart")).forEach(n=>{$a(t,n,t.listImages[n-1])})}async function h6(){await Is(()=>fe("manga")!==void 0);const e=fe("manga"),t=e.begin??1;Bl=new d6(X("loadSpeed"),e.timer),kr("Loading Images"),kr(`Speed: ${X("loadSpeed")}`),kr(`Lazy: ${e.lazy??X("lazyLoadImages")}, Starting from: ${X("lazyStart")}`),Yn(),Od(e)?(kr("Method: Images:",e.listImages),ih(t,e)):Td(e)?(kr("Method: Pages:",e.listPages),oh(t,e)):Bp(e)?(kr("Method: Brute Force"),e.bruteForce({begin:t,addImg:$a,loadImages(n){ih(t,{...e,listImages:n})},loadPages(n,i,a){oh(t,{...e,listPages:n,img:i,lazyAttr:a})},wait:0})):xe("No Loading Method Found"),er.listen((n,i,a)=>{if(a==="currentPage"&&n.currentPage>i.currentPage)for(let s=n.currentPage;s<Math.min(n.currentPage+5,e.pages+1);s++)n.images?.[s]?.src!==void 0||n.images?.[s]?.status==="loading"||(Od(e)?$a(e,s,e.listImages[s-1]):Td(e)&&nh(e,s,e.listPages[s-1]))})}function f6(){const e=fe("images");if(!e)return null;const t=X("viewMode"),n=t==="FluidLTR"||t==="FluidRTL",i=t==="FluidRTL",a=window.innerHeight/2,s=window.innerWidth/2;let l=null;for(const h in e){const u=e[h].ref?.value;if(!u)continue;const f=u?.getBoundingClientRect();let p;n?i?p=f.right:p=f.left:p=f.top,(n?p<=s:p<=a)&&(!l||p>l.edge)&&(l={index:parseInt(h,10),edge:p})}return l?l.index:fe("manga")?.begin??1}function ah(){const e=f6();e!=null&&fe("currentPage")!==e&&$e("currentPage",e)}function p6(){const e=Me.default.throttle(()=>{requestAnimationFrame(ah)},100);window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e),fe("chapter").value?.addEventListener("scroll",e,{passive:!0}),requestAnimationFrame(ah)}function sh(){if(!fe("chapter").value){setTimeout(sh,50);return}p6()}var lh=Me.default.debounce(()=>{$e("device",Zo()),Yn()},200);async function g6(){await Is(()=>fe("manga")!==void 0),U0(),window.addEventListener("resize",lh),window.addEventListener("orientationchange",lh),N3(),sh()}var m6=yr(((e,t)=>{(function(n,i){typeof define=="function"&&define.amd?define(i):typeof e=="object"?t.exports=i():n.NProgress=i()})(e,function(){var n={};n.version="0.2.0";var i=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(m){var E,y;for(E in m)y=m[E],y!==void 0&&m.hasOwnProperty(E)&&(i[E]=y);return this},n.status=null,n.set=function(m){var E=n.isStarted();m=a(m,i.minimum,1),n.status=m===1?null:m;var y=n.render(!E),A=y.querySelector(i.barSelector),x=i.speed,L=i.easing;return y.offsetWidth,h(function(T){i.positionUsing===""&&(i.positionUsing=n.getPositioningCSS()),u(A,l(m,x,L)),m===1?(u(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){u(y,{transition:"all "+x+"ms linear",opacity:0}),setTimeout(function(){n.remove(),T()},x)},x)):setTimeout(T,x)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var m=function(){setTimeout(function(){n.status&&(n.trickle(),m())},i.trickleSpeed)};return i.trickle&&m(),this},n.done=function(m){return!m&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(m){var E=n.status;return E?(typeof m!="number"&&(m=(1-E)*a(Math.random()*E,.1,.95)),E=a(E+m,0,.994),n.set(E)):n.start()},n.trickle=function(){return n.inc(Math.random()*i.trickleRate)},(function(){var m=0,E=0;n.promise=function(y){return!y||y.state()==="resolved"?this:(E===0&&n.start(),m++,E++,y.always(function(){E--,E===0?(m=0,n.done()):n.set((m-E)/m)}),this)}})(),n.render=function(m){if(n.isRendered())return document.getElementById("nprogress");p(document.documentElement,"nprogress-busy");var E=document.createElement("div");E.id="nprogress",E.innerHTML=i.template;var y=E.querySelector(i.barSelector),A=m?"-100":s(n.status||0),x=document.querySelector(i.parent),L;return u(y,{transition:"all 0 linear",transform:"translate3d("+A+"%,0,0)"}),i.showSpinner||(L=E.querySelector(i.spinnerSelector),L&&v(L)),x!=document.body&&p(x,"nprogress-custom-parent"),x.appendChild(E),E},n.remove=function(){w(document.documentElement,"nprogress-busy"),w(document.querySelector(i.parent),"nprogress-custom-parent");var m=document.getElementById("nprogress");m&&v(m)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var m=document.body.style,E="WebkitTransform"in m?"Webkit":"MozTransform"in m?"Moz":"msTransform"in m?"ms":"OTransform"in m?"O":"";return E+"Perspective"in m?"translate3d":E+"Transform"in m?"translate":"margin"};function a(m,E,y){return m<E?E:m>y?y:m}function s(m){return(-1+m)*100}function l(m,E,y){var A;return i.positionUsing==="translate3d"?A={transform:"translate3d("+s(m)+"%,0,0)"}:i.positionUsing==="translate"?A={transform:"translate("+s(m)+"%,0)"}:A={"margin-left":s(m)+"%"},A.transition="all "+E+"ms "+y,A}var h=(function(){var m=[];function E(){var y=m.shift();y&&y(E)}return function(y){m.push(y),m.length==1&&E()}})(),u=(function(){var m=["Webkit","O","Moz","ms"],E={};function y(T){return T.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(N,Y){return Y.toUpperCase()})}function A(T){var N=document.body.style;if(T in N)return T;for(var Y=m.length,q=T.charAt(0).toUpperCase()+T.slice(1),ie;Y--;)if(ie=m[Y]+q,ie in N)return ie;return T}function x(T){return T=y(T),E[T]||(E[T]=A(T))}function L(T,N,Y){N=x(N),T.style[N]=Y}return function(T,N){var Y=arguments,q,ie;if(Y.length==2)for(q in N)ie=N[q],ie!==void 0&&N.hasOwnProperty(q)&&L(T,q,ie);else L(T,Y[1],Y[2])}})();function f(m,E){return(typeof m=="string"?m:b(m)).indexOf(" "+E+" ")>=0}function p(m,E){var y=b(m),A=y+E;f(y,E)||(m.className=A.substring(1))}function w(m,E){var y=b(m),A;f(m,E)&&(A=y.replace(" "+E+" "," "),m.className=A.substring(1,A.length-1))}function b(m){return(" "+(m.className||"")+" ").replace(/\s+/gi," ")}function v(m){m&&m.parentNode&&m.parentNode.removeChild(m)}return n})})),v6=Fi(m6(),1),b6=/^blob:(.+?)\/(.+)$/;function w6(e){return/^data:image\/(png|jpg|jpeg|gif|svg)/.test(e)}function _6(e){return b6.test(e)}function y6(e,t){const n=e.replace(/[?&]forceReload=\d+$/,"");return`${n+(n.includes("?")?"&":"?")}forceReload=${t}`}function k6(e){let t=1;const n=e?.match(/forceReload=(\d+)$/);return n?.at(1)&&(t=parseInt(n[1],10)+1),t}function ch(e,t){xe(`Reloading Page ${e}`,t);const n=fe("images")?.[e]?.src;if(!n)return;const i=k6(n);i>X("maxReload")||(t?.removeAttribute("src"),w6(n)||_6(n)?t?.setAttribute("src",n):t?.setAttribute("src",y6(n,i)))}function E6(e){const t=e.currentTarget,n=parseInt(t.value,10),i=fe("images")?.[n]?.ref?.value;i&&ch(n,i)}function A6(e){const t=e.currentTarget;Dr(parseInt(t.value,10),n=>({hide:!n.hide}))}function S6(e){const t=e.currentTarget;Dr(parseInt(t.id.replace("PageImg",""),10),h=>({...G0({naturalWidth:t.naturalWidth,naturalHeight:t.naturalHeight}),status:"loaded",doublePage:t.naturalWidth>t.naturalHeight}));const n=fe("manga"),i=fe("images")||{},a=Me.default.keys(i).filter(h=>{const u=parseInt(h,10);return u>=(n?.begin??1)&&u<=(n?.pages??1)&&i[u]?.status==="loaded"}).length,s=(n?.pages??1)-((n?.begin??1)-1),l=Math.floor(a/s*100);document.title=`(${l}%) ${fe("manga")?.title}`,v6.default.configure({showSpinner:!1}).set(a/s),xe(`Progress: ${l}%`),a===s&&(xe("Images Loading Complete"),$e("download","available"),X("downloadZip")&&O0())}function M6(e){const t=e.currentTarget;if(xs(t.getAttribute("src")))return;const n=parseInt(t.id.replace("PageImg",""),10);Dr(n,()=>({status:"error"})),ch(n,t)}function x6(e){const t=e.currentTarget,n=parseInt(t.value,10),i=fe("images"),a=fe("images")?.[n];a?.naturalWidth&&$e("images",{...i,[n]:{...a,width:(a?.width||a?.naturalWidth)*(1+X("zoomStep")/100),height:void 0}})}function I6(e){const t=e.currentTarget,n=parseInt(t.value,10),i=fe("images"),a=fe("images")?.[n];a?.naturalWidth&&$e("images",{...i,[n]:{...a,width:(a?.width||a?.naturalWidth)*(1-X("zoomStep")/100),height:void 0}})}function C6(e){const t=e.currentTarget,n=parseInt(t.value,10),i=fe("images"),a=fe("images")?.[n];a&&$e("images",{...i,[n]:{...a,width:void 0,height:void 0}})}function O6(e){const t=e.currentTarget,n=parseInt(t.value,10),i=fe("images"),a=fe("images")?.[n];a&&$e("images",{...i,[n]:{...a,width:window.innerWidth+(X("navbar")==="left"||X("navbar")==="right"?-34:0),height:void 0}})}function T6(e){const t=e.currentTarget,n=parseInt(t.value,10),i=fe("images"),a=fe("images")?.[n];a&&$e("images",{...i,[n]:{...a,width:void 0,height:window.innerHeight+(X("navbar")==="bottom"?-34:0)}})}function L6(e){const t=fe("images")?.[e],n=X("viewMode").match(/^(Book|Manga)$/),i=X("viewMode")==="Gallery",a=X("viewMode").startsWith("Fluid"),s=X("navbar")==="bottom";return{width:t?.width?`${t.width}px`:"auto",height:t?.height?`${t.height}px`:"auto","max-height":a?`${window.innerHeight+(s?-34:0)}px`:void 0,"min-width":!n&&!i?`${X("minZoom")}vw`:void 0}}var R6=(e,t)=>La(e,t).map(n=>{fe("images")?.[n]?.ref||Dr(n,u=>({ref:Ds()}));let i=0;for(let u=n-1;u>=t&&!fe("images")?.[u].doublePage;u--)fe("images")?.[u].doublePage||i++;const a=fe("images")?.[n].doublePage??!1,s=X("viewMode")==="Book",l=!a&&(s?i%2===0:i%2===1),h=!a&&(s?i%2===1:i%2===0);return oe`
      <div
        id="Page${n}"
        class="${kt({MangaPage:!0,hide:!!fe("images")?.[n].hide,DoublePage:a,LeftPage:l&&!a,RightPage:h&&!a})}"
      >
        <div class="PageFunctions">
          <button
            class="Bookmark PageButton"
            title="${K("BOOKMARK")}"
            @click=${j0}
            value="${n}"
          >
            ${mo()?K4:j4}
          </button>
          <button
            class="ZoomIn PageButton"
            title="${K("ZOOM_IN")}"
            @click=${x6}
            value="${n}"
          >
            ${r3}
          </button>
          <button
            class="ZoomRestore PageButton"
            title="${K("ZOOM_RESET")}"
            @click=${C6}
            value="${n}"
          >
            ${t3}
          </button>
          <button
            class="ZoomOut PageButton"
            title="${K("ZOOM_OUT")}"
            @click=${I6}
            value="${n}"
          >
            ${n3}
          </button>
          <button
            class="ZoomHeight PageButton"
            title="${K("ZOOM_HEIGHT")}"
            @click=${T6}
            value="${n}"
          >
            ${Z4}
          </button>
          ${X("viewMode").match(/^(Book|Manga)$/)?oe`
            <button
              class="DoublePage PageButton"
              title="${K("DOUBLE_PAGE")}"
              @click=${()=>{Dr(n,u=>({doublePage:!u.doublePage}))}}
              value="${n}"
            >
              ${e3}
            </button>`:oe`
              <button
                class="ZoomWidth PageButton"
                title="${K("ZOOM_WIDTH")}"
                @click=${O6}
                value="${n}"
              >
                ${q4}
              </button>`}
          <button
            class="Hide PageButton"
            title="${K("HIDE")}"
            @click=${A6}
            value="${n}"
          >
            ${fe("images")?.[n].hide?X4:J4}
          </button>
          <button
            class="Reload PageButton"
            title="${K("RELOAD")}"
            @click=${E6}
            value="${n}"
          >
            ${Q4}
          </button>
          <span class="PageIndex">${n}</span>
        </div>
        <div class="PageContent">
          <img
            id="PageImg${n}"
            alt="Page ${n}"
            class="${kt({PageImg:!0,imgBroken:fe("images")?.[n]?.status==="error"})}"
            src=${fe("images")?.[n]?.src??Be}
            style="${Vr(L6(n))}"
            @load=${S6}
            @error=${M6}
            ${Ns(fe("images")?.[n].ref)}
          />
        </div>
      </div>
      <div class="separator">
        [ ${n===e?K("END"):`${n} / ${e}`} ]
      </div>
    `}),P6=e=>oe`
  <main
    id="Chapter"
    ${Ns(fe("chapter"))}
    class="${kt({fitWidthIfOversize:X("fitWidthIfOversize"),[X("viewMode")]:!0,separator:X("viewMode")==="Vertical"})}"
    @wheel=${t=>{X("viewMode")==="FluidLTR"?th(t):X("viewMode")==="FluidRTL"&&Lb(t)}}
  >
    ${R6(e.pages,e.begin??0)}
  </main>
`,$6=":root:not(.light,.dark){--theme-body-background:#25262b;--theme-body-text-color:#c1c2c5;--theme-text-color:#c1c2c5;--theme-primary-color:#1a1b1e;--theme-primary-text-color:#c1c2c5;--theme-background-color:#25262b;--theme-hightlight-color:#2c2e33;--theme-border-color:#373a40;--theme-secondary-color:#2c2e33;--theme-secondary-text-color:#c1c2c5}:host{all:initial;box-sizing:border-box;display:block}#MangaOnlineViewer{color:var(--theme-body-text-color);background-color:var(--theme-body-background);box-sizing:border-box;--mov-font-size-m:16px;min-height:100vh;text-decoration:none}#Chapter{box-sizing:border-box;grid-template-columns:repeat(1,1fr);min-width:225px;display:grid}#Chapter.Vertical:has(+#Navigation:not(.disabled)),#Chapter.WebComic:has(+#Navigation:not(.disabled)){padding-bottom:31px}#Chapter.Vertical .PageContent{margin-top:8px;margin-bottom:8px}.closeButton{width:fit-content;height:fit-content;position:absolute;top:10px;right:10px}.overlay{z-index:950;cursor:pointer;background-color:#00000080;width:100%;height:100%;display:none;position:fixed;inset:0}.overlay.visible{display:block}select{height:20px;margin:2px}:not(.FluidRTL,.FluidLTR).fitWidthIfOversize .PageContent .PageImg{object-fit:contain;max-width:100%}.hideControls .PageFunctions{visibility:hidden}",D6="@keyframes spin{to{transform:rotate(360deg)}}@keyframes spin-reverse{0%{transform:rotate(360deg)}to{transform:rotate(0)}}.icon-tabler-loader-2,.animate-spin{animation:1s linear infinite spin}.animate-spin-reverse{animation:1s linear infinite spin-reverse}",z6="#Chapter:where(.Book,.Manga){grid-template-columns:1fr 1fr;grid-auto-flow:row;gap:0;width:100%;min-width:auto;display:grid}#Chapter:where(.Book,.Manga) .MangaPage{width:100%;min-height:22px;display:block;position:relative;overflow:hidden}#Chapter:where(.Book,.Manga) .MangaPage .PageFunctions{border-radius:0 0 0 4px;flex-direction:row;top:0;left:auto;right:0}#Chapter:where(.Book,.Manga) .MangaPage.LeftPage .PageFunctions{border-radius:0 0 4px;flex-direction:row-reverse;left:0;right:auto}#Chapter:where(.Book,.Manga) .MangaPage.DoublePage{grid-column:span 2}#Chapter:where(.Book,.Manga) .MangaPage .PageContent{flex-shrink:0;justify-content:center;align-items:center;display:flex;overflow:hidden}#Chapter:where(.Book,.Manga) .MangaPage.LeftPage .PageContent{justify-content:flex-end;padding-right:0}#Chapter:where(.Book,.Manga) .MangaPage.RightPage .PageContent{justify-content:flex-start;padding-left:0}#Chapter:where(.Book,.Manga) .MangaPage.DoublePage .PageContent{justify-content:center}#Chapter.Manga{direction:rtl}#Chapter.Manga .MangaPage{direction:ltr}",N6="#Chapter.FluidLTR,#Chapter.FluidRTL{min-width:auto;display:flex;overflow-x:auto;& .ZoomWidth{display:none}& .PageImg{min-width:unset}& .MangaPage{width:initial;min-width:fit-content;position:relative}& .MangaPage.DoublePage{grid-column:span 2}}#Chapter.FluidLTR{flex-direction:row;& .MangaPage .PageFunctions{direction:rtl;left:0;right:auto}}#Chapter.FluidRTL{flex-direction:row-reverse}",B6="#Chapter.Gallery{flex-wrap:wrap;justify-content:center;gap:10px;padding:10px;display:flex}.Gallery .MangaPage{width:auto;min-width:unset;flex:0 auto}.Gallery .MangaPage .PageContent .PageImg{min-width:unset}.Gallery .PageFunctions,.Gallery .separator{display:none}",H6='.PageButton .icon-tabler{vertical-align:sub;width:1rem;height:1rem}.PageButton,.PageButton:visited,.PageButton:link{cursor:pointer;min-height:32px;color:var(--mov-color-on-loud);background-color:var(--mov-color-fill-loud);border-style:solid;border-width:1px;border-color:var(--theme-border-color);border-radius:5px;padding:2px;text-decoration:none}.PageButton:active,.PageButton:hover{opacity:.8}.PageButton[selected]{background-color:var(--mov-color-fill-normal);color:var(--mov-color-on-normal);border:1px solid var(--theme-border-color)}.PageButton.hidden{display:none}.MangaPage{text-align:center;width:100%;min-width:100%;min-height:22px;line-height:0;display:inline-block}.PageContent{text-align:center;max-width:100%;height:100%;transition:all .3s ease-in-out;display:inline-block;overflow:auto hidden}.MangaPage.hide .PageContent{height:0}.PageContent .PageImg[src=""],.PageContent .PageImg:not([src]),.PageContent .PageImg.imgBroken{background-position:50%;background-repeat:no-repeat;background-size:20%;background-color:var(--theme-hightlight-color);text-align:center;vertical-align:top;width:40vw;height:80vh;color:var(--theme-text-color);min-width:40vw;max-width:100%;min-height:50vh;max-height:100%;margin:0;font-size:16px;line-height:80vh;display:inline-block;position:relative}.PageContent .PageImg[src=""]:before,.PageContent .PageImg:not([src]):before,.PageContent .PageImg.imgBroken:before{content:attr(alt);white-space:pre-wrap;text-align:center;color:var(--theme-text-color);font-size:16px;position:absolute;top:40%;left:50%;transform:translate(-50%,-50%)}.PageFunctions{justify-content:flex-end;align-items:center;gap:3px;margin:0;padding:0;font-family:monospace;display:flex;position:absolute;right:0}.PageFunctions>.PageIndex{background-color:var(--mov-color-fill-loud);color:var(--mov-color-on-loud);text-align:center;border-radius:5px;min-width:20px;padding:3px 5px;line-height:1rem;display:inline-block}.PageFunctions .PageButton{opacity:.5;border-width:0;justify-content:center;align-items:center;min-height:auto;margin:0;padding:3px;display:flex}.PageFunctions:hover .PageButton{opacity:1}.PageFunctions .PageButton:hover{opacity:.9}#Chapter.Vertical .separator{text-align:center;align-items:center;font-style:italic;display:flex}#Chapter.Vertical .separator:before,#Chapter.Vertical .separator:after{content:"";border-bottom:1px solid var(--theme-text-color);flex:1}#Chapter.Vertical.separator:not(:empty):before{margin-right:.25em}#Chapter.Vertical.separator:not(:empty):after{margin-left:.25em}#Chapter:not(.separator) .separator,#Chapter:not(.Vertical) .separator{display:none}',F6="#MangaOnlineViewer{color:var(--theme-body-text-color);background-color:var(--theme-body-background);margin:0;padding:0;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px;line-height:20px}a,a:link,a:visited,a:active,a:focus{color:var(--theme-body-text-color);text-decoration:none}img{vertical-align:middle;border:0;height:auto}",G6=":root{--theme-primary-color:#007bff;--theme-primary-text-color:#fff;--theme-secondary-color:#6c757d;--theme-secondary-text-color:#fff;--theme-body-background:#212529;--theme-body-text-color:#f8f9fa;--theme-text-color:#f8f9fa;--theme-background-color:#212529;--theme-hightlight-color:#343a40;--theme-border-color:#495057;--mov-color-fill-quiet:#ced4da;--mov-color-fill-normal:#adb5bd;--mov-color-fill-loud:#007bff;--mov-color-border-quiet:#adb5bd;--mov-color-border-normal:#6c757d;--mov-color-border-loud:#495057;--mov-color-on-quiet:#343a40;--mov-color-on-normal:#fff;--mov-color-on-loud:#fff;--mov-color-mix-hover:#00000014;--mov-color-mix-active:#00000029}.light{--theme-body-background:#f8f9fa;--theme-body-text-color:#212529;--theme-text-color:#212529;--theme-background-color:#f8f9fa;--theme-hightlight-color:#e9ecef;--theme-border-color:#dee2e6;--mov-color-fill-quiet:#f8f9fa;--mov-color-fill-normal:#e9ecef;--mov-color-fill-loud:#007bff;--mov-color-border-quiet:#e9ecef;--mov-color-border-normal:#dee2e6;--mov-color-border-loud:#adb5bd;--mov-color-on-quiet:#6c757d;--mov-color-on-normal:#fff;--mov-color-on-loud:#fff;--mov-color-mix-hover:#0000001a;--mov-color-mix-active:#0003}",W6=yt`
  .PageContent .PageImg[src=''],
  .PageContent .PageImg:not([src]) {
    background-image: url('${Ee(ki(Vs))}');
  }

  .PageContent .PageImg.imgBroken {
    background-image: url('${Ee(ki(Zs))}');
  }

  ${Ee(G6)}
  ${Ee(F6)}
  ${Ee($6)}
  ${Ee(H6)}
  ${Ee(N6)}
  ${Ee(z6)}
  ${Ee(B6)}
  ${Ee(K0)}
  ${Ee(D6)}
`,U6=(e="#MangaOnlineViewer",t=X("theme"))=>{const n=I0(t),i=xo(t),a=X("colorScheme")==="dark"?n[8]:n[2],s=xo(a);return yt`
    :where(:root),
    ${Ee(e)}, .dark,
    ${Ee(e)}.dark {
      --theme-primary-color: ${Ee(t)};;
      --theme-primary-text-color: ${Ee(i)};;
      --theme-secondary-color: ${Ee(a)};;
      --theme-secondary-text-color: ${Ee(s)};;

      color-scheme: dark;
      --theme-body-background: ${Ee(It.dark[600])};;
      --theme-body-text-color: ${Ee(It.dark[50])};;
      --theme-text-color: ${Ee(It.dark[50])};;
      --theme-background-color: ${Ee(It.dark[600])};;
      --theme-hightlight-color: ${Ee(It.dark[500])};;
      --theme-border-color: ${Ee(It.dark[400])};;

      --mov-color-fill-quiet: ${Ee(n[9])};;
      --mov-color-fill-normal: var(--theme-secondary-color, ${Ee(n[8])};);
      --mov-color-fill-loud: var(--theme-primary-color);
      --mov-color-border-quiet: ${Ee(n[8])};;
      --mov-color-border-normal: ${Ee(n[7])};;
      --mov-color-border-loud: ${Ee(n[6])};;
      --mov-color-on-quiet: ${Ee(n[4])};;
      --mov-color-on-normal: var(--theme-secondary-text-color, ${Ee(n[3])};);
      --mov-color-on-loud: var(--theme-primary-text-color, white);

      --mov-color-mix-hover: black 8%;
      --mov-color-mix-active: black 16%;
    }

    .light,
    ${Ee(e)};.light {
      color-scheme: light;
      --theme-body-background: ${Ee(It.gray[50])};;
      --theme-body-text-color: ${Ee(It.gray[900])};;
      --theme-text-color: ${Ee(It.gray[900])};;
      --theme-background-color: ${Ee(It.gray[50])};;
      --theme-hightlight-color: ${Ee(It.gray[500])};;
      --theme-border-color: ${Ee(It.gray[100])};;

      --mov-color-fill-quiet: ${Ee(n[0])};;
      --mov-color-fill-normal: var(--theme-secondary-color, ${Ee(n[1])};);
      --mov-color-fill-loud: var(--theme-primary-color);
      --mov-color-border-quiet: ${Ee(n[1])};;
      --mov-color-border-normal: ${Ee(n[2])};;
      --mov-color-border-loud: ${Ee(n[4])};;
      --mov-color-on-quiet: ${Ee(n[6])};;
      --mov-color-on-normal: var(--theme-secondary-text-color, ${Ee(n[3])};);
      --mov-color-on-loud: var(--theme-primary-text-color, white);

      --mov-color-mix-hover: black 10%;
      --mov-color-mix-active: black 20%;
    }
  `},V6="#StartMOV{all:revert;backface-visibility:hidden;color:#fff;cursor:pointer;text-align:center;z-index:105000;background-image:linear-gradient(90deg,#667eea,#764ba2,#6b8dd6,#8e37d7);background-size:300% 100%;border:none;border-radius:10px;width:80%;min-height:50px;margin:0 auto;padding:.5rem 1rem;font-size:32px;transition:all .4s ease-in-out;position:fixed;bottom:0;left:0;right:0;box-shadow:0 4px 15px #744fa8bf}#StartMOV:hover{background-position:100% 0;transition:all .4s ease-in-out}#StartMOV:focus{outline:none}#pagesSliderVal{text-align:center;margin-top:15px;font-weight:700;display:block}",Mn=class extends Je{constructor(...t){super(...t),this.mangaPages=0,this.begin=1,this.timeoutMs=3e3,this.status="initial-prompt"}static{this.styles=[Ee(V6)]}connectedCallback(){super.connectedCallback(),this.status==="initial-prompt"&&(this.timeoutId=window.setTimeout(()=>{this.handleStart()},this.timeoutMs))}disconnectedCallback(){super.disconnectedCallback(),window.clearTimeout(this.timeoutId)}handleStart(){window.clearTimeout(this.timeoutId),this.dispatchEvent(new CustomEvent("start",{detail:null}))}handleLateStart(t,n){this.dispatchEvent(new CustomEvent("start",{detail:{begin:t,end:n}}))}handleButtonCLick(){this.status="late-start-prompt"}handleDialogClose(t){t.stopPropagation(),window.clearTimeout(this.timeoutId),this.status="late-start-button"}render(){switch(this.status){case"late-start-button":return this.renderLateStartButton();case"late-start-prompt":return this.renderLateStartPrompt();default:return this.renderInitialPrompt()}}renderInitialPrompt(){return oe`
      <mov-dialog
        ?open=${this.status==="initial-prompt"}
        icon="info"
        @close=${this.handleDialogClose}
      >
        <span slot="label">${K("STARTING")}</span>
        <div style="padding: 1rem;">${K("WAITING")}</div>
        <div
          slot="footer"
          style="display: flex; justify-content: space-between; padding: 0.5rem 1rem 1rem;"
        >
          <mov-button
            @click=${this.handleDialogClose}
            style="--mov-color-fill-loud: ${It.red[700]}; --mov-color-on-loud: white;"
          >
            Cancel
          </mov-button>
          <mov-button
            @click=${this.handleStart}
            style="--mov-color-fill-loud: ${It.green[700]}; --mov-color-on-loud: white;"
          >
            Start Now
          </mov-button>
        </div>
      </mov-dialog>
    `}renderLateStartButton(){return oe`
      <button
        id="StartMOV"
        @click=${this.handleButtonCLick}
      >
        ${K("BUTTON_START")}
      </button>
    `}renderLateStartPrompt(){this.beginPage??=this.begin,this.endPage??=this.mangaPages;const t=n=>{this.beginPage=n.detail.value[0],this.endPage=n.detail.value[1]};return oe`
      <mov-dialog
        ?open=${this.status==="late-start-prompt"}
        icon="question"
        @close=${this.handleDialogClose}
      >
        <span slot="label">${K("STARTING")}</span>
        <div style="padding: 1rem;">
          ${K("CHOOSE_BEGINNING")}
          <div
            id="pageInputGroup"
            style="padding: 1rem 0;"
          >
            <mov-slider
              id="pagesSlider"
              dual
              show-tooltip
              show-ticks
              tick-count="10"
              step="1"
              .value=${[this.beginPage,this.endPage]}
              min="0"
              max="${this.mangaPages}"
              @input=${t}
            ></mov-slider>
            <output
              id="pagesSliderVal"
              class="RangeValue"
              for="pagesSlider"
            >
              [${String(this.beginPage).padStart(3,"0")} ,
              ${String(this.endPage).padStart(3,"0")}]
            </output>
          </div>
        </div>
        <div
          slot="footer"
          style="display: flex; justify-content: flex-end; gap: 0.5rem; padding: 0.5rem 1rem 1rem;"
        >
          <mov-button
            @click=${this.handleDialogClose}
            style="--mov-color-fill-loud: ${It.red[700]}; --mov-color-on-loud: white;"
          >
            Close
          </mov-button>
          <mov-button
            @click=${()=>this.handleLateStart(this.beginPage??0,this.endPage??this.mangaPages)}
            style="--mov-color-fill-loud: ${It.green[700]}; --mov-color-on-loud: white;"
          >
            Run
          </mov-button>
        </div>
      </mov-dialog>
    `}};D([j({type:Number,reflect:!0})],Mn.prototype,"mangaPages",void 0),D([j({type:Number,reflect:!0})],Mn.prototype,"begin",void 0),D([j({type:Number})],Mn.prototype,"timeoutMs",void 0),D([j({type:String,reflect:!0})],Mn.prototype,"status",void 0),D([zt()],Mn.prototype,"beginPage",void 0),D([zt()],Mn.prototype,"endPage",void 0),Mn=D([ot("script-startup")],Mn);function Z6(e){if(!e?.parentNode)return e;const t=e.cloneNode(!0);return e.parentNode.replaceChild(t,e),t}var q6=e=>{e.getAttributeNames().forEach(t=>{e?.removeAttribute(t)})},j6=(...e)=>{e?.forEach(q6),e?.forEach(Z6)};function K6(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var dh,Da=class extends Je{constructor(...t){super(...t),this.loadMode="wait"}static{this.styles=[yt``,Ee(W6)]}async start(t,n){this.manga&&(document.documentElement.hasAttribute("mov")||(j6(document.documentElement,document.head,document.body),document.documentElement.setAttribute("mov","")),window.scrollTo(0,0),$e("manga",{...this.manga,begin:t??this.manga.begin,pages:n??this.manga.pages}))}firstUpdated(){this.loadMode==="always"&&this.start(),g6(),h6()}render(){const t=fe("manga"),n=fe("dialog");return oe`
      <style>
        ${U6()}
      </style>
      <div
        id="MangaOnlineViewer"
        class="${kt({[X("colorScheme")]:!0,hideControls:X("hidePageControls"),bookmarked:!!mo(),[fe("device")]:!0})}"
        style="${Vr({[`padding-${X("navbar")}`]:"34px"})}"
        .locale="${X("locale")}"
      >
        ${t?oe` <reader-header .manga=${t}></reader-header>
              ${P6(t)}
              <navbar-thumbnails .mode=${X("navbar")}></navbar-thumbnails>
              <manga-pagination
                .mode="${X("pagination")}"
                .startPage=${t.begin}
                .totalPages=${t.pages}
                .currentPage=${fe("currentPage")}
                .next=${t.next}
                .prev=${t.prev}
              ></manga-pagination>
              <keybindings-panel></keybindings-panel>
              <bookmark-panel></bookmark-panel>
              <settings-panel></settings-panel>
              <moaqz-toaster dismissable></moaqz-toaster>`:oe(dh||(dh=K6([` <script-startup
              .mangaPages="`,`"
              begin="`,`"
              status="`,`"
              @start=`,`
            ><\/script-startup>`])),this.manga?.pages,this.manga?.begin,this.loadMode==="never"?"late-start-button":"initial-prompt",i=>{this.start(i.detail?.begin,i.detail?.end)})}
        ${n?oe`
              <mov-dialog
                open
                .icon=${n.icon}
                @close=${()=>$e("dialog",null)}
              >
                <span slot="label">${n.title}</span>
                ${n.content} ${n.footer}
              </mov-dialog>
            `:""}
      </div>
    `}};D([j({type:String,reflect:!0})],Da.prototype,"loadMode",void 0),D([j({type:Object})],Da.prototype,"manga",void 0),Da=D([ot("manga-online-viewer"),(0,To.useStores)(Ct,po,er)],Da);var Y6=`/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html{-webkit-text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{margin:.67em 0;font-size:2em}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:#0000}abbr[title]{border-bottom:none;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:100%;line-height:1.15}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner{border-style:none;padding:0}[type=button]::-moz-focus-inner{border-style:none;padding:0}[type=reset]::-moz-focus-inner{border-style:none;padding:0}[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring{outline:1px dotted buttontext}[type=button]:-moz-focusring{outline:1px dotted buttontext}[type=reset]:-moz-focusring{outline:1px dotted buttontext}[type=submit]:-moz-focusring{outline:1px dotted buttontext}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;white-space:normal;max-width:100%;padding:0;display:table}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button{height:auto}[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template,[hidden]{display:none}`,X6="#nprogress{pointer-events:none}#nprogress .bar{z-index:1031;background:#29d;width:100%;height:2px;position:fixed;top:0;left:0}#nprogress .peg{opacity:1;width:100px;height:100%;display:block;position:absolute;right:0;transform:rotate(3deg)translateY(-4px);box-shadow:0 0 10px #29d,0 0 5px #29d}#nprogress .spinner{z-index:1031;display:block;position:fixed;top:15px;right:15px}#nprogress .spinner-icon{box-sizing:border-box;border:2px solid #0000;border-color:#29d #0000 #0000 #29d;border-radius:50%;width:18px;height:18px;animation:.4s linear infinite nprogress-spinner}.nprogress-custom-parent{position:relative;overflow:hidden}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}",J6="#nprogress .bar{z-index:1031;background:#29d;width:100%;height:4px;position:fixed;top:0;left:0}html[mov] body>:not(manga-online-viewer,#nprogress){display:none!important}html[mov]{all:unset;font-size:16px}",Q6=[Y6,X6,J6].join(`
`);async function e9([e,t]){xe(`Found Pages: ${t.pages} in ${e?.name}`),t.title||(t.title=document.querySelector("title")?.textContent?.trim()),t.begin=mo()??t.begin??1,t.before!==void 0&&(kr("Executing Preparation"),await t.before(t.begin??0)),document.head.innerHTML+=R5("externals",Q6);const n=document.createElement("manga-online-viewer");n.loadMode=e?.start??X("loadMode"),n.manga=t,document.body.appendChild(n)}async function t9(e){xe(`Starting ${Ss.script.name} ${Ss.script.version} on ${Zo()} ${sp()} with ${lp()}`),xe(e.length,"Known Manga Sites:",e);const t=e.filter(i=>i.url.test(window.location.href));xe(t.length,"Found sites:",t);const n=t.map(async i=>{xe(`Testing site: ${i.name}`),await pp(i);const a=await i.run();if(a.pages>0)return[i,a];throw new Error(`${i.name} found ${a.pages} pages`)});try{e9(await Promise.any(n))}catch(i){if(i instanceof AggregateError){xe("All sites failed to run:");for(const a of i.errors)xe(a.message)}else xe("An unexpected error occurred:",i)}}var r9={eq:(e,t)=>e.textContent?.trim()===t,starts:(e,t)=>!!e.textContent?.trim()?.startsWith(t),ends:(e,t)=>!!e.textContent?.trim()?.endsWith(t)};function uh(e,t,n){const i=r9[n];if(!i)throw new Error(`Invalid matcherKey: ${n}`);return[...document.querySelectorAll(e)].filter(a=>Me.default.castArray(t).some(s=>i(a,s)))}function n9(e,t,n){return uh(e,t,n)?.[0]}function Hl(e,t,n,i="a"){return n9(e,t,n)?.closest(i)??null}var hh=(e,t)=>uh(e,t,"eq"),Jn=(e,t,n="a")=>Hl(e,t,"eq",n),o9=(e,t,n="a")=>Hl(e,t,"starts",n),i9=(e,t,n="a")=>Hl(e,t,"ends",n),a9={name:"Asura Scans",url:/https?:\/\/(www.)?(asurascans|asuracomics).(com|net)\/.+/,homepage:"https://asurascans.com/",language:[ze.ENGLISH],category:He.MANGA,waitEle:'astro-island[component-url*="ChapterReader"]',run(){const e=document.querySelector('astro-island[component-url*="ChapterReader"]'),t=JSON.parse(e?.getAttribute("props")||"{}"),n=t.seriesSlug?.[1],i=(t.pages?.[1]||[]).map(a=>a[1]?.url?.[1]).filter(Boolean);return{title:`${t.seriesName?.[1]} - Chapter ${t.chapterName?.[1]}`,series:`/comics/${n}`,pages:i.length,prev:Jn("span","Prev","a")?.getAttribute("href")||document.querySelector('link[rel="prev"]')?.getAttribute("href")||void 0,next:Jn("span","Next","a")?.getAttribute("href")||document.querySelector('link[rel="next"]')?.getAttribute("href")||void 0,listImages:i}}},s9={name:"Batoto",url:/https?:\/\/(?:www\.)?(?:fto|jto|hto|dto|mto|wto|bato|battwo|batotwo|comiko|batocomic|readtoto|zbato|xbato|mangatoto)\.(?:to|com|net|org)\/(chapter|title).*/,homepage:"https://rentry.co/batoto",language:[ze.ENGLISH],category:He.MANGA,waitEle:'div[name="image-item"] img, .page-img',run(){if(window.location.pathname.startsWith("/title")){window.location.search!=="?load=2"&&(window.location.search="?load=2");const t=[...document.querySelectorAll('div[name="image-item"] img')];return{title:document.querySelector("h6")?.textContent?.trim(),series:document.querySelector("h3 a")?.getAttribute("href"),pages:t.length,prev:i9("span","Prev Chapter","a")?.getAttribute("href"),next:o9("span","Next Chapter","a")?.getAttribute("href"),listImages:t.map(n=>n.getAttribute("src")??"")}}const e=[...document.querySelectorAll(".page-img")];return{title:document.querySelector(".nav-title a")?.textContent?.trim(),series:document.querySelector(".nav-title a")?.getAttribute("href"),pages:e.length,prev:document.querySelector(".nav-prev a")?.getAttribute("href"),next:document.querySelector(".nav-next a")?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("src")??"")}}},l9={name:"BilibiliComics",url:/https?:\/\/(www\.)?(bilibilicomics).net\/episode\/.+/,homepage:"https://www.bilibilicomics.net/",language:[ze.ENGLISH],category:He.MANGA,waitEle:"#__NUXT_DATA__",async run(){const e=JSON.parse(document.querySelector("#__NUXT_DATA__")?.innerHTML??"").filter(t=>typeof t=="string"&&/.(png|jpg|jpeg|gif|bmp|webp)$/i.exec(t));return{title:document.querySelector(".chapterTitle")?.textContent?.trim(),series:document.querySelector(".book-name")?.getAttribute("href"),pages:e.length,prev:document.querySelectorAll(".pre-next-btns").item(0)?.getAttribute("href"),next:document.querySelectorAll(".pre-next-btns").item(2)?.getAttribute("href"),listImages:e.map(t=>`https://static.comicfans.io/${t}`)}}},c9={name:"Comick",url:/https?:\/\/(www\.)?comick.io\/.+/,homepage:"https://comick.io/",language:[ze.ENGLISH],category:He.MANGA,waitFunc(){return/\/([^/]+)-chapter.+$/.test(window.location.pathname)},waitEle:"#__NEXT_DATA__",waitTime:3e3,run(){const e=JSON.parse(document.getElementById("__NEXT_DATA__")?.innerHTML??"")?.props?.pageProps,t=e?.chapter?.md_images?.map(n=>`https://meo.comick.pictures/${n?.b2key}`);return{title:e?.seoTitle??`${e.chapter?.md_comics?.title} ${e?.chapter?.chap}`,series:`/comic/${e?.chapter?.md_comics?.slug}`,pages:t?.length,prev:e?.prev?.href,next:e?.next?.href,listImages:t}}},d9={name:"Comix.to",homepage:"https://comix.to/",url:/https?:\/\/comix\.to\/(title|comic)\/.+\/.+/,language:ze.ENGLISH,category:He.COMIC,run:()=>{const e=[...document.querySelectorAll("script")].find(i=>i.textContent?.includes("self.__next_f.push")&&i.textContent?.includes("images"))?.textContent||"",t=e.substring(e.indexOf('"')+3,e.lastIndexOf('"')-2),n=JSON.parse(t.replaceAll("\\",""))[3].chapter.images.map(i=>i.url);return{title:document.querySelector("h1.page-title")?.textContent?.trim(),series:document.querySelector('.breadcrumbs a[href*="/title/"], .breadcrumbs a[href*="/comic/"]')?.getAttribute("href"),pages:n.length,prev:document.querySelector("a.prev-chapter")?.getAttribute("href"),next:document.querySelector("a.next-chapter")?.getAttribute("href"),listImages:n}}},u9={name:"Dynasty-Scans",url:/https?:\/\/(www\.)?dynasty-scans.com\/chapters\/.+/,homepage:"https://dynasty-scans.com/",language:[ze.ENGLISH],category:He.MANGA,run(){return{title:document.querySelector("#chapter-title")?.textContent?.trim(),series:document.querySelector("#chapter-title a")?.getAttribute("href"),pages:unsafeWindow.pages.length,prev:document.querySelector("#prev_link")?.getAttribute("href"),next:document.querySelector("#next_link")?.getAttribute("href"),listImages:unsafeWindow.pages.map(e=>e.image)}}},h9={name:"Flame Comics",url:/https?:\/\/(www.)?(flamecomics).(xyz)\/series\/.+/,homepage:"https://flamecomics.xyz/",language:[ze.ENGLISH],category:He.MANGA,run(){const e="https://cdn.flamecomics.xyz/uploads/images/series",t=JSON.parse(document.getElementById("__NEXT_DATA__")?.innerHTML??""),n=t?.props?.pageProps?.chapter,i=Me.default.keys(n?.images).map(a=>`${e}/${n?.series_id}/${n?.token}/${n?.images?.[a]?.name}?${n?.unix_timestamp}`);return{title:`${n?.title} ${n?.chapter}`,series:`../${n?.series_id}`,pages:i.length,prev:t?.props?.pageProps?.previous,next:t?.props?.pageProps?.next,listImages:i}}},f9={name:["FoOlSlide","Kireicake"],url:/^(?!.*jaiminisbox).*\/read\/.+/,homepage:["https://github.com/saintly2k/FoOlSlideX","https://reader.kireicake.com"],language:[ze.ENGLISH],obs:"Any Site that uses FoOLSlide",category:He.MANGA,waitEle:"img.open",run(){const e=[...document.querySelectorAll(".topbar_left .dropdown_parent:last-of-type li")],t=e.findIndex(l=>{const h=l.querySelector("a")?.getAttribute("href");return h?window.location.href.startsWith(h):!1}),n=[...document.querySelectorAll(".topbar_right .dropdown li")],i=[...document.querySelectorAll(".inner img:not(.open)")],a=i.length>1?i.length:n.length,s={title:e.at(t)?.querySelector("a")?.textContent?.trim()??document.querySelector("title")?.textContent?.trim(),series:document.querySelector("div.tbtitle div.text a")?.getAttribute("href"),pages:a,prev:e.at(t+1)?.querySelector("a")?.getAttribute("href"),next:e.at(t-1)?.querySelector("a")?.getAttribute("href")};return i.length>1?{...s,listImages:i.map(l=>l.getAttribute("src")??"")}:{...s,listPages:Array(a).fill(0).map((l,h)=>`${window.location.href.replace(/\/\d+$/,"")}/${h+1}`),img:"img.open"}}},p9={name:["Ikigai Mangas - EltaNews","Ikigai Mangas - Ajaco"],url:/https?:\/\/(visorikigai|visualikigai).(ajaco|eltanews|foodib|jobswu).(com|net|site)\/capitulo\/\d+/,homepage:["https://visorikigai.eltanews.com/","https://visorikigai.ajaco.net/"],language:[ze.SPANISH],category:He.MANGA,run(){const e=document.querySelector('script[type="qwik/json"]')?.textContent?.match(/http[^'"]+webp/gi)??[];return{title:document.querySelector("title")?.text.replace(" — Manga en línea | MangaOni",""),pages:e?.length,prev:Jn("span","Siguiente")?.getAttribute("href"),next:Jn("span","Anterior")?.getAttribute("href"),listImages:e}}},g9=e=>new Promise(t=>setTimeout(t,e));async function m9(e){const t=document.querySelector(".reader-content"),n=new Set,i=2e3,a=200;if(!t)return console.error("Error: '.reader-content' container not found."),[];let s=0;for(;n.size<e&&s<a;){t.scrollTop+=i,s++,await g9(300);const l=document.querySelectorAll(".reader-page img");for(const h of l){const u=h.getAttribute("src");u&&u.length>0&&n.add(u)}if(console.log(`Attempt ${s}: Collected ${n.size} of ${e} sources.`),t.scrollHeight-t.clientHeight<=t.scrollTop&&n.size<e){console.warn(`Reached end of scrollable content. Stopping with ${n.size} sources.`);break}}return Array.from(n)}var v9={name:"Kagane",homepage:"https://kagane.org/",url:/https:\/\/(www\.)?kagane\.org\/series\/.+\/reader\/.+/,language:ze.ENGLISH,category:He.MANGA,waitEle:".reader-page img",async run(){const e=window.location.href,t=e.match(/series\/([^/]+)/)?.[1],n=e.match(/reader\/([^/]+)/)?.[1],i=localStorage.getItem("rsch_did"),a={};i&&(a["X-Rsch-Did"]=i);const s=await fetch(`https://api.kagane.org/api/v1/series/${t}`,{headers:a}).then(w=>w.json()),l=(await fetch(`https://api.kagane.org/api/v1/books/${t}`,{headers:a}).then(w=>w.json())).data.content,h=l.find(w=>w.id===n),u=l.findIndex(w=>w.id===n),f=l[u+1],p=l[u-1];return{title:`${s.data.name} - ${h?.metadata?.title}`,series:`/series/${t}`,pages:h?.media?.pagesCount??0,prev:f?`/series/${t}/books/${f.id}`:void 0,next:p?`/series/${t}/books/${p.id}`:void 0,listImages:await m9(h?.media?.pagesCount??0)}}},b9={name:"KuManga",url:/https?:\/\/(www\.)?kumanga.com\/manga\/leer\/.+/,homepage:"https://www.kumanga.com/",language:[ze.SPANISH],category:He.MANGA,run(){const e=document.querySelectorAll("select").item(1).querySelector("option[selected]");return{title:document.querySelector("title")?.textContent?.trim(),series:document.querySelector("h2 a")?.getAttribute("href"),pages:unsafeWindow.pUrl.length,prev:`/manga/leer/${e?.previousElementSibling?.getAttribute("value")}`,next:`/manga/leer/${e?.nextElementSibling?.getAttribute("value")}`,listImages:unsafeWindow.pUrl.map(t=>t.imgURL)}}},w9={name:"LeerCapitulo",url:/https?:\/\/(www.)?leercapitulo.co\/leer\/.+/,homepage:"https://www.leercapitulo.co/",language:[ze.SPANISH],category:He.MANGA,waitEle:"#page_select",run(){const e=[...document.querySelectorAll("#page_select option")].map(t=>t.getAttribute("value")??"");return{title:document.querySelector("h1")?.textContent?.trim(),series:document.querySelector(".chapter-title a")?.getAttribute("href"),pages:e.length,prev:document.querySelector(".pre")?.getAttribute("href"),next:document.querySelector(".next")?.getAttribute("href"),listImages:e}}},_9={name:"LHTranslation",url:/https?:\/\/(www\.)?lhtranslation.net\/read.+/,homepage:"https://lhtranslation.net/",language:[ze.ENGLISH],category:He.MANGA,run(){const e=document.querySelector(".form-control option:checked"),t=[...document.querySelectorAll("img.chapter-img")];return{title:document.querySelector(".chapter-img.tieude font")?.textContent?.trim(),series:document.querySelector(".navbar-brand.manga-name")?.getAttribute("href"),pages:t.length,prev:e?.nextElementSibling?.getAttribute("value"),next:e?.previousElementSibling?.getAttribute("value"),listImages:t.map(n=>n.getAttribute("src")??"")}}},y9={name:"Local Files",url:/(file:\/\/\/.+(index)?.html)/,homepage:"/index.html?raw=1",language:[ze.RAW],category:He.MANGA,run(e){const t=e??parseInt(/\d+/.exec(window.location.search)?.toString()??"5",10);return{title:"Placeholder Manga Loaded",series:"?reload",pages:t,begin:1,prev:"?pages=50",next:"?pages=1",listImages:[qt(1970,1400,"#2D1657"),qt(985,1400,"#152C55"),qt(985,1400,"#7A1420"),qt(1970,1400,"#806D15"),qt(985,1400,"#0F5B30"),qt(1970,1400,"#1a3e3c"),qt(985,1400,"#480f5b"),qt(985,1400,"#a9bf7a"),qt(985,1400,"#147a56"),qt(1970,1400,"#190343"),qt(985,1400,"#d5b91e"),qt(985,1400,"#836ecd"),qt(985,1400,"#bf19b2"),qt(985,1400,"#152055"),...Array(t).fill(0).map(Tb)]}}},k9={name:"M440",url:/https?:\/\/(www\.)?m440.in\/manga\/.+\/.+\/\d+/,homepage:"https://m440.in/",language:[ze.SPANISH],category:He.MANGA,run(){const e=[...document.querySelectorAll("#all img")],t=document.querySelector("#chapter-list li.active");return{title:document.querySelector("title")?.textContent?.trim(),series:document.querySelector("#navbar-collapse-1 ul:nth-child(2) a")?.getAttribute("href"),pages:e.length,prev:t?.nextElementSibling?.firstElementChild?.getAttribute("href"),next:t?.previousElementSibling?.firstElementChild?.getAttribute("href"),listImages:e.map(n=>n.getAttribute("data-src")??"")}}},fh=/^([\t\n])*(https?:\/\/)?.+\.(jpg|jpeg|png|gif|bmp|webp).*$/;function ph(){return[...document.querySelectorAll(".wp-manga-chapter-img, .blocks-gallery-item img, .reading-content img, #chapter-images img, #chapterContent img")].map(e=>{const t=[...e.attributes].filter(n=>/.*(src|url).*/i.test(n.name)&&!/^.*(blank|lazy|loading).*$/.test(n.value));return t.length===0?"":t.find(n=>fh.test(n.value))?.value??e?.getAttribute("src")??""})}var E9={name:["Madara WordPress Plugin","MangaHaus","Isekai Scan","Comic Kiba","Zinmanga","mangatx","Toonily","Mngazuki","JaiminisBox","DisasterScans","ManhuaPlus","TopManhua","NovelMic","Reset-Scans","LeviatanScans","Dragon Tea","SetsuScans","ToonGod","Hades Scans"],url:/https?:\/\/.+\/(manga|series|manhua|comic|ch|novel|webtoon|tmo)\/.+\/.+/,homepage:["https://mangabooth.com/","https://manhuaus.com","https://isekaiscan.com/","https://comickiba.com/","https://zinmanga.com/","https://mangatx.com/","https://toonily.net/","https://mangazuki.me/","https://jaiminisbox.net","https://disasterscans.com/","https://manhuaplus.org/","https://www.topmanhua.com/","https://novelmic.com/","https://reset-scans.com/","https://leviatanscans.com/","https://dragontea.ink/","https://setsuscans.com/","https://toongod.org/home/","https://lectorhades.latamtoon.com"],language:[ze.ENGLISH],obs:"Any Site that uses Madara WordPress Plugin",category:He.MANGA,waitFunc:()=>{const e=ph();return e.length>0&&e.every(t=>t&&fh.test(t))},run(){const e=ph();return{title:document.querySelector("#chapter-heading")?.textContent?.trim(),series:(document.querySelector(".breadcrumb li:nth-child(3) a")??document.querySelector(".breadcrumb li:nth-child(2) a"))?.getAttribute("href"),pages:e.length,prev:document.querySelector(".prev_page")?.getAttribute("href"),next:document.querySelector(".next_page")?.getAttribute("href"),listImages:e}}},A9={name:"MangaBall",homepage:"https://mangaball.net/",url:/https?:\/\/mangaball\.net\/chapter-detail\/.+/,language:ze.ENGLISH,category:He.MANGA,run:async()=>{const e=[...document.querySelectorAll("script")].find(f=>f.textContent?.includes("chapterImages"))?.textContent;if(!e)return{title:document.querySelector("h1")?.textContent?.trim(),series:document.querySelector('a[href*="/title-detail/"]')?.getAttribute("href")??document.querySelector('a[href*="/manga-detail/"]')?.getAttribute("href"),pages:0,listImages:[]};const t=e.match(/titleId\s*=\s*[`'"](.+?)[`'"]/)?.[1],n=e.match(/chapterNumber\s*=\s*[`'"](.+?)[`'"]/)?.[1],i=e.match(/chapterVolume\s*=\s*[`'"](.+?)[`'"]/)?.[1],a=e.match(/chapterLanguage\s*=\s*[`'"](.+?)[`'"]/)?.[1],s=JSON.parse(e.match(/chapterImages\s*=\s*JSON\.parse\(\s*[`'"](.+?)[`'"]\s*\)/)?.[1]??e.match(/chapterImages\s*=.*(\[.*?\])/)?.[1]??"[]"),l=document.querySelector('meta[name="csrf-token"]')?.getAttribute("content")||"",h=((await(await fetch("/api/v1/chapter/chapter-listing-by-title-id/",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-CSRF-TOKEN":l},body:`title_id=${t}&lang=${a}`})).json()).ALL_CHAPTERS||[]).sort((f,p)=>p.number_float-f.number_float),u=f=>{const p=parseFloat(n||"0"),w=h.findIndex(E=>E.number_float===p);if(w===-1)return;const b=f==="next"?-1:1,v=w+b,m=String(i);for(let E=v;E>=0&&E<h.length;E+=b){const y=h[E].translations.find(A=>A.language===a&&String(A.volume)===m);if(y)return y.url}};return{title:document.querySelector("h1")?.textContent?.trim(),series:document.querySelector(`a[href*="${t}"]`)?.getAttribute("href")??document.querySelector('a[href*="/title-detail/"]')?.getAttribute("href")??document.querySelector('a[href*="/manga-detail/"]')?.getAttribute("href"),pages:s.length,prev:u("prev"),next:u("next"),listImages:s}}},S9={name:"MangaBuddy",url:/https?:\/\/(www\.)?mangabuddy.com\/.+\/chapter.+/,homepage:"https://mangabuddy.com/",language:[ze.ENGLISH],category:He.MANGA,waitVar:"chapImages",run(){const e=unsafeWindow.chapImages.split(",").map(t=>new URL(t).pathname.replace("/res/","https://sb.mbcdn.xyz/"));return{title:document.querySelector(".chapter-info")?.textContent?.trim(),series:document.querySelector("#breadcrumbs-container div:nth-child(2) a")?.getAttribute("href"),pages:e.length,prev:document.querySelector("a.prev")?.getAttribute("href"),next:document.querySelector("a.next")?.getAttribute("href"),listImages:e}}},M9={name:"MangaDex",url:/https?:\/\/(www\.)?mangadex.org/,homepage:"https://mangadex.org/",language:[ze.ENGLISH],category:He.MANGA,waitEle:"#chapter-selector a",async run(){const e=`https://api.mangadex.org/at-home/server/${/\/chapter\/([^/]+)(\/\d+)?/.exec(window.location.pathname)?.at(1)}`,t=await fetch(e).then(async a=>a.json()),n=t.chapter.data,i=document.querySelectorAll("#chapter-selector a");return{title:document.querySelector("title")?.text.replace(" - MangaDex",""),series:document.querySelector("a.text-primary[href^='/title/']")?.getAttribute("href"),pages:n.length,prev:i?.item(0)?.getAttribute("href"),next:i?.item(1)?.getAttribute("href"),listImages:n.map(a=>`${t.baseUrl}/data/${t.chapter.hash}/${a}`)}}},x9={name:["MangaFox","MangaHere"],url:/https?:\/\/(www\.)?(fanfox.net|mangahere.cc)\/manga\/.+\/.+\//,homepage:["https://fanfox.net/","https://www.mangahere.cc/"],language:[ze.ENGLISH],category:He.MANGA,waitVar:"chapterid",async run(){const e=document.querySelector("#dm5_key")?.getAttribute("value"),t={method:"GET",headers:{"Content-Type":"text/plain"}},n=Array(unsafeWindow.imagecount).fill(0).map(async(a,s)=>{const l=`chapterfun.ashx?cid=${unsafeWindow.chapterid??unsafeWindow.chapter_id}&page=${s}&key=${e}`,h=await fetch(l,t).then(async u=>u.text());return(0,eval)(h),d}),i=await Promise.all(n);return{title:document.querySelector(".reader-header-title div")?.textContent?.trim(),series:document.querySelector(".reader-header-title a")?.getAttribute("href"),pages:unsafeWindow.imagecount,prev:unsafeWindow.prechapterurl,next:unsafeWindow.nextchapterurl,listImages:i.map((a,s)=>a[s===0?0:1])}}},I9={name:"Mangago",url:/https?:\/\/(www\.)?mangago.me\/.*\/.*\/.*/,homepage:"https://www.mangago.me/",language:[ze.ENGLISH],category:He.MANGA,waitVar:"imgsrcs",run(){const e=CryptoJS.enc.Hex.parse("e11adc3949ba59abbe56e057f20f883e"),t={iv:CryptoJS.enc.Hex.parse("1234567890abcdef1234567890abcdef"),padding:CryptoJS.pad.ZeroPadding},n=CryptoJS.AES.decrypt(unsafeWindow.imgsrcs,e,t).toString(CryptoJS.enc.Utf8).split(",");return{title:`${unsafeWindow.manga_name} ${unsafeWindow.chapter_name}`,series:unsafeWindow.mid,pages:unsafeWindow.total_pages,prev:document.querySelector(".recom p:nth-child(5) a")?.getAttribute("href"),next:unsafeWindow.next_c_url,listImages:n,before(){n.some(i=>i==="")&&document.querySelector("#nform")?.submit()}}}},C9={name:"MangaHub",url:/https?:\/\/(www\.)?(mangahub).io\/chapter\/.+\/.+/,homepage:"https://mangahub.io/",language:[ze.ENGLISH],category:He.MANGA,waitEle:"#select-chapter",async run(){function e(s){const l=new RegExp(`${s}=([^;]+)`).exec(document.cookie);return l!=null?decodeURIComponent(l[1]):null}const t={query:`{chapter(x:m01,slug:"${unsafeWindow.CURRENT_MANGA_SLUG??window.location.pathname.split("/")[2]}",number:${window.location.pathname.split("/")[3].replace("chapter-","")}){pages}}`},n={method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json","x-mhub-access":e("mhub_access")??""}},i=await fetch("https://api.mghcdn.com/graphql",n).then(async s=>s.json()),a=JSON.parse(i?.data.chapter.pages.toString());return{title:document.querySelector("#mangareader h3")?.textContent?.trim(),series:document.querySelector("#mangareader a")?.getAttribute("href"),pages:a.i.length,prev:document.querySelector(".previous a")?.getAttribute("href"),next:document.querySelector(".next a")?.getAttribute("href"),listImages:a.i.map(s=>`https://imgx.mghcdn.com/${a.p+s}`)}}},O9={name:["MangaKakalot","NeloManga ","MangaNato","NatoManga","MangaBats"],url:/https?:\/\/(www\.)?(read|chap)?(nelomanga|mangakakalot|natomanga|manganato|mangabats|mangakakalove).(com|gg|net).*\/(chapter|manga)\/.+\/.+/,homepage:["https://mangakakalot.gg/","https://www.nelomanga.com/","https://www.manganato.gg/","https://www.natomanga.com/","https://www.mangabats.com/"],language:[ze.ENGLISH],category:He.MANGA,waitEle:".navi-change-chapter-btn-prev, .next, .navi-change-chapter-btn-next, .back",run(){const e=[...document.querySelectorAll("#vungdoc img, .container-chapter-reader img")];return{title:document.querySelector(".info-top-chapter h2, .imageOptions-chapter-info-top h1, .panel-chapter-info-top h1")?.textContent?.trim(),series:document.querySelectorAll("span a[title]").item(1).getAttribute("href"),pages:e.length,prev:document.querySelector(".navi-change-chapter-btn-prev, .next")?.getAttribute("href"),next:document.querySelector(".navi-change-chapter-btn-next, .back")?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("src")??"")}}},T9={name:"MangaOni",url:/https?:\/\/(www\.)?manga-oni.com\/lector\/.+\/\d+\/cascada/,homepage:"https://manga-oni.com/",language:[ze.SPANISH],category:He.MANGA,run(){document.querySelector("#c_list")?.dispatchEvent(new Event("mouseover"));const e=document.querySelector("#c_list option:checked"),t=[...document.querySelectorAll("#slider img")];return{title:document.querySelector("title")?.text.replace(" — Manga en línea | MangaOni",""),pages:t?.length,prev:e?.nextElementSibling?.getAttribute("value"),next:e?.previousElementSibling?.getAttribute("value"),listImages:t.map(n=>n.getAttribute("data-src")??n.getAttribute("src")??"")}}},L9={name:"MangaPark",url:/https?:\/\/(www\.)?(mangapark|mpark|comicpark|readpark|parkmanga).(com|me|org|net|io|to)\/title\/.+\/.+/,homepage:"https://mangapark.net/",language:[ze.ENGLISH],category:He.MANGA,waitEle:"main div div a.btn-primary",run(){const e=[...document.querySelectorAll("main div div > img.w-full")];return{title:[...document.querySelectorAll(".comic-detail h3 a, .comic-detail h6 span")].map(t=>t.textContent?.trim()).join(" "),series:document.querySelector(".comic-detail a")?.getAttribute("href"),pages:e.length,prev:document.querySelectorAll("main div div a.btn-primary")?.item(0)?.getAttribute("href"),next:document.querySelectorAll("main div div a.btn-primary")?.item(1)?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("src")??"")}}},R9={name:"MangaReader",url:/https?:\/\/(www\.)?mangareader.to\/read\/.+\/.+\/.+/,homepage:"https://mangareader.to",language:[ze.ENGLISH],category:He.MANGA,obs:"Some galleries will not be usable",waitEle:".ds-image, .iv-card",async run(){const e=document.querySelector(".chapter-item.active"),t=[...document.querySelectorAll(".ds-image[data-url], .iv-card[data-url]")].map(async n=>{const i=n.getAttribute("data-url")??"";return i&&n.classList.contains("shuffled")?(await imgReverser(i)).toDataURL():i});return{title:document.querySelector(".hr-manga h2")?.textContent?.trim(),series:document.querySelector(".hr-manga")?.getAttribute("href"),pages:t.length,prev:e?.nextElementSibling?.querySelector("a")?.getAttribute("href"),next:e?.previousElementSibling?.querySelector("a")?.getAttribute("href"),listImages:await Promise.all(t)}}},P9={name:["MangaStream WordPress Plugin","Realm Oasis","Voids-Scans","Luminous Scans","Shimada Scans","Night Scans","Manhwa-Freak","OzulScansEn","CypherScans","MangaGalaxy","LuaScans","Drake Scans","Rizzfables","NovatoScans","TresDaos","Lectormiau","NTRGod","Threedaos"],url:/https?:\/\/[^/]*(scans?|comic|realm|rizz|hivetoon|tresdaos|zonamiau|ntrgod|threedaos)[^/]*\/.+/,homepage:["https://themesia.com/mangastream-wordpress-theme/","https://realmoasis.com/","https://void-scans.com/","https://luminous-scans.com/","https://shimadascans.com/","https://night-scans.com/","https://freakcomic.com/","https://ozulscansen.com/","https://cypherscans.xyz/","https://mangagalaxy.me/","https://luascans.com/","https://drake-scans.com/","https://rizzfables.com/","https://www.novatoscans.top/","https://tresdaos.com","https://zonamiau.com/","https://ntrgod.com/","https://threedaos.zdrz.xyz/"],language:[ze.ENGLISH,ze.SPANISH],category:He.MANGA,waitEle:':where(#readerarea, .check-box, #viewer-img) img:not(.asurascans):not([src*="loader"]):not([src*="chevron"]),:where(.nextprev, .inner_nPL)',run(){const e=[...document.querySelectorAll(this.waitEle??"")];return{title:document.querySelector("title")?.textContent?.trim(),series:document.querySelector(":where(.allc, .tac) a")?.getAttribute("href")??document.querySelectorAll('[class*="breadcrumb"] a').item(1)?.getAttribute("href"),pages:e.length,prev:hh(":where(.nextprev, .inner_nPL) a",["Prev","Anterior"])?.[0]?.getAttribute("href"),next:hh(":where(.nextprev, .inner_nPL) a",["Next","Siguiente"])?.[0]?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("data-src")??t.getAttribute("data-lazy-src")??t.getAttribute("src")??"")}}},$9={name:"MangaToons",url:/https?:\/\/.*mangatoon.mobi\/.+\/watch\/.+/,homepage:"https://mangatoon.mobi/",language:[ze.ENGLISH],category:He.MANGA,waitEle:".pictures img:not(.cover)",run(){const e=[...document.querySelectorAll(".pictures img:not(.cover)")];return{title:document.querySelector("title")?.textContent?.trim(),series:document.querySelector(".top-left a")?.getAttribute("href"),pages:e.length,prev:document.querySelector(".page-icons-prev")?.getAttribute("href"),next:document.querySelector(".page-icons-next")?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("data-src")??"")}}},D9={name:"MangaTown",url:/https?:\/\/www\.mangatown\.com\/manga\/.+\/.+\//,homepage:"https://www.mangatown.com/",language:[ze.ENGLISH],category:He.MANGA,waitEle:"div.page_select select option, .read_img .image",run(){const e=document.querySelector("div.page_select select")?.querySelectorAll("option"),t=[...document.querySelectorAll(".read_img .image")].map(i=>i.getAttribute("src")??""),n=[...e??[]].map(i=>i.value).filter(i=>!i.endsWith("featured.html")).map(i=>new URL(i,window.location.href).href);return{title:document.querySelector("div.title h1")?.textContent?.trim(),series:document.querySelector("div.title a")?.getAttribute("href"),pages:unsafeWindow.total_pages||n.length,prev:document.querySelector(".chapter_select option:checked")?.previousElementSibling?.getAttribute("value"),next:document.querySelector(".chapter_select option:checked")?.nextElementSibling?.getAttribute("value"),...t.length>1?{listImages:t}:{listPages:n,img:"#image"}}}},z9={name:"ManhwaWeb",url:/https?:\/\/(www\.)?manhwaweb.com\/leer\/.+/,homepage:"https://manhwaweb.com/",language:[ze.SPANISH],category:He.MANGA,async run(){const e=window.location.pathname.replace("/leer",""),t=await fetch(`https://manhwawebbackend-production.up.railway.app/chapters/see${e}`).then(async i=>i.json()),n=await fetch(`https://manhwawebbackend-production.up.railway.app/chapters/seeprevpost${e}`).then(async i=>i.json());return{title:`${t.name} ${t.chapter.chapter}`,series:[...document.querySelectorAll("div")].filter(i=>i.textContent==="Episodios")?.[0]?.parentElement?.getAttribute("href"),pages:t.chapter.img.length,prev:n.chapterAnterior.replace(t._id,t.real_id),next:n.chapterSiguiente.replace(t._id,t.real_id),listImages:t.chapter.img}}},N9={name:["MangaGeko.com","MangaGeko.cc"],url:/https?:\/\/(www\.)?mgeko.(com|cc)?\/reader\/.*/,homepage:["https://www.mgeko.com/","https://www.mgeko.cc/"],language:[ze.ENGLISH],category:He.MANGA,run(){const e=[...document.querySelectorAll('img[id^="image-"]')];return{title:document.querySelector(".titles")?.textContent?.trim(),series:document.querySelector(".titles a")?.getAttribute("href"),pages:e.length,prev:document.querySelector(".chnav.prev:not(.isDisabled)")?.getAttribute("href"),next:document.querySelector(".chnav.next:not(.isDisabled)")?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("src")??"")}}},B9={name:"NineAnime",url:/https?:\/\/(www\.)?nineanime.com\/chapter\/.+/,homepage:"https://www.nineanime.com/",language:[ze.ENGLISH],category:He.MANGA,run(){const e=[...document.querySelectorAll(".sl-page option")],t=document.querySelector(".mangaread-pagenav select option[selected]");return{title:`${document.querySelector(".title h1")?.textContent?.trim()}/${document.querySelector(".title h2")?.textContent?.trim()}`,series:document.querySelector(".title a:has(h2)")?.getAttribute("href"),pages:e.length,prev:t?.nextElementSibling?.getAttribute("value"),next:t?.previousElementSibling?.getAttribute("value"),listPages:e.map(n=>n.getAttribute("value")??""),img:".manga_pic"}}},H9={name:"OlympusBiblioteca",url:/https?:\/\/(www\.)?olympusbiblioteca.com\/capitulo\/\d+\/.+/,homepage:"https://olympusbiblioteca.com/",language:[ze.SPANISH],category:He.MANGA,run(){const e=[...document.querySelectorAll("section img.w-full.h-full")];return{title:document.querySelector("title")?.textContent?.replace(/\|.+/,"").trim(),series:document.querySelector("h1")?.closest("a")?.getAttribute("href"),pages:e.length,prev:document.querySelector('a[name="capitulo anterior"]')?.getAttribute("href"),next:document.querySelector('a[name="capitulo siguiente"]')?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("src")??"")}}},F9={name:"QiManhwa",url:/https?:\/\/qimanhwa\.com\/series\/[^/]+\/chapter-.+/,homepage:"https://qimanhwa.com/",language:[ze.ENGLISH],category:He.MANGA,waitEle:'img[alt*="Chapter"]',run(){const e=[...document.querySelectorAll('img[alt*="Chapter"]')];return{title:document.querySelector("h1")?.textContent?.trim(),series:Jn("button","Home","a")?.getAttribute("href"),pages:e.length,prev:document.querySelector(".lucide-chevron-left")?.closest("a")?.getAttribute("href"),next:document.querySelector(".lucide-chevron-right")?.closest("a")?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("src")??"")}}},G9={name:"ReadComicsOnline",url:/https?:\/\/(www\.)?readcomicsonline.ru\/comic\/.*\/\d*/,homepage:"https://readcomicsonline.ru/",language:[ze.ENGLISH],category:He.COMIC,run(){const e=[...document.querySelectorAll("#all img")];return{title:unsafeWindow.title.replace(/ - Page \d+/,""),series:document.querySelector("div.pager-cnt a")?.getAttribute("href"),pages:unsafeWindow.pages.length,prev:unsafeWindow.prev_chapter,next:unsafeWindow.next_chapter,listImages:e.map(t=>t.getAttribute("data-src")??"")}}},W9={name:"ReaperScans",url:/https?:\/\/(www\.)?reaperscans\.com\/series\/.+\/chapter.+/,homepage:"https://reaperscans.com/",language:[ze.ENGLISH],category:He.MANGA,waitEle:"#content .container img:not(.rounded)",run(){const e=[...document.querySelectorAll("#content .container img:not(.rounded)")];return{title:document.querySelector("title")?.textContent?.trim(),series:document.querySelector("button .fa-house")?.closest("a")?.getAttribute("href"),pages:e.length,prev:document.querySelector(".fa-chevron-left")?.closest("a")?.getAttribute("href"),next:document.querySelector(".fa-chevron-right")?.closest("a")?.getAttribute("href"),listImages:e.map(t=>(t.getAttribute("data-src")||t.getAttribute("src"))??"")}}},U9={name:"TuMangaOnline",url:/https?:\/\/(www\.)?(.+).com\/(viewer|news)\/.+\/(paginated|cascade)/,homepage:"https://lectortmo.com/",language:[ze.SPANISH],category:He.MANGA,run(){const e=[...document.querySelectorAll(".img-container img, .viewer-container img")],t=[...document.querySelectorAll("div.container:nth-child(4) select#viewer-pages-select option")],n=e.length>1?e.length:t.length,i={title:document.querySelector("title")?.textContent?.trim(),series:document.querySelector('a[title="Volver"]')?.getAttribute("href"),pages:n,prev:document.querySelector(".chapter-prev a")?.getAttribute("href"),next:document.querySelector(".chapter-next a")?.getAttribute("href")};return e.length>1?{...i,listImages:e.map(a=>a.getAttribute("data-src")??"")}:{...i,listPages:Array(t.length).fill(0).map((a,s)=>`${window.location.href.replace(/\/\d+$/,"")}/${s+1}`),img:"#viewer-container img, .viewer-page"}}},V9={name:"Vortex Scans",url:/https?:\/\/(www.)?(vortexscans).(org)\/.+/,homepage:"https://vortexscans.org/",language:[ze.ENGLISH],category:He.MANGA,waitVar:"__next_f",waitFunc(){return unsafeWindow.__next_f.find(e=>/images/.test(e?.[1]))?.length>0},run(){const e=unsafeWindow.__next_f.find(n=>/images/.test(n?.[1]))?.[1],t=e.slice(e.indexOf("images")).match(/http[^"]+\.(png|gif|jpg|jpeg|webp)/g)??[];return{title:document.querySelector("time")?.closest("div")?.querySelector("div")?.textContent?.trim(),series:document.querySelector("time")?.closest("a")?.getAttribute("href"),pages:t?.length,prev:Jn("button","Prev","a")?.getAttribute("href"),next:Jn("button","Next","a")?.getAttribute("href"),listImages:t}}},Z9={name:"WebNovel",url:/https?:\/\/(www\.)?webnovel.com\/comic\/.+/,homepage:"https://www.webnovel.com/",language:[ze.ENGLISH],category:He.MANGA,waitVar:"g_data",run(){const e=unsafeWindow.g_data.chapter.chapterInfo.chapterPage.map(t=>t.url);return{title:document.querySelector("title")?.textContent?.trim(),series:"./",pages:e.length,prev:`${unsafeWindow.g_data.chapter.chapterInfo.preChapterName}_${unsafeWindow.g_data.chapter.chapterInfo.preChapterId}`,next:`${unsafeWindow.g_data.chapter.chapterInfo.nextChapterName}_${unsafeWindow.g_data.chapter.chapterInfo.nextChapterId}`,listImages:e}}},q9={name:"WebToons",url:/https?:\/\/(www\.)?webtoons.com\/.+viewer.+/,homepage:"https://www.webtoons.com/",language:[ze.ENGLISH],category:He.MANGA,run(){const e=[...document.querySelectorAll("#_imageList img")];return{title:document.querySelector(".subj_info")?.textContent?.trim(),series:document.querySelector(".subj_info a")?.getAttribute("href"),pages:e.length,prev:document.querySelector("._prevEpisode")?.getAttribute("href"),next:document.querySelector("._nextEpisode")?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("data-url")??t.getAttribute("data-src")??t.getAttribute("src")??"")}}},j9={name:"WeebCentral",url:/https?:\/\/(www\.)?(weebcentral).com\/chapters\/.+/,homepage:"https://weebcentral.com/",language:[ze.ENGLISH],category:He.MANGA,waitEle:"main section .maw-w-full",async run(){const e=[...document.querySelectorAll("main section .maw-w-full")].map(i=>i.getAttribute("src")??""),t=await fetch(document.querySelector("main section a + button")?.getAttribute("hx-get")??"").then(i=>i.text()),n=new DOMParser().parseFromString(t,"text/html");return{title:document.querySelector("title")?.textContent?.replace(/ | .+/,"").trim(),series:document.querySelector("main section a")?.getAttribute("href"),pages:e.length,prev:n.querySelector("#selected_chapter")?.nextElementSibling?.getAttribute("href"),next:n.querySelector("#selected_chapter")?.previousElementSibling?.getAttribute("href"),listImages:e}}},K9={name:"WeebDex",url:/https?:\/\/(www\.)?weebdex\.org\/.+/,homepage:"https://weebdex.org/",language:ze.ENGLISH,category:He.MANGA,waitEle:'a[href^="/title/"]',async run(){const e=/\/chapter\/([^/]+)/.exec(window.location.pathname)?.at(1),t=`https://api.weebdex.org/chapter/${e}`,n=await fetch(t).then(async h=>h.json()),i=document.querySelector('a[href^="/title/"]'),a=`https://api.weebdex.org/manga/${n.relationships.manga.id}/aggregate?lang=${n.language}`,s=(await fetch(a).then(async h=>h.json())).chapters||[],l=s.findIndex(h=>h.chapter===n.chapter);return{title:document.querySelector("title")?.textContent?.trim().replace(/Page \d+:/,""),series:i?.getAttribute("href"),pages:n.data.length,prev:s[l+1]?`/chapter/${Me.default.keys(s[l+1].entries)[0]}`:void 0,next:s[l-1]?`/chapter/${Me.default.keys(s[l-1].entries)[0]}`:void 0,listImages:n.data.map(h=>`${n.node}/data/${e}/${h.name}`)}}},Y9={name:"ZeroScans",url:/https?:\/\/(www\.)?zscans.com\/comics\/.+/,homepage:"https://zscans.com/",language:[ze.ENGLISH],category:He.MANGA,waitVar:"__ZEROSCANS__",run(){const e=unsafeWindow.__ZEROSCANS__.data.at(0).current_chapter.high_quality,t=document.querySelectorAll(".v-btn--router");return{title:document.querySelector("title")?.textContent?.trim(),series:document.querySelector(".v-breadcrumbs li:nth-child(2) + a")?.getAttribute("href"),pages:e.length,prev:t[0]?.getAttribute("href"),next:t[1]?.getAttribute("href"),listImages:e}}},X9=[a9,s9,l9,c9,d9,u9,h9,p9,v9,b9,w9,_9,y9,k9,S9,M9,x9,I9,C9,O9,A9,T9,L9,R9,$9,D9,z9,N9,B9,H9,F9,G9,W9,U9,Z9,q9,j9,K9,V9,Y9,P9,f9,E9];t9(X9).catch(xe)})();